@patternfly/react-core 6.0.0-alpha.47 → 6.0.0-alpha.49
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 +12 -0
- package/components/package.json +1 -1
- package/deprecated/package.json +1 -1
- package/dist/dynamic/components/AboutModal/package.json +1 -1
- package/dist/dynamic/components/Accordion/package.json +1 -1
- package/dist/dynamic/components/ActionList/package.json +1 -1
- package/dist/dynamic/components/Alert/package.json +1 -1
- package/dist/dynamic/components/Avatar/package.json +1 -1
- package/dist/dynamic/components/BackToTop/package.json +1 -1
- package/dist/dynamic/components/Backdrop/package.json +1 -1
- package/dist/dynamic/components/BackgroundImage/package.json +1 -1
- package/dist/dynamic/components/Badge/package.json +1 -1
- package/dist/dynamic/components/Banner/package.json +1 -1
- package/dist/dynamic/components/Brand/package.json +1 -1
- package/dist/dynamic/components/Breadcrumb/package.json +1 -1
- package/dist/dynamic/components/Button/package.json +1 -1
- package/dist/dynamic/components/CalendarMonth/package.json +1 -1
- package/dist/dynamic/components/Card/package.json +1 -1
- package/dist/dynamic/components/Checkbox/package.json +1 -1
- package/dist/dynamic/components/ClipboardCopy/package.json +1 -1
- package/dist/dynamic/components/CodeBlock/package.json +1 -1
- package/dist/dynamic/components/DataList/package.json +1 -1
- package/dist/dynamic/components/DatePicker/package.json +1 -1
- package/dist/dynamic/components/DescriptionList/package.json +1 -1
- package/dist/dynamic/components/Divider/package.json +1 -1
- package/dist/dynamic/components/Drawer/package.json +1 -1
- package/dist/dynamic/components/Dropdown/package.json +1 -1
- package/dist/dynamic/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/components/EmptyState/package.json +1 -1
- package/dist/dynamic/components/ExpandableSection/package.json +1 -1
- package/dist/dynamic/components/FileUpload/package.json +1 -1
- package/dist/dynamic/components/Form/package.json +1 -1
- package/dist/dynamic/components/FormSelect/package.json +1 -1
- package/dist/dynamic/components/HelperText/package.json +1 -1
- package/dist/dynamic/components/Hint/package.json +1 -1
- package/dist/dynamic/components/Icon/package.json +1 -1
- package/dist/dynamic/components/InputGroup/package.json +1 -1
- package/dist/dynamic/components/JumpLinks/package.json +1 -1
- package/dist/dynamic/components/Label/package.json +1 -1
- package/dist/dynamic/components/List/package.json +1 -1
- package/dist/dynamic/components/LoginPage/package.json +1 -1
- package/dist/dynamic/components/Masthead/package.json +1 -1
- package/dist/dynamic/components/Menu/package.json +1 -1
- package/dist/dynamic/components/MenuToggle/package.json +1 -1
- package/dist/dynamic/components/Modal/package.json +1 -1
- package/dist/dynamic/components/MultipleFileUpload/package.json +1 -1
- package/dist/dynamic/components/Nav/package.json +1 -1
- package/dist/dynamic/components/NotificationBadge/package.json +1 -1
- package/dist/dynamic/components/NotificationDrawer/package.json +1 -1
- package/dist/dynamic/components/NumberInput/package.json +1 -1
- package/dist/dynamic/components/OverflowMenu/package.json +1 -1
- package/dist/dynamic/components/Page/package.json +1 -1
- package/dist/dynamic/components/Pagination/package.json +1 -1
- package/dist/dynamic/components/Panel/package.json +1 -1
- package/dist/dynamic/components/Popover/package.json +1 -1
- package/dist/dynamic/components/Progress/package.json +1 -1
- package/dist/dynamic/components/ProgressStepper/package.json +1 -1
- package/dist/dynamic/components/Radio/package.json +1 -1
- package/dist/dynamic/components/SearchInput/package.json +1 -1
- package/dist/dynamic/components/Select/package.json +1 -1
- package/dist/dynamic/components/Sidebar/package.json +1 -1
- package/dist/dynamic/components/SimpleList/package.json +1 -1
- package/dist/dynamic/components/Skeleton/package.json +1 -1
- package/dist/dynamic/components/SkipToContent/package.json +1 -1
- package/dist/dynamic/components/Slider/package.json +1 -1
- package/dist/dynamic/components/Spinner/package.json +1 -1
- package/dist/dynamic/components/Switch/package.json +1 -1
- package/dist/dynamic/components/Tabs/package.json +1 -1
- package/dist/dynamic/components/Text/package.json +1 -1
- package/dist/dynamic/components/TextArea/package.json +1 -1
- package/dist/dynamic/components/TextInput/package.json +1 -1
- package/dist/dynamic/components/TextInputGroup/package.json +1 -1
- package/dist/dynamic/components/Tile/package.json +1 -1
- package/dist/dynamic/components/TimePicker/package.json +1 -1
- package/dist/dynamic/components/Timestamp/package.json +1 -1
- package/dist/dynamic/components/Title/package.json +1 -1
- package/dist/dynamic/components/ToggleGroup/package.json +1 -1
- package/dist/dynamic/components/Toolbar/package.json +1 -1
- package/dist/dynamic/components/Tooltip/package.json +1 -1
- package/dist/dynamic/components/TreeView/package.json +1 -1
- package/dist/dynamic/components/Truncate/package.json +1 -1
- package/dist/dynamic/components/Wizard/hooks/package.json +1 -1
- package/dist/dynamic/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/ApplicationLauncher/package.json +1 -1
- package/dist/dynamic/deprecated/components/Chip/package.json +1 -1
- package/dist/dynamic/deprecated/components/ContextSelector/package.json +1 -1
- package/dist/dynamic/deprecated/components/DragDrop/package.json +1 -1
- package/dist/dynamic/deprecated/components/Dropdown/package.json +1 -1
- package/dist/dynamic/deprecated/components/OptionsMenu/package.json +1 -1
- package/dist/dynamic/deprecated/components/PageHeader/package.json +1 -1
- package/dist/dynamic/deprecated/components/Select/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/favorites/package.json +1 -1
- package/dist/dynamic/helpers/fileUtils/package.json +1 -1
- package/dist/dynamic/helpers/htmlConstants/package.json +1 -1
- package/dist/dynamic/helpers/package.json +1 -1
- package/dist/dynamic/helpers/resizeObserver/package.json +1 -1
- package/dist/dynamic/helpers/typeUtils/package.json +1 -1
- package/dist/dynamic/helpers/useInterval/package.json +1 -1
- package/dist/dynamic/helpers/useIsomorphicLayout/package.json +1 -1
- package/dist/dynamic/helpers/useUnmountEffect/package.json +1 -1
- package/dist/dynamic/helpers/util/package.json +1 -1
- package/dist/dynamic/layouts/Bullseye/package.json +1 -1
- package/dist/dynamic/layouts/Flex/package.json +1 -1
- package/dist/dynamic/layouts/Gallery/package.json +1 -1
- package/dist/dynamic/layouts/Grid/package.json +1 -1
- package/dist/dynamic/layouts/Level/package.json +1 -1
- package/dist/dynamic/layouts/Split/package.json +1 -1
- package/dist/dynamic/layouts/Stack/package.json +1 -1
- package/dist/dynamic/next/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/next/components/Modal/package.json +1 -1
- package/dist/dynamic/next/components/package.json +1 -1
- package/dist/dynamic/styles/package.json +1 -1
- package/dist/esm/components/Card/Card.d.ts +13 -5
- package/dist/esm/components/Card/Card.d.ts.map +1 -1
- package/dist/esm/components/Card/Card.js +7 -3
- package/dist/esm/components/Card/Card.js.map +1 -1
- package/dist/esm/components/Card/CardHeader.d.ts +3 -1
- package/dist/esm/components/Card/CardHeader.d.ts.map +1 -1
- package/dist/esm/components/Card/CardHeader.js +10 -10
- package/dist/esm/components/Card/CardHeader.js.map +1 -1
- package/dist/esm/components/Drawer/DrawerContent.d.ts +6 -2
- package/dist/esm/components/Drawer/DrawerContent.d.ts.map +1 -1
- package/dist/esm/components/Drawer/DrawerContent.js +9 -3
- package/dist/esm/components/Drawer/DrawerContent.js.map +1 -1
- package/dist/esm/components/Page/Page.d.ts.map +1 -1
- package/dist/esm/components/Page/Page.js +6 -5
- package/dist/esm/components/Page/Page.js.map +1 -1
- package/dist/js/components/Card/Card.d.ts +13 -5
- package/dist/js/components/Card/Card.d.ts.map +1 -1
- package/dist/js/components/Card/Card.js +7 -3
- package/dist/js/components/Card/Card.js.map +1 -1
- package/dist/js/components/Card/CardHeader.d.ts +3 -1
- package/dist/js/components/Card/CardHeader.d.ts.map +1 -1
- package/dist/js/components/Card/CardHeader.js +10 -10
- package/dist/js/components/Card/CardHeader.js.map +1 -1
- package/dist/js/components/Drawer/DrawerContent.d.ts +6 -2
- package/dist/js/components/Drawer/DrawerContent.d.ts.map +1 -1
- package/dist/js/components/Drawer/DrawerContent.js +9 -3
- package/dist/js/components/Drawer/DrawerContent.js.map +1 -1
- package/dist/js/components/Page/Page.d.ts.map +1 -1
- package/dist/js/components/Page/Page.js +6 -5
- package/dist/js/components/Page/Page.js.map +1 -1
- package/dist/styles/base-no-reset.css +22 -19
- package/dist/styles/base.css +22 -19
- 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/Card/Card.tsx +24 -7
- package/src/components/Card/CardHeader.tsx +15 -10
- package/src/components/Card/examples/Card.md +12 -9
- package/src/components/Card/examples/CardClickableSelectable.tsx +6 -6
- package/src/components/Card/examples/CardSelectable.tsx +20 -8
- package/src/components/Card/examples/CardSingleSelectable.tsx +14 -6
- package/src/components/Drawer/DrawerContent.tsx +11 -5
- package/src/components/Drawer/examples/DrawerSecondaryBackground.tsx +3 -2
- package/src/components/Page/Page.tsx +15 -13
- package/src/components/Page/__tests__/__snapshots__/Page.test.tsx.snap +1215 -1163
- package/src/layouts/Bullseye/examples/Bullseye.md +4 -2
- package/src/layouts/Bullseye/examples/bullseye.css +2 -3
- package/src/layouts/Flex/examples/Flex.md +1 -1
- package/src/layouts/Flex/examples/flex.css +3 -4
- package/src/layouts/Gallery/examples/Gallery.md +8 -8
- package/src/layouts/Gallery/examples/gallery.css +4 -5
- package/src/layouts/Grid/examples/Grid.md +30 -25
- package/src/layouts/Grid/examples/grid.css +2 -3
- package/src/layouts/Level/examples/Level.md +6 -3
- package/src/layouts/Level/examples/level.css +3 -4
- package/src/layouts/Split/examples/Split.md +8 -4
- package/src/layouts/Split/examples/split.css +2 -3
- package/src/layouts/Stack/examples/Stack.md +6 -3
- package/src/layouts/Stack/examples/stack.css +3 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Bullseye
|
|
3
|
-
cssPrefix: pf-
|
|
3
|
+
cssPrefix: pf-v6-l-bullseye
|
|
4
4
|
section: layouts
|
|
5
5
|
propComponents: ['Bullseye']
|
|
6
6
|
---
|
|
@@ -8,12 +8,14 @@ propComponents: ['Bullseye']
|
|
|
8
8
|
import './bullseye.css';
|
|
9
9
|
|
|
10
10
|
## Examples
|
|
11
|
+
|
|
11
12
|
### Basic
|
|
13
|
+
|
|
12
14
|
```js
|
|
13
15
|
import React from 'react';
|
|
14
16
|
import { Bullseye } from '@patternfly/react-core';
|
|
15
17
|
|
|
16
18
|
<Bullseye>
|
|
17
19
|
<div>Bullseye ◎ layout</div>
|
|
18
|
-
</Bullseye
|
|
20
|
+
</Bullseye>;
|
|
19
21
|
```
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
.ws-react-l-bullseye .pf-v6-l-bullseye,
|
|
2
2
|
.ws-react-l-bullseye .pf-v6-l-bullseye > div {
|
|
3
|
-
padding:
|
|
4
|
-
border-width
|
|
5
|
-
border-style: dashed;
|
|
3
|
+
padding: var(--pf-t--global--spacer--md);
|
|
4
|
+
border: var(--pf-t--global--border--width--box--default) dashed var(--pf-t--global--border--color--default);
|
|
6
5
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
.ws-react-l-flex .pf-v6-l-flex {
|
|
2
|
-
padding:
|
|
2
|
+
padding: var(--pf-t--global--spacer--md);
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.ws-react-l-flex .pf-v6-l-flex > div,
|
|
6
6
|
.ws-react-l-flex .example-border {
|
|
7
|
-
|
|
8
|
-
border-width
|
|
9
|
-
padding: 1rem;
|
|
7
|
+
padding: var(--pf-t--global--spacer--md);
|
|
8
|
+
border: var(--pf-t--global--border--width--box--default) dashed var(--pf-t--global--border--color--default);
|
|
10
9
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Gallery
|
|
3
|
-
cssPrefix: pf-
|
|
3
|
+
cssPrefix: pf-v6-l-gallery
|
|
4
4
|
section: layouts
|
|
5
5
|
propComponents: ['Gallery', 'GalleryItem']
|
|
6
6
|
---
|
|
@@ -129,11 +129,11 @@ import { Gallery, GalleryItem } from '@patternfly/react-core';
|
|
|
129
129
|
import React from 'react';
|
|
130
130
|
import { Gallery, GalleryItem } from '@patternfly/react-core';
|
|
131
131
|
|
|
132
|
-
<Gallery component=
|
|
133
|
-
<GalleryItem component=
|
|
134
|
-
<GalleryItem component=
|
|
135
|
-
<GalleryItem component=
|
|
136
|
-
<GalleryItem component=
|
|
137
|
-
<GalleryItem component=
|
|
138
|
-
</Gallery
|
|
132
|
+
<Gallery component="ul">
|
|
133
|
+
<GalleryItem component="li">Gallery item</GalleryItem>
|
|
134
|
+
<GalleryItem component="li">Gallery item</GalleryItem>
|
|
135
|
+
<GalleryItem component="li">Gallery item</GalleryItem>
|
|
136
|
+
<GalleryItem component="li">Gallery item</GalleryItem>
|
|
137
|
+
<GalleryItem component="li">Gallery item</GalleryItem>
|
|
138
|
+
</Gallery>;
|
|
139
139
|
```
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
.ws-react-l-gallery .pf-v6-l-gallery {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
padding: var(--pf-t--global--spacer--md);
|
|
3
|
+
}
|
|
4
4
|
|
|
5
5
|
.ws-react-l-gallery .pf-v6-l-gallery > div {
|
|
6
|
-
padding:
|
|
7
|
-
border-width
|
|
8
|
-
border-style: dashed;
|
|
6
|
+
padding: var(--pf-t--global--spacer--md);
|
|
7
|
+
border: var(--pf-t--global--border--width--box--default) dashed var(--pf-t--global--border--color--default);
|
|
9
8
|
}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Grid
|
|
3
|
-
cssPrefix: pf-
|
|
3
|
+
cssPrefix: pf-v6-l-grid
|
|
4
4
|
section: layouts
|
|
5
5
|
propComponents: ['Grid', 'GridItem']
|
|
6
6
|
---
|
|
7
|
+
|
|
7
8
|
import './grid.css';
|
|
8
9
|
|
|
9
10
|
## Examples
|
|
11
|
+
|
|
10
12
|
### Basic
|
|
13
|
+
|
|
11
14
|
```js
|
|
12
15
|
import React from 'react';
|
|
13
16
|
import { Grid, GridItem } from '@patternfly/react-core';
|
|
@@ -29,10 +32,11 @@ import { Grid, GridItem } from '@patternfly/react-core';
|
|
|
29
32
|
<GridItem span={2}>span = 2</GridItem>
|
|
30
33
|
<GridItem span={4}>span = 4</GridItem>
|
|
31
34
|
<GridItem span={4}>span = 4</GridItem>
|
|
32
|
-
</Grid
|
|
35
|
+
</Grid>;
|
|
33
36
|
```
|
|
34
37
|
|
|
35
38
|
### With gutters
|
|
39
|
+
|
|
36
40
|
```js
|
|
37
41
|
import React from 'react';
|
|
38
42
|
import { Grid, GridItem } from '@patternfly/react-core';
|
|
@@ -54,10 +58,11 @@ import { Grid, GridItem } from '@patternfly/react-core';
|
|
|
54
58
|
<GridItem span={2}>span = 2</GridItem>
|
|
55
59
|
<GridItem span={4}>span = 4</GridItem>
|
|
56
60
|
<GridItem span={4}>span = 4</GridItem>
|
|
57
|
-
</Grid
|
|
61
|
+
</Grid>;
|
|
58
62
|
```
|
|
59
63
|
|
|
60
64
|
### With overrides
|
|
65
|
+
|
|
61
66
|
```js
|
|
62
67
|
import React from 'react';
|
|
63
68
|
import { Grid, GridItem } from '@patternfly/react-core';
|
|
@@ -77,7 +82,7 @@ import { Grid, GridItem } from '@patternfly/react-core';
|
|
|
77
82
|
<GridItem>Grid Item</GridItem>
|
|
78
83
|
<GridItem>Grid Item</GridItem>
|
|
79
84
|
<GridItem>Grid Item</GridItem>
|
|
80
|
-
</Grid
|
|
85
|
+
</Grid>;
|
|
81
86
|
```
|
|
82
87
|
|
|
83
88
|
## Ordering
|
|
@@ -89,10 +94,10 @@ import React from 'react';
|
|
|
89
94
|
import { Grid, GridItem } from '@patternfly/react-core';
|
|
90
95
|
|
|
91
96
|
<Grid hasGutter span={3}>
|
|
92
|
-
<GridItem order={{default:
|
|
97
|
+
<GridItem order={{ default: '2' }}>Item A</GridItem>
|
|
93
98
|
<GridItem>Item B</GridItem>
|
|
94
|
-
<GridItem order={{default:
|
|
95
|
-
</Grid
|
|
99
|
+
<GridItem order={{ default: '-1' }}>Item C</GridItem>
|
|
100
|
+
</Grid>;
|
|
96
101
|
```
|
|
97
102
|
|
|
98
103
|
### Responsive ordering
|
|
@@ -102,10 +107,10 @@ import React from 'react';
|
|
|
102
107
|
import { Grid, GridItem } from '@patternfly/react-core';
|
|
103
108
|
|
|
104
109
|
<Grid hasGutter span={3}>
|
|
105
|
-
<GridItem order={{lg:
|
|
110
|
+
<GridItem order={{ lg: '2' }}>Item A</GridItem>
|
|
106
111
|
<GridItem>Item B</GridItem>
|
|
107
|
-
<GridItem order={{default:
|
|
108
|
-
</Grid
|
|
112
|
+
<GridItem order={{ default: '-1', md: '1' }}>Item C</GridItem>
|
|
113
|
+
</Grid>;
|
|
109
114
|
```
|
|
110
115
|
|
|
111
116
|
### Grouped ordering
|
|
@@ -115,19 +120,19 @@ import React from 'react';
|
|
|
115
120
|
import { Grid, GridItem } from '@patternfly/react-core';
|
|
116
121
|
|
|
117
122
|
<Grid hasGutter span={12}>
|
|
118
|
-
<Grid hasGutter span={6} order={{default:
|
|
119
|
-
<GridItem order={{default:
|
|
120
|
-
<GridItem order={{default:
|
|
123
|
+
<Grid hasGutter span={6} order={{ default: '2' }}>
|
|
124
|
+
<GridItem order={{ default: '3' }}>Set 1, Item A</GridItem>
|
|
125
|
+
<GridItem order={{ default: '1' }}>Set 1, Item B</GridItem>
|
|
121
126
|
<GridItem>Set 1, Item C</GridItem>
|
|
122
|
-
<GridItem order={{default:
|
|
127
|
+
<GridItem order={{ default: '2' }}>Set 1, Item D</GridItem>
|
|
123
128
|
</Grid>
|
|
124
129
|
<Grid hasGutter span={6}>
|
|
125
|
-
<GridItem order={{default:
|
|
126
|
-
<GridItem order={{default:
|
|
130
|
+
<GridItem order={{ default: '2' }}>Set 2, Item A</GridItem>
|
|
131
|
+
<GridItem order={{ default: '1' }}>Set 2, Item B</GridItem>
|
|
127
132
|
<GridItem>Set 2, Item C</GridItem>
|
|
128
|
-
<GridItem order={{default:
|
|
133
|
+
<GridItem order={{ default: '2' }}>Set 2, Item D</GridItem>
|
|
129
134
|
</Grid>
|
|
130
|
-
</Grid
|
|
135
|
+
</Grid>;
|
|
131
136
|
```
|
|
132
137
|
|
|
133
138
|
### Alternative components
|
|
@@ -136,11 +141,11 @@ import { Grid, GridItem } from '@patternfly/react-core';
|
|
|
136
141
|
import React from 'react';
|
|
137
142
|
import { Grid, GridItem } from '@patternfly/react-core';
|
|
138
143
|
|
|
139
|
-
<Grid component=
|
|
140
|
-
<GridItem component=
|
|
141
|
-
<GridItem component=
|
|
142
|
-
<GridItem component=
|
|
143
|
-
<GridItem component=
|
|
144
|
-
<GridItem component=
|
|
145
|
-
</Grid
|
|
144
|
+
<Grid component="ul">
|
|
145
|
+
<GridItem component="li">Grid item</GridItem>
|
|
146
|
+
<GridItem component="li">Grid item</GridItem>
|
|
147
|
+
<GridItem component="li">Grid item</GridItem>
|
|
148
|
+
<GridItem component="li">Grid item</GridItem>
|
|
149
|
+
<GridItem component="li">Grid item</GridItem>
|
|
150
|
+
</Grid>;
|
|
146
151
|
```
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
.ws-react-l-grid > .pf-v6-l-grid,
|
|
2
2
|
.ws-react-l-grid > .pf-v6-l-grid > .pf-v6-l-grid__item {
|
|
3
3
|
min-height: 75px;
|
|
4
|
-
padding:
|
|
5
|
-
border-width
|
|
6
|
-
border-style: dashed;
|
|
4
|
+
padding: var(--pf-t--global--spacer--md);
|
|
5
|
+
border: var(--pf-t--global--border--width--box--default) dashed var(--pf-t--global--border--color--default);
|
|
7
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Level
|
|
3
|
-
cssPrefix: pf-
|
|
3
|
+
cssPrefix: pf-v6-l-level
|
|
4
4
|
section: layouts
|
|
5
5
|
propComponents: ['Level', 'LevelItem']
|
|
6
6
|
---
|
|
@@ -8,7 +8,9 @@ propComponents: ['Level', 'LevelItem']
|
|
|
8
8
|
import './level.css';
|
|
9
9
|
|
|
10
10
|
## Examples
|
|
11
|
+
|
|
11
12
|
### Basic
|
|
13
|
+
|
|
12
14
|
```js
|
|
13
15
|
import React from 'react';
|
|
14
16
|
import { Level, LevelItem } from '@patternfly/react-core';
|
|
@@ -17,10 +19,11 @@ import { Level, LevelItem } from '@patternfly/react-core';
|
|
|
17
19
|
<LevelItem>Level Item</LevelItem>
|
|
18
20
|
<LevelItem>Level Item</LevelItem>
|
|
19
21
|
<LevelItem>Level Item</LevelItem>
|
|
20
|
-
</Level
|
|
22
|
+
</Level>;
|
|
21
23
|
```
|
|
22
24
|
|
|
23
25
|
### With gutters
|
|
26
|
+
|
|
24
27
|
```js
|
|
25
28
|
import React from 'react';
|
|
26
29
|
import { Level, LevelItem } from '@patternfly/react-core';
|
|
@@ -29,5 +32,5 @@ import { Level, LevelItem } from '@patternfly/react-core';
|
|
|
29
32
|
<LevelItem>Level Item</LevelItem>
|
|
30
33
|
<LevelItem>Level Item</LevelItem>
|
|
31
34
|
<LevelItem>Level Item</LevelItem>
|
|
32
|
-
</Level
|
|
35
|
+
</Level>;
|
|
33
36
|
```
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.ws-react-l-level {
|
|
2
|
-
padding:
|
|
2
|
+
padding: var(--pf-t--global--spacer--sm);
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.ws-react-l-level .pf-v6-l-level {
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
|
|
9
9
|
.ws-react-l-level .pf-v6-l-level,
|
|
10
10
|
.ws-react-l-level .pf-v6-l-level > div {
|
|
11
|
-
padding:
|
|
12
|
-
border-width
|
|
13
|
-
border-style: dashed;
|
|
11
|
+
padding: var(--pf-t--global--spacer--sm);
|
|
12
|
+
border: var(--pf-t--global--border--width--box--default) dashed var(--pf-t--global--border--color--default);
|
|
14
13
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Split
|
|
3
|
-
cssPrefix: pf-
|
|
3
|
+
cssPrefix: pf-v6-l-split
|
|
4
4
|
section: layouts
|
|
5
5
|
propComponents: ['Split', 'SplitItem']
|
|
6
6
|
---
|
|
@@ -8,7 +8,9 @@ propComponents: ['Split', 'SplitItem']
|
|
|
8
8
|
import './split.css';
|
|
9
9
|
|
|
10
10
|
## Examples
|
|
11
|
+
|
|
11
12
|
### Basic
|
|
13
|
+
|
|
12
14
|
```js
|
|
13
15
|
import React from 'react';
|
|
14
16
|
import { Split, SplitItem } from '@patternfly/react-core';
|
|
@@ -17,10 +19,11 @@ import { Split, SplitItem } from '@patternfly/react-core';
|
|
|
17
19
|
<SplitItem>content</SplitItem>
|
|
18
20
|
<SplitItem isFilled>pf-m-fill</SplitItem>
|
|
19
21
|
<SplitItem>content</SplitItem>
|
|
20
|
-
</Split
|
|
22
|
+
</Split>;
|
|
21
23
|
```
|
|
22
24
|
|
|
23
25
|
### With gutter
|
|
26
|
+
|
|
24
27
|
```js
|
|
25
28
|
import React from 'react';
|
|
26
29
|
import { Split, SplitItem } from '@patternfly/react-core';
|
|
@@ -29,10 +32,11 @@ import { Split, SplitItem } from '@patternfly/react-core';
|
|
|
29
32
|
<SplitItem>content</SplitItem>
|
|
30
33
|
<SplitItem isFilled>pf-m-fill</SplitItem>
|
|
31
34
|
<SplitItem>content</SplitItem>
|
|
32
|
-
</Split
|
|
35
|
+
</Split>;
|
|
33
36
|
```
|
|
34
37
|
|
|
35
38
|
### Wrappable
|
|
39
|
+
|
|
36
40
|
```js
|
|
37
41
|
import React from 'react';
|
|
38
42
|
import { Split, SplitItem } from '@patternfly/react-core';
|
|
@@ -52,5 +56,5 @@ import { Split, SplitItem } from '@patternfly/react-core';
|
|
|
52
56
|
<SplitItem>content</SplitItem>
|
|
53
57
|
<SplitItem>content</SplitItem>
|
|
54
58
|
<SplitItem>content</SplitItem>
|
|
55
|
-
</Split
|
|
59
|
+
</Split>;
|
|
56
60
|
```
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
.ws-react-l-split .pf-v6-l-split,
|
|
2
2
|
.ws-react-l-split .pf-v6-l-split > .pf-v6-l-split__item {
|
|
3
|
-
padding:
|
|
4
|
-
border-width
|
|
5
|
-
border-style: dashed;
|
|
3
|
+
padding: var(--pf-t--global--spacer--md);
|
|
4
|
+
border: var(--pf-t--global--border--width--box--default) dashed var(--pf-t--global--border--color--default);
|
|
6
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Stack
|
|
3
|
-
cssPrefix: pf-
|
|
3
|
+
cssPrefix: pf-v6-l-stack
|
|
4
4
|
section: layouts
|
|
5
5
|
propComponents: ['Stack', 'StackItem']
|
|
6
6
|
---
|
|
@@ -8,7 +8,9 @@ propComponents: ['Stack', 'StackItem']
|
|
|
8
8
|
import './stack.css';
|
|
9
9
|
|
|
10
10
|
## Examples
|
|
11
|
+
|
|
11
12
|
### Basic
|
|
13
|
+
|
|
12
14
|
```js
|
|
13
15
|
import React from 'react';
|
|
14
16
|
import { Stack, StackItem } from '@patternfly/react-core';
|
|
@@ -17,10 +19,11 @@ import { Stack, StackItem } from '@patternfly/react-core';
|
|
|
17
19
|
<StackItem>content</StackItem>
|
|
18
20
|
<StackItem isFilled>pf-m-fill</StackItem>
|
|
19
21
|
<StackItem>content</StackItem>
|
|
20
|
-
</Stack
|
|
22
|
+
</Stack>;
|
|
21
23
|
```
|
|
22
24
|
|
|
23
25
|
### With gutter
|
|
26
|
+
|
|
24
27
|
```js
|
|
25
28
|
import React from 'react';
|
|
26
29
|
import { Stack, StackItem } from '@patternfly/react-core';
|
|
@@ -29,5 +32,5 @@ import { Stack, StackItem } from '@patternfly/react-core';
|
|
|
29
32
|
<StackItem>content</StackItem>
|
|
30
33
|
<StackItem isFilled>pf-m-fill</StackItem>
|
|
31
34
|
<StackItem>content</StackItem>
|
|
32
|
-
</Stack
|
|
35
|
+
</Stack>;
|
|
33
36
|
```
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
|
|
11
11
|
.ws-react-l-stack .pf-v6-l-stack,
|
|
12
12
|
.ws-react-l-stack .pf-v6-l-stack > .pf-v6-l-stack__item {
|
|
13
|
-
padding:
|
|
14
|
-
border-width
|
|
15
|
-
|
|
16
|
-
}
|
|
13
|
+
padding: var(--pf-t--global--spacer--md);
|
|
14
|
+
border: var(--pf-t--global--border--width--box--default) dashed var(--pf-t--global--border--color--default);
|
|
15
|
+
}
|