@patternfly/react-core 6.0.0-alpha.99 → 6.0.0-prerelease.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 +59 -0
- package/components/package.json +1 -1
- package/deprecated/package.json +1 -1
- package/dist/dynamic/components/AboutModal/package.json +1 -1
- package/dist/dynamic/components/Accordion/package.json +1 -1
- package/dist/dynamic/components/ActionList/package.json +1 -1
- package/dist/dynamic/components/Alert/package.json +1 -1
- package/dist/dynamic/components/Avatar/package.json +1 -1
- package/dist/dynamic/components/BackToTop/package.json +1 -1
- package/dist/dynamic/components/Backdrop/package.json +1 -1
- package/dist/dynamic/components/BackgroundImage/package.json +1 -1
- package/dist/dynamic/components/Badge/package.json +1 -1
- package/dist/dynamic/components/Banner/package.json +1 -1
- package/dist/dynamic/components/Brand/package.json +1 -1
- package/dist/dynamic/components/Breadcrumb/package.json +1 -1
- package/dist/dynamic/components/Button/package.json +1 -1
- package/dist/dynamic/components/CalendarMonth/package.json +1 -1
- package/dist/dynamic/components/Card/package.json +1 -1
- package/dist/dynamic/components/Checkbox/package.json +1 -1
- package/dist/dynamic/components/ClipboardCopy/package.json +1 -1
- package/dist/dynamic/components/CodeBlock/package.json +1 -1
- package/dist/dynamic/components/Content/package.json +1 -1
- package/dist/dynamic/components/DataList/package.json +1 -1
- package/dist/dynamic/components/DatePicker/package.json +1 -1
- package/dist/dynamic/components/DescriptionList/package.json +1 -1
- package/dist/dynamic/components/Divider/package.json +1 -1
- package/dist/dynamic/components/Drawer/package.json +1 -1
- package/dist/dynamic/components/Dropdown/package.json +1 -1
- package/dist/dynamic/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/components/EmptyState/package.json +1 -1
- package/dist/dynamic/components/ExpandableSection/package.json +1 -1
- package/dist/dynamic/components/FileUpload/package.json +1 -1
- package/dist/dynamic/components/Form/package.json +1 -1
- package/dist/dynamic/components/FormSelect/package.json +1 -1
- package/dist/dynamic/components/HelperText/package.json +1 -1
- package/dist/dynamic/components/Hint/package.json +1 -1
- package/dist/dynamic/components/Icon/package.json +1 -1
- package/dist/dynamic/components/InputGroup/package.json +1 -1
- package/dist/dynamic/components/JumpLinks/package.json +1 -1
- package/dist/dynamic/components/Label/package.json +1 -1
- package/dist/dynamic/components/List/package.json +1 -1
- package/dist/dynamic/components/LoginPage/package.json +1 -1
- package/dist/dynamic/components/Masthead/package.json +1 -1
- package/dist/dynamic/components/Menu/package.json +1 -1
- package/dist/dynamic/components/MenuToggle/package.json +1 -1
- package/dist/dynamic/components/Modal/package.json +1 -1
- package/dist/dynamic/components/MultipleFileUpload/package.json +1 -1
- package/dist/dynamic/components/Nav/package.json +1 -1
- package/dist/dynamic/components/NotificationBadge/package.json +1 -1
- package/dist/dynamic/components/NotificationDrawer/package.json +1 -1
- package/dist/dynamic/components/NumberInput/package.json +1 -1
- package/dist/dynamic/components/OverflowMenu/package.json +1 -1
- package/dist/dynamic/components/Page/package.json +1 -1
- package/dist/dynamic/components/Pagination/package.json +1 -1
- package/dist/dynamic/components/Panel/package.json +1 -1
- package/dist/dynamic/components/Popover/package.json +1 -1
- package/dist/dynamic/components/Progress/package.json +1 -1
- package/dist/dynamic/components/ProgressStepper/package.json +1 -1
- package/dist/dynamic/components/Radio/package.json +1 -1
- package/dist/dynamic/components/SearchInput/package.json +1 -1
- package/dist/dynamic/components/Select/package.json +1 -1
- package/dist/dynamic/components/Sidebar/package.json +1 -1
- package/dist/dynamic/components/SimpleList/package.json +1 -1
- package/dist/dynamic/components/Skeleton/package.json +1 -1
- package/dist/dynamic/components/SkipToContent/package.json +1 -1
- package/dist/dynamic/components/Slider/package.json +1 -1
- package/dist/dynamic/components/Spinner/package.json +1 -1
- package/dist/dynamic/components/Switch/package.json +1 -1
- package/dist/dynamic/components/Tabs/package.json +1 -1
- package/dist/dynamic/components/TextArea/package.json +1 -1
- package/dist/dynamic/components/TextInput/package.json +1 -1
- package/dist/dynamic/components/TextInputGroup/package.json +1 -1
- package/dist/dynamic/components/Tile/package.json +1 -1
- package/dist/dynamic/components/TimePicker/package.json +1 -1
- package/dist/dynamic/components/Timestamp/package.json +1 -1
- package/dist/dynamic/components/Title/package.json +1 -1
- package/dist/dynamic/components/ToggleGroup/package.json +1 -1
- package/dist/dynamic/components/Toolbar/package.json +1 -1
- package/dist/dynamic/components/Tooltip/package.json +1 -1
- package/dist/dynamic/components/TreeView/package.json +1 -1
- package/dist/dynamic/components/Truncate/package.json +1 -1
- package/dist/dynamic/components/Wizard/hooks/package.json +1 -1
- package/dist/dynamic/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/Chip/package.json +1 -1
- package/dist/dynamic/deprecated/components/DragDrop/package.json +1 -1
- package/dist/dynamic/deprecated/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/deprecated/components/Modal/package.json +1 -1
- package/dist/dynamic/deprecated/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/package.json +1 -1
- package/dist/dynamic/helpers/FocusTrap/FocusTrap/package.json +1 -1
- package/dist/dynamic/helpers/GenerateId/GenerateId/package.json +1 -1
- package/dist/dynamic/helpers/KeyboardHandler/package.json +1 -1
- package/dist/dynamic/helpers/OUIA/ouia/package.json +1 -1
- package/dist/dynamic/helpers/Popper/Popper/package.json +1 -1
- package/dist/dynamic/helpers/constants/package.json +1 -1
- package/dist/dynamic/helpers/datetimeUtils/package.json +1 -1
- package/dist/dynamic/helpers/fileUtils/package.json +1 -1
- package/dist/dynamic/helpers/htmlConstants/package.json +1 -1
- package/dist/dynamic/helpers/package.json +1 -1
- package/dist/dynamic/helpers/resizeObserver/package.json +1 -1
- package/dist/dynamic/helpers/typeUtils/package.json +1 -1
- package/dist/dynamic/helpers/useInterval/package.json +1 -1
- package/dist/dynamic/helpers/useIsomorphicLayout/package.json +1 -1
- package/dist/dynamic/helpers/useUnmountEffect/package.json +1 -1
- package/dist/dynamic/helpers/util/package.json +1 -1
- package/dist/dynamic/layouts/Bullseye/package.json +1 -1
- package/dist/dynamic/layouts/Flex/package.json +1 -1
- package/dist/dynamic/layouts/Gallery/package.json +1 -1
- package/dist/dynamic/layouts/Grid/package.json +1 -1
- package/dist/dynamic/layouts/Level/package.json +1 -1
- package/dist/dynamic/layouts/Split/package.json +1 -1
- package/dist/dynamic/layouts/Stack/package.json +1 -1
- package/dist/dynamic/styles/package.json +1 -1
- package/dist/esm/components/Button/Button.d.ts +1 -1
- package/dist/esm/components/Button/Button.d.ts.map +1 -1
- package/dist/esm/components/Button/Button.js +8 -3
- package/dist/esm/components/Button/Button.js.map +1 -1
- package/dist/esm/components/Card/CardHeader.d.ts +16 -10
- package/dist/esm/components/Card/CardHeader.d.ts.map +1 -1
- package/dist/esm/components/Card/CardHeader.js +25 -29
- package/dist/esm/components/Card/CardHeader.js.map +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.d.ts.map +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.js +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.js.map +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopyButton.d.ts +2 -0
- 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/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/esm/components/DatePicker/DatePicker.js +2 -5
- package/dist/esm/components/DatePicker/DatePicker.js.map +1 -1
- package/dist/esm/components/Drawer/DrawerCloseButton.d.ts.map +1 -1
- package/dist/esm/components/Drawer/DrawerCloseButton.js +1 -2
- package/dist/esm/components/Drawer/DrawerCloseButton.js.map +1 -1
- package/dist/esm/components/ExpandableSection/ExpandableSection.d.ts.map +1 -1
- package/dist/esm/components/ExpandableSection/ExpandableSection.js +6 -4
- package/dist/esm/components/ExpandableSection/ExpandableSection.js.map +1 -1
- package/dist/esm/components/ExpandableSection/ExpandableSectionToggle.d.ts.map +1 -1
- package/dist/esm/components/ExpandableSection/ExpandableSectionToggle.js +6 -4
- package/dist/esm/components/ExpandableSection/ExpandableSectionToggle.js.map +1 -1
- package/dist/esm/components/LoginPage/LoginMainHeader.js +1 -1
- package/dist/esm/components/LoginPage/LoginMainHeader.js.map +1 -1
- package/dist/esm/components/MenuToggle/MenuToggle.d.ts +2 -0
- package/dist/esm/components/MenuToggle/MenuToggle.d.ts.map +1 -1
- package/dist/esm/components/MenuToggle/MenuToggle.js +3 -2
- package/dist/esm/components/MenuToggle/MenuToggle.js.map +1 -1
- package/dist/esm/components/NotificationDrawer/NotificationDrawerListItemHeader.d.ts +2 -0
- package/dist/esm/components/NotificationDrawer/NotificationDrawerListItemHeader.d.ts.map +1 -1
- package/dist/esm/components/NotificationDrawer/NotificationDrawerListItemHeader.js +2 -2
- package/dist/esm/components/NotificationDrawer/NotificationDrawerListItemHeader.js.map +1 -1
- package/dist/esm/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/esm/components/NumberInput/NumberInput.js +4 -6
- package/dist/esm/components/NumberInput/NumberInput.js.map +1 -1
- package/dist/esm/components/Page/Page.d.ts +3 -0
- package/dist/esm/components/Page/Page.d.ts.map +1 -1
- package/dist/esm/components/Page/Page.js +4 -2
- package/dist/esm/components/Page/Page.js.map +1 -1
- package/dist/esm/components/Tabs/TabAction.d.ts.map +1 -1
- package/dist/esm/components/Tabs/TabAction.js +1 -2
- package/dist/esm/components/Tabs/TabAction.js.map +1 -1
- package/dist/esm/demos/DashboardHeader.d.ts.map +1 -1
- package/dist/esm/demos/DashboardHeader.js +2 -2
- package/dist/esm/demos/DashboardHeader.js.map +1 -1
- package/dist/esm/demos/DashboardWrapper.d.ts.map +1 -1
- package/dist/esm/demos/DashboardWrapper.js +2 -2
- package/dist/esm/demos/DashboardWrapper.js.map +1 -1
- package/dist/js/components/Button/Button.d.ts +1 -1
- package/dist/js/components/Button/Button.d.ts.map +1 -1
- package/dist/js/components/Button/Button.js +8 -3
- package/dist/js/components/Button/Button.js.map +1 -1
- package/dist/js/components/Card/CardHeader.d.ts +16 -10
- package/dist/js/components/Card/CardHeader.d.ts.map +1 -1
- package/dist/js/components/Card/CardHeader.js +25 -29
- package/dist/js/components/Card/CardHeader.js.map +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopy.d.ts.map +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopy.js +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopy.js.map +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopyButton.d.ts +2 -0
- 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/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/js/components/DatePicker/DatePicker.js +2 -5
- package/dist/js/components/DatePicker/DatePicker.js.map +1 -1
- package/dist/js/components/Drawer/DrawerCloseButton.d.ts.map +1 -1
- package/dist/js/components/Drawer/DrawerCloseButton.js +1 -2
- package/dist/js/components/Drawer/DrawerCloseButton.js.map +1 -1
- package/dist/js/components/ExpandableSection/ExpandableSection.d.ts.map +1 -1
- package/dist/js/components/ExpandableSection/ExpandableSection.js +6 -4
- package/dist/js/components/ExpandableSection/ExpandableSection.js.map +1 -1
- package/dist/js/components/ExpandableSection/ExpandableSectionToggle.d.ts.map +1 -1
- package/dist/js/components/ExpandableSection/ExpandableSectionToggle.js +6 -4
- package/dist/js/components/ExpandableSection/ExpandableSectionToggle.js.map +1 -1
- package/dist/js/components/LoginPage/LoginMainHeader.js +1 -1
- package/dist/js/components/LoginPage/LoginMainHeader.js.map +1 -1
- package/dist/js/components/MenuToggle/MenuToggle.d.ts +2 -0
- package/dist/js/components/MenuToggle/MenuToggle.d.ts.map +1 -1
- package/dist/js/components/MenuToggle/MenuToggle.js +3 -2
- package/dist/js/components/MenuToggle/MenuToggle.js.map +1 -1
- package/dist/js/components/NotificationDrawer/NotificationDrawerListItemHeader.d.ts +2 -0
- package/dist/js/components/NotificationDrawer/NotificationDrawerListItemHeader.d.ts.map +1 -1
- package/dist/js/components/NotificationDrawer/NotificationDrawerListItemHeader.js +2 -2
- package/dist/js/components/NotificationDrawer/NotificationDrawerListItemHeader.js.map +1 -1
- package/dist/js/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/js/components/NumberInput/NumberInput.js +4 -6
- package/dist/js/components/NumberInput/NumberInput.js.map +1 -1
- package/dist/js/components/Page/Page.d.ts +3 -0
- package/dist/js/components/Page/Page.d.ts.map +1 -1
- package/dist/js/components/Page/Page.js +4 -2
- package/dist/js/components/Page/Page.js.map +1 -1
- package/dist/js/components/Tabs/TabAction.d.ts.map +1 -1
- package/dist/js/components/Tabs/TabAction.js +1 -2
- package/dist/js/components/Tabs/TabAction.js.map +1 -1
- package/dist/js/demos/DashboardHeader.d.ts.map +1 -1
- package/dist/js/demos/DashboardHeader.js +2 -2
- package/dist/js/demos/DashboardHeader.js.map +1 -1
- package/dist/js/demos/DashboardWrapper.d.ts.map +1 -1
- package/dist/js/demos/DashboardWrapper.js +2 -2
- package/dist/js/demos/DashboardWrapper.js.map +1 -1
- package/dist/styles/assets/images/pf_logo_white.svg +16 -17
- package/dist/styles/base-no-reset.css +14 -13
- package/dist/styles/base.css +14 -13
- package/dist/umd/assets/{output-CIrjpuGJ.css → output-DqwzX1i3.css} +9609 -9611
- package/dist/umd/react-core.min.js +2 -2
- package/helpers/package.json +1 -1
- package/layouts/package.json +1 -1
- package/next/package.json +1 -1
- package/package.json +10 -11
- package/scripts/{copyStyles.js → copyStyles.mjs} +7 -4
- package/src/components/AboutModal/__tests__/__snapshots__/AboutModalBoxCloseButton.test.tsx.snap +3 -3
- package/src/components/Alert/__tests__/Generated/__snapshots__/AlertActionCloseButton.test.tsx.snap +1 -1
- package/src/components/Button/Button.tsx +19 -7
- package/src/components/Card/CardHeader.tsx +115 -93
- package/src/components/Card/__tests__/CardHeader.test.tsx +330 -1
- package/src/components/Card/__tests__/__snapshots__/CardHeader.test.tsx.snap +1 -1
- package/src/components/Card/examples/CardClickable.tsx +11 -21
- package/src/components/Card/examples/CardClickableSelectable.tsx +6 -3
- package/src/components/Card/examples/CardSelectable.tsx +6 -3
- package/src/components/Card/examples/CardSingleSelectable.tsx +6 -3
- package/src/components/ClipboardCopy/ClipboardCopy.tsx +1 -0
- package/src/components/ClipboardCopy/ClipboardCopyButton.tsx +4 -0
- package/src/components/ClipboardCopy/__tests__/ClipboardCopyButton.test.tsx +8 -0
- package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyButton.test.tsx.snap +1 -1
- package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyToggle.test.tsx.snap +1 -1
- package/src/components/ClipboardCopy/examples/ClipboardCopyInlineCompactWithAdditionalAction.tsx +1 -1
- package/src/components/DataList/__tests__/Generated/__snapshots__/DataListToggle.test.tsx.snap +1 -1
- package/src/components/DataList/__tests__/__snapshots__/DataListToggle.test.tsx.snap +1 -1
- package/src/components/DatePicker/DatePicker.tsx +7 -9
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.test.tsx.snap +44 -26
- package/src/components/Drawer/DrawerCloseButton.tsx +1 -3
- package/src/components/Drawer/__tests__/__snapshots__/Drawer.test.tsx.snap +6 -6
- package/src/components/DualListSelector/examples/DualListSelector.md +0 -1
- package/src/components/ExpandableSection/ExpandableSection.tsx +20 -15
- package/src/components/ExpandableSection/ExpandableSectionToggle.tsx +25 -20
- package/src/components/ExpandableSection/__tests__/__snapshots__/ExpandableSection.test.tsx.snap +205 -145
- package/src/components/Form/__tests__/__snapshots__/FormFieldGroup.test.tsx.snap +1 -1
- package/src/components/Form/examples/FormFieldGroups.tsx +3 -15
- package/src/components/Label/__tests__/__snapshots__/Label.test.tsx.snap +3 -3
- package/src/components/Label/__tests__/__snapshots__/LabelGroup.test.tsx.snap +1 -1
- package/src/components/LoginPage/LoginMainHeader.tsx +2 -2
- package/src/components/LoginPage/__tests__/__snapshots__/LoginForm.test.tsx.snap +1 -1
- package/src/components/LoginPage/__tests__/__snapshots__/LoginMainHeader.test.tsx.snap +4 -4
- package/src/components/LoginPage/__tests__/__snapshots__/LoginPage.test.tsx.snap +2 -2
- package/src/components/MenuToggle/MenuToggle.tsx +5 -0
- package/src/components/MenuToggle/__tests__/MenuToggle.test.tsx +5 -0
- package/src/components/MenuToggle/examples/MenuToggle.md +8 -0
- package/src/components/MenuToggle/examples/MenuTogglePlaceholder.tsx +6 -0
- package/src/components/Modal/__tests__/__snapshots__/ModalContent.test.tsx.snap +1 -1
- package/src/components/Modal/examples/Modal.md +0 -1
- package/src/components/Modal/examples/ModalWithHelp.tsx +1 -3
- package/src/components/MultipleFileUpload/__tests__/__snapshots__/MultipleFileUploadStatus.test.tsx.snap +183 -135
- package/src/components/MultipleFileUpload/__tests__/__snapshots__/MultipleFileUploadStatusItem.test.tsx.snap +8 -8
- package/src/components/NotificationDrawer/NotificationDrawerListItemHeader.tsx +8 -1
- package/src/components/NotificationDrawer/__tests__/NotificationDrawerListItemHeader.test.tsx +24 -0
- package/src/components/NotificationDrawer/examples/NotificationDrawerBasic.tsx +14 -21
- package/src/components/NotificationDrawer/examples/NotificationDrawerGroups.tsx +18 -27
- package/src/components/NumberInput/NumberInput.tsx +12 -10
- package/src/components/NumberInput/__tests__/__snapshots__/NumberInput.test.tsx.snap +26 -26
- package/src/components/Page/Page.tsx +6 -0
- package/src/components/Pagination/__tests__/Generated/__snapshots__/Navigation.test.tsx.snap +4 -4
- package/src/components/Pagination/__tests__/__snapshots__/Pagination.test.tsx.snap +84 -84
- package/src/components/Popover/__tests__/Generated/__snapshots__/PopoverCloseButton.test.tsx.snap +1 -1
- package/src/components/SearchInput/__tests__/__snapshots__/SearchInput.test.tsx.snap +17 -17
- package/src/components/Tabs/TabAction.tsx +2 -3
- package/src/components/Tabs/__tests__/__snapshots__/Tab.test.tsx.snap +1 -1
- package/src/components/Toolbar/__tests__/__snapshots__/Toolbar.test.tsx.snap +4 -4
- package/src/demos/Banner.md +18 -15
- package/src/demos/CardDemos.md +1 -1
- package/src/demos/CustomMenus/examples/ContextSelectorDemo.tsx +2 -3
- package/src/demos/DashboardHeader.tsx +2 -3
- package/src/demos/DashboardWrapper.tsx +2 -0
- package/src/demos/JumpLinks.md +28 -17
- package/src/demos/NotificationDrawer/examples/NotificationDrawerBasic.tsx +2 -3
- package/src/demos/NotificationDrawer/examples/NotificationDrawerGrouped.tsx +2 -3
- package/src/demos/RTL/examples/PaginatedTable.jsx +2 -3
- package/src/demos/RTL/examples/PaginatedTable.tsx +2 -3
- package/src/demos/examples/Card/CardUtilizationDemo3.tsx +3 -3
- package/src/demos/examples/Masthead/MastheadWithHorizontalNav.tsx +2 -3
- package/src/demos/examples/Masthead/MastheadWithUtilitiesAndUserDropdownMenu.tsx +2 -3
- package/src/demos/examples/Nav/NavFlyout.tsx +2 -3
- package/src/demos/examples/Nav/NavHorizontal.tsx +2 -3
- package/src/demos/examples/Nav/NavHorizontalWithSubnav.tsx +2 -3
- package/src/demos/examples/Nav/NavManual.tsx +2 -3
- package/src/demos/examples/Page/PageContextSelector.tsx +2 -3
- package/src/demos/examples/Page/PageStickySectionBreadcrumb.tsx +2 -3
- package/src/demos/examples/Page/PageStickySectionGroup.tsx +2 -3
- package/src/demos/examples/Page/PageStickySectionGroupAlternate.tsx +2 -3
- package/src/demos/examples/Tabs/ModalTabs.tsx +58 -48
- package/src/demos/examples/Tabs/NestedTabs.tsx +0 -2
- package/src/demos/examples/Tabs/NestedUnindentedTabs.tsx +0 -2
- package/src/deprecated/components/Chip/__tests__/__snapshots__/Chip.test.tsx.snap +1 -1
- package/src/deprecated/components/Modal/__tests__/__snapshots__/ModalContent.test.tsx.snap +8 -8
- package/src/deprecated/components/Modal/examples/ModalWithHelp.tsx +1 -3
- package/src/deprecated/components/Wizard/__tests__/__snapshots__/Wizard.test.tsx.snap +2 -2
- package/dist/styles/assets/images/pf-logo-small.svg +0 -23
- package/dist/styles/assets/images/pf_logo_white.hbs +0 -35
- package/dist/styles/assets/images/pfbg-icon.svg +0 -1
- package/dist/styles/assets/pficon/pf-v5-pficon.woff2 +0 -0
- package/scripts/cleanDistExports.js +0 -14
- package/src/helpers/safeHTMLElement.js +0 -4
|
@@ -35,9 +35,7 @@ export const ModalWithHelp: React.FunctionComponent = () => {
|
|
|
35
35
|
}
|
|
36
36
|
footerContent="Popover Footer"
|
|
37
37
|
>
|
|
38
|
-
<Button variant="plain" aria-label="Help"
|
|
39
|
-
<HelpIcon />
|
|
40
|
-
</Button>
|
|
38
|
+
<Button variant="plain" aria-label="Help" icon={<HelpIcon />} />
|
|
41
39
|
</Popover>
|
|
42
40
|
}
|
|
43
41
|
/>
|
|
@@ -8,45 +8,57 @@ exports[`MultipleFileUploadStatus renders custom class names 1`] = `
|
|
|
8
8
|
<div
|
|
9
9
|
class="pf-v6-c-expandable-section pf-m-expanded"
|
|
10
10
|
>
|
|
11
|
-
<
|
|
12
|
-
aria-controls="generated-id-content"
|
|
13
|
-
aria-expanded="true"
|
|
11
|
+
<div
|
|
14
12
|
class="pf-v6-c-expandable-section__toggle"
|
|
15
|
-
id="generated-id-toggle"
|
|
16
|
-
type="button"
|
|
17
13
|
>
|
|
18
|
-
<
|
|
19
|
-
|
|
14
|
+
<button
|
|
15
|
+
aria-controls="generated-id-content"
|
|
16
|
+
aria-disabled="false"
|
|
17
|
+
aria-expanded="true"
|
|
18
|
+
class="pf-v6-c-button pf-m-link"
|
|
19
|
+
data-ouia-component-id="OUIA-Generated-Button-link-2"
|
|
20
|
+
data-ouia-component-type="PF6/Button"
|
|
21
|
+
data-ouia-safe="true"
|
|
22
|
+
id="generated-id-toggle"
|
|
23
|
+
type="button"
|
|
20
24
|
>
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
class="pf-v6-svg"
|
|
24
|
-
fill="currentColor"
|
|
25
|
-
height="1em"
|
|
26
|
-
role="img"
|
|
27
|
-
viewBox="0 0 256 512"
|
|
28
|
-
width="1em"
|
|
25
|
+
<span
|
|
26
|
+
class="pf-v6-c-button__icon pf-m-start"
|
|
29
27
|
>
|
|
30
|
-
<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
28
|
+
<span
|
|
29
|
+
class="pf-v6-c-expandable-section__toggle-icon"
|
|
30
|
+
>
|
|
31
|
+
<svg
|
|
32
|
+
aria-hidden="true"
|
|
33
|
+
class="pf-v6-svg"
|
|
34
|
+
fill="currentColor"
|
|
35
|
+
height="1em"
|
|
36
|
+
role="img"
|
|
37
|
+
viewBox="0 0 256 512"
|
|
38
|
+
width="1em"
|
|
39
|
+
>
|
|
40
|
+
<path
|
|
41
|
+
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
|
|
42
|
+
/>
|
|
43
|
+
</svg>
|
|
44
|
+
</span>
|
|
45
|
+
</span>
|
|
46
|
+
<span
|
|
47
|
+
class="pf-v6-c-button__text"
|
|
40
48
|
>
|
|
41
49
|
<div
|
|
42
|
-
class="pf-v6-c-multiple-file-upload__status-progress
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
class="pf-v6-c-multiple-file-upload__status-progress"
|
|
51
|
+
>
|
|
52
|
+
<div
|
|
53
|
+
class="pf-v6-c-multiple-file-upload__status-progress-icon"
|
|
54
|
+
/>
|
|
55
|
+
<div
|
|
56
|
+
class="pf-v6-c-multiple-file-upload__status-progress-text"
|
|
57
|
+
/>
|
|
58
|
+
</div>
|
|
59
|
+
</span>
|
|
60
|
+
</button>
|
|
61
|
+
</div>
|
|
50
62
|
<div
|
|
51
63
|
aria-labelledby="generated-id-toggle"
|
|
52
64
|
class="pf-v6-c-expandable-section__content"
|
|
@@ -73,38 +85,25 @@ exports[`MultipleFileUploadStatus renders status toggle icon 1`] = `
|
|
|
73
85
|
<div
|
|
74
86
|
class="pf-v6-c-expandable-section pf-m-expanded"
|
|
75
87
|
>
|
|
76
|
-
<
|
|
77
|
-
aria-controls="generated-id-content"
|
|
78
|
-
aria-expanded="true"
|
|
88
|
+
<div
|
|
79
89
|
class="pf-v6-c-expandable-section__toggle"
|
|
80
|
-
id="generated-id-toggle"
|
|
81
|
-
type="button"
|
|
82
90
|
>
|
|
83
|
-
<
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
width="1em"
|
|
94
|
-
>
|
|
95
|
-
<path
|
|
96
|
-
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
|
|
97
|
-
/>
|
|
98
|
-
</svg>
|
|
99
|
-
</span>
|
|
100
|
-
<span
|
|
101
|
-
class="pf-v6-c-expandable-section__toggle-text"
|
|
91
|
+
<button
|
|
92
|
+
aria-controls="generated-id-content"
|
|
93
|
+
aria-disabled="false"
|
|
94
|
+
aria-expanded="true"
|
|
95
|
+
class="pf-v6-c-button pf-m-link"
|
|
96
|
+
data-ouia-component-id="OUIA-Generated-Button-link-4"
|
|
97
|
+
data-ouia-component-type="PF6/Button"
|
|
98
|
+
data-ouia-safe="true"
|
|
99
|
+
id="generated-id-toggle"
|
|
100
|
+
type="button"
|
|
102
101
|
>
|
|
103
|
-
<
|
|
104
|
-
class="pf-v6-c-
|
|
102
|
+
<span
|
|
103
|
+
class="pf-v6-c-button__icon pf-m-start"
|
|
105
104
|
>
|
|
106
|
-
<
|
|
107
|
-
class="pf-v6-c-
|
|
105
|
+
<span
|
|
106
|
+
class="pf-v6-c-expandable-section__toggle-icon"
|
|
108
107
|
>
|
|
109
108
|
<svg
|
|
110
109
|
aria-hidden="true"
|
|
@@ -112,20 +111,45 @@ exports[`MultipleFileUploadStatus renders status toggle icon 1`] = `
|
|
|
112
111
|
fill="currentColor"
|
|
113
112
|
height="1em"
|
|
114
113
|
role="img"
|
|
115
|
-
viewBox="0 0
|
|
114
|
+
viewBox="0 0 256 512"
|
|
116
115
|
width="1em"
|
|
117
116
|
>
|
|
118
117
|
<path
|
|
119
|
-
d="
|
|
118
|
+
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
|
|
120
119
|
/>
|
|
121
120
|
</svg>
|
|
122
|
-
</
|
|
121
|
+
</span>
|
|
122
|
+
</span>
|
|
123
|
+
<span
|
|
124
|
+
class="pf-v6-c-button__text"
|
|
125
|
+
>
|
|
123
126
|
<div
|
|
124
|
-
class="pf-v6-c-multiple-file-upload__status-progress
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
class="pf-v6-c-multiple-file-upload__status-progress"
|
|
128
|
+
>
|
|
129
|
+
<div
|
|
130
|
+
class="pf-v6-c-multiple-file-upload__status-progress-icon"
|
|
131
|
+
>
|
|
132
|
+
<svg
|
|
133
|
+
aria-hidden="true"
|
|
134
|
+
class="pf-v6-svg"
|
|
135
|
+
fill="currentColor"
|
|
136
|
+
height="1em"
|
|
137
|
+
role="img"
|
|
138
|
+
viewBox="0 0 1024 1024"
|
|
139
|
+
width="1em"
|
|
140
|
+
>
|
|
141
|
+
<path
|
|
142
|
+
d="M513.417211,16.013668 L513.417211,112.013668 C513.406007,120.539653 520.082422,127.576718 528.597211,128.013668 C732.697211,136.513668 896.147211,305.013668 896.147211,511.343668 C896.147211,723.013668 724.007211,895.163668 512.417211,895.163668 C437.186239,895.277345 363.602574,873.135095 300.927211,831.523668 C294.58293,827.2982 286.138663,828.135095 280.747211,833.523668 L211.807211,902.353668 C208.502935,905.676185 206.82123,910.280199 207.20607,914.950237 C207.590911,919.620275 210.00361,923.886884 213.807211,926.623668 C300.709573,989.398037 405.213535,1023.13146 512.417211,1023.01398 C794.537211,1023.01398 1023.91724,793.433668 1023.91724,511.413668 C1024.00721,235.103668 804.007211,9.22366802 529.897211,0.00645736761 C525.571205,-0.116171039 521.377128,1.51204372 518.271915,4.52681369 C515.166702,7.54158367 513.415263,11.6857144 513.417211,16.013668 M97.1272107,212.923668 C64.2190689,258.479443 39.0698895,309.162997 22.6972107,362.923668 C21.2705092,367.756559 22.2039184,372.979173 25.2163356,377.018685 C28.2287528,381.058197 32.9681443,383.442545 38.0072107,383.453683 L139.407211,383.453683 C145.970195,383.46249 151.873012,379.462528 154.297211,373.363668 C164.307669,347.593304 177.068112,322.977652 192.357211,299.943668 C196.579666,293.633658 195.741339,285.216847 190.357211,279.863668 L121.497211,211.013668 C118.186635,207.662531 113.567544,205.940538 108.871166,206.30669 C104.174788,206.672841 99.8783994,209.089927 97.1272107,212.913668 M112.907211,511.433663 L17.0072107,511.433663 C12.679257,511.433663 8.5351263,513.183159 5.52035633,516.288373 C2.50558635,519.393586 0.877371594,523.587662 1.00721065,527.913668 C4.13104542,629.408217 37.6085847,727.635936 97.1172107,809.913668 C99.8539943,813.717268 104.120603,816.129968 108.790642,816.514809 C113.46068,816.899649 118.064693,815.217944 121.387211,811.913668 L190.217211,743.073668 C195.605784,737.682216 196.442679,729.237949 192.217211,722.893668 C153.520825,664.580171 131.611534,596.745437 128.887211,526.813668 C128.553964,518.220138 121.487197,511.427209 112.887211,511.433663"
|
|
143
|
+
/>
|
|
144
|
+
</svg>
|
|
145
|
+
</div>
|
|
146
|
+
<div
|
|
147
|
+
class="pf-v6-c-multiple-file-upload__status-progress-text"
|
|
148
|
+
/>
|
|
149
|
+
</div>
|
|
150
|
+
</span>
|
|
151
|
+
</button>
|
|
152
|
+
</div>
|
|
129
153
|
<div
|
|
130
154
|
aria-labelledby="generated-id-toggle"
|
|
131
155
|
class="pf-v6-c-expandable-section__content"
|
|
@@ -152,47 +176,59 @@ exports[`MultipleFileUploadStatus renders status toggle text 1`] = `
|
|
|
152
176
|
<div
|
|
153
177
|
class="pf-v6-c-expandable-section pf-m-expanded"
|
|
154
178
|
>
|
|
155
|
-
<
|
|
156
|
-
aria-controls="generated-id-content"
|
|
157
|
-
aria-expanded="true"
|
|
179
|
+
<div
|
|
158
180
|
class="pf-v6-c-expandable-section__toggle"
|
|
159
|
-
id="generated-id-toggle"
|
|
160
|
-
type="button"
|
|
161
181
|
>
|
|
162
|
-
<
|
|
163
|
-
|
|
182
|
+
<button
|
|
183
|
+
aria-controls="generated-id-content"
|
|
184
|
+
aria-disabled="false"
|
|
185
|
+
aria-expanded="true"
|
|
186
|
+
class="pf-v6-c-button pf-m-link"
|
|
187
|
+
data-ouia-component-id="OUIA-Generated-Button-link-3"
|
|
188
|
+
data-ouia-component-type="PF6/Button"
|
|
189
|
+
data-ouia-safe="true"
|
|
190
|
+
id="generated-id-toggle"
|
|
191
|
+
type="button"
|
|
164
192
|
>
|
|
165
|
-
<
|
|
166
|
-
|
|
167
|
-
class="pf-v6-svg"
|
|
168
|
-
fill="currentColor"
|
|
169
|
-
height="1em"
|
|
170
|
-
role="img"
|
|
171
|
-
viewBox="0 0 256 512"
|
|
172
|
-
width="1em"
|
|
193
|
+
<span
|
|
194
|
+
class="pf-v6-c-button__icon pf-m-start"
|
|
173
195
|
>
|
|
174
|
-
<
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
196
|
+
<span
|
|
197
|
+
class="pf-v6-c-expandable-section__toggle-icon"
|
|
198
|
+
>
|
|
199
|
+
<svg
|
|
200
|
+
aria-hidden="true"
|
|
201
|
+
class="pf-v6-svg"
|
|
202
|
+
fill="currentColor"
|
|
203
|
+
height="1em"
|
|
204
|
+
role="img"
|
|
205
|
+
viewBox="0 0 256 512"
|
|
206
|
+
width="1em"
|
|
207
|
+
>
|
|
208
|
+
<path
|
|
209
|
+
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
|
|
210
|
+
/>
|
|
211
|
+
</svg>
|
|
212
|
+
</span>
|
|
213
|
+
</span>
|
|
214
|
+
<span
|
|
215
|
+
class="pf-v6-c-button__text"
|
|
184
216
|
>
|
|
185
217
|
<div
|
|
186
|
-
class="pf-v6-c-multiple-file-upload__status-progress
|
|
187
|
-
/>
|
|
188
|
-
<div
|
|
189
|
-
class="pf-v6-c-multiple-file-upload__status-progress-text"
|
|
218
|
+
class="pf-v6-c-multiple-file-upload__status-progress"
|
|
190
219
|
>
|
|
191
|
-
|
|
220
|
+
<div
|
|
221
|
+
class="pf-v6-c-multiple-file-upload__status-progress-icon"
|
|
222
|
+
/>
|
|
223
|
+
<div
|
|
224
|
+
class="pf-v6-c-multiple-file-upload__status-progress-text"
|
|
225
|
+
>
|
|
226
|
+
test
|
|
227
|
+
</div>
|
|
192
228
|
</div>
|
|
193
|
-
</
|
|
194
|
-
</
|
|
195
|
-
</
|
|
229
|
+
</span>
|
|
230
|
+
</button>
|
|
231
|
+
</div>
|
|
196
232
|
<div
|
|
197
233
|
aria-labelledby="generated-id-toggle"
|
|
198
234
|
class="pf-v6-c-expandable-section__content"
|
|
@@ -219,45 +255,57 @@ exports[`MultipleFileUploadStatus renders with expected class names 1`] = `
|
|
|
219
255
|
<div
|
|
220
256
|
class="pf-v6-c-expandable-section pf-m-expanded"
|
|
221
257
|
>
|
|
222
|
-
<
|
|
223
|
-
aria-controls="generated-id-content"
|
|
224
|
-
aria-expanded="true"
|
|
258
|
+
<div
|
|
225
259
|
class="pf-v6-c-expandable-section__toggle"
|
|
226
|
-
id="generated-id-toggle"
|
|
227
|
-
type="button"
|
|
228
260
|
>
|
|
229
|
-
<
|
|
230
|
-
|
|
261
|
+
<button
|
|
262
|
+
aria-controls="generated-id-content"
|
|
263
|
+
aria-disabled="false"
|
|
264
|
+
aria-expanded="true"
|
|
265
|
+
class="pf-v6-c-button pf-m-link"
|
|
266
|
+
data-ouia-component-id="OUIA-Generated-Button-link-1"
|
|
267
|
+
data-ouia-component-type="PF6/Button"
|
|
268
|
+
data-ouia-safe="true"
|
|
269
|
+
id="generated-id-toggle"
|
|
270
|
+
type="button"
|
|
231
271
|
>
|
|
232
|
-
<
|
|
233
|
-
|
|
234
|
-
class="pf-v6-svg"
|
|
235
|
-
fill="currentColor"
|
|
236
|
-
height="1em"
|
|
237
|
-
role="img"
|
|
238
|
-
viewBox="0 0 256 512"
|
|
239
|
-
width="1em"
|
|
272
|
+
<span
|
|
273
|
+
class="pf-v6-c-button__icon pf-m-start"
|
|
240
274
|
>
|
|
241
|
-
<
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
275
|
+
<span
|
|
276
|
+
class="pf-v6-c-expandable-section__toggle-icon"
|
|
277
|
+
>
|
|
278
|
+
<svg
|
|
279
|
+
aria-hidden="true"
|
|
280
|
+
class="pf-v6-svg"
|
|
281
|
+
fill="currentColor"
|
|
282
|
+
height="1em"
|
|
283
|
+
role="img"
|
|
284
|
+
viewBox="0 0 256 512"
|
|
285
|
+
width="1em"
|
|
286
|
+
>
|
|
287
|
+
<path
|
|
288
|
+
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
|
|
289
|
+
/>
|
|
290
|
+
</svg>
|
|
291
|
+
</span>
|
|
292
|
+
</span>
|
|
293
|
+
<span
|
|
294
|
+
class="pf-v6-c-button__text"
|
|
251
295
|
>
|
|
252
296
|
<div
|
|
253
|
-
class="pf-v6-c-multiple-file-upload__status-progress
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
297
|
+
class="pf-v6-c-multiple-file-upload__status-progress"
|
|
298
|
+
>
|
|
299
|
+
<div
|
|
300
|
+
class="pf-v6-c-multiple-file-upload__status-progress-icon"
|
|
301
|
+
/>
|
|
302
|
+
<div
|
|
303
|
+
class="pf-v6-c-multiple-file-upload__status-progress-text"
|
|
304
|
+
/>
|
|
305
|
+
</div>
|
|
306
|
+
</span>
|
|
307
|
+
</button>
|
|
308
|
+
</div>
|
|
261
309
|
<div
|
|
262
310
|
aria-labelledby="generated-id-toggle"
|
|
263
311
|
class="pf-v6-c-expandable-section__content"
|
|
@@ -98,7 +98,7 @@ exports[`MultipleFileUploadStatusItem renders custom aria labels 1`] = `
|
|
|
98
98
|
type="button"
|
|
99
99
|
>
|
|
100
100
|
<span
|
|
101
|
-
class="pf-v6-c-button__icon
|
|
101
|
+
class="pf-v6-c-button__icon"
|
|
102
102
|
>
|
|
103
103
|
<svg
|
|
104
104
|
aria-hidden="true"
|
|
@@ -215,7 +215,7 @@ exports[`MultipleFileUploadStatusItem renders custom class names 1`] = `
|
|
|
215
215
|
type="button"
|
|
216
216
|
>
|
|
217
217
|
<span
|
|
218
|
-
class="pf-v6-c-button__icon
|
|
218
|
+
class="pf-v6-c-button__icon"
|
|
219
219
|
>
|
|
220
220
|
<svg
|
|
221
221
|
aria-hidden="true"
|
|
@@ -334,7 +334,7 @@ exports[`MultipleFileUploadStatusItem renders custom file name/size/icon/progres
|
|
|
334
334
|
type="button"
|
|
335
335
|
>
|
|
336
336
|
<span
|
|
337
|
-
class="pf-v6-c-button__icon
|
|
337
|
+
class="pf-v6-c-button__icon"
|
|
338
338
|
>
|
|
339
339
|
<svg
|
|
340
340
|
aria-hidden="true"
|
|
@@ -453,7 +453,7 @@ exports[`MultipleFileUploadStatusItem renders custom function progressAriaLiveMe
|
|
|
453
453
|
type="button"
|
|
454
454
|
>
|
|
455
455
|
<span
|
|
456
|
-
class="pf-v6-c-button__icon
|
|
456
|
+
class="pf-v6-c-button__icon"
|
|
457
457
|
>
|
|
458
458
|
<svg
|
|
459
459
|
aria-hidden="true"
|
|
@@ -589,7 +589,7 @@ exports[`MultipleFileUploadStatusItem renders custom progress value/variant when
|
|
|
589
589
|
type="button"
|
|
590
590
|
>
|
|
591
591
|
<span
|
|
592
|
-
class="pf-v6-c-button__icon
|
|
592
|
+
class="pf-v6-c-button__icon"
|
|
593
593
|
>
|
|
594
594
|
<svg
|
|
595
595
|
aria-hidden="true"
|
|
@@ -708,7 +708,7 @@ exports[`MultipleFileUploadStatusItem renders expected values from a passed file
|
|
|
708
708
|
type="button"
|
|
709
709
|
>
|
|
710
710
|
<span
|
|
711
|
-
class="pf-v6-c-button__icon
|
|
711
|
+
class="pf-v6-c-button__icon"
|
|
712
712
|
>
|
|
713
713
|
<svg
|
|
714
714
|
aria-hidden="true"
|
|
@@ -825,7 +825,7 @@ exports[`MultipleFileUploadStatusItem renders with expected class names 1`] = `
|
|
|
825
825
|
type="button"
|
|
826
826
|
>
|
|
827
827
|
<span
|
|
828
|
-
class="pf-v6-c-button__icon
|
|
828
|
+
class="pf-v6-c-button__icon"
|
|
829
829
|
>
|
|
830
830
|
<svg
|
|
831
831
|
aria-hidden="true"
|
|
@@ -944,7 +944,7 @@ exports[`MultipleFileUploadStatusItem rendersdefault progressAriaLiveMessage whe
|
|
|
944
944
|
type="button"
|
|
945
945
|
>
|
|
946
946
|
<span
|
|
947
|
-
class="pf-v6-c-button__icon
|
|
947
|
+
class="pf-v6-c-button__icon"
|
|
948
948
|
>
|
|
949
949
|
<svg
|
|
950
950
|
aria-hidden="true"
|
|
@@ -53,6 +53,8 @@ export interface NotificationDrawerListItemHeaderProps extends React.HTMLProps<H
|
|
|
53
53
|
| 'right-end';
|
|
54
54
|
/** Sets the heading level to use for the list item header title. Default is h2. */
|
|
55
55
|
headingLevel?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
56
|
+
/** Removes the offset of the notification drawer actions. */
|
|
57
|
+
actionHasNoOffset?: boolean;
|
|
56
58
|
}
|
|
57
59
|
|
|
58
60
|
export const NotificationDrawerListItemHeader: React.FunctionComponent<NotificationDrawerListItemHeaderProps> = ({
|
|
@@ -65,6 +67,7 @@ export const NotificationDrawerListItemHeader: React.FunctionComponent<Notificat
|
|
|
65
67
|
truncateTitle = 0,
|
|
66
68
|
tooltipPosition,
|
|
67
69
|
headingLevel: HeadingLevel = 'h2',
|
|
70
|
+
actionHasNoOffset = false,
|
|
68
71
|
...props
|
|
69
72
|
}: NotificationDrawerListItemHeaderProps) => {
|
|
70
73
|
const titleRef = React.useRef(null);
|
|
@@ -103,7 +106,11 @@ export const NotificationDrawerListItemHeader: React.FunctionComponent<Notificat
|
|
|
103
106
|
Title
|
|
104
107
|
)}
|
|
105
108
|
</div>
|
|
106
|
-
{children &&
|
|
109
|
+
{children && (
|
|
110
|
+
<div className={css(styles.notificationDrawerListItemAction, actionHasNoOffset && styles.modifiers.noOffset)}>
|
|
111
|
+
{children}
|
|
112
|
+
</div>
|
|
113
|
+
)}
|
|
107
114
|
</React.Fragment>
|
|
108
115
|
);
|
|
109
116
|
};
|
package/src/components/NotificationDrawer/__tests__/NotificationDrawerListItemHeader.test.tsx
CHANGED
|
@@ -5,6 +5,7 @@ import '@testing-library/jest-dom';
|
|
|
5
5
|
|
|
6
6
|
import BellIcon from '@patternfly/react-icons/dist/esm/icons/bell-icon';
|
|
7
7
|
import { NotificationDrawerListItemHeader } from '../NotificationDrawerListItemHeader';
|
|
8
|
+
import styles from '@patternfly/react-styles/css/components/NotificationDrawer/notification-drawer';
|
|
8
9
|
|
|
9
10
|
describe('NotificationDrawerListItemHeader', () => {
|
|
10
11
|
test('renders with PatternFly Core styles', () => {
|
|
@@ -48,4 +49,27 @@ describe('NotificationDrawerListItemHeader', () => {
|
|
|
48
49
|
|
|
49
50
|
expect(screen.getByText('Pod quit unexpectedly')).toHaveClass('pf-m-truncate');
|
|
50
51
|
});
|
|
52
|
+
|
|
53
|
+
test(`renders with ${styles.modifiers.noOffset} if actionHasNoOffset={true} is passed`, () => {
|
|
54
|
+
render(
|
|
55
|
+
<NotificationDrawerListItemHeader title="Pod quit unexpectedly" actionHasNoOffset>
|
|
56
|
+
test
|
|
57
|
+
</NotificationDrawerListItemHeader>
|
|
58
|
+
);
|
|
59
|
+
expect(screen.getByText('test')).toHaveClass(styles.modifiers.noOffset);
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
test(`does not render with ${styles.modifiers.noOffset} if actionHasNoOffset={false} is passed`, () => {
|
|
63
|
+
render(
|
|
64
|
+
<NotificationDrawerListItemHeader title="Pod quit unexpectedly" actionHasNoOffset={false}>
|
|
65
|
+
test
|
|
66
|
+
</NotificationDrawerListItemHeader>
|
|
67
|
+
);
|
|
68
|
+
expect(screen.getByText('test')).not.toHaveClass(styles.modifiers.noOffset);
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
test(`does not render with ${styles.modifiers.noOffset} if actionHasNoOffset is not passed`, () => {
|
|
72
|
+
render(<NotificationDrawerListItemHeader title="Pod quit unexpectedly">test</NotificationDrawerListItemHeader>);
|
|
73
|
+
expect(screen.getByText('test')).not.toHaveClass(styles.modifiers.noOffset);
|
|
74
|
+
});
|
|
51
75
|
});
|
|
@@ -64,9 +64,8 @@ export const NotificationDrawerBasic: React.FunctionComponent = () => {
|
|
|
64
64
|
onClick={onToggle(0)}
|
|
65
65
|
variant="plain"
|
|
66
66
|
aria-label={`Basic example header kebab toggle`}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
</MenuToggle>
|
|
67
|
+
icon={<EllipsisVIcon aria-hidden="true" />}
|
|
68
|
+
/>
|
|
70
69
|
)}
|
|
71
70
|
>
|
|
72
71
|
<DropdownList>{dropdownItems}</DropdownList>
|
|
@@ -92,9 +91,8 @@ export const NotificationDrawerBasic: React.FunctionComponent = () => {
|
|
|
92
91
|
onClick={onToggle(1)}
|
|
93
92
|
variant="plain"
|
|
94
93
|
aria-label={`Basic example notification 1 kebab toggle`}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
</MenuToggle>
|
|
94
|
+
icon={<EllipsisVIcon aria-hidden="true" />}
|
|
95
|
+
/>
|
|
98
96
|
)}
|
|
99
97
|
>
|
|
100
98
|
<DropdownList>{dropdownItems}</DropdownList>
|
|
@@ -122,9 +120,8 @@ export const NotificationDrawerBasic: React.FunctionComponent = () => {
|
|
|
122
120
|
onClick={onToggle(2)}
|
|
123
121
|
variant="plain"
|
|
124
122
|
aria-label={`Basic example notification 2 kebab toggle`}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
</MenuToggle>
|
|
123
|
+
icon={<EllipsisVIcon aria-hidden="true" />}
|
|
124
|
+
/>
|
|
128
125
|
)}
|
|
129
126
|
>
|
|
130
127
|
<DropdownList>{dropdownItems}</DropdownList>
|
|
@@ -154,9 +151,8 @@ export const NotificationDrawerBasic: React.FunctionComponent = () => {
|
|
|
154
151
|
onClick={onToggle(3)}
|
|
155
152
|
variant="plain"
|
|
156
153
|
aria-label={`Basic example notification 3 kebab toggle`}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
</MenuToggle>
|
|
154
|
+
icon={<EllipsisVIcon aria-hidden="true" />}
|
|
155
|
+
/>
|
|
160
156
|
)}
|
|
161
157
|
>
|
|
162
158
|
<DropdownList>{dropdownItems}</DropdownList>
|
|
@@ -185,9 +181,8 @@ export const NotificationDrawerBasic: React.FunctionComponent = () => {
|
|
|
185
181
|
onClick={onToggle(4)}
|
|
186
182
|
variant="plain"
|
|
187
183
|
aria-label={`Basic example notification 4 kebab toggle`}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
</MenuToggle>
|
|
184
|
+
icon={<EllipsisVIcon aria-hidden="true" />}
|
|
185
|
+
/>
|
|
191
186
|
)}
|
|
192
187
|
>
|
|
193
188
|
<DropdownList>{dropdownItems}</DropdownList>
|
|
@@ -215,9 +210,8 @@ export const NotificationDrawerBasic: React.FunctionComponent = () => {
|
|
|
215
210
|
onClick={onToggle(5)}
|
|
216
211
|
variant="plain"
|
|
217
212
|
aria-label={`Basic example notification 5 kebab toggle`}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
</MenuToggle>
|
|
213
|
+
icon={<EllipsisVIcon aria-hidden="true" />}
|
|
214
|
+
/>
|
|
221
215
|
)}
|
|
222
216
|
>
|
|
223
217
|
<DropdownList>{dropdownItems}</DropdownList>
|
|
@@ -241,9 +235,8 @@ export const NotificationDrawerBasic: React.FunctionComponent = () => {
|
|
|
241
235
|
onClick={onToggle(6)}
|
|
242
236
|
variant="plain"
|
|
243
237
|
aria-label={`Basic example notification 6 kebab toggle`}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
</MenuToggle>
|
|
238
|
+
icon={<EllipsisVIcon aria-hidden="true" />}
|
|
239
|
+
/>
|
|
247
240
|
)}
|
|
248
241
|
>
|
|
249
242
|
<DropdownList>{dropdownItems}</DropdownList>
|