@patternfly/react-core 6.1.1-prerelease.2 → 6.2.0-prerelease.10
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 +56 -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/TimePicker/package.json +1 -1
- package/dist/dynamic/components/Timestamp/package.json +1 -1
- package/dist/dynamic/components/Title/package.json +1 -1
- package/dist/dynamic/components/ToggleGroup/package.json +1 -1
- package/dist/dynamic/components/Toolbar/package.json +1 -1
- package/dist/dynamic/components/Tooltip/package.json +1 -1
- package/dist/dynamic/components/TreeView/package.json +1 -1
- package/dist/dynamic/components/Truncate/package.json +1 -1
- package/dist/dynamic/components/Wizard/hooks/package.json +1 -1
- package/dist/dynamic/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/Chip/package.json +1 -1
- package/dist/dynamic/deprecated/components/DragDrop/package.json +1 -1
- package/dist/dynamic/deprecated/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/deprecated/components/Modal/package.json +1 -1
- package/dist/dynamic/deprecated/components/Tile/package.json +1 -1
- package/dist/dynamic/deprecated/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/package.json +1 -1
- package/dist/dynamic/helpers/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/esm/components/ClipboardCopy/ClipboardCopy.d.ts +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.d.ts.map +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.js +4 -2
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.js.map +1 -1
- package/dist/esm/components/TextArea/TextArea.d.ts +3 -2
- package/dist/esm/components/TextArea/TextArea.d.ts.map +1 -1
- package/dist/esm/components/TextArea/TextArea.js +5 -2
- package/dist/esm/components/TextArea/TextArea.js.map +1 -1
- package/dist/esm/demos/sampleData.d.ts +11 -0
- package/dist/esm/demos/sampleData.d.ts.map +1 -0
- package/dist/esm/demos/sampleData.js +605 -0
- package/dist/esm/demos/sampleData.js.map +1 -0
- package/dist/js/components/ClipboardCopy/ClipboardCopy.d.ts +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopy.d.ts.map +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopy.js +4 -2
- package/dist/js/components/ClipboardCopy/ClipboardCopy.js.map +1 -1
- package/dist/js/components/TextArea/TextArea.d.ts +3 -2
- package/dist/js/components/TextArea/TextArea.d.ts.map +1 -1
- package/dist/js/components/TextArea/TextArea.js +5 -2
- package/dist/js/components/TextArea/TextArea.js.map +1 -1
- package/dist/js/demos/sampleData.d.ts +11 -0
- package/dist/js/demos/sampleData.d.ts.map +1 -0
- package/dist/js/demos/sampleData.js +608 -0
- package/dist/js/demos/sampleData.js.map +1 -0
- package/dist/umd/assets/{output-BpVMmGx2.css → output-BTedH57W.css} +18770 -18770
- package/dist/umd/react-core.min.js +2 -2
- package/helpers/package.json +1 -1
- package/layouts/package.json +1 -1
- package/next/package.json +1 -1
- package/package.json +8 -8
- package/src/components/ClipboardCopy/ClipboardCopy.tsx +5 -3
- package/src/components/ClipboardCopy/__tests__/ClipboardCopy.test.tsx +15 -0
- package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopy.test.tsx.snap +1 -1
- package/src/components/TextArea/TextArea.tsx +8 -7
- package/src/components/TextArea/__tests__/TextArea.test.tsx +18 -0
- package/src/components/TextArea/examples/TextArea.md +6 -0
- package/src/components/TextArea/examples/TextAreaResizableNone.tsx +14 -0
- package/src/components/Toolbar/examples/Toolbar.md +8 -8
- package/src/components/TreeView/examples/TreeView.md +7 -1
- package/src/components/TreeView/examples/TreeViewWithIconPerItem.tsx +64 -0
- package/src/demos/DataList/examples/DataListActionable.tsx +134 -0
- package/src/demos/DataList/examples/DataListStaticBottomPagination.tsx +190 -0
- package/src/demos/DataListDemo.md +11 -0
- package/src/demos/DescriptionList/DescriptionList.md +7 -1
- package/src/demos/DescriptionList/examples/DescriptionListInDrawer.tsx +162 -0
- package/src/demos/Skeleton.md +13 -0
- package/src/demos/examples/Skeleton/SkeletonCard.tsx +40 -0
- package/src/demos/sampleData.tsx +615 -0
- package/src/components/DataList/examples/DataListDraggable.tsx +0 -108
- package/src/components/DualListSelector/examples/DualListSelectorDragDrop.tsx +0 -177
|
@@ -15,6 +15,7 @@ import ExclamationTriangleIcon from '@patternfly/react-icons/dist/esm/icons/excl
|
|
|
15
15
|
import CheckCircleIcon from '@patternfly/react-icons/dist/esm/icons/check-circle-icon';
|
|
16
16
|
import TimesCircleIcon from '@patternfly/react-icons/dist/esm/icons/times-circle-icon';
|
|
17
17
|
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
18
|
+
import { rows } from '@patternfly/react-core/dist/esm/demos/sampleData';
|
|
18
19
|
|
|
19
20
|
## Demos
|
|
20
21
|
|
|
@@ -28,3 +29,13 @@ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/Dashboard
|
|
|
28
29
|
|
|
29
30
|
```js file="./DataList/examples/DataListExpandableControlInToolbar.tsx" isFullscreen
|
|
30
31
|
```
|
|
32
|
+
|
|
33
|
+
### Actionable
|
|
34
|
+
|
|
35
|
+
```js file="./DataList/examples/DataListActionable.tsx" isFullscreen
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Static bottom pagination
|
|
39
|
+
|
|
40
|
+
```js file="./DataList/examples/DataListStaticBottomPagination.tsx" isFullscreen
|
|
41
|
+
```
|
|
@@ -4,6 +4,7 @@ section: components
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
import CheckCircleIcon from '@patternfly/react-icons/dist/esm/icons/check-circle-icon';
|
|
7
|
+
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
7
8
|
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
8
9
|
|
|
9
10
|
## Demos
|
|
@@ -11,4 +12,9 @@ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/Dashboard
|
|
|
11
12
|
### Basic
|
|
12
13
|
|
|
13
14
|
```js file='./examples/DescriptionListBasic.tsx' isFullscreen
|
|
14
|
-
```
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### In drawer
|
|
18
|
+
|
|
19
|
+
```js file='./examples/DescriptionListInDrawer.tsx' isFullscreen
|
|
20
|
+
```
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Gallery,
|
|
4
|
+
Content,
|
|
5
|
+
PageSection,
|
|
6
|
+
GalleryItem,
|
|
7
|
+
Card,
|
|
8
|
+
CardBody,
|
|
9
|
+
DrawerHead,
|
|
10
|
+
DrawerActions,
|
|
11
|
+
DrawerCloseButton,
|
|
12
|
+
DrawerPanelBody,
|
|
13
|
+
DescriptionList,
|
|
14
|
+
DescriptionListTerm,
|
|
15
|
+
DescriptionListGroup,
|
|
16
|
+
DescriptionListDescription,
|
|
17
|
+
Button,
|
|
18
|
+
Title
|
|
19
|
+
} from '@patternfly/react-core';
|
|
20
|
+
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
21
|
+
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
22
|
+
|
|
23
|
+
export const DescriptionListInDrawer: React.FunctionComponent = () => {
|
|
24
|
+
const drawerRef = React.useRef<HTMLDivElement>(null);
|
|
25
|
+
const btnRef = React.useRef<HTMLDivElement>(null);
|
|
26
|
+
const [isExpanded, setIsExpanded] = React.useState(true);
|
|
27
|
+
|
|
28
|
+
const onExpand = () => {
|
|
29
|
+
drawerRef.current && drawerRef.current.focus();
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const onCloseClick = () => {
|
|
33
|
+
setIsExpanded(false);
|
|
34
|
+
btnRef.current && btnRef.current.focus();
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const onToggleDrawer = () => {
|
|
38
|
+
setIsExpanded((prevIsExpanded) => !prevIsExpanded);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
const panelContent = (
|
|
42
|
+
<>
|
|
43
|
+
<DrawerHead>
|
|
44
|
+
<Title headingLevel="h2">
|
|
45
|
+
<span ref={drawerRef} tabIndex={isExpanded ? 0 : -1}>
|
|
46
|
+
test
|
|
47
|
+
</span>
|
|
48
|
+
</Title>
|
|
49
|
+
<DrawerActions>
|
|
50
|
+
<DrawerCloseButton onClick={onCloseClick} />
|
|
51
|
+
</DrawerActions>
|
|
52
|
+
</DrawerHead>
|
|
53
|
+
<DrawerPanelBody>
|
|
54
|
+
<DescriptionList isFillColumns columnModifier={{ default: '2Col', lg: '2Col' }}>
|
|
55
|
+
<DescriptionListGroup>
|
|
56
|
+
<DescriptionListTerm>Name</DescriptionListTerm>
|
|
57
|
+
<DescriptionListDescription>test</DescriptionListDescription>
|
|
58
|
+
</DescriptionListGroup>
|
|
59
|
+
<DescriptionListGroup>
|
|
60
|
+
<DescriptionListTerm>Namespace</DescriptionListTerm>
|
|
61
|
+
<DescriptionListDescription>
|
|
62
|
+
<a href="#">mary-test</a>
|
|
63
|
+
</DescriptionListDescription>
|
|
64
|
+
</DescriptionListGroup>
|
|
65
|
+
<DescriptionListGroup>
|
|
66
|
+
<DescriptionListTerm>Labels</DescriptionListTerm>
|
|
67
|
+
<DescriptionListDescription>app=test</DescriptionListDescription>
|
|
68
|
+
</DescriptionListGroup>
|
|
69
|
+
<DescriptionListGroup>
|
|
70
|
+
<DescriptionListTerm>Pod selector</DescriptionListTerm>
|
|
71
|
+
<DescriptionListDescription>Node selector is not available at this time</DescriptionListDescription>
|
|
72
|
+
</DescriptionListGroup>
|
|
73
|
+
<DescriptionListGroup>
|
|
74
|
+
<DescriptionListTerm>Tolerations</DescriptionListTerm>
|
|
75
|
+
<DescriptionListDescription>No tolerations</DescriptionListDescription>
|
|
76
|
+
</DescriptionListGroup>
|
|
77
|
+
<DescriptionListGroup>
|
|
78
|
+
<DescriptionListTerm>Annotations</DescriptionListTerm>
|
|
79
|
+
<DescriptionListDescription>No annotaions</DescriptionListDescription>
|
|
80
|
+
</DescriptionListGroup>
|
|
81
|
+
<DescriptionListGroup>
|
|
82
|
+
<DescriptionListTerm>Status</DescriptionListTerm>
|
|
83
|
+
<DescriptionListDescription>Active</DescriptionListDescription>
|
|
84
|
+
</DescriptionListGroup>
|
|
85
|
+
<DescriptionListGroup>
|
|
86
|
+
<DescriptionListTerm>Created at:</DescriptionListTerm>
|
|
87
|
+
<DescriptionListDescription>3 minutes agot</DescriptionListDescription>
|
|
88
|
+
</DescriptionListGroup>
|
|
89
|
+
<DescriptionListGroup>
|
|
90
|
+
<DescriptionListTerm>Pod selector</DescriptionListTerm>
|
|
91
|
+
<DescriptionListDescription>
|
|
92
|
+
<Button variant="link" isInline icon={<PlusCircleIcon />}>
|
|
93
|
+
app=MyApp
|
|
94
|
+
</Button>
|
|
95
|
+
</DescriptionListDescription>
|
|
96
|
+
</DescriptionListGroup>
|
|
97
|
+
<DescriptionListGroup>
|
|
98
|
+
<DescriptionListTerm>Session affinity</DescriptionListTerm>
|
|
99
|
+
<DescriptionListDescription>None</DescriptionListDescription>
|
|
100
|
+
</DescriptionListGroup>
|
|
101
|
+
<DescriptionListGroup>
|
|
102
|
+
<DescriptionListTerm>Latest version</DescriptionListTerm>
|
|
103
|
+
<DescriptionListDescription>1.0</DescriptionListDescription>
|
|
104
|
+
</DescriptionListGroup>
|
|
105
|
+
<DescriptionListGroup>
|
|
106
|
+
<DescriptionListTerm>Update strategy</DescriptionListTerm>
|
|
107
|
+
<DescriptionListDescription>Rolling</DescriptionListDescription>
|
|
108
|
+
</DescriptionListGroup>
|
|
109
|
+
<DescriptionListGroup>
|
|
110
|
+
<DescriptionListTerm>Timeout</DescriptionListTerm>
|
|
111
|
+
<DescriptionListDescription>600 seconds</DescriptionListDescription>
|
|
112
|
+
</DescriptionListGroup>
|
|
113
|
+
<DescriptionListGroup>
|
|
114
|
+
<DescriptionListTerm>Max available</DescriptionListTerm>
|
|
115
|
+
<DescriptionListDescription>25% of 1 pod</DescriptionListDescription>
|
|
116
|
+
</DescriptionListGroup>
|
|
117
|
+
<DescriptionListGroup>
|
|
118
|
+
<DescriptionListTerm>Max surge</DescriptionListTerm>
|
|
119
|
+
<DescriptionListDescription>25% greater than 1 pod</DescriptionListDescription>
|
|
120
|
+
</DescriptionListGroup>
|
|
121
|
+
</DescriptionList>
|
|
122
|
+
</DrawerPanelBody>
|
|
123
|
+
</>
|
|
124
|
+
);
|
|
125
|
+
|
|
126
|
+
const drawerContent = (
|
|
127
|
+
<Gallery hasGutter>
|
|
128
|
+
<GalleryItem key={0}>
|
|
129
|
+
<Card>
|
|
130
|
+
<CardBody>
|
|
131
|
+
<Button variant="link" isInline onClick={onToggleDrawer} ref={btnRef}>
|
|
132
|
+
{`${isExpanded ? 'Close' : 'Open'} drawer`}
|
|
133
|
+
</Button>
|
|
134
|
+
</CardBody>
|
|
135
|
+
</Card>
|
|
136
|
+
</GalleryItem>
|
|
137
|
+
{Array.from({ length: 30 }).map((_value, index) => (
|
|
138
|
+
<GalleryItem key={index + 1}>
|
|
139
|
+
<Card>
|
|
140
|
+
<CardBody>{`Card-${index + 1}`}</CardBody>
|
|
141
|
+
</Card>
|
|
142
|
+
</GalleryItem>
|
|
143
|
+
))}
|
|
144
|
+
</Gallery>
|
|
145
|
+
);
|
|
146
|
+
|
|
147
|
+
return (
|
|
148
|
+
<DashboardWrapper
|
|
149
|
+
notificationDrawer={panelContent}
|
|
150
|
+
isNotificationDrawerExpanded={isExpanded}
|
|
151
|
+
onNotificationDrawerExpand={onExpand}
|
|
152
|
+
>
|
|
153
|
+
<PageSection>
|
|
154
|
+
<Content>
|
|
155
|
+
<Content component="h1">Main title</Content>
|
|
156
|
+
<Content component="p">This is a full page demo.</Content>
|
|
157
|
+
</Content>
|
|
158
|
+
</PageSection>
|
|
159
|
+
<PageSection>{drawerContent}</PageSection>
|
|
160
|
+
</DashboardWrapper>
|
|
161
|
+
);
|
|
162
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Gallery, Flex, PageSection, Content, Card, CardBody, Skeleton } from '@patternfly/react-core';
|
|
3
|
+
import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
|
|
4
|
+
|
|
5
|
+
export const SkeletonCard: React.FunctionComponent = () => {
|
|
6
|
+
const card = (index: number) => (
|
|
7
|
+
<Card key={index} isCompact>
|
|
8
|
+
<CardBody>
|
|
9
|
+
<Flex direction={{ default: 'column' }} spacer={{ default: 'spacerMd' }}>
|
|
10
|
+
<Skeleton screenreaderText="Loading content" />
|
|
11
|
+
<Skeleton width="66%" screenreaderText="Loaded 66% of content" />
|
|
12
|
+
<Skeleton width="25%" screenreaderText="Loaded 25% of content" />
|
|
13
|
+
<Skeleton width="50%" screenreaderText="Loaded 50% of content" />
|
|
14
|
+
</Flex>
|
|
15
|
+
</CardBody>
|
|
16
|
+
<CardBody>
|
|
17
|
+
<Skeleton shape="square" width="75%" screenreaderText="Loading medium square contents" />
|
|
18
|
+
</CardBody>
|
|
19
|
+
<CardBody>
|
|
20
|
+
<Flex direction={{ default: 'column' }} spacer={{ default: 'spacerMd' }}>
|
|
21
|
+
<Skeleton screenreaderText="Loading content" />
|
|
22
|
+
<Skeleton width="25%" screenreaderText="Loaded 25% of content" />
|
|
23
|
+
<Skeleton width="75%" screenreaderText="Loaded 75% of content" />
|
|
24
|
+
<Skeleton width="50%" screenreaderText="Loaded 50% of content" />
|
|
25
|
+
</Flex>
|
|
26
|
+
</CardBody>
|
|
27
|
+
</Card>
|
|
28
|
+
);
|
|
29
|
+
return (
|
|
30
|
+
<DashboardWrapper isBreadcrumbWidthLimited>
|
|
31
|
+
<PageSection isWidthLimited>
|
|
32
|
+
<Content component="h1">Main title</Content>
|
|
33
|
+
<Content component="p">This is a full page demo.</Content>
|
|
34
|
+
</PageSection>
|
|
35
|
+
<PageSection>
|
|
36
|
+
<Gallery hasGutter>{Array.from({ length: 7 }).map((_value, index) => card(index))}</Gallery>
|
|
37
|
+
</PageSection>
|
|
38
|
+
</DashboardWrapper>
|
|
39
|
+
);
|
|
40
|
+
};
|