@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
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import { Popover, Button } from '@patternfly/react-core';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
3
|
+
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
4
|
+
import RhUiInformationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-information-fill-icon';
|
|
5
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
6
|
+
import RhUiWarningFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-warning-fill-icon';
|
|
7
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon';
|
|
8
8
|
|
|
9
9
|
export const AlertPopover: React.FunctionComponent = () => {
|
|
10
10
|
const [alertSeverityVariant, setAlertSeverityVariant] = useState('default');
|
|
11
11
|
|
|
12
12
|
const alertIcons = {
|
|
13
|
-
custom: <
|
|
14
|
-
info: <
|
|
15
|
-
success: <
|
|
16
|
-
warning: <
|
|
17
|
-
danger: <
|
|
13
|
+
custom: <RhUiNotificationFillIcon />,
|
|
14
|
+
info: <RhUiInformationFillIcon />,
|
|
15
|
+
success: <RhUiCheckCircleFillIcon />,
|
|
16
|
+
warning: <RhUiWarningFillIcon />,
|
|
17
|
+
danger: <RhUiErrorFillIcon />
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
return (
|
|
@@ -2,9 +2,9 @@ import { Fragment, useState, useRef, useEffect } from 'react';
|
|
|
2
2
|
import progressStyle from '@patternfly/react-styles/css/components/Progress/progress';
|
|
3
3
|
import { css } from '@patternfly/react-styles';
|
|
4
4
|
import { Tooltip, TooltipPosition } from '../Tooltip';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
6
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon';
|
|
7
|
+
import RhUiWarningFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-warning-fill-icon';
|
|
8
8
|
import { AriaProps, ProgressBar } from './ProgressBar';
|
|
9
9
|
import { ProgressHelperText } from './ProgressHelperText';
|
|
10
10
|
|
|
@@ -63,9 +63,9 @@ export interface ProgressContainerProps extends Omit<React.HTMLProps<HTMLDivElem
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
const variantToIcon = {
|
|
66
|
-
danger:
|
|
67
|
-
success:
|
|
68
|
-
warning:
|
|
66
|
+
danger: RhUiErrorFillIcon,
|
|
67
|
+
success: RhUiCheckCircleFillIcon,
|
|
68
|
+
warning: RhUiWarningFillIcon
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
export const ProgressContainer: React.FunctionComponent<ProgressContainerProps> = ({
|
package/src/components/Progress/__tests__/Generated/__snapshots__/ProgressContainer.test.tsx.snap
CHANGED
|
@@ -27,24 +27,12 @@ exports[`ProgressContainer should match snapshot (auto-generated) 1`] = `
|
|
|
27
27
|
fill="currentColor"
|
|
28
28
|
height="1em"
|
|
29
29
|
role="img"
|
|
30
|
+
viewBox="0 0 32 32"
|
|
30
31
|
width="1em"
|
|
31
32
|
>
|
|
32
|
-
<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
>
|
|
36
|
-
<path
|
|
37
|
-
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"
|
|
38
|
-
/>
|
|
39
|
-
</svg>
|
|
40
|
-
<svg
|
|
41
|
-
class="pf-v6-icon-rh-ui"
|
|
42
|
-
viewBox="0 0 32 32"
|
|
43
|
-
>
|
|
44
|
-
<path
|
|
45
|
-
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"
|
|
46
|
-
/>
|
|
47
|
-
</svg>
|
|
33
|
+
<path
|
|
34
|
+
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"
|
|
35
|
+
/>
|
|
48
36
|
</svg>
|
|
49
37
|
</span>
|
|
50
38
|
</div>
|
|
@@ -294,24 +294,12 @@ exports[`Progress variant danger 1`] = `
|
|
|
294
294
|
fill="currentColor"
|
|
295
295
|
height="1em"
|
|
296
296
|
role="img"
|
|
297
|
+
viewBox="0 0 32 32"
|
|
297
298
|
width="1em"
|
|
298
299
|
>
|
|
299
|
-
<
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
>
|
|
303
|
-
<path
|
|
304
|
-
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"
|
|
305
|
-
/>
|
|
306
|
-
</svg>
|
|
307
|
-
<svg
|
|
308
|
-
class="pf-v6-icon-rh-ui"
|
|
309
|
-
viewBox="0 0 32 32"
|
|
310
|
-
>
|
|
311
|
-
<path
|
|
312
|
-
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"
|
|
313
|
-
/>
|
|
314
|
-
</svg>
|
|
300
|
+
<path
|
|
301
|
+
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"
|
|
302
|
+
/>
|
|
315
303
|
</svg>
|
|
316
304
|
</span>
|
|
317
305
|
</div>
|
|
@@ -359,24 +347,12 @@ exports[`Progress variant success 1`] = `
|
|
|
359
347
|
fill="currentColor"
|
|
360
348
|
height="1em"
|
|
361
349
|
role="img"
|
|
350
|
+
viewBox="0 0 32 32"
|
|
362
351
|
width="1em"
|
|
363
352
|
>
|
|
364
|
-
<
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
>
|
|
368
|
-
<path
|
|
369
|
-
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"
|
|
370
|
-
/>
|
|
371
|
-
</svg>
|
|
372
|
-
<svg
|
|
373
|
-
class="pf-v6-icon-rh-ui"
|
|
374
|
-
viewBox="0 0 32 32"
|
|
375
|
-
>
|
|
376
|
-
<path
|
|
377
|
-
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"
|
|
378
|
-
/>
|
|
379
|
-
</svg>
|
|
353
|
+
<path
|
|
354
|
+
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"
|
|
355
|
+
/>
|
|
380
356
|
</svg>
|
|
381
357
|
</span>
|
|
382
358
|
</div>
|
|
@@ -424,24 +400,12 @@ exports[`Progress variant warning 1`] = `
|
|
|
424
400
|
fill="currentColor"
|
|
425
401
|
height="1em"
|
|
426
402
|
role="img"
|
|
403
|
+
viewBox="0 0 32 32"
|
|
427
404
|
width="1em"
|
|
428
405
|
>
|
|
429
|
-
<
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
>
|
|
433
|
-
<path
|
|
434
|
-
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"
|
|
435
|
-
/>
|
|
436
|
-
</svg>
|
|
437
|
-
<svg
|
|
438
|
-
class="pf-v6-icon-rh-ui"
|
|
439
|
-
viewBox="0 0 32 32"
|
|
440
|
-
>
|
|
441
|
-
<path
|
|
442
|
-
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"
|
|
443
|
-
/>
|
|
444
|
-
</svg>
|
|
406
|
+
<path
|
|
407
|
+
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"
|
|
408
|
+
/>
|
|
445
409
|
</svg>
|
|
446
410
|
</span>
|
|
447
411
|
</div>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useRef } from 'react';
|
|
2
2
|
import styles from '@patternfly/react-styles/css/components/ProgressStepper/progress-stepper';
|
|
3
3
|
import { css } from '@patternfly/react-styles';
|
|
4
|
-
import
|
|
4
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
5
5
|
import ResourcesFullIcon from '@patternfly/react-icons/dist/esm/icons/resources-full-icon';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import RhUiWarningFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-warning-fill-icon';
|
|
7
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon';
|
|
8
8
|
|
|
9
9
|
export enum ProgressStepVariant {
|
|
10
10
|
default = 'default',
|
|
@@ -43,10 +43,10 @@ export interface ProgressStepProps extends React.DetailedHTMLProps<
|
|
|
43
43
|
const variantIcons = {
|
|
44
44
|
default: undefined as any,
|
|
45
45
|
pending: undefined as any,
|
|
46
|
-
success: <
|
|
46
|
+
success: <RhUiCheckCircleFillIcon />,
|
|
47
47
|
info: <ResourcesFullIcon />,
|
|
48
|
-
warning: <
|
|
49
|
-
danger: <
|
|
48
|
+
warning: <RhUiWarningFillIcon />,
|
|
49
|
+
danger: <RhUiErrorFillIcon />
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
const variantStyle = {
|
|
@@ -3,10 +3,10 @@ import { ProgressStep, ProgressStepVariant } from '../ProgressStep';
|
|
|
3
3
|
import { capitalize } from '../../../helpers';
|
|
4
4
|
import styles from '@patternfly/react-styles/css/components/ProgressStepper/progress-stepper';
|
|
5
5
|
|
|
6
|
-
jest.mock('@patternfly/react-icons/dist/esm/icons/check-circle-icon', () => () => 'Success icon mock');
|
|
6
|
+
jest.mock('@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon', () => () => 'Success icon mock');
|
|
7
7
|
jest.mock('@patternfly/react-icons/dist/esm/icons/resources-full-icon', () => () => 'Info icon mock');
|
|
8
|
-
jest.mock('@patternfly/react-icons/dist/esm/icons/
|
|
9
|
-
jest.mock('@patternfly/react-icons/dist/esm/icons/
|
|
8
|
+
jest.mock('@patternfly/react-icons/dist/esm/icons/rh-ui-warning-fill-icon', () => () => 'Warning icon mock');
|
|
9
|
+
jest.mock('@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon', () => () => 'Danger icon mock');
|
|
10
10
|
|
|
11
11
|
test('Renders without children', () => {
|
|
12
12
|
render(
|
|
@@ -10,7 +10,7 @@ ouia: true
|
|
|
10
10
|
|
|
11
11
|
import { Fragment, useEffect, useRef, useState } from 'react';
|
|
12
12
|
import RhMicronsCloseIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-close-icon';
|
|
13
|
-
import
|
|
13
|
+
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
14
14
|
|
|
15
15
|
## Examples
|
|
16
16
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import { Select, SelectOption, SelectList, MenuToggle, MenuToggleElement } from '@patternfly/react-core';
|
|
3
|
-
import
|
|
3
|
+
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
4
4
|
|
|
5
5
|
export const SelectOptionVariations: React.FunctionComponent = () => {
|
|
6
6
|
const [isOpen, setIsOpen] = useState(false);
|
|
@@ -57,7 +57,7 @@ export const SelectOptionVariations: React.FunctionComponent = () => {
|
|
|
57
57
|
>
|
|
58
58
|
Option with link
|
|
59
59
|
</SelectOption>
|
|
60
|
-
<SelectOption value="Option with icon" icon={<
|
|
60
|
+
<SelectOption value="Option with icon" icon={<RhUiNotificationFillIcon />}>
|
|
61
61
|
Option with icon
|
|
62
62
|
</SelectOption>
|
|
63
63
|
<SelectOption value="Disabled option" isDisabled>
|
|
@@ -64,24 +64,12 @@ exports[`TextInput invalid text input 1`] = `
|
|
|
64
64
|
fill="currentColor"
|
|
65
65
|
height="1em"
|
|
66
66
|
role="img"
|
|
67
|
+
viewBox="0 0 32 32"
|
|
67
68
|
width="1em"
|
|
68
69
|
>
|
|
69
|
-
<
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
>
|
|
73
|
-
<path
|
|
74
|
-
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"
|
|
75
|
-
/>
|
|
76
|
-
</svg>
|
|
77
|
-
<svg
|
|
78
|
-
class="pf-v6-icon-rh-ui"
|
|
79
|
-
viewBox="0 0 32 32"
|
|
80
|
-
>
|
|
81
|
-
<path
|
|
82
|
-
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"
|
|
83
|
-
/>
|
|
84
|
-
</svg>
|
|
70
|
+
<path
|
|
71
|
+
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"
|
|
72
|
+
/>
|
|
85
73
|
</svg>
|
|
86
74
|
</span>
|
|
87
75
|
</span>
|
|
@@ -171,24 +159,12 @@ exports[`TextInput validated text input error 1`] = `
|
|
|
171
159
|
fill="currentColor"
|
|
172
160
|
height="1em"
|
|
173
161
|
role="img"
|
|
162
|
+
viewBox="0 0 32 32"
|
|
174
163
|
width="1em"
|
|
175
164
|
>
|
|
176
|
-
<
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
>
|
|
180
|
-
<path
|
|
181
|
-
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"
|
|
182
|
-
/>
|
|
183
|
-
</svg>
|
|
184
|
-
<svg
|
|
185
|
-
class="pf-v6-icon-rh-ui"
|
|
186
|
-
viewBox="0 0 32 32"
|
|
187
|
-
>
|
|
188
|
-
<path
|
|
189
|
-
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"
|
|
190
|
-
/>
|
|
191
|
-
</svg>
|
|
165
|
+
<path
|
|
166
|
+
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"
|
|
167
|
+
/>
|
|
192
168
|
</svg>
|
|
193
169
|
</span>
|
|
194
170
|
</span>
|
|
@@ -59,6 +59,10 @@ export interface WizardProps extends React.HTMLProps<HTMLDivElement> {
|
|
|
59
59
|
* are called.
|
|
60
60
|
*/
|
|
61
61
|
shouldFocusContent?: boolean;
|
|
62
|
+
/** Adds plain styling to the wizard. */
|
|
63
|
+
isPlain?: boolean;
|
|
64
|
+
/** @beta Prevents the wizard from automatically applying plain styling when glass theme is enabled. */
|
|
65
|
+
isNoPlainOnGlass?: boolean;
|
|
62
66
|
}
|
|
63
67
|
|
|
64
68
|
export const Wizard = ({
|
|
@@ -77,6 +81,8 @@ export const Wizard = ({
|
|
|
77
81
|
onSave,
|
|
78
82
|
onClose,
|
|
79
83
|
shouldFocusContent = true,
|
|
84
|
+
isPlain = false,
|
|
85
|
+
isNoPlainOnGlass = false,
|
|
80
86
|
...wrapperProps
|
|
81
87
|
}: WizardProps) => {
|
|
82
88
|
const [activeStepIndex, setActiveStepIndex] = useState(startIndex);
|
|
@@ -181,7 +187,12 @@ export const Wizard = ({
|
|
|
181
187
|
mainWrapperRef={wrapperRef}
|
|
182
188
|
>
|
|
183
189
|
<div
|
|
184
|
-
className={css(
|
|
190
|
+
className={css(
|
|
191
|
+
styles.wizard,
|
|
192
|
+
isPlain && styles.modifiers.plain,
|
|
193
|
+
isNoPlainOnGlass && styles.modifiers.noPlainOnGlass,
|
|
194
|
+
className
|
|
195
|
+
)}
|
|
185
196
|
style={{
|
|
186
197
|
...(height ? { [wizardHeightToken.name]: typeof height === 'number' ? `${height}px` : height } : {}),
|
|
187
198
|
...(width ? { width } : {})
|
|
@@ -2,9 +2,9 @@ import { useEffect, useState } from 'react';
|
|
|
2
2
|
import { css } from '@patternfly/react-styles';
|
|
3
3
|
import styles from '@patternfly/react-styles/css/components/Wizard/wizard';
|
|
4
4
|
import RhMicronsCaretDownIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-caret-down-icon';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon';
|
|
6
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
7
|
+
import RhUiWarningFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-warning-fill-icon';
|
|
8
8
|
|
|
9
9
|
import { OUIAProps, useOUIAProps } from '../../helpers';
|
|
10
10
|
import { WizardNavItemStatus } from './types';
|
|
@@ -109,9 +109,9 @@ export const WizardNavItem = ({
|
|
|
109
109
|
<>
|
|
110
110
|
<span className="pf-v6-screen-reader">, {status}</span>
|
|
111
111
|
<span className={css(styles.wizardNavLinkStatusIcon)}>
|
|
112
|
-
{status === WizardNavItemStatus.Error && <
|
|
113
|
-
{status === WizardNavItemStatus.Success && <
|
|
114
|
-
{status === WizardNavItemStatus.Warning && <
|
|
112
|
+
{status === WizardNavItemStatus.Error && <RhUiErrorFillIcon />}
|
|
113
|
+
{status === WizardNavItemStatus.Success && <RhUiCheckCircleFillIcon />}
|
|
114
|
+
{status === WizardNavItemStatus.Warning && <RhUiWarningFillIcon />}
|
|
115
115
|
</span>
|
|
116
116
|
</>
|
|
117
117
|
)}
|
|
@@ -3,8 +3,8 @@ import { css } from '@patternfly/react-styles';
|
|
|
3
3
|
import styles from '@patternfly/react-styles/css/components/Wizard/wizard';
|
|
4
4
|
import RhMicronsCaretRightIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-caret-right-icon';
|
|
5
5
|
import CaretDownIcon from '@patternfly/react-icons/dist/esm/icons/caret-down-icon';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon';
|
|
7
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
8
8
|
|
|
9
9
|
import { KeyTypes } from '../../helpers/constants';
|
|
10
10
|
import { WizardStepType, isWizardSubStep } from './types';
|
|
@@ -100,12 +100,12 @@ export const WizardToggle = ({
|
|
|
100
100
|
>
|
|
101
101
|
{isActiveStepStatus === 'error' && (
|
|
102
102
|
<span className={css(styles.wizardToggleStatusIcon)}>
|
|
103
|
-
<
|
|
103
|
+
<RhUiErrorFillIcon />
|
|
104
104
|
</span>
|
|
105
105
|
)}
|
|
106
106
|
{isActiveStepStatus === 'success' && (
|
|
107
107
|
<span className={css(styles.wizardToggleStatusIcon)}>
|
|
108
|
-
<
|
|
108
|
+
<RhUiCheckCircleFillIcon />
|
|
109
109
|
</span>
|
|
110
110
|
)}
|
|
111
111
|
{isActiveStepStatus !== 'success' && isActiveStepStatus !== 'error' && (
|
|
@@ -2,6 +2,7 @@ import { render, screen } from '@testing-library/react';
|
|
|
2
2
|
import userEvent from '@testing-library/user-event';
|
|
3
3
|
|
|
4
4
|
import { Wizard, WizardFooterProps, WizardStep, WizardNavProps, WizardStepChangeScope } from '../';
|
|
5
|
+
import styles from '@patternfly/react-styles/css/components/Wizard/wizard';
|
|
5
6
|
|
|
6
7
|
test('renders step when child is of type WizardStep', () => {
|
|
7
8
|
render(
|
|
@@ -666,3 +667,23 @@ test('clicking parent step navigates to first visible sub-step when first sub-st
|
|
|
666
667
|
WizardStepChangeScope.Nav
|
|
667
668
|
);
|
|
668
669
|
});
|
|
670
|
+
|
|
671
|
+
test(`Renders with ${styles.modifiers.plain} class when isPlain is true`, () => {
|
|
672
|
+
render(
|
|
673
|
+
<Wizard isPlain data-testid="wizard-plain">
|
|
674
|
+
<WizardStep id="test-step" name="Test step" />
|
|
675
|
+
</Wizard>
|
|
676
|
+
);
|
|
677
|
+
|
|
678
|
+
expect(screen.getByTestId('wizard-plain')).toHaveClass(styles.modifiers.plain);
|
|
679
|
+
});
|
|
680
|
+
|
|
681
|
+
test(`Renders with ${styles.modifiers.noPlainOnGlass} class when isNoPlainOnGlass is true`, () => {
|
|
682
|
+
render(
|
|
683
|
+
<Wizard isNoPlainOnGlass data-testid="wizard-no-plain">
|
|
684
|
+
<WizardStep id="test-step" name="Test step" />
|
|
685
|
+
</Wizard>
|
|
686
|
+
);
|
|
687
|
+
|
|
688
|
+
expect(screen.getByTestId('wizard-no-plain')).toHaveClass(styles.modifiers.noPlainOnGlass);
|
|
689
|
+
});
|
|
@@ -63,6 +63,12 @@ import layout from '@patternfly/react-styles/css/layouts/Bullseye/bullseye';
|
|
|
63
63
|
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
+
### Plain
|
|
67
|
+
|
|
68
|
+
```ts file="./WizardPlain.tsx"
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
|
|
66
72
|
### Focus content on next/back
|
|
67
73
|
|
|
68
74
|
To focus the main content element of the `Wizard`, pass in the `shouldFocusContent` property. It is recommended that this is passed in so that users can navigate through a `WizardStep` content in order.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Wizard, WizardStep } from '@patternfly/react-core';
|
|
2
|
+
|
|
3
|
+
export const WizardPlain: React.FunctionComponent = () => (
|
|
4
|
+
<Wizard height={400} title="Plain wizard" isPlain>
|
|
5
|
+
<WizardStep name="Step 1" id="plain-first-step">
|
|
6
|
+
<p>Step 1 content</p>
|
|
7
|
+
</WizardStep>
|
|
8
|
+
<WizardStep name="Step 2" id="plain-second-step">
|
|
9
|
+
<p>Step 2 content</p>
|
|
10
|
+
</WizardStep>
|
|
11
|
+
<WizardStep name="Review" id="plain-review-step" footer={{ nextButtonText: 'Finish' }}>
|
|
12
|
+
<p>Review step content</p>
|
|
13
|
+
</WizardStep>
|
|
14
|
+
</Wizard>
|
|
15
|
+
);
|
|
@@ -4,7 +4,7 @@ section: components
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
import { useState } from 'react';
|
|
7
|
-
import
|
|
7
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
8
8
|
|
|
9
9
|
## Demos
|
|
10
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import { Form, FormGroup, ActionGroup, TextInput, Button } 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 ButtonProgress: React.FunctionComponent = () => {
|
|
6
6
|
const [loginState, setLoginState] = useState<'notLoggedIn' | 'loading' | 'loggedIn'>('notLoggedIn');
|
|
@@ -41,7 +41,7 @@ export const ButtonProgress: React.FunctionComponent = () => {
|
|
|
41
41
|
: null
|
|
42
42
|
}
|
|
43
43
|
isLoading={loginState === 'loading'}
|
|
44
|
-
icon={loginState === 'loggedIn' ? <
|
|
44
|
+
icon={loginState === 'loggedIn' ? <RhUiCheckCircleFillIcon /> : null}
|
|
45
45
|
spinnerAriaValueText="Loading..."
|
|
46
46
|
>
|
|
47
47
|
{loginState === 'notLoggedIn' && 'Link account and log in'}
|
package/src/demos/CardDemos.md
CHANGED
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
id: Card
|
|
3
3
|
section: components
|
|
4
4
|
---
|
|
5
|
+
|
|
5
6
|
import { Fragment, useState } from 'react';
|
|
6
7
|
import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
|
|
7
|
-
import
|
|
8
|
+
import RhUiInformationFillIcon from '@patternfly/react-icons/dist/js/icons/rh-ui-information-fill-icon';
|
|
8
9
|
import ArrowRightIcon from '@patternfly/react-icons/dist/js/icons/arrow-right-icon';
|
|
9
10
|
import ExternalLinkAltIcon from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
|
|
10
|
-
import {
|
|
11
|
+
import { RhUiCheckCircleFillIcon, RhUiErrorFillIcon, RhUiWarningFillIcon, RhUiNotificationFillIcon } from '@patternfly/react-icons';
|
|
11
12
|
import { Table, Thead, Tbody, Tr, Th, Td, ExpandableRowContent } from '@patternfly/react-table';
|
|
12
13
|
import { Chart, ChartAxis, ChartGroup, ChartVoronoiContainer, ChartStack, ChartBar, ChartTooltip, ChartDonutThreshold, ChartDonutUtilization, ChartArea, ChartContainer, ChartLabel } from '@patternfly/react-charts/victory';
|
|
13
14
|
import chart_color_yellow_100 from '@patternfly/react-tokens/dist/esm/chart_color_yellow_100';
|
|
@@ -15,7 +15,7 @@ import LayerGroupIcon from '@patternfly/react-icons/dist/esm/icons/layer-group-i
|
|
|
15
15
|
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
16
16
|
import BarsIcon from '@patternfly/react-icons/dist/esm/icons/bars-icon';
|
|
17
17
|
import ClipboardIcon from '@patternfly/react-icons/dist/esm/icons/clipboard-icon';
|
|
18
|
-
import
|
|
18
|
+
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
19
19
|
import ThIcon from '@patternfly/react-icons/dist/esm/icons/th-icon';
|
|
20
20
|
import brandImg from '../assets/PF-IconLogo.svg';
|
|
21
21
|
import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
|
|
@@ -3,7 +3,7 @@ import { MenuToggle, MenuItemAction, Select, SelectGroup, SelectList, SelectOpti
|
|
|
3
3
|
import BarsIcon from '@patternfly/react-icons/dist/esm/icons/bars-icon';
|
|
4
4
|
import ClipboardIcon from '@patternfly/react-icons/dist/esm/icons/clipboard-icon';
|
|
5
5
|
import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-icon';
|
|
6
|
-
import
|
|
6
|
+
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
7
7
|
|
|
8
8
|
export const ActionsMenuDemo: React.FunctionComponent = () => {
|
|
9
9
|
const [isOpen, setIsOpen] = useState<boolean>(false);
|
|
@@ -61,7 +61,7 @@ export const ActionsMenuDemo: React.FunctionComponent = () => {
|
|
|
61
61
|
<SelectOption
|
|
62
62
|
isDisabled
|
|
63
63
|
isSelected={selectedItems.includes(1)}
|
|
64
|
-
actions={<MenuItemAction icon={<
|
|
64
|
+
actions={<MenuItemAction icon={<RhUiNotificationFillIcon />} actionId="alert" aria-label="Alert" />}
|
|
65
65
|
description="This is a description"
|
|
66
66
|
value={1}
|
|
67
67
|
>
|
|
@@ -27,9 +27,9 @@ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/Dashboard
|
|
|
27
27
|
import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-icon';
|
|
28
28
|
import CodeIcon from '@patternfly/react-icons/dist/esm/icons/code-icon';
|
|
29
29
|
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
30
|
+
import RhUiWarningFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-warning-fill-icon';
|
|
31
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
32
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon';
|
|
33
33
|
|
|
34
34
|
export const DataListBasic: React.FunctionComponent = () => {
|
|
35
35
|
const renderPagination = () => <Pagination itemCount={5} page={1} variant="top" isCompact />;
|
|
@@ -169,20 +169,20 @@ export const DataListBasic: React.FunctionComponent = () => {
|
|
|
169
169
|
</FlexItem>
|
|
170
170
|
<FlexItem>
|
|
171
171
|
<Icon status="success">
|
|
172
|
-
<
|
|
172
|
+
<RhUiCheckCircleFillIcon />
|
|
173
173
|
</Icon>
|
|
174
174
|
11
|
|
175
175
|
<span className="pf-v6-screen-reader">Completed</span>
|
|
176
176
|
</FlexItem>
|
|
177
177
|
<FlexItem>
|
|
178
178
|
<Icon status="warning">
|
|
179
|
-
<
|
|
179
|
+
<RhUiWarningFillIcon />
|
|
180
180
|
</Icon>
|
|
181
181
|
4 <span className="pf-v6-screen-reader">Warnings</span>
|
|
182
182
|
</FlexItem>
|
|
183
183
|
<FlexItem>
|
|
184
184
|
<Icon status="danger">
|
|
185
|
-
<
|
|
185
|
+
<RhUiErrorFillIcon />
|
|
186
186
|
</Icon>
|
|
187
187
|
1 <span className="pf-v6-screen-reader">Error</span>
|
|
188
188
|
</FlexItem>
|
|
@@ -319,19 +319,19 @@ export const DataListBasic: React.FunctionComponent = () => {
|
|
|
319
319
|
</FlexItem>
|
|
320
320
|
<FlexItem>
|
|
321
321
|
<Icon status="success">
|
|
322
|
-
<
|
|
322
|
+
<RhUiCheckCircleFillIcon />
|
|
323
323
|
</Icon>
|
|
324
324
|
11 <span className="pf-v6-screen-reader">Completed</span>
|
|
325
325
|
</FlexItem>
|
|
326
326
|
<FlexItem>
|
|
327
327
|
<Icon status="warning">
|
|
328
|
-
<
|
|
328
|
+
<RhUiWarningFillIcon />
|
|
329
329
|
</Icon>
|
|
330
330
|
4 <span className="pf-v6-screen-reader">Warnings</span>
|
|
331
331
|
</FlexItem>
|
|
332
332
|
<FlexItem>
|
|
333
333
|
<Icon status="danger">
|
|
334
|
-
<
|
|
334
|
+
<RhUiErrorFillIcon />
|
|
335
335
|
</Icon>
|
|
336
336
|
1 <span className="pf-v6-screen-reader">Error</span>
|
|
337
337
|
</FlexItem>
|
|
@@ -13,9 +13,9 @@ import { css } from '@patternfly/react-styles';
|
|
|
13
13
|
|
|
14
14
|
import CodeIcon from '@patternfly/react-icons/dist/esm/icons/code-icon';
|
|
15
15
|
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
16
|
+
import RhUiWarningFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-warning-fill-icon';
|
|
17
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
18
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon';
|
|
19
19
|
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
20
20
|
import { rows } from '@patternfly/react-core/dist/esm/demos/sampleData';
|
|
21
21
|
|