@patternfly/react-core 5.2.0-prerelease.9 → 6.0.0-alpha.2
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 +129 -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/Chip/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/DragDrop/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/ApplicationLauncher/package.json +1 -1
- package/dist/dynamic/deprecated/components/ContextSelector/package.json +1 -1
- package/dist/dynamic/deprecated/components/Dropdown/package.json +1 -1
- package/dist/dynamic/deprecated/components/OptionsMenu/package.json +1 -1
- package/dist/dynamic/deprecated/components/PageHeader/package.json +1 -1
- package/dist/dynamic/deprecated/components/Select/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/favorites/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/package.json +1 -1
- package/dist/esm/components/CalendarMonth/CalendarMonth.d.ts.map +1 -1
- package/dist/esm/components/CalendarMonth/CalendarMonth.js +15 -39
- package/dist/esm/components/CalendarMonth/CalendarMonth.js.map +1 -1
- package/dist/esm/components/Chip/Chip.d.ts.map +1 -1
- package/dist/esm/components/Chip/Chip.js +2 -2
- package/dist/esm/components/Chip/Chip.js.map +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.d.ts +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.d.ts.map +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopyButton.d.ts.map +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopyButton.js +2 -2
- package/dist/esm/components/ClipboardCopy/ClipboardCopyButton.js.map +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopyToggle.js +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopyToggle.js.map +1 -1
- package/dist/esm/components/Drawer/DrawerPanelContent.js +4 -4
- package/dist/esm/components/Drawer/DrawerPanelContent.js.map +1 -1
- package/dist/esm/components/Dropdown/Dropdown.d.ts +2 -0
- package/dist/esm/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/esm/components/Dropdown/Dropdown.js.map +1 -1
- package/dist/esm/components/ExpandableSection/ExpandableSection.js +1 -1
- package/dist/esm/components/ExpandableSection/ExpandableSection.js.map +1 -1
- package/dist/esm/components/InputGroup/InputGroup.d.ts.map +1 -1
- package/dist/esm/components/InputGroup/InputGroup.js +1 -51
- package/dist/esm/components/InputGroup/InputGroup.js.map +1 -1
- package/dist/esm/components/Masthead/Masthead.d.ts +0 -2
- package/dist/esm/components/Masthead/Masthead.d.ts.map +1 -1
- package/dist/esm/components/Masthead/Masthead.js +3 -3
- package/dist/esm/components/Masthead/Masthead.js.map +1 -1
- package/dist/esm/components/Menu/Menu.d.ts.map +1 -1
- package/dist/esm/components/Menu/Menu.js +2 -1
- package/dist/esm/components/Menu/Menu.js.map +1 -1
- package/dist/esm/components/Menu/MenuContainer.d.ts +2 -0
- package/dist/esm/components/Menu/MenuContainer.d.ts.map +1 -1
- package/dist/esm/components/Menu/MenuContainer.js.map +1 -1
- package/dist/esm/components/Nav/NavExpandable.d.ts +3 -3
- package/dist/esm/components/Nav/NavExpandable.d.ts.map +1 -1
- package/dist/esm/components/Nav/NavExpandable.js +2 -2
- package/dist/esm/components/Nav/NavExpandable.js.map +1 -1
- package/dist/esm/components/Nav/NavItem.d.ts +2 -0
- package/dist/esm/components/Nav/NavItem.d.ts.map +1 -1
- package/dist/esm/components/Nav/NavItem.js +2 -2
- package/dist/esm/components/Nav/NavItem.js.map +1 -1
- package/dist/esm/components/Nav/NavList.js +3 -3
- package/dist/esm/components/Nav/NavList.js.map +1 -1
- package/dist/esm/components/NotificationBadge/NotificationBadge.js +1 -1
- package/dist/esm/components/NotificationBadge/NotificationBadge.js.map +1 -1
- package/dist/esm/components/Page/PageSection.d.ts +2 -5
- package/dist/esm/components/Page/PageSection.d.ts.map +1 -1
- package/dist/esm/components/Page/PageSection.js +1 -7
- package/dist/esm/components/Page/PageSection.js.map +1 -1
- package/dist/esm/components/Page/PageSidebar.d.ts +0 -2
- package/dist/esm/components/Page/PageSidebar.d.ts.map +1 -1
- package/dist/esm/components/Page/PageSidebar.js +2 -2
- package/dist/esm/components/Page/PageSidebar.js.map +1 -1
- package/dist/esm/components/SearchInput/SearchInput.d.ts +2 -0
- package/dist/esm/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/esm/components/SearchInput/SearchInput.js +2 -2
- package/dist/esm/components/SearchInput/SearchInput.js.map +1 -1
- package/dist/esm/components/Select/Select.d.ts +2 -0
- package/dist/esm/components/Select/Select.d.ts.map +1 -1
- package/dist/esm/components/Select/Select.js.map +1 -1
- package/dist/esm/components/Slider/Slider.d.ts.map +1 -1
- package/dist/esm/components/Slider/Slider.js +2 -1
- package/dist/esm/components/Slider/Slider.js.map +1 -1
- package/dist/esm/components/Tabs/Tabs.js +3 -3
- package/dist/esm/components/Tabs/Tabs.js.map +1 -1
- package/dist/esm/demos/DashboardWrapper.js +1 -1
- package/dist/esm/demos/DashboardWrapper.js.map +1 -1
- package/dist/esm/deprecated/components/PageHeader/PageHeaderToolsItem.d.ts +0 -2
- package/dist/esm/deprecated/components/PageHeader/PageHeaderToolsItem.d.ts.map +1 -1
- package/dist/esm/deprecated/components/PageHeader/PageHeaderToolsItem.js +2 -2
- package/dist/esm/deprecated/components/PageHeader/PageHeaderToolsItem.js.map +1 -1
- package/dist/esm/helpers/Popper/Popper.d.ts +2 -1
- package/dist/esm/helpers/Popper/Popper.d.ts.map +1 -1
- package/dist/esm/helpers/Popper/Popper.js +7 -16
- package/dist/esm/helpers/Popper/Popper.js.map +1 -1
- package/dist/esm/helpers/datetimeUtils.d.ts +1 -1
- package/dist/esm/helpers/datetimeUtils.d.ts.map +1 -1
- package/dist/esm/helpers/datetimeUtils.js.map +1 -1
- package/dist/esm/helpers/util.d.ts +9 -0
- package/dist/esm/helpers/util.d.ts.map +1 -1
- package/dist/esm/helpers/util.js +18 -0
- package/dist/esm/helpers/util.js.map +1 -1
- package/dist/js/components/CalendarMonth/CalendarMonth.d.ts.map +1 -1
- package/dist/js/components/CalendarMonth/CalendarMonth.js +15 -39
- package/dist/js/components/CalendarMonth/CalendarMonth.js.map +1 -1
- package/dist/js/components/Chip/Chip.d.ts.map +1 -1
- package/dist/js/components/Chip/Chip.js +2 -2
- package/dist/js/components/Chip/Chip.js.map +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopy.d.ts +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopy.d.ts.map +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopyButton.d.ts.map +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopyButton.js +2 -2
- package/dist/js/components/ClipboardCopy/ClipboardCopyButton.js.map +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopyToggle.js +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopyToggle.js.map +1 -1
- package/dist/js/components/Drawer/DrawerPanelContent.js +3 -3
- package/dist/js/components/Drawer/DrawerPanelContent.js.map +1 -1
- package/dist/js/components/Dropdown/Dropdown.d.ts +2 -0
- package/dist/js/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/js/components/Dropdown/Dropdown.js.map +1 -1
- package/dist/js/components/ExpandableSection/ExpandableSection.js +1 -1
- package/dist/js/components/ExpandableSection/ExpandableSection.js.map +1 -1
- package/dist/js/components/InputGroup/InputGroup.d.ts.map +1 -1
- package/dist/js/components/InputGroup/InputGroup.js +1 -51
- package/dist/js/components/InputGroup/InputGroup.js.map +1 -1
- package/dist/js/components/Masthead/Masthead.d.ts +0 -2
- package/dist/js/components/Masthead/Masthead.d.ts.map +1 -1
- package/dist/js/components/Masthead/Masthead.js +3 -3
- package/dist/js/components/Masthead/Masthead.js.map +1 -1
- package/dist/js/components/Menu/Menu.d.ts.map +1 -1
- package/dist/js/components/Menu/Menu.js +2 -1
- package/dist/js/components/Menu/Menu.js.map +1 -1
- package/dist/js/components/Menu/MenuContainer.d.ts +2 -0
- package/dist/js/components/Menu/MenuContainer.d.ts.map +1 -1
- package/dist/js/components/Menu/MenuContainer.js.map +1 -1
- package/dist/js/components/Nav/NavExpandable.d.ts +3 -3
- package/dist/js/components/Nav/NavExpandable.d.ts.map +1 -1
- package/dist/js/components/Nav/NavExpandable.js +2 -2
- package/dist/js/components/Nav/NavExpandable.js.map +1 -1
- package/dist/js/components/Nav/NavItem.d.ts +2 -0
- package/dist/js/components/Nav/NavItem.d.ts.map +1 -1
- package/dist/js/components/Nav/NavItem.js +2 -2
- package/dist/js/components/Nav/NavItem.js.map +1 -1
- package/dist/js/components/Nav/NavList.js +2 -2
- package/dist/js/components/Nav/NavList.js.map +1 -1
- package/dist/js/components/NotificationBadge/NotificationBadge.js +1 -1
- package/dist/js/components/NotificationBadge/NotificationBadge.js.map +1 -1
- package/dist/js/components/Page/PageSection.d.ts +2 -5
- package/dist/js/components/Page/PageSection.d.ts.map +1 -1
- package/dist/js/components/Page/PageSection.js +1 -7
- package/dist/js/components/Page/PageSection.js.map +1 -1
- package/dist/js/components/Page/PageSidebar.d.ts +0 -2
- package/dist/js/components/Page/PageSidebar.d.ts.map +1 -1
- package/dist/js/components/Page/PageSidebar.js +2 -2
- package/dist/js/components/Page/PageSidebar.js.map +1 -1
- package/dist/js/components/SearchInput/SearchInput.d.ts +2 -0
- package/dist/js/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/js/components/SearchInput/SearchInput.js +2 -2
- package/dist/js/components/SearchInput/SearchInput.js.map +1 -1
- package/dist/js/components/Select/Select.d.ts +2 -0
- package/dist/js/components/Select/Select.d.ts.map +1 -1
- package/dist/js/components/Select/Select.js.map +1 -1
- package/dist/js/components/Slider/Slider.d.ts.map +1 -1
- package/dist/js/components/Slider/Slider.js +2 -1
- package/dist/js/components/Slider/Slider.js.map +1 -1
- package/dist/js/components/Tabs/Tabs.js +2 -2
- package/dist/js/components/Tabs/Tabs.js.map +1 -1
- package/dist/js/demos/DashboardWrapper.js +1 -1
- package/dist/js/demos/DashboardWrapper.js.map +1 -1
- package/dist/js/deprecated/components/PageHeader/PageHeaderToolsItem.d.ts +0 -2
- package/dist/js/deprecated/components/PageHeader/PageHeaderToolsItem.d.ts.map +1 -1
- package/dist/js/deprecated/components/PageHeader/PageHeaderToolsItem.js +2 -2
- package/dist/js/deprecated/components/PageHeader/PageHeaderToolsItem.js.map +1 -1
- package/dist/js/helpers/Popper/Popper.d.ts +2 -1
- package/dist/js/helpers/Popper/Popper.d.ts.map +1 -1
- package/dist/js/helpers/Popper/Popper.js +9 -19
- package/dist/js/helpers/Popper/Popper.js.map +1 -1
- package/dist/js/helpers/datetimeUtils.d.ts +1 -1
- package/dist/js/helpers/datetimeUtils.d.ts.map +1 -1
- package/dist/js/helpers/datetimeUtils.js.map +1 -1
- package/dist/js/helpers/util.d.ts +9 -0
- package/dist/js/helpers/util.d.ts.map +1 -1
- package/dist/js/helpers/util.js +20 -1
- package/dist/js/helpers/util.js.map +1 -1
- package/dist/styles/assets/images/logo__pf--reverse-on-md.svg +1 -1
- package/dist/styles/assets/images/pf-c-brand__logo-on-sm.svg +1 -1
- package/dist/styles/base-no-reset.css +849 -0
- package/dist/styles/base.css +861 -13
- package/dist/umd/react-core.min.js +1 -1
- package/helpers/package.json +1 -1
- package/layouts/package.json +1 -1
- package/next/package.json +1 -1
- package/package.json +8 -7
- package/src/components/CalendarMonth/CalendarMonth.tsx +18 -43
- package/src/components/Checkbox/__tests__/Checkbox.test.tsx +223 -69
- package/src/components/Checkbox/__tests__/__snapshots__/Checkbox.test.tsx.snap +3 -198
- package/src/components/Chip/Chip.tsx +2 -1
- package/src/components/Chip/__tests__/Chip.test.tsx +249 -32
- package/src/components/Chip/__tests__/ChipGroup.test.tsx +288 -61
- package/src/components/Chip/__tests__/__snapshots__/Chip.test.tsx.snap +9 -209
- package/src/components/Chip/__tests__/__snapshots__/ChipGroup.test.tsx.snap +2 -313
- package/src/components/ClipboardCopy/ClipboardCopy.tsx +1 -1
- package/src/components/ClipboardCopy/ClipboardCopyButton.tsx +2 -0
- package/src/components/ClipboardCopy/ClipboardCopyToggle.tsx +1 -1
- package/src/components/ClipboardCopy/__tests__/ClipboardCopy.test.tsx +344 -0
- package/src/components/ClipboardCopy/__tests__/ClipboardCopyAction.test.tsx +37 -0
- package/src/components/ClipboardCopy/__tests__/ClipboardCopyButton.test.tsx +136 -19
- package/src/components/ClipboardCopy/__tests__/ClipboardCopyExpanded.test.tsx +71 -14
- package/src/components/ClipboardCopy/__tests__/ClipboardCopyToggle.test.tsx +78 -34
- package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopy.test.tsx.snap +57 -0
- package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyAction.test.tsx.snap +11 -0
- package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyButton.test.tsx.snap +50 -24
- package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyExpanded.test.tsx.snap +3 -23
- package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyToggle.test.tsx.snap +5 -6
- package/src/components/Drawer/DrawerPanelContent.tsx +4 -4
- package/src/components/Dropdown/Dropdown.tsx +2 -0
- package/src/components/ExpandableSection/ExpandableSection.tsx +1 -1
- package/src/components/InputGroup/InputGroup.tsx +1 -53
- package/src/components/InputGroup/__tests__/InputGroup.test.tsx +7 -44
- package/src/components/Masthead/Masthead.tsx +0 -5
- package/src/components/Masthead/examples/Masthead.md +0 -44
- package/src/components/Menu/Menu.tsx +2 -1
- package/src/components/Menu/MenuContainer.tsx +2 -0
- package/src/components/Nav/NavExpandable.tsx +5 -5
- package/src/components/Nav/NavItem.tsx +4 -1
- package/src/components/Nav/NavList.tsx +3 -3
- package/src/components/Nav/examples/Nav.md +8 -0
- package/src/components/Nav/examples/NavExpandableThirdLevel.tsx +1 -1
- package/src/components/Nav/examples/NavLinkText.tsx +109 -0
- package/src/components/Nav/examples/nav.css +1 -0
- package/src/components/NotificationBadge/NotificationBadge.tsx +1 -1
- package/src/components/NumberInput/__tests__/NumberInput.test.tsx +0 -1
- package/src/components/Page/PageSection.tsx +3 -9
- package/src/components/Page/PageSidebar.tsx +0 -4
- package/src/components/Page/__tests__/Generated/PageSidebar.test.tsx +1 -1
- package/src/components/Page/__tests__/Page.test.tsx +1 -40
- package/src/components/Page/__tests__/__snapshots__/Page.test.tsx.snap +0 -195
- package/src/components/Page/examples/PageGroupSection.tsx +3 -4
- package/src/components/Page/examples/PageHorizontalNav.tsx +3 -4
- package/src/components/Page/examples/PageMainSectionPadding.tsx +2 -7
- package/src/components/Page/examples/PageMultipleSidebarBody.tsx +3 -4
- package/src/components/Page/examples/PageTertiaryNav.tsx +3 -4
- package/src/components/Page/examples/PageUncontrolledNav.tsx +3 -4
- package/src/components/Page/examples/PageVerticalNav.tsx +3 -4
- package/src/components/SearchInput/SearchInput.tsx +5 -1
- package/src/components/SearchInput/__tests__/SearchInput.test.tsx +8 -0
- package/src/components/Select/Select.tsx +2 -0
- package/src/components/Slider/Slider.tsx +2 -1
- package/src/components/Tabs/Tabs.tsx +3 -3
- package/src/demos/Banner.md +2 -4
- package/src/demos/CardView/examples/CardView.tsx +2 -8
- package/src/demos/DashboardWrapper.tsx +1 -1
- package/src/demos/JumpLinks.md +1 -1
- package/src/demos/Nav.md +10 -1673
- package/src/demos/NotificationDrawer/examples/NotificationDrawerBasic.tsx +2 -3
- package/src/demos/NotificationDrawer/examples/NotificationDrawerGrouped.tsx +2 -3
- package/src/demos/PrimaryDetail.md +4 -7
- package/src/demos/Tabs.md +6 -8
- package/src/demos/Wizard/WizardDemo.md +6 -761
- package/src/demos/examples/AlertGroup/AlertGroupToastWithNotificationDrawer.tsx +4 -5
- package/src/demos/examples/BackToTop/BackToTopNameDemo.tsx +1 -2
- package/src/demos/examples/DashboardWrapper.js +127 -0
- package/src/demos/examples/JumpLinks/JumpLinksWithDrawer.js +3 -4
- package/src/demos/examples/Masthead/MastheadWithUtilitiesAndUserDropdownMenu.tsx +1 -2
- package/src/demos/examples/Nav/NavDefault.tsx +97 -0
- package/src/demos/examples/Nav/NavDrilldown.tsx +2 -0
- package/src/demos/examples/Nav/NavExpandable.tsx +123 -0
- package/src/demos/examples/Nav/NavFlyout.tsx +277 -0
- package/src/demos/examples/Nav/NavGrouped.tsx +98 -0
- package/src/demos/examples/Nav/NavHorizontal.tsx +236 -0
- package/src/demos/examples/Nav/NavHorizontalWithSubnav.tsx +296 -0
- package/src/demos/examples/Nav/NavManual.tsx +272 -0
- package/src/demos/examples/Nav/NavWithSubnav.tsx +141 -0
- package/src/demos/examples/Nav/deprecated/NavLight.tsx +95 -0
- package/src/demos/examples/Nav/deprecated/NavTertiary.tsx +91 -0
- package/src/demos/examples/Page/PageStickySectionBreadcrumb.tsx +1 -2
- package/src/demos/examples/Page/PageStickySectionGroup.tsx +1 -2
- package/src/demos/examples/Page/PageStickySectionGroupAlternate.tsx +1 -2
- package/src/demos/examples/PrimaryDetail/PrimaryDetailContentPadding.tsx +1 -2
- package/src/demos/examples/PrimaryDetail/PrimaryDetailFullPage.tsx +2 -3
- package/src/demos/examples/PrimaryDetail/PrimaryDetailInlineModifier.tsx +2 -3
- package/src/demos/examples/Tabs/ModalTabs.tsx +1 -2
- package/src/demos/examples/Tabs/NestedUnindentedTabs.tsx +2 -2
- package/src/demos/examples/Tabs/TabsAndTable.tsx +2 -3
- package/src/demos/examples/Toolbar/ConsoleLogViewerToolbar.tsx +1 -2
- package/src/demos/examples/Wizard/InModal.tsx +75 -0
- package/src/demos/examples/Wizard/InModalWithDrawer.tsx +115 -0
- package/src/demos/examples/Wizard/InModalWithDrawerInformationalStep.tsx +122 -0
- package/src/demos/examples/Wizard/InPage.tsx +35 -0
- package/src/demos/examples/Wizard/InPageWithDrawer.tsx +195 -0
- package/src/demos/examples/Wizard/InPageWithDrawerInformationalStep.tsx +200 -0
- package/src/deprecated/components/PageHeader/PageHeaderToolsItem.tsx +0 -4
- package/src/deprecated/components/PageHeader/examples/PageVerticalNavUsingPageHeaderComponent.tsx +4 -4
- package/src/deprecated/components/PageHeader/tests/PageHeaderToolsItem.test.tsx +1 -3
- package/src/deprecated/components/PageHeader/tests/__snapshots__/PageHeaderToolsItem.test.tsx.snap +1 -1
- package/src/helpers/Popper/Popper.tsx +10 -19
- package/src/helpers/__mocks__/util.ts +2 -0
- package/src/helpers/datetimeUtils.ts +1 -1
- package/src/helpers/util.ts +22 -0
- package/dist/styles/assets/images/pf-c-brand__logo-on-lg-white.svg +0 -32
- package/dist/styles/assets/images/pf-c-brand__logo-on-md-white.svg +0 -42
- package/dist/styles/assets/images/pf-c-brand__logo-on-sm-white.svg +0 -17
- package/dist/styles/assets/images/pf-c-brand__logo-on-xl-white.svg +0 -39
- package/dist/styles/assets/images/pf_logo_white.hbs +0 -35
- package/dist/styles/assets/images/pf_logo_white.svg +0 -38
- package/src/components/ClipboardCopy/__tests__/Generated/ClipboardCopy.test.tsx +0 -40
- package/src/components/ClipboardCopy/__tests__/Generated/__snapshots__/ClipboardCopy.test.tsx.snap +0 -55
|
@@ -41,21 +41,6 @@ exports[`Page Check dark page against snapshot 1`] = `
|
|
|
41
41
|
>
|
|
42
42
|
Section with default background
|
|
43
43
|
</section>
|
|
44
|
-
<section
|
|
45
|
-
class="pf-v5-c-page__main-section pf-m-light"
|
|
46
|
-
>
|
|
47
|
-
Section with light background
|
|
48
|
-
</section>
|
|
49
|
-
<section
|
|
50
|
-
class="pf-v5-c-page__main-section pf-m-dark-200"
|
|
51
|
-
>
|
|
52
|
-
Section with dark background
|
|
53
|
-
</section>
|
|
54
|
-
<section
|
|
55
|
-
class="pf-v5-c-page__main-section pf-m-dark-100"
|
|
56
|
-
>
|
|
57
|
-
Section with darker background
|
|
58
|
-
</section>
|
|
59
44
|
</main>
|
|
60
45
|
</div>
|
|
61
46
|
</DocumentFragment>
|
|
@@ -101,21 +86,6 @@ exports[`Page Check page horizontal layout example against snapshot 1`] = `
|
|
|
101
86
|
>
|
|
102
87
|
Section with default background
|
|
103
88
|
</section>
|
|
104
|
-
<section
|
|
105
|
-
class="pf-v5-c-page__main-section pf-m-light"
|
|
106
|
-
>
|
|
107
|
-
Section with light background
|
|
108
|
-
</section>
|
|
109
|
-
<section
|
|
110
|
-
class="pf-v5-c-page__main-section pf-m-dark-200"
|
|
111
|
-
>
|
|
112
|
-
Section with dark background
|
|
113
|
-
</section>
|
|
114
|
-
<section
|
|
115
|
-
class="pf-v5-c-page__main-section pf-m-dark-100"
|
|
116
|
-
>
|
|
117
|
-
Section with darker background
|
|
118
|
-
</section>
|
|
119
89
|
</main>
|
|
120
90
|
</div>
|
|
121
91
|
</DocumentFragment>
|
|
@@ -265,21 +235,6 @@ exports[`Page Check page to verify breadcrumb is created - PageBreadcrumb syntax
|
|
|
265
235
|
>
|
|
266
236
|
Section with default background
|
|
267
237
|
</section>
|
|
268
|
-
<section
|
|
269
|
-
class="pf-v5-c-page__main-section pf-m-light"
|
|
270
|
-
>
|
|
271
|
-
Section with light background
|
|
272
|
-
</section>
|
|
273
|
-
<section
|
|
274
|
-
class="pf-v5-c-page__main-section pf-m-dark-200"
|
|
275
|
-
>
|
|
276
|
-
Section with dark background
|
|
277
|
-
</section>
|
|
278
|
-
<section
|
|
279
|
-
class="pf-v5-c-page__main-section pf-m-dark-100"
|
|
280
|
-
>
|
|
281
|
-
Section with darker background
|
|
282
|
-
</section>
|
|
283
238
|
</main>
|
|
284
239
|
</div>
|
|
285
240
|
</DocumentFragment>
|
|
@@ -429,21 +384,6 @@ exports[`Page Check page to verify breadcrumb is created 1`] = `
|
|
|
429
384
|
>
|
|
430
385
|
Section with default background
|
|
431
386
|
</section>
|
|
432
|
-
<section
|
|
433
|
-
class="pf-v5-c-page__main-section pf-m-light"
|
|
434
|
-
>
|
|
435
|
-
Section with light background
|
|
436
|
-
</section>
|
|
437
|
-
<section
|
|
438
|
-
class="pf-v5-c-page__main-section pf-m-dark-200"
|
|
439
|
-
>
|
|
440
|
-
Section with dark background
|
|
441
|
-
</section>
|
|
442
|
-
<section
|
|
443
|
-
class="pf-v5-c-page__main-section pf-m-dark-100"
|
|
444
|
-
>
|
|
445
|
-
Section with darker background
|
|
446
|
-
</section>
|
|
447
387
|
</main>
|
|
448
388
|
</div>
|
|
449
389
|
</DocumentFragment>
|
|
@@ -713,21 +653,6 @@ exports[`Page Check page to verify grouped nav and breadcrumb - new components s
|
|
|
713
653
|
>
|
|
714
654
|
Section with default background
|
|
715
655
|
</section>
|
|
716
|
-
<section
|
|
717
|
-
class="pf-v5-c-page__main-section pf-m-light"
|
|
718
|
-
>
|
|
719
|
-
Section with light background
|
|
720
|
-
</section>
|
|
721
|
-
<section
|
|
722
|
-
class="pf-v5-c-page__main-section pf-m-dark-200"
|
|
723
|
-
>
|
|
724
|
-
Section with dark background
|
|
725
|
-
</section>
|
|
726
|
-
<section
|
|
727
|
-
class="pf-v5-c-page__main-section pf-m-dark-100"
|
|
728
|
-
>
|
|
729
|
-
Section with darker background
|
|
730
|
-
</section>
|
|
731
656
|
</main>
|
|
732
657
|
</div>
|
|
733
658
|
</DocumentFragment>
|
|
@@ -1004,21 +929,6 @@ exports[`Page Check page to verify grouped nav and breadcrumb - old / props synt
|
|
|
1004
929
|
>
|
|
1005
930
|
Section with default background
|
|
1006
931
|
</section>
|
|
1007
|
-
<section
|
|
1008
|
-
class="pf-v5-c-page__main-section pf-m-light"
|
|
1009
|
-
>
|
|
1010
|
-
Section with light background
|
|
1011
|
-
</section>
|
|
1012
|
-
<section
|
|
1013
|
-
class="pf-v5-c-page__main-section pf-m-dark-200"
|
|
1014
|
-
>
|
|
1015
|
-
Section with dark background
|
|
1016
|
-
</section>
|
|
1017
|
-
<section
|
|
1018
|
-
class="pf-v5-c-page__main-section pf-m-dark-100"
|
|
1019
|
-
>
|
|
1020
|
-
Section with darker background
|
|
1021
|
-
</section>
|
|
1022
932
|
</main>
|
|
1023
933
|
</div>
|
|
1024
934
|
</DocumentFragment>
|
|
@@ -1180,21 +1090,6 @@ exports[`Page Check page to verify nav is created - PageNavigation syntax 1`] =
|
|
|
1180
1090
|
>
|
|
1181
1091
|
Section with default background
|
|
1182
1092
|
</section>
|
|
1183
|
-
<section
|
|
1184
|
-
class="pf-v5-c-page__main-section pf-m-light"
|
|
1185
|
-
>
|
|
1186
|
-
Section with light background
|
|
1187
|
-
</section>
|
|
1188
|
-
<section
|
|
1189
|
-
class="pf-v5-c-page__main-section pf-m-dark-200"
|
|
1190
|
-
>
|
|
1191
|
-
Section with dark background
|
|
1192
|
-
</section>
|
|
1193
|
-
<section
|
|
1194
|
-
class="pf-v5-c-page__main-section pf-m-dark-100"
|
|
1195
|
-
>
|
|
1196
|
-
Section with darker background
|
|
1197
|
-
</section>
|
|
1198
1093
|
</main>
|
|
1199
1094
|
</div>
|
|
1200
1095
|
</DocumentFragment>
|
|
@@ -1360,21 +1255,6 @@ exports[`Page Check page to verify skip to content points to main content region
|
|
|
1360
1255
|
>
|
|
1361
1256
|
Section with default background
|
|
1362
1257
|
</section>
|
|
1363
|
-
<section
|
|
1364
|
-
class="pf-v5-c-page__main-section pf-m-light"
|
|
1365
|
-
>
|
|
1366
|
-
Section with light background
|
|
1367
|
-
</section>
|
|
1368
|
-
<section
|
|
1369
|
-
class="pf-v5-c-page__main-section pf-m-dark-200"
|
|
1370
|
-
>
|
|
1371
|
-
Section with dark background
|
|
1372
|
-
</section>
|
|
1373
|
-
<section
|
|
1374
|
-
class="pf-v5-c-page__main-section pf-m-dark-100"
|
|
1375
|
-
>
|
|
1376
|
-
Section with darker background
|
|
1377
|
-
</section>
|
|
1378
1258
|
</main>
|
|
1379
1259
|
</div>
|
|
1380
1260
|
</DocumentFragment>
|
|
@@ -1421,21 +1301,6 @@ exports[`Page Check page vertical layout example against snapshot 1`] = `
|
|
|
1421
1301
|
>
|
|
1422
1302
|
Section with default background
|
|
1423
1303
|
</section>
|
|
1424
|
-
<section
|
|
1425
|
-
class="pf-v5-c-page__main-section pf-m-light"
|
|
1426
|
-
>
|
|
1427
|
-
Section with light background
|
|
1428
|
-
</section>
|
|
1429
|
-
<section
|
|
1430
|
-
class="pf-v5-c-page__main-section pf-m-dark-200"
|
|
1431
|
-
>
|
|
1432
|
-
Section with dark background
|
|
1433
|
-
</section>
|
|
1434
|
-
<section
|
|
1435
|
-
class="pf-v5-c-page__main-section pf-m-dark-100"
|
|
1436
|
-
>
|
|
1437
|
-
Section with darker background
|
|
1438
|
-
</section>
|
|
1439
1304
|
</main>
|
|
1440
1305
|
</div>
|
|
1441
1306
|
</DocumentFragment>
|
|
@@ -1585,21 +1450,6 @@ exports[`Page Sticky bottom breadcrumb on all height breakpoints - PageBreadcrum
|
|
|
1585
1450
|
>
|
|
1586
1451
|
Section with default background
|
|
1587
1452
|
</section>
|
|
1588
|
-
<section
|
|
1589
|
-
class="pf-v5-c-page__main-section pf-m-light"
|
|
1590
|
-
>
|
|
1591
|
-
Section with light background
|
|
1592
|
-
</section>
|
|
1593
|
-
<section
|
|
1594
|
-
class="pf-v5-c-page__main-section pf-m-dark-200"
|
|
1595
|
-
>
|
|
1596
|
-
Section with dark background
|
|
1597
|
-
</section>
|
|
1598
|
-
<section
|
|
1599
|
-
class="pf-v5-c-page__main-section pf-m-dark-100"
|
|
1600
|
-
>
|
|
1601
|
-
Section with darker background
|
|
1602
|
-
</section>
|
|
1603
1453
|
</main>
|
|
1604
1454
|
</div>
|
|
1605
1455
|
</DocumentFragment>
|
|
@@ -1749,21 +1599,6 @@ exports[`Page Verify sticky bottom breadcrumb on all height breakpoints 1`] = `
|
|
|
1749
1599
|
>
|
|
1750
1600
|
Section with default background
|
|
1751
1601
|
</section>
|
|
1752
|
-
<section
|
|
1753
|
-
class="pf-v5-c-page__main-section pf-m-light"
|
|
1754
|
-
>
|
|
1755
|
-
Section with light background
|
|
1756
|
-
</section>
|
|
1757
|
-
<section
|
|
1758
|
-
class="pf-v5-c-page__main-section pf-m-dark-200"
|
|
1759
|
-
>
|
|
1760
|
-
Section with dark background
|
|
1761
|
-
</section>
|
|
1762
|
-
<section
|
|
1763
|
-
class="pf-v5-c-page__main-section pf-m-dark-100"
|
|
1764
|
-
>
|
|
1765
|
-
Section with darker background
|
|
1766
|
-
</section>
|
|
1767
1602
|
</main>
|
|
1768
1603
|
</div>
|
|
1769
1604
|
</DocumentFragment>
|
|
@@ -1913,21 +1748,6 @@ exports[`Page Verify sticky top breadcrumb on all height breakpoints - PageBread
|
|
|
1913
1748
|
>
|
|
1914
1749
|
Section with default background
|
|
1915
1750
|
</section>
|
|
1916
|
-
<section
|
|
1917
|
-
class="pf-v5-c-page__main-section pf-m-light"
|
|
1918
|
-
>
|
|
1919
|
-
Section with light background
|
|
1920
|
-
</section>
|
|
1921
|
-
<section
|
|
1922
|
-
class="pf-v5-c-page__main-section pf-m-dark-200"
|
|
1923
|
-
>
|
|
1924
|
-
Section with dark background
|
|
1925
|
-
</section>
|
|
1926
|
-
<section
|
|
1927
|
-
class="pf-v5-c-page__main-section pf-m-dark-100"
|
|
1928
|
-
>
|
|
1929
|
-
Section with darker background
|
|
1930
|
-
</section>
|
|
1931
1751
|
</main>
|
|
1932
1752
|
</div>
|
|
1933
1753
|
</DocumentFragment>
|
|
@@ -2077,21 +1897,6 @@ exports[`Page Verify sticky top breadcrumb on all height breakpoints 1`] = `
|
|
|
2077
1897
|
>
|
|
2078
1898
|
Section with default background
|
|
2079
1899
|
</section>
|
|
2080
|
-
<section
|
|
2081
|
-
class="pf-v5-c-page__main-section pf-m-light"
|
|
2082
|
-
>
|
|
2083
|
-
Section with light background
|
|
2084
|
-
</section>
|
|
2085
|
-
<section
|
|
2086
|
-
class="pf-v5-c-page__main-section pf-m-dark-200"
|
|
2087
|
-
>
|
|
2088
|
-
Section with dark background
|
|
2089
|
-
</section>
|
|
2090
|
-
<section
|
|
2091
|
-
class="pf-v5-c-page__main-section pf-m-dark-100"
|
|
2092
|
-
>
|
|
2093
|
-
Section with darker background
|
|
2094
|
-
</section>
|
|
2095
1900
|
</main>
|
|
2096
1901
|
</div>
|
|
2097
1902
|
</DocumentFragment>
|
|
@@ -12,7 +12,6 @@ import {
|
|
|
12
12
|
PageGroup,
|
|
13
13
|
PageBreadcrumb,
|
|
14
14
|
PageNavigation,
|
|
15
|
-
PageSectionVariants,
|
|
16
15
|
PageToggleButton,
|
|
17
16
|
Breadcrumb,
|
|
18
17
|
BreadcrumbItem,
|
|
@@ -102,10 +101,10 @@ export const PageGroupSection: React.FunctionComponent = () => {
|
|
|
102
101
|
</BreadcrumbItem>
|
|
103
102
|
</Breadcrumb>
|
|
104
103
|
</PageBreadcrumb>
|
|
105
|
-
<PageSection
|
|
104
|
+
<PageSection>Grouped section</PageSection>
|
|
106
105
|
</PageGroup>
|
|
107
|
-
<PageSection
|
|
108
|
-
<PageSection
|
|
106
|
+
<PageSection>Section 1</PageSection>
|
|
107
|
+
<PageSection>Section 2</PageSection>
|
|
109
108
|
</Page>
|
|
110
109
|
);
|
|
111
110
|
};
|
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
MastheadBrand,
|
|
7
7
|
MastheadContent,
|
|
8
8
|
PageSection,
|
|
9
|
-
PageSectionVariants,
|
|
10
9
|
Toolbar,
|
|
11
10
|
ToolbarContent,
|
|
12
11
|
ToolbarItem
|
|
@@ -35,9 +34,9 @@ export const PageHorizontalNav: React.FunctionComponent = () => {
|
|
|
35
34
|
|
|
36
35
|
return (
|
|
37
36
|
<Page header={header}>
|
|
38
|
-
<PageSection
|
|
39
|
-
<PageSection
|
|
40
|
-
<PageSection
|
|
37
|
+
<PageSection>Section 1</PageSection>
|
|
38
|
+
<PageSection>Section 2</PageSection>
|
|
39
|
+
<PageSection>Section 3</PageSection>
|
|
41
40
|
</Page>
|
|
42
41
|
);
|
|
43
42
|
};
|
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
PageSidebar,
|
|
10
10
|
PageSidebarBody,
|
|
11
11
|
PageSection,
|
|
12
|
-
PageSectionVariants,
|
|
13
12
|
PageToggleButton,
|
|
14
13
|
Toolbar,
|
|
15
14
|
ToolbarContent,
|
|
@@ -63,13 +62,9 @@ export const PageMainSectionPadding: React.FunctionComponent = () => {
|
|
|
63
62
|
return (
|
|
64
63
|
<Page header={header} sidebar={sidebar}>
|
|
65
64
|
<PageSection>Section with default padding</PageSection>
|
|
66
|
-
<PageSection
|
|
67
|
-
Section with no padding
|
|
68
|
-
</PageSection>
|
|
65
|
+
<PageSection padding={{ default: 'noPadding' }}>Section with no padding</PageSection>
|
|
69
66
|
<PageSection padding={{ default: 'noPadding', md: 'padding' }}>Section with padding on medium</PageSection>
|
|
70
|
-
<PageSection
|
|
71
|
-
Section with no padding on medium
|
|
72
|
-
</PageSection>
|
|
67
|
+
<PageSection padding={{ md: 'noPadding' }}>Section with no padding on medium</PageSection>
|
|
73
68
|
</Page>
|
|
74
69
|
);
|
|
75
70
|
};
|
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
PageSidebar,
|
|
10
10
|
PageSidebarBody,
|
|
11
11
|
PageSection,
|
|
12
|
-
PageSectionVariants,
|
|
13
12
|
PageToggleButton,
|
|
14
13
|
Toolbar,
|
|
15
14
|
ToolbarContent,
|
|
@@ -66,9 +65,9 @@ export const PageMultipleSidebarBody: React.FunctionComponent = () => {
|
|
|
66
65
|
|
|
67
66
|
return (
|
|
68
67
|
<Page header={header} sidebar={sidebar}>
|
|
69
|
-
<PageSection
|
|
70
|
-
<PageSection
|
|
71
|
-
<PageSection
|
|
68
|
+
<PageSection>Section 1</PageSection>
|
|
69
|
+
<PageSection>Section 2</PageSection>
|
|
70
|
+
<PageSection>Section 3</PageSection>
|
|
72
71
|
</Page>
|
|
73
72
|
);
|
|
74
73
|
};
|
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
MastheadBrand,
|
|
7
7
|
MastheadContent,
|
|
8
8
|
PageSection,
|
|
9
|
-
PageSectionVariants,
|
|
10
9
|
Toolbar,
|
|
11
10
|
ToolbarContent,
|
|
12
11
|
ToolbarItem
|
|
@@ -34,9 +33,9 @@ export const PageTertiaryNav: React.FunctionComponent = () => {
|
|
|
34
33
|
|
|
35
34
|
return (
|
|
36
35
|
<Page header={header} tertiaryNav="Navigation">
|
|
37
|
-
<PageSection
|
|
38
|
-
<PageSection
|
|
39
|
-
<PageSection
|
|
36
|
+
<PageSection>Section 1</PageSection>
|
|
37
|
+
<PageSection>Section 2</PageSection>
|
|
38
|
+
<PageSection>Section 3</PageSection>
|
|
40
39
|
</Page>
|
|
41
40
|
);
|
|
42
41
|
};
|
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
PageSidebar,
|
|
10
10
|
PageSidebarBody,
|
|
11
11
|
PageSection,
|
|
12
|
-
PageSectionVariants,
|
|
13
12
|
PageToggleButton,
|
|
14
13
|
Toolbar,
|
|
15
14
|
ToolbarContent,
|
|
@@ -50,9 +49,9 @@ export const PageUncontrolledNav: React.FunctionComponent = () => {
|
|
|
50
49
|
|
|
51
50
|
return (
|
|
52
51
|
<Page isManagedSidebar header={header} sidebar={sidebar}>
|
|
53
|
-
<PageSection
|
|
54
|
-
<PageSection
|
|
55
|
-
<PageSection
|
|
52
|
+
<PageSection>Section 1</PageSection>
|
|
53
|
+
<PageSection>Section 2</PageSection>
|
|
54
|
+
<PageSection>Section 3</PageSection>
|
|
56
55
|
</Page>
|
|
57
56
|
);
|
|
58
57
|
};
|
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
PageSidebar,
|
|
10
10
|
PageSidebarBody,
|
|
11
11
|
PageSection,
|
|
12
|
-
PageSectionVariants,
|
|
13
12
|
PageToggleButton,
|
|
14
13
|
Toolbar,
|
|
15
14
|
ToolbarContent,
|
|
@@ -62,9 +61,9 @@ export const PageVerticalNav: React.FunctionComponent = () => {
|
|
|
62
61
|
|
|
63
62
|
return (
|
|
64
63
|
<Page header={header} sidebar={sidebar}>
|
|
65
|
-
<PageSection
|
|
66
|
-
<PageSection
|
|
67
|
-
<PageSection
|
|
64
|
+
<PageSection>Section 1</PageSection>
|
|
65
|
+
<PageSection>Section 2</PageSection>
|
|
66
|
+
<PageSection>Section 3</PageSection>
|
|
68
67
|
</Page>
|
|
69
68
|
);
|
|
70
69
|
};
|
|
@@ -59,6 +59,9 @@ export interface SearchInputProps extends Omit<React.HTMLProps<HTMLDivElement>,
|
|
|
59
59
|
appendTo?: HTMLElement | (() => HTMLElement) | 'inline';
|
|
60
60
|
/** An accessible label for the search input. */
|
|
61
61
|
'aria-label'?: string;
|
|
62
|
+
/** Flag to indicate utilities should be displayed. By default if this prop is undefined or false, utilities will only be displayed when the search input has a value. */
|
|
63
|
+
|
|
64
|
+
areUtilitiesDisplayed?: boolean;
|
|
62
65
|
/** Array of attribute values used for dynamically generated advanced search. */
|
|
63
66
|
attributes?: string[] | SearchInputSearchAttribute[];
|
|
64
67
|
/** Additional classes added to the search input. */
|
|
@@ -152,6 +155,7 @@ const SearchInputBase: React.FunctionComponent<SearchInputProps> = ({
|
|
|
152
155
|
appendTo,
|
|
153
156
|
zIndex = 9999,
|
|
154
157
|
name,
|
|
158
|
+
areUtilitiesDisplayed,
|
|
155
159
|
...props
|
|
156
160
|
}: SearchInputProps) => {
|
|
157
161
|
const [isSearchMenuOpen, setIsSearchMenuOpen] = React.useState(false);
|
|
@@ -295,7 +299,7 @@ const SearchInputBase: React.FunctionComponent<SearchInputProps> = ({
|
|
|
295
299
|
onChange={onChangeHandler}
|
|
296
300
|
name={name}
|
|
297
301
|
/>
|
|
298
|
-
{renderUtilities && (
|
|
302
|
+
{(renderUtilities || areUtilitiesDisplayed) && (
|
|
299
303
|
<TextInputGroupUtilities>
|
|
300
304
|
{resultsCount && <Badge isRead>{resultsCount}</Badge>}
|
|
301
305
|
{!!onNextClick && !!onPreviousClick && (
|
|
@@ -250,3 +250,11 @@ test('toggleAriaLabel is applied to the expandable toggle', () => {
|
|
|
250
250
|
|
|
251
251
|
expect(screen.getByRole('button')).toHaveAccessibleName('Test label');
|
|
252
252
|
});
|
|
253
|
+
|
|
254
|
+
test('Utilities are rendered when areUtilitiesDisplayed is set', () => {
|
|
255
|
+
render(
|
|
256
|
+
<SearchInput {...props} areUtilitiesDisplayed resetButtonLabel='test-util-display'/>
|
|
257
|
+
);
|
|
258
|
+
expect(screen.getByLabelText('test-util-display')).toBeVisible();
|
|
259
|
+
});
|
|
260
|
+
|
|
@@ -25,6 +25,8 @@ export interface SelectPopperProps {
|
|
|
25
25
|
* appendTo={document.getElementById('target')}
|
|
26
26
|
*/
|
|
27
27
|
appendTo?: HTMLElement | (() => HTMLElement) | 'inline';
|
|
28
|
+
/** Flag to prevent the popper from overflowing its container and becoming partially obscured. */
|
|
29
|
+
preventOverflow?: boolean;
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
export interface SelectToggleProps {
|
|
@@ -8,6 +8,7 @@ import { TextInput } from '../TextInput';
|
|
|
8
8
|
import { Tooltip } from '../Tooltip';
|
|
9
9
|
import cssSliderValue from '@patternfly/react-tokens/dist/esm/c_slider_value';
|
|
10
10
|
import cssFormControlWidthChars from '@patternfly/react-tokens/dist/esm/c_slider__value_c_form_control_width_chars';
|
|
11
|
+
import { getLanguageDirection } from '../../helpers/util';
|
|
11
12
|
|
|
12
13
|
/** Properties for creating custom steps in a slider. These properties should be passed in as
|
|
13
14
|
* an object within an array to the slider component's customSteps property.
|
|
@@ -125,7 +126,7 @@ export const Slider: React.FunctionComponent<SliderProps> = ({
|
|
|
125
126
|
let isRTL: boolean;
|
|
126
127
|
|
|
127
128
|
React.useEffect(() => {
|
|
128
|
-
isRTL =
|
|
129
|
+
isRTL = getLanguageDirection(sliderRailRef.current) === 'rtl';
|
|
129
130
|
});
|
|
130
131
|
|
|
131
132
|
React.useEffect(() => {
|
|
@@ -6,7 +6,7 @@ import { PickOptional } from '../../helpers/typeUtils';
|
|
|
6
6
|
import AngleLeftIcon from '@patternfly/react-icons/dist/esm/icons/angle-left-icon';
|
|
7
7
|
import AngleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-right-icon';
|
|
8
8
|
import PlusIcon from '@patternfly/react-icons/dist/esm/icons/plus-icon';
|
|
9
|
-
import { getUniqueId, isElementInView, formatBreakpointMods } from '../../helpers/util';
|
|
9
|
+
import { getUniqueId, isElementInView, formatBreakpointMods, getLanguageDirection } from '../../helpers/util';
|
|
10
10
|
import { TabContent } from './TabContent';
|
|
11
11
|
import { TabProps } from './Tab';
|
|
12
12
|
import { TabsContextProvider } from './TabsContext';
|
|
@@ -333,7 +333,7 @@ class Tabs extends React.Component<TabsProps, TabsState> {
|
|
|
333
333
|
if (canUseDOM) {
|
|
334
334
|
window.addEventListener('resize', this.handleScrollButtons, false);
|
|
335
335
|
}
|
|
336
|
-
this.direction =
|
|
336
|
+
this.direction = getLanguageDirection(this.tabList.current);
|
|
337
337
|
// call the handle resize function to check if scroll buttons should be shown
|
|
338
338
|
this.handleScrollButtons();
|
|
339
339
|
}
|
|
@@ -381,7 +381,7 @@ class Tabs extends React.Component<TabsProps, TabsState> {
|
|
|
381
381
|
this.setState({ showScrollButtons: false });
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
-
this.direction =
|
|
384
|
+
this.direction = getLanguageDirection(this.tabList.current);
|
|
385
385
|
}
|
|
386
386
|
|
|
387
387
|
render() {
|
package/src/demos/Banner.md
CHANGED
|
@@ -20,7 +20,6 @@ import {
|
|
|
20
20
|
Gallery,
|
|
21
21
|
GalleryItem,
|
|
22
22
|
PageSection,
|
|
23
|
-
PageSectionVariants,
|
|
24
23
|
TextContent,
|
|
25
24
|
Text
|
|
26
25
|
} from '@patternfly/react-core';
|
|
@@ -47,7 +46,7 @@ class BannerDemo extends React.Component {
|
|
|
47
46
|
<div className={css(display.displayNone, display.displayBlockOnLg)}>Ned Username</div>
|
|
48
47
|
</Flex>
|
|
49
48
|
</Banner>
|
|
50
|
-
<PageSection
|
|
49
|
+
<PageSection>
|
|
51
50
|
<TextContent>
|
|
52
51
|
<Text component="h1">Main title</Text>
|
|
53
52
|
<Text component="p">
|
|
@@ -87,7 +86,6 @@ import {
|
|
|
87
86
|
Gallery,
|
|
88
87
|
GalleryItem,
|
|
89
88
|
PageSection,
|
|
90
|
-
PageSectionVariants,
|
|
91
89
|
TextContent,
|
|
92
90
|
Text
|
|
93
91
|
} from '@patternfly/react-core';
|
|
@@ -122,7 +120,7 @@ class BannerDemo extends React.Component {
|
|
|
122
120
|
</FlexItem>
|
|
123
121
|
<FlexItem grow={{ default: 'grow' }} style={{ minHeight: 0 }}>
|
|
124
122
|
<DashboardWrapper breadcrumb={null}>
|
|
125
|
-
<PageSection
|
|
123
|
+
<PageSection>
|
|
126
124
|
<TextContent>
|
|
127
125
|
<Text component="h1">Main title</Text>
|
|
128
126
|
<Text component="p">
|
|
@@ -25,7 +25,6 @@ import {
|
|
|
25
25
|
OverflowMenuDropdownItem,
|
|
26
26
|
OverflowMenuItem,
|
|
27
27
|
PageSection,
|
|
28
|
-
PageSectionVariants,
|
|
29
28
|
Pagination,
|
|
30
29
|
TextContent,
|
|
31
30
|
Text,
|
|
@@ -472,7 +471,7 @@ export const CardViewBasic: React.FunctionComponent = () => {
|
|
|
472
471
|
return (
|
|
473
472
|
<React.Fragment>
|
|
474
473
|
<DashboardWrapper mainContainerId="main-content-card-view-default-nav" breadcrumb={null}>
|
|
475
|
-
<PageSection
|
|
474
|
+
<PageSection>
|
|
476
475
|
<TextContent>
|
|
477
476
|
<Text component="h1">Projects</Text>
|
|
478
477
|
<Text component="p">This is a demo that showcases PatternFly cards.</Text>
|
|
@@ -554,12 +553,7 @@ export const CardViewBasic: React.FunctionComponent = () => {
|
|
|
554
553
|
))}
|
|
555
554
|
</Gallery>
|
|
556
555
|
</PageSection>
|
|
557
|
-
<PageSection
|
|
558
|
-
isFilled={false}
|
|
559
|
-
stickyOnBreakpoint={{ default: 'bottom' }}
|
|
560
|
-
padding={{ default: 'noPadding' }}
|
|
561
|
-
variant="light"
|
|
562
|
-
>
|
|
556
|
+
<PageSection isFilled={false} stickyOnBreakpoint={{ default: 'bottom' }} padding={{ default: 'noPadding' }}>
|
|
563
557
|
<Pagination
|
|
564
558
|
itemCount={totalItemCount}
|
|
565
559
|
page={page}
|
package/src/demos/JumpLinks.md
CHANGED