@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
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Card,
|
|
4
|
+
CardBody,
|
|
5
|
+
Gallery,
|
|
6
|
+
GalleryItem,
|
|
7
|
+
Nav,
|
|
8
|
+
NavItem,
|
|
9
|
+
NavList,
|
|
10
|
+
Page,
|
|
11
|
+
PageSection,
|
|
12
|
+
PageSectionTypes,
|
|
13
|
+
PageSidebar,
|
|
14
|
+
PageSidebarBody,
|
|
15
|
+
SkipToContent,
|
|
16
|
+
TextContent,
|
|
17
|
+
Text
|
|
18
|
+
} from '@patternfly/react-core';
|
|
19
|
+
import { DashboardBreadcrumb } from '@patternfly/react-core/src/demos/DashboardWrapper';
|
|
20
|
+
import { DashboardHeader } from '@patternfly/react-core/src/demos/DashboardHeader';
|
|
21
|
+
|
|
22
|
+
export const NavWithSubnav: React.FunctionComponent = () => {
|
|
23
|
+
const [activeItem, setActiveItem] = React.useState<string | number>(0);
|
|
24
|
+
const [activeSubNavItem, setActiveSubNavItem] = React.useState<string | number>(7);
|
|
25
|
+
|
|
26
|
+
const onNavSelect = (
|
|
27
|
+
_event: React.FormEvent<HTMLInputElement>,
|
|
28
|
+
selectedItem: {
|
|
29
|
+
groupId: number | string;
|
|
30
|
+
itemId: number | string;
|
|
31
|
+
to: string;
|
|
32
|
+
}
|
|
33
|
+
) => setActiveItem(selectedItem.itemId);
|
|
34
|
+
|
|
35
|
+
const onSubNavSelect = (
|
|
36
|
+
_event: React.FormEvent<HTMLInputElement>,
|
|
37
|
+
selectedItem: {
|
|
38
|
+
groupId: number | string;
|
|
39
|
+
itemId: number | string;
|
|
40
|
+
to: string;
|
|
41
|
+
}
|
|
42
|
+
) => setActiveSubNavItem(selectedItem.itemId);
|
|
43
|
+
|
|
44
|
+
const PageNav = (
|
|
45
|
+
<Nav onSelect={onNavSelect} aria-label="Nav">
|
|
46
|
+
<NavList>
|
|
47
|
+
{/* Preventing default click behavior on each NavItem for demo purposes only */}
|
|
48
|
+
<NavItem preventDefault itemId={0} isActive={activeItem === 0} to="#">
|
|
49
|
+
System Panel
|
|
50
|
+
</NavItem>
|
|
51
|
+
<NavItem preventDefault itemId={1} isActive={activeItem === 1} to="#">
|
|
52
|
+
Policy
|
|
53
|
+
</NavItem>
|
|
54
|
+
<NavItem preventDefault itemId={2} isActive={activeItem === 2} to="#">
|
|
55
|
+
Authentication
|
|
56
|
+
</NavItem>
|
|
57
|
+
<NavItem preventDefault itemId={3} isActive={activeItem === 3} to="#">
|
|
58
|
+
Network Services
|
|
59
|
+
</NavItem>
|
|
60
|
+
<NavItem preventDefault itemId={4} isActive={activeItem === 4} to="#">
|
|
61
|
+
Server
|
|
62
|
+
</NavItem>
|
|
63
|
+
</NavList>
|
|
64
|
+
</Nav>
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
const Sidebar = (
|
|
68
|
+
<PageSidebar>
|
|
69
|
+
<PageSidebarBody>{PageNav}</PageSidebarBody>
|
|
70
|
+
</PageSidebar>
|
|
71
|
+
);
|
|
72
|
+
const pageId = 'main-content-page-layout-default-nav';
|
|
73
|
+
const PageSkipToContent = <SkipToContent href={`#${pageId}`}>Skip to content</SkipToContent>;
|
|
74
|
+
|
|
75
|
+
const SubNav = (
|
|
76
|
+
<Nav onSelect={onSubNavSelect} aria-label="Subnav" variant="horizontal-subnav">
|
|
77
|
+
<NavList>
|
|
78
|
+
<NavItem preventDefault itemId={7} isActive={activeSubNavItem === 7} to="#">
|
|
79
|
+
Horizontal subnav item 1
|
|
80
|
+
</NavItem>
|
|
81
|
+
<NavItem preventDefault itemId={8} isActive={activeSubNavItem === 8} to="#">
|
|
82
|
+
Horizontal subnav item 2
|
|
83
|
+
</NavItem>
|
|
84
|
+
<NavItem preventDefault itemId={9} isActive={activeSubNavItem === 9} to="#">
|
|
85
|
+
Horizontal subnav item 3
|
|
86
|
+
</NavItem>
|
|
87
|
+
<NavItem preventDefault itemId={10} isActive={activeSubNavItem === 10} to="#">
|
|
88
|
+
Horizontal subnav item 4
|
|
89
|
+
</NavItem>
|
|
90
|
+
<NavItem preventDefault itemId={11} isActive={activeSubNavItem === 11} to="#">
|
|
91
|
+
Horizontal subnav item 5
|
|
92
|
+
</NavItem>
|
|
93
|
+
<NavItem preventDefault itemId={12} isActive={activeSubNavItem === 12} to="#">
|
|
94
|
+
Horizontal subnav item 6
|
|
95
|
+
</NavItem>
|
|
96
|
+
<NavItem preventDefault itemId={13} isActive={activeSubNavItem === 13} to="#">
|
|
97
|
+
Horizontal subnav item 7
|
|
98
|
+
</NavItem>
|
|
99
|
+
</NavList>
|
|
100
|
+
</Nav>
|
|
101
|
+
);
|
|
102
|
+
|
|
103
|
+
return (
|
|
104
|
+
<React.Fragment>
|
|
105
|
+
<Page
|
|
106
|
+
header={<DashboardHeader />}
|
|
107
|
+
sidebar={Sidebar}
|
|
108
|
+
isManagedSidebar
|
|
109
|
+
skipToContent={PageSkipToContent}
|
|
110
|
+
mainContainerId={pageId}
|
|
111
|
+
>
|
|
112
|
+
<PageSection type={PageSectionTypes.subNav} isWidthLimited>
|
|
113
|
+
{SubNav}
|
|
114
|
+
</PageSection>
|
|
115
|
+
<PageSection type={PageSectionTypes.breadcrumb} isWidthLimited>
|
|
116
|
+
{DashboardBreadcrumb}
|
|
117
|
+
</PageSection>
|
|
118
|
+
<PageSection>
|
|
119
|
+
<TextContent>
|
|
120
|
+
<Text component="h1">Main title</Text>
|
|
121
|
+
<Text component="p">
|
|
122
|
+
Body text should be Overpass Regular at 16px. It should have leading of 24px because <br />
|
|
123
|
+
of it’s relative line height of 1.5.
|
|
124
|
+
</Text>
|
|
125
|
+
</TextContent>
|
|
126
|
+
</PageSection>
|
|
127
|
+
<PageSection>
|
|
128
|
+
<Gallery hasGutter>
|
|
129
|
+
{Array.from({ length: 10 }, (_value: any, index: React.Key) => (
|
|
130
|
+
<GalleryItem key={index}>
|
|
131
|
+
<Card>
|
|
132
|
+
<CardBody>This is a card</CardBody>
|
|
133
|
+
</Card>
|
|
134
|
+
</GalleryItem>
|
|
135
|
+
))}
|
|
136
|
+
</Gallery>
|
|
137
|
+
</PageSection>
|
|
138
|
+
</Page>
|
|
139
|
+
</React.Fragment>
|
|
140
|
+
);
|
|
141
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Card,
|
|
4
|
+
CardBody,
|
|
5
|
+
Gallery,
|
|
6
|
+
GalleryItem,
|
|
7
|
+
Nav,
|
|
8
|
+
NavItem,
|
|
9
|
+
NavList,
|
|
10
|
+
Page,
|
|
11
|
+
PageSection,
|
|
12
|
+
PageSidebar,
|
|
13
|
+
PageSidebarBody,
|
|
14
|
+
SkipToContent,
|
|
15
|
+
TextContent,
|
|
16
|
+
Text
|
|
17
|
+
} from '@patternfly/react-core';
|
|
18
|
+
import { DashboardHeader } from '@patternfly/react-core/src/demos/DashboardHeader';
|
|
19
|
+
|
|
20
|
+
export const NavLight: React.FunctionComponent = () => {
|
|
21
|
+
const [activeItem, setActiveItem] = React.useState<string | number>(0);
|
|
22
|
+
|
|
23
|
+
const onNavSelect = (
|
|
24
|
+
_event: React.FormEvent<HTMLInputElement>,
|
|
25
|
+
selectedItem: {
|
|
26
|
+
groupId: number | string;
|
|
27
|
+
itemId: number | string;
|
|
28
|
+
to: string;
|
|
29
|
+
}
|
|
30
|
+
) => setActiveItem(selectedItem.itemId);
|
|
31
|
+
|
|
32
|
+
const PageNav = (
|
|
33
|
+
<Nav onSelect={onNavSelect} aria-label="Nav" theme="light">
|
|
34
|
+
<NavList>
|
|
35
|
+
{/* Preventing default click behavior on each NavItem for demo purposes only */}
|
|
36
|
+
<NavItem preventDefault itemId={0} isActive={activeItem === 0} to="#">
|
|
37
|
+
System Panel
|
|
38
|
+
</NavItem>
|
|
39
|
+
<NavItem preventDefault itemId={1} isActive={activeItem === 1} to="#">
|
|
40
|
+
Policy
|
|
41
|
+
</NavItem>
|
|
42
|
+
<NavItem preventDefault itemId={2} isActive={activeItem === 2} to="#">
|
|
43
|
+
Authentication
|
|
44
|
+
</NavItem>
|
|
45
|
+
<NavItem preventDefault itemId={3} isActive={activeItem === 3} to="#">
|
|
46
|
+
Network Services
|
|
47
|
+
</NavItem>
|
|
48
|
+
<NavItem preventDefault itemId={4} isActive={activeItem === 4} to="#">
|
|
49
|
+
Server
|
|
50
|
+
</NavItem>
|
|
51
|
+
</NavList>
|
|
52
|
+
</Nav>
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
const Sidebar = (
|
|
56
|
+
<PageSidebar theme="light">
|
|
57
|
+
<PageSidebarBody>{PageNav}</PageSidebarBody>
|
|
58
|
+
</PageSidebar>
|
|
59
|
+
);
|
|
60
|
+
const pageId = 'main-content-page-layout-simple-nav';
|
|
61
|
+
const PageSkipToContent = <SkipToContent href={`#${pageId}`}>Skip to Content</SkipToContent>;
|
|
62
|
+
|
|
63
|
+
return (
|
|
64
|
+
<React.Fragment>
|
|
65
|
+
<Page
|
|
66
|
+
header={<DashboardHeader />}
|
|
67
|
+
sidebar={Sidebar}
|
|
68
|
+
isManagedSidebar
|
|
69
|
+
skipToContent={PageSkipToContent}
|
|
70
|
+
mainContainerId={pageId}
|
|
71
|
+
>
|
|
72
|
+
<PageSection>
|
|
73
|
+
<TextContent>
|
|
74
|
+
<Text component="h1">Main title</Text>
|
|
75
|
+
<Text component="p">
|
|
76
|
+
Body text should be Overpass Regular at 16px. It should have leading of 24px because <br />
|
|
77
|
+
of its relative line height of 1.5.
|
|
78
|
+
</Text>
|
|
79
|
+
</TextContent>
|
|
80
|
+
</PageSection>
|
|
81
|
+
<PageSection>
|
|
82
|
+
<Gallery hasGutter>
|
|
83
|
+
{Array.from({ length: 10 }, (_value: any, index: React.Key) => (
|
|
84
|
+
<GalleryItem key={index}>
|
|
85
|
+
<Card>
|
|
86
|
+
<CardBody>This is a card</CardBody>
|
|
87
|
+
</Card>
|
|
88
|
+
</GalleryItem>
|
|
89
|
+
))}
|
|
90
|
+
</Gallery>
|
|
91
|
+
</PageSection>
|
|
92
|
+
</Page>
|
|
93
|
+
</React.Fragment>
|
|
94
|
+
);
|
|
95
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Card,
|
|
4
|
+
CardBody,
|
|
5
|
+
Gallery,
|
|
6
|
+
GalleryItem,
|
|
7
|
+
Nav,
|
|
8
|
+
NavItem,
|
|
9
|
+
NavList,
|
|
10
|
+
Page,
|
|
11
|
+
PageSection,
|
|
12
|
+
SkipToContent,
|
|
13
|
+
TextContent,
|
|
14
|
+
Text
|
|
15
|
+
} from '@patternfly/react-core';
|
|
16
|
+
import { DashboardBreadcrumb } from '@patternfly/react-core/src/demos/DashboardWrapper';
|
|
17
|
+
import { DashboardHeader } from '@patternfly/react-core/src/demos/DashboardHeader';
|
|
18
|
+
|
|
19
|
+
export const NavTertiary: React.FunctionComponent = () => {
|
|
20
|
+
const [activeItem, setActiveItem] = React.useState<string | number>(0);
|
|
21
|
+
|
|
22
|
+
const onNavSelect = (
|
|
23
|
+
_event: React.FormEvent<HTMLInputElement>,
|
|
24
|
+
selectedItem: {
|
|
25
|
+
groupId: number | string;
|
|
26
|
+
itemId: number | string;
|
|
27
|
+
to: string;
|
|
28
|
+
}
|
|
29
|
+
) => setActiveItem(selectedItem.itemId);
|
|
30
|
+
|
|
31
|
+
const PageNav = (
|
|
32
|
+
<Nav variant="tertiary" onSelect={onNavSelect} aria-label="Nav">
|
|
33
|
+
<NavList>
|
|
34
|
+
{/* Preventing default click behavior on each NavItem for demo purposes only */}
|
|
35
|
+
<NavItem preventDefault itemId={0} isActive={activeItem === 0} to="#">
|
|
36
|
+
System Panel
|
|
37
|
+
</NavItem>
|
|
38
|
+
<NavItem preventDefault itemId={1} isActive={activeItem === 1} to="#">
|
|
39
|
+
Policy
|
|
40
|
+
</NavItem>
|
|
41
|
+
<NavItem preventDefault itemId={2} isActive={activeItem === 2} to="#">
|
|
42
|
+
Authentication
|
|
43
|
+
</NavItem>
|
|
44
|
+
<NavItem preventDefault itemId={3} isActive={activeItem === 3} to="#">
|
|
45
|
+
Network Services
|
|
46
|
+
</NavItem>
|
|
47
|
+
<NavItem preventDefault itemId={4} isActive={activeItem === 4} to="#">
|
|
48
|
+
Server
|
|
49
|
+
</NavItem>
|
|
50
|
+
</NavList>
|
|
51
|
+
</Nav>
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
const pageId = 'main-content-page-layout-tertiary-nav';
|
|
55
|
+
const PageSkipToContent = <SkipToContent href={`#${pageId}`}>Skip to content</SkipToContent>;
|
|
56
|
+
|
|
57
|
+
return (
|
|
58
|
+
<React.Fragment>
|
|
59
|
+
<Page
|
|
60
|
+
header={<DashboardHeader />}
|
|
61
|
+
breadcrumb={DashboardBreadcrumb}
|
|
62
|
+
tertiaryNav={PageNav}
|
|
63
|
+
isManagedSidebar
|
|
64
|
+
isTertiaryNavWidthLimited
|
|
65
|
+
skipToContent={PageSkipToContent}
|
|
66
|
+
mainContainerId={pageId}
|
|
67
|
+
>
|
|
68
|
+
<PageSection>
|
|
69
|
+
<TextContent>
|
|
70
|
+
<Text component="h1">Main title</Text>
|
|
71
|
+
<Text component="p">
|
|
72
|
+
Body text should be Overpass Regular at 16px. It should have leading of 24px because <br />
|
|
73
|
+
of its relative line height of 1.5.
|
|
74
|
+
</Text>
|
|
75
|
+
</TextContent>
|
|
76
|
+
</PageSection>
|
|
77
|
+
<PageSection>
|
|
78
|
+
<Gallery hasGutter>
|
|
79
|
+
{Array.from({ length: 10 }, (_value: any, index: React.Key) => (
|
|
80
|
+
<GalleryItem key={index}>
|
|
81
|
+
<Card>
|
|
82
|
+
<CardBody>This is a card</CardBody>
|
|
83
|
+
</Card>
|
|
84
|
+
</GalleryItem>
|
|
85
|
+
))}
|
|
86
|
+
</Gallery>
|
|
87
|
+
</PageSection>
|
|
88
|
+
</Page>
|
|
89
|
+
</React.Fragment>
|
|
90
|
+
);
|
|
91
|
+
};
|
|
@@ -27,7 +27,6 @@ import {
|
|
|
27
27
|
NavList,
|
|
28
28
|
Page,
|
|
29
29
|
PageSection,
|
|
30
|
-
PageSectionVariants,
|
|
31
30
|
PageSidebar,
|
|
32
31
|
PageSidebarBody,
|
|
33
32
|
PageToggleButton,
|
|
@@ -270,7 +269,7 @@ export const PageStickySectionBreadcrumb: React.FunctionComponent = () => {
|
|
|
270
269
|
}
|
|
271
270
|
}}
|
|
272
271
|
>
|
|
273
|
-
<PageSection
|
|
272
|
+
<PageSection isWidthLimited>
|
|
274
273
|
<TextContent>
|
|
275
274
|
<Text component="h1">Main title</Text>
|
|
276
275
|
<Text component="p">This is a full page demo.</Text>
|
|
@@ -27,7 +27,6 @@ import {
|
|
|
27
27
|
NavList,
|
|
28
28
|
Page,
|
|
29
29
|
PageSection,
|
|
30
|
-
PageSectionVariants,
|
|
31
30
|
PageSidebar,
|
|
32
31
|
PageSidebarBody,
|
|
33
32
|
PageToggleButton,
|
|
@@ -266,7 +265,7 @@ export const PageStickySectionGroup: React.FunctionComponent = () => {
|
|
|
266
265
|
isBreadcrumbWidthLimited
|
|
267
266
|
isBreadcrumbGrouped
|
|
268
267
|
additionalGroupedContent={
|
|
269
|
-
<PageSection
|
|
268
|
+
<PageSection isWidthLimited>
|
|
270
269
|
<TextContent>
|
|
271
270
|
<Text component="h1">Main title</Text>
|
|
272
271
|
<Text component="p">This is a full page demo.</Text>
|
|
@@ -29,7 +29,6 @@ import {
|
|
|
29
29
|
PageBreadcrumb,
|
|
30
30
|
PageGroup,
|
|
31
31
|
PageSection,
|
|
32
|
-
PageSectionVariants,
|
|
33
32
|
PageSidebar,
|
|
34
33
|
PageSidebarBody,
|
|
35
34
|
PageToggleButton,
|
|
@@ -266,7 +265,7 @@ export const PageStickySectionGroupAlternate: React.FunctionComponent = () => {
|
|
|
266
265
|
</BreadcrumbItem>
|
|
267
266
|
</Breadcrumb>
|
|
268
267
|
</PageBreadcrumb>
|
|
269
|
-
<PageSection
|
|
268
|
+
<PageSection isWidthLimited>
|
|
270
269
|
<TextContent>
|
|
271
270
|
<Text component="h1">Main title</Text>
|
|
272
271
|
<Text component="p">This is a full page demo.</Text>
|
|
@@ -27,7 +27,6 @@ import {
|
|
|
27
27
|
InputGroup,
|
|
28
28
|
InputGroupItem,
|
|
29
29
|
PageSection,
|
|
30
|
-
PageSectionVariants,
|
|
31
30
|
Progress,
|
|
32
31
|
Stack,
|
|
33
32
|
StackItem,
|
|
@@ -421,7 +420,7 @@ export const PrimaryDetailContentPadding: React.FunctionComponent = () => {
|
|
|
421
420
|
|
|
422
421
|
return (
|
|
423
422
|
<DashboardWrapper>
|
|
424
|
-
<PageSection
|
|
423
|
+
<PageSection>
|
|
425
424
|
<TextContent>
|
|
426
425
|
<Text component="h1">Main title</Text>
|
|
427
426
|
<Text component="p">
|
|
@@ -27,7 +27,6 @@ import {
|
|
|
27
27
|
InputGroup,
|
|
28
28
|
InputGroupItem,
|
|
29
29
|
PageSection,
|
|
30
|
-
PageSectionVariants,
|
|
31
30
|
Progress,
|
|
32
31
|
Stack,
|
|
33
32
|
StackItem,
|
|
@@ -421,7 +420,7 @@ export const PrimaryDetailFullPage: React.FunctionComponent = () => {
|
|
|
421
420
|
|
|
422
421
|
return (
|
|
423
422
|
<DashboardWrapper mainContainerId="main-content-page-layout-default-nav">
|
|
424
|
-
<PageSection
|
|
423
|
+
<PageSection>
|
|
425
424
|
<TextContent>
|
|
426
425
|
<Text component="h1">Main title</Text>
|
|
427
426
|
<Text component="p">
|
|
@@ -431,7 +430,7 @@ export const PrimaryDetailFullPage: React.FunctionComponent = () => {
|
|
|
431
430
|
</TextContent>
|
|
432
431
|
</PageSection>
|
|
433
432
|
<Divider component="div" />
|
|
434
|
-
<PageSection
|
|
433
|
+
<PageSection padding={{ default: 'noPadding' }}>
|
|
435
434
|
<Drawer isExpanded={isDrawerExpanded}>
|
|
436
435
|
<DrawerContent panelContent={panelContent}>
|
|
437
436
|
<DrawerContentBody>{drawerContent}</DrawerContentBody>
|
|
@@ -27,7 +27,6 @@ import {
|
|
|
27
27
|
InputGroup,
|
|
28
28
|
InputGroupItem,
|
|
29
29
|
PageSection,
|
|
30
|
-
PageSectionVariants,
|
|
31
30
|
Progress,
|
|
32
31
|
Stack,
|
|
33
32
|
StackItem,
|
|
@@ -421,7 +420,7 @@ export const PrimaryDetailInlineModifier: React.FunctionComponent = () => {
|
|
|
421
420
|
|
|
422
421
|
return (
|
|
423
422
|
<DashboardWrapper>
|
|
424
|
-
<PageSection
|
|
423
|
+
<PageSection>
|
|
425
424
|
<TextContent>
|
|
426
425
|
<Text component="h1">Main title</Text>
|
|
427
426
|
<Text component="p">
|
|
@@ -431,7 +430,7 @@ export const PrimaryDetailInlineModifier: React.FunctionComponent = () => {
|
|
|
431
430
|
</TextContent>
|
|
432
431
|
</PageSection>
|
|
433
432
|
<Divider component="div" />
|
|
434
|
-
<PageSection
|
|
433
|
+
<PageSection padding={{ default: 'noPadding' }}>
|
|
435
434
|
<Drawer isExpanded={isDrawerExpanded} isInline>
|
|
436
435
|
<DrawerContent panelContent={panelContent}>
|
|
437
436
|
<DrawerContentBody>{drawerContent}</DrawerContentBody>
|
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
Card,
|
|
9
9
|
CardBody,
|
|
10
10
|
CardTitle,
|
|
11
|
-
PageSectionVariants,
|
|
12
11
|
Modal,
|
|
13
12
|
ModalVariant,
|
|
14
13
|
Tab,
|
|
@@ -82,7 +81,7 @@ export const ModalTabs: React.FunctionComponent = () => {
|
|
|
82
81
|
return (
|
|
83
82
|
<React.Fragment>
|
|
84
83
|
<DashboardWrapper mainContainerId="main-content-card-view-default-nav">
|
|
85
|
-
<PageSection
|
|
84
|
+
<PageSection>
|
|
86
85
|
<TextContent>
|
|
87
86
|
<Text component="h1">Projects</Text>
|
|
88
87
|
<Text component="p">Click any project card to view Tabs within Modals.</Text>
|
|
@@ -127,7 +127,7 @@ export const NestedUnindentedTabs: React.FunctionComponent = () => {
|
|
|
127
127
|
|
|
128
128
|
return (
|
|
129
129
|
<DashboardWrapper hasPageTemplateTitle>
|
|
130
|
-
<PageSection type="tabs" isWidthLimited
|
|
130
|
+
<PageSection type="tabs" isWidthLimited>
|
|
131
131
|
<Tabs
|
|
132
132
|
activeKey={activeTabKey}
|
|
133
133
|
onSelect={(_event, tabIndex) => handleTabClick(Number(tabIndex))}
|
|
@@ -140,7 +140,7 @@ export const NestedUnindentedTabs: React.FunctionComponent = () => {
|
|
|
140
140
|
<Tab eventKey={3} title={<TabTitleText>Support</TabTitleText>} tabContentId={`tabContent${3}`} />
|
|
141
141
|
</Tabs>
|
|
142
142
|
</PageSection>
|
|
143
|
-
<PageSection isWidthLimited
|
|
143
|
+
<PageSection isWidthLimited>
|
|
144
144
|
<TabContent key={0} eventKey={0} id={`tabContent${0}`} activeKey={activeTabKey} hidden={0 !== activeTabKey}>
|
|
145
145
|
<TabContentBody>What's new panel</TabContentBody>
|
|
146
146
|
</TabContent>
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
OverflowMenuGroup,
|
|
25
25
|
OverflowMenuItem,
|
|
26
26
|
PageSection,
|
|
27
|
-
PageSectionVariants,
|
|
28
27
|
Progress,
|
|
29
28
|
ProgressSize,
|
|
30
29
|
Tabs,
|
|
@@ -391,12 +390,12 @@ export const TablesAndTabs = () => {
|
|
|
391
390
|
return (
|
|
392
391
|
<DashboardWrapper>
|
|
393
392
|
<React.Fragment>
|
|
394
|
-
<PageSection
|
|
393
|
+
<PageSection>
|
|
395
394
|
<Title headingLevel="h1" size="2xl">
|
|
396
395
|
Nodes
|
|
397
396
|
</Title>
|
|
398
397
|
</PageSection>
|
|
399
|
-
<PageSection
|
|
398
|
+
<PageSection padding={{ default: 'noPadding' }}>
|
|
400
399
|
{toolbar}
|
|
401
400
|
<Divider />
|
|
402
401
|
{tabContent}
|
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
SelectList,
|
|
9
9
|
SelectOption,
|
|
10
10
|
PageSection,
|
|
11
|
-
PageSectionVariants,
|
|
12
11
|
Toolbar,
|
|
13
12
|
ToolbarContent,
|
|
14
13
|
ToolbarGroup,
|
|
@@ -483,7 +482,7 @@ export const ConsoleLogViewerToolbar: React.FC = () => {
|
|
|
483
482
|
|
|
484
483
|
return (
|
|
485
484
|
<DashboardWrapper sidebarNavOpen={!mobileView} onPageResize={onPageResize}>
|
|
486
|
-
<PageSection
|
|
485
|
+
<PageSection>
|
|
487
486
|
<Toolbar id="log-viewer-toolbar" inset={{ default: 'insetNone' }}>
|
|
488
487
|
<ToolbarContent>{items}</ToolbarContent>
|
|
489
488
|
</Toolbar>
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Card,
|
|
4
|
+
CardBody,
|
|
5
|
+
Gallery,
|
|
6
|
+
GalleryItem,
|
|
7
|
+
PageSection,
|
|
8
|
+
Modal,
|
|
9
|
+
ModalVariant,
|
|
10
|
+
Wizard,
|
|
11
|
+
WizardHeader,
|
|
12
|
+
WizardStep
|
|
13
|
+
} from '@patternfly/react-core';
|
|
14
|
+
import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
|
|
15
|
+
|
|
16
|
+
export const WizardInModalDemo: React.FunctionComponent = () => (
|
|
17
|
+
<>
|
|
18
|
+
<DashboardWrapper hasPageTemplateTitle>
|
|
19
|
+
<PageSection isWidthLimited>
|
|
20
|
+
<Gallery hasGutter>
|
|
21
|
+
{Array.from({ length: 10 }).map((_, i) => (
|
|
22
|
+
<GalleryItem key={i}>
|
|
23
|
+
<Card>
|
|
24
|
+
<CardBody>This is a card</CardBody>
|
|
25
|
+
</Card>
|
|
26
|
+
</GalleryItem>
|
|
27
|
+
))}
|
|
28
|
+
</Gallery>
|
|
29
|
+
</PageSection>
|
|
30
|
+
</DashboardWrapper>
|
|
31
|
+
<Modal
|
|
32
|
+
isOpen
|
|
33
|
+
variant={ModalVariant.large}
|
|
34
|
+
showClose={false}
|
|
35
|
+
hasNoBodyWrapper
|
|
36
|
+
aria-describedby="wiz-modal-demo-description"
|
|
37
|
+
aria-labelledby="wiz-modal-demo-title"
|
|
38
|
+
>
|
|
39
|
+
<Wizard
|
|
40
|
+
header={
|
|
41
|
+
<WizardHeader
|
|
42
|
+
title="Wizard in modal"
|
|
43
|
+
titleId="wiz-modal-demo-title"
|
|
44
|
+
description="Simple wizard description"
|
|
45
|
+
descriptionId="wiz-modal-demo-description"
|
|
46
|
+
closeButtonAriaLabel="Close wizard"
|
|
47
|
+
/>
|
|
48
|
+
}
|
|
49
|
+
height={400}
|
|
50
|
+
>
|
|
51
|
+
<WizardStep name="Information" id="wizard-step-1">
|
|
52
|
+
<p>Step 1 content</p>
|
|
53
|
+
</WizardStep>
|
|
54
|
+
<WizardStep
|
|
55
|
+
name="Configuration"
|
|
56
|
+
id="wizard-step-2"
|
|
57
|
+
steps={[
|
|
58
|
+
<WizardStep name="Substep A" id="wizard-step-2a" key="wizard-step-2a">
|
|
59
|
+
<p>Configuration substep A</p>
|
|
60
|
+
</WizardStep>,
|
|
61
|
+
<WizardStep name="Substep B" id="wizard-step-2b" key="wizard-step-2b">
|
|
62
|
+
<p>Configuration substep B</p>
|
|
63
|
+
</WizardStep>
|
|
64
|
+
]}
|
|
65
|
+
/>
|
|
66
|
+
<WizardStep name="Additional" id="wizard-step-3">
|
|
67
|
+
<p>Step 3 content</p>
|
|
68
|
+
</WizardStep>
|
|
69
|
+
<WizardStep name="Review" id="wizard-step-4" footer={{ nextButtonText: 'Finish' }}>
|
|
70
|
+
<p>Review step content</p>
|
|
71
|
+
</WizardStep>
|
|
72
|
+
</Wizard>
|
|
73
|
+
</Modal>
|
|
74
|
+
</>
|
|
75
|
+
);
|