@patternfly/react-core 6.5.0-prerelease.47 → 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 +4 -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-hSsDW7V-.css → output-CT4AeuLf.css} +18140 -18140
- 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/WizardNavItem.tsx +6 -6
- package/src/components/Wizard/WizardToggle.tsx +4 -4
- package/src/demos/Button/Button.md +1 -1
- package/src/demos/Button/examples/ButtonProgress.tsx +2 -2
- package/src/demos/CardDemos.md +3 -2
- package/src/demos/CustomMenus/CustomMenus.md +1 -1
- package/src/demos/CustomMenus/examples/ActionsMenuDemo.tsx +2 -2
- package/src/demos/DataList/examples/DataListBasic.tsx +9 -9
- package/src/demos/DataListDemo.md +3 -3
- package/src/demos/DescriptionList/DescriptionList.md +3 -1
- package/src/demos/DescriptionList/examples/DescriptionListBasic.tsx +2 -2
- package/src/demos/HelperText.md +3 -3
- package/src/demos/LabelGroupDemos.md +1 -1
- package/src/demos/Masthead.md +1 -1
- package/src/demos/Nav.md +1 -1
- package/src/demos/NotificationDrawer/NotificationDrawer.md +1 -1
- package/src/demos/Page.md +1 -3
- package/src/demos/PasswordStrength.md +3 -3
- package/src/demos/PrimaryDetail.md +6 -2
- package/src/demos/Tabs.md +2 -2
- package/src/demos/examples/Card/CardAggregateStatus.tsx +18 -18
- package/src/demos/examples/Card/CardEventsView.tsx +5 -5
- package/src/demos/examples/Card/CardHorizontalGrid.tsx +9 -9
- package/src/demos/examples/Card/CardStatus.tsx +11 -23
- package/src/demos/examples/Card/CardStatusTabbed.tsx +6 -6
- package/src/demos/examples/Card/CardUtilizationDemo3.tsx +2 -2
- package/src/demos/examples/PasswordStrength/PasswordStrengthDemo.tsx +7 -7
- package/src/demos/examples/PrimaryDetail/PrimaryDetailContentPadding.tsx +6 -6
- package/src/demos/examples/PrimaryDetail/PrimaryDetailFullPage.tsx +6 -6
- package/src/demos/examples/PrimaryDetail/PrimaryDetailInlineModifier.tsx +6 -6
- package/src/demos/examples/Tabs/TabsOpen.tsx +4 -4
- package/src/demos/examples/Tabs/TabsOpenWithSecondaryTabs.tsx +4 -4
- package/src/deprecated/components/Modal/ModalBoxTitle.tsx +10 -10
- package/src/deprecated/components/Modal/__tests__/__snapshots__/ModalBoxTitle.test.tsx.snap +20 -80
- package/src/deprecated/components/Tile/examples/Tile.md +1 -1
- package/src/deprecated/components/Tile/examples/TileStacked.tsx +4 -4
- package/src/deprecated/components/Tile/examples/TileStackedWithLargeIcons.tsx +4 -4
- package/src/deprecated/components/Tile/examples/TileWithExtraContent.tsx +4 -4
- package/src/helpers/constants.ts +10 -10
package/src/demos/Page.md
CHANGED
|
@@ -4,13 +4,12 @@ section: components
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
import { useState, useRef, useEffect } from 'react';
|
|
7
|
-
import
|
|
7
|
+
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
8
8
|
import CogIcon from '@patternfly/react-icons/dist/esm/icons/cog-icon';
|
|
9
9
|
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
|
|
10
10
|
import QuestionCircleIcon from '@patternfly/react-icons/dist/esm/icons/question-circle-icon';
|
|
11
11
|
import imgAvatar from '@patternfly/react-core/src/components/assets/avatarImg.svg';
|
|
12
12
|
import BarsIcon from '@patternfly/react-icons/dist/esm/icons/bars-icon';
|
|
13
|
-
import AttentionBellIcon from '@patternfly/react-icons/dist/esm/icons/attention-bell-icon';
|
|
14
13
|
import LightbulbIcon from '@patternfly/react-icons/dist/esm/icons/lightbulb-icon';
|
|
15
14
|
import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
|
|
16
15
|
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
@@ -21,7 +20,6 @@ import pfLogo from '@patternfly/react-core/src/demos/assets/PF-HorizontalLogo-Co
|
|
|
21
20
|
import pfIconLogo from '@patternfly/react-core/src/demos/assets/PF-IconLogo-color.svg';
|
|
22
21
|
|
|
23
22
|
- All examples set the `isManagedSidebar` prop on the Page component to have the sidebar automatically close for smaller screen widths. You can also manually control this behavior by not adding the `isManagedSidebar` prop and instead:
|
|
24
|
-
|
|
25
23
|
1. Add an onNavToggle callback to PageHeader
|
|
26
24
|
2. Pass a boolean into the isNavOpen prop to PageSidebar
|
|
27
25
|
|
|
@@ -5,9 +5,9 @@ section: patterns
|
|
|
5
5
|
|
|
6
6
|
import { useState } from 'react';
|
|
7
7
|
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
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
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
11
11
|
import formStyles from '@patternfly/react-styles/css/components/Form/form';
|
|
12
12
|
|
|
13
13
|
## Demos
|
|
@@ -8,8 +8,8 @@ import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-i
|
|
|
8
8
|
import TrashIcon from '@patternfly/react-icons/dist/esm/icons/trash-icon';
|
|
9
9
|
import CodeIcon from '@patternfly/react-icons/dist/esm/icons/code-icon';
|
|
10
10
|
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
11
|
-
import
|
|
12
|
-
import
|
|
11
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
12
|
+
import RhUiWarningFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-warning-fill-icon';
|
|
13
13
|
import FilterIcon from '@patternfly/react-icons/dist/esm/icons/filter-icon';
|
|
14
14
|
import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
|
|
15
15
|
import TimesCircleIcon from '@patternfly/react-icons/dist/esm/icons/times-circle-icon';
|
|
@@ -32,6 +32,7 @@ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/Dashboard
|
|
|
32
32
|
### Primary-detail full page
|
|
33
33
|
|
|
34
34
|
```ts file="examples/PrimaryDetail/PrimaryDetailFullPage.tsx" isFullscreen
|
|
35
|
+
|
|
35
36
|
```
|
|
36
37
|
|
|
37
38
|
### Primary-detail content padding
|
|
@@ -43,16 +44,19 @@ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/Dashboard
|
|
|
43
44
|
### Primary-detail card view
|
|
44
45
|
|
|
45
46
|
```ts file="examples/PrimaryDetail/PrimaryDetailCardView.tsx" isFullscreen
|
|
47
|
+
|
|
46
48
|
```
|
|
47
49
|
|
|
48
50
|
### Primary-detail simple list in card
|
|
49
51
|
|
|
50
52
|
```ts file="examples/PrimaryDetail/PrimaryDetailSimpleListInCard.tsx" isFullscreen
|
|
53
|
+
|
|
51
54
|
```
|
|
52
55
|
|
|
53
56
|
### Primary-detail data list in card
|
|
54
57
|
|
|
55
58
|
```ts file="examples/PrimaryDetail/PrimaryDetailDataListInCard.tsx" isFullscreen
|
|
59
|
+
|
|
56
60
|
```
|
|
57
61
|
|
|
58
62
|
### Primary-detail inline modifier
|
package/src/demos/Tabs.md
CHANGED
|
@@ -4,8 +4,8 @@ section: components
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
import { Fragment, useCallback, useRef, useState } from 'react';
|
|
7
|
-
import
|
|
8
|
-
import
|
|
7
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
8
|
+
import RhUiInformationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-information-fill-icon';
|
|
9
9
|
import CodeIcon from '@patternfly/react-icons/dist/esm/icons/code-icon';
|
|
10
10
|
import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-icon';
|
|
11
11
|
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
Stack,
|
|
13
13
|
Icon
|
|
14
14
|
} from '@patternfly/react-core';
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
15
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/js/icons/rh-ui-check-circle-fill-icon';
|
|
16
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/js/icons/rh-ui-error-fill-icon';
|
|
17
|
+
import RhUiWarningFillIcon from '@patternfly/react-icons/dist/js/icons/rh-ui-warning-fill-icon';
|
|
18
18
|
import cssGridTemplateColumnsMin from '@patternfly/react-tokens/dist/esm/l_gallery_GridTemplateColumns_min';
|
|
19
19
|
|
|
20
20
|
interface ContentType {
|
|
@@ -44,7 +44,7 @@ const cardData: CardData = {
|
|
|
44
44
|
{
|
|
45
45
|
icon: (
|
|
46
46
|
<Icon status="success">
|
|
47
|
-
<
|
|
47
|
+
<RhUiCheckCircleFillIcon />
|
|
48
48
|
</Icon>
|
|
49
49
|
)
|
|
50
50
|
}
|
|
@@ -57,7 +57,7 @@ const cardData: CardData = {
|
|
|
57
57
|
{
|
|
58
58
|
icon: (
|
|
59
59
|
<Icon status="warning">
|
|
60
|
-
<
|
|
60
|
+
<RhUiWarningFillIcon />
|
|
61
61
|
</Icon>
|
|
62
62
|
)
|
|
63
63
|
}
|
|
@@ -70,7 +70,7 @@ const cardData: CardData = {
|
|
|
70
70
|
{
|
|
71
71
|
icon: (
|
|
72
72
|
<Icon status="danger">
|
|
73
|
-
<
|
|
73
|
+
<RhUiErrorFillIcon />
|
|
74
74
|
</Icon>
|
|
75
75
|
)
|
|
76
76
|
}
|
|
@@ -85,7 +85,7 @@ const cardData: CardData = {
|
|
|
85
85
|
{
|
|
86
86
|
icon: (
|
|
87
87
|
<Icon status="success">
|
|
88
|
-
<
|
|
88
|
+
<RhUiCheckCircleFillIcon />
|
|
89
89
|
</Icon>
|
|
90
90
|
),
|
|
91
91
|
count: 2
|
|
@@ -93,7 +93,7 @@ const cardData: CardData = {
|
|
|
93
93
|
{
|
|
94
94
|
icon: (
|
|
95
95
|
<Icon status="warning">
|
|
96
|
-
<
|
|
96
|
+
<RhUiWarningFillIcon />
|
|
97
97
|
</Icon>
|
|
98
98
|
),
|
|
99
99
|
count: 1
|
|
@@ -107,7 +107,7 @@ const cardData: CardData = {
|
|
|
107
107
|
{
|
|
108
108
|
icon: (
|
|
109
109
|
<Icon status="success">
|
|
110
|
-
<
|
|
110
|
+
<RhUiCheckCircleFillIcon />
|
|
111
111
|
</Icon>
|
|
112
112
|
),
|
|
113
113
|
count: 5
|
|
@@ -115,7 +115,7 @@ const cardData: CardData = {
|
|
|
115
115
|
{
|
|
116
116
|
icon: (
|
|
117
117
|
<Icon status="danger">
|
|
118
|
-
<
|
|
118
|
+
<RhUiErrorFillIcon />
|
|
119
119
|
</Icon>
|
|
120
120
|
),
|
|
121
121
|
count: 12
|
|
@@ -129,7 +129,7 @@ const cardData: CardData = {
|
|
|
129
129
|
{
|
|
130
130
|
icon: (
|
|
131
131
|
<Icon status="warning">
|
|
132
|
-
<
|
|
132
|
+
<RhUiWarningFillIcon />
|
|
133
133
|
</Icon>
|
|
134
134
|
),
|
|
135
135
|
count: 3
|
|
@@ -137,7 +137,7 @@ const cardData: CardData = {
|
|
|
137
137
|
{
|
|
138
138
|
icon: (
|
|
139
139
|
<Icon status="danger">
|
|
140
|
-
<
|
|
140
|
+
<RhUiErrorFillIcon />
|
|
141
141
|
</Icon>
|
|
142
142
|
),
|
|
143
143
|
count: 7
|
|
@@ -153,7 +153,7 @@ const cardData: CardData = {
|
|
|
153
153
|
{
|
|
154
154
|
icon: (
|
|
155
155
|
<Icon status="danger">
|
|
156
|
-
<
|
|
156
|
+
<RhUiErrorFillIcon />
|
|
157
157
|
</Icon>
|
|
158
158
|
),
|
|
159
159
|
status: '2 errors',
|
|
@@ -162,7 +162,7 @@ const cardData: CardData = {
|
|
|
162
162
|
{
|
|
163
163
|
icon: (
|
|
164
164
|
<Icon status="warning">
|
|
165
|
-
<
|
|
165
|
+
<RhUiWarningFillIcon />
|
|
166
166
|
</Icon>
|
|
167
167
|
),
|
|
168
168
|
status: '1 warning',
|
|
@@ -177,7 +177,7 @@ const cardData: CardData = {
|
|
|
177
177
|
{
|
|
178
178
|
icon: (
|
|
179
179
|
<Icon status="success">
|
|
180
|
-
<
|
|
180
|
+
<RhUiCheckCircleFillIcon />
|
|
181
181
|
</Icon>
|
|
182
182
|
),
|
|
183
183
|
status: '2 successes',
|
|
@@ -186,7 +186,7 @@ const cardData: CardData = {
|
|
|
186
186
|
{
|
|
187
187
|
icon: (
|
|
188
188
|
<Icon status="warning">
|
|
189
|
-
<
|
|
189
|
+
<RhUiWarningFillIcon />
|
|
190
190
|
</Icon>
|
|
191
191
|
),
|
|
192
192
|
status: '3 warnings',
|
|
@@ -201,7 +201,7 @@ const cardData: CardData = {
|
|
|
201
201
|
{
|
|
202
202
|
icon: (
|
|
203
203
|
<Icon status="warning">
|
|
204
|
-
<
|
|
204
|
+
<RhUiWarningFillIcon />
|
|
205
205
|
</Icon>
|
|
206
206
|
),
|
|
207
207
|
status: '7 warnings',
|
|
@@ -210,7 +210,7 @@ const cardData: CardData = {
|
|
|
210
210
|
{
|
|
211
211
|
icon: (
|
|
212
212
|
<Icon status="danger">
|
|
213
|
-
<
|
|
213
|
+
<RhUiErrorFillIcon />
|
|
214
214
|
</Icon>
|
|
215
215
|
),
|
|
216
216
|
status: '1 error',
|
|
@@ -22,8 +22,8 @@ import {
|
|
|
22
22
|
Timestamp,
|
|
23
23
|
Title
|
|
24
24
|
} from '@patternfly/react-core';
|
|
25
|
-
import
|
|
26
|
-
import
|
|
25
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon';
|
|
26
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
27
27
|
import flex from '@patternfly/react-styles/css/utilities/Flex/flex';
|
|
28
28
|
import cssGridTemplateColumnsMin from '@patternfly/react-tokens/dist/esm/l_gallery_GridTemplateColumns_min';
|
|
29
29
|
|
|
@@ -77,7 +77,7 @@ export const CardEventsView: React.FunctionComponent = () => {
|
|
|
77
77
|
<Flex flexWrap={{ default: 'nowrap' }}>
|
|
78
78
|
<FlexItem>
|
|
79
79
|
<Icon status="danger">
|
|
80
|
-
<
|
|
80
|
+
<RhUiErrorFillIcon />
|
|
81
81
|
</Icon>
|
|
82
82
|
</FlexItem>
|
|
83
83
|
<FlexItem>
|
|
@@ -98,7 +98,7 @@ export const CardEventsView: React.FunctionComponent = () => {
|
|
|
98
98
|
<Flex flexWrap={{ default: 'nowrap' }}>
|
|
99
99
|
<FlexItem>
|
|
100
100
|
<Icon status="success">
|
|
101
|
-
<
|
|
101
|
+
<RhUiCheckCircleFillIcon />
|
|
102
102
|
</Icon>
|
|
103
103
|
</FlexItem>
|
|
104
104
|
<FlexItem>
|
|
@@ -134,7 +134,7 @@ export const CardEventsView: React.FunctionComponent = () => {
|
|
|
134
134
|
<Flex flexWrap={{ default: 'nowrap' }}>
|
|
135
135
|
<FlexItem>
|
|
136
136
|
<Icon status="success">
|
|
137
|
-
<
|
|
137
|
+
<RhUiCheckCircleFillIcon />
|
|
138
138
|
</Icon>
|
|
139
139
|
</FlexItem>
|
|
140
140
|
<FlexItem>
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
MenuToggle,
|
|
20
20
|
MenuToggleElement
|
|
21
21
|
} from '@patternfly/react-core';
|
|
22
|
-
import
|
|
22
|
+
import RhUiInformationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-information-fill-icon';
|
|
23
23
|
import ArrowRightIcon from '@patternfly/react-icons/dist/esm/icons/arrow-right-icon';
|
|
24
24
|
import ExternalLinkAltIcon from '@patternfly/react-icons/dist/esm/icons/external-link-alt-icon';
|
|
25
25
|
import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
|
|
@@ -88,16 +88,16 @@ export const CardHorizontalGrid: React.FunctionComponent = () => {
|
|
|
88
88
|
<Level hasGutter>
|
|
89
89
|
<CardTitle id="titleId">Getting Started</CardTitle>
|
|
90
90
|
<LabelGroup isCompact>
|
|
91
|
-
<Label isCompact icon={<
|
|
91
|
+
<Label isCompact icon={<RhUiInformationFillIcon />} color="blue">
|
|
92
92
|
Set up your cluster
|
|
93
93
|
</Label>
|
|
94
|
-
<Label isCompact icon={<
|
|
94
|
+
<Label isCompact icon={<RhUiInformationFillIcon />} color="purple">
|
|
95
95
|
Guided tours
|
|
96
96
|
</Label>
|
|
97
|
-
<Label isCompact icon={<
|
|
97
|
+
<Label isCompact icon={<RhUiInformationFillIcon />} color="green">
|
|
98
98
|
Quick starts
|
|
99
99
|
</Label>
|
|
100
|
-
<Label isCompact icon={<
|
|
100
|
+
<Label isCompact icon={<RhUiInformationFillIcon />} color="orange">
|
|
101
101
|
Learning resources
|
|
102
102
|
</Label>
|
|
103
103
|
</LabelGroup>
|
|
@@ -118,7 +118,7 @@ export const CardHorizontalGrid: React.FunctionComponent = () => {
|
|
|
118
118
|
direction={{ default: 'column' }}
|
|
119
119
|
grow={{ default: 'grow' }}
|
|
120
120
|
>
|
|
121
|
-
<Label icon={<
|
|
121
|
+
<Label icon={<RhUiInformationFillIcon />} color="blue">
|
|
122
122
|
Set up your cluster
|
|
123
123
|
</Label>
|
|
124
124
|
<p>Continue setting up your cluster to access all you cain in the Console</p>
|
|
@@ -149,7 +149,7 @@ export const CardHorizontalGrid: React.FunctionComponent = () => {
|
|
|
149
149
|
direction={{ default: 'column' }}
|
|
150
150
|
grow={{ default: 'grow' }}
|
|
151
151
|
>
|
|
152
|
-
<Label icon={<
|
|
152
|
+
<Label icon={<RhUiInformationFillIcon />} color="purple">
|
|
153
153
|
Guided tours
|
|
154
154
|
</Label>
|
|
155
155
|
<p>Tour some of the key features around the console</p>
|
|
@@ -177,7 +177,7 @@ export const CardHorizontalGrid: React.FunctionComponent = () => {
|
|
|
177
177
|
direction={{ default: 'column' }}
|
|
178
178
|
grow={{ default: 'grow' }}
|
|
179
179
|
>
|
|
180
|
-
<Label icon={<
|
|
180
|
+
<Label icon={<RhUiInformationFillIcon />} color="green">
|
|
181
181
|
Quick starts
|
|
182
182
|
</Label>
|
|
183
183
|
<p>Get started with features using our step-by-step documentation</p>
|
|
@@ -208,7 +208,7 @@ export const CardHorizontalGrid: React.FunctionComponent = () => {
|
|
|
208
208
|
direction={{ default: 'column' }}
|
|
209
209
|
grow={{ default: 'grow' }}
|
|
210
210
|
>
|
|
211
|
-
<Label icon={<
|
|
211
|
+
<Label icon={<RhUiInformationFillIcon />} color="orange">
|
|
212
212
|
Learning resources
|
|
213
213
|
</Label>
|
|
214
214
|
<p>Learn about new features within the Console and get started with demo apps</p>
|
|
@@ -22,10 +22,8 @@ import {
|
|
|
22
22
|
Icon
|
|
23
23
|
} from '@patternfly/react-core';
|
|
24
24
|
import { Table, Thead, Tbody, Tr, Th, Td, ExpandableRowContent } from '@patternfly/react-table';
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import ExclamationCircleIcon from '@patternfly/react-icons/dist/js/icons/exclamation-circle-icon';
|
|
28
|
-
import ExclamationTriangleIcon from '@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon';
|
|
25
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/js/icons/rh-ui-check-circle-fill-icon';
|
|
26
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/js/icons/rh-ui-error-fill-icon';
|
|
29
27
|
import t_global_text_color_subtle from '@patternfly/react-tokens/dist/esm/t_global_text_color_subtle';
|
|
30
28
|
|
|
31
29
|
export const CardStatus: React.FunctionComponent = () => {
|
|
@@ -139,7 +137,7 @@ export const CardStatus: React.FunctionComponent = () => {
|
|
|
139
137
|
<Flex spaceItems={{ default: 'spaceItemsSm' }}>
|
|
140
138
|
<FlexItem>
|
|
141
139
|
<Icon status="success">
|
|
142
|
-
<
|
|
140
|
+
<RhUiCheckCircleFillIcon />
|
|
143
141
|
</Icon>
|
|
144
142
|
</FlexItem>
|
|
145
143
|
<FlexItem>
|
|
@@ -151,7 +149,7 @@ export const CardStatus: React.FunctionComponent = () => {
|
|
|
151
149
|
<Flex spaceItems={{ default: 'spaceItemsSm' }}>
|
|
152
150
|
<FlexItem>
|
|
153
151
|
<Icon status="danger">
|
|
154
|
-
<
|
|
152
|
+
<RhUiErrorFillIcon />
|
|
155
153
|
</Icon>
|
|
156
154
|
</FlexItem>
|
|
157
155
|
<FlexItem>
|
|
@@ -167,7 +165,7 @@ export const CardStatus: React.FunctionComponent = () => {
|
|
|
167
165
|
<Flex spaceItems={{ default: 'spaceItemsSm' }}>
|
|
168
166
|
<FlexItem>
|
|
169
167
|
<Icon status="danger">
|
|
170
|
-
<
|
|
168
|
+
<RhUiErrorFillIcon />
|
|
171
169
|
</Icon>
|
|
172
170
|
</FlexItem>
|
|
173
171
|
<Flex direction={{ default: 'column' }} spaceItems={{ default: 'spaceItemsNone' }}>
|
|
@@ -184,7 +182,7 @@ export const CardStatus: React.FunctionComponent = () => {
|
|
|
184
182
|
<Flex spaceItems={{ default: 'spaceItemsSm' }}>
|
|
185
183
|
<FlexItem>
|
|
186
184
|
<Icon status="success">
|
|
187
|
-
<
|
|
185
|
+
<RhUiCheckCircleFillIcon />
|
|
188
186
|
</Icon>
|
|
189
187
|
</FlexItem>
|
|
190
188
|
<Flex direction={{ default: 'column' }} spaceItems={{ default: 'spaceItemsNone' }}>
|
|
@@ -206,21 +204,11 @@ export const CardStatus: React.FunctionComponent = () => {
|
|
|
206
204
|
<FlexItem spacer={{ default: 'spacerMd' }}>
|
|
207
205
|
<span>Notifications</span>
|
|
208
206
|
</FlexItem>
|
|
209
|
-
<Label
|
|
210
|
-
|
|
211
|
-
</Label>
|
|
212
|
-
<Label
|
|
213
|
-
|
|
214
|
-
</Label>
|
|
215
|
-
<Label color="green" icon={<CheckCircleIcon />}>
|
|
216
|
-
3
|
|
217
|
-
</Label>
|
|
218
|
-
<Label color="blue" icon={<ExclamationCircleIcon />}>
|
|
219
|
-
3
|
|
220
|
-
</Label>
|
|
221
|
-
<Label color="green" icon={<BellIcon />}>
|
|
222
|
-
3
|
|
223
|
-
</Label>
|
|
207
|
+
<Label status="danger">1</Label>
|
|
208
|
+
<Label status="warning">3</Label>
|
|
209
|
+
<Label status="success">3</Label>
|
|
210
|
+
<Label status="danger">3</Label>
|
|
211
|
+
<Label status="info">3</Label>
|
|
224
212
|
</Flex>
|
|
225
213
|
);
|
|
226
214
|
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
TabTitleText,
|
|
17
17
|
Title
|
|
18
18
|
} from '@patternfly/react-core';
|
|
19
|
-
import
|
|
20
|
-
import
|
|
19
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
20
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon';
|
|
21
21
|
|
|
22
22
|
const descriptionListData = [
|
|
23
23
|
{
|
|
@@ -26,7 +26,7 @@ const descriptionListData = [
|
|
|
26
26
|
detail: '121 Systems',
|
|
27
27
|
icon: (
|
|
28
28
|
<Icon status="success">
|
|
29
|
-
<
|
|
29
|
+
<RhUiCheckCircleFillIcon />
|
|
30
30
|
</Icon>
|
|
31
31
|
)
|
|
32
32
|
},
|
|
@@ -36,7 +36,7 @@ const descriptionListData = [
|
|
|
36
36
|
detail: '123 Systems',
|
|
37
37
|
icon: (
|
|
38
38
|
<Icon status="danger">
|
|
39
|
-
<
|
|
39
|
+
<RhUiErrorFillIcon />
|
|
40
40
|
</Icon>
|
|
41
41
|
)
|
|
42
42
|
},
|
|
@@ -46,7 +46,7 @@ const descriptionListData = [
|
|
|
46
46
|
detail: '122 Systems',
|
|
47
47
|
icon: (
|
|
48
48
|
<Icon status="success">
|
|
49
|
-
<
|
|
49
|
+
<RhUiCheckCircleFillIcon />
|
|
50
50
|
</Icon>
|
|
51
51
|
)
|
|
52
52
|
},
|
|
@@ -56,7 +56,7 @@ const descriptionListData = [
|
|
|
56
56
|
detail: '124 Systems',
|
|
57
57
|
icon: (
|
|
58
58
|
<Icon status="danger">
|
|
59
|
-
<
|
|
59
|
+
<RhUiErrorFillIcon />
|
|
60
60
|
</Icon>
|
|
61
61
|
)
|
|
62
62
|
}
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
MenuToggleElement,
|
|
18
18
|
Icon
|
|
19
19
|
} from '@patternfly/react-core';
|
|
20
|
-
import
|
|
20
|
+
import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon';
|
|
21
21
|
import { Chart, ChartStack, ChartBar, ChartTooltip } from '@patternfly/react-charts/victory';
|
|
22
22
|
import chart_color_yellow_100 from '@patternfly/react-tokens/dist/esm/chart_color_yellow_100';
|
|
23
23
|
import chart_color_yellow_300 from '@patternfly/react-tokens/dist/esm/chart_color_yellow_300';
|
|
@@ -80,7 +80,7 @@ export const CardUtilizationDemo3: React.FunctionComponent = () => {
|
|
|
80
80
|
</FlexItem>
|
|
81
81
|
<Flex>
|
|
82
82
|
<Icon status="danger">
|
|
83
|
-
<
|
|
83
|
+
<RhUiErrorFillIcon />
|
|
84
84
|
</Icon>
|
|
85
85
|
<a href="#">25 incidents detected</a>
|
|
86
86
|
</Flex>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import { Form, FormGroup, FormHelperText, HelperText, HelperTextItem, TextInput } from '@patternfly/react-core';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
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
6
|
|
|
7
7
|
export const PasswordStrengthDemo: React.FunctionComponent = () => {
|
|
8
8
|
type HelperTextItemVariant = 'default' | 'indeterminate' | 'warning' | 'success' | 'error';
|
|
@@ -18,7 +18,7 @@ export const PasswordStrengthDemo: React.FunctionComponent = () => {
|
|
|
18
18
|
const [ruleCharacters, setRuleCharacters] = useState<HelperTextItemVariant>('indeterminate');
|
|
19
19
|
const [passStrength, setPassStrength] = useState<PassStrength>({
|
|
20
20
|
variant: 'error',
|
|
21
|
-
icon: <
|
|
21
|
+
icon: <RhUiErrorFillIcon />,
|
|
22
22
|
text: 'Weak'
|
|
23
23
|
});
|
|
24
24
|
|
|
@@ -72,11 +72,11 @@ export const PasswordStrengthDemo: React.FunctionComponent = () => {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
if (strCount < 3) {
|
|
75
|
-
setPassStrength({ variant: 'error', icon: <
|
|
75
|
+
setPassStrength({ variant: 'error', icon: <RhUiErrorFillIcon />, text: 'Weak' });
|
|
76
76
|
} else if (strCount < 5) {
|
|
77
|
-
setPassStrength({ variant: 'warning', icon: <
|
|
77
|
+
setPassStrength({ variant: 'warning', icon: <RhUiWarningFillIcon />, text: 'Medium' });
|
|
78
78
|
} else {
|
|
79
|
-
setPassStrength({ variant: 'success', icon: <
|
|
79
|
+
setPassStrength({ variant: 'success', icon: <RhUiCheckCircleFillIcon />, text: 'Strong' });
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
82
|
|
|
@@ -42,8 +42,8 @@ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/Dashboard
|
|
|
42
42
|
import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-icon';
|
|
43
43
|
import CodeIcon from '@patternfly/react-icons/dist/esm/icons/code-icon';
|
|
44
44
|
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
45
|
-
import
|
|
46
|
-
import
|
|
45
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
46
|
+
import RhUiWarningFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-warning-fill-icon';
|
|
47
47
|
import FilterIcon from '@patternfly/react-icons/dist/esm/icons/filter-icon';
|
|
48
48
|
import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
|
|
49
49
|
import TimesCircleIcon from '@patternfly/react-icons/dist/esm/icons/times-circle-icon';
|
|
@@ -283,10 +283,10 @@ export const PrimaryDetailContentPadding: React.FunctionComponent = () => {
|
|
|
283
283
|
<CubeIcon /> 5
|
|
284
284
|
</FlexItem>
|
|
285
285
|
<FlexItem>
|
|
286
|
-
<
|
|
286
|
+
<RhUiCheckCircleFillIcon /> 7
|
|
287
287
|
</FlexItem>
|
|
288
288
|
<FlexItem>
|
|
289
|
-
<
|
|
289
|
+
<RhUiWarningFillIcon /> 5
|
|
290
290
|
</FlexItem>
|
|
291
291
|
<FlexItem>
|
|
292
292
|
<TimesCircleIcon /> 5
|
|
@@ -380,10 +380,10 @@ export const PrimaryDetailContentPadding: React.FunctionComponent = () => {
|
|
|
380
380
|
<CubeIcon /> 5
|
|
381
381
|
</FlexItem>
|
|
382
382
|
<FlexItem>
|
|
383
|
-
<
|
|
383
|
+
<RhUiCheckCircleFillIcon /> 7
|
|
384
384
|
</FlexItem>
|
|
385
385
|
<FlexItem>
|
|
386
|
-
<
|
|
386
|
+
<RhUiWarningFillIcon /> 5
|
|
387
387
|
</FlexItem>
|
|
388
388
|
<FlexItem>
|
|
389
389
|
<TimesCircleIcon /> 5
|
|
@@ -42,8 +42,8 @@ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/Dashboard
|
|
|
42
42
|
import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-icon';
|
|
43
43
|
import CodeIcon from '@patternfly/react-icons/dist/esm/icons/code-icon';
|
|
44
44
|
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
45
|
-
import
|
|
46
|
-
import
|
|
45
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
46
|
+
import RhUiWarningFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-warning-fill-icon';
|
|
47
47
|
import FilterIcon from '@patternfly/react-icons/dist/esm/icons/filter-icon';
|
|
48
48
|
import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
|
|
49
49
|
import TimesCircleIcon from '@patternfly/react-icons/dist/esm/icons/times-circle-icon';
|
|
@@ -283,10 +283,10 @@ export const PrimaryDetailFullPage: React.FunctionComponent = () => {
|
|
|
283
283
|
<CubeIcon /> 5
|
|
284
284
|
</FlexItem>
|
|
285
285
|
<FlexItem>
|
|
286
|
-
<
|
|
286
|
+
<RhUiCheckCircleFillIcon /> 7
|
|
287
287
|
</FlexItem>
|
|
288
288
|
<FlexItem>
|
|
289
|
-
<
|
|
289
|
+
<RhUiWarningFillIcon /> 5
|
|
290
290
|
</FlexItem>
|
|
291
291
|
<FlexItem>
|
|
292
292
|
<TimesCircleIcon /> 5
|
|
@@ -380,10 +380,10 @@ export const PrimaryDetailFullPage: React.FunctionComponent = () => {
|
|
|
380
380
|
<CubeIcon /> 5
|
|
381
381
|
</FlexItem>
|
|
382
382
|
<FlexItem>
|
|
383
|
-
<
|
|
383
|
+
<RhUiCheckCircleFillIcon /> 7
|
|
384
384
|
</FlexItem>
|
|
385
385
|
<FlexItem>
|
|
386
|
-
<
|
|
386
|
+
<RhUiWarningFillIcon /> 5
|
|
387
387
|
</FlexItem>
|
|
388
388
|
<FlexItem>
|
|
389
389
|
<TimesCircleIcon /> 5
|
|
@@ -42,8 +42,8 @@ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/Dashboard
|
|
|
42
42
|
import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-icon';
|
|
43
43
|
import CodeIcon from '@patternfly/react-icons/dist/esm/icons/code-icon';
|
|
44
44
|
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
45
|
-
import
|
|
46
|
-
import
|
|
45
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
46
|
+
import RhUiWarningFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-warning-fill-icon';
|
|
47
47
|
import FilterIcon from '@patternfly/react-icons/dist/esm/icons/filter-icon';
|
|
48
48
|
import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
|
|
49
49
|
import TimesCircleIcon from '@patternfly/react-icons/dist/esm/icons/times-circle-icon';
|
|
@@ -283,10 +283,10 @@ export const PrimaryDetailInlineModifier: React.FunctionComponent = () => {
|
|
|
283
283
|
<CubeIcon /> 5
|
|
284
284
|
</FlexItem>
|
|
285
285
|
<FlexItem>
|
|
286
|
-
<
|
|
286
|
+
<RhUiCheckCircleFillIcon /> 7
|
|
287
287
|
</FlexItem>
|
|
288
288
|
<FlexItem>
|
|
289
|
-
<
|
|
289
|
+
<RhUiWarningFillIcon /> 5
|
|
290
290
|
</FlexItem>
|
|
291
291
|
<FlexItem>
|
|
292
292
|
<TimesCircleIcon /> 5
|
|
@@ -380,10 +380,10 @@ export const PrimaryDetailInlineModifier: React.FunctionComponent = () => {
|
|
|
380
380
|
<CubeIcon /> 5
|
|
381
381
|
</FlexItem>
|
|
382
382
|
<FlexItem>
|
|
383
|
-
<
|
|
383
|
+
<RhUiCheckCircleFillIcon /> 7
|
|
384
384
|
</FlexItem>
|
|
385
385
|
<FlexItem>
|
|
386
|
-
<
|
|
386
|
+
<RhUiWarningFillIcon /> 5
|
|
387
387
|
</FlexItem>
|
|
388
388
|
<FlexItem>
|
|
389
389
|
<TimesCircleIcon /> 5
|