@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
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import styles from '@patternfly/react-styles/css/components/HelperText/helper-text';
|
|
2
2
|
import { css } from '@patternfly/react-styles';
|
|
3
3
|
import MinusIcon from '@patternfly/react-icons/dist/esm/icons/minus-icon';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import RhUiWarningFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-warning-fill-icon';
|
|
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
7
|
|
|
8
8
|
export enum HelperTextItemVariant {
|
|
9
9
|
default = 'default',
|
|
@@ -38,9 +38,9 @@ export interface HelperTextItemProps extends React.HTMLProps<HTMLDivElement | HT
|
|
|
38
38
|
|
|
39
39
|
const defaultVariantIcons = {
|
|
40
40
|
indeterminate: <MinusIcon />,
|
|
41
|
-
warning: <
|
|
42
|
-
success: <
|
|
43
|
-
error: <
|
|
41
|
+
warning: <RhUiWarningFillIcon />,
|
|
42
|
+
success: <RhUiCheckCircleFillIcon />,
|
|
43
|
+
error: <RhUiErrorFillIcon />
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
export const HelperTextItem: React.FunctionComponent<HelperTextItemProps> = ({
|
|
@@ -11,11 +11,11 @@ import RhMicronsCaretRightIcon from '@patternfly/react-icons/dist/esm/icons/rh-m
|
|
|
11
11
|
import RhMicronsCaretDownIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-caret-down-icon';
|
|
12
12
|
import CogIcon from '@patternfly/react-icons/dist/esm/icons/cog-icon';
|
|
13
13
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
14
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon';
|
|
15
|
+
import RhUiWarningFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-warning-fill-icon';
|
|
16
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
17
|
+
import RhUiInformationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-information-fill-icon';
|
|
18
|
+
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
19
19
|
|
|
20
20
|
## Examples
|
|
21
21
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Fragment, useState } from 'react';
|
|
2
2
|
import { Icon, Spinner, Checkbox } 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 IconProgress: React.FunctionComponent = () => {
|
|
6
6
|
const [isInProgress, setIsInProgress] = useState<boolean>(false);
|
|
@@ -17,7 +17,7 @@ export const IconProgress: React.FunctionComponent = () => {
|
|
|
17
17
|
/>
|
|
18
18
|
</div>
|
|
19
19
|
<Icon isInProgress={isInProgress} progressIcon={<Spinner diameter="2em" aria-label="Loading..." />}>
|
|
20
|
-
<
|
|
20
|
+
<RhUiCheckCircleFillIcon />
|
|
21
21
|
</Icon>
|
|
22
22
|
</Fragment>
|
|
23
23
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Fragment, useState } from 'react';
|
|
2
2
|
import { Icon, Checkbox } 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 IconProgress: React.FunctionComponent = () => {
|
|
6
6
|
const [isInProgress, setIsInProgress] = useState<boolean>(false);
|
|
@@ -17,7 +17,7 @@ export const IconProgress: React.FunctionComponent = () => {
|
|
|
17
17
|
/>
|
|
18
18
|
</div>
|
|
19
19
|
<Icon isInProgress={isInProgress}>
|
|
20
|
-
<
|
|
20
|
+
<RhUiCheckCircleFillIcon />
|
|
21
21
|
</Icon>
|
|
22
22
|
</Fragment>
|
|
23
23
|
);
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { Fragment } from 'react';
|
|
2
2
|
import { Icon } from '@patternfly/react-core';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
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 RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-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 IconStatus: React.FunctionComponent = () => (
|
|
10
10
|
<Fragment>
|
|
11
11
|
<Icon status="danger">
|
|
12
|
-
<
|
|
12
|
+
<RhUiErrorFillIcon />
|
|
13
13
|
</Icon>{' '}
|
|
14
14
|
<Icon status="warning">
|
|
15
|
-
<
|
|
15
|
+
<RhUiWarningFillIcon />
|
|
16
16
|
</Icon>{' '}
|
|
17
17
|
<Icon status="success">
|
|
18
|
-
<
|
|
18
|
+
<RhUiCheckCircleFillIcon />
|
|
19
19
|
</Icon>{' '}
|
|
20
20
|
<Icon status="info">
|
|
21
|
-
<
|
|
21
|
+
<RhUiInformationFillIcon />
|
|
22
22
|
</Icon>{' '}
|
|
23
23
|
<Icon status="custom">
|
|
24
|
-
<
|
|
24
|
+
<RhUiNotificationFillIcon />
|
|
25
25
|
</Icon>
|
|
26
26
|
</Fragment>
|
|
27
27
|
);
|
|
@@ -7,11 +7,11 @@ import { css } from '@patternfly/react-styles';
|
|
|
7
7
|
import { useIsomorphicLayoutEffect } from '../../helpers';
|
|
8
8
|
import cssTextMaxWidth from '@patternfly/react-tokens/dist/esm/c_label__text_MaxWidth';
|
|
9
9
|
import RhMicronsCloseIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-close-icon';
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
10
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
11
|
+
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
12
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon';
|
|
13
|
+
import RhUiWarningFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-warning-fill-icon';
|
|
14
|
+
import RhUiInformationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-information-fill-icon';
|
|
15
15
|
|
|
16
16
|
export interface LabelProps extends React.HTMLProps<HTMLSpanElement> {
|
|
17
17
|
/** Content rendered inside the label. */
|
|
@@ -95,11 +95,11 @@ const colorStyles = {
|
|
|
95
95
|
};
|
|
96
96
|
|
|
97
97
|
const statusIcons = {
|
|
98
|
-
success: <
|
|
99
|
-
warning: <
|
|
100
|
-
danger: <
|
|
101
|
-
info: <
|
|
102
|
-
custom: <
|
|
98
|
+
success: <RhUiCheckCircleFillIcon />,
|
|
99
|
+
warning: <RhUiWarningFillIcon />,
|
|
100
|
+
danger: <RhUiErrorFillIcon />,
|
|
101
|
+
info: <RhUiInformationFillIcon />,
|
|
102
|
+
custom: <RhUiNotificationFillIcon />
|
|
103
103
|
};
|
|
104
104
|
|
|
105
105
|
export const Label: React.FunctionComponent<LabelProps> = ({
|
|
@@ -7,7 +7,7 @@ propComponents: ['Label', 'LabelGroup']
|
|
|
7
7
|
|
|
8
8
|
import { Fragment, useEffect, useRef, useState } from 'react';
|
|
9
9
|
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
10
|
-
import
|
|
10
|
+
import RhUiInformationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-information-fill-icon';
|
|
11
11
|
import './Label.css';
|
|
12
12
|
|
|
13
13
|
## Examples
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Fragment } from 'react';
|
|
2
2
|
import { Label } from '@patternfly/react-core';
|
|
3
3
|
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
4
|
-
import
|
|
4
|
+
import RhUiInformationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-information-fill-icon';
|
|
5
5
|
|
|
6
6
|
export const LabelCompact: React.FunctionComponent = () => (
|
|
7
7
|
<Fragment>
|
|
@@ -67,7 +67,7 @@ export const LabelCompact: React.FunctionComponent = () => (
|
|
|
67
67
|
>
|
|
68
68
|
Compact label with icon that overflows
|
|
69
69
|
</Label>{' '}
|
|
70
|
-
<Label isDisabled isCompact href="#compact" onClose={() => Function.prototype} icon={<
|
|
70
|
+
<Label isDisabled isCompact href="#compact" onClose={() => Function.prototype} icon={<RhUiInformationFillIcon />}>
|
|
71
71
|
Compact link removable (disabled)
|
|
72
72
|
</Label>{' '}
|
|
73
73
|
<Label
|
|
@@ -75,7 +75,7 @@ export const LabelCompact: React.FunctionComponent = () => (
|
|
|
75
75
|
isCompact
|
|
76
76
|
onClick={() => Function.prototype}
|
|
77
77
|
onClose={() => Function.prototype}
|
|
78
|
-
icon={<
|
|
78
|
+
icon={<RhUiInformationFillIcon />}
|
|
79
79
|
>
|
|
80
80
|
Compact clickable removable (disabled)
|
|
81
81
|
</Label>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Label } from '@patternfly/react-core';
|
|
2
|
-
import
|
|
2
|
+
import RhUiInformationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-information-fill-icon';
|
|
3
3
|
|
|
4
4
|
export const LabelCustomRender: React.FunctionComponent = () => (
|
|
5
5
|
<Label
|
|
6
6
|
color="blue"
|
|
7
|
-
icon={<
|
|
7
|
+
icon={<RhUiInformationFillIcon />}
|
|
8
8
|
onClose={() => Function.prototype}
|
|
9
9
|
render={({ className, content, componentRef }) => (
|
|
10
10
|
<a className={className} ref={componentRef}>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Label, LabelGroup } from '@patternfly/react-core';
|
|
2
|
-
import
|
|
2
|
+
import RhUiInformationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-information-fill-icon';
|
|
3
3
|
|
|
4
4
|
export const LabelGroupBasic: React.FunctionComponent = () => (
|
|
5
5
|
<LabelGroup>
|
|
6
|
-
<Label icon={<
|
|
7
|
-
<Label icon={<
|
|
6
|
+
<Label icon={<RhUiInformationFillIcon />}>Label 1</Label>
|
|
7
|
+
<Label icon={<RhUiInformationFillIcon />} color="blue">
|
|
8
8
|
Label 2
|
|
9
9
|
</Label>
|
|
10
|
-
<Label icon={<
|
|
10
|
+
<Label icon={<RhUiInformationFillIcon />} color="green">
|
|
11
11
|
Label 3
|
|
12
12
|
</Label>
|
|
13
13
|
</LabelGroup>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Label, LabelGroup } from '@patternfly/react-core';
|
|
2
|
-
import
|
|
2
|
+
import RhUiInformationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-information-fill-icon';
|
|
3
3
|
|
|
4
4
|
export const LabelGroupCategory: React.FunctionComponent = () => (
|
|
5
5
|
<LabelGroup categoryName="Group label">
|
|
6
|
-
<Label icon={<
|
|
7
|
-
<Label icon={<
|
|
6
|
+
<Label icon={<RhUiInformationFillIcon />}>Label 1</Label>
|
|
7
|
+
<Label icon={<RhUiInformationFillIcon />} color="blue">
|
|
8
8
|
Label 2
|
|
9
9
|
</Label>
|
|
10
|
-
<Label icon={<
|
|
10
|
+
<Label icon={<RhUiInformationFillIcon />} color="green">
|
|
11
11
|
Label 3
|
|
12
12
|
</Label>
|
|
13
13
|
</LabelGroup>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import { Label, LabelGroup, LabelProps } from '@patternfly/react-core';
|
|
3
|
-
import
|
|
3
|
+
import RhUiInformationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-information-fill-icon';
|
|
4
4
|
|
|
5
5
|
export const LabelGroupCategoryRemovable: React.FunctionComponent = () => {
|
|
6
6
|
const [labels, setLabels] = useState([
|
|
@@ -15,7 +15,7 @@ export const LabelGroupCategoryRemovable: React.FunctionComponent = () => {
|
|
|
15
15
|
return (
|
|
16
16
|
<LabelGroup categoryName="Group label" isClosable onClick={deleteCategory}>
|
|
17
17
|
{labels.map(([labelText, labelColor]) => (
|
|
18
|
-
<Label icon={<
|
|
18
|
+
<Label icon={<RhUiInformationFillIcon />} color={labelColor as LabelProps['color']} key={labelText}>
|
|
19
19
|
{labelText}
|
|
20
20
|
</Label>
|
|
21
21
|
))}
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
Popper
|
|
16
16
|
} from '@patternfly/react-core';
|
|
17
17
|
import { Modal as ModalDeprecated, ModalVariant as ModalVariantDeprecated } from '@patternfly/react-core/deprecated';
|
|
18
|
-
import
|
|
18
|
+
import RhUiInformationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-information-fill-icon';
|
|
19
19
|
|
|
20
20
|
export const LabelGroupEditableAddModal: React.FunctionComponent = () => {
|
|
21
21
|
const [isModalOpen, setModalOpen] = useState<boolean>(false);
|
|
@@ -71,7 +71,7 @@ export const LabelGroupEditableAddModal: React.FunctionComponent = () => {
|
|
|
71
71
|
const onAdd = () => {
|
|
72
72
|
let labelIcon: any;
|
|
73
73
|
if (icon === 'Info circle icon') {
|
|
74
|
-
labelIcon = <
|
|
74
|
+
labelIcon = <RhUiInformationFillIcon />;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
setLabels([
|
|
@@ -220,7 +220,7 @@ export const LabelGroupEditableAddModal: React.FunctionComponent = () => {
|
|
|
220
220
|
<MenuList>
|
|
221
221
|
<MenuItem itemId="No icon">No icon</MenuItem>
|
|
222
222
|
<MenuItem itemId="Info circle icon">
|
|
223
|
-
<
|
|
223
|
+
<RhUiInformationFillIcon />
|
|
224
224
|
Info circle icon
|
|
225
225
|
</MenuItem>
|
|
226
226
|
</MenuList>
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { Label, LabelGroup } from '@patternfly/react-core';
|
|
2
|
-
import
|
|
2
|
+
import RhUiInformationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-information-fill-icon';
|
|
3
3
|
|
|
4
4
|
export const LabelGroupOverflow: React.FunctionComponent = () => (
|
|
5
5
|
<LabelGroup>
|
|
6
|
-
<Label icon={<
|
|
7
|
-
<Label icon={<
|
|
6
|
+
<Label icon={<RhUiInformationFillIcon />}>Label 1</Label>
|
|
7
|
+
<Label icon={<RhUiInformationFillIcon />} color="blue">
|
|
8
8
|
Label 2
|
|
9
9
|
</Label>
|
|
10
|
-
<Label icon={<
|
|
10
|
+
<Label icon={<RhUiInformationFillIcon />} color="green">
|
|
11
11
|
Label 3
|
|
12
12
|
</Label>
|
|
13
|
-
<Label icon={<
|
|
13
|
+
<Label icon={<RhUiInformationFillIcon />} color="orange">
|
|
14
14
|
Label 4
|
|
15
15
|
</Label>
|
|
16
|
-
<Label icon={<
|
|
16
|
+
<Label icon={<RhUiInformationFillIcon />} color="red">
|
|
17
17
|
Label 5
|
|
18
18
|
</Label>
|
|
19
|
-
<Label icon={<
|
|
19
|
+
<Label icon={<RhUiInformationFillIcon />} color="purple">
|
|
20
20
|
Label 6
|
|
21
21
|
</Label>
|
|
22
22
|
</LabelGroup>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import { Label, LabelGroup, LabelProps } from '@patternfly/react-core';
|
|
3
|
-
import
|
|
3
|
+
import RhUiInformationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-information-fill-icon';
|
|
4
4
|
|
|
5
5
|
export const LabelGroupVerticalCategoryOverflowRemovable: React.FunctionComponent = () => {
|
|
6
6
|
const [labels, setLabels] = useState([
|
|
@@ -15,7 +15,7 @@ export const LabelGroupVerticalCategoryOverflowRemovable: React.FunctionComponen
|
|
|
15
15
|
return (
|
|
16
16
|
<LabelGroup categoryName="Group label with a very long name" isVertical isClosable onClick={deleteCategory}>
|
|
17
17
|
{labels.map(([labelText, labelColor]) => (
|
|
18
|
-
<Label icon={<
|
|
18
|
+
<Label icon={<RhUiInformationFillIcon />} color={labelColor as LabelProps['color']} key={labelText}>
|
|
19
19
|
{labelText}
|
|
20
20
|
</Label>
|
|
21
21
|
))}
|
|
@@ -20,7 +20,7 @@ propComponents:
|
|
|
20
20
|
|
|
21
21
|
import { Fragment, useState } from 'react';
|
|
22
22
|
import brandImg from '../../assets/PF-IconLogo.svg';
|
|
23
|
-
import
|
|
23
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon';
|
|
24
24
|
import GoogleIcon from '@patternfly/react-icons/dist/esm/icons/google-icon';
|
|
25
25
|
import GithubIcon from '@patternfly/react-icons/dist/esm/icons/github-icon';
|
|
26
26
|
import DropboxIcon from '@patternfly/react-icons/dist/esm/icons/dropbox-icon';
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
ListVariant,
|
|
11
11
|
Button
|
|
12
12
|
} from '@patternfly/react-core';
|
|
13
|
-
import
|
|
13
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon';
|
|
14
14
|
import GoogleIcon from '@patternfly/react-icons/dist/esm/icons/google-icon';
|
|
15
15
|
import GithubIcon from '@patternfly/react-icons/dist/esm/icons/github-icon';
|
|
16
16
|
import DropboxIcon from '@patternfly/react-icons/dist/esm/icons/dropbox-icon';
|
|
@@ -94,7 +94,7 @@ export const SimpleLoginPage: React.FunctionComponent = () => {
|
|
|
94
94
|
<LoginForm
|
|
95
95
|
showHelperText={showHelperText}
|
|
96
96
|
helperText="Invalid login credentials."
|
|
97
|
-
helperTextIcon={<
|
|
97
|
+
helperTextIcon={<RhUiErrorFillIcon />}
|
|
98
98
|
usernameLabel="Username"
|
|
99
99
|
usernameValue={username}
|
|
100
100
|
onChangeUsername={handleUsernameChange}
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
SelectOption,
|
|
16
16
|
Button
|
|
17
17
|
} from '@patternfly/react-core';
|
|
18
|
-
import
|
|
18
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon';
|
|
19
19
|
import GoogleIcon from '@patternfly/react-icons/dist/esm/icons/google-icon';
|
|
20
20
|
import GithubIcon from '@patternfly/react-icons/dist/esm/icons/github-icon';
|
|
21
21
|
import DropboxIcon from '@patternfly/react-icons/dist/esm/icons/dropbox-icon';
|
|
@@ -167,7 +167,7 @@ export const LoginPageLanguageSelect: React.FunctionComponent = () => {
|
|
|
167
167
|
<LoginForm
|
|
168
168
|
showHelperText={showHelperText}
|
|
169
169
|
helperText="Invalid login credentials."
|
|
170
|
-
helperTextIcon={<
|
|
170
|
+
helperTextIcon={<RhUiErrorFillIcon />}
|
|
171
171
|
usernameLabel="Username"
|
|
172
172
|
usernameValue={username}
|
|
173
173
|
onChangeUsername={handleUsernameChange}
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
ListVariant,
|
|
11
11
|
Button
|
|
12
12
|
} from '@patternfly/react-core';
|
|
13
|
-
import
|
|
13
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon';
|
|
14
14
|
import GoogleIcon from '@patternfly/react-icons/dist/esm/icons/google-icon';
|
|
15
15
|
import GithubIcon from '@patternfly/react-icons/dist/esm/icons/github-icon';
|
|
16
16
|
import DropboxIcon from '@patternfly/react-icons/dist/esm/icons/dropbox-icon';
|
|
@@ -94,7 +94,7 @@ export const LoginPageHideShowPassword: React.FunctionComponent = () => {
|
|
|
94
94
|
<LoginForm
|
|
95
95
|
showHelperText={showHelperText}
|
|
96
96
|
helperText="Invalid login credentials."
|
|
97
|
-
helperTextIcon={<
|
|
97
|
+
helperTextIcon={<RhUiErrorFillIcon />}
|
|
98
98
|
usernameLabel="Username"
|
|
99
99
|
usernameValue={username}
|
|
100
100
|
onChangeUsername={handleUsernameChange}
|
|
@@ -27,7 +27,7 @@ import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-i
|
|
|
27
27
|
import LayerGroupIcon from '@patternfly/react-icons/dist/esm/icons/layer-group-icon';
|
|
28
28
|
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
29
29
|
import TableIcon from '@patternfly/react-icons/dist/esm/icons/table-icon';
|
|
30
|
-
import
|
|
30
|
+
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
31
31
|
import StorageDomainIcon from '@patternfly/react-icons/dist/esm/icons/storage-domain-icon';
|
|
32
32
|
import RhMicronsCaretLeftIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-caret-left-icon';
|
|
33
33
|
import CaretDownIcon from '@patternfly/react-icons/dist/esm/icons/caret-down-icon';
|
|
@@ -3,7 +3,7 @@ import { Menu, MenuContent, MenuGroup, MenuList, MenuItem, MenuItemAction } from
|
|
|
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 MenuWithActions: React.FunctionComponent = () => {
|
|
9
9
|
const [selectedItems, setSelectedItems] = useState<number[]>([0, 2, 3]);
|
|
@@ -46,7 +46,7 @@ export const MenuWithActions: React.FunctionComponent = () => {
|
|
|
46
46
|
<MenuItem
|
|
47
47
|
isDisabled
|
|
48
48
|
isSelected={selectedItems.indexOf(1) !== -1}
|
|
49
|
-
actions={<MenuItemAction icon={<
|
|
49
|
+
actions={<MenuItemAction icon={<RhUiNotificationFillIcon />} actionId="alert" aria-label="Alert" />}
|
|
50
50
|
description="This is a description"
|
|
51
51
|
itemId={1}
|
|
52
52
|
>
|
|
@@ -11,7 +11,7 @@ export const MenuDrilldownInitialState: React.FunctionComponent = () => {
|
|
|
11
11
|
'initial-state-drilldownMenuStart'
|
|
12
12
|
]);
|
|
13
13
|
const [drilldownPath, setDrilldownPath] = useState<string[]>(['group:start_rollout', 'group:app_grouping']);
|
|
14
|
-
const [menuHeights, setMenuHeights] = useState<any>({ 'initial-state-rootMenu':
|
|
14
|
+
const [menuHeights, setMenuHeights] = useState<any>({ 'initial-state-rootMenu': 186 }); // The root menu height must be defined when starting from a drilled in state
|
|
15
15
|
const [activeMenu, setActiveMenu] = useState<string>('initial-state-drilldownMenuStartGrouping');
|
|
16
16
|
|
|
17
17
|
const drillIn = (
|
|
@@ -2,7 +2,7 @@ import { Fragment, useState } from 'react';
|
|
|
2
2
|
import { Menu, MenuContent, MenuItem, MenuItemAction, MenuGroup, MenuList, Divider } from '@patternfly/react-core';
|
|
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
|
-
import
|
|
5
|
+
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
6
6
|
|
|
7
7
|
export const MenuWithFavorites: React.FunctionComponent = () => {
|
|
8
8
|
const [activeItem, setActiveItem] = useState(0);
|
|
@@ -46,7 +46,7 @@ export const MenuWithFavorites: React.FunctionComponent = () => {
|
|
|
46
46
|
text: 'Item 3',
|
|
47
47
|
description: 'Description 3',
|
|
48
48
|
itemId: 'item-3',
|
|
49
|
-
action: <
|
|
49
|
+
action: <RhUiNotificationFillIcon />,
|
|
50
50
|
actionId: 'bell'
|
|
51
51
|
}
|
|
52
52
|
];
|
|
@@ -4,9 +4,9 @@ import { css } from '@patternfly/react-styles';
|
|
|
4
4
|
import CaretDownIcon from '@patternfly/react-icons/dist/esm/icons/caret-down-icon';
|
|
5
5
|
import { BadgeProps } from '../Badge';
|
|
6
6
|
import CogIcon from '@patternfly/react-icons/dist/esm/icons/cog-icon';
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
7
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
8
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon';
|
|
9
|
+
import RhUiWarningFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-warning-fill-icon';
|
|
10
10
|
import { OUIAProps, getOUIAProps } from '../../helpers';
|
|
11
11
|
import { SSRSafeIds } from '../../helpers/SSRSafeIds/SSRSafeIds';
|
|
12
12
|
|
|
@@ -127,13 +127,13 @@ class MenuToggleBase extends Component<MenuToggleProps> {
|
|
|
127
127
|
if (!statusIcon) {
|
|
128
128
|
switch (status) {
|
|
129
129
|
case MenuToggleStatus.success:
|
|
130
|
-
_statusIcon = <
|
|
130
|
+
_statusIcon = <RhUiCheckCircleFillIcon />;
|
|
131
131
|
break;
|
|
132
132
|
case MenuToggleStatus.warning:
|
|
133
|
-
_statusIcon = <
|
|
133
|
+
_statusIcon = <RhUiWarningFillIcon />;
|
|
134
134
|
break;
|
|
135
135
|
case MenuToggleStatus.danger:
|
|
136
|
-
_statusIcon = <
|
|
136
|
+
_statusIcon = <RhUiErrorFillIcon />;
|
|
137
137
|
break;
|
|
138
138
|
}
|
|
139
139
|
}
|
|
@@ -3,11 +3,11 @@ import modalStyles from '@patternfly/react-styles/css/components/ModalBox/modal-
|
|
|
3
3
|
import { css } from '@patternfly/react-styles';
|
|
4
4
|
import { capitalize } from '../../helpers';
|
|
5
5
|
import { Tooltip } from '../Tooltip';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
6
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
7
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon';
|
|
8
|
+
import RhUiWarningFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-warning-fill-icon';
|
|
9
|
+
import RhUiInformationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-information-fill-icon';
|
|
10
|
+
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
11
11
|
import { useIsomorphicLayoutEffect } from '../../helpers';
|
|
12
12
|
|
|
13
13
|
export const isVariantIcon = (icon: any): icon is string =>
|
|
@@ -41,11 +41,11 @@ export const ModalBoxTitle: React.FunctionComponent<ModalBoxTitleProps> = ({
|
|
|
41
41
|
titleScreenReaderText ||
|
|
42
42
|
(isVariantIcon(titleIconVariant) ? `${capitalize(titleIconVariant)} alert:` : titleScreenReaderText);
|
|
43
43
|
const variantIcons = {
|
|
44
|
-
success: <
|
|
45
|
-
danger: <
|
|
46
|
-
warning: <
|
|
47
|
-
info: <
|
|
48
|
-
custom: <
|
|
44
|
+
success: <RhUiCheckCircleFillIcon />,
|
|
45
|
+
danger: <RhUiErrorFillIcon />,
|
|
46
|
+
warning: <RhUiWarningFillIcon />,
|
|
47
|
+
info: <RhUiInformationFillIcon />,
|
|
48
|
+
custom: <RhUiNotificationFillIcon />
|
|
49
49
|
};
|
|
50
50
|
const CustomIcon = !isVariantIcon(titleIconVariant) && titleIconVariant;
|
|
51
51
|
|