@patternfly/react-core 6.5.0-prerelease.47 → 6.5.0-prerelease.49
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 +10 -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/Compass/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/Hero/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/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/Tile/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/AnimationsProvider/AnimationsProvider/package.json +1 -1
- package/dist/dynamic/helpers/AnimationsProvider/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/SSRSafeIds/SSRSafeIds/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/useSSRSafeId/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/Alert/AlertIcon.js +10 -10
- package/dist/esm/components/Alert/AlertIcon.js.map +1 -1
- package/dist/esm/components/FormControl/FormControlIcon.js +6 -6
- package/dist/esm/components/FormControl/FormControlIcon.js.map +1 -1
- package/dist/esm/components/HelperText/HelperTextItem.js +6 -6
- package/dist/esm/components/HelperText/HelperTextItem.js.map +1 -1
- package/dist/esm/components/Label/Label.js +10 -10
- package/dist/esm/components/Label/Label.js.map +1 -1
- package/dist/esm/components/MenuToggle/MenuToggle.js +6 -6
- package/dist/esm/components/MenuToggle/MenuToggle.js.map +1 -1
- package/dist/esm/components/Modal/ModalBoxTitle.js +10 -10
- package/dist/esm/components/Modal/ModalBoxTitle.js.map +1 -1
- package/dist/esm/components/MultipleFileUpload/MultipleFileUploadStatus.js +2 -2
- package/dist/esm/components/MultipleFileUpload/MultipleFileUploadStatus.js.map +1 -1
- package/dist/esm/components/NotificationBadge/NotificationBadge.js +3 -3
- package/dist/esm/components/NotificationBadge/NotificationBadge.js.map +1 -1
- package/dist/esm/components/NotificationDrawer/NotificationDrawerListItemHeader.js +10 -10
- package/dist/esm/components/NotificationDrawer/NotificationDrawerListItemHeader.js.map +1 -1
- package/dist/esm/components/Progress/ProgressContainer.js +6 -6
- package/dist/esm/components/Progress/ProgressContainer.js.map +1 -1
- package/dist/esm/components/ProgressStepper/ProgressStep.js +6 -6
- package/dist/esm/components/ProgressStepper/ProgressStep.js.map +1 -1
- package/dist/esm/components/Wizard/Wizard.d.ts +5 -1
- package/dist/esm/components/Wizard/Wizard.d.ts.map +1 -1
- package/dist/esm/components/Wizard/Wizard.js +2 -2
- package/dist/esm/components/Wizard/Wizard.js.map +1 -1
- package/dist/esm/components/Wizard/WizardNavItem.js +4 -4
- package/dist/esm/components/Wizard/WizardNavItem.js.map +1 -1
- package/dist/esm/components/Wizard/WizardToggle.js +3 -3
- package/dist/esm/components/Wizard/WizardToggle.js.map +1 -1
- package/dist/esm/deprecated/components/Modal/ModalBoxTitle.js +10 -10
- package/dist/esm/deprecated/components/Modal/ModalBoxTitle.js.map +1 -1
- package/dist/esm/helpers/constants.js +10 -10
- package/dist/esm/helpers/constants.js.map +1 -1
- package/dist/js/components/Alert/AlertIcon.js +10 -10
- package/dist/js/components/Alert/AlertIcon.js.map +1 -1
- package/dist/js/components/FormControl/FormControlIcon.js +6 -6
- package/dist/js/components/FormControl/FormControlIcon.js.map +1 -1
- package/dist/js/components/HelperText/HelperTextItem.js +6 -6
- package/dist/js/components/HelperText/HelperTextItem.js.map +1 -1
- package/dist/js/components/Label/Label.js +10 -10
- package/dist/js/components/Label/Label.js.map +1 -1
- package/dist/js/components/MenuToggle/MenuToggle.js +6 -6
- package/dist/js/components/MenuToggle/MenuToggle.js.map +1 -1
- package/dist/js/components/Modal/ModalBoxTitle.js +10 -10
- package/dist/js/components/Modal/ModalBoxTitle.js.map +1 -1
- package/dist/js/components/MultipleFileUpload/MultipleFileUploadStatus.js +2 -2
- package/dist/js/components/MultipleFileUpload/MultipleFileUploadStatus.js.map +1 -1
- package/dist/js/components/NotificationBadge/NotificationBadge.js +3 -3
- package/dist/js/components/NotificationBadge/NotificationBadge.js.map +1 -1
- package/dist/js/components/NotificationDrawer/NotificationDrawerListItemHeader.js +10 -10
- package/dist/js/components/NotificationDrawer/NotificationDrawerListItemHeader.js.map +1 -1
- package/dist/js/components/Progress/ProgressContainer.js +6 -6
- package/dist/js/components/Progress/ProgressContainer.js.map +1 -1
- package/dist/js/components/ProgressStepper/ProgressStep.js +6 -6
- package/dist/js/components/ProgressStepper/ProgressStep.js.map +1 -1
- package/dist/js/components/Wizard/Wizard.d.ts +5 -1
- package/dist/js/components/Wizard/Wizard.d.ts.map +1 -1
- package/dist/js/components/Wizard/Wizard.js +2 -2
- package/dist/js/components/Wizard/Wizard.js.map +1 -1
- package/dist/js/components/Wizard/WizardNavItem.js +4 -4
- package/dist/js/components/Wizard/WizardNavItem.js.map +1 -1
- package/dist/js/components/Wizard/WizardToggle.js +3 -3
- package/dist/js/components/Wizard/WizardToggle.js.map +1 -1
- package/dist/js/deprecated/components/Modal/ModalBoxTitle.js +10 -10
- package/dist/js/deprecated/components/Modal/ModalBoxTitle.js.map +1 -1
- package/dist/js/helpers/constants.js +10 -10
- package/dist/js/helpers/constants.js.map +1 -1
- package/dist/umd/assets/{output-hSsDW7V-.css → output-BDpVgdr7.css} +18880 -18880
- package/dist/umd/react-core.min.js +3 -3
- package/helpers/package.json +1 -1
- package/layouts/package.json +1 -1
- package/next/package.json +1 -1
- package/package.json +3 -3
- package/src/components/Alert/AlertIcon.tsx +10 -10
- package/src/components/Alert/__tests__/AlertIcon.test.tsx +5 -5
- package/src/components/Alert/__tests__/Generated/__snapshots__/AlertIcon.test.tsx.snap +4 -16
- package/src/components/Banner/examples/Banner.md +5 -5
- package/src/components/Banner/examples/BannerStatus.tsx +10 -10
- package/src/components/Button/examples/Button.md +1 -1
- package/src/components/Button/examples/ButtonCircle.tsx +9 -4
- package/src/components/Button/examples/ButtonStateful.tsx +4 -4
- package/src/components/Button/examples/ButtonVariations.tsx +4 -4
- package/src/components/EmptyState/examples/EmptyState.md +0 -1
- package/src/components/ExpandableSection/__tests__/ExpandableSection.test.tsx +7 -3
- package/src/components/ExpandableSection/examples/ExpandableSection.md +1 -1
- package/src/components/ExpandableSection/examples/ExpandableSectionCustomToggle.tsx +2 -2
- package/src/components/ExpandableSection/examples/ExpandableSectionWithHeading.tsx +2 -2
- package/src/components/FileUpload/examples/FileUpload.md +0 -1
- package/src/components/Form/examples/Form.md +1 -1
- package/src/components/Form/examples/FormInvalid.tsx +2 -2
- package/src/components/Form/examples/FormInvalidWithFormAlert.tsx +2 -2
- package/src/components/Form/examples/FormState.tsx +2 -2
- package/src/components/Form/examples/FormValidated.tsx +2 -2
- package/src/components/FormControl/FormControlIcon.tsx +6 -6
- package/src/components/FormSelect/__tests__/__snapshots__/FormSelect.test.tsx.snap +12 -48
- package/src/components/HelperText/HelperTextItem.tsx +6 -6
- package/src/components/Icon/examples/Icon.md +5 -5
- package/src/components/Icon/examples/IconCustomProgress.tsx +2 -2
- package/src/components/Icon/examples/IconProgress.tsx +2 -2
- package/src/components/Icon/examples/IconStatus.tsx +10 -10
- package/src/components/Label/Label.tsx +10 -10
- package/src/components/Label/examples/Label.md +1 -1
- package/src/components/Label/examples/LabelCompact.tsx +3 -3
- package/src/components/Label/examples/LabelCustomRender.tsx +2 -2
- package/src/components/Label/examples/LabelGroupBasic.tsx +4 -4
- package/src/components/Label/examples/LabelGroupCategory.tsx +4 -4
- package/src/components/Label/examples/LabelGroupCategoryRemovable.tsx +2 -2
- package/src/components/Label/examples/LabelGroupEditableAddModal.tsx +3 -3
- package/src/components/Label/examples/LabelGroupOverflow.tsx +7 -7
- package/src/components/Label/examples/LabelGroupVerticalCategoryOverflowRemovable.tsx +2 -2
- package/src/components/LoginPage/examples/LoginPage.md +1 -1
- package/src/components/LoginPage/examples/LoginPageBasic.tsx +2 -2
- package/src/components/LoginPage/examples/LoginPageLanguageSelect.tsx +2 -2
- package/src/components/LoginPage/examples/LoginPageShowHidePassword.tsx +2 -2
- package/src/components/Menu/examples/Menu.md +1 -1
- package/src/components/Menu/examples/MenuWithActions.tsx +2 -2
- package/src/components/Menu/examples/MenuWithFavorites.tsx +2 -2
- package/src/components/MenuToggle/MenuToggle.tsx +6 -6
- package/src/components/Modal/ModalBoxTitle.tsx +10 -10
- package/src/components/Modal/__tests__/__snapshots__/ModalBoxTitle.test.tsx.snap +20 -80
- package/src/components/MultipleFileUpload/MultipleFileUploadStatus.tsx +2 -2
- package/src/components/MultipleFileUpload/__tests__/__snapshots__/MultipleFileUploadStatusItem.test.tsx.snap +4 -16
- package/src/components/NotificationBadge/NotificationBadge.tsx +4 -4
- package/src/components/NotificationBadge/__tests__/__snapshots__/NotificationBadge.test.tsx.snap +12 -48
- package/src/components/NotificationBadge/examples/NotificationBadge.md +1 -1
- package/src/components/NotificationDrawer/NotificationDrawerListItemHeader.tsx +10 -10
- package/src/components/NotificationDrawer/__tests__/NotificationDrawerListItemHeader.test.tsx +2 -2
- package/src/components/NotificationDrawer/__tests__/__snapshots__/NotificationDrawerListItemHeader.test.tsx.snap +20 -80
- package/src/components/NumberInput/__tests__/__snapshots__/NumberInput.test.tsx.snap +12 -48
- package/src/components/Popover/examples/Popover.md +5 -5
- package/src/components/Popover/examples/PopoverAlert.tsx +10 -10
- package/src/components/Progress/ProgressContainer.tsx +6 -6
- package/src/components/Progress/__tests__/Generated/__snapshots__/ProgressContainer.test.tsx.snap +4 -16
- package/src/components/Progress/__tests__/__snapshots__/Progress.test.tsx.snap +12 -48
- package/src/components/ProgressStepper/ProgressStep.tsx +6 -6
- package/src/components/ProgressStepper/__tests__/ProgressStep.test.tsx +3 -3
- package/src/components/Select/examples/Select.md +1 -1
- package/src/components/Select/examples/SelectOptionVariations.tsx +2 -2
- package/src/components/TextInput/__tests__/__snapshots__/TextInput.test.tsx.snap +8 -32
- package/src/components/Wizard/Wizard.tsx +12 -1
- package/src/components/Wizard/WizardNavItem.tsx +6 -6
- package/src/components/Wizard/WizardToggle.tsx +4 -4
- package/src/components/Wizard/__tests__/Wizard.test.tsx +21 -0
- package/src/components/Wizard/examples/Wizard.md +6 -0
- package/src/components/Wizard/examples/WizardPlain.tsx +15 -0
- package/src/demos/Button/Button.md +1 -1
- package/src/demos/Button/examples/ButtonProgress.tsx +2 -2
- package/src/demos/CardDemos.md +3 -2
- package/src/demos/CustomMenus/CustomMenus.md +1 -1
- package/src/demos/CustomMenus/examples/ActionsMenuDemo.tsx +2 -2
- package/src/demos/DataList/examples/DataListBasic.tsx +9 -9
- package/src/demos/DataListDemo.md +3 -3
- package/src/demos/DescriptionList/DescriptionList.md +3 -1
- package/src/demos/DescriptionList/examples/DescriptionListBasic.tsx +2 -2
- package/src/demos/HelperText.md +3 -3
- package/src/demos/LabelGroupDemos.md +1 -1
- package/src/demos/Masthead.md +1 -1
- package/src/demos/Nav.md +1 -1
- package/src/demos/NotificationDrawer/NotificationDrawer.md +1 -1
- package/src/demos/Page.md +1 -3
- package/src/demos/PasswordStrength.md +3 -3
- package/src/demos/PrimaryDetail.md +6 -2
- package/src/demos/Tabs.md +2 -2
- package/src/demos/examples/Card/CardAggregateStatus.tsx +18 -18
- package/src/demos/examples/Card/CardEventsView.tsx +5 -5
- package/src/demos/examples/Card/CardHorizontalGrid.tsx +9 -9
- package/src/demos/examples/Card/CardStatus.tsx +11 -23
- package/src/demos/examples/Card/CardStatusTabbed.tsx +6 -6
- package/src/demos/examples/Card/CardUtilizationDemo3.tsx +2 -2
- package/src/demos/examples/PasswordStrength/PasswordStrengthDemo.tsx +7 -7
- package/src/demos/examples/PrimaryDetail/PrimaryDetailContentPadding.tsx +6 -6
- package/src/demos/examples/PrimaryDetail/PrimaryDetailFullPage.tsx +6 -6
- package/src/demos/examples/PrimaryDetail/PrimaryDetailInlineModifier.tsx +6 -6
- package/src/demos/examples/Tabs/TabsOpen.tsx +4 -4
- package/src/demos/examples/Tabs/TabsOpenWithSecondaryTabs.tsx +4 -4
- package/src/deprecated/components/Modal/ModalBoxTitle.tsx +10 -10
- package/src/deprecated/components/Modal/__tests__/__snapshots__/ModalBoxTitle.test.tsx.snap +20 -80
- package/src/deprecated/components/Tile/examples/Tile.md +1 -1
- package/src/deprecated/components/Tile/examples/TileStacked.tsx +4 -4
- package/src/deprecated/components/Tile/examples/TileStackedWithLargeIcons.tsx +4 -4
- package/src/deprecated/components/Tile/examples/TileWithExtraContent.tsx +4 -4
- package/src/helpers/constants.ts +10 -10
|
@@ -15,24 +15,12 @@ exports[`ModalBoxTitle alert variant 1`] = `
|
|
|
15
15
|
fill="currentColor"
|
|
16
16
|
height="1em"
|
|
17
17
|
role="img"
|
|
18
|
+
viewBox="0 0 32 32"
|
|
18
19
|
width="1em"
|
|
19
20
|
>
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
>
|
|
24
|
-
<path
|
|
25
|
-
d="M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"
|
|
26
|
-
/>
|
|
27
|
-
</svg>
|
|
28
|
-
<svg
|
|
29
|
-
class="pf-v6-icon-rh-ui"
|
|
30
|
-
viewBox="0 0 32 32"
|
|
31
|
-
>
|
|
32
|
-
<path
|
|
33
|
-
d="M31.461 27.771 17.3 2.301a1.499 1.499 0 0 0-2.623 0L.517 27.771c-.261.469-.255 1.025.018 1.489s.756.74 1.294.74h28.322c.537 0 1.021-.276 1.293-.74a1.49 1.49 0 0 0 .018-1.489ZM2.678 28l13.31-23.942L29.3 28H2.678ZM16 11.75c.69 0 1.25.56 1.25 1.25v5a1.25 1.25 0 0 1-2.5 0v-5c0-.69.56-1.25 1.25-1.25Zm1.75 12.261a1.75 1.75 0 1 1-3.501-.001 1.75 1.75 0 0 1 3.501.001Z"
|
|
34
|
-
/>
|
|
35
|
-
</svg>
|
|
21
|
+
<path
|
|
22
|
+
d="m31.874 28.514-15.011-27a1.001 1.001 0 0 0-1.748 0l-15.011 27A1 1 0 0 0 .978 30H31a1 1 0 0 0 .874-1.486ZM14.5 12a1.5 1.5 0 0 1 3 0v5a1.5 1.5 0 0 1-3 0v-5ZM16 26.001a2 2 0 1 1-.001-3.999A2 2 0 0 1 16 26.001Z"
|
|
23
|
+
/>
|
|
36
24
|
</svg>
|
|
37
25
|
</span>
|
|
38
26
|
<span
|
|
@@ -96,24 +84,12 @@ exports[`ModalBoxTitle custom variant 1`] = `
|
|
|
96
84
|
fill="currentColor"
|
|
97
85
|
height="1em"
|
|
98
86
|
role="img"
|
|
87
|
+
viewBox="0 0 32 32"
|
|
99
88
|
width="1em"
|
|
100
89
|
>
|
|
101
|
-
<
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
>
|
|
105
|
-
<path
|
|
106
|
-
d="M448,0 C465.333333,0 480.333333,6.33333333 493,19 C505.666667,31.6666667 512,46.6666667 512,64 L512,106 L514.23,106.45 C587.89,121.39 648.48,157.24 696,214 C744,271.333333 768,338.666667 768,416 C768,500 780,568.666667 804,622 C818.666667,652.666667 841.333333,684 872,716 C873.773676,718.829136 875.780658,721.505113 878,724 C890,737.333333 896,752.333333 896,769 C896,785.666667 890,800.333333 878,813 C866,825.666667 850.666667,832 832,832 L63.3,832 C44.9533333,831.84 29.8533333,825.506667 18,813 C6,800.333333 0,785.666667 0,769 C0,752.333333 6,737.333333 18,724 L24,716 L25.06,714.9 C55.1933333,683.28 77.5066667,652.313333 92,622 C116,568.666667 128,500 128,416 C128,338.666667 152,271.333333 200,214 C248,156.666667 309.333333,120.666667 384,106 L384,63.31 C384.166667,46.27 390.5,31.5 403,19 C415.666667,6.33333333 430.666667,0 448,0 Z M576,896 L576,897.08 C575.74,932.6 563.073333,962.573333 538,987 C512.666667,1011.66667 482.666667,1024 448,1024 C413.333333,1024 383.333333,1011.66667 358,987 C332.666667,962.333333 320,932 320,896 L576,896 Z"
|
|
107
|
-
/>
|
|
108
|
-
</svg>
|
|
109
|
-
<svg
|
|
110
|
-
class="pf-v6-icon-rh-ui"
|
|
111
|
-
viewBox="0 0 32 32"
|
|
112
|
-
>
|
|
113
|
-
<path
|
|
114
|
-
d="M28 21c-1.103 0-2-.897-2-2v-4c0-4.885-3.523-8.955-8.159-9.823.405-.445.659-1.03.659-1.677C18.5 2.122 17.379 1 16 1s-2.5 1.122-2.5 2.5c0 .647.254 1.233.659 1.677C9.523 6.045 6 10.115 6 15v4c0 1.103-.897 2-2 2a1 1 0 0 0-1 1v3.5c0 .827.673 1.5 1.5 1.5H12c0 2.206 1.794 4 4 4s4-1.794 4-4h7.5c.827 0 1.5-.673 1.5-1.5V22a1 1 0 0 0-1-1Zm-1 4H5v-2.126A4.006 4.006 0 0 0 8 19v-4c0-4.411 3.589-8 8-8s8 3.589 8 8v4a4.008 4.008 0 0 0 3 3.874V25Z"
|
|
115
|
-
/>
|
|
116
|
-
</svg>
|
|
90
|
+
<path
|
|
91
|
+
d="M28.75 22v3.5c0 .689-.561 1.25-1.25 1.25h-7.521c.005.084.021.166.021.25 0 2.206-1.794 4-4 4s-4-1.794-4-4c0-.084.016-.166.021-.25H4.5c-.689 0-1.25-.561-1.25-1.25V22a.75.75 0 0 1 .75-.75c1.24 0 2.25-1.009 2.25-2.25v-4c0-4.826 3.528-8.833 8.138-9.605A2.482 2.482 0 0 1 13.5 3.5C13.5 2.122 14.621 1 16 1s2.5 1.122 2.5 2.5c0 .761-.349 1.436-.888 1.895 4.61.772 8.138 4.779 8.138 9.605v4c0 1.241 1.01 2.25 2.25 2.25a.75.75 0 0 1 .75.75Z"
|
|
92
|
+
/>
|
|
117
93
|
</svg>
|
|
118
94
|
</span>
|
|
119
95
|
<span
|
|
@@ -145,24 +121,12 @@ exports[`ModalBoxTitle danger variant 1`] = `
|
|
|
145
121
|
fill="currentColor"
|
|
146
122
|
height="1em"
|
|
147
123
|
role="img"
|
|
124
|
+
viewBox="0 0 32 32"
|
|
148
125
|
width="1em"
|
|
149
126
|
>
|
|
150
|
-
<
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
>
|
|
154
|
-
<path
|
|
155
|
-
d="M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"
|
|
156
|
-
/>
|
|
157
|
-
</svg>
|
|
158
|
-
<svg
|
|
159
|
-
class="pf-v6-icon-rh-ui"
|
|
160
|
-
viewBox="0 0 32 32"
|
|
161
|
-
>
|
|
162
|
-
<path
|
|
163
|
-
d="M14.75 16V9a1.25 1.25 0 0 1 2.5 0v7a1.25 1.25 0 0 1-2.5 0ZM31 16c0 8.271-6.729 15-15 15S1 24.271 1 16 7.729 1 16 1s15 6.729 15 15Zm-2 0c0-7.168-5.832-13-13-13S3 8.832 3 16s5.832 13 13 13 13-5.832 13-13Zm-13 4.261a1.75 1.75 0 1 0 .001 3.501A1.75 1.75 0 0 0 16 20.261Z"
|
|
164
|
-
/>
|
|
165
|
-
</svg>
|
|
127
|
+
<path
|
|
128
|
+
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm-1.5 8a1.5 1.5 0 1 1 3 0v7a1.5 1.5 0 1 1-3 0V9ZM16 25.001a2 2 0 1 1-.001-3.999A2 2 0 0 1 16 25.001Z"
|
|
129
|
+
/>
|
|
166
130
|
</svg>
|
|
167
131
|
</span>
|
|
168
132
|
<span
|
|
@@ -194,24 +158,12 @@ exports[`ModalBoxTitle info variant 1`] = `
|
|
|
194
158
|
fill="currentColor"
|
|
195
159
|
height="1em"
|
|
196
160
|
role="img"
|
|
161
|
+
viewBox="0 0 32 32"
|
|
197
162
|
width="1em"
|
|
198
163
|
>
|
|
199
|
-
<
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
>
|
|
203
|
-
<path
|
|
204
|
-
d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"
|
|
205
|
-
/>
|
|
206
|
-
</svg>
|
|
207
|
-
<svg
|
|
208
|
-
class="pf-v6-icon-rh-ui"
|
|
209
|
-
viewBox="0 0 32 32"
|
|
210
|
-
>
|
|
211
|
-
<path
|
|
212
|
-
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm0 28C8.832 29 3 23.168 3 16S8.832 3 16 3s13 5.832 13 13-5.832 13-13 13Zm1.25-13v7a1.25 1.25 0 0 1-2.5 0v-5.465l-.49.104a1.25 1.25 0 0 1-.519-2.445l1.956-.416c.763-.157 1.554.446 1.554 1.223Zm.5-5.998a1.75 1.75 0 1 1-3.501-.001 1.75 1.75 0 0 1 3.501.001Z"
|
|
213
|
-
/>
|
|
214
|
-
</svg>
|
|
164
|
+
<path
|
|
165
|
+
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm1.5 22a1.5 1.5 0 1 1-3 0v-5.157l-.188.04a1.5 1.5 0 0 1-.625-2.934l1.956-.416c.112-.024.223-.032.333-.03l.024-.002a1.5 1.5 0 0 1 1.5 1.5v7Zm-.08-12.58c-.38.37-.89.58-1.42.58a1.998 1.998 0 0 1-1.851-2.76c.051-.13.11-.24.19-.35.07-.11.15-.21.25-.3.74-.75 2.08-.75 2.83 0 .09.09.17.19.24.3.08.11.14.22.189.35.05.12.09.24.11.37.03.13.04.26.04.39 0 .53-.21 1.04-.58 1.42Z"
|
|
166
|
+
/>
|
|
215
167
|
</svg>
|
|
216
168
|
</span>
|
|
217
169
|
<span
|
|
@@ -243,24 +195,12 @@ exports[`ModalBoxTitle success variant 1`] = `
|
|
|
243
195
|
fill="currentColor"
|
|
244
196
|
height="1em"
|
|
245
197
|
role="img"
|
|
198
|
+
viewBox="0 0 32 32"
|
|
246
199
|
width="1em"
|
|
247
200
|
>
|
|
248
|
-
<
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
>
|
|
252
|
-
<path
|
|
253
|
-
d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"
|
|
254
|
-
/>
|
|
255
|
-
</svg>
|
|
256
|
-
<svg
|
|
257
|
-
class="pf-v6-icon-rh-ui"
|
|
258
|
-
viewBox="0 0 32 32"
|
|
259
|
-
>
|
|
260
|
-
<path
|
|
261
|
-
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm0 28C8.832 29 3 23.168 3 16S8.832 3 16 3s13 5.832 13 13-5.832 13-13 13Zm7.707-17.707a.999.999 0 0 1 0 1.414l-8.646 8.646c-.292.292-.676.438-1.061.438s-.768-.146-1.061-.438l-4.646-4.646a.999.999 0 1 1 1.414-1.414L14 19.586l8.293-8.293a.999.999 0 0 1 1.414 0Z"
|
|
262
|
-
/>
|
|
263
|
-
</svg>
|
|
201
|
+
<path
|
|
202
|
+
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm7.795 11.795-8.646 8.646c-.317.317-.733.475-1.149.475s-.832-.158-1.149-.475l-4.646-4.646a1.126 1.126 0 0 1 1.591-1.591l4.205 4.205 8.205-8.205a1.126 1.126 0 0 1 1.591 1.591Z"
|
|
203
|
+
/>
|
|
264
204
|
</svg>
|
|
265
205
|
</span>
|
|
266
206
|
<span
|
|
@@ -4,7 +4,7 @@ import { css } from '@patternfly/react-styles';
|
|
|
4
4
|
import { ExpandableSection } from '../ExpandableSection';
|
|
5
5
|
import { useSSRSafeId } from '../../helpers';
|
|
6
6
|
import InProgressIcon from '@patternfly/react-icons/dist/esm/icons/in-progress-icon';
|
|
7
|
-
import
|
|
7
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
8
8
|
import TimesCircleIcon from '@patternfly/react-icons/dist/esm/icons/times-circle-icon';
|
|
9
9
|
|
|
10
10
|
/** Acts as an expandable container for all uploaded file statuses.
|
|
@@ -44,7 +44,7 @@ export const MultipleFileUploadStatus: React.FunctionComponent<MultipleFileUploa
|
|
|
44
44
|
setIcon(<TimesCircleIcon />);
|
|
45
45
|
break;
|
|
46
46
|
case 'success':
|
|
47
|
-
setIcon(<
|
|
47
|
+
setIcon(<RhUiCheckCircleFillIcon />);
|
|
48
48
|
break;
|
|
49
49
|
case 'inProgress':
|
|
50
50
|
setIcon(<InProgressIcon />);
|
|
@@ -580,24 +580,12 @@ exports[`MultipleFileUploadStatusItem renders custom progress value/variant when
|
|
|
580
580
|
fill="currentColor"
|
|
581
581
|
height="1em"
|
|
582
582
|
role="img"
|
|
583
|
+
viewBox="0 0 32 32"
|
|
583
584
|
width="1em"
|
|
584
585
|
>
|
|
585
|
-
<
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
>
|
|
589
|
-
<path
|
|
590
|
-
d="M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"
|
|
591
|
-
/>
|
|
592
|
-
</svg>
|
|
593
|
-
<svg
|
|
594
|
-
class="pf-v6-icon-rh-ui"
|
|
595
|
-
viewBox="0 0 32 32"
|
|
596
|
-
>
|
|
597
|
-
<path
|
|
598
|
-
d="M31.461 27.771 17.3 2.301a1.499 1.499 0 0 0-2.623 0L.517 27.771c-.261.469-.255 1.025.018 1.489s.756.74 1.294.74h28.322c.537 0 1.021-.276 1.293-.74a1.49 1.49 0 0 0 .018-1.489ZM2.678 28l13.31-23.942L29.3 28H2.678ZM16 11.75c.69 0 1.25.56 1.25 1.25v5a1.25 1.25 0 0 1-2.5 0v-5c0-.69.56-1.25 1.25-1.25Zm1.75 12.261a1.75 1.75 0 1 1-3.501-.001 1.75 1.75 0 0 1 3.501.001Z"
|
|
599
|
-
/>
|
|
600
|
-
</svg>
|
|
586
|
+
<path
|
|
587
|
+
d="m31.874 28.514-15.011-27a1.001 1.001 0 0 0-1.748 0l-15.011 27A1 1 0 0 0 .978 30H31a1 1 0 0 0 .874-1.486ZM14.5 12a1.5 1.5 0 0 1 3 0v5a1.5 1.5 0 0 1-3 0v-5ZM16 26.001a2 2 0 1 1-.001-3.999A2 2 0 0 1 16 26.001Z"
|
|
588
|
+
/>
|
|
601
589
|
</svg>
|
|
602
590
|
</span>
|
|
603
591
|
</div>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
2
|
import { Button, ButtonVariant, ButtonProps } from '../Button';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import RhUiAttentionBellFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-attention-bell-fill-icon';
|
|
4
|
+
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
5
5
|
import styles from '@patternfly/react-styles/css/components/Button/button';
|
|
6
6
|
import { css } from '@patternfly/react-styles';
|
|
7
7
|
|
|
@@ -44,8 +44,8 @@ export const NotificationBadge: React.FunctionComponent<NotificationBadgeProps>
|
|
|
44
44
|
children,
|
|
45
45
|
variant = NotificationBadgeVariant.read,
|
|
46
46
|
count = 0,
|
|
47
|
-
attentionIcon = <
|
|
48
|
-
icon = <
|
|
47
|
+
attentionIcon = <RhUiAttentionBellFillIcon />,
|
|
48
|
+
icon = <RhUiNotificationFillIcon />,
|
|
49
49
|
className,
|
|
50
50
|
isExpanded = false,
|
|
51
51
|
shouldNotify = false,
|
package/src/components/NotificationBadge/__tests__/__snapshots__/NotificationBadge.test.tsx.snap
CHANGED
|
@@ -19,24 +19,12 @@ exports[`NotificationBadge count 1`] = `
|
|
|
19
19
|
fill="currentColor"
|
|
20
20
|
height="1em"
|
|
21
21
|
role="img"
|
|
22
|
+
viewBox="0 0 32 32"
|
|
22
23
|
width="1em"
|
|
23
24
|
>
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
>
|
|
28
|
-
<path
|
|
29
|
-
d="M448,0 C465.333333,0 480.333333,6.33333333 493,19 C505.666667,31.6666667 512,46.6666667 512,64 L512,106 L514.23,106.45 C587.89,121.39 648.48,157.24 696,214 C744,271.333333 768,338.666667 768,416 C768,500 780,568.666667 804,622 C818.666667,652.666667 841.333333,684 872,716 C873.773676,718.829136 875.780658,721.505113 878,724 C890,737.333333 896,752.333333 896,769 C896,785.666667 890,800.333333 878,813 C866,825.666667 850.666667,832 832,832 L63.3,832 C44.9533333,831.84 29.8533333,825.506667 18,813 C6,800.333333 0,785.666667 0,769 C0,752.333333 6,737.333333 18,724 L24,716 L25.06,714.9 C55.1933333,683.28 77.5066667,652.313333 92,622 C116,568.666667 128,500 128,416 C128,338.666667 152,271.333333 200,214 C248,156.666667 309.333333,120.666667 384,106 L384,63.31 C384.166667,46.27 390.5,31.5 403,19 C415.666667,6.33333333 430.666667,0 448,0 Z M576,896 L576,897.08 C575.74,932.6 563.073333,962.573333 538,987 C512.666667,1011.66667 482.666667,1024 448,1024 C413.333333,1024 383.333333,1011.66667 358,987 C332.666667,962.333333 320,932 320,896 L576,896 Z"
|
|
30
|
-
/>
|
|
31
|
-
</svg>
|
|
32
|
-
<svg
|
|
33
|
-
class="pf-v6-icon-rh-ui"
|
|
34
|
-
viewBox="0 0 32 32"
|
|
35
|
-
>
|
|
36
|
-
<path
|
|
37
|
-
d="M28 21c-1.103 0-2-.897-2-2v-4c0-4.885-3.523-8.955-8.159-9.823.405-.445.659-1.03.659-1.677C18.5 2.122 17.379 1 16 1s-2.5 1.122-2.5 2.5c0 .647.254 1.233.659 1.677C9.523 6.045 6 10.115 6 15v4c0 1.103-.897 2-2 2a1 1 0 0 0-1 1v3.5c0 .827.673 1.5 1.5 1.5H12c0 2.206 1.794 4 4 4s4-1.794 4-4h7.5c.827 0 1.5-.673 1.5-1.5V22a1 1 0 0 0-1-1Zm-1 4H5v-2.126A4.006 4.006 0 0 0 8 19v-4c0-4.411 3.589-8 8-8s8 3.589 8 8v4a4.008 4.008 0 0 0 3 3.874V25Z"
|
|
38
|
-
/>
|
|
39
|
-
</svg>
|
|
25
|
+
<path
|
|
26
|
+
d="M28.75 22v3.5c0 .689-.561 1.25-1.25 1.25h-7.521c.005.084.021.166.021.25 0 2.206-1.794 4-4 4s-4-1.794-4-4c0-.084.016-.166.021-.25H4.5c-.689 0-1.25-.561-1.25-1.25V22a.75.75 0 0 1 .75-.75c1.24 0 2.25-1.009 2.25-2.25v-4c0-4.826 3.528-8.833 8.138-9.605A2.482 2.482 0 0 1 13.5 3.5C13.5 2.122 14.621 1 16 1s2.5 1.122 2.5 2.5c0 .761-.349 1.436-.888 1.895 4.61.772 8.138 4.779 8.138 9.605v4c0 1.241 1.01 2.25 2.25 2.25a.75.75 0 0 1 .75.75Z"
|
|
27
|
+
/>
|
|
40
28
|
</svg>
|
|
41
29
|
</span>
|
|
42
30
|
<span
|
|
@@ -67,24 +55,12 @@ exports[`false NotificationBadge needs attention 1`] = `
|
|
|
67
55
|
fill="currentColor"
|
|
68
56
|
height="1em"
|
|
69
57
|
role="img"
|
|
58
|
+
viewBox="0 0 32 32"
|
|
70
59
|
width="1em"
|
|
71
60
|
>
|
|
72
|
-
<
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
>
|
|
76
|
-
<path
|
|
77
|
-
d="M448,0 C465.333333,0 480.333333,6.33333333 493,19 C505.666667,31.6666667 512,46.6666667 512,64 L512,106 L514.23,106.45 C587.89,121.39 648.48,157.24 696,214 C744,271.333333 768,338.666667 768,416 C768,500 780,568.666667 804,622 C818.666667,652.666667 841.333333,684 872,716 C873.773676,718.829136 875.780658,721.505113 878,724 C890,737.333333 896,752.333333 896,769 C896,785.666667 890,800.333333 878,813 C866,825.666667 850.666667,832 832,832 L63.3,832 C44.9533333,831.84 29.8533333,825.506667 18,813 C6,800.333333 0,785.666667 0,769 C0,752.333333 6,737.333333 18,724 L24,716 L25.06,714.9 C55.1933333,683.28 77.5066667,652.313333 92,622 C116,568.666667 128,500 128,416 C128,338.666667 152,271.333333 200,214 C248,156.666667 309.333333,120.666667 384,106 L384,63.31 C384.166667,46.27 390.5,31.5 403,19 C415.666667,6.33333333 430.666667,0 448,0 Z M576,896 L576,897.08 C575.74,932.6 563.073333,962.573333 538,987 C512.666667,1011.66667 482.666667,1024 448,1024 C413.333333,1024 383.333333,1011.66667 358,987 C332.666667,962.333333 320,932 320,896 L576,896 Z M475,192 L421,192 C400.565464,192 384,208.565464 384,229 L384,539 C384,559.434536 400.565464,576 421,576 L475,576 C495.434536,576 512,559.434536 512,539 L512,229 C512,208.565464 495.434536,192 475,192 Z M448,640 C412.653776,640 384,668.653776 384,704 C384,739.346224 412.653776,768 448,768 C483.346224,768 512,739.346224 512,704 C512,668.653776 483.346224,640 448,640 Z"
|
|
78
|
-
/>
|
|
79
|
-
</svg>
|
|
80
|
-
<svg
|
|
81
|
-
class="pf-v6-icon-rh-ui"
|
|
82
|
-
viewBox="0 0 32 32"
|
|
83
|
-
>
|
|
84
|
-
<path
|
|
85
|
-
d="M28 21c-1.103 0-2-.897-2-2v-4c0-4.884-3.523-8.955-8.159-9.823.405-.444.659-1.03.659-1.677C18.5 2.121 17.379 1 16 1s-2.5 1.121-2.5 2.5c0 .648.254 1.233.659 1.677C9.523 6.045 6 10.116 6 15v4c0 1.103-.897 2-2 2a1 1 0 0 0-1 1v3.5c0 .827.673 1.5 1.5 1.5H12c0 2.206 1.794 4 4 4s4-1.794 4-4h7.5c.827 0 1.5-.673 1.5-1.5V22a1 1 0 0 0-1-1Zm-1 4H5v-2.127A4.005 4.005 0 0 0 8 19v-4c0-4.411 3.589-8 8-8s8 3.589 8 8v4a4.005 4.005 0 0 0 3 3.873V25Zm-12.25-9v-4a1.25 1.25 0 0 1 2.5 0v4a1.25 1.25 0 0 1-2.5 0Zm3 5.011a1.75 1.75 0 1 1-3.501-.001 1.75 1.75 0 0 1 3.501.001Z"
|
|
86
|
-
/>
|
|
87
|
-
</svg>
|
|
61
|
+
<path
|
|
62
|
+
d="M28 21c-1.103 0-2-.897-2-2v-4c0-4.884-3.523-8.955-8.159-9.823.405-.444.659-1.03.659-1.677C18.5 2.121 17.379 1 16 1s-2.5 1.121-2.5 2.5c0 .648.254 1.233.659 1.677C9.523 6.045 6 10.116 6 15v4c0 1.103-.897 2-2 2a1 1 0 0 0-1 1v3.5c0 .827.673 1.5 1.5 1.5H12c0 2.206 1.794 4 4 4s4-1.794 4-4h7.5c.827 0 1.5-.673 1.5-1.5V22a1 1 0 0 0-1-1ZM14.5 11a1.5 1.5 0 0 1 3 0v5a1.5 1.5 0 0 1-3 0v-5ZM16 24.014a2 2 0 1 1-.001-3.999A2 2 0 0 1 16 24.014Z"
|
|
63
|
+
/>
|
|
88
64
|
</svg>
|
|
89
65
|
</span>
|
|
90
66
|
<span
|
|
@@ -115,24 +91,12 @@ exports[`true NotificationBadge needs attention 1`] = `
|
|
|
115
91
|
fill="currentColor"
|
|
116
92
|
height="1em"
|
|
117
93
|
role="img"
|
|
94
|
+
viewBox="0 0 32 32"
|
|
118
95
|
width="1em"
|
|
119
96
|
>
|
|
120
|
-
<
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
>
|
|
124
|
-
<path
|
|
125
|
-
d="M448,0 C465.333333,0 480.333333,6.33333333 493,19 C505.666667,31.6666667 512,46.6666667 512,64 L512,106 L514.23,106.45 C587.89,121.39 648.48,157.24 696,214 C744,271.333333 768,338.666667 768,416 C768,500 780,568.666667 804,622 C818.666667,652.666667 841.333333,684 872,716 C873.773676,718.829136 875.780658,721.505113 878,724 C890,737.333333 896,752.333333 896,769 C896,785.666667 890,800.333333 878,813 C866,825.666667 850.666667,832 832,832 L63.3,832 C44.9533333,831.84 29.8533333,825.506667 18,813 C6,800.333333 0,785.666667 0,769 C0,752.333333 6,737.333333 18,724 L24,716 L25.06,714.9 C55.1933333,683.28 77.5066667,652.313333 92,622 C116,568.666667 128,500 128,416 C128,338.666667 152,271.333333 200,214 C248,156.666667 309.333333,120.666667 384,106 L384,63.31 C384.166667,46.27 390.5,31.5 403,19 C415.666667,6.33333333 430.666667,0 448,0 Z M576,896 L576,897.08 C575.74,932.6 563.073333,962.573333 538,987 C512.666667,1011.66667 482.666667,1024 448,1024 C413.333333,1024 383.333333,1011.66667 358,987 C332.666667,962.333333 320,932 320,896 L576,896 Z M475,192 L421,192 C400.565464,192 384,208.565464 384,229 L384,539 C384,559.434536 400.565464,576 421,576 L475,576 C495.434536,576 512,559.434536 512,539 L512,229 C512,208.565464 495.434536,192 475,192 Z M448,640 C412.653776,640 384,668.653776 384,704 C384,739.346224 412.653776,768 448,768 C483.346224,768 512,739.346224 512,704 C512,668.653776 483.346224,640 448,640 Z"
|
|
126
|
-
/>
|
|
127
|
-
</svg>
|
|
128
|
-
<svg
|
|
129
|
-
class="pf-v6-icon-rh-ui"
|
|
130
|
-
viewBox="0 0 32 32"
|
|
131
|
-
>
|
|
132
|
-
<path
|
|
133
|
-
d="M28 21c-1.103 0-2-.897-2-2v-4c0-4.884-3.523-8.955-8.159-9.823.405-.444.659-1.03.659-1.677C18.5 2.121 17.379 1 16 1s-2.5 1.121-2.5 2.5c0 .648.254 1.233.659 1.677C9.523 6.045 6 10.116 6 15v4c0 1.103-.897 2-2 2a1 1 0 0 0-1 1v3.5c0 .827.673 1.5 1.5 1.5H12c0 2.206 1.794 4 4 4s4-1.794 4-4h7.5c.827 0 1.5-.673 1.5-1.5V22a1 1 0 0 0-1-1Zm-1 4H5v-2.127A4.005 4.005 0 0 0 8 19v-4c0-4.411 3.589-8 8-8s8 3.589 8 8v4a4.005 4.005 0 0 0 3 3.873V25Zm-12.25-9v-4a1.25 1.25 0 0 1 2.5 0v4a1.25 1.25 0 0 1-2.5 0Zm3 5.011a1.75 1.75 0 1 1-3.501-.001 1.75 1.75 0 0 1 3.501.001Z"
|
|
134
|
-
/>
|
|
135
|
-
</svg>
|
|
97
|
+
<path
|
|
98
|
+
d="M28 21c-1.103 0-2-.897-2-2v-4c0-4.884-3.523-8.955-8.159-9.823.405-.444.659-1.03.659-1.677C18.5 2.121 17.379 1 16 1s-2.5 1.121-2.5 2.5c0 .648.254 1.233.659 1.677C9.523 6.045 6 10.116 6 15v4c0 1.103-.897 2-2 2a1 1 0 0 0-1 1v3.5c0 .827.673 1.5 1.5 1.5H12c0 2.206 1.794 4 4 4s4-1.794 4-4h7.5c.827 0 1.5-.673 1.5-1.5V22a1 1 0 0 0-1-1ZM14.5 11a1.5 1.5 0 0 1 3 0v5a1.5 1.5 0 0 1-3 0v-5ZM16 24.014a2 2 0 1 1-.001-3.999A2 2 0 0 1 16 24.014Z"
|
|
99
|
+
/>
|
|
136
100
|
</svg>
|
|
137
101
|
</span>
|
|
138
102
|
<span
|
|
@@ -6,7 +6,7 @@ propComponents: ['NotificationBadge']
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
import { useEffect, useState } from 'react';
|
|
9
|
-
import
|
|
9
|
+
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
10
10
|
|
|
11
11
|
## Examples
|
|
12
12
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Fragment, useEffect, useRef, useState } from 'react';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
2
|
+
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
3
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
4
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon';
|
|
5
|
+
import RhUiWarningFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-warning-fill-icon';
|
|
6
|
+
import RhUiInformationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-information-fill-icon';
|
|
7
7
|
import { css } from '@patternfly/react-styles';
|
|
8
8
|
import styles from '@patternfly/react-styles/css/components/NotificationDrawer/notification-drawer';
|
|
9
9
|
|
|
@@ -12,11 +12,11 @@ import maxLines from '@patternfly/react-tokens/dist/esm/c_notification_drawer__l
|
|
|
12
12
|
import { Tooltip, TooltipPosition } from '../Tooltip';
|
|
13
13
|
|
|
14
14
|
export const variantIcons = {
|
|
15
|
-
success:
|
|
16
|
-
danger:
|
|
17
|
-
warning:
|
|
18
|
-
info:
|
|
19
|
-
custom:
|
|
15
|
+
success: RhUiCheckCircleFillIcon,
|
|
16
|
+
danger: RhUiErrorFillIcon,
|
|
17
|
+
warning: RhUiWarningFillIcon,
|
|
18
|
+
info: RhUiInformationFillIcon,
|
|
19
|
+
custom: RhUiNotificationFillIcon
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
export interface NotificationDrawerListItemHeaderProps extends React.HTMLProps<HTMLDivElement> {
|
package/src/components/NotificationDrawer/__tests__/NotificationDrawerListItemHeader.test.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { render, screen } from '@testing-library/react';
|
|
2
2
|
import '@testing-library/jest-dom';
|
|
3
3
|
|
|
4
|
-
import
|
|
4
|
+
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
5
5
|
import { NotificationDrawerListItemHeader } from '../NotificationDrawerListItemHeader';
|
|
6
6
|
import styles from '@patternfly/react-styles/css/components/NotificationDrawer/notification-drawer';
|
|
7
7
|
|
|
@@ -25,7 +25,7 @@ describe('NotificationDrawerListItemHeader', () => {
|
|
|
25
25
|
|
|
26
26
|
test('list item header with custom icon applied ', () => {
|
|
27
27
|
const { asFragment } = render(
|
|
28
|
-
<NotificationDrawerListItemHeader title="Pod quit unexpectedly" icon={<
|
|
28
|
+
<NotificationDrawerListItemHeader title="Pod quit unexpectedly" icon={<RhUiNotificationFillIcon />} />
|
|
29
29
|
);
|
|
30
30
|
expect(asFragment()).toMatchSnapshot();
|
|
31
31
|
});
|
|
@@ -14,24 +14,12 @@ exports[`NotificationDrawerListItemHeader list item header with custom icon appl
|
|
|
14
14
|
fill="currentColor"
|
|
15
15
|
height="1em"
|
|
16
16
|
role="img"
|
|
17
|
+
viewBox="0 0 32 32"
|
|
17
18
|
width="1em"
|
|
18
19
|
>
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
>
|
|
23
|
-
<path
|
|
24
|
-
d="M448,0 C465.333333,0 480.333333,6.33333333 493,19 C505.666667,31.6666667 512,46.6666667 512,64 L512,106 L514.23,106.45 C587.89,121.39 648.48,157.24 696,214 C744,271.333333 768,338.666667 768,416 C768,500 780,568.666667 804,622 C818.666667,652.666667 841.333333,684 872,716 C873.773676,718.829136 875.780658,721.505113 878,724 C890,737.333333 896,752.333333 896,769 C896,785.666667 890,800.333333 878,813 C866,825.666667 850.666667,832 832,832 L63.3,832 C44.9533333,831.84 29.8533333,825.506667 18,813 C6,800.333333 0,785.666667 0,769 C0,752.333333 6,737.333333 18,724 L24,716 L25.06,714.9 C55.1933333,683.28 77.5066667,652.313333 92,622 C116,568.666667 128,500 128,416 C128,338.666667 152,271.333333 200,214 C248,156.666667 309.333333,120.666667 384,106 L384,63.31 C384.166667,46.27 390.5,31.5 403,19 C415.666667,6.33333333 430.666667,0 448,0 Z M576,896 L576,897.08 C575.74,932.6 563.073333,962.573333 538,987 C512.666667,1011.66667 482.666667,1024 448,1024 C413.333333,1024 383.333333,1011.66667 358,987 C332.666667,962.333333 320,932 320,896 L576,896 Z"
|
|
25
|
-
/>
|
|
26
|
-
</svg>
|
|
27
|
-
<svg
|
|
28
|
-
class="pf-v6-icon-rh-ui"
|
|
29
|
-
viewBox="0 0 32 32"
|
|
30
|
-
>
|
|
31
|
-
<path
|
|
32
|
-
d="M28 21c-1.103 0-2-.897-2-2v-4c0-4.885-3.523-8.955-8.159-9.823.405-.445.659-1.03.659-1.677C18.5 2.122 17.379 1 16 1s-2.5 1.122-2.5 2.5c0 .647.254 1.233.659 1.677C9.523 6.045 6 10.115 6 15v4c0 1.103-.897 2-2 2a1 1 0 0 0-1 1v3.5c0 .827.673 1.5 1.5 1.5H12c0 2.206 1.794 4 4 4s4-1.794 4-4h7.5c.827 0 1.5-.673 1.5-1.5V22a1 1 0 0 0-1-1Zm-1 4H5v-2.126A4.006 4.006 0 0 0 8 19v-4c0-4.411 3.589-8 8-8s8 3.589 8 8v4a4.008 4.008 0 0 0 3 3.874V25Z"
|
|
33
|
-
/>
|
|
34
|
-
</svg>
|
|
20
|
+
<path
|
|
21
|
+
d="M28.75 22v3.5c0 .689-.561 1.25-1.25 1.25h-7.521c.005.084.021.166.021.25 0 2.206-1.794 4-4 4s-4-1.794-4-4c0-.084.016-.166.021-.25H4.5c-.689 0-1.25-.561-1.25-1.25V22a.75.75 0 0 1 .75-.75c1.24 0 2.25-1.009 2.25-2.25v-4c0-4.826 3.528-8.833 8.138-9.605A2.482 2.482 0 0 1 13.5 3.5C13.5 2.122 14.621 1 16 1s2.5 1.122 2.5 2.5c0 .761-.349 1.436-.888 1.895 4.61.772 8.138 4.779 8.138 9.605v4c0 1.241 1.01 2.25 2.25 2.25a.75.75 0 0 1 .75.75Z"
|
|
22
|
+
/>
|
|
35
23
|
</svg>
|
|
36
24
|
</span>
|
|
37
25
|
<h2
|
|
@@ -57,24 +45,12 @@ exports[`NotificationDrawerListItemHeader list item header with srTitle applied
|
|
|
57
45
|
fill="currentColor"
|
|
58
46
|
height="1em"
|
|
59
47
|
role="img"
|
|
48
|
+
viewBox="0 0 32 32"
|
|
60
49
|
width="1em"
|
|
61
50
|
>
|
|
62
|
-
<
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
>
|
|
66
|
-
<path
|
|
67
|
-
d="M448,0 C465.333333,0 480.333333,6.33333333 493,19 C505.666667,31.6666667 512,46.6666667 512,64 L512,106 L514.23,106.45 C587.89,121.39 648.48,157.24 696,214 C744,271.333333 768,338.666667 768,416 C768,500 780,568.666667 804,622 C818.666667,652.666667 841.333333,684 872,716 C873.773676,718.829136 875.780658,721.505113 878,724 C890,737.333333 896,752.333333 896,769 C896,785.666667 890,800.333333 878,813 C866,825.666667 850.666667,832 832,832 L63.3,832 C44.9533333,831.84 29.8533333,825.506667 18,813 C6,800.333333 0,785.666667 0,769 C0,752.333333 6,737.333333 18,724 L24,716 L25.06,714.9 C55.1933333,683.28 77.5066667,652.313333 92,622 C116,568.666667 128,500 128,416 C128,338.666667 152,271.333333 200,214 C248,156.666667 309.333333,120.666667 384,106 L384,63.31 C384.166667,46.27 390.5,31.5 403,19 C415.666667,6.33333333 430.666667,0 448,0 Z M576,896 L576,897.08 C575.74,932.6 563.073333,962.573333 538,987 C512.666667,1011.66667 482.666667,1024 448,1024 C413.333333,1024 383.333333,1011.66667 358,987 C332.666667,962.333333 320,932 320,896 L576,896 Z"
|
|
68
|
-
/>
|
|
69
|
-
</svg>
|
|
70
|
-
<svg
|
|
71
|
-
class="pf-v6-icon-rh-ui"
|
|
72
|
-
viewBox="0 0 32 32"
|
|
73
|
-
>
|
|
74
|
-
<path
|
|
75
|
-
d="M28 21c-1.103 0-2-.897-2-2v-4c0-4.885-3.523-8.955-8.159-9.823.405-.445.659-1.03.659-1.677C18.5 2.122 17.379 1 16 1s-2.5 1.122-2.5 2.5c0 .647.254 1.233.659 1.677C9.523 6.045 6 10.115 6 15v4c0 1.103-.897 2-2 2a1 1 0 0 0-1 1v3.5c0 .827.673 1.5 1.5 1.5H12c0 2.206 1.794 4 4 4s4-1.794 4-4h7.5c.827 0 1.5-.673 1.5-1.5V22a1 1 0 0 0-1-1Zm-1 4H5v-2.126A4.006 4.006 0 0 0 8 19v-4c0-4.411 3.589-8 8-8s8 3.589 8 8v4a4.008 4.008 0 0 0 3 3.874V25Z"
|
|
76
|
-
/>
|
|
77
|
-
</svg>
|
|
51
|
+
<path
|
|
52
|
+
d="M28.75 22v3.5c0 .689-.561 1.25-1.25 1.25h-7.521c.005.084.021.166.021.25 0 2.206-1.794 4-4 4s-4-1.794-4-4c0-.084.016-.166.021-.25H4.5c-.689 0-1.25-.561-1.25-1.25V22a.75.75 0 0 1 .75-.75c1.24 0 2.25-1.009 2.25-2.25v-4c0-4.826 3.528-8.833 8.138-9.605A2.482 2.482 0 0 1 13.5 3.5C13.5 2.122 14.621 1 16 1s2.5 1.122 2.5 2.5c0 .761-.349 1.436-.888 1.895 4.61.772 8.138 4.779 8.138 9.605v4c0 1.241 1.01 2.25 2.25 2.25a.75.75 0 0 1 .75.75Z"
|
|
53
|
+
/>
|
|
78
54
|
</svg>
|
|
79
55
|
</span>
|
|
80
56
|
<h2
|
|
@@ -105,24 +81,12 @@ exports[`NotificationDrawerListItemHeader list item header with variant applied
|
|
|
105
81
|
fill="currentColor"
|
|
106
82
|
height="1em"
|
|
107
83
|
role="img"
|
|
84
|
+
viewBox="0 0 32 32"
|
|
108
85
|
width="1em"
|
|
109
86
|
>
|
|
110
|
-
<
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
>
|
|
114
|
-
<path
|
|
115
|
-
d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"
|
|
116
|
-
/>
|
|
117
|
-
</svg>
|
|
118
|
-
<svg
|
|
119
|
-
class="pf-v6-icon-rh-ui"
|
|
120
|
-
viewBox="0 0 32 32"
|
|
121
|
-
>
|
|
122
|
-
<path
|
|
123
|
-
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm0 28C8.832 29 3 23.168 3 16S8.832 3 16 3s13 5.832 13 13-5.832 13-13 13Zm7.707-17.707a.999.999 0 0 1 0 1.414l-8.646 8.646c-.292.292-.676.438-1.061.438s-.768-.146-1.061-.438l-4.646-4.646a.999.999 0 1 1 1.414-1.414L14 19.586l8.293-8.293a.999.999 0 0 1 1.414 0Z"
|
|
124
|
-
/>
|
|
125
|
-
</svg>
|
|
87
|
+
<path
|
|
88
|
+
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm7.795 11.795-8.646 8.646c-.317.317-.733.475-1.149.475s-.832-.158-1.149-.475l-4.646-4.646a1.126 1.126 0 0 1 1.591-1.591l4.205 4.205 8.205-8.205a1.126 1.126 0 0 1 1.591 1.591Z"
|
|
89
|
+
/>
|
|
126
90
|
</svg>
|
|
127
91
|
</span>
|
|
128
92
|
<h2
|
|
@@ -148,24 +112,12 @@ exports[`NotificationDrawerListItemHeader renders with PatternFly Core styles 1`
|
|
|
148
112
|
fill="currentColor"
|
|
149
113
|
height="1em"
|
|
150
114
|
role="img"
|
|
115
|
+
viewBox="0 0 32 32"
|
|
151
116
|
width="1em"
|
|
152
117
|
>
|
|
153
|
-
<
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
>
|
|
157
|
-
<path
|
|
158
|
-
d="M448,0 C465.333333,0 480.333333,6.33333333 493,19 C505.666667,31.6666667 512,46.6666667 512,64 L512,106 L514.23,106.45 C587.89,121.39 648.48,157.24 696,214 C744,271.333333 768,338.666667 768,416 C768,500 780,568.666667 804,622 C818.666667,652.666667 841.333333,684 872,716 C873.773676,718.829136 875.780658,721.505113 878,724 C890,737.333333 896,752.333333 896,769 C896,785.666667 890,800.333333 878,813 C866,825.666667 850.666667,832 832,832 L63.3,832 C44.9533333,831.84 29.8533333,825.506667 18,813 C6,800.333333 0,785.666667 0,769 C0,752.333333 6,737.333333 18,724 L24,716 L25.06,714.9 C55.1933333,683.28 77.5066667,652.313333 92,622 C116,568.666667 128,500 128,416 C128,338.666667 152,271.333333 200,214 C248,156.666667 309.333333,120.666667 384,106 L384,63.31 C384.166667,46.27 390.5,31.5 403,19 C415.666667,6.33333333 430.666667,0 448,0 Z M576,896 L576,897.08 C575.74,932.6 563.073333,962.573333 538,987 C512.666667,1011.66667 482.666667,1024 448,1024 C413.333333,1024 383.333333,1011.66667 358,987 C332.666667,962.333333 320,932 320,896 L576,896 Z"
|
|
159
|
-
/>
|
|
160
|
-
</svg>
|
|
161
|
-
<svg
|
|
162
|
-
class="pf-v6-icon-rh-ui"
|
|
163
|
-
viewBox="0 0 32 32"
|
|
164
|
-
>
|
|
165
|
-
<path
|
|
166
|
-
d="M28 21c-1.103 0-2-.897-2-2v-4c0-4.885-3.523-8.955-8.159-9.823.405-.445.659-1.03.659-1.677C18.5 2.122 17.379 1 16 1s-2.5 1.122-2.5 2.5c0 .647.254 1.233.659 1.677C9.523 6.045 6 10.115 6 15v4c0 1.103-.897 2-2 2a1 1 0 0 0-1 1v3.5c0 .827.673 1.5 1.5 1.5H12c0 2.206 1.794 4 4 4s4-1.794 4-4h7.5c.827 0 1.5-.673 1.5-1.5V22a1 1 0 0 0-1-1Zm-1 4H5v-2.126A4.006 4.006 0 0 0 8 19v-4c0-4.411 3.589-8 8-8s8 3.589 8 8v4a4.008 4.008 0 0 0 3 3.874V25Z"
|
|
167
|
-
/>
|
|
168
|
-
</svg>
|
|
118
|
+
<path
|
|
119
|
+
d="M28.75 22v3.5c0 .689-.561 1.25-1.25 1.25h-7.521c.005.084.021.166.021.25 0 2.206-1.794 4-4 4s-4-1.794-4-4c0-.084.016-.166.021-.25H4.5c-.689 0-1.25-.561-1.25-1.25V22a.75.75 0 0 1 .75-.75c1.24 0 2.25-1.009 2.25-2.25v-4c0-4.826 3.528-8.833 8.138-9.605A2.482 2.482 0 0 1 13.5 3.5C13.5 2.122 14.621 1 16 1s2.5 1.122 2.5 2.5c0 .761-.349 1.436-.888 1.895 4.61.772 8.138 4.779 8.138 9.605v4c0 1.241 1.01 2.25 2.25 2.25a.75.75 0 0 1 .75.75Z"
|
|
120
|
+
/>
|
|
169
121
|
</svg>
|
|
170
122
|
</span>
|
|
171
123
|
<h2
|
|
@@ -191,24 +143,12 @@ exports[`NotificationDrawerListItemHeader renders with correct heading level 1`]
|
|
|
191
143
|
fill="currentColor"
|
|
192
144
|
height="1em"
|
|
193
145
|
role="img"
|
|
146
|
+
viewBox="0 0 32 32"
|
|
194
147
|
width="1em"
|
|
195
148
|
>
|
|
196
|
-
<
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
>
|
|
200
|
-
<path
|
|
201
|
-
d="M448,0 C465.333333,0 480.333333,6.33333333 493,19 C505.666667,31.6666667 512,46.6666667 512,64 L512,106 L514.23,106.45 C587.89,121.39 648.48,157.24 696,214 C744,271.333333 768,338.666667 768,416 C768,500 780,568.666667 804,622 C818.666667,652.666667 841.333333,684 872,716 C873.773676,718.829136 875.780658,721.505113 878,724 C890,737.333333 896,752.333333 896,769 C896,785.666667 890,800.333333 878,813 C866,825.666667 850.666667,832 832,832 L63.3,832 C44.9533333,831.84 29.8533333,825.506667 18,813 C6,800.333333 0,785.666667 0,769 C0,752.333333 6,737.333333 18,724 L24,716 L25.06,714.9 C55.1933333,683.28 77.5066667,652.313333 92,622 C116,568.666667 128,500 128,416 C128,338.666667 152,271.333333 200,214 C248,156.666667 309.333333,120.666667 384,106 L384,63.31 C384.166667,46.27 390.5,31.5 403,19 C415.666667,6.33333333 430.666667,0 448,0 Z M576,896 L576,897.08 C575.74,932.6 563.073333,962.573333 538,987 C512.666667,1011.66667 482.666667,1024 448,1024 C413.333333,1024 383.333333,1011.66667 358,987 C332.666667,962.333333 320,932 320,896 L576,896 Z"
|
|
202
|
-
/>
|
|
203
|
-
</svg>
|
|
204
|
-
<svg
|
|
205
|
-
class="pf-v6-icon-rh-ui"
|
|
206
|
-
viewBox="0 0 32 32"
|
|
207
|
-
>
|
|
208
|
-
<path
|
|
209
|
-
d="M28 21c-1.103 0-2-.897-2-2v-4c0-4.885-3.523-8.955-8.159-9.823.405-.445.659-1.03.659-1.677C18.5 2.122 17.379 1 16 1s-2.5 1.122-2.5 2.5c0 .647.254 1.233.659 1.677C9.523 6.045 6 10.115 6 15v4c0 1.103-.897 2-2 2a1 1 0 0 0-1 1v3.5c0 .827.673 1.5 1.5 1.5H12c0 2.206 1.794 4 4 4s4-1.794 4-4h7.5c.827 0 1.5-.673 1.5-1.5V22a1 1 0 0 0-1-1Zm-1 4H5v-2.126A4.006 4.006 0 0 0 8 19v-4c0-4.411 3.589-8 8-8s8 3.589 8 8v4a4.008 4.008 0 0 0 3 3.874V25Z"
|
|
210
|
-
/>
|
|
211
|
-
</svg>
|
|
149
|
+
<path
|
|
150
|
+
d="M28.75 22v3.5c0 .689-.561 1.25-1.25 1.25h-7.521c.005.084.021.166.021.25 0 2.206-1.794 4-4 4s-4-1.794-4-4c0-.084.016-.166.021-.25H4.5c-.689 0-1.25-.561-1.25-1.25V22a.75.75 0 0 1 .75-.75c1.24 0 2.25-1.009 2.25-2.25v-4c0-4.826 3.528-8.833 8.138-9.605A2.482 2.482 0 0 1 13.5 3.5C13.5 2.122 14.621 1 16 1s2.5 1.122 2.5 2.5c0 .761-.349 1.436-.888 1.895 4.61.772 8.138 4.779 8.138 9.605v4c0 1.241 1.01 2.25 2.25 2.25a.75.75 0 0 1 .75.75Z"
|
|
151
|
+
/>
|
|
212
152
|
</svg>
|
|
213
153
|
</span>
|
|
214
154
|
<h3
|
|
@@ -952,24 +952,12 @@ exports[`numberInput renders error validated 1`] = `
|
|
|
952
952
|
fill="currentColor"
|
|
953
953
|
height="1em"
|
|
954
954
|
role="img"
|
|
955
|
+
viewBox="0 0 32 32"
|
|
955
956
|
width="1em"
|
|
956
957
|
>
|
|
957
|
-
<
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
>
|
|
961
|
-
<path
|
|
962
|
-
d="M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"
|
|
963
|
-
/>
|
|
964
|
-
</svg>
|
|
965
|
-
<svg
|
|
966
|
-
class="pf-v6-icon-rh-ui"
|
|
967
|
-
viewBox="0 0 32 32"
|
|
968
|
-
>
|
|
969
|
-
<path
|
|
970
|
-
d="M14.75 16V9a1.25 1.25 0 0 1 2.5 0v7a1.25 1.25 0 0 1-2.5 0ZM31 16c0 8.271-6.729 15-15 15S1 24.271 1 16 7.729 1 16 1s15 6.729 15 15Zm-2 0c0-7.168-5.832-13-13-13S3 8.832 3 16s5.832 13 13 13 13-5.832 13-13Zm-13 4.261a1.75 1.75 0 1 0 .001 3.501A1.75 1.75 0 0 0 16 20.261Z"
|
|
971
|
-
/>
|
|
972
|
-
</svg>
|
|
958
|
+
<path
|
|
959
|
+
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm-1.5 8a1.5 1.5 0 1 1 3 0v7a1.5 1.5 0 1 1-3 0V9ZM16 25.001a2 2 0 1 1-.001-3.999A2 2 0 0 1 16 25.001Z"
|
|
960
|
+
/>
|
|
973
961
|
</svg>
|
|
974
962
|
</span>
|
|
975
963
|
</span>
|
|
@@ -1108,24 +1096,12 @@ exports[`numberInput renders success validated 1`] = `
|
|
|
1108
1096
|
fill="currentColor"
|
|
1109
1097
|
height="1em"
|
|
1110
1098
|
role="img"
|
|
1099
|
+
viewBox="0 0 32 32"
|
|
1111
1100
|
width="1em"
|
|
1112
1101
|
>
|
|
1113
|
-
<
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
>
|
|
1117
|
-
<path
|
|
1118
|
-
d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"
|
|
1119
|
-
/>
|
|
1120
|
-
</svg>
|
|
1121
|
-
<svg
|
|
1122
|
-
class="pf-v6-icon-rh-ui"
|
|
1123
|
-
viewBox="0 0 32 32"
|
|
1124
|
-
>
|
|
1125
|
-
<path
|
|
1126
|
-
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm0 28C8.832 29 3 23.168 3 16S8.832 3 16 3s13 5.832 13 13-5.832 13-13 13Zm7.707-17.707a.999.999 0 0 1 0 1.414l-8.646 8.646c-.292.292-.676.438-1.061.438s-.768-.146-1.061-.438l-4.646-4.646a.999.999 0 1 1 1.414-1.414L14 19.586l8.293-8.293a.999.999 0 0 1 1.414 0Z"
|
|
1127
|
-
/>
|
|
1128
|
-
</svg>
|
|
1102
|
+
<path
|
|
1103
|
+
d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm7.795 11.795-8.646 8.646c-.317.317-.733.475-1.149.475s-.832-.158-1.149-.475l-4.646-4.646a1.126 1.126 0 0 1 1.591-1.591l4.205 4.205 8.205-8.205a1.126 1.126 0 0 1 1.591 1.591Z"
|
|
1104
|
+
/>
|
|
1129
1105
|
</svg>
|
|
1130
1106
|
</span>
|
|
1131
1107
|
</span>
|
|
@@ -1643,24 +1619,12 @@ exports[`numberInput renders warning validated 1`] = `
|
|
|
1643
1619
|
fill="currentColor"
|
|
1644
1620
|
height="1em"
|
|
1645
1621
|
role="img"
|
|
1622
|
+
viewBox="0 0 32 32"
|
|
1646
1623
|
width="1em"
|
|
1647
1624
|
>
|
|
1648
|
-
<
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
>
|
|
1652
|
-
<path
|
|
1653
|
-
d="M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"
|
|
1654
|
-
/>
|
|
1655
|
-
</svg>
|
|
1656
|
-
<svg
|
|
1657
|
-
class="pf-v6-icon-rh-ui"
|
|
1658
|
-
viewBox="0 0 32 32"
|
|
1659
|
-
>
|
|
1660
|
-
<path
|
|
1661
|
-
d="M31.461 27.771 17.3 2.301a1.499 1.499 0 0 0-2.623 0L.517 27.771c-.261.469-.255 1.025.018 1.489s.756.74 1.294.74h28.322c.537 0 1.021-.276 1.293-.74a1.49 1.49 0 0 0 .018-1.489ZM2.678 28l13.31-23.942L29.3 28H2.678ZM16 11.75c.69 0 1.25.56 1.25 1.25v5a1.25 1.25 0 0 1-2.5 0v-5c0-.69.56-1.25 1.25-1.25Zm1.75 12.261a1.75 1.75 0 1 1-3.501-.001 1.75 1.75 0 0 1 3.501.001Z"
|
|
1662
|
-
/>
|
|
1663
|
-
</svg>
|
|
1625
|
+
<path
|
|
1626
|
+
d="m31.874 28.514-15.011-27a1.001 1.001 0 0 0-1.748 0l-15.011 27A1 1 0 0 0 .978 30H31a1 1 0 0 0 .874-1.486ZM14.5 12a1.5 1.5 0 0 1 3 0v5a1.5 1.5 0 0 1-3 0v-5ZM16 26.001a2 2 0 1 1-.001-3.999A2 2 0 0 1 16 26.001Z"
|
|
1627
|
+
/>
|
|
1664
1628
|
</svg>
|
|
1665
1629
|
</span>
|
|
1666
1630
|
</span>
|
|
@@ -6,11 +6,11 @@ propComponents: ['Popover']
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
import { useRef, useState } from 'react';
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
9
|
+
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
10
|
+
import RhUiInformationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-information-fill-icon';
|
|
11
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
12
|
+
import RhUiWarningFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-warning-fill-icon';
|
|
13
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon';
|
|
14
14
|
import BullhornIcon from '@patternfly/react-icons/dist/esm/icons/bullhorn-icon';
|
|
15
15
|
|
|
16
16
|
## Examples
|