@patternfly/react-core 6.0.0-alpha.87 → 6.0.0-alpha.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/components/package.json +1 -1
- package/deprecated/package.json +1 -1
- package/dist/dynamic/components/AboutModal/package.json +1 -1
- package/dist/dynamic/components/Accordion/package.json +1 -1
- package/dist/dynamic/components/ActionList/package.json +1 -1
- package/dist/dynamic/components/Alert/package.json +1 -1
- package/dist/dynamic/components/Avatar/package.json +1 -1
- package/dist/dynamic/components/BackToTop/package.json +1 -1
- package/dist/dynamic/components/Backdrop/package.json +1 -1
- package/dist/dynamic/components/BackgroundImage/package.json +1 -1
- package/dist/dynamic/components/Badge/package.json +1 -1
- package/dist/dynamic/components/Banner/package.json +1 -1
- package/dist/dynamic/components/Brand/package.json +1 -1
- package/dist/dynamic/components/Breadcrumb/package.json +1 -1
- package/dist/dynamic/components/Button/package.json +1 -1
- package/dist/dynamic/components/CalendarMonth/package.json +1 -1
- package/dist/dynamic/components/Card/package.json +1 -1
- package/dist/dynamic/components/Checkbox/package.json +1 -1
- package/dist/dynamic/components/ClipboardCopy/package.json +1 -1
- package/dist/dynamic/components/CodeBlock/package.json +1 -1
- package/dist/dynamic/components/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/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/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/umd/assets/{output-InLLAkYl.css → output-D3SMJk_R.css} +5393 -5393
- 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 +2 -2
- 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/Slider/examples/Slider.md +1 -1
- 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/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,15 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Content, ContentVariants } from '@patternfly/react-core';
|
|
3
3
|
|
|
4
4
|
export const ContentDescriptionList: React.FunctionComponent = () => (
|
|
5
|
-
<
|
|
6
|
-
<
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
</
|
|
10
|
-
<
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
<TextListItem component={TextListItemVariants.dd}>A technology to make HTML look better</TextListItem>
|
|
14
|
-
</TextList>
|
|
5
|
+
<Content component={ContentVariants.dl}>
|
|
6
|
+
<Content component={ContentVariants.dt}>Web</Content>
|
|
7
|
+
<Content component={ContentVariants.dd}>The part of the Internet that contains websites and web pages</Content>
|
|
8
|
+
<Content component={ContentVariants.dt}>HTML</Content>
|
|
9
|
+
<Content component={ContentVariants.dd}>A markup language for creating web pages</Content>
|
|
10
|
+
<Content component={ContentVariants.dt}>CSS</Content>
|
|
11
|
+
<Content component={ContentVariants.dd}>A technology to make HTML look better</Content>
|
|
12
|
+
</Content>
|
|
15
13
|
);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Content, ContentVariants } from '@patternfly/react-core';
|
|
3
3
|
|
|
4
4
|
export const ContentHeadings: React.FunctionComponent = () => (
|
|
5
5
|
<>
|
|
6
|
-
<
|
|
7
|
-
<
|
|
8
|
-
<
|
|
9
|
-
<
|
|
10
|
-
<
|
|
11
|
-
<
|
|
6
|
+
<Content component={ContentVariants.h1}>Hello World</Content>
|
|
7
|
+
<Content component={ContentVariants.h2}>Second level</Content>
|
|
8
|
+
<Content component={ContentVariants.h3}>Third level</Content>
|
|
9
|
+
<Content component={ContentVariants.h4}>Fourth level</Content>
|
|
10
|
+
<Content component={ContentVariants.h5}>Fifth level</Content>
|
|
11
|
+
<Content component={ContentVariants.h6}>Sixth level</Content>
|
|
12
12
|
</>
|
|
13
13
|
);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Content, ContentVariants } from '@patternfly/react-core';
|
|
3
3
|
|
|
4
4
|
export const ContentOrderedList: React.FunctionComponent = () => (
|
|
5
|
-
<
|
|
6
|
-
<
|
|
7
|
-
<
|
|
8
|
-
<
|
|
9
|
-
<
|
|
10
|
-
<
|
|
11
|
-
<
|
|
12
|
-
<
|
|
13
|
-
</
|
|
5
|
+
<Content component={ContentVariants.ol}>
|
|
6
|
+
<Content component={ContentVariants.li}>Donec blandit a lorem id convallis.</Content>
|
|
7
|
+
<Content component={ContentVariants.li}>Cras gravida arcu at diam gravida gravida.</Content>
|
|
8
|
+
<Content component={ContentVariants.li}>Integer in volutpat libero.</Content>
|
|
9
|
+
<Content component={ContentVariants.li}>Donec a diam tellus.</Content>
|
|
10
|
+
<Content component={ContentVariants.li}>Aenean nec tortor orci.</Content>
|
|
11
|
+
<Content component={ContentVariants.li}>Quisque aliquam cursus urna, non bibendum massa viverra eget.</Content>
|
|
12
|
+
<Content component={ContentVariants.li}>Vivamus maximus ultricies pulvinar.</Content>
|
|
13
|
+
</Content>
|
|
14
14
|
);
|
|
@@ -1,24 +1,28 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Content, ContentVariants } from '@patternfly/react-core';
|
|
3
3
|
|
|
4
4
|
export const ContentPlainList: React.FunctionComponent = () => (
|
|
5
5
|
<>
|
|
6
|
-
<
|
|
7
|
-
<
|
|
8
|
-
<
|
|
9
|
-
<
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
6
|
+
<Content component={ContentVariants.h3}>Plain unordered list</Content>
|
|
7
|
+
<Content component={ContentVariants.ul} isPlainList>
|
|
8
|
+
<Content component={ContentVariants.li}>In fermentum leo eu lectus mollis, quis dictum mi aliquet.</Content>
|
|
9
|
+
<Content component={ContentVariants.li}>Morbi eu nulla lobortis, lobortis est in, fringilla felis.</Content>
|
|
10
|
+
<Content component={ContentVariants.li}>
|
|
11
|
+
Aliquam nec felis in sapien venenatis viverra fermentum nec lectus.
|
|
12
|
+
</Content>
|
|
13
|
+
<Content component={ContentVariants.li}>Ut non enim metus.</Content>
|
|
14
|
+
</Content>
|
|
15
|
+
<Content component={ContentVariants.h3}>Plain ordered list</Content>
|
|
16
|
+
<Content component={ContentVariants.ol} isPlainList>
|
|
17
|
+
<Content component={ContentVariants.li}>Donec blandit a lorem id convallis.</Content>
|
|
18
|
+
<Content component={ContentVariants.li}>
|
|
19
|
+
{' '}
|
|
20
|
+
component={ContentVariants.li}Cras gravida arcu at diam gravida gravida.
|
|
21
|
+
</Content>
|
|
22
|
+
<Content component={ContentVariants.li}>Integer in volutpat libero.</Content>
|
|
23
|
+
<Content component={ContentVariants.li}>Aenean nec tortor orci.</Content>
|
|
24
|
+
<Content component={ContentVariants.li}>Quisque aliquam cursus urna, non bibendum massa viverra eget.</Content>
|
|
25
|
+
<Content component={ContentVariants.li}>Vivamus maximus ultricies pulvinar.</Content>
|
|
26
|
+
</Content>
|
|
23
27
|
</>
|
|
24
28
|
);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Content, ContentVariants } from '@patternfly/react-core';
|
|
3
3
|
|
|
4
4
|
export const ContentUnorderedList: React.FunctionComponent = () => (
|
|
5
|
-
<
|
|
6
|
-
<
|
|
7
|
-
<
|
|
8
|
-
<
|
|
5
|
+
<Content component={ContentVariants.ul}>
|
|
6
|
+
<Content component={ContentVariants.li}>In fermentum leo eu lectus mollis, quis dictum mi aliquet.</Content>
|
|
7
|
+
<Content component={ContentVariants.li}>Morbi eu nulla lobortis, lobortis est in, fringilla felis.</Content>
|
|
8
|
+
<Content component={ContentVariants.li}>
|
|
9
9
|
Aliquam nec felis in sapien venenatis viverra fermentum nec lectus.
|
|
10
|
-
<
|
|
11
|
-
<
|
|
12
|
-
<
|
|
13
|
-
</
|
|
14
|
-
</
|
|
15
|
-
<
|
|
16
|
-
</
|
|
10
|
+
<Content component={ContentVariants.ul}>
|
|
11
|
+
<Content component={ContentVariants.li}>In fermentum leo eu lectus mollis, quis dictum mi aliquet.</Content>
|
|
12
|
+
<Content component={ContentVariants.li}>Morbi eu nulla lobortis, lobortis est in, fringilla felis.</Content>
|
|
13
|
+
</Content>
|
|
14
|
+
</Content>
|
|
15
|
+
<Content component={ContentVariants.li}>Ut non enim metus.</Content>
|
|
16
|
+
</Content>
|
|
17
17
|
);
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Content, ContentVariants } from '@patternfly/react-core';
|
|
3
3
|
|
|
4
4
|
export const ContentVisited: React.FunctionComponent = () => (
|
|
5
5
|
<>
|
|
6
|
-
<
|
|
7
|
-
<
|
|
8
|
-
<
|
|
9
|
-
<
|
|
6
|
+
<Content>
|
|
7
|
+
<Content component={ContentVariants.h3}>Link example</Content>
|
|
8
|
+
<Content component={ContentVariants.p}>
|
|
9
|
+
<Content component={ContentVariants.a} isVisitedLink href="#">
|
|
10
10
|
Click to visit link
|
|
11
|
-
</
|
|
12
|
-
</
|
|
13
|
-
</
|
|
11
|
+
</Content>
|
|
12
|
+
</Content>
|
|
13
|
+
</Content>
|
|
14
14
|
<br />
|
|
15
|
-
<
|
|
16
|
-
<
|
|
17
|
-
<
|
|
18
|
-
<
|
|
15
|
+
<Content isVisitedLink>
|
|
16
|
+
<Content component={ContentVariants.h3}>Link content example</Content>
|
|
17
|
+
<Content component={ContentVariants.p}>
|
|
18
|
+
<Content component={ContentVariants.a} href="#">
|
|
19
19
|
content link 1
|
|
20
|
-
</
|
|
21
|
-
</
|
|
22
|
-
<
|
|
23
|
-
<
|
|
20
|
+
</Content>
|
|
21
|
+
</Content>
|
|
22
|
+
<Content component={ContentVariants.p}>
|
|
23
|
+
<Content component={ContentVariants.a} href="#">
|
|
24
24
|
content link 2
|
|
25
|
-
</
|
|
26
|
-
</
|
|
27
|
-
<
|
|
28
|
-
<
|
|
25
|
+
</Content>
|
|
26
|
+
</Content>
|
|
27
|
+
<Content component={ContentVariants.p}>
|
|
28
|
+
<Content component={ContentVariants.a} href="#">
|
|
29
29
|
content link 3
|
|
30
|
-
</
|
|
31
|
-
</
|
|
32
|
-
</
|
|
30
|
+
</Content>
|
|
31
|
+
</Content>
|
|
32
|
+
</Content>
|
|
33
33
|
</>
|
|
34
34
|
);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Content, ContentVariants } from '@patternfly/react-core';
|
|
3
3
|
|
|
4
4
|
export const ContentWrapper: React.FunctionComponent = () => (
|
|
5
|
-
<
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
</
|
|
9
|
-
<p>If located within a wrapping
|
|
10
|
-
</
|
|
5
|
+
<Content>
|
|
6
|
+
<Content component={ContentVariants.p}>
|
|
7
|
+
Content with a component of type "p" still renders the same when wrapped with a Content.
|
|
8
|
+
</Content>
|
|
9
|
+
<p>If located within a wrapping Content, html elements are styled as well!</p>
|
|
10
|
+
</Content>
|
|
11
11
|
);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import {
|
|
3
|
+
Content,
|
|
3
4
|
DataList,
|
|
4
5
|
DataListItem,
|
|
5
6
|
DataListCell,
|
|
@@ -9,9 +10,6 @@ import {
|
|
|
9
10
|
DataListContent,
|
|
10
11
|
DataListItemCells,
|
|
11
12
|
DataListItemRow,
|
|
12
|
-
Text,
|
|
13
|
-
TextVariants,
|
|
14
|
-
TextContent,
|
|
15
13
|
Dropdown,
|
|
16
14
|
DropdownList,
|
|
17
15
|
DropdownItem,
|
|
@@ -44,9 +42,9 @@ export const DataListWidthModifiers: React.FunctionComponent = () => {
|
|
|
44
42
|
return (
|
|
45
43
|
<>
|
|
46
44
|
<div key="example-1">
|
|
47
|
-
<
|
|
48
|
-
<
|
|
49
|
-
</
|
|
45
|
+
<Content>
|
|
46
|
+
<h4>Default fitting - example 1</h4>
|
|
47
|
+
</Content>
|
|
50
48
|
<DataList aria-label="Width modifier data list example 1">
|
|
51
49
|
<DataListItem aria-labelledby="width-ex1-item1">
|
|
52
50
|
<DataListItemRow>
|
|
@@ -71,9 +69,9 @@ export const DataListWidthModifiers: React.FunctionComponent = () => {
|
|
|
71
69
|
</DataList>
|
|
72
70
|
</div>
|
|
73
71
|
<div key="example-2">
|
|
74
|
-
<
|
|
75
|
-
<
|
|
76
|
-
</
|
|
72
|
+
<Content>
|
|
73
|
+
<h4>Flex modifiers - example 2</h4>
|
|
74
|
+
</Content>
|
|
77
75
|
<DataList aria-label="Width modifier data list example 2">
|
|
78
76
|
<DataListItem aria-labelledby="width-ex2-item1">
|
|
79
77
|
<DataListItemRow>
|
|
@@ -139,9 +137,9 @@ export const DataListWidthModifiers: React.FunctionComponent = () => {
|
|
|
139
137
|
</DataList>
|
|
140
138
|
</div>
|
|
141
139
|
<div key="example-3">
|
|
142
|
-
<
|
|
143
|
-
<
|
|
144
|
-
</
|
|
140
|
+
<Content>
|
|
141
|
+
<h4>Flex modifiers - example 3</h4>
|
|
142
|
+
</Content>
|
|
145
143
|
<DataList aria-label="Width modifier data list example 3">
|
|
146
144
|
<DataListItem aria-labelledby="width-ex3-item1" isExpanded={show}>
|
|
147
145
|
<DataListItemRow>
|
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Icon,
|
|
2
|
+
import { Icon, Content } from '@patternfly/react-core';
|
|
3
3
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
4
4
|
|
|
5
5
|
export const IconInline: React.FunctionComponent = () => (
|
|
6
6
|
<React.Fragment>
|
|
7
|
-
<
|
|
8
|
-
<
|
|
7
|
+
<Content>
|
|
8
|
+
<h1>
|
|
9
9
|
Heading
|
|
10
10
|
<Icon isInline>
|
|
11
11
|
<PlusCircleIcon />
|
|
12
12
|
</Icon>
|
|
13
|
-
</
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
</Text>
|
|
17
|
-
<Text component="h2">
|
|
13
|
+
</h1>
|
|
14
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit Sed hendrerit nisi in cursus maximus.</p>
|
|
15
|
+
<h2>
|
|
18
16
|
Second level
|
|
19
17
|
<Icon isInline>
|
|
20
18
|
<PlusCircleIcon />
|
|
21
19
|
</Icon>
|
|
22
|
-
</
|
|
23
|
-
<
|
|
20
|
+
</h2>
|
|
21
|
+
<p>
|
|
24
22
|
<Icon isInline>
|
|
25
23
|
<PlusCircleIcon />
|
|
26
24
|
</Icon>
|
|
@@ -33,7 +31,7 @@ export const IconInline: React.FunctionComponent = () => (
|
|
|
33
31
|
</strong>
|
|
34
32
|
blandit. Quisque condimentum maximus mi, sit amet commodo arcu rutrum id. Proin pretium urna vel cursus
|
|
35
33
|
venenatis. Suspendisse potenti.
|
|
36
|
-
</
|
|
34
|
+
</p>
|
|
37
35
|
<small>
|
|
38
36
|
Sometimes you need small text
|
|
39
37
|
<Icon isInline>
|
|
@@ -57,6 +55,6 @@ export const IconInline: React.FunctionComponent = () => (
|
|
|
57
55
|
<PlusCircleIcon />
|
|
58
56
|
</Icon>
|
|
59
57
|
extra large
|
|
60
|
-
</
|
|
58
|
+
</Content>
|
|
61
59
|
</React.Fragment>
|
|
62
60
|
);
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
ModalVariant,
|
|
9
9
|
Title,
|
|
10
10
|
TitleSizes,
|
|
11
|
-
|
|
11
|
+
Content,
|
|
12
12
|
Flex
|
|
13
13
|
} from '@patternfly/react-core';
|
|
14
14
|
|
|
@@ -34,12 +34,10 @@ export const ModalCustomHeaderFooter: React.FunctionComponent = () => {
|
|
|
34
34
|
aria-describedby="modal-custom-header-description"
|
|
35
35
|
>
|
|
36
36
|
<ModalHeader>
|
|
37
|
-
<
|
|
38
|
-
<
|
|
39
|
-
Custom header modal
|
|
40
|
-
</Title>
|
|
37
|
+
<Content>
|
|
38
|
+
<h1 id="modal-custom-header-label">Custom header modal</h1>
|
|
41
39
|
<p>Add custom content to the header by not passing the titles prop the modal box header component.</p>
|
|
42
|
-
</
|
|
40
|
+
</Content>
|
|
43
41
|
</ModalHeader>
|
|
44
42
|
<ModalBody>
|
|
45
43
|
<span id="modal-custom-header-description">
|
|
@@ -5,7 +5,7 @@ cssPrefix: pf-v5-c-slider
|
|
|
5
5
|
propComponents: ['Slider', 'SliderStepObject']
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
import { Slider, Button,
|
|
8
|
+
import { Slider, Button, Content, ContentVariants } from '@patternfly/react-core';
|
|
9
9
|
import MinusIcon from '@patternfly/react-icons/dist/esm/icons/minus-icon';
|
|
10
10
|
import PlusIcon from '@patternfly/react-icons/dist/esm/icons/plus-icon';
|
|
11
11
|
import LockIcon from '@patternfly/react-icons/dist/esm/icons/lock-icon';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Slider, SliderOnChangeEvent, Button,
|
|
2
|
+
import { Slider, SliderOnChangeEvent, Button, Content } from '@patternfly/react-core';
|
|
3
3
|
import MinusIcon from '@patternfly/react-icons/dist/esm/icons/minus-icon';
|
|
4
4
|
import PlusIcon from '@patternfly/react-icons/dist/esm/icons/plus-icon';
|
|
5
5
|
import LockIcon from '@patternfly/react-icons/dist/esm/icons/lock-icon';
|
|
@@ -64,7 +64,7 @@ export const SliderActions: React.FunctionComponent = () => {
|
|
|
64
64
|
|
|
65
65
|
return (
|
|
66
66
|
<>
|
|
67
|
-
<
|
|
67
|
+
<Content component="h3">Slider value is: {value1}</Content>
|
|
68
68
|
<Slider
|
|
69
69
|
value={value1}
|
|
70
70
|
onChange={onChange1}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Checkbox, Slider, SliderOnChangeEvent,
|
|
2
|
+
import { Checkbox, Slider, SliderOnChangeEvent, Content } from '@patternfly/react-core';
|
|
3
3
|
|
|
4
4
|
export const SliderContinuous: React.FunctionComponent = () => {
|
|
5
5
|
const [hasTooltipOverThumb, setHasTooltipOverThumb] = React.useState(false);
|
|
@@ -15,14 +15,14 @@ export const SliderContinuous: React.FunctionComponent = () => {
|
|
|
15
15
|
onChange={(_event: React.FormEvent<HTMLInputElement>, checked: boolean) => setHasTooltipOverThumb(checked)}
|
|
16
16
|
style={{ marginBottom: 20 }}
|
|
17
17
|
/>
|
|
18
|
-
<
|
|
18
|
+
<Content component="h3">Slider Value is: {value}</Content>
|
|
19
19
|
<Slider
|
|
20
20
|
hasTooltipOverThumb={hasTooltipOverThumb}
|
|
21
21
|
value={value}
|
|
22
22
|
onChange={(_event: SliderOnChangeEvent, value: number) => setValue(value)}
|
|
23
23
|
/>
|
|
24
24
|
<br />
|
|
25
|
-
<
|
|
25
|
+
<Content component="h3">Slider value is: {valueCustom}</Content>
|
|
26
26
|
<Slider
|
|
27
27
|
onChange={(_event: SliderOnChangeEvent, value: number) => setValueCustom(value)}
|
|
28
28
|
value={valueCustom}
|
|
@@ -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 SliderDisabled: React.FunctionComponent = () => {
|
|
5
5
|
const [value, setValue] = React.useState(50);
|
|
@@ -22,7 +22,7 @@ export const SliderDisabled: React.FunctionComponent = () => {
|
|
|
22
22
|
|
|
23
23
|
return (
|
|
24
24
|
<>
|
|
25
|
-
<
|
|
25
|
+
<Content component="h3">Slider value is: {displayValue()}</Content>
|
|
26
26
|
<Slider
|
|
27
27
|
isDisabled
|
|
28
28
|
value={value}
|
|
@@ -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
|
);
|
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>
|