@patternfly/react-core 6.5.0-prerelease.46 → 6.5.0-prerelease.48
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/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/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-DArgwQSx.css → output-CT4AeuLf.css} +18436 -18436
- 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/MenuWithDrilldownInitialState.tsx +1 -1
- 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/WizardNavItem.tsx +6 -6
- package/src/components/Wizard/WizardToggle.tsx +4 -4
- 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
package/helpers/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-helpers","main":"../dist/js/helpers/index.js","module":"../dist/esm/helpers/index.js","typings":"../dist/esm/helpers/index.d.ts","version":"6.5.0-prerelease.
|
|
1
|
+
{"name":"@patternfly/react-core-helpers","main":"../dist/js/helpers/index.js","module":"../dist/esm/helpers/index.js","typings":"../dist/esm/helpers/index.d.ts","version":"6.5.0-prerelease.47","private":true}
|
package/layouts/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-layouts","main":"../dist/js/layouts/index.js","module":"../dist/esm/layouts/index.js","typings":"../dist/esm/layouts/index.d.ts","version":"6.5.0-prerelease.
|
|
1
|
+
{"name":"@patternfly/react-core-layouts","main":"../dist/js/layouts/index.js","module":"../dist/esm/layouts/index.js","typings":"../dist/esm/layouts/index.d.ts","version":"6.5.0-prerelease.47","private":true}
|
package/next/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-next","main":"../dist/js/next/index.js","module":"../dist/esm/next/index.js","typings":"../dist/esm/next/index.d.ts","version":"6.5.0-prerelease.
|
|
1
|
+
{"name":"@patternfly/react-core-next","main":"../dist/js/next/index.js","module":"../dist/esm/next/index.js","typings":"../dist/esm/next/index.d.ts","version":"6.5.0-prerelease.47","private":true}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-core",
|
|
3
|
-
"version": "6.5.0-prerelease.
|
|
3
|
+
"version": "6.5.0-prerelease.48",
|
|
4
4
|
"description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
|
|
5
5
|
"main": "dist/js/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"subpaths": "node ../../scripts/exportSubpaths.mjs --config subpaths.config.json"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@patternfly/react-icons": "^6.5.0-prerelease.
|
|
49
|
+
"@patternfly/react-icons": "^6.5.0-prerelease.19",
|
|
50
50
|
"@patternfly/react-styles": "^6.5.0-prerelease.15",
|
|
51
51
|
"@patternfly/react-tokens": "^6.5.0-prerelease.14",
|
|
52
52
|
"focus-trap": "7.6.6",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"react": "^17 || ^18 || ^19",
|
|
64
64
|
"react-dom": "^17 || ^18 || ^19"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "d12d240eb2218407d455c9b06478e1a38357d3f7"
|
|
67
67
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { css } from '@patternfly/react-styles';
|
|
2
2
|
import styles from '@patternfly/react-styles/css/components/Alert/alert';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
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
|
+
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
8
8
|
|
|
9
9
|
export const variantIcons = {
|
|
10
|
-
success:
|
|
11
|
-
danger:
|
|
12
|
-
warning:
|
|
13
|
-
info:
|
|
14
|
-
custom:
|
|
10
|
+
success: RhUiCheckCircleFillIcon,
|
|
11
|
+
danger: RhUiErrorFillIcon,
|
|
12
|
+
warning: RhUiWarningFillIcon,
|
|
13
|
+
info: RhUiInformationFillIcon,
|
|
14
|
+
custom: RhUiNotificationFillIcon
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
export interface AlertIconProps extends React.HTMLProps<HTMLDivElement> {
|
|
@@ -3,14 +3,14 @@ import { render, screen } from '@testing-library/react';
|
|
|
3
3
|
import { AlertIcon } from '../AlertIcon';
|
|
4
4
|
import styles from '@patternfly/react-styles/css/components/Alert/alert';
|
|
5
5
|
|
|
6
|
-
jest.mock('@patternfly/react-icons/dist/esm/icons/check-circle-icon', () => () => 'Check circle icon mock');
|
|
7
|
-
jest.mock('@patternfly/react-icons/dist/esm/icons/
|
|
6
|
+
jest.mock('@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon', () => () => 'Check circle icon mock');
|
|
7
|
+
jest.mock('@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon', () => () => 'Exclamation circle icon mock');
|
|
8
8
|
jest.mock(
|
|
9
|
-
'@patternfly/react-icons/dist/esm/icons/
|
|
9
|
+
'@patternfly/react-icons/dist/esm/icons/rh-ui-warning-fill-icon',
|
|
10
10
|
() => () => 'Exclamation triangle icon mock'
|
|
11
11
|
);
|
|
12
|
-
jest.mock('@patternfly/react-icons/dist/esm/icons/
|
|
13
|
-
jest.mock('@patternfly/react-icons/dist/esm/icons/
|
|
12
|
+
jest.mock('@patternfly/react-icons/dist/esm/icons/rh-ui-information-fill-icon', () => () => 'Info circle icon mock');
|
|
13
|
+
jest.mock('@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon', () => () => 'Bell icon mock');
|
|
14
14
|
|
|
15
15
|
test('Renders without children', () => {
|
|
16
16
|
render(
|
|
@@ -11,24 +11,12 @@ exports[`AlertIcon should match snapshot (auto-generated) 1`] = `
|
|
|
11
11
|
fill="currentColor"
|
|
12
12
|
height="1em"
|
|
13
13
|
role="img"
|
|
14
|
+
viewBox="0 0 32 32"
|
|
14
15
|
width="1em"
|
|
15
16
|
>
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
>
|
|
20
|
-
<path
|
|
21
|
-
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"
|
|
22
|
-
/>
|
|
23
|
-
</svg>
|
|
24
|
-
<svg
|
|
25
|
-
class="pf-v6-icon-rh-ui"
|
|
26
|
-
viewBox="0 0 32 32"
|
|
27
|
-
>
|
|
28
|
-
<path
|
|
29
|
-
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"
|
|
30
|
-
/>
|
|
31
|
-
</svg>
|
|
17
|
+
<path
|
|
18
|
+
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"
|
|
19
|
+
/>
|
|
32
20
|
</svg>
|
|
33
21
|
</div>
|
|
34
22
|
</DocumentFragment>
|
|
@@ -5,11 +5,11 @@ cssPrefix: pf-v6-c-banner
|
|
|
5
5
|
propComponents: ['Banner']
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
8
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
9
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon';
|
|
10
|
+
import RhUiWarningFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-warning-fill-icon';
|
|
11
|
+
import RhUiInformationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-information-fill-icon';
|
|
12
|
+
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
13
13
|
|
|
14
14
|
## Examples
|
|
15
15
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Banner, Flex, FlexItem } from '@patternfly/react-core';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
2
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
3
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon';
|
|
4
|
+
import RhUiWarningFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-warning-fill-icon';
|
|
5
|
+
import RhUiInformationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-information-fill-icon';
|
|
6
|
+
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
7
7
|
|
|
8
8
|
export const BannerStatus: React.FunctionComponent = () => (
|
|
9
9
|
<>
|
|
10
10
|
<Banner screenReaderText="Success banner" status="success">
|
|
11
11
|
<Flex spaceItems={{ default: 'spaceItemsSm' }}>
|
|
12
12
|
<FlexItem>
|
|
13
|
-
<
|
|
13
|
+
<RhUiCheckCircleFillIcon />
|
|
14
14
|
</FlexItem>
|
|
15
15
|
<FlexItem>Success banner</FlexItem>
|
|
16
16
|
</Flex>
|
|
@@ -19,7 +19,7 @@ export const BannerStatus: React.FunctionComponent = () => (
|
|
|
19
19
|
<Banner screenReaderText="Warning banner" status="warning">
|
|
20
20
|
<Flex spaceItems={{ default: 'spaceItemsSm' }}>
|
|
21
21
|
<FlexItem>
|
|
22
|
-
<
|
|
22
|
+
<RhUiWarningFillIcon />
|
|
23
23
|
</FlexItem>
|
|
24
24
|
<FlexItem>Warning banner</FlexItem>
|
|
25
25
|
</Flex>
|
|
@@ -28,7 +28,7 @@ export const BannerStatus: React.FunctionComponent = () => (
|
|
|
28
28
|
<Banner screenReaderText="Danger banner" status="danger">
|
|
29
29
|
<Flex spaceItems={{ default: 'spaceItemsSm' }}>
|
|
30
30
|
<FlexItem>
|
|
31
|
-
<
|
|
31
|
+
<RhUiErrorFillIcon />
|
|
32
32
|
</FlexItem>
|
|
33
33
|
<FlexItem>Danger banner</FlexItem>
|
|
34
34
|
</Flex>
|
|
@@ -37,7 +37,7 @@ export const BannerStatus: React.FunctionComponent = () => (
|
|
|
37
37
|
<Banner screenReaderText="Info banner" status="info">
|
|
38
38
|
<Flex spaceItems={{ default: 'spaceItemsSm' }}>
|
|
39
39
|
<FlexItem>
|
|
40
|
-
<
|
|
40
|
+
<RhUiInformationFillIcon />
|
|
41
41
|
</FlexItem>
|
|
42
42
|
<FlexItem>Info banner</FlexItem>
|
|
43
43
|
</Flex>
|
|
@@ -46,7 +46,7 @@ export const BannerStatus: React.FunctionComponent = () => (
|
|
|
46
46
|
<Banner screenReaderText="Custom banner" status="custom">
|
|
47
47
|
<Flex spaceItems={{ default: 'spaceItemsSm' }}>
|
|
48
48
|
<FlexItem>
|
|
49
|
-
<
|
|
49
|
+
<RhUiNotificationFillIcon />
|
|
50
50
|
</FlexItem>
|
|
51
51
|
<FlexItem>Custom banner</FlexItem>
|
|
52
52
|
</Flex>
|
|
@@ -13,7 +13,7 @@ import ExternalLinkSquareAltIcon from '@patternfly/react-icons/dist/esm/icons/ex
|
|
|
13
13
|
import CopyIcon from '@patternfly/react-icons/dist/esm/icons/copy-icon';
|
|
14
14
|
import ArrowRightIcon from '@patternfly/react-icons/dist/esm/icons/arrow-right-icon';
|
|
15
15
|
import UploadIcon from '@patternfly/react-icons/dist/esm/icons/upload-icon';
|
|
16
|
-
import
|
|
16
|
+
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
17
17
|
import QuestionCircleIcon from '@patternfly/react-icons/dist/esm/icons/question-circle-icon';
|
|
18
18
|
|
|
19
19
|
## Examples
|
|
@@ -2,7 +2,7 @@ import { Button, Flex } from '@patternfly/react-core';
|
|
|
2
2
|
import RhMicronsCloseIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-close-icon';
|
|
3
3
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
4
4
|
import CopyIcon from '@patternfly/react-icons/dist/esm/icons/copy-icon';
|
|
5
|
-
import
|
|
5
|
+
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
6
6
|
import UploadIcon from '@patternfly/react-icons/dist/esm/icons/upload-icon';
|
|
7
7
|
|
|
8
8
|
interface LoadingPropsType {
|
|
@@ -35,19 +35,24 @@ export const ButtonCircle: React.FunctionComponent = () => {
|
|
|
35
35
|
<Button variant="link" isCircle icon={<PlusCircleIcon />} aria-label="Add link circle variant example" />
|
|
36
36
|
<Button variant="control" isCircle icon={<CopyIcon />} aria-label="Copy control circle variant example" />
|
|
37
37
|
<Button variant="plain" isCircle icon={<RhMicronsCloseIcon />} aria-label="Remove plain circle variant example" />
|
|
38
|
-
<Button
|
|
38
|
+
<Button
|
|
39
|
+
variant="stateful"
|
|
40
|
+
isCircle
|
|
41
|
+
icon={<RhUiNotificationFillIcon />}
|
|
42
|
+
aria-label="Stateful unread circle variant example"
|
|
43
|
+
/>
|
|
39
44
|
<Button
|
|
40
45
|
variant="stateful"
|
|
41
46
|
state="read"
|
|
42
47
|
isCircle
|
|
43
|
-
icon={<
|
|
48
|
+
icon={<RhUiNotificationFillIcon />}
|
|
44
49
|
aria-label="Stateful read circle variant example"
|
|
45
50
|
/>
|
|
46
51
|
<Button
|
|
47
52
|
variant="stateful"
|
|
48
53
|
state="attention"
|
|
49
54
|
isCircle
|
|
50
|
-
icon={<
|
|
55
|
+
icon={<RhUiNotificationFillIcon />}
|
|
51
56
|
aria-label="Stateful attention circle variant example"
|
|
52
57
|
/>
|
|
53
58
|
<Button
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Button, Flex } from '@patternfly/react-core';
|
|
2
|
-
import
|
|
2
|
+
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
3
3
|
|
|
4
4
|
export const ButtonStateful: React.FunctionComponent = () => (
|
|
5
5
|
<Flex>
|
|
@@ -7,7 +7,7 @@ export const ButtonStateful: React.FunctionComponent = () => (
|
|
|
7
7
|
<div>
|
|
8
8
|
<strong>Read</strong>
|
|
9
9
|
</div>
|
|
10
|
-
<Button variant="stateful" state="read" icon={<
|
|
10
|
+
<Button variant="stateful" state="read" icon={<RhUiNotificationFillIcon />}>
|
|
11
11
|
10 <span className="pf-v6-screen-reader">items</span>
|
|
12
12
|
</Button>
|
|
13
13
|
</div>
|
|
@@ -15,7 +15,7 @@ export const ButtonStateful: React.FunctionComponent = () => (
|
|
|
15
15
|
<div>
|
|
16
16
|
<strong>Unread</strong>
|
|
17
17
|
</div>
|
|
18
|
-
<Button variant="stateful" state="unread" icon={<
|
|
18
|
+
<Button variant="stateful" state="unread" icon={<RhUiNotificationFillIcon />}>
|
|
19
19
|
10 <span className="pf-v6-screen-reader">unread items</span>
|
|
20
20
|
</Button>
|
|
21
21
|
</div>
|
|
@@ -23,7 +23,7 @@ export const ButtonStateful: React.FunctionComponent = () => (
|
|
|
23
23
|
<div>
|
|
24
24
|
<strong>Attention</strong>
|
|
25
25
|
</div>
|
|
26
|
-
<Button variant="stateful" state="attention" icon={<
|
|
26
|
+
<Button variant="stateful" state="attention" icon={<RhUiNotificationFillIcon />}>
|
|
27
27
|
10 <span className="pf-v6-screen-reader">unread items, needs attention</span>
|
|
28
28
|
</Button>
|
|
29
29
|
</div>
|
|
@@ -3,7 +3,7 @@ import RhMicronsCloseIcon from '@patternfly/react-icons/dist/esm/icons/rh-micron
|
|
|
3
3
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
4
4
|
import ExternalLinkSquareAltIcon from '@patternfly/react-icons/dist/esm/icons/external-link-square-alt-icon';
|
|
5
5
|
import CopyIcon from '@patternfly/react-icons/dist/esm/icons/copy-icon';
|
|
6
|
-
import
|
|
6
|
+
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
7
7
|
|
|
8
8
|
export const ButtonVariations: React.FunctionComponent = () => (
|
|
9
9
|
<>
|
|
@@ -50,13 +50,13 @@ export const ButtonVariations: React.FunctionComponent = () => (
|
|
|
50
50
|
</Flex>
|
|
51
51
|
<br />
|
|
52
52
|
<Flex columnGap={{ default: 'columnGapSm' }}>
|
|
53
|
-
<Button variant="stateful" icon={<
|
|
53
|
+
<Button variant="stateful" icon={<RhUiNotificationFillIcon />} state="read">
|
|
54
54
|
Stateful read
|
|
55
55
|
</Button>
|
|
56
|
-
<Button variant="stateful" icon={<
|
|
56
|
+
<Button variant="stateful" icon={<RhUiNotificationFillIcon />} state="unread">
|
|
57
57
|
Stateful unread
|
|
58
58
|
</Button>
|
|
59
|
-
<Button variant="stateful" icon={<
|
|
59
|
+
<Button variant="stateful" icon={<RhUiNotificationFillIcon />} state="attention">
|
|
60
60
|
Stateful attention
|
|
61
61
|
</Button>
|
|
62
62
|
</Flex>
|
|
@@ -8,7 +8,6 @@ propComponents: ['EmptyState', 'EmptyStateBody', 'EmptyStateFooter', 'EmptyState
|
|
|
8
8
|
import { useState } from 'react';
|
|
9
9
|
import CubesIcon from '@patternfly/react-icons/dist/esm/icons/cubes-icon';
|
|
10
10
|
import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
|
|
11
|
-
import CheckCircleIcon from '@patternfly/react-icons/dist/esm/icons/check-circle-icon';
|
|
12
11
|
|
|
13
12
|
## Examples
|
|
14
13
|
### Basic
|
|
@@ -3,7 +3,7 @@ import userEvent from '@testing-library/user-event';
|
|
|
3
3
|
|
|
4
4
|
import { ExpandableSection, ExpandableSectionVariant } from '../ExpandableSection';
|
|
5
5
|
import styles from '@patternfly/react-styles/css/components/ExpandableSection/expandable-section';
|
|
6
|
-
import
|
|
6
|
+
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
7
7
|
|
|
8
8
|
const props = { contentId: 'content-id', toggleId: 'toggle-id' };
|
|
9
9
|
|
|
@@ -274,7 +274,11 @@ test('Renders with div wrapper when toggleWrapper="div"', () => {
|
|
|
274
274
|
});
|
|
275
275
|
|
|
276
276
|
test('Can render custom toggle icon', () => {
|
|
277
|
-
render(
|
|
277
|
+
render(
|
|
278
|
+
<ExpandableSection toggleIcon={<RhUiNotificationFillIcon data-testid="bell-icon" />}>
|
|
279
|
+
Test content
|
|
280
|
+
</ExpandableSection>
|
|
281
|
+
);
|
|
278
282
|
|
|
279
283
|
expect(screen.getByTestId('bell-icon')).toBeInTheDocument();
|
|
280
284
|
});
|
|
@@ -288,7 +292,7 @@ test('Does not render toggle icon when hasToggleIcon is false', () => {
|
|
|
288
292
|
|
|
289
293
|
test('Does not render custom toggle icon when hasToggleIcon is false', () => {
|
|
290
294
|
render(
|
|
291
|
-
<ExpandableSection toggleIcon={<
|
|
295
|
+
<ExpandableSection toggleIcon={<RhUiNotificationFillIcon data-testid="bell-icon" />} hasToggleIcon={false}>
|
|
292
296
|
Test content
|
|
293
297
|
</ExpandableSection>
|
|
294
298
|
);
|
|
@@ -6,7 +6,7 @@ propComponents: ['ExpandableSection', 'ExpandableSectionToggle']
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
import { useState } from 'react';
|
|
9
|
-
import
|
|
9
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
10
10
|
|
|
11
11
|
## Examples
|
|
12
12
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import { ExpandableSection, Badge, Stack, StackItem } from '@patternfly/react-core';
|
|
3
|
-
import
|
|
3
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
4
4
|
|
|
5
5
|
export const ExpandableSectionCustomToggle: React.FunctionComponent = () => {
|
|
6
6
|
const [isExpanded, setIsExpanded] = useState(false);
|
|
@@ -18,7 +18,7 @@ export const ExpandableSectionCustomToggle: React.FunctionComponent = () => {
|
|
|
18
18
|
toggleContent={
|
|
19
19
|
<div>
|
|
20
20
|
<span>You can also use icons </span>
|
|
21
|
-
<
|
|
21
|
+
<RhUiCheckCircleFillIcon />
|
|
22
22
|
<span> or badges </span>
|
|
23
23
|
<Badge isRead={true}>4</Badge>
|
|
24
24
|
<span> !</span>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState, MouseEvent } from 'react';
|
|
2
2
|
import { ExpandableSection, ExpandableSectionToggle, Stack, StackItem } from '@patternfly/react-core';
|
|
3
|
-
import
|
|
3
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
4
4
|
|
|
5
5
|
export const ExpandableSectionWithHeading = () => {
|
|
6
6
|
const [isExpanded1, setIsExpanded1] = useState(false);
|
|
@@ -75,7 +75,7 @@ export const ExpandableSectionWithHeading = () => {
|
|
|
75
75
|
toggleWrapper="h5"
|
|
76
76
|
toggleContent={
|
|
77
77
|
<span>
|
|
78
|
-
<
|
|
78
|
+
<RhUiCheckCircleFillIcon /> Custom Heading Content with Icon
|
|
79
79
|
</span>
|
|
80
80
|
}
|
|
81
81
|
onToggle={onToggle2}
|
|
@@ -8,7 +8,6 @@ subsection: file-upload
|
|
|
8
8
|
|
|
9
9
|
import { useState } from 'react';
|
|
10
10
|
import FileUploadIcon from '@patternfly/react-icons/dist/esm/icons/file-upload-icon';
|
|
11
|
-
import ExclamationCircleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon';
|
|
12
11
|
|
|
13
12
|
## Examples
|
|
14
13
|
|
|
@@ -23,7 +23,7 @@ propComponents:
|
|
|
23
23
|
---
|
|
24
24
|
|
|
25
25
|
import { useRef, useEffect, useState } from 'react';
|
|
26
|
-
import
|
|
26
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon';
|
|
27
27
|
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
|
|
28
28
|
import TrashIcon from '@patternfly/react-icons/dist/esm/icons/trash-icon';
|
|
29
29
|
import styles from '@patternfly/react-styles/css/components/Form/form';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import { Form, FormGroup, TextInput, HelperText, HelperTextItem, FormHelperText } from '@patternfly/react-core';
|
|
3
|
-
import
|
|
3
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon';
|
|
4
4
|
|
|
5
5
|
export const FormInvalid: React.FunctionComponent = () => {
|
|
6
6
|
type validate = 'success' | 'warning' | 'error' | 'default';
|
|
@@ -32,7 +32,7 @@ export const FormInvalid: React.FunctionComponent = () => {
|
|
|
32
32
|
{validated !== 'success' && (
|
|
33
33
|
<FormHelperText>
|
|
34
34
|
<HelperText>
|
|
35
|
-
<HelperTextItem icon={<
|
|
35
|
+
<HelperTextItem icon={<RhUiErrorFillIcon />} variant={validated}>
|
|
36
36
|
{validated === 'error' ? 'Must be a number' : 'Please enter your age'}
|
|
37
37
|
</HelperTextItem>
|
|
38
38
|
</HelperText>
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
HelperTextItem,
|
|
10
10
|
FormHelperText
|
|
11
11
|
} from '@patternfly/react-core';
|
|
12
|
-
import
|
|
12
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon';
|
|
13
13
|
|
|
14
14
|
export const FormInvalidWithAlert: React.FunctionComponent = () => {
|
|
15
15
|
type validate = 'success' | 'warning' | 'error' | 'default';
|
|
@@ -46,7 +46,7 @@ export const FormInvalidWithAlert: React.FunctionComponent = () => {
|
|
|
46
46
|
{validated !== 'success' && (
|
|
47
47
|
<FormHelperText>
|
|
48
48
|
<HelperText>
|
|
49
|
-
<HelperTextItem icon={<
|
|
49
|
+
<HelperTextItem icon={<RhUiErrorFillIcon />} variant={validated}>
|
|
50
50
|
{validated === 'error' ? 'Must be a number' : 'Please enter your age'}
|
|
51
51
|
</HelperTextItem>
|
|
52
52
|
</HelperText>
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
TextArea,
|
|
19
19
|
TextInput
|
|
20
20
|
} from '@patternfly/react-core';
|
|
21
|
-
import
|
|
21
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon';
|
|
22
22
|
|
|
23
23
|
export const FormState = () => {
|
|
24
24
|
const [isSelectOpen, setIsSelectOpen] = useState(false);
|
|
@@ -42,7 +42,7 @@ export const FormState = () => {
|
|
|
42
42
|
<HelperText>
|
|
43
43
|
<HelperTextItem
|
|
44
44
|
variant={errors['input-id'] ? 'error' : 'default'}
|
|
45
|
-
{...(errors['input-id'] && { icon: <
|
|
45
|
+
{...(errors['input-id'] && { icon: <RhUiErrorFillIcon /> })}
|
|
46
46
|
>
|
|
47
47
|
{errors['input-id']}
|
|
48
48
|
</HelperTextItem>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
2
|
import { Form, FormGroup, FormHelperText, HelperText, HelperTextItem, TextInput } from '@patternfly/react-core';
|
|
3
|
-
import
|
|
3
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon';
|
|
4
4
|
|
|
5
5
|
export const FormValidated: React.FunctionComponent = () => {
|
|
6
6
|
type validate = 'success' | 'warning' | 'error' | 'default';
|
|
@@ -47,7 +47,7 @@ export const FormValidated: React.FunctionComponent = () => {
|
|
|
47
47
|
/>
|
|
48
48
|
<FormHelperText>
|
|
49
49
|
<HelperText>
|
|
50
|
-
<HelperTextItem variant={validated} {...(validated === 'error' && { icon: <
|
|
50
|
+
<HelperTextItem variant={validated} {...(validated === 'error' && { icon: <RhUiErrorFillIcon /> })}>
|
|
51
51
|
{helperText}
|
|
52
52
|
</HelperTextItem>
|
|
53
53
|
</HelperText>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import styles from '@patternfly/react-styles/css/components/FormControl/form-control';
|
|
2
2
|
import { css } from '@patternfly/react-styles';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
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
6
|
|
|
7
7
|
export const statusIcons = {
|
|
8
|
-
success:
|
|
9
|
-
error:
|
|
10
|
-
warning:
|
|
8
|
+
success: RhUiCheckCircleFillIcon,
|
|
9
|
+
error: RhUiErrorFillIcon,
|
|
10
|
+
warning: RhUiWarningFillIcon
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export interface FormControlIconProps extends React.HTMLProps<HTMLDivElement> {
|
|
@@ -452,24 +452,12 @@ exports[`FormSelect invalid FormSelect input 1`] = `
|
|
|
452
452
|
fill="currentColor"
|
|
453
453
|
height="1em"
|
|
454
454
|
role="img"
|
|
455
|
+
viewBox="0 0 32 32"
|
|
455
456
|
width="1em"
|
|
456
457
|
>
|
|
457
|
-
<
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
>
|
|
461
|
-
<path
|
|
462
|
-
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"
|
|
463
|
-
/>
|
|
464
|
-
</svg>
|
|
465
|
-
<svg
|
|
466
|
-
class="pf-v6-icon-rh-ui"
|
|
467
|
-
viewBox="0 0 32 32"
|
|
468
|
-
>
|
|
469
|
-
<path
|
|
470
|
-
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"
|
|
471
|
-
/>
|
|
472
|
-
</svg>
|
|
458
|
+
<path
|
|
459
|
+
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"
|
|
460
|
+
/>
|
|
473
461
|
</svg>
|
|
474
462
|
</span>
|
|
475
463
|
<span
|
|
@@ -537,24 +525,12 @@ exports[`FormSelect validated success FormSelect input 1`] = `
|
|
|
537
525
|
fill="currentColor"
|
|
538
526
|
height="1em"
|
|
539
527
|
role="img"
|
|
528
|
+
viewBox="0 0 32 32"
|
|
540
529
|
width="1em"
|
|
541
530
|
>
|
|
542
|
-
<
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
>
|
|
546
|
-
<path
|
|
547
|
-
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"
|
|
548
|
-
/>
|
|
549
|
-
</svg>
|
|
550
|
-
<svg
|
|
551
|
-
class="pf-v6-icon-rh-ui"
|
|
552
|
-
viewBox="0 0 32 32"
|
|
553
|
-
>
|
|
554
|
-
<path
|
|
555
|
-
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"
|
|
556
|
-
/>
|
|
557
|
-
</svg>
|
|
531
|
+
<path
|
|
532
|
+
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"
|
|
533
|
+
/>
|
|
558
534
|
</svg>
|
|
559
535
|
</span>
|
|
560
536
|
<span
|
|
@@ -622,24 +598,12 @@ exports[`FormSelect validated warning FormSelect input 1`] = `
|
|
|
622
598
|
fill="currentColor"
|
|
623
599
|
height="1em"
|
|
624
600
|
role="img"
|
|
601
|
+
viewBox="0 0 32 32"
|
|
625
602
|
width="1em"
|
|
626
603
|
>
|
|
627
|
-
<
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
>
|
|
631
|
-
<path
|
|
632
|
-
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"
|
|
633
|
-
/>
|
|
634
|
-
</svg>
|
|
635
|
-
<svg
|
|
636
|
-
class="pf-v6-icon-rh-ui"
|
|
637
|
-
viewBox="0 0 32 32"
|
|
638
|
-
>
|
|
639
|
-
<path
|
|
640
|
-
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"
|
|
641
|
-
/>
|
|
642
|
-
</svg>
|
|
604
|
+
<path
|
|
605
|
+
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"
|
|
606
|
+
/>
|
|
643
607
|
</svg>
|
|
644
608
|
</span>
|
|
645
609
|
<span
|