@patternfly/documentation-framework 6.0.0-alpha.99 → 6.0.2
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 +279 -0
- package/components/autoLinkHeader/autoLinkHeader.js +1 -0
- package/components/cssVariables/cssVariables.js +63 -57
- package/components/footer/footer.js +52 -34
- package/components/sectionGallery/TextSummary.js +6 -6
- package/components/sectionGallery/sectionDataListLayout.js +7 -7
- package/components/sectionGallery/sectionGalleryToolbar.js +14 -14
- package/components/sideNav/sideNav.js +161 -71
- package/layouts/sideNavLayout/sideNavLayout.js +42 -93
- package/package.json +8 -8
- package/scripts/md/parseMD.js +3 -3
- package/scripts/md/styled-tags.js +1 -1
- package/scripts/md/typecheck.js +4 -0
- package/templates/mdx.js +248 -116
- package/versions.json +165 -20
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,285 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 6.0.2 (2024-10-30)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 6.0.1 (2024-10-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* bump extension docs to v6 ([#4344](https://github.com/patternfly/patternfly-org/issues/4344)) ([bd2fd88](https://github.com/patternfly/patternfly-org/commit/bd2fd88f4eec0fb6afe3f74bd623254671cf9f5b))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# 6.0.0-alpha.127 (2024-10-29)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# 6.0.0-alpha.126 (2024-10-29)
|
|
34
|
+
|
|
35
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
# 6.0.0-alpha.125 (2024-10-28)
|
|
42
|
+
|
|
43
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
# 6.0.0-alpha.124 (2024-10-28)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Features
|
|
53
|
+
|
|
54
|
+
* **site:** update version switcher for v5 ([#4312](https://github.com/patternfly/patternfly-org/issues/4312)) ([84b72dd](https://github.com/patternfly/patternfly-org/commit/84b72dde9debe46b56973e2bdfcbba02afa13de7))
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
# 6.0.0-alpha.123 (2024-10-25)
|
|
61
|
+
|
|
62
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
# 6.0.0-alpha.122 (2024-10-25)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
### Bug Fixes
|
|
72
|
+
|
|
73
|
+
* **docs:** hardcode Tile deprecation, fix console errors ([#4341](https://github.com/patternfly/patternfly-org/issues/4341)) ([f2a8ce7](https://github.com/patternfly/patternfly-org/commit/f2a8ce7df4937579e8868bde7b08863128f5671b))
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
# 6.0.0-alpha.121 (2024-10-24)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
### Bug Fixes
|
|
83
|
+
|
|
84
|
+
* partial bump to 6.0.0 versions ([#4337](https://github.com/patternfly/patternfly-org/issues/4337)) ([ef5b23c](https://github.com/patternfly/patternfly-org/commit/ef5b23c6724f87ab5c1a593c744561f546bc1567))
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
# 6.0.0-alpha.120 (2024-10-18)
|
|
91
|
+
|
|
92
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
# 6.0.0-alpha.119 (2024-10-18)
|
|
99
|
+
|
|
100
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
# 6.0.0-alpha.118 (2024-10-18)
|
|
107
|
+
|
|
108
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
# 6.0.0-alpha.117 (2024-10-14)
|
|
115
|
+
|
|
116
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
# 6.0.0-alpha.116 (2024-10-14)
|
|
123
|
+
|
|
124
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
# 6.0.0-alpha.115 (2024-10-14)
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
### Features
|
|
134
|
+
|
|
135
|
+
* add chatbot docs ([#4316](https://github.com/patternfly/patternfly-org/issues/4316)) ([31432c1](https://github.com/patternfly/patternfly-org/commit/31432c1146b4a7b2ee56f2325b65c21f223218bc))
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
# 6.0.0-alpha.114 (2024-10-10)
|
|
142
|
+
|
|
143
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
# 6.0.0-alpha.113 (2024-10-09)
|
|
150
|
+
|
|
151
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
# 6.0.0-alpha.112 (2024-10-08)
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
### Features
|
|
161
|
+
|
|
162
|
+
* **version:** update to extension prerelease ([#4309](https://github.com/patternfly/patternfly-org/issues/4309)) ([7259b79](https://github.com/patternfly/patternfly-org/commit/7259b79c01f45b33d84c848a8a01820fee75ddae))
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
# 6.0.0-alpha.111 (2024-10-08)
|
|
169
|
+
|
|
170
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
# 6.0.0-alpha.110 (2024-10-07)
|
|
177
|
+
|
|
178
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
# 6.0.0-alpha.109 (2024-10-02)
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
### Features
|
|
188
|
+
|
|
189
|
+
* **ver:** update to rc versions ([#4292](https://github.com/patternfly/patternfly-org/issues/4292)) ([c483e10](https://github.com/patternfly/patternfly-org/commit/c483e102f4dd061262e0faa953483f0d0ca164df))
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
# 6.0.0-alpha.108 (2024-10-02)
|
|
196
|
+
|
|
197
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
# 6.0.0-alpha.107 (2024-10-01)
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
### Features
|
|
207
|
+
|
|
208
|
+
* **site:** fix build for prerelease, use editorial content ([#4271](https://github.com/patternfly/patternfly-org/issues/4271)) ([154cca6](https://github.com/patternfly/patternfly-org/commit/154cca69e2d6f2b1aef48e983a131a39185f2028))
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
# 6.0.0-alpha.106 (2024-09-27)
|
|
215
|
+
|
|
216
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
# 6.0.0-alpha.105 (2024-09-26)
|
|
223
|
+
|
|
224
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
# 6.0.0-alpha.104 (2024-09-25)
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
### Bug Fixes
|
|
234
|
+
|
|
235
|
+
* **search:** add search bar back in ([#4199](https://github.com/patternfly/patternfly-org/issues/4199)) ([f8e7ec8](https://github.com/patternfly/patternfly-org/commit/f8e7ec8281b95b683e168f3ca74400747ac10fcc))
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
# 6.0.0-alpha.103 (2024-09-25)
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
### Bug Fixes
|
|
245
|
+
|
|
246
|
+
* Reenabled patternfly quickstarts. ([#4267](https://github.com/patternfly/patternfly-org/issues/4267)) ([25c87bb](https://github.com/patternfly/patternfly-org/commit/25c87bb5f1dbc42d04a95c2e9e254692c7f99b5c))
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
# 6.0.0-alpha.102 (2024-09-23)
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
### Bug Fixes
|
|
256
|
+
|
|
257
|
+
* **sideNav:** revert temp fix for tokens update ([#4270](https://github.com/patternfly/patternfly-org/issues/4270)) ([4ccd2f0](https://github.com/patternfly/patternfly-org/commit/4ccd2f01f780e706cbfa0664007f3bdf873797ad))
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
# 6.0.0-alpha.101 (2024-09-23)
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
### Features
|
|
267
|
+
|
|
268
|
+
* **site:** version bump ([#4276](https://github.com/patternfly/patternfly-org/issues/4276)) ([d9c2648](https://github.com/patternfly/patternfly-org/commit/d9c26480a5ac2c7922d0de4c912b9bbe2e25e18c))
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
# 6.0.0-alpha.100 (2024-09-23)
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
### Bug Fixes
|
|
278
|
+
|
|
279
|
+
* **chokidar:** update chokidar watch calls as v4 does not support globs ([#4272](https://github.com/patternfly/patternfly-org/issues/4272)) ([82232ec](https://github.com/patternfly/patternfly-org/commit/82232ecbfc928a61b57f80ccc43bbb729dce94db))
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
6
285
|
# 6.0.0-alpha.99 (2024-09-19)
|
|
7
286
|
|
|
8
287
|
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
@@ -22,6 +22,7 @@ export const AutoLinkHeader = ({
|
|
|
22
22
|
component={headingLevel}
|
|
23
23
|
className={css('ws-heading', className)}
|
|
24
24
|
tabIndex={-1}
|
|
25
|
+
isEditorial
|
|
25
26
|
>
|
|
26
27
|
<Link href={`#${slug}`} className="ws-heading-anchor" tabIndex="-1" aria-hidden>
|
|
27
28
|
<LinkIcon className="ws-heading-anchor-icon" style={{ verticalAlign: 'middle' }} />
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { List, ListItem, debounce } from
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Tr,
|
|
8
|
-
Tbody,
|
|
9
|
-
Td
|
|
10
|
-
} from "@patternfly/react-table";
|
|
11
|
-
import { AutoLinkHeader } from "../autoLinkHeader/autoLinkHeader";
|
|
12
|
-
import * as tokensModule from "@patternfly/react-tokens/dist/esm/componentIndex";
|
|
13
|
-
import LevelUpAltIcon from "@patternfly/react-icons/dist/esm/icons/level-up-alt-icon";
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { List, ListItem, debounce } from '@patternfly/react-core';
|
|
3
|
+
import { Table, Thead, Th, Tr, Tbody, Td } from '@patternfly/react-table';
|
|
4
|
+
import { AutoLinkHeader } from '../autoLinkHeader/autoLinkHeader';
|
|
5
|
+
import * as tokensModule from '@patternfly/react-tokens/dist/esm/componentIndex';
|
|
6
|
+
import LevelUpAltIcon from '@patternfly/react-icons/dist/esm/icons/level-up-alt-icon';
|
|
14
7
|
import { CSSSearch } from './cssSearch';
|
|
15
8
|
|
|
16
9
|
const isColorRegex = /^(#|rgb)/;
|
|
@@ -19,27 +12,25 @@ const mappingAsList = (property, values) => (
|
|
|
19
12
|
<List isPlain>
|
|
20
13
|
<ListItem>{property}</ListItem>
|
|
21
14
|
{values.map((entry) => (
|
|
22
|
-
<ListItem
|
|
23
|
-
icon={<LevelUpAltIcon className="rotate-90-deg" />}
|
|
24
|
-
>
|
|
15
|
+
<ListItem key={entry} icon={<LevelUpAltIcon className="rotate-90-deg" />}>
|
|
25
16
|
{entry}
|
|
26
17
|
</ListItem>
|
|
27
18
|
))}
|
|
28
19
|
</List>
|
|
29
20
|
);
|
|
30
21
|
|
|
31
|
-
const flattenList = files => {
|
|
22
|
+
const flattenList = (files) => {
|
|
32
23
|
let list = [];
|
|
33
|
-
files.forEach(file => {
|
|
24
|
+
files.forEach((file) => {
|
|
34
25
|
Object.entries(file).forEach(([selector, values]) => {
|
|
35
|
-
if(values !== undefined) {
|
|
26
|
+
if (values !== undefined) {
|
|
36
27
|
Object.entries(values).forEach(([key, val]) => {
|
|
37
28
|
list.push({
|
|
38
29
|
selector,
|
|
39
30
|
property: val.name,
|
|
40
31
|
token: key,
|
|
41
32
|
value: val.value,
|
|
42
|
-
values: val.values
|
|
33
|
+
values: val.values,
|
|
43
34
|
});
|
|
44
35
|
});
|
|
45
36
|
}
|
|
@@ -51,15 +42,15 @@ const flattenList = files => {
|
|
|
51
42
|
export class CSSVariables extends React.Component {
|
|
52
43
|
constructor(props) {
|
|
53
44
|
super(props);
|
|
54
|
-
const prefixToken = props.prefix.replace(
|
|
45
|
+
const prefixToken = props.prefix.replace('pf-v6-', '').replace(/-+/g, '_');
|
|
55
46
|
const applicableFiles = Object.entries(tokensModule)
|
|
56
47
|
.filter(([key, val]) => prefixToken === key)
|
|
57
48
|
.sort(([key1], [key2]) => key1.localeCompare(key2))
|
|
58
49
|
.map(([key, val]) => {
|
|
59
50
|
if (props.selector) {
|
|
60
51
|
return {
|
|
61
|
-
[props.selector]: val[props.selector]
|
|
62
|
-
}
|
|
52
|
+
[props.selector]: val[props.selector],
|
|
53
|
+
};
|
|
63
54
|
}
|
|
64
55
|
return val;
|
|
65
56
|
});
|
|
@@ -69,15 +60,15 @@ export class CSSVariables extends React.Component {
|
|
|
69
60
|
this.state = {
|
|
70
61
|
searchRE: '',
|
|
71
62
|
rows: this.getFilteredRows(),
|
|
72
|
-
allRowsExpanded: true
|
|
63
|
+
allRowsExpanded: true,
|
|
73
64
|
};
|
|
74
65
|
}
|
|
75
66
|
|
|
76
67
|
getFilteredRows = (searchRE) => {
|
|
77
68
|
let filteredRows = [];
|
|
78
69
|
let rowNumber = -1;
|
|
79
|
-
this.flatList.forEach(row => {
|
|
80
|
-
const { selector, property, token, value, values} = row;
|
|
70
|
+
this.flatList.forEach((row) => {
|
|
71
|
+
const { selector, property, token, value, values } = row;
|
|
81
72
|
const passes =
|
|
82
73
|
!searchRE ||
|
|
83
74
|
searchRE.test(selector) ||
|
|
@@ -88,7 +79,7 @@ export class CSSVariables extends React.Component {
|
|
|
88
79
|
const rowKey = `${selector}_${property}`;
|
|
89
80
|
const isColor = isColorRegex.test(value);
|
|
90
81
|
const cells = [
|
|
91
|
-
...this.props.hideSelectorColumn ? [] : [selector],
|
|
82
|
+
...(this.props.hideSelectorColumn ? [] : [selector]),
|
|
92
83
|
property,
|
|
93
84
|
<div key={rowKey}>
|
|
94
85
|
<div
|
|
@@ -100,7 +91,10 @@ export class CSSVariables extends React.Component {
|
|
|
100
91
|
key={`${rowKey}_2`}
|
|
101
92
|
className="pf-v6-l-flex pf-m-column pf-m-align-self-center"
|
|
102
93
|
>
|
|
103
|
-
<span
|
|
94
|
+
<span
|
|
95
|
+
className="circle"
|
|
96
|
+
style={{ backgroundColor: `var(${property})` }}
|
|
97
|
+
/>
|
|
104
98
|
</div>
|
|
105
99
|
)}
|
|
106
100
|
<div
|
|
@@ -110,20 +104,22 @@ export class CSSVariables extends React.Component {
|
|
|
110
104
|
{isColor && '(In light theme)'} {value}
|
|
111
105
|
</div>
|
|
112
106
|
</div>
|
|
113
|
-
</div
|
|
107
|
+
</div>,
|
|
114
108
|
];
|
|
115
109
|
filteredRows.push({
|
|
116
110
|
isOpen: values ? false : undefined,
|
|
117
111
|
cells,
|
|
118
|
-
details: values
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
112
|
+
details: values
|
|
113
|
+
? {
|
|
114
|
+
parent: rowNumber,
|
|
115
|
+
fullWidth: true,
|
|
116
|
+
data: mappingAsList(property, values),
|
|
117
|
+
}
|
|
118
|
+
: undefined,
|
|
123
119
|
});
|
|
124
120
|
rowNumber += 1;
|
|
125
121
|
if (values) {
|
|
126
|
-
rowNumber += 1
|
|
122
|
+
rowNumber += 1;
|
|
127
123
|
}
|
|
128
124
|
}
|
|
129
125
|
});
|
|
@@ -136,28 +132,35 @@ export class CSSVariables extends React.Component {
|
|
|
136
132
|
let newRows = Array.from(rows);
|
|
137
133
|
|
|
138
134
|
if (collapseAll) {
|
|
139
|
-
newRows = newRows.map(r =>
|
|
135
|
+
newRows = newRows.map((r) =>
|
|
136
|
+
r.isOpen === undefined ? r : { ...r, isOpen }
|
|
137
|
+
);
|
|
140
138
|
} else {
|
|
141
139
|
newRows[rowKey] = { ...newRows[rowKey], isOpen };
|
|
142
140
|
}
|
|
143
|
-
this.setState(prevState => ({
|
|
141
|
+
this.setState((prevState) => ({
|
|
144
142
|
rows: newRows,
|
|
145
|
-
...(collapseAll && {allRowsExpanded: !prevState.allRowsExpanded})
|
|
143
|
+
...(collapseAll && { allRowsExpanded: !prevState.allRowsExpanded }),
|
|
146
144
|
}));
|
|
147
145
|
};
|
|
148
146
|
|
|
149
|
-
getDebouncedFilteredRows = debounce(value => {
|
|
150
|
-
const searchRE = new RegExp(value,
|
|
147
|
+
getDebouncedFilteredRows = debounce((value) => {
|
|
148
|
+
const searchRE = new RegExp(value, 'i');
|
|
151
149
|
this.setState({
|
|
152
150
|
searchRE,
|
|
153
|
-
rows: this.getFilteredRows(searchRE)
|
|
151
|
+
rows: this.getFilteredRows(searchRE),
|
|
154
152
|
});
|
|
155
153
|
}, 500);
|
|
156
154
|
|
|
157
155
|
render() {
|
|
158
156
|
return (
|
|
159
157
|
<React.Fragment>
|
|
160
|
-
{this.props.autoLinkHeader &&
|
|
158
|
+
{this.props.autoLinkHeader && (
|
|
159
|
+
<AutoLinkHeader
|
|
160
|
+
headingLevel="h3"
|
|
161
|
+
className="pf-v6-u-mt-lg pf-v6-u-mb-md"
|
|
162
|
+
>{`Prefixed with '${this.props.prefix}'`}</AutoLinkHeader>
|
|
163
|
+
)}
|
|
161
164
|
<CSSSearch getDebouncedFilteredRows={this.getDebouncedFilteredRows} />
|
|
162
165
|
<Table
|
|
163
166
|
variant="compact"
|
|
@@ -183,11 +186,11 @@ export class CSSVariables extends React.Component {
|
|
|
183
186
|
expand={
|
|
184
187
|
row.details
|
|
185
188
|
? {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
189
|
+
rowIndex,
|
|
190
|
+
isExpanded: row.isOpen,
|
|
191
|
+
onToggle: this.onCollapse,
|
|
192
|
+
expandId: `css-vars-expandable-toggle-${this.props.prefix}`,
|
|
193
|
+
}
|
|
191
194
|
: undefined
|
|
192
195
|
}
|
|
193
196
|
/>
|
|
@@ -198,19 +201,22 @@ export class CSSVariables extends React.Component {
|
|
|
198
201
|
{row.details ? (
|
|
199
202
|
<Tr isExpanded={row.isOpen}>
|
|
200
203
|
{!row.details.fullWidth ? <Td /> : null}
|
|
201
|
-
<Td dataLabel="Selector" colSpan={5}>
|
|
204
|
+
<Td dataLabel="Selector" colSpan={5}>
|
|
205
|
+
{row.details.data}
|
|
206
|
+
</Td>
|
|
202
207
|
</Tr>
|
|
203
208
|
) : null}
|
|
204
209
|
</Tbody>
|
|
205
|
-
))
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
</
|
|
212
|
-
|
|
213
|
-
|
|
210
|
+
))
|
|
211
|
+
) : (
|
|
212
|
+
<Tbody>
|
|
213
|
+
{this.state.rows.map((row, rowIndex) => (
|
|
214
|
+
<Tr key={rowIndex}>
|
|
215
|
+
<Td dataLabel="Variable">{row.cells[0]}</Td>
|
|
216
|
+
<Td dataLabel="Value">{row.cells[1]}</Td>
|
|
217
|
+
</Tr>
|
|
218
|
+
))}
|
|
219
|
+
</Tbody>
|
|
214
220
|
)}
|
|
215
221
|
</Table>
|
|
216
222
|
</React.Fragment>
|