-
Notifications
You must be signed in to change notification settings - Fork 842
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand EuiFlyout usage to help EuiCollapsibleNav (#4713)
* Fix when animation happens with docked navs * Conditionally render children of EuiCollapsibleNavGroup * [BREAKING] Width of EuiCollapsibleNav is now add via `style` prop instead of Sass * [EuiFlyout] Extending `size` prop to accept width types - Also does a better job with mobile sizing and not just overtaking the whole screen all the time * [EuiFlyout] Added `side` prop * [EuiFlyout] added `type=push`, `pushBreakpoint` and `outsideClickCloses` props * [EuiFlyout] Added `as` prop * [BREAKING] Update EuiCollapsibleNav to use EuiFlyout * Added `closeButton` and `closeButtonPosition` to EuiFlyout and using ‘outside’ but default in EuiCollabsibleNav * Fixing up EuiCallapsibleNav with docking of EuiFlyout * [Breaking] EuiFlyout defaults to `ownFocus = true` * [EuiFlyout] Wrapping in EuiPortal when `ownFocus=true` * Fixing z-indexes of flyouts compared to header - Basically always wrap in a port (or mask) unless pushed. Then shift the mask below header with `top` instead of z-index. * Fixing visible focus ring on overflowing content like in flyouts * Changing EuiFlyout `tabindex=0` to `-1`
- Loading branch information
Showing
39 changed files
with
2,091 additions
and
1,237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import { PropTypes } from 'react-view'; | ||
import { EuiCollapsibleNav } from '../../../../src/components/'; | ||
import { propUtilityForPlayground } from '../../services/playground'; | ||
|
||
export const collapsibleNavConfig = () => { | ||
const docgenInfo = Array.isArray(EuiCollapsibleNav.__docgenInfo) | ||
? EuiCollapsibleNav.__docgenInfo[0] | ||
: EuiCollapsibleNav.__docgenInfo; | ||
const propsToUse = propUtilityForPlayground(docgenInfo.props); | ||
|
||
propsToUse.isOpen = { | ||
...propsToUse.isOpen, | ||
value: true, | ||
}; | ||
|
||
propsToUse.ownFocus = { | ||
...propsToUse.ownFocus, | ||
value: false, | ||
disabled: true, | ||
}; | ||
|
||
propsToUse.size = { | ||
...propsToUse.size, | ||
type: PropTypes.Number, | ||
value: 240, | ||
}; | ||
|
||
propsToUse.as = { | ||
...propsToUse.as, | ||
type: PropTypes.string, | ||
value: 'nav', | ||
}; | ||
|
||
propsToUse.as = { | ||
...propsToUse.as, | ||
type: PropTypes.string, | ||
value: 'nav', | ||
}; | ||
|
||
return { | ||
config: { | ||
componentName: 'EuiCollapsibleNav', | ||
props: propsToUse, | ||
scope: { | ||
EuiCollapsibleNav, | ||
}, | ||
imports: { | ||
'@elastic/eui': { | ||
named: ['EuiCollapsibleNav'], | ||
}, | ||
}, | ||
}, | ||
}; | ||
}; |
Oops, something went wrong.