@patternfly/react-core 6.0.0-alpha.56 → 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 +12 -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/components/Toolbar/ToolbarGroup.d.ts +5 -5
- package/dist/esm/components/Toolbar/ToolbarGroup.d.ts.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarItem.d.ts +5 -5
- package/dist/esm/components/Toolbar/ToolbarItem.d.ts.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarToggleGroup.d.ts +5 -5
- package/dist/esm/components/Toolbar/ToolbarToggleGroup.d.ts.map +1 -1
- package/dist/esm/demos/DashboardHeader.js +1 -1
- package/dist/esm/demos/DashboardHeader.js.map +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/components/Toolbar/ToolbarGroup.d.ts +5 -5
- package/dist/js/components/Toolbar/ToolbarGroup.d.ts.map +1 -1
- package/dist/js/components/Toolbar/ToolbarItem.d.ts +5 -5
- package/dist/js/components/Toolbar/ToolbarItem.d.ts.map +1 -1
- package/dist/js/components/Toolbar/ToolbarToggleGroup.d.ts +5 -5
- package/dist/js/components/Toolbar/ToolbarToggleGroup.d.ts.map +1 -1
- package/dist/js/demos/DashboardHeader.js +1 -1
- package/dist/js/demos/DashboardHeader.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/components/Toolbar/ToolbarGroup.tsx +5 -5
- package/src/components/Toolbar/ToolbarItem.tsx +5 -5
- package/src/components/Toolbar/ToolbarToggleGroup.tsx +5 -5
- package/src/components/Toolbar/examples/ToolbarStacked.tsx +1 -1
- package/src/demos/CardView/examples/CardView.tsx +1 -1
- package/src/demos/DashboardHeader.tsx +1 -1
- package/src/demos/DataList/examples/DataListBasic.tsx +1 -1
- package/src/demos/NotificationDrawer/examples/NotificationDrawerBasic.tsx +1 -1
- package/src/demos/NotificationDrawer/examples/NotificationDrawerGrouped.tsx +1 -1
- package/src/demos/RTL/examples/PaginatedTable.jsx +1 -1
- package/src/demos/RTL/examples/PaginatedTable.tsx +1 -1
- package/src/demos/examples/Masthead/MastheadWithUtilitiesAndUserDropdownMenu.tsx +1 -1
- package/src/demos/examples/Nav/NavFlyout.tsx +1 -1
- package/src/demos/examples/Nav/NavHorizontal.tsx +1 -1
- package/src/demos/examples/Nav/NavHorizontalWithSubnav.tsx +1 -1
- package/src/demos/examples/Nav/NavManual.tsx +1 -1
- package/src/demos/examples/Page/PageStickySectionBreadcrumb.tsx +1 -1
- package/src/demos/examples/Page/PageStickySectionGroup.tsx +1 -1
- package/src/demos/examples/Page/PageStickySectionGroupAlternate.tsx +1 -1
- package/src/demos/examples/PrimaryDetail/PrimaryDetailCardView.tsx +1 -1
- package/src/demos/examples/Toolbar/ConsoleLogViewerToolbar.tsx +2 -2
- 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,231 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import styles from '@patternfly/react-styles/css/components/ContextSelector/context-selector';
|
|
3
|
-
import { css } from '@patternfly/react-styles';
|
|
4
|
-
import { ContextSelectorToggle } from './ContextSelectorToggle';
|
|
5
|
-
import { ContextSelectorMenuList } from './ContextSelectorMenuList';
|
|
6
|
-
import { ContextSelectorContext } from './contextSelectorConstants';
|
|
7
|
-
import { FocusTrap, getUniqueId } from '../../../helpers';
|
|
8
|
-
import { Popper } from '../../../helpers/Popper/Popper';
|
|
9
|
-
import { getOUIAProps, OUIAProps, getDefaultOUIAId } from '../../../helpers';
|
|
10
|
-
import { SearchInput } from '../../../components/SearchInput';
|
|
11
|
-
|
|
12
|
-
export interface ContextSelectorProps extends OUIAProps {
|
|
13
|
-
/** content rendered inside the Context Selector */
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
/** Classes applied to root element of Context Selector */
|
|
16
|
-
className?: string;
|
|
17
|
-
/** Flag to indicate if Context Selector is opened */
|
|
18
|
-
isOpen?: boolean;
|
|
19
|
-
/** Function callback called when user clicks toggle button */
|
|
20
|
-
onToggle?: (event: any, value: boolean) => void;
|
|
21
|
-
/** Function callback called when user selects item */
|
|
22
|
-
onSelect?: (event: any, value: React.ReactNode) => void;
|
|
23
|
-
/** The container to append the menu to. Defaults to 'inline'.
|
|
24
|
-
* If your menu is being cut off you can append it to an element higher up the DOM tree.
|
|
25
|
-
* Some examples:
|
|
26
|
-
* menuAppendTo="parent"
|
|
27
|
-
* menuAppendTo={() => document.body}
|
|
28
|
-
* menuAppendTo={document.getElementById('target')}
|
|
29
|
-
*/
|
|
30
|
-
menuAppendTo?: HTMLElement | (() => HTMLElement) | 'inline' | 'parent';
|
|
31
|
-
/** Flag indicating that the context selector should expand to full height */
|
|
32
|
-
isFullHeight?: boolean;
|
|
33
|
-
/** Labels the Context Selector for Screen Readers */
|
|
34
|
-
screenReaderLabel?: string;
|
|
35
|
-
/** Component or string that will be used in the context selector.
|
|
36
|
-
* This prop is placed in a button, and cannot contain any interactive elements
|
|
37
|
-
*/
|
|
38
|
-
toggleText?: React.ReactNode;
|
|
39
|
-
/** Aria-label for the Context Selector Search Button */
|
|
40
|
-
searchButtonAriaLabel?: string;
|
|
41
|
-
/** Value in the Search field */
|
|
42
|
-
searchInputValue?: string;
|
|
43
|
-
/** Function callback called when user changes the Search Input */
|
|
44
|
-
onSearchInputChange?: (event: React.FormEvent<HTMLInputElement>, value: string) => void;
|
|
45
|
-
/** Search Input placeholder */
|
|
46
|
-
searchInputPlaceholder?: string;
|
|
47
|
-
/** Function callback for when Search Button is clicked */
|
|
48
|
-
onSearchButtonClick?: (event?: React.SyntheticEvent<HTMLButtonElement>) => void;
|
|
49
|
-
/** Footer of the context selector */
|
|
50
|
-
footer?: React.ReactNode;
|
|
51
|
-
/** Flag to indicate the toggle has no border or background */
|
|
52
|
-
isPlain?: boolean;
|
|
53
|
-
/** Flag to indicate if toggle is textual toggle */
|
|
54
|
-
isText?: boolean;
|
|
55
|
-
/** Flag to disable focus trap */
|
|
56
|
-
disableFocusTrap?: boolean;
|
|
57
|
-
/** Flag for indicating that the context selector menu should automatically flip vertically when
|
|
58
|
-
* it reaches the boundary. This prop can only be used when the context selector component is not
|
|
59
|
-
* appended inline, e.g. `menuAppendTo="parent"`
|
|
60
|
-
*/
|
|
61
|
-
isFlipEnabled?: boolean;
|
|
62
|
-
/** Id of the context selector */
|
|
63
|
-
id?: string;
|
|
64
|
-
/** z-index of the context selector when menuAppendTo is not inline. */
|
|
65
|
-
zIndex?: number;
|
|
66
|
-
/** Value to overwrite the randomly generated data-ouia-component-id.*/
|
|
67
|
-
ouiaId?: number | string;
|
|
68
|
-
/** 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. */
|
|
69
|
-
ouiaSafe?: boolean;
|
|
70
|
-
/** Adds an accessible label to the context selector menu. */
|
|
71
|
-
menuAriaLabel?: string;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
class ContextSelector extends React.Component<ContextSelectorProps, { ouiaStateId: string }> {
|
|
75
|
-
static displayName = 'ContextSelector';
|
|
76
|
-
static defaultProps: ContextSelectorProps = {
|
|
77
|
-
children: null as React.ReactNode,
|
|
78
|
-
className: '',
|
|
79
|
-
isOpen: false,
|
|
80
|
-
onToggle: () => undefined as any,
|
|
81
|
-
onSelect: () => undefined as any,
|
|
82
|
-
screenReaderLabel: '',
|
|
83
|
-
toggleText: '',
|
|
84
|
-
searchButtonAriaLabel: 'Search menu items',
|
|
85
|
-
searchInputValue: '',
|
|
86
|
-
onSearchInputChange: () => undefined as any,
|
|
87
|
-
searchInputPlaceholder: 'Search',
|
|
88
|
-
onSearchButtonClick: () => undefined as any,
|
|
89
|
-
menuAppendTo: 'inline',
|
|
90
|
-
ouiaSafe: true,
|
|
91
|
-
disableFocusTrap: false,
|
|
92
|
-
footer: null as React.ReactNode,
|
|
93
|
-
isPlain: false,
|
|
94
|
-
isText: false,
|
|
95
|
-
isFlipEnabled: true,
|
|
96
|
-
zIndex: 9999
|
|
97
|
-
};
|
|
98
|
-
constructor(props: ContextSelectorProps) {
|
|
99
|
-
super(props);
|
|
100
|
-
this.state = {
|
|
101
|
-
ouiaStateId: getDefaultOUIAId(ContextSelector.displayName)
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
parentRef: React.RefObject<HTMLDivElement> = React.createRef();
|
|
106
|
-
popperRef: React.RefObject<HTMLDivElement> = React.createRef();
|
|
107
|
-
|
|
108
|
-
render() {
|
|
109
|
-
const {
|
|
110
|
-
children,
|
|
111
|
-
className,
|
|
112
|
-
isOpen,
|
|
113
|
-
isFullHeight,
|
|
114
|
-
onToggle,
|
|
115
|
-
onSelect,
|
|
116
|
-
screenReaderLabel,
|
|
117
|
-
toggleText,
|
|
118
|
-
searchButtonAriaLabel,
|
|
119
|
-
searchInputValue,
|
|
120
|
-
onSearchInputChange,
|
|
121
|
-
searchInputPlaceholder,
|
|
122
|
-
onSearchButtonClick,
|
|
123
|
-
menuAppendTo,
|
|
124
|
-
ouiaId,
|
|
125
|
-
ouiaSafe,
|
|
126
|
-
isPlain,
|
|
127
|
-
isText,
|
|
128
|
-
footer,
|
|
129
|
-
disableFocusTrap,
|
|
130
|
-
isFlipEnabled,
|
|
131
|
-
id,
|
|
132
|
-
zIndex,
|
|
133
|
-
menuAriaLabel,
|
|
134
|
-
...props
|
|
135
|
-
} = this.props;
|
|
136
|
-
|
|
137
|
-
const uniqueId = id || getUniqueId();
|
|
138
|
-
const toggleId = `pf-v6-context-selector-toggle-id-${uniqueId}`;
|
|
139
|
-
const screenReaderLabelId = `pf-v6-context-selector-label-id-${uniqueId}`;
|
|
140
|
-
const isStatic = isFlipEnabled && menuAppendTo !== 'inline';
|
|
141
|
-
|
|
142
|
-
const menuContainer = (
|
|
143
|
-
<div className={css(styles.contextSelectorMenu, isStatic && styles.modifiers.static)} id={uniqueId}>
|
|
144
|
-
{isOpen && (
|
|
145
|
-
<FocusTrap
|
|
146
|
-
active={!disableFocusTrap}
|
|
147
|
-
focusTrapOptions={{ clickOutsideDeactivates: true, tabbableOptions: { displayCheck: 'none' } }}
|
|
148
|
-
>
|
|
149
|
-
<div className={css(styles.contextSelectorMenuSearch)}>
|
|
150
|
-
<SearchInput
|
|
151
|
-
submitSearchButtonLabel={searchButtonAriaLabel}
|
|
152
|
-
placeholder={searchInputPlaceholder}
|
|
153
|
-
onChange={onSearchInputChange}
|
|
154
|
-
onSearch={(event: React.SyntheticEvent<HTMLButtonElement, Event>, _value: any, _: any) => {
|
|
155
|
-
onSearchButtonClick(event);
|
|
156
|
-
}}
|
|
157
|
-
value={searchInputValue}
|
|
158
|
-
/>
|
|
159
|
-
</div>
|
|
160
|
-
<ContextSelectorContext.Provider value={{ onSelect }}>
|
|
161
|
-
<ContextSelectorMenuList isOpen={isOpen} aria-label={menuAriaLabel}>
|
|
162
|
-
{children}
|
|
163
|
-
</ContextSelectorMenuList>
|
|
164
|
-
</ContextSelectorContext.Provider>
|
|
165
|
-
{footer}
|
|
166
|
-
</FocusTrap>
|
|
167
|
-
)}
|
|
168
|
-
</div>
|
|
169
|
-
);
|
|
170
|
-
const popperContainer = (
|
|
171
|
-
<div
|
|
172
|
-
className={css(styles.contextSelector, isOpen && styles.modifiers.expanded, className)}
|
|
173
|
-
ref={this.popperRef}
|
|
174
|
-
{...props}
|
|
175
|
-
>
|
|
176
|
-
{isOpen && menuContainer}
|
|
177
|
-
</div>
|
|
178
|
-
);
|
|
179
|
-
const mainContainer = (
|
|
180
|
-
<div
|
|
181
|
-
className={css(
|
|
182
|
-
styles.contextSelector,
|
|
183
|
-
isOpen && styles.modifiers.expanded,
|
|
184
|
-
isFullHeight && styles.modifiers.fullHeight,
|
|
185
|
-
className
|
|
186
|
-
)}
|
|
187
|
-
ref={this.parentRef}
|
|
188
|
-
{...getOUIAProps(ContextSelector.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe)}
|
|
189
|
-
{...props}
|
|
190
|
-
>
|
|
191
|
-
{screenReaderLabel && (
|
|
192
|
-
<span id={screenReaderLabelId} hidden>
|
|
193
|
-
{screenReaderLabel}
|
|
194
|
-
</span>
|
|
195
|
-
)}
|
|
196
|
-
<ContextSelectorToggle
|
|
197
|
-
onToggle={onToggle}
|
|
198
|
-
isOpen={isOpen}
|
|
199
|
-
toggleText={toggleText}
|
|
200
|
-
id={toggleId}
|
|
201
|
-
parentRef={menuAppendTo === 'inline' ? this.parentRef : this.popperRef}
|
|
202
|
-
aria-labelledby={`${screenReaderLabelId} ${toggleId}`}
|
|
203
|
-
isPlain={isPlain}
|
|
204
|
-
isText={isText}
|
|
205
|
-
/>
|
|
206
|
-
{isOpen && menuAppendTo === 'inline' && menuContainer}
|
|
207
|
-
</div>
|
|
208
|
-
);
|
|
209
|
-
const getParentElement = () => {
|
|
210
|
-
if (this.parentRef && this.parentRef.current) {
|
|
211
|
-
return this.parentRef.current.parentElement;
|
|
212
|
-
}
|
|
213
|
-
return null;
|
|
214
|
-
};
|
|
215
|
-
return menuAppendTo === 'inline' ? (
|
|
216
|
-
mainContainer
|
|
217
|
-
) : (
|
|
218
|
-
<Popper
|
|
219
|
-
trigger={mainContainer}
|
|
220
|
-
triggerRef={this.parentRef}
|
|
221
|
-
popper={popperContainer}
|
|
222
|
-
popperRef={this.popperRef}
|
|
223
|
-
appendTo={menuAppendTo === 'parent' ? getParentElement() : menuAppendTo}
|
|
224
|
-
isVisible={isOpen}
|
|
225
|
-
zIndex={zIndex}
|
|
226
|
-
/>
|
|
227
|
-
);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
export { ContextSelector };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { css } from '@patternfly/react-styles';
|
|
3
|
-
import styles from '@patternfly/react-styles/css/components/ContextSelector/context-selector';
|
|
4
|
-
|
|
5
|
-
export interface ContextSelectorFooterProps extends React.HTMLProps<HTMLDivElement> {
|
|
6
|
-
/** Content rendered inside the ContextSelectorFooter */
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
/** Additional classes added to the ContextSelectorFooter */
|
|
9
|
-
className?: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export const ContextSelectorFooter: React.FunctionComponent<ContextSelectorFooterProps> = ({
|
|
13
|
-
children = null,
|
|
14
|
-
className = '',
|
|
15
|
-
...props
|
|
16
|
-
}: ContextSelectorFooterProps) => (
|
|
17
|
-
<div {...props} className={css(styles.contextSelectorMenuFooter, className)}>
|
|
18
|
-
{children}
|
|
19
|
-
</div>
|
|
20
|
-
);
|
|
21
|
-
ContextSelectorFooter.displayName = 'ContextSelectorFooter';
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import styles from '@patternfly/react-styles/css/components/ContextSelector/context-selector';
|
|
3
|
-
import { css } from '@patternfly/react-styles';
|
|
4
|
-
import { ContextSelectorContext } from './contextSelectorConstants';
|
|
5
|
-
|
|
6
|
-
export interface ContextSelectorItemProps {
|
|
7
|
-
/** Anything which can be rendered as Context Selector item */
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
/** Classes applied to root element of the Context Selector item */
|
|
10
|
-
className?: string;
|
|
11
|
-
/** Render Context Selector item as disabled */
|
|
12
|
-
isDisabled?: boolean;
|
|
13
|
-
/** Callback for click event */
|
|
14
|
-
onClick?: (event: React.MouseEvent) => void;
|
|
15
|
-
/** @hide internal index of the item */
|
|
16
|
-
index?: number;
|
|
17
|
-
/** Internal callback for ref tracking */
|
|
18
|
-
sendRef?: (index: number, current: any) => void;
|
|
19
|
-
/** Link href, indicates item should render as anchor tag */
|
|
20
|
-
href?: string;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
class ContextSelectorItem extends React.Component<ContextSelectorItemProps> {
|
|
24
|
-
static displayName = 'ContextSelectorItem';
|
|
25
|
-
static defaultProps: ContextSelectorItemProps = {
|
|
26
|
-
children: null as React.ReactNode,
|
|
27
|
-
className: '',
|
|
28
|
-
isDisabled: false,
|
|
29
|
-
onClick: (): any => undefined,
|
|
30
|
-
index: undefined as number,
|
|
31
|
-
sendRef: () => {},
|
|
32
|
-
href: null as string
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
ref: React.RefObject<HTMLButtonElement & HTMLAnchorElement> = React.createRef();
|
|
36
|
-
|
|
37
|
-
componentDidMount() {
|
|
38
|
-
/* eslint-disable-next-line */
|
|
39
|
-
this.props.sendRef(this.props.index, this.ref.current);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
render() {
|
|
43
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
44
|
-
const { className, children, onClick, isDisabled, index, sendRef, href, ...props } = this.props;
|
|
45
|
-
const Component = href ? 'a' : 'button';
|
|
46
|
-
const isDisabledLink = href && isDisabled;
|
|
47
|
-
return (
|
|
48
|
-
<ContextSelectorContext.Consumer>
|
|
49
|
-
{({ onSelect }) => (
|
|
50
|
-
<li role="none">
|
|
51
|
-
<Component
|
|
52
|
-
className={css(
|
|
53
|
-
styles.contextSelectorMenuListItem,
|
|
54
|
-
isDisabledLink && styles.modifiers.disabled,
|
|
55
|
-
className
|
|
56
|
-
)}
|
|
57
|
-
ref={this.ref}
|
|
58
|
-
onClick={(event) => {
|
|
59
|
-
if (!isDisabled) {
|
|
60
|
-
onClick(event);
|
|
61
|
-
onSelect(event, children);
|
|
62
|
-
}
|
|
63
|
-
}}
|
|
64
|
-
disabled={isDisabled && !href}
|
|
65
|
-
href={href}
|
|
66
|
-
{...(isDisabledLink && { 'aria-disabled': true, tabIndex: -1 })}
|
|
67
|
-
{...props}
|
|
68
|
-
>
|
|
69
|
-
{children}
|
|
70
|
-
</Component>
|
|
71
|
-
</li>
|
|
72
|
-
)}
|
|
73
|
-
</ContextSelectorContext.Consumer>
|
|
74
|
-
);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export { ContextSelectorItem };
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import styles from '@patternfly/react-styles/css/components/ContextSelector/context-selector';
|
|
3
|
-
import { css } from '@patternfly/react-styles';
|
|
4
|
-
|
|
5
|
-
export interface ContextSelectorMenuListProps {
|
|
6
|
-
/** Content rendered inside the context selector menu */
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
/** Classess applied to root element of context selector menu */
|
|
9
|
-
className?: string;
|
|
10
|
-
/** Flag to indicate if context selector menu is opened */
|
|
11
|
-
isOpen?: boolean;
|
|
12
|
-
/** Adds an accessible label to the context selector menu. */
|
|
13
|
-
'aria-label'?: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
class ContextSelectorMenuList extends React.Component<ContextSelectorMenuListProps> {
|
|
17
|
-
static displayName = 'ContextSelectorMenuList';
|
|
18
|
-
static defaultProps: ContextSelectorMenuListProps = {
|
|
19
|
-
children: null as React.ReactNode,
|
|
20
|
-
className: '',
|
|
21
|
-
isOpen: true
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
refsCollection = [] as any;
|
|
25
|
-
|
|
26
|
-
sendRef = (index: number, ref: any) => {
|
|
27
|
-
this.refsCollection[index] = ref;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
extendChildren() {
|
|
31
|
-
return React.Children.map(this.props.children, (child, index) =>
|
|
32
|
-
React.cloneElement(child as React.ReactElement<any>, {
|
|
33
|
-
sendRef: this.sendRef,
|
|
34
|
-
index,
|
|
35
|
-
role: 'menuitem'
|
|
36
|
-
})
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
render = () => {
|
|
41
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
42
|
-
const { className, isOpen, children, ...props } = this.props;
|
|
43
|
-
return (
|
|
44
|
-
<ul className={css(styles.contextSelectorMenuList, className)} hidden={!isOpen} role="menu" {...props}>
|
|
45
|
-
{this.extendChildren()}
|
|
46
|
-
</ul>
|
|
47
|
-
);
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export { ContextSelectorMenuList };
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import CaretDownIcon from '@patternfly/react-icons/dist/esm/icons/caret-down-icon';
|
|
3
|
-
import styles from '@patternfly/react-styles/css/components/ContextSelector/context-selector';
|
|
4
|
-
import { css } from '@patternfly/react-styles';
|
|
5
|
-
import { KeyTypes } from '../../../helpers/constants';
|
|
6
|
-
import { PickOptional } from '../../../helpers/typeUtils';
|
|
7
|
-
|
|
8
|
-
export interface ContextSelectorToggleProps {
|
|
9
|
-
/** HTML ID of toggle */
|
|
10
|
-
id: string;
|
|
11
|
-
/** Classes applied to root element of toggle */
|
|
12
|
-
className?: string;
|
|
13
|
-
/** Component or string that will be used in the context selector.
|
|
14
|
-
* This prop is placed in a button, and cannot contain any interactive elements
|
|
15
|
-
*/
|
|
16
|
-
toggleText?: React.ReactNode;
|
|
17
|
-
/** Flag to indicate if menu is opened */
|
|
18
|
-
isOpen?: boolean;
|
|
19
|
-
/** Callback called when toggle is clicked */
|
|
20
|
-
onToggle?: (event: any, value: boolean) => void;
|
|
21
|
-
/** Callback for toggle open on keyboard entry */
|
|
22
|
-
onEnter?: () => void;
|
|
23
|
-
/** Element which wraps toggle */
|
|
24
|
-
parentRef?: any;
|
|
25
|
-
/** Forces active state */
|
|
26
|
-
isActive?: boolean;
|
|
27
|
-
/** Flag to indicate the toggle has no border or background */
|
|
28
|
-
isPlain?: boolean;
|
|
29
|
-
/** Flag to indicate if toggle is textual toggle */
|
|
30
|
-
isText?: boolean;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
class ContextSelectorToggle extends React.Component<ContextSelectorToggleProps> {
|
|
34
|
-
static displayName = 'ContextSelectorToggle';
|
|
35
|
-
static defaultProps: PickOptional<ContextSelectorToggleProps> = {
|
|
36
|
-
className: '',
|
|
37
|
-
toggleText: '',
|
|
38
|
-
isOpen: false,
|
|
39
|
-
onEnter: () => undefined as any,
|
|
40
|
-
parentRef: null as any,
|
|
41
|
-
isActive: false,
|
|
42
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
43
|
-
onToggle: (event: any, value: boolean) => undefined as any
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
toggle: React.RefObject<HTMLButtonElement> = React.createRef();
|
|
47
|
-
|
|
48
|
-
componentDidMount = () => {
|
|
49
|
-
document.addEventListener('mousedown', this.onDocClick);
|
|
50
|
-
document.addEventListener('touchstart', this.onDocClick);
|
|
51
|
-
document.addEventListener('keydown', this.onEscPress);
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
componentWillUnmount = () => {
|
|
55
|
-
document.removeEventListener('mousedown', this.onDocClick);
|
|
56
|
-
document.removeEventListener('touchstart', this.onDocClick);
|
|
57
|
-
document.removeEventListener('keydown', this.onEscPress);
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
onDocClick = (event: any) => {
|
|
61
|
-
const { isOpen, parentRef, onToggle } = this.props;
|
|
62
|
-
if (isOpen && parentRef?.current && !parentRef.current.contains(event.target)) {
|
|
63
|
-
onToggle(null, false);
|
|
64
|
-
this.toggle.current.focus();
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
onEscPress = (event: any) => {
|
|
69
|
-
const { isOpen, onToggle } = this.props;
|
|
70
|
-
if (isOpen && event.key === KeyTypes.Escape) {
|
|
71
|
-
onToggle(null, false);
|
|
72
|
-
this.toggle.current.focus();
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
onKeyDown = (event: any) => {
|
|
77
|
-
const { isOpen, onToggle, onEnter } = this.props;
|
|
78
|
-
if ((event.key === KeyTypes.Tab && !isOpen) || event.key !== KeyTypes.Enter) {
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
event.preventDefault();
|
|
82
|
-
if ((event.key === KeyTypes.Tab || event.key === KeyTypes.Enter || event.key !== KeyTypes.Space) && isOpen) {
|
|
83
|
-
onToggle(null, !isOpen);
|
|
84
|
-
} else if ((event.key === KeyTypes.Enter || event.key === ' ') && !isOpen) {
|
|
85
|
-
onToggle(null, !isOpen);
|
|
86
|
-
onEnter();
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
render() {
|
|
91
|
-
const {
|
|
92
|
-
className,
|
|
93
|
-
toggleText,
|
|
94
|
-
isOpen,
|
|
95
|
-
onToggle,
|
|
96
|
-
id,
|
|
97
|
-
isPlain,
|
|
98
|
-
isText,
|
|
99
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
100
|
-
isActive,
|
|
101
|
-
onEnter,
|
|
102
|
-
parentRef,
|
|
103
|
-
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
104
|
-
...props
|
|
105
|
-
} = this.props;
|
|
106
|
-
return (
|
|
107
|
-
<button
|
|
108
|
-
{...props}
|
|
109
|
-
id={id}
|
|
110
|
-
ref={this.toggle}
|
|
111
|
-
className={css(
|
|
112
|
-
styles.contextSelectorToggle,
|
|
113
|
-
isActive && styles.modifiers.active,
|
|
114
|
-
isPlain && styles.modifiers.plain,
|
|
115
|
-
isText && styles.modifiers.text,
|
|
116
|
-
className
|
|
117
|
-
)}
|
|
118
|
-
type="button"
|
|
119
|
-
onClick={(event) => onToggle(event, !isOpen)}
|
|
120
|
-
aria-expanded={isOpen}
|
|
121
|
-
onKeyDown={this.onKeyDown}
|
|
122
|
-
>
|
|
123
|
-
<span className={css(styles.contextSelectorToggleText)}>{toggleText}</span>
|
|
124
|
-
<span className={css(styles.contextSelectorToggleIcon)}>
|
|
125
|
-
<CaretDownIcon aria-hidden />
|
|
126
|
-
</span>
|
|
127
|
-
</button>
|
|
128
|
-
);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
export { ContextSelectorToggle };
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { render, screen } from '@testing-library/react';
|
|
4
|
-
import userEvent from '@testing-library/user-event';
|
|
5
|
-
|
|
6
|
-
import { ContextSelector } from '../ContextSelector';
|
|
7
|
-
import { ContextSelectorItem } from '../ContextSelectorItem';
|
|
8
|
-
|
|
9
|
-
const items = [
|
|
10
|
-
<ContextSelectorItem key="0">My Project</ContextSelectorItem>,
|
|
11
|
-
<ContextSelectorItem key="1">OpenShift Cluster</ContextSelectorItem>,
|
|
12
|
-
<ContextSelectorItem key="2">Production Ansible</ContextSelectorItem>,
|
|
13
|
-
<ContextSelectorItem key="3">AWS</ContextSelectorItem>,
|
|
14
|
-
<ContextSelectorItem key="4">Azure</ContextSelectorItem>
|
|
15
|
-
];
|
|
16
|
-
|
|
17
|
-
describe('ContextSelector', () => {
|
|
18
|
-
test('Renders ContextSelector', () => {
|
|
19
|
-
const { asFragment } = render(<ContextSelector id="render">{items}</ContextSelector>);
|
|
20
|
-
expect(asFragment()).toMatchSnapshot();
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
test('Renders ContextSelector open', () => {
|
|
24
|
-
const { asFragment } = render(
|
|
25
|
-
<ContextSelector isOpen id="render-open">
|
|
26
|
-
{items}
|
|
27
|
-
</ContextSelector>
|
|
28
|
-
);
|
|
29
|
-
expect(asFragment()).toMatchSnapshot();
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
test('Renders in strict mode', () => {
|
|
33
|
-
const consoleError = jest.spyOn(console, 'error');
|
|
34
|
-
const { asFragment } = render(
|
|
35
|
-
<React.StrictMode>
|
|
36
|
-
<ContextSelector isOpen id="render">
|
|
37
|
-
{items}
|
|
38
|
-
</ContextSelector>
|
|
39
|
-
</React.StrictMode>
|
|
40
|
-
);
|
|
41
|
-
expect(consoleError).not.toHaveBeenCalled();
|
|
42
|
-
expect(asFragment()).toMatchSnapshot();
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
test('Verify onToggle is called ', async () => {
|
|
46
|
-
const mockfn = jest.fn();
|
|
47
|
-
const user = userEvent.setup();
|
|
48
|
-
|
|
49
|
-
render(<ContextSelector onToggle={mockfn}>{items}</ContextSelector>);
|
|
50
|
-
|
|
51
|
-
await user.click(screen.getByRole('button'));
|
|
52
|
-
expect(mockfn.mock.calls).toHaveLength(1);
|
|
53
|
-
});
|
|
54
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { render } from '@testing-library/react';
|
|
3
|
-
import { ContextSelectorFooter } from '../ContextSelectorFooter';
|
|
4
|
-
|
|
5
|
-
test('Renders ContextSelectorFooter', () => {
|
|
6
|
-
const { asFragment } = render(<ContextSelectorFooter>testing text</ContextSelectorFooter>);
|
|
7
|
-
expect(asFragment()).toMatchSnapshot();
|
|
8
|
-
});
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { render, screen } from '@testing-library/react';
|
|
4
|
-
import userEvent from '@testing-library/user-event';
|
|
5
|
-
|
|
6
|
-
import { ContextSelectorItem } from '../ContextSelectorItem';
|
|
7
|
-
|
|
8
|
-
test('Renders ContextSelectorItem', () => {
|
|
9
|
-
const { asFragment } = render(
|
|
10
|
-
<ContextSelectorItem sendRef={jest.fn()} index={0}>
|
|
11
|
-
My Project
|
|
12
|
-
</ContextSelectorItem>
|
|
13
|
-
);
|
|
14
|
-
expect(asFragment()).toMatchSnapshot();
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
test('Renders ContextSelectorItem disabled and hovered', () => {
|
|
18
|
-
const { asFragment } = render(
|
|
19
|
-
<ContextSelectorItem isDisabled sendRef={jest.fn()} index={0}>
|
|
20
|
-
My Project
|
|
21
|
-
</ContextSelectorItem>
|
|
22
|
-
);
|
|
23
|
-
expect(asFragment()).toMatchSnapshot();
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
test('Verify onClick is called ', async () => {
|
|
27
|
-
const mockfn = jest.fn();
|
|
28
|
-
const user = userEvent.setup();
|
|
29
|
-
|
|
30
|
-
render(
|
|
31
|
-
<ContextSelectorItem onClick={mockfn} sendRef={jest.fn()} index={0}>
|
|
32
|
-
My Project
|
|
33
|
-
</ContextSelectorItem>
|
|
34
|
-
);
|
|
35
|
-
await user.click(screen.getByRole('button'));
|
|
36
|
-
|
|
37
|
-
expect(mockfn.mock.calls).toHaveLength(1);
|
|
38
|
-
});
|
package/src/deprecated/components/ContextSelector/__tests__/ContextSelectorMenuList.test.tsx
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { render } from '@testing-library/react';
|
|
3
|
-
import { ContextSelectorItem } from '../ContextSelectorItem';
|
|
4
|
-
import { ContextSelectorMenuList } from '../ContextSelectorMenuList';
|
|
5
|
-
|
|
6
|
-
const items = [
|
|
7
|
-
<ContextSelectorItem key="0">My Project</ContextSelectorItem>,
|
|
8
|
-
<ContextSelectorItem key="1">OpenShift Cluster</ContextSelectorItem>,
|
|
9
|
-
<ContextSelectorItem key="2">Production Ansible</ContextSelectorItem>,
|
|
10
|
-
<ContextSelectorItem key="3">AWS</ContextSelectorItem>,
|
|
11
|
-
<ContextSelectorItem key="4">Azure</ContextSelectorItem>
|
|
12
|
-
];
|
|
13
|
-
|
|
14
|
-
test('Renders ContextSelectorMenuList open', () => {
|
|
15
|
-
const { asFragment } = render(<ContextSelectorMenuList isOpen={false}>{items}</ContextSelectorMenuList>);
|
|
16
|
-
expect(asFragment()).toMatchSnapshot();
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
test('Renders ContextSelectorMenuList closed', () => {
|
|
20
|
-
const { asFragment } = render(<ContextSelectorMenuList isOpen={false}>{items}</ContextSelectorMenuList>);
|
|
21
|
-
expect(asFragment()).toMatchSnapshot();
|
|
22
|
-
});
|