@patternfly/react-core 6.0.0-alpha.86 → 6.0.0-alpha.88
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 +16 -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/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/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/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/DualListSelector/package.json +1 -1
- package/dist/dynamic/deprecated/components/Modal/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/styles/package.json +1 -1
- package/dist/dynamic-modules.json +3 -11
- package/dist/esm/components/Content/Content.d.ts +3 -3
- package/dist/esm/components/Content/Content.d.ts.map +1 -1
- package/dist/esm/components/Content/Content.js +24 -24
- package/dist/esm/components/Content/Content.js.map +1 -1
- package/dist/esm/components/Content/index.d.ts +0 -3
- package/dist/esm/components/Content/index.d.ts.map +1 -1
- package/dist/esm/components/Content/index.js +0 -3
- package/dist/esm/components/Content/index.js.map +1 -1
- package/dist/esm/components/Page/Page.d.ts +2 -0
- package/dist/esm/components/Page/Page.d.ts.map +1 -1
- package/dist/esm/components/Page/Page.js +2 -2
- package/dist/esm/components/Page/Page.js.map +1 -1
- package/dist/esm/components/Page/PageGroup.d.ts +3 -1
- package/dist/esm/components/Page/PageGroup.d.ts.map +1 -1
- package/dist/esm/components/Page/PageGroup.js +2 -2
- package/dist/esm/components/Page/PageGroup.js.map +1 -1
- package/dist/esm/components/Page/PageSection.d.ts +1 -1
- package/dist/esm/components/Page/PageSection.d.ts.map +1 -1
- package/dist/esm/components/Wizard/Wizard.d.ts.map +1 -1
- package/dist/esm/components/Wizard/Wizard.js +5 -3
- package/dist/esm/components/Wizard/Wizard.js.map +1 -1
- package/dist/esm/components/Wizard/WizardContext.d.ts.map +1 -1
- package/dist/esm/components/Wizard/WizardContext.js +13 -3
- package/dist/esm/components/Wizard/WizardContext.js.map +1 -1
- package/dist/esm/demos/DashboardWrapper.d.ts.map +1 -1
- package/dist/esm/demos/DashboardWrapper.js +4 -4
- package/dist/esm/demos/DashboardWrapper.js.map +1 -1
- package/dist/js/components/Content/Content.d.ts +3 -3
- package/dist/js/components/Content/Content.d.ts.map +1 -1
- package/dist/js/components/Content/Content.js +26 -26
- package/dist/js/components/Content/Content.js.map +1 -1
- package/dist/js/components/Content/index.d.ts +0 -3
- package/dist/js/components/Content/index.d.ts.map +1 -1
- package/dist/js/components/Content/index.js +0 -3
- package/dist/js/components/Content/index.js.map +1 -1
- package/dist/js/components/Page/Page.d.ts +2 -0
- package/dist/js/components/Page/Page.d.ts.map +1 -1
- package/dist/js/components/Page/Page.js +2 -2
- package/dist/js/components/Page/Page.js.map +1 -1
- package/dist/js/components/Page/PageGroup.d.ts +3 -1
- package/dist/js/components/Page/PageGroup.d.ts.map +1 -1
- package/dist/js/components/Page/PageGroup.js +2 -2
- package/dist/js/components/Page/PageGroup.js.map +1 -1
- package/dist/js/components/Page/PageSection.d.ts +1 -1
- package/dist/js/components/Page/PageSection.d.ts.map +1 -1
- package/dist/js/components/Wizard/Wizard.d.ts.map +1 -1
- package/dist/js/components/Wizard/Wizard.js +5 -3
- package/dist/js/components/Wizard/Wizard.js.map +1 -1
- package/dist/js/components/Wizard/WizardContext.d.ts.map +1 -1
- package/dist/js/components/Wizard/WizardContext.js +13 -3
- package/dist/js/components/Wizard/WizardContext.js.map +1 -1
- package/dist/js/demos/DashboardWrapper.d.ts.map +1 -1
- package/dist/js/demos/DashboardWrapper.js +3 -3
- package/dist/js/demos/DashboardWrapper.js.map +1 -1
- package/dist/styles/base-no-reset.css +6 -6
- package/dist/styles/base.css +8 -8
- package/dist/umd/assets/{output-DncgfZci.css → output-DbCJu18k.css} +3884 -3885
- package/dist/umd/react-core.min.js +1 -1
- 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/AboutModal/examples/AboutModalBasic.tsx +19 -19
- package/src/components/AboutModal/examples/AboutModalComplexUserPositionedContent.tsx +21 -21
- package/src/components/AboutModal/examples/AboutModalWithoutProductName.tsx +19 -19
- package/src/components/Content/Content.tsx +6 -6
- package/src/components/Content/__tests__/Content.test.tsx +194 -20
- package/src/components/Content/__tests__/__snapshots__/Content.test.tsx.snap +1 -1
- package/src/components/Content/examples/Content.md +13 -13
- package/src/components/Content/examples/ContentBody.tsx +12 -10
- package/src/components/Content/examples/ContentDescriptionList.tsx +9 -11
- package/src/components/Content/examples/ContentHeadings.tsx +7 -7
- package/src/components/Content/examples/ContentOrderedList.tsx +10 -10
- package/src/components/Content/examples/ContentPlainList.tsx +22 -18
- package/src/components/Content/examples/ContentUnorderedList.tsx +12 -12
- package/src/components/Content/examples/ContentVisited.tsx +23 -23
- package/src/components/Content/examples/ContentWrapper.tsx +7 -7
- package/src/components/Content/index.ts +0 -3
- package/src/components/DataList/examples/DataListWidthModifiers.tsx +10 -12
- package/src/components/Icon/examples/IconInline.tsx +10 -12
- package/src/components/Modal/examples/ModalCustomHeader.tsx +4 -6
- package/src/components/Page/Page.tsx +4 -1
- package/src/components/Page/PageGroup.tsx +5 -0
- package/src/components/Page/PageSection.tsx +1 -1
- package/src/components/Page/__tests__/Page.test.tsx +21 -0
- package/src/components/Page/__tests__/PageGroup.test.tsx +20 -0
- package/src/components/Page/__tests__/PageSection.test.tsx +27 -0
- package/src/components/Page/examples/Page.md +2 -2
- package/src/components/Page/examples/PageWithOrWithoutFill.tsx +4 -5
- package/src/components/Slider/examples/SliderActions.tsx +2 -2
- package/src/components/Slider/examples/SliderContinuous.tsx +3 -3
- package/src/components/Slider/examples/SliderDisabled.tsx +2 -2
- package/src/components/Slider/examples/SliderDiscrete.tsx +14 -14
- package/src/components/Spinner/examples/SpinnerInline.tsx +10 -12
- package/src/components/Wizard/Wizard.tsx +5 -3
- package/src/components/Wizard/WizardContext.tsx +13 -4
- package/src/demos/Banner.md +14 -25
- package/src/demos/CardView/examples/CardView.tsx +5 -6
- package/src/demos/DashboardWrapper.tsx +6 -7
- package/src/demos/DataList/examples/DataListBasic.tsx +17 -20
- package/src/demos/DataList/examples/DataListExpandableControlInToolbar.tsx +7 -9
- package/src/demos/DescriptionList/examples/DescriptionListBasic.tsx +6 -8
- package/src/demos/JumpLinks.md +3 -3
- package/src/demos/NotificationDrawer/examples/NotificationDrawerBasic.tsx +7 -8
- package/src/demos/NotificationDrawer/examples/NotificationDrawerGrouped.tsx +7 -8
- package/src/demos/RTL/examples/PaginatedTable.jsx +5 -7
- package/src/demos/RTL/examples/PaginatedTable.tsx +5 -7
- package/src/demos/examples/AlertGroup/AlertGroupToastWithNotificationDrawer.tsx +14 -15
- package/src/demos/examples/BackToTop/BackToTopNameDemo.tsx +7 -8
- package/src/demos/examples/DashboardWrapper.js +6 -7
- package/src/demos/examples/JumpLinks/JumpLinksWithDrawer.js +3 -3
- package/src/demos/examples/Masthead/MastheadWithHorizontalNav.tsx +9 -13
- package/src/demos/examples/Masthead/MastheadWithUtilitiesAndUserDropdownMenu.tsx +5 -6
- package/src/demos/examples/Nav/NavDefault.tsx +8 -9
- package/src/demos/examples/Nav/NavExpandable.tsx +8 -9
- package/src/demos/examples/Nav/NavGrouped.tsx +8 -9
- package/src/demos/examples/Nav/NavHorizontal.tsx +7 -8
- package/src/demos/examples/Nav/NavHorizontalWithSubnav.tsx +7 -8
- package/src/demos/examples/Nav/NavManual.tsx +7 -8
- package/src/demos/examples/Nav/NavWithSubnav.tsx +8 -9
- package/src/demos/examples/Page/PageContextSelector.tsx +5 -6
- package/src/demos/examples/Page/PageStickySectionBreadcrumb.tsx +5 -6
- package/src/demos/examples/Page/PageStickySectionGroup.tsx +5 -6
- package/src/demos/examples/Page/PageStickySectionGroupAlternate.tsx +5 -6
- package/src/demos/examples/PrimaryDetail/PrimaryDetailCardView.tsx +10 -14
- package/src/demos/examples/PrimaryDetail/PrimaryDetailContentPadding.tsx +7 -8
- package/src/demos/examples/PrimaryDetail/PrimaryDetailDataListInCard.tsx +8 -10
- package/src/demos/examples/PrimaryDetail/PrimaryDetailFullPage.tsx +7 -8
- package/src/demos/examples/PrimaryDetail/PrimaryDetailInlineModifier.tsx +7 -8
- package/src/demos/examples/PrimaryDetail/PrimaryDetailSimpleListInCard.tsx +8 -10
- package/src/demos/examples/Tabs/ModalTabs.tsx +5 -6
- package/src/demos/examples/Tabs/NestedUnindentedTabs.tsx +4 -5
- package/src/demos/examples/Wizard/InModalWithDrawerInformationalStep.tsx +4 -6
- package/src/demos/examples/Wizard/InPageWithDrawer.tsx +5 -6
- package/src/demos/examples/Wizard/InPageWithDrawerInformationalStep.tsx +8 -9
- package/dist/esm/components/Content/TextContent.d.ts +0 -11
- package/dist/esm/components/Content/TextContent.d.ts.map +0 -1
- package/dist/esm/components/Content/TextContent.js +0 -10
- package/dist/esm/components/Content/TextContent.js.map +0 -1
- package/dist/esm/components/Content/TextList.d.ts +0 -18
- package/dist/esm/components/Content/TextList.d.ts.map +0 -1
- package/dist/esm/components/Content/TextList.js +0 -22
- package/dist/esm/components/Content/TextList.js.map +0 -1
- package/dist/esm/components/Content/TextListItem.d.ts +0 -16
- package/dist/esm/components/Content/TextListItem.d.ts.map +0 -1
- package/dist/esm/components/Content/TextListItem.js +0 -22
- package/dist/esm/components/Content/TextListItem.js.map +0 -1
- package/dist/js/components/Content/TextContent.d.ts +0 -11
- package/dist/js/components/Content/TextContent.d.ts.map +0 -1
- package/dist/js/components/Content/TextContent.js +0 -14
- package/dist/js/components/Content/TextContent.js.map +0 -1
- package/dist/js/components/Content/TextList.d.ts +0 -18
- package/dist/js/components/Content/TextList.d.ts.map +0 -1
- package/dist/js/components/Content/TextList.js +0 -26
- package/dist/js/components/Content/TextList.js.map +0 -1
- package/dist/js/components/Content/TextListItem.d.ts +0 -16
- package/dist/js/components/Content/TextListItem.d.ts.map +0 -1
- package/dist/js/components/Content/TextListItem.js +0 -26
- package/dist/js/components/Content/TextListItem.js.map +0 -1
- package/src/components/Content/TextContent.tsx +0 -25
- package/src/components/Content/TextList.tsx +0 -43
- package/src/components/Content/TextListItem.tsx +0 -40
- package/src/components/Content/__tests__/Generated/TextContent.test.tsx +0 -13
- package/src/components/Content/__tests__/Generated/TextList.test.tsx +0 -13
- package/src/components/Content/__tests__/Generated/TextListItem.test.tsx +0 -13
- package/src/components/Content/__tests__/Generated/__snapshots__/TextContent.test.tsx.snap +0 -11
- package/src/components/Content/__tests__/Generated/__snapshots__/TextList.test.tsx.snap +0 -11
- package/src/components/Content/__tests__/Generated/__snapshots__/TextListItem.test.tsx.snap +0 -11
- package/src/components/Content/__tests__/TextContent.test.tsx +0 -48
- package/src/components/Content/__tests__/TextList.test.tsx +0 -52
- package/src/components/Content/__tests__/TextListItem.test.tsx +0 -47
- package/src/components/Content/__tests__/__snapshots__/TextContent.test.tsx.snap +0 -11
- package/src/components/Content/__tests__/__snapshots__/TextList.test.tsx.snap +0 -11
- package/src/components/Content/__tests__/__snapshots__/TextListItem.test.tsx.snap +0 -11
- package/src/components/Text/examples/Text.md +0 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Slider, SliderOnChangeEvent,
|
|
2
|
+
import { Slider, SliderOnChangeEvent, Content } from '@patternfly/react-core';
|
|
3
3
|
|
|
4
4
|
export const SliderDiscrete: React.FunctionComponent = () => {
|
|
5
5
|
const initialValues = {
|
|
@@ -50,15 +50,15 @@ export const SliderDiscrete: React.FunctionComponent = () => {
|
|
|
50
50
|
|
|
51
51
|
return (
|
|
52
52
|
<>
|
|
53
|
-
<
|
|
53
|
+
<Content component="h3">Slider value is: {numValue.value1}</Content>
|
|
54
54
|
<Slider
|
|
55
55
|
value={initialValues.value1}
|
|
56
56
|
onChange={(_event: SliderOnChangeEvent, value: number) => handleChange(value, 'value1')}
|
|
57
57
|
customSteps={steps}
|
|
58
58
|
/>
|
|
59
59
|
<br />
|
|
60
|
-
<
|
|
61
|
-
<
|
|
60
|
+
<Content component="h3">Slider value is: {numValue.value2}</Content>
|
|
61
|
+
<Content component="small">(min = 0, max = 200, step = 50) </Content>
|
|
62
62
|
<Slider
|
|
63
63
|
value={initialValues.value2}
|
|
64
64
|
onChange={(_event: SliderOnChangeEvent, value: number) => handleChange(value, 'value2')}
|
|
@@ -67,8 +67,8 @@ export const SliderDiscrete: React.FunctionComponent = () => {
|
|
|
67
67
|
showTicks
|
|
68
68
|
/>
|
|
69
69
|
<br />
|
|
70
|
-
<
|
|
71
|
-
<
|
|
70
|
+
<Content component="h3">Slider value is: {Math.floor(numValue.value3)}</Content>
|
|
71
|
+
<Content component="small">(min = -25, max = 75, step = 10, boundaries not shown) </Content>
|
|
72
72
|
<Slider
|
|
73
73
|
value={initialValues.value3}
|
|
74
74
|
onChange={(_event: SliderOnChangeEvent, value: number) => handleChange(value, 'value3')}
|
|
@@ -79,8 +79,8 @@ export const SliderDiscrete: React.FunctionComponent = () => {
|
|
|
79
79
|
showBoundaries={false}
|
|
80
80
|
/>
|
|
81
81
|
<br />
|
|
82
|
-
<
|
|
83
|
-
<
|
|
82
|
+
<Content component="h3">Slider value is: {Math.floor(numValue.value4)}</Content>
|
|
83
|
+
<Content component="small">(min = -25, max = 75, step = 10, boundaries shown) </Content>
|
|
84
84
|
<Slider
|
|
85
85
|
value={initialValues.value4}
|
|
86
86
|
onChange={(_event: SliderOnChangeEvent, value: number) => handleChange(value, 'value4')}
|
|
@@ -90,8 +90,8 @@ export const SliderDiscrete: React.FunctionComponent = () => {
|
|
|
90
90
|
showTicks
|
|
91
91
|
/>
|
|
92
92
|
<br />
|
|
93
|
-
<
|
|
94
|
-
<
|
|
93
|
+
<Content component="h3">Slider value is: {Math.floor(numValue.value5)}</Content>
|
|
94
|
+
<Content component="small">(min = -25, max = 75, step = 10, boundaries shown, ticks not shown) </Content>
|
|
95
95
|
<Slider
|
|
96
96
|
value={initialValues.value5}
|
|
97
97
|
onChange={(_event: SliderOnChangeEvent, value: number) => handleChange(value, 'value5')}
|
|
@@ -100,8 +100,8 @@ export const SliderDiscrete: React.FunctionComponent = () => {
|
|
|
100
100
|
step={10}
|
|
101
101
|
/>
|
|
102
102
|
<br />
|
|
103
|
-
<
|
|
104
|
-
<
|
|
103
|
+
<Content component="h3">Slider value is: {Math.floor(numValue.value6)}</Content>
|
|
104
|
+
<Content component="small">(max = 5, custom steps) </Content>
|
|
105
105
|
<Slider
|
|
106
106
|
value={initialValues.value6}
|
|
107
107
|
showTicks
|
|
@@ -110,8 +110,8 @@ export const SliderDiscrete: React.FunctionComponent = () => {
|
|
|
110
110
|
onChange={(_event: SliderOnChangeEvent, value: number) => handleChange(value, 'value6')}
|
|
111
111
|
/>
|
|
112
112
|
<br />
|
|
113
|
-
<
|
|
114
|
-
<
|
|
113
|
+
<Content component="h3">Slider value is: {Math.floor(numValue.value7)}</Content>
|
|
114
|
+
<Content component="small">(min = 12, max = 86, custom steps with non linear data) </Content>
|
|
115
115
|
<Slider
|
|
116
116
|
value={initialValues.value7}
|
|
117
117
|
showTicks
|
|
@@ -1,29 +1,27 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Spinner,
|
|
2
|
+
import { Spinner, Content } from '@patternfly/react-core';
|
|
3
3
|
|
|
4
4
|
export const SpinnerInline: React.FunctionComponent = () => (
|
|
5
5
|
<React.Fragment>
|
|
6
|
-
<
|
|
7
|
-
<
|
|
6
|
+
<Content>
|
|
7
|
+
<h1>
|
|
8
8
|
Heading
|
|
9
9
|
<Spinner isInline aria-label="Spinner in a heading" />
|
|
10
|
-
</
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
</Text>
|
|
14
|
-
<Text component="h2">
|
|
10
|
+
</h1>
|
|
11
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit Sed hendrerit nisi in cursus maximus.</p>
|
|
12
|
+
<h2>
|
|
15
13
|
Second level
|
|
16
14
|
<Spinner isInline aria-label="spinner in a subheading" />
|
|
17
|
-
</
|
|
18
|
-
<
|
|
15
|
+
</h2>
|
|
16
|
+
<p>
|
|
19
17
|
Curabitur accumsan turpis pharetra blandit. Quisque condimentum maximus mi,{' '}
|
|
20
18
|
<Spinner isInline aria-label="Spinner in a paragraph" /> sit amet commodo arcu rutrum id. Proin pretium urna vel
|
|
21
19
|
cursus venenatis. Suspendisse potenti.
|
|
22
|
-
</
|
|
20
|
+
</p>
|
|
23
21
|
<small>
|
|
24
22
|
Sometimes you need small text
|
|
25
23
|
<Spinner isInline aria-label="Spinner in a small element" />
|
|
26
24
|
</small>
|
|
27
|
-
</
|
|
25
|
+
</Content>
|
|
28
26
|
</React.Fragment>
|
|
29
27
|
);
|
|
@@ -92,10 +92,12 @@ export const Wizard = ({
|
|
|
92
92
|
}
|
|
93
93
|
}, [startIndex]);
|
|
94
94
|
|
|
95
|
-
// When
|
|
95
|
+
// When the number of steps changes and pushes activeStepIndex out of bounds, reset back to startIndex
|
|
96
96
|
React.useEffect(() => {
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
if (activeStepIndex > initialSteps.length) {
|
|
98
|
+
setActiveStepIndex(startIndex);
|
|
99
|
+
}
|
|
100
|
+
}, [initialSteps, activeStepIndex, startIndex]);
|
|
99
101
|
|
|
100
102
|
const focusMainContentElement = () =>
|
|
101
103
|
setTimeout(() => {
|
|
@@ -74,10 +74,20 @@ export const WizardContextProvider: React.FunctionComponent<WizardContextProvide
|
|
|
74
74
|
const [currentSteps, setCurrentSteps] = React.useState<WizardStepType[]>(initialSteps);
|
|
75
75
|
const [currentFooter, setCurrentFooter] = React.useState<WizardFooterType>();
|
|
76
76
|
|
|
77
|
-
// Callback to update steps if
|
|
77
|
+
// Callback to update steps if the overall step number changes
|
|
78
78
|
React.useEffect(() => {
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
if (currentSteps.length !== initialSteps.length) {
|
|
80
|
+
const newSteps = initialSteps.map((newStep) => {
|
|
81
|
+
const currentStepMatch = currentSteps.find((step) => step.id === newStep.id);
|
|
82
|
+
// If an existing step has the same id as a new step, carry over props
|
|
83
|
+
if (currentStepMatch) {
|
|
84
|
+
return { ...currentStepMatch, ...newStep };
|
|
85
|
+
}
|
|
86
|
+
return newStep;
|
|
87
|
+
});
|
|
88
|
+
setCurrentSteps(newSteps);
|
|
89
|
+
}
|
|
90
|
+
}, [currentSteps, initialSteps]);
|
|
81
91
|
|
|
82
92
|
// Combined initial and current state steps
|
|
83
93
|
const steps = React.useMemo(
|
|
@@ -130,7 +140,6 @@ export const WizardContextProvider: React.FunctionComponent<WizardContextProvide
|
|
|
130
140
|
if (prevStep.id === step.id) {
|
|
131
141
|
return { ...prevStep, ...step };
|
|
132
142
|
}
|
|
133
|
-
|
|
134
143
|
return prevStep;
|
|
135
144
|
})
|
|
136
145
|
),
|
package/src/demos/Banner.md
CHANGED
|
@@ -13,17 +13,7 @@ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/Dashboard
|
|
|
13
13
|
|
|
14
14
|
```js isFullscreen
|
|
15
15
|
import React from 'react';
|
|
16
|
-
import {
|
|
17
|
-
Banner,
|
|
18
|
-
Card,
|
|
19
|
-
CardBody,
|
|
20
|
-
Flex,
|
|
21
|
-
Gallery,
|
|
22
|
-
GalleryItem,
|
|
23
|
-
PageSection,
|
|
24
|
-
TextContent,
|
|
25
|
-
Text
|
|
26
|
-
} from '@patternfly/react-core';
|
|
16
|
+
import { Banner, Card, CardBody, Flex, Gallery, GalleryItem, PageSection, Content } from '@patternfly/react-core';
|
|
27
17
|
|
|
28
18
|
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
29
19
|
import { css } from '@patternfly/react-styles';
|
|
@@ -48,13 +38,13 @@ class BannerDemo extends React.Component {
|
|
|
48
38
|
</Flex>
|
|
49
39
|
</Banner>
|
|
50
40
|
<PageSection>
|
|
51
|
-
<
|
|
52
|
-
<
|
|
53
|
-
<
|
|
54
|
-
Body text should be
|
|
41
|
+
<Content>
|
|
42
|
+
<h1>Main title</h1>
|
|
43
|
+
<p>
|
|
44
|
+
Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
|
|
55
45
|
of it’s relative line height of 1.5.
|
|
56
|
-
</
|
|
57
|
-
</
|
|
46
|
+
</p>
|
|
47
|
+
</Content>
|
|
58
48
|
</PageSection>
|
|
59
49
|
<PageSection>
|
|
60
50
|
<Gallery hasGutter>
|
|
@@ -87,8 +77,7 @@ import {
|
|
|
87
77
|
Gallery,
|
|
88
78
|
GalleryItem,
|
|
89
79
|
PageSection,
|
|
90
|
-
|
|
91
|
-
Text
|
|
80
|
+
Content
|
|
92
81
|
} from '@patternfly/react-core';
|
|
93
82
|
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
94
83
|
import { css } from '@patternfly/react-styles';
|
|
@@ -122,13 +111,13 @@ class BannerDemo extends React.Component {
|
|
|
122
111
|
<FlexItem grow={{ default: 'grow' }} style={{ minHeight: 0 }}>
|
|
123
112
|
<DashboardWrapper breadcrumb={null}>
|
|
124
113
|
<PageSection>
|
|
125
|
-
<
|
|
126
|
-
<
|
|
127
|
-
<
|
|
128
|
-
Body text should be
|
|
114
|
+
<Content>
|
|
115
|
+
<h1>Main title</h1>
|
|
116
|
+
<p>
|
|
117
|
+
Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
|
|
129
118
|
of it’s relative line height of 1.5.
|
|
130
|
-
</
|
|
131
|
-
</
|
|
119
|
+
</p>
|
|
120
|
+
</Content>
|
|
132
121
|
</PageSection>
|
|
133
122
|
<PageSection>
|
|
134
123
|
<Gallery hasGutter>
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
CardHeader,
|
|
8
8
|
CardTitle,
|
|
9
9
|
CardBody,
|
|
10
|
+
Content,
|
|
10
11
|
Divider,
|
|
11
12
|
Dropdown,
|
|
12
13
|
DropdownItem,
|
|
@@ -24,8 +25,6 @@ import {
|
|
|
24
25
|
OverflowMenuItem,
|
|
25
26
|
PageSection,
|
|
26
27
|
Pagination,
|
|
27
|
-
TextContent,
|
|
28
|
-
Text,
|
|
29
28
|
Toolbar,
|
|
30
29
|
ToolbarItem,
|
|
31
30
|
ToolbarFilter,
|
|
@@ -470,10 +469,10 @@ export const CardViewBasic: React.FunctionComponent = () => {
|
|
|
470
469
|
<React.Fragment>
|
|
471
470
|
<DashboardWrapper mainContainerId="main-content-card-view-default-nav" breadcrumb={null}>
|
|
472
471
|
<PageSection>
|
|
473
|
-
<
|
|
474
|
-
<
|
|
475
|
-
<
|
|
476
|
-
</
|
|
472
|
+
<Content>
|
|
473
|
+
<h1>Projects</h1>
|
|
474
|
+
<p>This is a demo that showcases PatternFly cards.</p>
|
|
475
|
+
</Content>
|
|
477
476
|
<Toolbar id="toolbar-group-types" clearAllFilters={onDelete}>
|
|
478
477
|
<ToolbarContent>{toolbarItems}</ToolbarContent>
|
|
479
478
|
</Toolbar>
|
|
@@ -2,6 +2,7 @@ import React, { useState } from 'react';
|
|
|
2
2
|
import {
|
|
3
3
|
Breadcrumb,
|
|
4
4
|
BreadcrumbItem,
|
|
5
|
+
Content,
|
|
5
6
|
Nav,
|
|
6
7
|
NavItem,
|
|
7
8
|
NavList,
|
|
@@ -10,9 +11,7 @@ import {
|
|
|
10
11
|
PageSection,
|
|
11
12
|
PageSidebar,
|
|
12
13
|
PageSidebarBody,
|
|
13
|
-
SkipToContent
|
|
14
|
-
Text,
|
|
15
|
-
TextContent
|
|
14
|
+
SkipToContent
|
|
16
15
|
} from '../components';
|
|
17
16
|
import { DashboardHeader } from './DashboardHeader';
|
|
18
17
|
|
|
@@ -38,10 +37,10 @@ export const DashboardBreadcrumb = (
|
|
|
38
37
|
|
|
39
38
|
const PageTemplateTitle = (
|
|
40
39
|
<PageSection>
|
|
41
|
-
<
|
|
42
|
-
<
|
|
43
|
-
<
|
|
44
|
-
</
|
|
40
|
+
<Content>
|
|
41
|
+
<h1>Main title</h1>
|
|
42
|
+
<p>This is a full page demo.</p>
|
|
43
|
+
</Content>
|
|
45
44
|
</PageSection>
|
|
46
45
|
);
|
|
47
46
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Button,
|
|
4
|
+
Content,
|
|
4
5
|
DataList,
|
|
5
6
|
DataListItem,
|
|
6
7
|
DataListCell,
|
|
@@ -14,11 +15,7 @@ import {
|
|
|
14
15
|
OverflowMenuControl,
|
|
15
16
|
OverflowMenuItem,
|
|
16
17
|
PageSection,
|
|
17
|
-
PageSectionVariants,
|
|
18
18
|
Pagination,
|
|
19
|
-
Text,
|
|
20
|
-
TextContent,
|
|
21
|
-
TextVariants,
|
|
22
19
|
Toolbar,
|
|
23
20
|
ToolbarItem,
|
|
24
21
|
ToolbarContent
|
|
@@ -76,11 +73,11 @@ export const DataListBasic: React.FunctionComponent = () => {
|
|
|
76
73
|
return (
|
|
77
74
|
<React.Fragment>
|
|
78
75
|
<DashboardWrapper mainContainerId="main-content-datalist-view-default-nav" breadcrumb={null}>
|
|
79
|
-
<PageSection
|
|
80
|
-
<
|
|
81
|
-
<
|
|
82
|
-
<
|
|
83
|
-
</
|
|
76
|
+
<PageSection>
|
|
77
|
+
<Content>
|
|
78
|
+
<h1>Projects</h1>
|
|
79
|
+
<p>This is a demo that showcases PatternFly data list</p>
|
|
80
|
+
</Content>
|
|
84
81
|
</PageSection>
|
|
85
82
|
<PageSection isFilled>
|
|
86
83
|
<Toolbar id="toolbar-group-types">
|
|
@@ -94,13 +91,13 @@ export const DataListBasic: React.FunctionComponent = () => {
|
|
|
94
91
|
<DataListCell isFilled={false} key="buttons1">
|
|
95
92
|
<Flex direction={{ default: 'column' }}>
|
|
96
93
|
<FlexItem>
|
|
97
|
-
<
|
|
94
|
+
<Content component="p">patternfly</Content>
|
|
98
95
|
</FlexItem>
|
|
99
96
|
<FlexItem>
|
|
100
|
-
<
|
|
97
|
+
<Content component="small">
|
|
101
98
|
Working repo for
|
|
102
99
|
<a href="http://www.patternfly.org/">PatternFly</a>
|
|
103
|
-
</
|
|
100
|
+
</Content>
|
|
104
101
|
</FlexItem>
|
|
105
102
|
<FlexItem>
|
|
106
103
|
<Flex spaceItems={{ default: 'spaceItemsSm' }}>
|
|
@@ -139,10 +136,10 @@ export const DataListBasic: React.FunctionComponent = () => {
|
|
|
139
136
|
<DataListCell isFilled={false} key="buttons2">
|
|
140
137
|
<Flex direction={{ default: 'column' }}>
|
|
141
138
|
<FlexItem>
|
|
142
|
-
<
|
|
139
|
+
<Content component="small">patternfly-elements</Content>
|
|
143
140
|
</FlexItem>
|
|
144
141
|
<FlexItem>
|
|
145
|
-
<
|
|
142
|
+
<Content component="small">PatternFly elements</Content>
|
|
146
143
|
</FlexItem>
|
|
147
144
|
<FlexItem>
|
|
148
145
|
<Flex spaceItems={{ default: 'spaceItemsSm' }}>
|
|
@@ -191,7 +188,7 @@ export const DataListBasic: React.FunctionComponent = () => {
|
|
|
191
188
|
<DataListCell isFilled={false} key="Demo-item3">
|
|
192
189
|
<Flex direction={{ default: 'column' }}>
|
|
193
190
|
<FlexItem>
|
|
194
|
-
<
|
|
191
|
+
<Content component="small">patternfly-unified-design-kit</Content>
|
|
195
192
|
</FlexItem>
|
|
196
193
|
</Flex>
|
|
197
194
|
</DataListCell>,
|
|
@@ -216,13 +213,13 @@ export const DataListBasic: React.FunctionComponent = () => {
|
|
|
216
213
|
<DataListCell isFilled={false} key="buttons4">
|
|
217
214
|
<Flex direction={{ default: 'column' }}>
|
|
218
215
|
<FlexItem>
|
|
219
|
-
<
|
|
216
|
+
<Content component="small">patternfly</Content>
|
|
220
217
|
</FlexItem>
|
|
221
218
|
<FlexItem>
|
|
222
|
-
<
|
|
219
|
+
<Content component="small">
|
|
223
220
|
Working repo for
|
|
224
221
|
<a href="http://www.patternfly.org/">PatternFly</a>
|
|
225
|
-
</
|
|
222
|
+
</Content>
|
|
226
223
|
</FlexItem>
|
|
227
224
|
<FlexItem>
|
|
228
225
|
<Flex spaceItems={{ default: 'spaceItemsSm' }}>
|
|
@@ -262,10 +259,10 @@ export const DataListBasic: React.FunctionComponent = () => {
|
|
|
262
259
|
<DataListCell isFilled={false} key="buttons5">
|
|
263
260
|
<Flex direction={{ default: 'column' }}>
|
|
264
261
|
<FlexItem>
|
|
265
|
-
<
|
|
262
|
+
<Content component="small">patternfly-elements</Content>
|
|
266
263
|
</FlexItem>
|
|
267
264
|
<FlexItem>
|
|
268
|
-
<
|
|
265
|
+
<Content component="small">PatternFly elements</Content>
|
|
269
266
|
</FlexItem>
|
|
270
267
|
<FlexItem>
|
|
271
268
|
<Flex spaceItems={{ default: 'spaceItemsSm' }}>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Button,
|
|
4
|
+
Content,
|
|
4
5
|
DataList,
|
|
5
6
|
DataListItem,
|
|
6
7
|
DataListItemRow,
|
|
@@ -22,10 +23,7 @@ import {
|
|
|
22
23
|
SearchInput,
|
|
23
24
|
Tooltip,
|
|
24
25
|
Icon,
|
|
25
|
-
PageSection
|
|
26
|
-
PageSectionVariants,
|
|
27
|
-
Text,
|
|
28
|
-
TextContent
|
|
26
|
+
PageSection
|
|
29
27
|
} from '@patternfly/react-core';
|
|
30
28
|
|
|
31
29
|
import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
|
|
@@ -135,11 +133,11 @@ export const DataListExpandableControlInToolbar: React.FunctionComponent = () =>
|
|
|
135
133
|
return (
|
|
136
134
|
<React.Fragment>
|
|
137
135
|
<DashboardWrapper mainContainerId="main-content-datalist-view-default-nav" breadcrumb={null}>
|
|
138
|
-
<PageSection
|
|
139
|
-
<
|
|
140
|
-
<
|
|
141
|
-
<
|
|
142
|
-
</
|
|
136
|
+
<PageSection>
|
|
137
|
+
<Content>
|
|
138
|
+
<h1>Projects</h1>
|
|
139
|
+
<p>This is a demo that showcases PatternFly data list</p>
|
|
140
|
+
</Content>
|
|
143
141
|
</PageSection>
|
|
144
142
|
<PageSection isFilled>
|
|
145
143
|
{renderToolbar()}
|
|
@@ -5,12 +5,10 @@ import {
|
|
|
5
5
|
DescriptionListGroup,
|
|
6
6
|
DescriptionListDescription,
|
|
7
7
|
PageSection,
|
|
8
|
-
PageSectionVariants,
|
|
9
8
|
Card,
|
|
10
9
|
CardBody,
|
|
11
10
|
CardHeader,
|
|
12
|
-
|
|
13
|
-
Text,
|
|
11
|
+
Content,
|
|
14
12
|
Title,
|
|
15
13
|
Divider,
|
|
16
14
|
Flex,
|
|
@@ -21,11 +19,11 @@ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/Dashboard
|
|
|
21
19
|
|
|
22
20
|
export const DescriptionListBasic: React.FunctionComponent = () => (
|
|
23
21
|
<DashboardWrapper>
|
|
24
|
-
<PageSection
|
|
25
|
-
<
|
|
26
|
-
<
|
|
27
|
-
<
|
|
28
|
-
</
|
|
22
|
+
<PageSection>
|
|
23
|
+
<Content>
|
|
24
|
+
<Content component="h1">Projects</Content>
|
|
25
|
+
<Content component="p">This is a full page demo</Content>
|
|
26
|
+
</Content>
|
|
29
27
|
</PageSection>
|
|
30
28
|
<PageSection>
|
|
31
29
|
<Card>
|
package/src/demos/JumpLinks.md
CHANGED
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
SidebarPanel,
|
|
33
33
|
Switch,
|
|
34
34
|
Title,
|
|
35
|
-
|
|
35
|
+
Content,
|
|
36
36
|
getResizeObserver
|
|
37
37
|
} from '@patternfly/react-core';
|
|
38
38
|
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
@@ -101,7 +101,7 @@ ScrollspyH2 = () => {
|
|
|
101
101
|
</SidebarPanel>
|
|
102
102
|
<SidebarContent hasNoBackground>
|
|
103
103
|
<PageSection>
|
|
104
|
-
<
|
|
104
|
+
<Content>
|
|
105
105
|
{headings.map(i => (
|
|
106
106
|
<div key={i} style={{ maxWidth: '800px', marginBottom: '32px' }}>
|
|
107
107
|
<h2 id={`heading-${i}`} tabIndex={-1}>
|
|
@@ -128,7 +128,7 @@ ScrollspyH2 = () => {
|
|
|
128
128
|
</p>
|
|
129
129
|
</div>
|
|
130
130
|
))}
|
|
131
|
-
</
|
|
131
|
+
</Content>
|
|
132
132
|
</PageSection>
|
|
133
133
|
</SidebarContent>
|
|
134
134
|
</Sidebar>
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
BreadcrumbItem,
|
|
7
7
|
Button,
|
|
8
8
|
ButtonVariant,
|
|
9
|
+
Content,
|
|
9
10
|
Divider,
|
|
10
11
|
Dropdown,
|
|
11
12
|
DropdownItem,
|
|
@@ -32,8 +33,6 @@ import {
|
|
|
32
33
|
PageSidebar,
|
|
33
34
|
PageSidebarBody,
|
|
34
35
|
SkipToContent,
|
|
35
|
-
TextContent,
|
|
36
|
-
Text,
|
|
37
36
|
PageToggleButton,
|
|
38
37
|
Masthead,
|
|
39
38
|
MastheadMain,
|
|
@@ -530,13 +529,13 @@ export const NotificationDrawerBasic: React.FunctionComponent = () => {
|
|
|
530
529
|
mainContainerId={pageId}
|
|
531
530
|
>
|
|
532
531
|
<PageSection>
|
|
533
|
-
<
|
|
534
|
-
<
|
|
535
|
-
<
|
|
536
|
-
Body text should be
|
|
532
|
+
<Content>
|
|
533
|
+
<h1>Main title</h1>
|
|
534
|
+
<p>
|
|
535
|
+
Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
|
|
537
536
|
of its relative line height of 1.5.
|
|
538
|
-
</
|
|
539
|
-
</
|
|
537
|
+
</p>
|
|
538
|
+
</Content>
|
|
540
539
|
</PageSection>
|
|
541
540
|
<PageSection>Panel section content</PageSection>
|
|
542
541
|
</Page>
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
BreadcrumbItem,
|
|
7
7
|
Button,
|
|
8
8
|
ButtonVariant,
|
|
9
|
+
Content,
|
|
9
10
|
Divider,
|
|
10
11
|
Dropdown,
|
|
11
12
|
DropdownItem,
|
|
@@ -34,8 +35,6 @@ import {
|
|
|
34
35
|
PageSidebar,
|
|
35
36
|
PageSidebarBody,
|
|
36
37
|
SkipToContent,
|
|
37
|
-
TextContent,
|
|
38
|
-
Text,
|
|
39
38
|
PageToggleButton,
|
|
40
39
|
Masthead,
|
|
41
40
|
MastheadMain,
|
|
@@ -769,13 +768,13 @@ export const NotificationDrawerGrouped: React.FunctionComponent = () => {
|
|
|
769
768
|
mainContainerId={pageId}
|
|
770
769
|
>
|
|
771
770
|
<PageSection>
|
|
772
|
-
<
|
|
773
|
-
<
|
|
774
|
-
<
|
|
775
|
-
Body text should be
|
|
771
|
+
<Content>
|
|
772
|
+
<h1>Main title</h1>
|
|
773
|
+
<p>
|
|
774
|
+
Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
|
|
776
775
|
of its relative line height of 1.5.
|
|
777
|
-
</
|
|
778
|
-
</
|
|
776
|
+
</p>
|
|
777
|
+
</Content>
|
|
779
778
|
</PageSection>
|
|
780
779
|
<PageSection>Panel section content</PageSection>
|
|
781
780
|
</Page>
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
Button,
|
|
9
9
|
ButtonVariant,
|
|
10
10
|
Card,
|
|
11
|
+
Content,
|
|
11
12
|
Divider,
|
|
12
13
|
Dropdown,
|
|
13
14
|
DropdownGroup,
|
|
@@ -32,9 +33,6 @@ import {
|
|
|
32
33
|
PageToggleButton,
|
|
33
34
|
Pagination,
|
|
34
35
|
PaginationVariant,
|
|
35
|
-
Text,
|
|
36
|
-
TextContent,
|
|
37
|
-
TextVariants,
|
|
38
36
|
Toolbar,
|
|
39
37
|
ToolbarContent,
|
|
40
38
|
ToolbarGroup,
|
|
@@ -448,10 +446,10 @@ export const PaginatedTableAction = () => {
|
|
|
448
446
|
</Breadcrumb>
|
|
449
447
|
</PageBreadcrumb>
|
|
450
448
|
<PageSection variant="light">
|
|
451
|
-
<
|
|
452
|
-
<
|
|
453
|
-
<
|
|
454
|
-
</
|
|
449
|
+
<Content>
|
|
450
|
+
<h1>{translation.title}</h1>
|
|
451
|
+
<p>{translation.body}</p>
|
|
452
|
+
</Content>
|
|
455
453
|
</PageSection>
|
|
456
454
|
<PageSection>
|
|
457
455
|
<Card>
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
Button,
|
|
9
9
|
ButtonVariant,
|
|
10
10
|
Card,
|
|
11
|
+
Content,
|
|
11
12
|
Divider,
|
|
12
13
|
Dropdown,
|
|
13
14
|
DropdownGroup,
|
|
@@ -32,9 +33,6 @@ import {
|
|
|
32
33
|
PageToggleButton,
|
|
33
34
|
Pagination,
|
|
34
35
|
PaginationVariant,
|
|
35
|
-
Text,
|
|
36
|
-
TextContent,
|
|
37
|
-
TextVariants,
|
|
38
36
|
Toolbar,
|
|
39
37
|
ToolbarContent,
|
|
40
38
|
ToolbarGroup,
|
|
@@ -474,10 +472,10 @@ export const PaginatedTableAction: React.FunctionComponent = () => {
|
|
|
474
472
|
</Breadcrumb>
|
|
475
473
|
</PageBreadcrumb>
|
|
476
474
|
<PageSection variant="light">
|
|
477
|
-
<
|
|
478
|
-
<
|
|
479
|
-
<
|
|
480
|
-
</
|
|
475
|
+
<Content>
|
|
476
|
+
<h1>{translation.title}</h1>
|
|
477
|
+
<p>{translation.body}</p>
|
|
478
|
+
</Content>
|
|
481
479
|
</PageSection>
|
|
482
480
|
<PageSection>
|
|
483
481
|
<Card>
|