@patternfly/react-core 6.0.0-alpha.57 → 6.0.0-alpha.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/components/package.json +1 -1
- package/deprecated/package.json +1 -1
- package/dist/dynamic/components/AboutModal/package.json +1 -1
- package/dist/dynamic/components/Accordion/package.json +1 -1
- package/dist/dynamic/components/ActionList/package.json +1 -1
- package/dist/dynamic/components/Alert/package.json +1 -1
- package/dist/dynamic/components/Avatar/package.json +1 -1
- package/dist/dynamic/components/BackToTop/package.json +1 -1
- package/dist/dynamic/components/Backdrop/package.json +1 -1
- package/dist/dynamic/components/BackgroundImage/package.json +1 -1
- package/dist/dynamic/components/Badge/package.json +1 -1
- package/dist/dynamic/components/Banner/package.json +1 -1
- package/dist/dynamic/components/Brand/package.json +1 -1
- package/dist/dynamic/components/Breadcrumb/package.json +1 -1
- package/dist/dynamic/components/Button/package.json +1 -1
- package/dist/dynamic/components/CalendarMonth/package.json +1 -1
- package/dist/dynamic/components/Card/package.json +1 -1
- package/dist/dynamic/components/Checkbox/package.json +1 -1
- package/dist/dynamic/components/ClipboardCopy/package.json +1 -1
- package/dist/dynamic/components/CodeBlock/package.json +1 -1
- package/dist/dynamic/components/DataList/package.json +1 -1
- package/dist/dynamic/components/DatePicker/package.json +1 -1
- package/dist/dynamic/components/DescriptionList/package.json +1 -1
- package/dist/dynamic/components/Divider/package.json +1 -1
- package/dist/dynamic/components/Drawer/package.json +1 -1
- package/dist/dynamic/components/Dropdown/package.json +1 -1
- package/dist/dynamic/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/components/EmptyState/package.json +1 -1
- package/dist/dynamic/components/ExpandableSection/package.json +1 -1
- package/dist/dynamic/components/FileUpload/package.json +1 -1
- package/dist/dynamic/components/Form/package.json +1 -1
- package/dist/dynamic/components/FormSelect/package.json +1 -1
- package/dist/dynamic/components/HelperText/package.json +1 -1
- package/dist/dynamic/components/Hint/package.json +1 -1
- package/dist/dynamic/components/Icon/package.json +1 -1
- package/dist/dynamic/components/InputGroup/package.json +1 -1
- package/dist/dynamic/components/JumpLinks/package.json +1 -1
- package/dist/dynamic/components/Label/package.json +1 -1
- package/dist/dynamic/components/List/package.json +1 -1
- package/dist/dynamic/components/LoginPage/package.json +1 -1
- package/dist/dynamic/components/Masthead/package.json +1 -1
- package/dist/dynamic/components/Menu/package.json +1 -1
- package/dist/dynamic/components/MenuToggle/package.json +1 -1
- package/dist/dynamic/components/Modal/package.json +1 -1
- package/dist/dynamic/components/MultipleFileUpload/package.json +1 -1
- package/dist/dynamic/components/Nav/package.json +1 -1
- package/dist/dynamic/components/NotificationBadge/package.json +1 -1
- package/dist/dynamic/components/NotificationDrawer/package.json +1 -1
- package/dist/dynamic/components/NumberInput/package.json +1 -1
- package/dist/dynamic/components/OverflowMenu/package.json +1 -1
- package/dist/dynamic/components/Page/package.json +1 -1
- package/dist/dynamic/components/Pagination/package.json +1 -1
- package/dist/dynamic/components/Panel/package.json +1 -1
- package/dist/dynamic/components/Popover/package.json +1 -1
- package/dist/dynamic/components/Progress/package.json +1 -1
- package/dist/dynamic/components/ProgressStepper/package.json +1 -1
- package/dist/dynamic/components/Radio/package.json +1 -1
- package/dist/dynamic/components/SearchInput/package.json +1 -1
- package/dist/dynamic/components/Select/package.json +1 -1
- package/dist/dynamic/components/Sidebar/package.json +1 -1
- package/dist/dynamic/components/SimpleList/package.json +1 -1
- package/dist/dynamic/components/Skeleton/package.json +1 -1
- package/dist/dynamic/components/SkipToContent/package.json +1 -1
- package/dist/dynamic/components/Slider/package.json +1 -1
- package/dist/dynamic/components/Spinner/package.json +1 -1
- package/dist/dynamic/components/Switch/package.json +1 -1
- package/dist/dynamic/components/Tabs/package.json +1 -1
- package/dist/dynamic/components/Text/package.json +1 -1
- package/dist/dynamic/components/TextArea/package.json +1 -1
- package/dist/dynamic/components/TextInput/package.json +1 -1
- package/dist/dynamic/components/TextInputGroup/package.json +1 -1
- package/dist/dynamic/components/Tile/package.json +1 -1
- package/dist/dynamic/components/TimePicker/package.json +1 -1
- package/dist/dynamic/components/Timestamp/package.json +1 -1
- package/dist/dynamic/components/Title/package.json +1 -1
- package/dist/dynamic/components/ToggleGroup/package.json +1 -1
- package/dist/dynamic/components/Toolbar/package.json +1 -1
- package/dist/dynamic/components/Tooltip/package.json +1 -1
- package/dist/dynamic/components/TreeView/package.json +1 -1
- package/dist/dynamic/components/Truncate/package.json +1 -1
- package/dist/dynamic/components/Wizard/hooks/package.json +1 -1
- package/dist/dynamic/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/Chip/package.json +1 -1
- package/dist/dynamic/deprecated/components/DragDrop/package.json +1 -1
- package/dist/dynamic/deprecated/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/package.json +1 -1
- package/dist/dynamic/helpers/FocusTrap/FocusTrap/package.json +1 -1
- package/dist/dynamic/helpers/GenerateId/GenerateId/package.json +1 -1
- package/dist/dynamic/helpers/KeyboardHandler/package.json +1 -1
- package/dist/dynamic/helpers/OUIA/ouia/package.json +1 -1
- package/dist/dynamic/helpers/Popper/Popper/package.json +1 -1
- package/dist/dynamic/helpers/constants/package.json +1 -1
- package/dist/dynamic/helpers/datetimeUtils/package.json +1 -1
- package/dist/dynamic/helpers/fileUtils/package.json +1 -1
- package/dist/dynamic/helpers/htmlConstants/package.json +1 -1
- package/dist/dynamic/helpers/package.json +1 -1
- package/dist/dynamic/helpers/resizeObserver/package.json +1 -1
- package/dist/dynamic/helpers/typeUtils/package.json +1 -1
- package/dist/dynamic/helpers/useInterval/package.json +1 -1
- package/dist/dynamic/helpers/useIsomorphicLayout/package.json +1 -1
- package/dist/dynamic/helpers/useUnmountEffect/package.json +1 -1
- package/dist/dynamic/helpers/util/package.json +1 -1
- package/dist/dynamic/layouts/Bullseye/package.json +1 -1
- package/dist/dynamic/layouts/Flex/package.json +1 -1
- package/dist/dynamic/layouts/Gallery/package.json +1 -1
- package/dist/dynamic/layouts/Grid/package.json +1 -1
- package/dist/dynamic/layouts/Level/package.json +1 -1
- package/dist/dynamic/layouts/Split/package.json +1 -1
- package/dist/dynamic/layouts/Stack/package.json +1 -1
- package/dist/dynamic/next/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/next/components/Modal/package.json +1 -1
- package/dist/dynamic/next/components/package.json +1 -1
- package/dist/dynamic/styles/package.json +1 -1
- package/dist/esm/deprecated/components/index.d.ts +0 -6
- package/dist/esm/deprecated/components/index.d.ts.map +1 -1
- package/dist/esm/deprecated/components/index.js +0 -6
- package/dist/esm/deprecated/components/index.js.map +1 -1
- package/dist/js/deprecated/components/index.d.ts +0 -6
- package/dist/js/deprecated/components/index.d.ts.map +1 -1
- package/dist/js/deprecated/components/index.js +0 -6
- package/dist/js/deprecated/components/index.js.map +1 -1
- package/helpers/package.json +1 -1
- package/layouts/package.json +1 -1
- package/next/package.json +1 -1
- package/package.json +2 -2
- package/src/components/Page/__tests__/Page.test.tsx +14 -14
- package/src/components/Page/__tests__/__snapshots__/Page.test.tsx.snap +26 -224
- package/src/deprecated/components/index.ts +0 -6
- package/dist/dynamic/deprecated/components/ApplicationLauncher/package.json +0 -1
- package/dist/dynamic/deprecated/components/ContextSelector/package.json +0 -1
- package/dist/dynamic/deprecated/components/Dropdown/package.json +0 -1
- package/dist/dynamic/deprecated/components/OptionsMenu/package.json +0 -1
- package/dist/dynamic/deprecated/components/PageHeader/package.json +0 -1
- package/dist/dynamic/deprecated/components/Select/package.json +0 -1
- package/dist/dynamic/helpers/favorites/package.json +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncher.d.ts +0 -60
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncher.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncher.js +0 -99
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncher.js.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherContent.d.ts +0 -7
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherContent.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherContent.js +0 -16
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherContent.js.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherContext.d.ts +0 -5
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherContext.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherContext.js +0 -6
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherContext.js.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherGroup.d.ts +0 -4
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherGroup.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherGroup.js +0 -9
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherGroup.js.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherIcon.d.ts +0 -9
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherIcon.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherIcon.js +0 -12
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherIcon.js.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherItem.d.ts +0 -31
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherItem.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherItem.js +0 -22
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherItem.js.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherItemContext.d.ts +0 -6
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherItemContext.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherItemContext.js +0 -3
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherItemContext.js.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherSeparator.d.ts +0 -4
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherSeparator.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherSeparator.js +0 -11
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherSeparator.js.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherText.d.ts +0 -9
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherText.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherText.js +0 -10
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherText.js.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/index.d.ts +0 -10
- package/dist/esm/deprecated/components/ApplicationLauncher/index.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/index.js +0 -10
- package/dist/esm/deprecated/components/ApplicationLauncher/index.js.map +0 -1
- package/dist/esm/deprecated/components/ContextSelector/ContextSelector.d.ts +0 -75
- package/dist/esm/deprecated/components/ContextSelector/ContextSelector.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ContextSelector/ContextSelector.js +0 -73
- package/dist/esm/deprecated/components/ContextSelector/ContextSelector.js.map +0 -1
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorFooter.d.ts +0 -9
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorFooter.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorFooter.js +0 -10
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorFooter.js.map +0 -1
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorItem.d.ts +0 -26
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorItem.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorItem.js +0 -40
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorItem.js.map +0 -1
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorMenuList.d.ts +0 -21
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorMenuList.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorMenuList.js +0 -33
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorMenuList.js.map +0 -1
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorToggle.d.ts +0 -39
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorToggle.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorToggle.js +0 -74
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorToggle.js.map +0 -1
- package/dist/esm/deprecated/components/ContextSelector/contextSelectorConstants.d.ts +0 -5
- package/dist/esm/deprecated/components/ContextSelector/contextSelectorConstants.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ContextSelector/contextSelectorConstants.js +0 -6
- package/dist/esm/deprecated/components/ContextSelector/contextSelectorConstants.js.map +0 -1
- package/dist/esm/deprecated/components/ContextSelector/index.d.ts +0 -4
- package/dist/esm/deprecated/components/ContextSelector/index.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ContextSelector/index.js +0 -4
- package/dist/esm/deprecated/components/ContextSelector/index.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/BadgeToggle.d.ts +0 -35
- package/dist/esm/deprecated/components/Dropdown/BadgeToggle.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/BadgeToggle.js +0 -20
- package/dist/esm/deprecated/components/Dropdown/BadgeToggle.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/Dropdown.d.ts +0 -66
- package/dist/esm/deprecated/components/Dropdown/Dropdown.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/Dropdown.js +0 -16
- package/dist/esm/deprecated/components/Dropdown/Dropdown.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownGroup.d.ts +0 -11
- package/dist/esm/deprecated/components/Dropdown/DropdownGroup.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownGroup.js +0 -15
- package/dist/esm/deprecated/components/Dropdown/DropdownGroup.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownItem.d.ts +0 -52
- package/dist/esm/deprecated/components/Dropdown/DropdownItem.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownItem.js +0 -15
- package/dist/esm/deprecated/components/Dropdown/DropdownItem.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownMenu.d.ts +0 -53
- package/dist/esm/deprecated/components/Dropdown/DropdownMenu.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownMenu.js +0 -131
- package/dist/esm/deprecated/components/Dropdown/DropdownMenu.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownSeparator.d.ts +0 -14
- package/dist/esm/deprecated/components/Dropdown/DropdownSeparator.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownSeparator.js +0 -16
- package/dist/esm/deprecated/components/Dropdown/DropdownSeparator.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownToggle.d.ts +0 -50
- package/dist/esm/deprecated/components/Dropdown/DropdownToggle.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownToggle.js +0 -32
- package/dist/esm/deprecated/components/Dropdown/DropdownToggle.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownToggleAction.d.ts +0 -22
- package/dist/esm/deprecated/components/Dropdown/DropdownToggleAction.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownToggleAction.js +0 -18
- package/dist/esm/deprecated/components/Dropdown/DropdownToggleAction.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownToggleCheckbox.d.ts +0 -45
- package/dist/esm/deprecated/components/Dropdown/DropdownToggleCheckbox.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownToggleCheckbox.js +0 -51
- package/dist/esm/deprecated/components/Dropdown/DropdownToggleCheckbox.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownWithContext.d.ts +0 -20
- package/dist/esm/deprecated/components/Dropdown/DropdownWithContext.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownWithContext.js +0 -99
- package/dist/esm/deprecated/components/Dropdown/DropdownWithContext.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/InternalDropdownItem.d.ts +0 -67
- package/dist/esm/deprecated/components/Dropdown/InternalDropdownItem.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/InternalDropdownItem.js +0 -149
- package/dist/esm/deprecated/components/Dropdown/InternalDropdownItem.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/KebabToggle.d.ts +0 -32
- package/dist/esm/deprecated/components/Dropdown/KebabToggle.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/KebabToggle.js +0 -16
- package/dist/esm/deprecated/components/Dropdown/KebabToggle.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/Toggle.d.ts +0 -51
- package/dist/esm/deprecated/components/Dropdown/Toggle.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/Toggle.js +0 -93
- package/dist/esm/deprecated/components/Dropdown/Toggle.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/dropdownConstants.d.ts +0 -41
- package/dist/esm/deprecated/components/Dropdown/dropdownConstants.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/dropdownConstants.js +0 -35
- package/dist/esm/deprecated/components/Dropdown/dropdownConstants.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/index.d.ts +0 -13
- package/dist/esm/deprecated/components/Dropdown/index.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/index.js +0 -13
- package/dist/esm/deprecated/components/Dropdown/index.js.map +0 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenu.d.ts +0 -48
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenu.d.ts.map +0 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenu.js +0 -40
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenu.js.map +0 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuItem.d.ts +0 -17
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuItem.d.ts.map +0 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuItem.js +0 -15
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuItem.js.map +0 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuItemGroup.d.ts +0 -15
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuItemGroup.d.ts.map +0 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuItemGroup.js +0 -15
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuItemGroup.js.map +0 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuSeparator.d.ts +0 -4
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuSeparator.d.ts.map +0 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuSeparator.js +0 -9
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuSeparator.js.map +0 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuToggle.d.ts +0 -28
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuToggle.d.ts.map +0 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuToggle.js +0 -15
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuToggle.js.map +0 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuToggleWithText.d.ts +0 -37
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuToggleWithText.d.ts.map +0 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuToggleWithText.js +0 -63
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuToggleWithText.js.map +0 -1
- package/dist/esm/deprecated/components/OptionsMenu/index.d.ts +0 -7
- package/dist/esm/deprecated/components/OptionsMenu/index.d.ts.map +0 -1
- package/dist/esm/deprecated/components/OptionsMenu/index.js +0 -7
- package/dist/esm/deprecated/components/OptionsMenu/index.js.map +0 -1
- package/dist/esm/deprecated/components/PageHeader/PageHeader.d.ts +0 -29
- package/dist/esm/deprecated/components/PageHeader/PageHeader.d.ts.map +0 -1
- package/dist/esm/deprecated/components/PageHeader/PageHeader.js +0 -34
- package/dist/esm/deprecated/components/PageHeader/PageHeader.js.map +0 -1
- package/dist/esm/deprecated/components/PageHeader/PageHeaderTools.d.ts +0 -9
- package/dist/esm/deprecated/components/PageHeader/PageHeaderTools.d.ts.map +0 -1
- package/dist/esm/deprecated/components/PageHeader/PageHeaderTools.js +0 -10
- package/dist/esm/deprecated/components/PageHeader/PageHeaderTools.js.map +0 -1
- package/dist/esm/deprecated/components/PageHeader/PageHeaderToolsGroup.d.ts +0 -18
- package/dist/esm/deprecated/components/PageHeader/PageHeaderToolsGroup.d.ts.map +0 -1
- package/dist/esm/deprecated/components/PageHeader/PageHeaderToolsGroup.js +0 -13
- package/dist/esm/deprecated/components/PageHeader/PageHeaderToolsGroup.js.map +0 -1
- package/dist/esm/deprecated/components/PageHeader/PageHeaderToolsItem.d.ts +0 -20
- package/dist/esm/deprecated/components/PageHeader/PageHeaderToolsItem.d.ts.map +0 -1
- package/dist/esm/deprecated/components/PageHeader/PageHeaderToolsItem.js +0 -13
- package/dist/esm/deprecated/components/PageHeader/PageHeaderToolsItem.js.map +0 -1
- package/dist/esm/deprecated/components/PageHeader/index.d.ts +0 -5
- package/dist/esm/deprecated/components/PageHeader/index.d.ts.map +0 -1
- package/dist/esm/deprecated/components/PageHeader/index.js +0 -5
- package/dist/esm/deprecated/components/PageHeader/index.js.map +0 -1
- package/dist/esm/deprecated/components/Select/Select.d.ts +0 -200
- package/dist/esm/deprecated/components/Select/Select.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Select/Select.js +0 -941
- package/dist/esm/deprecated/components/Select/Select.js.map +0 -1
- package/dist/esm/deprecated/components/Select/SelectGroup.d.ts +0 -13
- package/dist/esm/deprecated/components/Select/SelectGroup.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Select/SelectGroup.js +0 -13
- package/dist/esm/deprecated/components/Select/SelectGroup.js.map +0 -1
- package/dist/esm/deprecated/components/Select/SelectMenu.d.ts +0 -47
- package/dist/esm/deprecated/components/Select/SelectMenu.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Select/SelectMenu.js +0 -164
- package/dist/esm/deprecated/components/Select/SelectMenu.js.map +0 -1
- package/dist/esm/deprecated/components/Select/SelectOption.d.ts +0 -74
- package/dist/esm/deprecated/components/Select/SelectOption.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Select/SelectOption.js +0 -197
- package/dist/esm/deprecated/components/Select/SelectOption.js.map +0 -1
- package/dist/esm/deprecated/components/Select/SelectToggle.d.ts +0 -57
- package/dist/esm/deprecated/components/Select/SelectToggle.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Select/SelectToggle.js +0 -208
- package/dist/esm/deprecated/components/Select/SelectToggle.js.map +0 -1
- package/dist/esm/deprecated/components/Select/index.d.ts +0 -5
- package/dist/esm/deprecated/components/Select/index.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Select/index.js +0 -5
- package/dist/esm/deprecated/components/Select/index.js.map +0 -1
- package/dist/esm/deprecated/components/Select/selectConstants.d.ts +0 -29
- package/dist/esm/deprecated/components/Select/selectConstants.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Select/selectConstants.js +0 -23
- package/dist/esm/deprecated/components/Select/selectConstants.js.map +0 -1
- package/dist/esm/helpers/favorites.d.ts +0 -19
- package/dist/esm/helpers/favorites.d.ts.map +0 -1
- package/dist/esm/helpers/favorites.js +0 -64
- package/dist/esm/helpers/favorites.js.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncher.d.ts +0 -60
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncher.d.ts.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncher.js +0 -102
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncher.js.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherContent.d.ts +0 -7
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherContent.d.ts.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherContent.js +0 -21
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherContent.js.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherContext.d.ts +0 -5
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherContext.d.ts.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherContext.js +0 -10
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherContext.js.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherGroup.d.ts +0 -4
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherGroup.d.ts.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherGroup.js +0 -13
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherGroup.js.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherIcon.d.ts +0 -9
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherIcon.d.ts.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherIcon.js +0 -16
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherIcon.js.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherItem.d.ts +0 -31
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherItem.d.ts.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherItem.js +0 -26
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherItem.js.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherItemContext.d.ts +0 -6
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherItemContext.d.ts.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherItemContext.js +0 -7
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherItemContext.js.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherSeparator.d.ts +0 -4
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherSeparator.d.ts.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherSeparator.js +0 -15
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherSeparator.js.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherText.d.ts +0 -9
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherText.d.ts.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherText.js +0 -14
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherText.js.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/index.d.ts +0 -10
- package/dist/js/deprecated/components/ApplicationLauncher/index.d.ts.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/index.js +0 -13
- package/dist/js/deprecated/components/ApplicationLauncher/index.js.map +0 -1
- package/dist/js/deprecated/components/ContextSelector/ContextSelector.d.ts +0 -75
- package/dist/js/deprecated/components/ContextSelector/ContextSelector.d.ts.map +0 -1
- package/dist/js/deprecated/components/ContextSelector/ContextSelector.js +0 -76
- package/dist/js/deprecated/components/ContextSelector/ContextSelector.js.map +0 -1
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorFooter.d.ts +0 -9
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorFooter.d.ts.map +0 -1
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorFooter.js +0 -14
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorFooter.js.map +0 -1
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorItem.d.ts +0 -26
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorItem.d.ts.map +0 -1
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorItem.js +0 -43
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorItem.js.map +0 -1
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorMenuList.d.ts +0 -21
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorMenuList.d.ts.map +0 -1
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorMenuList.js +0 -36
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorMenuList.js.map +0 -1
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorToggle.d.ts +0 -39
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorToggle.d.ts.map +0 -1
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorToggle.js +0 -77
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorToggle.js.map +0 -1
- package/dist/js/deprecated/components/ContextSelector/contextSelectorConstants.d.ts +0 -5
- package/dist/js/deprecated/components/ContextSelector/contextSelectorConstants.d.ts.map +0 -1
- package/dist/js/deprecated/components/ContextSelector/contextSelectorConstants.js +0 -10
- package/dist/js/deprecated/components/ContextSelector/contextSelectorConstants.js.map +0 -1
- package/dist/js/deprecated/components/ContextSelector/index.d.ts +0 -4
- package/dist/js/deprecated/components/ContextSelector/index.d.ts.map +0 -1
- package/dist/js/deprecated/components/ContextSelector/index.js +0 -7
- package/dist/js/deprecated/components/ContextSelector/index.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/BadgeToggle.d.ts +0 -35
- package/dist/js/deprecated/components/Dropdown/BadgeToggle.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/BadgeToggle.js +0 -24
- package/dist/js/deprecated/components/Dropdown/BadgeToggle.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/Dropdown.d.ts +0 -66
- package/dist/js/deprecated/components/Dropdown/Dropdown.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/Dropdown.js +0 -20
- package/dist/js/deprecated/components/Dropdown/Dropdown.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownGroup.d.ts +0 -11
- package/dist/js/deprecated/components/Dropdown/DropdownGroup.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownGroup.js +0 -19
- package/dist/js/deprecated/components/Dropdown/DropdownGroup.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownItem.d.ts +0 -52
- package/dist/js/deprecated/components/Dropdown/DropdownItem.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownItem.js +0 -19
- package/dist/js/deprecated/components/Dropdown/DropdownItem.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownMenu.d.ts +0 -53
- package/dist/js/deprecated/components/Dropdown/DropdownMenu.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownMenu.js +0 -134
- package/dist/js/deprecated/components/Dropdown/DropdownMenu.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownSeparator.d.ts +0 -14
- package/dist/js/deprecated/components/Dropdown/DropdownSeparator.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownSeparator.js +0 -20
- package/dist/js/deprecated/components/Dropdown/DropdownSeparator.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownToggle.d.ts +0 -50
- package/dist/js/deprecated/components/Dropdown/DropdownToggle.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownToggle.js +0 -36
- package/dist/js/deprecated/components/Dropdown/DropdownToggle.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownToggleAction.d.ts +0 -22
- package/dist/js/deprecated/components/Dropdown/DropdownToggleAction.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownToggleAction.js +0 -21
- package/dist/js/deprecated/components/Dropdown/DropdownToggleAction.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownToggleCheckbox.d.ts +0 -45
- package/dist/js/deprecated/components/Dropdown/DropdownToggleCheckbox.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownToggleCheckbox.js +0 -54
- package/dist/js/deprecated/components/Dropdown/DropdownToggleCheckbox.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownWithContext.d.ts +0 -20
- package/dist/js/deprecated/components/Dropdown/DropdownWithContext.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownWithContext.js +0 -102
- package/dist/js/deprecated/components/Dropdown/DropdownWithContext.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/InternalDropdownItem.d.ts +0 -67
- package/dist/js/deprecated/components/Dropdown/InternalDropdownItem.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/InternalDropdownItem.js +0 -152
- package/dist/js/deprecated/components/Dropdown/InternalDropdownItem.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/KebabToggle.d.ts +0 -32
- package/dist/js/deprecated/components/Dropdown/KebabToggle.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/KebabToggle.js +0 -20
- package/dist/js/deprecated/components/Dropdown/KebabToggle.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/Toggle.d.ts +0 -51
- package/dist/js/deprecated/components/Dropdown/Toggle.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/Toggle.js +0 -96
- package/dist/js/deprecated/components/Dropdown/Toggle.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/dropdownConstants.d.ts +0 -41
- package/dist/js/deprecated/components/Dropdown/dropdownConstants.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/dropdownConstants.js +0 -39
- package/dist/js/deprecated/components/Dropdown/dropdownConstants.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/index.d.ts +0 -13
- package/dist/js/deprecated/components/Dropdown/index.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/index.js +0 -16
- package/dist/js/deprecated/components/Dropdown/index.js.map +0 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenu.d.ts +0 -48
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenu.d.ts.map +0 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenu.js +0 -44
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenu.js.map +0 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuItem.d.ts +0 -17
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuItem.d.ts.map +0 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuItem.js +0 -19
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuItem.js.map +0 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuItemGroup.d.ts +0 -15
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuItemGroup.d.ts.map +0 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuItemGroup.js +0 -19
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuItemGroup.js.map +0 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuSeparator.d.ts +0 -4
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuSeparator.d.ts.map +0 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuSeparator.js +0 -13
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuSeparator.js.map +0 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuToggle.d.ts +0 -28
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuToggle.d.ts.map +0 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuToggle.js +0 -19
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuToggle.js.map +0 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuToggleWithText.d.ts +0 -37
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuToggleWithText.d.ts.map +0 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuToggleWithText.js +0 -67
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuToggleWithText.js.map +0 -1
- package/dist/js/deprecated/components/OptionsMenu/index.d.ts +0 -7
- package/dist/js/deprecated/components/OptionsMenu/index.d.ts.map +0 -1
- package/dist/js/deprecated/components/OptionsMenu/index.js +0 -10
- package/dist/js/deprecated/components/OptionsMenu/index.js.map +0 -1
- package/dist/js/deprecated/components/PageHeader/PageHeader.d.ts +0 -29
- package/dist/js/deprecated/components/PageHeader/PageHeader.d.ts.map +0 -1
- package/dist/js/deprecated/components/PageHeader/PageHeader.js +0 -38
- package/dist/js/deprecated/components/PageHeader/PageHeader.js.map +0 -1
- package/dist/js/deprecated/components/PageHeader/PageHeaderTools.d.ts +0 -9
- package/dist/js/deprecated/components/PageHeader/PageHeaderTools.d.ts.map +0 -1
- package/dist/js/deprecated/components/PageHeader/PageHeaderTools.js +0 -14
- package/dist/js/deprecated/components/PageHeader/PageHeaderTools.js.map +0 -1
- package/dist/js/deprecated/components/PageHeader/PageHeaderToolsGroup.d.ts +0 -18
- package/dist/js/deprecated/components/PageHeader/PageHeaderToolsGroup.d.ts.map +0 -1
- package/dist/js/deprecated/components/PageHeader/PageHeaderToolsGroup.js +0 -17
- package/dist/js/deprecated/components/PageHeader/PageHeaderToolsGroup.js.map +0 -1
- package/dist/js/deprecated/components/PageHeader/PageHeaderToolsItem.d.ts +0 -20
- package/dist/js/deprecated/components/PageHeader/PageHeaderToolsItem.d.ts.map +0 -1
- package/dist/js/deprecated/components/PageHeader/PageHeaderToolsItem.js +0 -17
- package/dist/js/deprecated/components/PageHeader/PageHeaderToolsItem.js.map +0 -1
- package/dist/js/deprecated/components/PageHeader/index.d.ts +0 -5
- package/dist/js/deprecated/components/PageHeader/index.d.ts.map +0 -1
- package/dist/js/deprecated/components/PageHeader/index.js +0 -8
- package/dist/js/deprecated/components/PageHeader/index.js.map +0 -1
- package/dist/js/deprecated/components/Select/Select.d.ts +0 -200
- package/dist/js/deprecated/components/Select/Select.d.ts.map +0 -1
- package/dist/js/deprecated/components/Select/Select.js +0 -944
- package/dist/js/deprecated/components/Select/Select.js.map +0 -1
- package/dist/js/deprecated/components/Select/SelectGroup.d.ts +0 -13
- package/dist/js/deprecated/components/Select/SelectGroup.d.ts.map +0 -1
- package/dist/js/deprecated/components/Select/SelectGroup.js +0 -17
- package/dist/js/deprecated/components/Select/SelectGroup.js.map +0 -1
- package/dist/js/deprecated/components/Select/SelectMenu.d.ts +0 -47
- package/dist/js/deprecated/components/Select/SelectMenu.d.ts.map +0 -1
- package/dist/js/deprecated/components/Select/SelectMenu.js +0 -167
- package/dist/js/deprecated/components/Select/SelectMenu.js.map +0 -1
- package/dist/js/deprecated/components/Select/SelectOption.d.ts +0 -74
- package/dist/js/deprecated/components/Select/SelectOption.d.ts.map +0 -1
- package/dist/js/deprecated/components/Select/SelectOption.js +0 -200
- package/dist/js/deprecated/components/Select/SelectOption.js.map +0 -1
- package/dist/js/deprecated/components/Select/SelectToggle.d.ts +0 -57
- package/dist/js/deprecated/components/Select/SelectToggle.d.ts.map +0 -1
- package/dist/js/deprecated/components/Select/SelectToggle.js +0 -211
- package/dist/js/deprecated/components/Select/SelectToggle.js.map +0 -1
- package/dist/js/deprecated/components/Select/index.d.ts +0 -5
- package/dist/js/deprecated/components/Select/index.d.ts.map +0 -1
- package/dist/js/deprecated/components/Select/index.js +0 -8
- package/dist/js/deprecated/components/Select/index.js.map +0 -1
- package/dist/js/deprecated/components/Select/selectConstants.d.ts +0 -29
- package/dist/js/deprecated/components/Select/selectConstants.d.ts.map +0 -1
- package/dist/js/deprecated/components/Select/selectConstants.js +0 -27
- package/dist/js/deprecated/components/Select/selectConstants.js.map +0 -1
- package/dist/js/helpers/favorites.d.ts +0 -19
- package/dist/js/helpers/favorites.d.ts.map +0 -1
- package/dist/js/helpers/favorites.js +0 -70
- package/dist/js/helpers/favorites.js.map +0 -1
- package/src/deprecated/components/ApplicationLauncher/ApplicationLauncher.tsx +0 -208
- package/src/deprecated/components/ApplicationLauncher/ApplicationLauncherContent.tsx +0 -34
- package/src/deprecated/components/ApplicationLauncher/ApplicationLauncherContext.ts +0 -6
- package/src/deprecated/components/ApplicationLauncher/ApplicationLauncherGroup.tsx +0 -8
- package/src/deprecated/components/ApplicationLauncher/ApplicationLauncherIcon.tsx +0 -22
- package/src/deprecated/components/ApplicationLauncher/ApplicationLauncherItem.tsx +0 -94
- package/src/deprecated/components/ApplicationLauncher/ApplicationLauncherItemContext.ts +0 -3
- package/src/deprecated/components/ApplicationLauncher/ApplicationLauncherSeparator.tsx +0 -9
- package/src/deprecated/components/ApplicationLauncher/ApplicationLauncherText.tsx +0 -21
- package/src/deprecated/components/ApplicationLauncher/__tests__/ApplicationLauncher.test.tsx +0 -72
- package/src/deprecated/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncherContent.test.tsx +0 -13
- package/src/deprecated/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncherGroup.test.tsx +0 -13
- package/src/deprecated/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncherIcon.test.tsx +0 -13
- package/src/deprecated/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncherSeparator.test.tsx +0 -16
- package/src/deprecated/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncherText.test.tsx +0 -13
- package/src/deprecated/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherContent.test.tsx.snap +0 -9
- package/src/deprecated/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherGroup.test.tsx.snap +0 -13
- package/src/deprecated/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherIcon.test.tsx.snap +0 -13
- package/src/deprecated/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherSeparator.test.tsx.snap +0 -14
- package/src/deprecated/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherText.test.tsx.snap +0 -13
- package/src/deprecated/components/ApplicationLauncher/__tests__/__snapshots__/ApplicationLauncher.test.tsx.snap +0 -597
- package/src/deprecated/components/ApplicationLauncher/examples/ApplicationLauncher.md +0 -79
- package/src/deprecated/components/ApplicationLauncher/examples/ApplicationLauncherAlignRight.tsx +0 -33
- package/src/deprecated/components/ApplicationLauncher/examples/ApplicationLauncherAlignTop.tsx +0 -31
- package/src/deprecated/components/ApplicationLauncher/examples/ApplicationLauncherBasic.tsx +0 -23
- package/src/deprecated/components/ApplicationLauncher/examples/ApplicationLauncherCustomIcon.tsx +0 -32
- package/src/deprecated/components/ApplicationLauncher/examples/ApplicationLauncherDisabled.tsx +0 -25
- package/src/deprecated/components/ApplicationLauncher/examples/ApplicationLauncherDocumentBody.tsx +0 -31
- package/src/deprecated/components/ApplicationLauncher/examples/ApplicationLauncherFavoritesAndSearch.tsx +0 -108
- package/src/deprecated/components/ApplicationLauncher/examples/ApplicationLauncherRouterLink.tsx +0 -56
- package/src/deprecated/components/ApplicationLauncher/examples/ApplicationLauncherSectionsAndIcons.tsx +0 -47
- package/src/deprecated/components/ApplicationLauncher/examples/ApplicationLauncherTooltip.tsx +0 -35
- package/src/deprecated/components/ApplicationLauncher/index.ts +0 -9
- package/src/deprecated/components/ContextSelector/ContextSelector.tsx +0 -231
- package/src/deprecated/components/ContextSelector/ContextSelectorFooter.tsx +0 -21
- package/src/deprecated/components/ContextSelector/ContextSelectorItem.tsx +0 -78
- package/src/deprecated/components/ContextSelector/ContextSelectorMenuList.tsx +0 -51
- package/src/deprecated/components/ContextSelector/ContextSelectorToggle.tsx +0 -132
- package/src/deprecated/components/ContextSelector/__tests__/ContextSelector.test.tsx +0 -54
- package/src/deprecated/components/ContextSelector/__tests__/ContextSelectorFooter.test.tsx +0 -8
- package/src/deprecated/components/ContextSelector/__tests__/ContextSelectorItem.test.tsx +0 -38
- package/src/deprecated/components/ContextSelector/__tests__/ContextSelectorMenuList.test.tsx +0 -22
- package/src/deprecated/components/ContextSelector/__tests__/ContextSelectorToggle.test.tsx +0 -60
- package/src/deprecated/components/ContextSelector/__tests__/__snapshots__/ContextSelector.test.tsx.snap +0 -411
- package/src/deprecated/components/ContextSelector/__tests__/__snapshots__/ContextSelectorFooter.test.tsx.snap +0 -11
- package/src/deprecated/components/ContextSelector/__tests__/__snapshots__/ContextSelectorItem.test.tsx.snap +0 -30
- package/src/deprecated/components/ContextSelector/__tests__/__snapshots__/ContextSelectorMenuList.test.tsx.snap +0 -123
- package/src/deprecated/components/ContextSelector/__tests__/__snapshots__/ContextSelectorToggle.test.tsx.snap +0 -161
- package/src/deprecated/components/ContextSelector/contextSelectorConstants.tsx +0 -6
- package/src/deprecated/components/ContextSelector/examples/ContextSelector.md +0 -25
- package/src/deprecated/components/ContextSelector/examples/ContextSelectorBasic.tsx +0 -85
- package/src/deprecated/components/ContextSelector/examples/ContextSelectorPlainText.tsx +0 -85
- package/src/deprecated/components/ContextSelector/examples/ContextSelectorWithFooter.tsx +0 -92
- package/src/deprecated/components/ContextSelector/index.ts +0 -3
- package/src/deprecated/components/Dropdown/BadgeToggle.tsx +0 -83
- package/src/deprecated/components/Dropdown/Dropdown.tsx +0 -115
- package/src/deprecated/components/Dropdown/DropdownGroup.tsx +0 -36
- package/src/deprecated/components/Dropdown/DropdownItem.tsx +0 -113
- package/src/deprecated/components/Dropdown/DropdownMenu.tsx +0 -254
- package/src/deprecated/components/Dropdown/DropdownSeparator.tsx +0 -42
- package/src/deprecated/components/Dropdown/DropdownToggle.tsx +0 -138
- package/src/deprecated/components/Dropdown/DropdownToggleAction.tsx +0 -46
- package/src/deprecated/components/Dropdown/DropdownToggleCheckbox.tsx +0 -130
- package/src/deprecated/components/Dropdown/DropdownWithContext.tsx +0 -193
- package/src/deprecated/components/Dropdown/InternalDropdownItem.tsx +0 -292
- package/src/deprecated/components/Dropdown/KebabToggle.tsx +0 -73
- package/src/deprecated/components/Dropdown/Toggle.tsx +0 -183
- package/src/deprecated/components/Dropdown/__tests__/Dropdown.test.tsx +0 -278
- package/src/deprecated/components/Dropdown/__tests__/DropdownGroup.test.tsx +0 -10
- package/src/deprecated/components/Dropdown/__tests__/DropdownToggle.test.tsx +0 -223
- package/src/deprecated/components/Dropdown/__tests__/DropdownToggleAction.test.tsx +0 -31
- package/src/deprecated/components/Dropdown/__tests__/DropdownToggleCheckbox.test.tsx +0 -65
- package/src/deprecated/components/Dropdown/__tests__/Generated/DropdownItem.test.tsx +0 -31
- package/src/deprecated/components/Dropdown/__tests__/Generated/DropdownMenu.test.tsx +0 -23
- package/src/deprecated/components/Dropdown/__tests__/Generated/DropdownSeparator.test.tsx +0 -17
- package/src/deprecated/components/Dropdown/__tests__/Generated/KebabToggle.test.tsx +0 -28
- package/src/deprecated/components/Dropdown/__tests__/Generated/__snapshots__/DropdownItem.test.tsx.snap +0 -9
- package/src/deprecated/components/Dropdown/__tests__/Generated/__snapshots__/DropdownMenu.test.tsx.snap +0 -16
- package/src/deprecated/components/Dropdown/__tests__/Generated/__snapshots__/DropdownSeparator.test.tsx.snap +0 -14
- package/src/deprecated/components/Dropdown/__tests__/Generated/__snapshots__/KebabToggle.test.tsx.snap +0 -27
- package/src/deprecated/components/Dropdown/__tests__/InternalDropdownItem.test.tsx +0 -83
- package/src/deprecated/components/Dropdown/__tests__/Toggle.test.tsx +0 -13
- package/src/deprecated/components/Dropdown/__tests__/__snapshots__/Dropdown.test.tsx.snap +0 -978
- package/src/deprecated/components/Dropdown/__tests__/__snapshots__/DropdownGroup.test.tsx.snap +0 -21
- package/src/deprecated/components/Dropdown/__tests__/__snapshots__/DropdownToggle.test.tsx.snap +0 -350
- package/src/deprecated/components/Dropdown/__tests__/__snapshots__/DropdownToggleAction.test.tsx.snap +0 -33
- package/src/deprecated/components/Dropdown/__tests__/__snapshots__/DropdownToggleCheckbox.test.tsx.snap +0 -149
- package/src/deprecated/components/Dropdown/__tests__/__snapshots__/InternalDropdownItem.test.tsx.snap +0 -178
- package/src/deprecated/components/Dropdown/__tests__/__snapshots__/Toggle.test.tsx.snap +0 -64
- package/src/deprecated/components/Dropdown/dropdownConstants.tsx +0 -64
- package/src/deprecated/components/Dropdown/examples/Dropdown.md +0 -213
- package/src/deprecated/components/Dropdown/examples/DropdownAlignmentOnBreakpoints.tsx +0 -64
- package/src/deprecated/components/Dropdown/examples/DropdownAppendBodyVsParent.tsx +0 -84
- package/src/deprecated/components/Dropdown/examples/DropdownBadge.tsx +0 -46
- package/src/deprecated/components/Dropdown/examples/DropdownBasic.tsx +0 -59
- package/src/deprecated/components/Dropdown/examples/DropdownBasicPanel.tsx +0 -34
- package/src/deprecated/components/Dropdown/examples/DropdownDescriptions.tsx +0 -55
- package/src/deprecated/components/Dropdown/examples/DropdownDirectionUp.tsx +0 -64
- package/src/deprecated/components/Dropdown/examples/DropdownDisabled.tsx +0 -57
- package/src/deprecated/components/Dropdown/examples/DropdownGroups.tsx +0 -55
- package/src/deprecated/components/Dropdown/examples/DropdownIconOnly.tsx +0 -59
- package/src/deprecated/components/Dropdown/examples/DropdownImageAndText.tsx +0 -64
- package/src/deprecated/components/Dropdown/examples/DropdownInitialSelection.tsx +0 -57
- package/src/deprecated/components/Dropdown/examples/DropdownKebab.tsx +0 -54
- package/src/deprecated/components/Dropdown/examples/DropdownPlainTextToggle.tsx +0 -59
- package/src/deprecated/components/Dropdown/examples/DropdownPositionRight.tsx +0 -64
- package/src/deprecated/components/Dropdown/examples/DropdownPrimaryToggle.tsx +0 -57
- package/src/deprecated/components/Dropdown/examples/DropdownRouterLink.tsx +0 -36
- package/src/deprecated/components/Dropdown/examples/DropdownSecondaryToggle.tsx +0 -57
- package/src/deprecated/components/Dropdown/examples/DropdownSplitButton.tsx +0 -67
- package/src/deprecated/components/Dropdown/examples/DropdownSplitButtonAction.tsx +0 -105
- package/src/deprecated/components/Dropdown/examples/DropdownSplitButtonActionPrimary.tsx +0 -107
- package/src/deprecated/components/Dropdown/examples/DropdownSplitButtonActionSecondary.tsx +0 -107
- package/src/deprecated/components/Dropdown/examples/DropdownSplitButtonDisabled.tsx +0 -73
- package/src/deprecated/components/Dropdown/examples/DropdownSplitButtonProgressCheckbox.tsx +0 -140
- package/src/deprecated/components/Dropdown/examples/DropdownSplitButtonText.tsx +0 -69
- package/src/deprecated/components/Dropdown/index.ts +0 -12
- package/src/deprecated/components/OptionsMenu/OptionsMenu.tsx +0 -99
- package/src/deprecated/components/OptionsMenu/OptionsMenuItem.tsx +0 -47
- package/src/deprecated/components/OptionsMenu/OptionsMenuItemGroup.tsx +0 -35
- package/src/deprecated/components/OptionsMenu/OptionsMenuSeparator.tsx +0 -8
- package/src/deprecated/components/OptionsMenu/OptionsMenuToggle.tsx +0 -67
- package/src/deprecated/components/OptionsMenu/OptionsMenuToggleWithText.tsx +0 -146
- package/src/deprecated/components/OptionsMenu/__tests__/Generated/OptionsMenuItem.test.tsx +0 -24
- package/src/deprecated/components/OptionsMenu/__tests__/Generated/OptionsMenuItemGroup.test.tsx +0 -21
- package/src/deprecated/components/OptionsMenu/__tests__/Generated/OptionsMenuSeparator.test.tsx +0 -13
- package/src/deprecated/components/OptionsMenu/__tests__/Generated/OptionsMenuToggle.test.tsx +0 -28
- package/src/deprecated/components/OptionsMenu/__tests__/Generated/OptionsMenuToggleWithText.test.tsx +0 -28
- package/src/deprecated/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuItem.test.tsx.snap +0 -24
- package/src/deprecated/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuItemGroup.test.tsx.snap +0 -18
- package/src/deprecated/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuSeparator.test.tsx.snap +0 -10
- package/src/deprecated/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuToggle.test.tsx.snap +0 -42
- package/src/deprecated/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuToggleWithText.test.tsx.snap +0 -32
- package/src/deprecated/components/OptionsMenu/__tests__/OptionsMenu.test.tsx +0 -134
- package/src/deprecated/components/OptionsMenu/__tests__/__snapshots__/OptionsMenu.test.tsx.snap +0 -681
- package/src/deprecated/components/OptionsMenu/examples/OptionsMenu.md +0 -574
- package/src/deprecated/components/OptionsMenu/index.ts +0 -6
- package/src/deprecated/components/PageHeader/PageHeader.tsx +0 -103
- package/src/deprecated/components/PageHeader/PageHeaderTools.tsx +0 -21
- package/src/deprecated/components/PageHeader/PageHeaderToolsGroup.tsx +0 -43
- package/src/deprecated/components/PageHeader/PageHeaderToolsItem.tsx +0 -47
- package/src/deprecated/components/PageHeader/examples/PageHeader.md +0 -19
- package/src/deprecated/components/PageHeader/examples/PageVerticalNavUsingPageHeaderComponent.tsx +0 -42
- package/src/deprecated/components/PageHeader/index.ts +0 -4
- package/src/deprecated/components/PageHeader/tests/PageHeader.test.tsx +0 -30
- package/src/deprecated/components/PageHeader/tests/PageHeaderTools.test.tsx +0 -17
- package/src/deprecated/components/PageHeader/tests/PageHeaderToolsGroup.test.tsx +0 -17
- package/src/deprecated/components/PageHeader/tests/PageHeaderToolsItem.test.tsx +0 -15
- package/src/deprecated/components/PageHeader/tests/__snapshots__/PageHeader.test.tsx.snap +0 -59
- package/src/deprecated/components/PageHeader/tests/__snapshots__/PageHeaderTools.test.tsx.snap +0 -13
- package/src/deprecated/components/PageHeader/tests/__snapshots__/PageHeaderToolsGroup.test.tsx.snap +0 -13
- package/src/deprecated/components/PageHeader/tests/__snapshots__/PageHeaderToolsItem.test.tsx.snap +0 -14
- package/src/deprecated/components/Select/Select.tsx +0 -1495
- package/src/deprecated/components/Select/SelectGroup.tsx +0 -36
- package/src/deprecated/components/Select/SelectMenu.tsx +0 -276
- package/src/deprecated/components/Select/SelectOption.tsx +0 -463
- package/src/deprecated/components/Select/SelectToggle.tsx +0 -367
- package/src/deprecated/components/Select/__tests__/Select.test.tsx +0 -589
- package/src/deprecated/components/Select/__tests__/SelectGroup.test.tsx +0 -28
- package/src/deprecated/components/Select/__tests__/SelectOption.test.tsx +0 -246
- package/src/deprecated/components/Select/__tests__/SelectToggle.test.tsx +0 -92
- package/src/deprecated/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +0 -2415
- package/src/deprecated/components/Select/__tests__/__snapshots__/SelectGroup.test.tsx.snap +0 -24
- package/src/deprecated/components/Select/__tests__/__snapshots__/SelectOption.test.tsx.snap +0 -234
- package/src/deprecated/components/Select/__tests__/__snapshots__/SelectToggle.test.tsx.snap +0 -34
- package/src/deprecated/components/Select/examples/Select.md +0 -2938
- package/src/deprecated/components/Select/index.ts +0 -4
- package/src/deprecated/components/Select/selectConstants.tsx +0 -39
- package/src/helpers/favorites.ts +0 -81
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { InternalDropdownItemProps, InternalDropdownItem } from './InternalDropdownItem';
|
|
3
|
-
import { DropdownArrowContext } from './dropdownConstants';
|
|
4
|
-
import { useOUIAProps, OUIAProps } from '../../../helpers';
|
|
5
|
-
|
|
6
|
-
export interface DropdownItemProps extends Omit<InternalDropdownItemProps, 'tabIndex'>, OUIAProps {
|
|
7
|
-
/** Anything which can be rendered as dropdown item */
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
/** Classes applied to root element of dropdown item */
|
|
10
|
-
className?: string;
|
|
11
|
-
/** Class to be applied to list item */
|
|
12
|
-
listItemClassName?: string;
|
|
13
|
-
/**
|
|
14
|
-
* A ReactElement to render, or a string to use as the component tag.
|
|
15
|
-
* Example: component={<Link to="/components/alert/">Alert</Link>}
|
|
16
|
-
* Example: component="button"
|
|
17
|
-
* If React.isValidElement(component) the className prop will be injected unless styleChildren="false"
|
|
18
|
-
*/
|
|
19
|
-
component?: React.ReactNode;
|
|
20
|
-
/** ID for the component element */
|
|
21
|
-
componentID?: string;
|
|
22
|
-
/** Whether to set className on component when React.isValidElement(component) */
|
|
23
|
-
styleChildren?: boolean;
|
|
24
|
-
/** Render dropdown item as disabled option */
|
|
25
|
-
isDisabled?: boolean;
|
|
26
|
-
/** Render dropdown item as aria-disabled option */
|
|
27
|
-
isAriaDisabled?: boolean;
|
|
28
|
-
/** Render dropdown item as non-interactive item */
|
|
29
|
-
isPlainText?: boolean;
|
|
30
|
-
/** Default hyperlink location */
|
|
31
|
-
href?: string;
|
|
32
|
-
/** Tooltip to display when hovered over the item */
|
|
33
|
-
tooltip?: React.ReactNode;
|
|
34
|
-
/** Additional tooltip props forwarded to the Tooltip component */
|
|
35
|
-
tooltipProps?: any;
|
|
36
|
-
/** Additional node to include alongside item within the <li> */
|
|
37
|
-
additionalChild?: React.ReactNode;
|
|
38
|
-
/** Custom item rendering that receives the DropdownContext */
|
|
39
|
-
customChild?: React.ReactNode;
|
|
40
|
-
/** tabIndex to use, null to unset it */
|
|
41
|
-
tabIndex?: number | null;
|
|
42
|
-
/** An image to display within the DropdownItem, appearing before any component children */
|
|
43
|
-
icon?: React.ReactNode;
|
|
44
|
-
/** Initial focus on the item when the menu is opened (Note: Only applicable to one of the items) */
|
|
45
|
-
autoFocus?: boolean;
|
|
46
|
-
/** A short description of the dropdown item, displayed under the dropdown item content */
|
|
47
|
-
description?: React.ReactNode;
|
|
48
|
-
/** Value to overwrite the randomly generated data-ouia-component-id.*/
|
|
49
|
-
ouiaId?: number | string;
|
|
50
|
-
/** Set the value of data-ouia-safe. Only set to true when the component is in a static state, i.e. no animations are occurring. At all other times, this value must be false. */
|
|
51
|
-
ouiaSafe?: boolean;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export const DropdownItem: React.FunctionComponent<DropdownItemProps> = ({
|
|
55
|
-
children,
|
|
56
|
-
className,
|
|
57
|
-
component = 'a',
|
|
58
|
-
isDisabled = false,
|
|
59
|
-
isAriaDisabled = false,
|
|
60
|
-
isPlainText = false,
|
|
61
|
-
href,
|
|
62
|
-
tooltip,
|
|
63
|
-
tooltipProps = {},
|
|
64
|
-
listItemClassName,
|
|
65
|
-
onClick,
|
|
66
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
67
|
-
ref, // Types of Ref are different for React.FunctionComponent vs React.Component
|
|
68
|
-
additionalChild,
|
|
69
|
-
customChild,
|
|
70
|
-
tabIndex = -1,
|
|
71
|
-
icon = null,
|
|
72
|
-
autoFocus,
|
|
73
|
-
description = null,
|
|
74
|
-
styleChildren,
|
|
75
|
-
ouiaId,
|
|
76
|
-
ouiaSafe,
|
|
77
|
-
...props
|
|
78
|
-
}: DropdownItemProps) => {
|
|
79
|
-
const ouiaProps = useOUIAProps(DropdownItem.displayName, ouiaId, ouiaSafe);
|
|
80
|
-
return (
|
|
81
|
-
<DropdownArrowContext.Consumer>
|
|
82
|
-
{(context) => (
|
|
83
|
-
<InternalDropdownItem
|
|
84
|
-
context={context}
|
|
85
|
-
role="menuitem"
|
|
86
|
-
tabIndex={tabIndex}
|
|
87
|
-
className={className}
|
|
88
|
-
component={component}
|
|
89
|
-
isDisabled={isDisabled}
|
|
90
|
-
isAriaDisabled={isAriaDisabled}
|
|
91
|
-
isPlainText={isPlainText}
|
|
92
|
-
href={href}
|
|
93
|
-
tooltip={tooltip}
|
|
94
|
-
tooltipProps={tooltipProps}
|
|
95
|
-
listItemClassName={listItemClassName}
|
|
96
|
-
onClick={onClick}
|
|
97
|
-
additionalChild={additionalChild}
|
|
98
|
-
customChild={customChild}
|
|
99
|
-
icon={icon}
|
|
100
|
-
autoFocus={autoFocus}
|
|
101
|
-
styleChildren={styleChildren}
|
|
102
|
-
description={description}
|
|
103
|
-
{...ouiaProps}
|
|
104
|
-
{...props}
|
|
105
|
-
>
|
|
106
|
-
{children}
|
|
107
|
-
</InternalDropdownItem>
|
|
108
|
-
)}
|
|
109
|
-
</DropdownArrowContext.Consumer>
|
|
110
|
-
);
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
DropdownItem.displayName = 'DropdownItem';
|
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as ReactDOM from 'react-dom';
|
|
3
|
-
import styles from '@patternfly/react-styles/css/components/Dropdown/dropdown';
|
|
4
|
-
import { css } from '@patternfly/react-styles';
|
|
5
|
-
import { keyHandler, formatBreakpointMods } from '../../../helpers/util';
|
|
6
|
-
import { DropdownPosition, DropdownArrowContext, DropdownContext } from './dropdownConstants';
|
|
7
|
-
|
|
8
|
-
export interface DropdownMenuProps {
|
|
9
|
-
/** Anything which can be rendered as dropdown items */
|
|
10
|
-
children?: React.ReactNode;
|
|
11
|
-
/** Classess applied to root element of dropdown menu */
|
|
12
|
-
className?: string;
|
|
13
|
-
/** Flag to indicate if menu is opened */
|
|
14
|
-
isOpen?: boolean;
|
|
15
|
-
/** Flag to indicate if the first dropdown item should gain initial focus, set false when adding
|
|
16
|
-
* a specific auto-focus item (like a current selection) otherwise leave as true
|
|
17
|
-
*/
|
|
18
|
-
autoFocus?: boolean;
|
|
19
|
-
/** Indicates which component will be used as dropdown menu */
|
|
20
|
-
component?: React.ReactNode;
|
|
21
|
-
/** Indicates where menu will be alligned horizontally */
|
|
22
|
-
position?: DropdownPosition | 'right' | 'left';
|
|
23
|
-
/** Indicates how the menu will align at screen size breakpoints */
|
|
24
|
-
alignments?: {
|
|
25
|
-
sm?: 'right' | 'left';
|
|
26
|
-
md?: 'right' | 'left';
|
|
27
|
-
lg?: 'right' | 'left';
|
|
28
|
-
xl?: 'right' | 'left';
|
|
29
|
-
'2xl'?: 'right' | 'left';
|
|
30
|
-
};
|
|
31
|
-
/** Flag to indicate if menu is grouped */
|
|
32
|
-
isGrouped?: boolean;
|
|
33
|
-
// Function to call on component mount
|
|
34
|
-
setMenuComponentRef?: any;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export interface DropdownMenuItem extends React.HTMLAttributes<any> {
|
|
38
|
-
isDisabled: boolean;
|
|
39
|
-
disabled: boolean;
|
|
40
|
-
isHovered: boolean;
|
|
41
|
-
ref: HTMLElement;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
class DropdownMenu extends React.Component<DropdownMenuProps> {
|
|
45
|
-
static displayName = 'DropdownMenu';
|
|
46
|
-
context!: React.ContextType<typeof DropdownContext>;
|
|
47
|
-
refsCollection = [] as HTMLElement[][];
|
|
48
|
-
|
|
49
|
-
static defaultProps: DropdownMenuProps = {
|
|
50
|
-
className: '',
|
|
51
|
-
isOpen: true,
|
|
52
|
-
autoFocus: true,
|
|
53
|
-
position: DropdownPosition.left,
|
|
54
|
-
component: 'ul',
|
|
55
|
-
isGrouped: false,
|
|
56
|
-
setMenuComponentRef: null
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
componentDidMount() {
|
|
60
|
-
document.addEventListener('keydown', this.onKeyDown);
|
|
61
|
-
const { autoFocus } = this.props;
|
|
62
|
-
|
|
63
|
-
if (autoFocus) {
|
|
64
|
-
// Focus first non-disabled element
|
|
65
|
-
const focusTargetCollection = this.refsCollection.find(
|
|
66
|
-
(ref) => ref && ref[0] && !ref[0].hasAttribute('disabled')
|
|
67
|
-
);
|
|
68
|
-
const focusTarget = focusTargetCollection && focusTargetCollection[0];
|
|
69
|
-
if (focusTarget && focusTarget.focus) {
|
|
70
|
-
setTimeout(() => focusTarget.focus());
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
componentWillUnmount = () => {
|
|
76
|
-
document.removeEventListener('keydown', this.onKeyDown);
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
static validToggleClasses = [styles.dropdownToggle, styles.dropdownToggleButton] as string[];
|
|
80
|
-
static focusFirstRef = (refCollection: HTMLElement[]) => {
|
|
81
|
-
if (refCollection && refCollection[0] && refCollection[0].focus) {
|
|
82
|
-
setTimeout(() => refCollection[0].focus());
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
onKeyDown = (event: any) => {
|
|
87
|
-
if (
|
|
88
|
-
!this.props.isOpen ||
|
|
89
|
-
!Array.from(document.activeElement.classList).find((className) =>
|
|
90
|
-
DropdownMenu.validToggleClasses.concat(this.context.toggleClass).includes(className)
|
|
91
|
-
)
|
|
92
|
-
) {
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
const refs = this.refsCollection;
|
|
96
|
-
if (event.key === 'ArrowDown') {
|
|
97
|
-
const firstFocusTargetCollection = refs.find((ref) => ref && ref[0] && !ref[0].hasAttribute('disabled'));
|
|
98
|
-
DropdownMenu.focusFirstRef(firstFocusTargetCollection);
|
|
99
|
-
event.stopPropagation();
|
|
100
|
-
} else if (event.key === 'ArrowUp') {
|
|
101
|
-
const collectionLength = refs.length;
|
|
102
|
-
const lastFocusTargetCollection = refs.slice(collectionLength - 1, collectionLength);
|
|
103
|
-
const lastFocusTarget = lastFocusTargetCollection && lastFocusTargetCollection[0];
|
|
104
|
-
DropdownMenu.focusFirstRef(lastFocusTarget);
|
|
105
|
-
event.stopPropagation();
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
shouldComponentUpdate() {
|
|
110
|
-
// reset refsCollection before updating to account for child removal between mounts
|
|
111
|
-
this.refsCollection = [] as HTMLElement[][];
|
|
112
|
-
return true;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
childKeyHandler = (index: number, innerIndex: number, position: string, custom = false) => {
|
|
116
|
-
keyHandler(
|
|
117
|
-
index,
|
|
118
|
-
innerIndex,
|
|
119
|
-
position,
|
|
120
|
-
this.refsCollection,
|
|
121
|
-
this.props.isGrouped ? this.refsCollection : React.Children.toArray(this.props.children),
|
|
122
|
-
custom
|
|
123
|
-
);
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
sendRef = (index: number, nodes: any[], isDisabled: boolean, isSeparator: boolean) => {
|
|
127
|
-
this.refsCollection[index] = [];
|
|
128
|
-
nodes.map((node, innerIndex) => {
|
|
129
|
-
if (!node) {
|
|
130
|
-
this.refsCollection[index][innerIndex] = null;
|
|
131
|
-
} else if (!node.getAttribute) {
|
|
132
|
-
// eslint-disable-next-line react/no-find-dom-node
|
|
133
|
-
this.refsCollection[index][innerIndex] = ReactDOM.findDOMNode(node) as HTMLElement;
|
|
134
|
-
} else if (isSeparator) {
|
|
135
|
-
this.refsCollection[index][innerIndex] = null;
|
|
136
|
-
} else {
|
|
137
|
-
this.refsCollection[index][innerIndex] = node;
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
extendChildren() {
|
|
143
|
-
const { children, isGrouped } = this.props;
|
|
144
|
-
if (isGrouped) {
|
|
145
|
-
let index = 0;
|
|
146
|
-
return React.Children.map(children, (groupedChildren) => {
|
|
147
|
-
const group = groupedChildren as React.ReactElement;
|
|
148
|
-
const props: { children?: React.ReactNode } = {};
|
|
149
|
-
if (group.props && group.props.children) {
|
|
150
|
-
if (Array.isArray(group.props.children)) {
|
|
151
|
-
props.children = React.Children.map(group.props.children, (option) =>
|
|
152
|
-
React.cloneElement(option as React.ReactElement, {
|
|
153
|
-
index: index++
|
|
154
|
-
})
|
|
155
|
-
);
|
|
156
|
-
} else {
|
|
157
|
-
props.children = React.cloneElement(group.props.children as React.ReactElement, {
|
|
158
|
-
index: index++
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
return React.cloneElement(group, props);
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
return React.Children.map(children, (child, index) =>
|
|
166
|
-
React.cloneElement(child as React.ReactElement, {
|
|
167
|
-
index
|
|
168
|
-
})
|
|
169
|
-
);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
render() {
|
|
173
|
-
const { className, isOpen, position, children, component, isGrouped, setMenuComponentRef, alignments, ...props } =
|
|
174
|
-
this.props;
|
|
175
|
-
return (
|
|
176
|
-
<DropdownArrowContext.Provider
|
|
177
|
-
value={{
|
|
178
|
-
keyHandler: this.childKeyHandler,
|
|
179
|
-
sendRef: this.sendRef
|
|
180
|
-
}}
|
|
181
|
-
>
|
|
182
|
-
{component === 'div' ? (
|
|
183
|
-
<DropdownContext.Consumer>
|
|
184
|
-
{({ onSelect, menuClass }) => (
|
|
185
|
-
<div
|
|
186
|
-
className={css(
|
|
187
|
-
menuClass,
|
|
188
|
-
position === DropdownPosition.right && styles.modifiers.alignRight,
|
|
189
|
-
formatBreakpointMods(alignments, styles, 'align-'),
|
|
190
|
-
className
|
|
191
|
-
)}
|
|
192
|
-
hidden={!isOpen}
|
|
193
|
-
onClick={(event) => onSelect && onSelect(event)}
|
|
194
|
-
ref={setMenuComponentRef}
|
|
195
|
-
>
|
|
196
|
-
{children}
|
|
197
|
-
</div>
|
|
198
|
-
)}
|
|
199
|
-
</DropdownContext.Consumer>
|
|
200
|
-
) : (
|
|
201
|
-
(isGrouped && (
|
|
202
|
-
<DropdownContext.Consumer>
|
|
203
|
-
{({ menuClass, menuComponent }) => {
|
|
204
|
-
const MenuComponent = (menuComponent || 'div') as any;
|
|
205
|
-
return (
|
|
206
|
-
<MenuComponent
|
|
207
|
-
{...props}
|
|
208
|
-
className={css(
|
|
209
|
-
menuClass,
|
|
210
|
-
position === DropdownPosition.right && styles.modifiers.alignRight,
|
|
211
|
-
formatBreakpointMods(alignments, styles, 'align-'),
|
|
212
|
-
className
|
|
213
|
-
)}
|
|
214
|
-
hidden={!isOpen}
|
|
215
|
-
role="menu"
|
|
216
|
-
ref={setMenuComponentRef}
|
|
217
|
-
>
|
|
218
|
-
{this.extendChildren()}
|
|
219
|
-
</MenuComponent>
|
|
220
|
-
);
|
|
221
|
-
}}
|
|
222
|
-
</DropdownContext.Consumer>
|
|
223
|
-
)) || (
|
|
224
|
-
<DropdownContext.Consumer>
|
|
225
|
-
{({ menuClass, menuComponent }) => {
|
|
226
|
-
const MenuComponent = (menuComponent || component) as any;
|
|
227
|
-
return (
|
|
228
|
-
<MenuComponent
|
|
229
|
-
{...props}
|
|
230
|
-
className={css(
|
|
231
|
-
menuClass,
|
|
232
|
-
position === DropdownPosition.right && styles.modifiers.alignRight,
|
|
233
|
-
formatBreakpointMods(alignments, styles, 'align-'),
|
|
234
|
-
className
|
|
235
|
-
)}
|
|
236
|
-
hidden={!isOpen}
|
|
237
|
-
role="menu"
|
|
238
|
-
ref={setMenuComponentRef}
|
|
239
|
-
>
|
|
240
|
-
{this.extendChildren()}
|
|
241
|
-
</MenuComponent>
|
|
242
|
-
);
|
|
243
|
-
}}
|
|
244
|
-
</DropdownContext.Consumer>
|
|
245
|
-
)
|
|
246
|
-
)}
|
|
247
|
-
</DropdownArrowContext.Provider>
|
|
248
|
-
);
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
DropdownMenu.contextType = DropdownContext;
|
|
253
|
-
|
|
254
|
-
export { DropdownMenu };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { DropdownArrowContext } from './dropdownConstants';
|
|
3
|
-
import { InternalDropdownItem } from './InternalDropdownItem';
|
|
4
|
-
import { Divider, DividerVariant } from '../../../components/Divider';
|
|
5
|
-
import { useOUIAProps, OUIAProps } from '../../../helpers';
|
|
6
|
-
|
|
7
|
-
export interface SeparatorProps extends React.HTMLProps<HTMLAnchorElement>, OUIAProps {
|
|
8
|
-
/** Classes applied to root element of dropdown item */
|
|
9
|
-
className?: string;
|
|
10
|
-
/** Click event to pass to InternalDropdownItem */
|
|
11
|
-
onClick?: (event: React.MouseEvent<HTMLAnchorElement> | React.KeyboardEvent | MouseEvent) => void;
|
|
12
|
-
/** Value to overwrite the randomly generated data-ouia-component-id.*/
|
|
13
|
-
ouiaId?: number | string;
|
|
14
|
-
/** Set the value of data-ouia-safe. Only set to true when the component is in a static state, i.e. no animations are occurring. At all other times, this value must be false. */
|
|
15
|
-
ouiaSafe?: boolean;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export const DropdownSeparator: React.FunctionComponent<SeparatorProps> = ({
|
|
19
|
-
className = '',
|
|
20
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
21
|
-
ref, // Types of Ref are different for React.FunctionComponent vs React.Component
|
|
22
|
-
ouiaId,
|
|
23
|
-
ouiaSafe,
|
|
24
|
-
...props
|
|
25
|
-
}: SeparatorProps) => {
|
|
26
|
-
const ouiaProps = useOUIAProps(DropdownSeparator.displayName, ouiaId, ouiaSafe);
|
|
27
|
-
return (
|
|
28
|
-
<DropdownArrowContext.Consumer>
|
|
29
|
-
{(context) => (
|
|
30
|
-
<InternalDropdownItem
|
|
31
|
-
{...props}
|
|
32
|
-
context={context}
|
|
33
|
-
component={<Divider component={DividerVariant.div} />}
|
|
34
|
-
className={className}
|
|
35
|
-
role="separator"
|
|
36
|
-
{...ouiaProps}
|
|
37
|
-
/>
|
|
38
|
-
)}
|
|
39
|
-
</DropdownArrowContext.Consumer>
|
|
40
|
-
);
|
|
41
|
-
};
|
|
42
|
-
DropdownSeparator.displayName = 'DropdownSeparator';
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import CaretDownIcon from '@patternfly/react-icons/dist/esm/icons/caret-down-icon';
|
|
3
|
-
import { Toggle } from './Toggle';
|
|
4
|
-
import styles from '@patternfly/react-styles/css/components/Dropdown/dropdown';
|
|
5
|
-
import { DropdownContext } from './dropdownConstants';
|
|
6
|
-
import { css } from '@patternfly/react-styles';
|
|
7
|
-
import { useOUIAProps, OUIAProps } from '../../../helpers';
|
|
8
|
-
|
|
9
|
-
export interface DropdownToggleProps extends React.HTMLProps<HTMLButtonElement>, OUIAProps {
|
|
10
|
-
/** HTML ID of dropdown toggle */
|
|
11
|
-
id?: string;
|
|
12
|
-
/** Anything which can be rendered as dropdown toggle button */
|
|
13
|
-
children?: React.ReactNode;
|
|
14
|
-
/** Classes applied to root element of dropdown toggle button */
|
|
15
|
-
className?: string;
|
|
16
|
-
/** Flag to indicate if menu is opened */
|
|
17
|
-
isOpen?: boolean;
|
|
18
|
-
/** Callback called when toggle is clicked */
|
|
19
|
-
onToggle?: (
|
|
20
|
-
event: MouseEvent | TouchEvent | KeyboardEvent | React.KeyboardEvent<any> | React.MouseEvent<HTMLButtonElement>,
|
|
21
|
-
isOpen: boolean
|
|
22
|
-
) => void;
|
|
23
|
-
/** Element which wraps toggle */
|
|
24
|
-
parentRef?: HTMLElement;
|
|
25
|
-
/** The menu element */
|
|
26
|
-
getMenuRef?: () => HTMLElement;
|
|
27
|
-
/** Forces active state */
|
|
28
|
-
isActive?: boolean;
|
|
29
|
-
/** Display the toggle with no border or background */
|
|
30
|
-
isPlain?: boolean;
|
|
31
|
-
/** Display the toggle in text only mode */
|
|
32
|
-
isText?: boolean;
|
|
33
|
-
/** Whether or not the <div> has a disabled state */
|
|
34
|
-
isDisabled?: boolean;
|
|
35
|
-
/** Alternate styles for the dropdown toggle button */
|
|
36
|
-
toggleVariant?: 'primary' | 'secondary' | 'default';
|
|
37
|
-
/** An image to display within the dropdown toggle, appearing before any component children */
|
|
38
|
-
icon?: React.ReactNode;
|
|
39
|
-
/** The icon to display for the toggle, appearing after any component children. Defaults to CaretDownIcon. Set to null to not show an icon. */
|
|
40
|
-
toggleIndicator?: React.ElementType | null;
|
|
41
|
-
/** Elements to display before the toggle button. When included, renders the toggle as a split button. */
|
|
42
|
-
splitButtonItems?: React.ReactNode[];
|
|
43
|
-
/** Variant of split button toggle */
|
|
44
|
-
splitButtonVariant?: 'action' | 'checkbox';
|
|
45
|
-
/** Accessible label for the dropdown toggle button */
|
|
46
|
-
'aria-label'?: string;
|
|
47
|
-
/** Accessibility property to indicate correct has popup */
|
|
48
|
-
'aria-haspopup'?: boolean | 'listbox' | 'menu' | 'dialog' | 'grid' | 'tree';
|
|
49
|
-
/** Type to put on the button */
|
|
50
|
-
type?: 'button' | 'submit' | 'reset';
|
|
51
|
-
/** Callback called when the Enter key is pressed */
|
|
52
|
-
onEnter?: (event?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
53
|
-
/** Value to overwrite the randomly generated data-ouia-component-id.*/
|
|
54
|
-
ouiaId?: number | string;
|
|
55
|
-
/** Set the value of data-ouia-safe. Only set to true when the component is in a static state, i.e. no animations are occurring. At all other times, this value must be false. */
|
|
56
|
-
ouiaSafe?: boolean;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export const DropdownToggle: React.FunctionComponent<DropdownToggleProps> = ({
|
|
60
|
-
id = '',
|
|
61
|
-
children = null,
|
|
62
|
-
className = '',
|
|
63
|
-
isOpen = false,
|
|
64
|
-
parentRef = null,
|
|
65
|
-
getMenuRef = null,
|
|
66
|
-
isDisabled = false,
|
|
67
|
-
isPlain = false,
|
|
68
|
-
isText = false,
|
|
69
|
-
toggleVariant = 'default',
|
|
70
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
71
|
-
isActive = false,
|
|
72
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
73
|
-
onToggle = (_evt: any, _isOpen: boolean) => undefined as any,
|
|
74
|
-
icon = null,
|
|
75
|
-
toggleIndicator: ToggleIndicator = CaretDownIcon,
|
|
76
|
-
splitButtonItems,
|
|
77
|
-
splitButtonVariant = 'checkbox',
|
|
78
|
-
'aria-haspopup': ariaHasPopup,
|
|
79
|
-
ouiaId,
|
|
80
|
-
ouiaSafe,
|
|
81
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
82
|
-
ref, // Types of Ref are different for React.FunctionComponent vs React.Component
|
|
83
|
-
...props
|
|
84
|
-
}: DropdownToggleProps) => {
|
|
85
|
-
const ouiaProps = useOUIAProps(DropdownToggle.displayName, ouiaId, ouiaSafe);
|
|
86
|
-
const toggle = (
|
|
87
|
-
<DropdownContext.Consumer>
|
|
88
|
-
{({ toggleTextClass, toggleIndicatorClass, toggleIconClass }) => (
|
|
89
|
-
<Toggle
|
|
90
|
-
{...props}
|
|
91
|
-
id={id}
|
|
92
|
-
className={className}
|
|
93
|
-
isOpen={isOpen}
|
|
94
|
-
parentRef={parentRef}
|
|
95
|
-
getMenuRef={getMenuRef}
|
|
96
|
-
isActive={isActive}
|
|
97
|
-
isDisabled={isDisabled}
|
|
98
|
-
isPlain={isPlain}
|
|
99
|
-
isText={isText}
|
|
100
|
-
toggleVariant={toggleVariant}
|
|
101
|
-
onToggle={onToggle}
|
|
102
|
-
aria-haspopup={ariaHasPopup}
|
|
103
|
-
{...ouiaProps}
|
|
104
|
-
{...(splitButtonItems && { isSplitButton: true, 'aria-label': props['aria-label'] || 'Select' })}
|
|
105
|
-
>
|
|
106
|
-
{icon && <span className={css(toggleIconClass)}>{icon}</span>}
|
|
107
|
-
{children && <span className={ToggleIndicator && css(toggleTextClass)}>{children}</span>}
|
|
108
|
-
{ToggleIndicator && (
|
|
109
|
-
<span className={css(!splitButtonItems && toggleIndicatorClass)}>
|
|
110
|
-
<ToggleIndicator />
|
|
111
|
-
</span>
|
|
112
|
-
)}
|
|
113
|
-
</Toggle>
|
|
114
|
-
)}
|
|
115
|
-
</DropdownContext.Consumer>
|
|
116
|
-
);
|
|
117
|
-
|
|
118
|
-
if (splitButtonItems) {
|
|
119
|
-
return (
|
|
120
|
-
<div
|
|
121
|
-
className={css(
|
|
122
|
-
styles.dropdownToggle,
|
|
123
|
-
styles.modifiers.splitButton,
|
|
124
|
-
splitButtonVariant === 'action' && styles.modifiers.action,
|
|
125
|
-
toggleVariant === 'primary' && splitButtonVariant === 'action' && styles.modifiers.primary,
|
|
126
|
-
toggleVariant === 'secondary' && splitButtonVariant === 'action' && styles.modifiers.secondary,
|
|
127
|
-
isDisabled && styles.modifiers.disabled
|
|
128
|
-
)}
|
|
129
|
-
>
|
|
130
|
-
{splitButtonItems}
|
|
131
|
-
{toggle}
|
|
132
|
-
</div>
|
|
133
|
-
);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
return toggle;
|
|
137
|
-
};
|
|
138
|
-
DropdownToggle.displayName = 'DropdownToggle';
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import styles from '@patternfly/react-styles/css/components/Dropdown/dropdown';
|
|
3
|
-
import { css } from '@patternfly/react-styles';
|
|
4
|
-
|
|
5
|
-
export interface DropdownToggleActionProps {
|
|
6
|
-
/** Additional classes added to the DropdownToggleAction */
|
|
7
|
-
className?: string;
|
|
8
|
-
/** Flag to show if the action button is disabled */
|
|
9
|
-
isDisabled?: boolean;
|
|
10
|
-
/** A callback for when the action button is clicked */
|
|
11
|
-
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
12
|
-
/** Element to be rendered inside the <button> */
|
|
13
|
-
children?: React.ReactNode;
|
|
14
|
-
/** Id of the action button */
|
|
15
|
-
id?: string;
|
|
16
|
-
/** Aria-label of the action button */
|
|
17
|
-
'aria-label'?: string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
class DropdownToggleAction extends React.Component<DropdownToggleActionProps> {
|
|
21
|
-
static displayName = 'DropdownToggleAction';
|
|
22
|
-
|
|
23
|
-
static defaultProps: DropdownToggleActionProps = {
|
|
24
|
-
className: '',
|
|
25
|
-
isDisabled: false,
|
|
26
|
-
onClick: () => {}
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
render() {
|
|
30
|
-
const { id, className, onClick, isDisabled, children, ...props } = this.props;
|
|
31
|
-
|
|
32
|
-
return (
|
|
33
|
-
<button
|
|
34
|
-
id={id}
|
|
35
|
-
className={css(styles.dropdownToggleButton, className)}
|
|
36
|
-
onClick={onClick}
|
|
37
|
-
{...(isDisabled && { disabled: true, 'aria-disabled': true })}
|
|
38
|
-
{...props}
|
|
39
|
-
>
|
|
40
|
-
{children}
|
|
41
|
-
</button>
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export { DropdownToggleAction };
|