@patternfly/react-core 6.0.0-alpha.58 → 6.0.0-alpha.59
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 +6 -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/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/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/Text/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/Tile/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/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/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/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/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/next/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/next/components/Modal/package.json +1 -1
- package/dist/dynamic/next/components/package.json +1 -1
- package/dist/dynamic/styles/package.json +1 -1
- package/dist/esm/components/Menu/Menu.d.ts.map +1 -1
- package/dist/esm/components/Menu/Menu.js +1 -4
- package/dist/esm/components/Menu/Menu.js.map +1 -1
- package/dist/esm/components/NotificationDrawer/NotificationDrawerHeader.d.ts.map +1 -1
- package/dist/esm/components/NotificationDrawer/NotificationDrawerHeader.js +1 -2
- package/dist/esm/components/NotificationDrawer/NotificationDrawerHeader.js.map +1 -1
- package/dist/esm/components/Slider/SliderStep.d.ts.map +1 -1
- package/dist/esm/components/Slider/SliderStep.js +4 -2
- package/dist/esm/components/Slider/SliderStep.js.map +1 -1
- package/dist/esm/components/Text/Text.d.ts.map +1 -1
- package/dist/esm/components/Text/Text.js +14 -1
- package/dist/esm/components/Text/Text.js.map +1 -1
- package/dist/esm/components/Text/TextList.d.ts.map +1 -1
- package/dist/esm/components/Text/TextList.js +6 -1
- package/dist/esm/components/Text/TextList.js.map +1 -1
- package/dist/esm/components/Text/TextListItem.d.ts.map +1 -1
- package/dist/esm/components/Text/TextListItem.js +7 -1
- package/dist/esm/components/Text/TextListItem.js.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarItem.d.ts.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarItem.js +1 -1
- package/dist/esm/components/Toolbar/ToolbarItem.js.map +1 -1
- package/dist/esm/components/Wizard/WizardFooter.js +10 -4
- package/dist/esm/components/Wizard/WizardFooter.js.map +1 -1
- package/dist/esm/components/Wizard/WizardNavItem.d.ts.map +1 -1
- package/dist/esm/components/Wizard/WizardNavItem.js +8 -10
- package/dist/esm/components/Wizard/WizardNavItem.js.map +1 -1
- package/dist/esm/components/Wizard/WizardToggle.d.ts.map +1 -1
- package/dist/esm/components/Wizard/WizardToggle.js +5 -2
- package/dist/esm/components/Wizard/WizardToggle.js.map +1 -1
- package/dist/esm/deprecated/components/Wizard/WizardFooterInternal.d.ts.map +1 -1
- package/dist/esm/deprecated/components/Wizard/WizardFooterInternal.js +10 -4
- package/dist/esm/deprecated/components/Wizard/WizardFooterInternal.js.map +1 -1
- package/dist/esm/helpers/constants.js +5 -5
- package/dist/js/components/Menu/Menu.d.ts.map +1 -1
- package/dist/js/components/Menu/Menu.js +1 -4
- package/dist/js/components/Menu/Menu.js.map +1 -1
- package/dist/js/components/NotificationDrawer/NotificationDrawerHeader.d.ts.map +1 -1
- package/dist/js/components/NotificationDrawer/NotificationDrawerHeader.js +1 -2
- package/dist/js/components/NotificationDrawer/NotificationDrawerHeader.js.map +1 -1
- package/dist/js/components/Slider/SliderStep.d.ts.map +1 -1
- package/dist/js/components/Slider/SliderStep.js +4 -2
- package/dist/js/components/Slider/SliderStep.js.map +1 -1
- package/dist/js/components/Text/Text.d.ts.map +1 -1
- package/dist/js/components/Text/Text.js +14 -1
- package/dist/js/components/Text/Text.js.map +1 -1
- package/dist/js/components/Text/TextList.d.ts.map +1 -1
- package/dist/js/components/Text/TextList.js +6 -1
- package/dist/js/components/Text/TextList.js.map +1 -1
- package/dist/js/components/Text/TextListItem.d.ts.map +1 -1
- package/dist/js/components/Text/TextListItem.js +7 -1
- package/dist/js/components/Text/TextListItem.js.map +1 -1
- package/dist/js/components/Toolbar/ToolbarItem.d.ts.map +1 -1
- package/dist/js/components/Toolbar/ToolbarItem.js +1 -1
- package/dist/js/components/Toolbar/ToolbarItem.js.map +1 -1
- package/dist/js/components/Wizard/WizardFooter.js +10 -4
- package/dist/js/components/Wizard/WizardFooter.js.map +1 -1
- package/dist/js/components/Wizard/WizardNavItem.d.ts.map +1 -1
- package/dist/js/components/Wizard/WizardNavItem.js +8 -10
- package/dist/js/components/Wizard/WizardNavItem.js.map +1 -1
- package/dist/js/components/Wizard/WizardToggle.d.ts.map +1 -1
- package/dist/js/components/Wizard/WizardToggle.js +5 -2
- package/dist/js/components/Wizard/WizardToggle.js.map +1 -1
- package/dist/js/deprecated/components/Wizard/WizardFooterInternal.d.ts.map +1 -1
- package/dist/js/deprecated/components/Wizard/WizardFooterInternal.js +10 -4
- package/dist/js/deprecated/components/Wizard/WizardFooterInternal.js.map +1 -1
- package/dist/js/helpers/constants.js +10 -10
- package/dist/styles/assets/pficon/pficon.scss +3 -0
- package/dist/styles/base-no-reset.css +1222 -1462
- package/dist/styles/base.css +1302 -1542
- 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 +6 -6
- package/src/components/Menu/Menu.tsx +1 -5
- package/src/components/NotificationDrawer/NotificationDrawerHeader.tsx +1 -5
- package/src/components/NotificationDrawer/__tests__/__snapshots__/NotificationDrawerHeader.test.tsx.snap +0 -16
- package/src/components/Skeleton/examples/Skeleton.md +12 -7
- package/src/components/Skeleton/examples/SkeletonText.tsx +14 -14
- package/src/components/Slider/SliderStep.tsx +4 -2
- package/src/components/Slider/_tests_/__snapshots__/Slider.test.tsx.snap +21 -21
- package/src/components/Text/Text.tsx +19 -1
- package/src/components/Text/TextList.tsx +7 -1
- package/src/components/Text/TextListItem.tsx +8 -1
- package/src/components/Text/__tests__/Generated/__snapshots__/TextList.test.tsx.snap +1 -1
- package/src/components/Text/__tests__/Generated/__snapshots__/TextListItem.test.tsx.snap +1 -1
- package/src/components/Text/__tests__/Text.test.tsx +0 -5
- package/src/components/Text/__tests__/TextList.test.tsx +0 -5
- package/src/components/Text/__tests__/TextListItem.test.tsx +0 -5
- package/src/components/Text/__tests__/__snapshots__/Text.test.tsx.snap +1 -1
- package/src/components/Text/__tests__/__snapshots__/TextList.test.tsx.snap +1 -1
- package/src/components/Text/__tests__/__snapshots__/TextListItem.test.tsx.snap +1 -1
- package/src/components/Text/examples/Text.md +9 -3
- package/src/components/Text/examples/TextBody.tsx +3 -3
- package/src/components/Text/examples/TextContentWrapped.tsx +11 -0
- package/src/components/Text/examples/TextDescriptionList.tsx +11 -13
- package/src/components/Text/examples/TextHeadings.tsx +3 -3
- package/src/components/Text/examples/TextOrderedList.tsx +10 -12
- package/src/components/Text/examples/TextPlainList.tsx +3 -3
- package/src/components/Text/examples/TextUnorderedList.tsx +13 -15
- package/src/components/Toolbar/ToolbarItem.tsx +2 -1
- package/src/components/Toolbar/__tests__/__snapshots__/Toolbar.test.tsx.snap +1 -1
- package/src/components/Wizard/WizardFooter.tsx +32 -24
- package/src/components/Wizard/WizardNavItem.tsx +20 -22
- package/src/components/Wizard/WizardToggle.tsx +10 -2
- package/src/demos/CardDemos.md +2 -5
- package/src/demos/examples/Card/CardAggregateStatus.tsx +77 -20
- package/src/demos/examples/Card/CardStatus.tsx +17 -10
- package/src/deprecated/components/Wizard/WizardFooterInternal.tsx +26 -16
- package/src/deprecated/components/Wizard/__tests__/Generated/__snapshots__/WizardFooterInternal.test.tsx.snap +56 -36
- package/src/deprecated/components/Wizard/__tests__/__snapshots__/Wizard.test.tsx.snap +153 -93
- package/src/helpers/constants.ts +5 -5
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Text, TextVariants } from '@patternfly/react-core';
|
|
3
3
|
|
|
4
4
|
export const TextBody: React.FunctionComponent = () => (
|
|
5
|
-
|
|
5
|
+
<>
|
|
6
6
|
<Text component={TextVariants.p}>
|
|
7
7
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla
|
|
8
8
|
nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel
|
|
@@ -20,5 +20,5 @@ export const TextBody: React.FunctionComponent = () => (
|
|
|
20
20
|
turpis.
|
|
21
21
|
</Text>
|
|
22
22
|
<Text component={TextVariants.small}>Sometimes you need small text to display things like date created</Text>
|
|
23
|
-
|
|
23
|
+
</>
|
|
24
24
|
);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextContent, Text, TextVariants } from '@patternfly/react-core';
|
|
3
|
+
|
|
4
|
+
export const TextContentWrapped: React.FunctionComponent = () => (
|
|
5
|
+
<TextContent>
|
|
6
|
+
<Text component={TextVariants.p}>
|
|
7
|
+
Text with a component of type "p" still renders the same when wrapped with a TextContent.
|
|
8
|
+
</Text>
|
|
9
|
+
<p>If located within a wrapping TextContent, html elements are styled as well!</p>
|
|
10
|
+
</TextContent>
|
|
11
|
+
);
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { TextList, TextListVariants, TextListItem, TextListItemVariants } from '@patternfly/react-core';
|
|
3
3
|
|
|
4
4
|
export const TextDescriptionList: React.FunctionComponent = () => (
|
|
5
|
-
<
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
</TextList>
|
|
16
|
-
</TextContent>
|
|
5
|
+
<TextList component={TextListVariants.dl}>
|
|
6
|
+
<TextListItem component={TextListItemVariants.dt}>Web</TextListItem>
|
|
7
|
+
<TextListItem component={TextListItemVariants.dd}>
|
|
8
|
+
The part of the Internet that contains websites and web pages
|
|
9
|
+
</TextListItem>
|
|
10
|
+
<TextListItem component={TextListItemVariants.dt}>HTML</TextListItem>
|
|
11
|
+
<TextListItem component={TextListItemVariants.dd}>A markup language for creating web pages</TextListItem>
|
|
12
|
+
<TextListItem component={TextListItemVariants.dt}>CSS</TextListItem>
|
|
13
|
+
<TextListItem component={TextListItemVariants.dd}>A technology to make HTML look better</TextListItem>
|
|
14
|
+
</TextList>
|
|
17
15
|
);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Text, TextVariants } from '@patternfly/react-core';
|
|
3
3
|
|
|
4
4
|
export const TextHeadings: React.FunctionComponent = () => (
|
|
5
|
-
|
|
5
|
+
<>
|
|
6
6
|
<Text component={TextVariants.h1}>Hello World</Text>
|
|
7
7
|
<Text component={TextVariants.h2}>Second level</Text>
|
|
8
8
|
<Text component={TextVariants.h3}>Third level</Text>
|
|
9
9
|
<Text component={TextVariants.h4}>Fourth level</Text>
|
|
10
10
|
<Text component={TextVariants.h5}>Fifth level</Text>
|
|
11
11
|
<Text component={TextVariants.h6}>Sixth level</Text>
|
|
12
|
-
|
|
12
|
+
</>
|
|
13
13
|
);
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { TextList, TextListVariants, TextListItem } from '@patternfly/react-core';
|
|
3
3
|
|
|
4
4
|
export const TextOrderedList: React.FunctionComponent = () => (
|
|
5
|
-
<
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
</TextList>
|
|
15
|
-
</TextContent>
|
|
5
|
+
<TextList component={TextListVariants.ol}>
|
|
6
|
+
<TextListItem>Donec blandit a lorem id convallis.</TextListItem>
|
|
7
|
+
<TextListItem>Cras gravida arcu at diam gravida gravida.</TextListItem>
|
|
8
|
+
<TextListItem>Integer in volutpat libero.</TextListItem>
|
|
9
|
+
<TextListItem>Donec a diam tellus.</TextListItem>
|
|
10
|
+
<TextListItem>Aenean nec tortor orci.</TextListItem>
|
|
11
|
+
<TextListItem>Quisque aliquam cursus urna, non bibendum massa viverra eget.</TextListItem>
|
|
12
|
+
<TextListItem>Vivamus maximus ultricies pulvinar.</TextListItem>
|
|
13
|
+
</TextList>
|
|
16
14
|
);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Text, TextVariants,
|
|
2
|
+
import { Text, TextVariants, TextList, TextListVariants, TextListItem } from '@patternfly/react-core';
|
|
3
3
|
|
|
4
4
|
export const TextPlainList: React.FunctionComponent = () => (
|
|
5
|
-
|
|
5
|
+
<>
|
|
6
6
|
<Text component={TextVariants.h3}>Plain unordered list</Text>
|
|
7
7
|
<TextList isPlain>
|
|
8
8
|
<TextListItem>In fermentum leo eu lectus mollis, quis dictum mi aliquet.</TextListItem>
|
|
@@ -20,5 +20,5 @@ export const TextPlainList: React.FunctionComponent = () => (
|
|
|
20
20
|
<TextListItem>Quisque aliquam cursus urna, non bibendum massa viverra eget.</TextListItem>
|
|
21
21
|
<TextListItem>Vivamus maximus ultricies pulvinar.</TextListItem>
|
|
22
22
|
</TextList>
|
|
23
|
-
|
|
23
|
+
</>
|
|
24
24
|
);
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { TextList, TextListItem } from '@patternfly/react-core';
|
|
3
3
|
|
|
4
4
|
export const TextUnorderedList: React.FunctionComponent = () => (
|
|
5
|
-
<
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
</TextList>
|
|
18
|
-
</TextContent>
|
|
5
|
+
<TextList>
|
|
6
|
+
<TextListItem>In fermentum leo eu lectus mollis, quis dictum mi aliquet.</TextListItem>
|
|
7
|
+
<TextListItem>Morbi eu nulla lobortis, lobortis est in, fringilla felis.</TextListItem>
|
|
8
|
+
<TextListItem>
|
|
9
|
+
Aliquam nec felis in sapien venenatis viverra fermentum nec lectus.
|
|
10
|
+
<TextList>
|
|
11
|
+
<TextListItem>In fermentum leo eu lectus mollis, quis dictum mi aliquet.</TextListItem>
|
|
12
|
+
<TextListItem>Morbi eu nulla lobortis, lobortis est in, fringilla felis.</TextListItem>
|
|
13
|
+
</TextList>
|
|
14
|
+
</TextListItem>
|
|
15
|
+
<TextListItem>Ut non enim metus.</TextListItem>
|
|
16
|
+
</TextList>
|
|
19
17
|
);
|
|
@@ -80,7 +80,8 @@ export const ToolbarItem: React.FunctionComponent<ToolbarItemProps> = ({
|
|
|
80
80
|
<div
|
|
81
81
|
className={css(
|
|
82
82
|
styles.toolbarItem,
|
|
83
|
-
variant && styles.modifiers[toCamel(variant) as 'pagination' | 'label'
|
|
83
|
+
variant && styles.modifiers[toCamel(variant) as 'pagination' | 'label'],
|
|
84
|
+
variant === ToolbarItemVariant['chip-group'] && styles.modifiers.labelGroup,
|
|
84
85
|
isAllExpanded && styles.modifiers.expanded,
|
|
85
86
|
isOverflowContainer && styles.modifiers.overflowContainer,
|
|
86
87
|
formatBreakpointMods(visibility, styles, '', getBreakpoint(width)),
|
|
@@ -100,7 +100,7 @@ exports[`Toolbar should render with custom chip content 1`] = `
|
|
|
100
100
|
hidden=""
|
|
101
101
|
>
|
|
102
102
|
<div
|
|
103
|
-
class="pf-v6-c-toolbar__item pf-m-
|
|
103
|
+
class="pf-v6-c-toolbar__item pf-m-label-group"
|
|
104
104
|
>
|
|
105
105
|
<div
|
|
106
106
|
class="pf-v6-c-label-group pf-m-category"
|
|
@@ -5,7 +5,7 @@ import styles from '@patternfly/react-styles/css/components/Wizard/wizard';
|
|
|
5
5
|
|
|
6
6
|
import { Button, ButtonVariant } from '../Button';
|
|
7
7
|
import { isCustomWizardFooter, WizardFooterButtonProps, WizardStepType } from './types';
|
|
8
|
-
|
|
8
|
+
import { ActionList, ActionListGroup, ActionListItem } from '../ActionList';
|
|
9
9
|
/**
|
|
10
10
|
* Hosts the standard structure of a footer with ties to the active step so that text for buttons can vary from step to step.
|
|
11
11
|
*/
|
|
@@ -74,29 +74,37 @@ const InternalWizardFooter = ({
|
|
|
74
74
|
cancelButtonProps
|
|
75
75
|
}: Omit<WizardFooterProps, 'activeStep'>) => (
|
|
76
76
|
<WizardFooterWrapper>
|
|
77
|
-
|
|
78
|
-
<
|
|
79
|
-
{
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
77
|
+
<ActionList>
|
|
78
|
+
<ActionListGroup>
|
|
79
|
+
{!isBackHidden && (
|
|
80
|
+
<ActionListItem>
|
|
81
|
+
<Button variant={ButtonVariant.secondary} onClick={onBack} isDisabled={isBackDisabled} {...backButtonProps}>
|
|
82
|
+
{backButtonText}
|
|
83
|
+
</Button>
|
|
84
|
+
</ActionListItem>
|
|
85
|
+
)}
|
|
86
|
+
<ActionListItem>
|
|
87
|
+
<Button
|
|
88
|
+
variant={ButtonVariant.primary}
|
|
89
|
+
type="submit"
|
|
90
|
+
onClick={onNext}
|
|
91
|
+
isDisabled={isNextDisabled}
|
|
92
|
+
{...nextButtonProps}
|
|
93
|
+
>
|
|
94
|
+
{nextButtonText}
|
|
95
|
+
</Button>
|
|
96
|
+
</ActionListItem>
|
|
97
|
+
</ActionListGroup>
|
|
98
|
+
{!isCancelHidden && (
|
|
99
|
+
<ActionListGroup>
|
|
100
|
+
<ActionListItem>
|
|
101
|
+
<Button variant={ButtonVariant.link} onClick={onClose} {...cancelButtonProps}>
|
|
102
|
+
{cancelButtonText}
|
|
103
|
+
</Button>
|
|
104
|
+
</ActionListItem>
|
|
105
|
+
</ActionListGroup>
|
|
106
|
+
)}
|
|
107
|
+
</ActionList>
|
|
100
108
|
</WizardFooterWrapper>
|
|
101
109
|
);
|
|
102
110
|
|
|
@@ -7,8 +7,6 @@ import ExclamationCircleIcon from '@patternfly/react-icons/dist/esm/icons/exclam
|
|
|
7
7
|
|
|
8
8
|
import { OUIAProps, useOUIAProps } from '../../helpers';
|
|
9
9
|
import { WizardNavItemStatus } from './types';
|
|
10
|
-
import globalSpacerSm from '@patternfly/react-tokens/dist/esm/global_spacer_sm';
|
|
11
|
-
import globalDangerColor100 from '@patternfly/react-tokens/dist/esm/global_danger_color_100';
|
|
12
10
|
|
|
13
11
|
export interface WizardNavItemProps extends OUIAProps {
|
|
14
12
|
/** Can nest a WizardNav component for substeps */
|
|
@@ -105,7 +103,8 @@ export const WizardNavItem = ({
|
|
|
105
103
|
className={css(
|
|
106
104
|
styles.wizardNavLink,
|
|
107
105
|
isCurrent && styles.modifiers.current,
|
|
108
|
-
isDisabled && styles.modifiers.disabled
|
|
106
|
+
isDisabled && styles.modifiers.disabled,
|
|
107
|
+
status === WizardNavItemStatus.Error && styles.modifiers.danger
|
|
109
108
|
)}
|
|
110
109
|
aria-disabled={isDisabled ? true : null}
|
|
111
110
|
aria-current={isCurrent && !children ? 'step' : false}
|
|
@@ -113,26 +112,25 @@ export const WizardNavItem = ({
|
|
|
113
112
|
{...(ariaLabel && { 'aria-label': ariaLabel })}
|
|
114
113
|
{...ouiaProps}
|
|
115
114
|
>
|
|
116
|
-
{
|
|
117
|
-
|
|
118
|
-
<
|
|
119
|
-
|
|
120
|
-
<span className={css(styles.wizardNavLinkToggleIcon)}>
|
|
121
|
-
<AngleRightIcon aria-label={`${isCurrent ? 'Collapse' : 'Expand'} step icon`} />
|
|
122
|
-
</span>
|
|
123
|
-
</span>
|
|
124
|
-
</>
|
|
125
|
-
) : (
|
|
126
|
-
<>
|
|
127
|
-
{content}
|
|
128
|
-
{/* TODO, patternfly/patternfly#5142 */}
|
|
129
|
-
{status === WizardNavItemStatus.Error && (
|
|
130
|
-
<span style={{ marginLeft: globalSpacerSm.var }}>
|
|
131
|
-
<ExclamationCircleIcon color={globalDangerColor100.var} />
|
|
132
|
-
</span>
|
|
133
|
-
)}
|
|
134
|
-
</>
|
|
115
|
+
{status === WizardNavItemStatus.Error && (
|
|
116
|
+
<span className={css(styles.wizardNavLinkStatusIcon)}>
|
|
117
|
+
<ExclamationCircleIcon />
|
|
118
|
+
</span>
|
|
135
119
|
)}
|
|
120
|
+
<span className={css(styles.wizardNavLinkMain)}>
|
|
121
|
+
{isExpandable ? (
|
|
122
|
+
<>
|
|
123
|
+
<span className={css(styles.wizardNavLinkText)}>{content}</span>
|
|
124
|
+
<span className={css(styles.wizardNavLinkToggle)}>
|
|
125
|
+
<span className={css(styles.wizardNavLinkToggleIcon)}>
|
|
126
|
+
<AngleRightIcon aria-label={`${isCurrent ? 'Collapse' : 'Expand'} step icon`} />
|
|
127
|
+
</span>
|
|
128
|
+
</span>
|
|
129
|
+
</>
|
|
130
|
+
) : (
|
|
131
|
+
<>{content}</>
|
|
132
|
+
)}
|
|
133
|
+
</span>
|
|
136
134
|
</NavItemComponent>
|
|
137
135
|
{children}
|
|
138
136
|
</li>
|
|
@@ -4,6 +4,7 @@ import { css } from '@patternfly/react-styles';
|
|
|
4
4
|
import styles from '@patternfly/react-styles/css/components/Wizard/wizard';
|
|
5
5
|
import AngleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-right-icon';
|
|
6
6
|
import CaretDownIcon from '@patternfly/react-icons/dist/esm/icons/caret-down-icon';
|
|
7
|
+
import ExclamationCircleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon';
|
|
7
8
|
|
|
8
9
|
import { KeyTypes } from '../../helpers/constants';
|
|
9
10
|
import { WizardStepType, isWizardSubStep } from './types';
|
|
@@ -45,6 +46,7 @@ export const WizardToggle = ({
|
|
|
45
46
|
const parentStep = isActiveSubStep && steps.find((step) => step.id === activeStep.parentId);
|
|
46
47
|
const nonSubSteps = steps.filter((step) => !isWizardSubStep(step));
|
|
47
48
|
const wizardToggleIndex = nonSubSteps.indexOf(parentStep || activeStep) + 1;
|
|
49
|
+
const isActiveStepStatus = activeStep.status;
|
|
48
50
|
|
|
49
51
|
const handleKeyClicks = React.useCallback(
|
|
50
52
|
(event: KeyboardEvent): void => {
|
|
@@ -90,8 +92,14 @@ export const WizardToggle = ({
|
|
|
90
92
|
aria-expanded={isNavExpanded}
|
|
91
93
|
>
|
|
92
94
|
<span className={css(styles.wizardToggleList)}>
|
|
93
|
-
<span className={css(styles.wizardToggleListItem)}>
|
|
94
|
-
|
|
95
|
+
<span className={css(styles.wizardToggleListItem, isActiveStepStatus === 'error' && styles.modifiers.danger)}>
|
|
96
|
+
{isActiveStepStatus === 'error' ? (
|
|
97
|
+
<span className={css(styles.wizardToggleStatusIcon)}>
|
|
98
|
+
<ExclamationCircleIcon />
|
|
99
|
+
</span>
|
|
100
|
+
) : (
|
|
101
|
+
<span className={css(styles.wizardToggleNum)}>{wizardToggleIndex}</span>
|
|
102
|
+
)}{' '}
|
|
95
103
|
{parentStep?.name || activeStep?.name}
|
|
96
104
|
{isActiveSubStep && <AngleRightIcon className={css(styles.wizardToggleSeparator)} aria-hidden="true" />}
|
|
97
105
|
</span>
|
package/src/demos/CardDemos.md
CHANGED
|
@@ -7,7 +7,7 @@ import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-ico
|
|
|
7
7
|
import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
8
8
|
import ArrowRightIcon from '@patternfly/react-icons/dist/js/icons/arrow-right-icon';
|
|
9
9
|
import ExternalLinkAltIcon from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
|
|
10
|
-
import { CheckCircleIcon, ExclamationCircleIcon, ExclamationTriangleIcon,
|
|
10
|
+
import { CheckCircleIcon, ExclamationCircleIcon, ExclamationTriangleIcon, BellIcon } from '@patternfly/react-icons';
|
|
11
11
|
import { Table, Thead, Tbody, Tr, Th, Td, ExpandableRowContent } from '@patternfly/react-table';
|
|
12
12
|
import { Chart, ChartAxis, ChartGroup, ChartVoronoiContainer, ChartStack, ChartBar, ChartTooltip, ChartDonutThreshold, ChartDonutUtilization, ChartArea, ChartContainer, ChartLabel } from '@patternfly/react-charts';
|
|
13
13
|
import chart_color_gold_100 from '@patternfly/react-tokens/dist/esm/chart_color_gold_100';
|
|
@@ -15,10 +15,7 @@ import chart_color_gold_300 from '@patternfly/react-tokens/dist/esm/chart_color_
|
|
|
15
15
|
import chart_color_orange_300 from '@patternfly/react-tokens/dist/esm/chart_color_orange_300';
|
|
16
16
|
import chart_color_red_100 from '@patternfly/react-tokens/dist/esm/chart_color_red_100';
|
|
17
17
|
import l_gallery_GridTemplateColumns_min from '@patternfly/react-tokens/dist/esm/l_gallery_GridTemplateColumns_min';
|
|
18
|
-
import
|
|
19
|
-
import global_warning_color_100 from '@patternfly/react-tokens/dist/esm/global_warning_color_100';
|
|
20
|
-
import global_danger_color_100 from '@patternfly/react-tokens/dist/esm/global_danger_color_100';
|
|
21
|
-
import global_Color_200 from '@patternfly/react-tokens/dist/esm/global_Color_200';
|
|
18
|
+
import global_text_color_subtle from '@patternfly/react-tokens/dist/esm/global_text_color_subtle';
|
|
22
19
|
import flex from '@patternfly/react-styles/css/utilities/Flex/flex';
|
|
23
20
|
import text from '@patternfly/react-styles/css/utilities/Text/text';
|
|
24
21
|
import sizing from '@patternfly/react-styles/css/utilities/Sizing/sizing';
|
|
@@ -10,15 +10,12 @@ import {
|
|
|
10
10
|
Gallery,
|
|
11
11
|
Grid,
|
|
12
12
|
GridItem,
|
|
13
|
-
Stack
|
|
13
|
+
Stack,
|
|
14
|
+
Icon
|
|
14
15
|
} from '@patternfly/react-core';
|
|
15
16
|
import CheckCircleIcon from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
|
|
16
17
|
import ExclamationCircleIcon from '@patternfly/react-icons/dist/js/icons/exclamation-circle-icon';
|
|
17
18
|
import ExclamationTriangleIcon from '@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon';
|
|
18
|
-
import TimesCircleIcon from '@patternfly/react-icons/dist/js/icons/times-circle-icon';
|
|
19
|
-
import global_success_color_100 from '@patternfly/react-tokens/dist/esm/global_success_color_100';
|
|
20
|
-
import global_warning_color_100 from '@patternfly/react-tokens/dist/esm/global_warning_color_100';
|
|
21
|
-
import global_danger_color_100 from '@patternfly/react-tokens/dist/esm/global_danger_color_100';
|
|
22
19
|
import l_gallery_GridTemplateColumns_min from '@patternfly/react-tokens/dist/esm/l_gallery_GridTemplateColumns_min';
|
|
23
20
|
|
|
24
21
|
interface ContentType {
|
|
@@ -46,7 +43,11 @@ const cardData: CardData = {
|
|
|
46
43
|
title: '5 Clusters',
|
|
47
44
|
content: [
|
|
48
45
|
{
|
|
49
|
-
icon:
|
|
46
|
+
icon: (
|
|
47
|
+
<Icon status="success">
|
|
48
|
+
<CheckCircleIcon />
|
|
49
|
+
</Icon>
|
|
50
|
+
)
|
|
50
51
|
}
|
|
51
52
|
],
|
|
52
53
|
layout: 'icon'
|
|
@@ -55,7 +56,11 @@ const cardData: CardData = {
|
|
|
55
56
|
title: '15 Clusters',
|
|
56
57
|
content: [
|
|
57
58
|
{
|
|
58
|
-
icon:
|
|
59
|
+
icon: (
|
|
60
|
+
<Icon status="warning">
|
|
61
|
+
<ExclamationTriangleIcon />
|
|
62
|
+
</Icon>
|
|
63
|
+
)
|
|
59
64
|
}
|
|
60
65
|
],
|
|
61
66
|
layout: 'icon'
|
|
@@ -64,7 +69,11 @@ const cardData: CardData = {
|
|
|
64
69
|
title: '3 Clusters',
|
|
65
70
|
content: [
|
|
66
71
|
{
|
|
67
|
-
icon:
|
|
72
|
+
icon: (
|
|
73
|
+
<Icon status="danger">
|
|
74
|
+
<ExclamationCircleIcon />
|
|
75
|
+
</Icon>
|
|
76
|
+
)
|
|
68
77
|
}
|
|
69
78
|
],
|
|
70
79
|
layout: 'icon'
|
|
@@ -75,11 +84,19 @@ const cardData: CardData = {
|
|
|
75
84
|
title: '10 Hosts',
|
|
76
85
|
content: [
|
|
77
86
|
{
|
|
78
|
-
icon:
|
|
87
|
+
icon: (
|
|
88
|
+
<Icon status="success">
|
|
89
|
+
<CheckCircleIcon />
|
|
90
|
+
</Icon>
|
|
91
|
+
),
|
|
79
92
|
count: 2
|
|
80
93
|
},
|
|
81
94
|
{
|
|
82
|
-
icon:
|
|
95
|
+
icon: (
|
|
96
|
+
<Icon status="warning">
|
|
97
|
+
<ExclamationTriangleIcon />
|
|
98
|
+
</Icon>
|
|
99
|
+
),
|
|
83
100
|
count: 1
|
|
84
101
|
}
|
|
85
102
|
],
|
|
@@ -89,11 +106,19 @@ const cardData: CardData = {
|
|
|
89
106
|
title: '50 Hosts',
|
|
90
107
|
content: [
|
|
91
108
|
{
|
|
92
|
-
icon:
|
|
109
|
+
icon: (
|
|
110
|
+
<Icon status="success">
|
|
111
|
+
<CheckCircleIcon />
|
|
112
|
+
</Icon>
|
|
113
|
+
),
|
|
93
114
|
count: 5
|
|
94
115
|
},
|
|
95
116
|
{
|
|
96
|
-
icon:
|
|
117
|
+
icon: (
|
|
118
|
+
<Icon status="danger">
|
|
119
|
+
<ExclamationCircleIcon />
|
|
120
|
+
</Icon>
|
|
121
|
+
),
|
|
97
122
|
count: 12
|
|
98
123
|
}
|
|
99
124
|
],
|
|
@@ -103,11 +128,19 @@ const cardData: CardData = {
|
|
|
103
128
|
title: '12 Hosts',
|
|
104
129
|
content: [
|
|
105
130
|
{
|
|
106
|
-
icon:
|
|
131
|
+
icon: (
|
|
132
|
+
<Icon status="warning">
|
|
133
|
+
<ExclamationTriangleIcon />
|
|
134
|
+
</Icon>
|
|
135
|
+
),
|
|
107
136
|
count: 3
|
|
108
137
|
},
|
|
109
138
|
{
|
|
110
|
-
icon:
|
|
139
|
+
icon: (
|
|
140
|
+
<Icon status="danger">
|
|
141
|
+
<ExclamationCircleIcon />
|
|
142
|
+
</Icon>
|
|
143
|
+
),
|
|
111
144
|
count: 7
|
|
112
145
|
}
|
|
113
146
|
],
|
|
@@ -119,12 +152,20 @@ const cardData: CardData = {
|
|
|
119
152
|
title: '13 Hosts',
|
|
120
153
|
content: [
|
|
121
154
|
{
|
|
122
|
-
icon:
|
|
155
|
+
icon: (
|
|
156
|
+
<Icon status="danger">
|
|
157
|
+
<ExclamationCircleIcon />
|
|
158
|
+
</Icon>
|
|
159
|
+
),
|
|
123
160
|
status: '2 errors',
|
|
124
161
|
subtitle: 'subtitle'
|
|
125
162
|
},
|
|
126
163
|
{
|
|
127
|
-
icon:
|
|
164
|
+
icon: (
|
|
165
|
+
<Icon status="warning">
|
|
166
|
+
<ExclamationTriangleIcon />
|
|
167
|
+
</Icon>
|
|
168
|
+
),
|
|
128
169
|
status: '1 warning',
|
|
129
170
|
subtitle: 'subtitle'
|
|
130
171
|
}
|
|
@@ -135,12 +176,20 @@ const cardData: CardData = {
|
|
|
135
176
|
title: '3 Hosts',
|
|
136
177
|
content: [
|
|
137
178
|
{
|
|
138
|
-
icon:
|
|
179
|
+
icon: (
|
|
180
|
+
<Icon status="success">
|
|
181
|
+
<CheckCircleIcon />
|
|
182
|
+
</Icon>
|
|
183
|
+
),
|
|
139
184
|
status: '2 successes',
|
|
140
185
|
subtitle: 'subtitle'
|
|
141
186
|
},
|
|
142
187
|
{
|
|
143
|
-
icon:
|
|
188
|
+
icon: (
|
|
189
|
+
<Icon status="warning">
|
|
190
|
+
<ExclamationTriangleIcon />
|
|
191
|
+
</Icon>
|
|
192
|
+
),
|
|
144
193
|
status: '3 warnings',
|
|
145
194
|
subtitle: 'subtitle'
|
|
146
195
|
}
|
|
@@ -151,12 +200,20 @@ const cardData: CardData = {
|
|
|
151
200
|
title: '50 Hosts',
|
|
152
201
|
content: [
|
|
153
202
|
{
|
|
154
|
-
icon:
|
|
203
|
+
icon: (
|
|
204
|
+
<Icon status="warning">
|
|
205
|
+
<ExclamationTriangleIcon />
|
|
206
|
+
</Icon>
|
|
207
|
+
),
|
|
155
208
|
status: '7 warnings',
|
|
156
209
|
subtitle: 'subtitle'
|
|
157
210
|
},
|
|
158
211
|
{
|
|
159
|
-
icon:
|
|
212
|
+
icon: (
|
|
213
|
+
<Icon status="danger">
|
|
214
|
+
<ExclamationCircleIcon />
|
|
215
|
+
</Icon>
|
|
216
|
+
),
|
|
160
217
|
status: '1 error',
|
|
161
218
|
subtitle: 'subtitle'
|
|
162
219
|
}
|
|
@@ -19,16 +19,15 @@ import {
|
|
|
19
19
|
NotificationDrawerListItemBody,
|
|
20
20
|
NotificationDrawerListItemHeader,
|
|
21
21
|
Popover,
|
|
22
|
-
Title
|
|
22
|
+
Title,
|
|
23
|
+
Icon
|
|
23
24
|
} from '@patternfly/react-core';
|
|
24
25
|
import { Table, Thead, Tbody, Tr, Th, Td, ExpandableRowContent } from '@patternfly/react-table';
|
|
25
26
|
import BellIcon from '@patternfly/react-icons/dist/js/icons/bell-icon';
|
|
26
27
|
import CheckCircleIcon from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
|
|
27
28
|
import ExclamationCircleIcon from '@patternfly/react-icons/dist/js/icons/exclamation-circle-icon';
|
|
28
29
|
import ExclamationTriangleIcon from '@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon';
|
|
29
|
-
import
|
|
30
|
-
import global_danger_color_100 from '@patternfly/react-tokens/dist/esm/global_danger_color_100';
|
|
31
|
-
import global_Color_200 from '@patternfly/react-tokens/dist/esm/global_Color_200';
|
|
30
|
+
import global_text_color_subtle from '@patternfly/react-tokens/dist/esm/global_text_color_subtle';
|
|
32
31
|
|
|
33
32
|
export const CardStatus: React.FunctionComponent = () => {
|
|
34
33
|
const [drawerExpanded, setDrawerExpanded] = React.useState(false);
|
|
@@ -140,7 +139,9 @@ export const CardStatus: React.FunctionComponent = () => {
|
|
|
140
139
|
<GridItem>
|
|
141
140
|
<Flex spaceItems={{ default: 'spaceItemsSm' }}>
|
|
142
141
|
<FlexItem>
|
|
143
|
-
<
|
|
142
|
+
<Icon status="success">
|
|
143
|
+
<CheckCircleIcon />
|
|
144
|
+
</Icon>
|
|
144
145
|
</FlexItem>
|
|
145
146
|
<FlexItem>
|
|
146
147
|
<span>Cluster</span>
|
|
@@ -150,7 +151,9 @@ export const CardStatus: React.FunctionComponent = () => {
|
|
|
150
151
|
<GridItem>
|
|
151
152
|
<Flex spaceItems={{ default: 'spaceItemsSm' }}>
|
|
152
153
|
<FlexItem>
|
|
153
|
-
<
|
|
154
|
+
<Icon status="danger">
|
|
155
|
+
<ExclamationCircleIcon />
|
|
156
|
+
</Icon>
|
|
154
157
|
</FlexItem>
|
|
155
158
|
<FlexItem>
|
|
156
159
|
<Popover headerContent="Control Panel Status" bodyContent={popoverBodyContent} minWidth="400px">
|
|
@@ -164,14 +167,16 @@ export const CardStatus: React.FunctionComponent = () => {
|
|
|
164
167
|
<GridItem>
|
|
165
168
|
<Flex spaceItems={{ default: 'spaceItemsSm' }}>
|
|
166
169
|
<FlexItem>
|
|
167
|
-
<
|
|
170
|
+
<Icon status="danger">
|
|
171
|
+
<ExclamationCircleIcon />
|
|
172
|
+
</Icon>
|
|
168
173
|
</FlexItem>
|
|
169
174
|
<Flex direction={{ default: 'column' }} spaceItems={{ default: 'spaceItemsNone' }}>
|
|
170
175
|
<FlexItem>
|
|
171
176
|
<a href="#">Operators</a>
|
|
172
177
|
</FlexItem>
|
|
173
178
|
<FlexItem>
|
|
174
|
-
<span style={{ color:
|
|
179
|
+
<span style={{ color: global_text_color_subtle.var }}>1 degraded</span>
|
|
175
180
|
</FlexItem>
|
|
176
181
|
</Flex>
|
|
177
182
|
</Flex>
|
|
@@ -179,14 +184,16 @@ export const CardStatus: React.FunctionComponent = () => {
|
|
|
179
184
|
<GridItem>
|
|
180
185
|
<Flex spaceItems={{ default: 'spaceItemsSm' }}>
|
|
181
186
|
<FlexItem>
|
|
182
|
-
<
|
|
187
|
+
<Icon status="success">
|
|
188
|
+
<CheckCircleIcon />
|
|
189
|
+
</Icon>
|
|
183
190
|
</FlexItem>
|
|
184
191
|
<Flex direction={{ default: 'column' }} spaceItems={{ default: 'spaceItemsNone' }}>
|
|
185
192
|
<FlexItem>
|
|
186
193
|
<a href="#">Image Vulnerabilities</a>
|
|
187
194
|
</FlexItem>
|
|
188
195
|
<FlexItem>
|
|
189
|
-
<span style={{ color:
|
|
196
|
+
<span style={{ color: global_text_color_subtle.var }}>0 vulnerabilities</span>
|
|
190
197
|
</FlexItem>
|
|
191
198
|
</Flex>
|
|
192
199
|
</Flex>
|