@patternfly/documentation-framework 6.0.0-alpha.2 → 6.0.0-alpha.20
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 +366 -0
- package/components/autoLinkHeader/autoLinkHeader.css +2 -2
- package/components/cssVariables/cssVariables.css +4 -4
- package/components/cssVariables/cssVariables.js +5 -5
- package/components/example/example.css +29 -29
- package/components/example/example.js +5 -5
- package/components/example/exampleToolbar.js +3 -2
- package/components/footer/footer.css +16 -16
- package/components/footer/footer.js +13 -13
- package/components/gdprBanner/gdprBanner.css +2 -2
- package/components/gdprBanner/gdprBanner.js +4 -4
- package/components/inlineAlert/inlineAlert.js +1 -1
- package/components/propsTable/propsTable.js +3 -3
- package/components/sectionGallery/sectionDataListLayout.js +3 -3
- package/components/sectionGallery/sectionGallery.css +12 -12
- package/components/sectionGallery/sectionGalleryToolbar.js +1 -1
- package/components/sideNav/sideNav.css +11 -15
- package/components/sideNav/sideNav.js +3 -4
- package/components/tableOfContents/tableOfContents.css +23 -24
- package/layouts/sideNavLayout/sideNavLayout.css +14 -14
- package/layouts/sideNavLayout/sideNavLayout.js +62 -26
- package/package.json +8 -11
- package/pages/404/404.css +2 -2
- package/pages/404/index.js +1 -1
- package/routes.js +3 -1
- package/scripts/md/parseMD.js +2 -0
- package/scripts/webpack/webpack.base.config.js +1 -4
- package/scripts/writeScreenshots.js +2 -2
- package/templates/mdx.css +168 -157
- package/templates/mdx.js +13 -7
- package/versions.json +85 -9
- package/pages/global-css-variables.md +0 -109
- package/pages/img/component-variable-mapping.png +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,183 @@
|
|
|
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.0-alpha.20 (2024-04-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* dark theme use v6 classname ([54cdb71](https://github.com/patternfly/patternfly-org/commit/54cdb717052eb00da735b0c7db6a82db4ef5f9de))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# 6.0.0-alpha.19 (2024-04-02)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **misc:** update alpha versions ([#3951](https://github.com/patternfly/patternfly-org/issues/3951)) ([c9c41ab](https://github.com/patternfly/patternfly-org/commit/c9c41abc396347e17d0e5afd5431331b80860ebb))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# 6.0.0-alpha.18 (2024-03-29)
|
|
29
|
+
|
|
30
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# 6.0.0-alpha.17 (2024-03-28)
|
|
37
|
+
|
|
38
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
# 6.0.0-alpha.16 (2024-03-27)
|
|
45
|
+
|
|
46
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
# 6.0.0-alpha.15 (2024-03-26)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### Bug Fixes
|
|
56
|
+
|
|
57
|
+
* **docs:** fixed table of contents expand button cutoff ([#3929](https://github.com/patternfly/patternfly-org/issues/3929)) ([246ded9](https://github.com/patternfly/patternfly-org/commit/246ded97c3e52451ea46ee93638c974760d5e873))
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
# 6.0.0-alpha.14 (2024-03-22)
|
|
64
|
+
|
|
65
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
# 6.0.0-alpha.13 (2024-03-21)
|
|
72
|
+
|
|
73
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
# 6.0.0-alpha.12 (2024-02-27)
|
|
80
|
+
|
|
81
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
# 6.0.0-alpha.11 (2024-02-22)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### Features
|
|
91
|
+
|
|
92
|
+
* pull in latest alpha with new v6 prefixes ([#3899](https://github.com/patternfly/patternfly-org/issues/3899)) ([8e57612](https://github.com/patternfly/patternfly-org/commit/8e57612b00b626a1d5b8d8762139a1499cf46aa3))
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
# 6.0.0-alpha.10 (2024-02-01)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
### Bug Fixes
|
|
102
|
+
|
|
103
|
+
* bump docs framework version ([815e094](https://github.com/patternfly/patternfly-org/commit/815e09456987062a9b5d8a17c960698fd0c1c81c))
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
# 6.0.0-alpha.9 (2024-01-23)
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
### Bug Fixes
|
|
113
|
+
|
|
114
|
+
* Update versions.json to include drag drop alpha ([9d924b7](https://github.com/patternfly/patternfly-org/commit/9d924b747cc3e431dffe438ed41940fbd610aa91))
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
# 6.0.0-alpha.8 (2024-01-15)
|
|
121
|
+
|
|
122
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
# 6.0.0-alpha.7 (2024-01-12)
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
### Bug Fixes
|
|
132
|
+
|
|
133
|
+
* Update brand svg id to avoid duplicate ids ([55d351b](https://github.com/patternfly/patternfly-org/commit/55d351be1b8d4d4f0b6d5f5090cbedc6629c6d94))
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
# 6.0.0-alpha.6 (2024-01-12)
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
### Bug Fixes
|
|
143
|
+
|
|
144
|
+
* bump puppeteer ([#3858](https://github.com/patternfly/patternfly-org/issues/3858)) ([2182a0f](https://github.com/patternfly/patternfly-org/commit/2182a0fe4d4d50c866703efe316deafffc44e5a2))
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
# 6.0.0-alpha.5 (2023-12-20)
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
### Bug Fixes
|
|
154
|
+
|
|
155
|
+
* PF brand logo in masthead to inline svg ([cafef36](https://github.com/patternfly/patternfly-org/commit/cafef363ea6b0912af9c5a1d5a0e10c353b60fd0))
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
# 6.0.0-alpha.4 (2023-12-20)
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
### Bug Fixes
|
|
165
|
+
|
|
166
|
+
* update white space to test publishing to aws ([4432fbe](https://github.com/patternfly/patternfly-org/commit/4432fbea86ab6f420cef816475718a62c673a870))
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
# 6.0.0-alpha.3 (2023-12-18)
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
### Bug Fixes
|
|
176
|
+
|
|
177
|
+
* try publish v6 to aws ([#3845](https://github.com/patternfly/patternfly-org/issues/3845)) ([9cc0909](https://github.com/patternfly/patternfly-org/commit/9cc09090ee035ac7087aacd9067b52a146bf3229))
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
6
183
|
# 6.0.0-alpha.2 (2023-12-15)
|
|
7
184
|
|
|
8
185
|
|
|
@@ -21,6 +198,195 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
21
198
|
|
|
22
199
|
* try a v6 release ([7d3150c](https://github.com/patternfly/patternfly-org/commit/7d3150c1195b013001720d1e5161cbb724a0d73b))
|
|
23
200
|
|
|
201
|
+
# Change Log
|
|
202
|
+
|
|
203
|
+
All notable changes to this project will be documented in this file.
|
|
204
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
205
|
+
|
|
206
|
+
# 5.8.0 (2024-03-20)
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
### Features
|
|
210
|
+
|
|
211
|
+
* **templates:** add templates package to versions.json ([#3902](https://github.com/patternfly/patternfly-org/issues/3902)) ([c7c727c](https://github.com/patternfly/patternfly-org/commit/c7c727c717d5cc3c031f4f3c52070ffc6164e5d6))
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
# 5.7.0 (2024-03-19)
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
### Features
|
|
221
|
+
|
|
222
|
+
* add pf 6 alpha banner to home page and version switcher ([#3896](https://github.com/patternfly/patternfly-org/issues/3896)) ([f7aaa22](https://github.com/patternfly/patternfly-org/commit/f7aaa22d12310aa62533de4169e1fa70a49a20d9))
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
# 5.6.0 (2024-03-13)
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
### Features
|
|
232
|
+
|
|
233
|
+
* **deps:** version bump and release notes for 5.2.2 patch release ([#3919](https://github.com/patternfly/patternfly-org/issues/3919)) ([94d3654](https://github.com/patternfly/patternfly-org/commit/94d3654768f42f2ae7b3c0734d1e5f211cd33ff6))
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
## 5.5.1 (2024-03-12)
|
|
240
|
+
|
|
241
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
# 5.5.0 (2024-03-08)
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
### Features
|
|
251
|
+
|
|
252
|
+
* **deps:** version bump for 5.2.1 release ([#3913](https://github.com/patternfly/patternfly-org/issues/3913)) ([46cc8b7](https://github.com/patternfly/patternfly-org/commit/46cc8b70e06b9bda61067beba57d928e428b73c5))
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
## 5.4.3 (2024-02-27)
|
|
259
|
+
|
|
260
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
## 5.4.2 (2024-02-14)
|
|
267
|
+
|
|
268
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
## 5.4.1 (2024-02-06)
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
### Bug Fixes
|
|
278
|
+
|
|
279
|
+
* Bump topology to 5.2.1 ([#3881](https://github.com/patternfly/patternfly-org/issues/3881)) ([af13c97](https://github.com/patternfly/patternfly-org/commit/af13c971384aaaa5bd87ce3e98dccee4b1214889))
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
# 5.4.0 (2024-02-03)
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
### Features
|
|
289
|
+
|
|
290
|
+
* release 5.3 ([#3878](https://github.com/patternfly/patternfly-org/issues/3878)) ([3d1d130](https://github.com/patternfly/patternfly-org/commit/3d1d130c63ac4421ed8a307cd6ef140fa6e1d6f2))
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
## 5.3.27 (2024-02-01)
|
|
297
|
+
|
|
298
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
## 5.3.26 (2024-02-01)
|
|
305
|
+
|
|
306
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
## 5.3.25 (2024-01-30)
|
|
313
|
+
|
|
314
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
## 5.3.24 (2024-01-30)
|
|
321
|
+
|
|
322
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
## 5.3.23 (2024-01-19)
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
### Bug Fixes
|
|
332
|
+
|
|
333
|
+
* avoid applying beta tags to nav items for next components ([#3868](https://github.com/patternfly/patternfly-org/issues/3868)) ([169c96f](https://github.com/patternfly/patternfly-org/commit/169c96f55b1bfdcb9859dbab27b88f5a180f48ba))
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
## 5.3.22 (2024-01-16)
|
|
340
|
+
|
|
341
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
## 5.3.21 (2024-01-16)
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
### Bug Fixes
|
|
351
|
+
|
|
352
|
+
* bump to latest release candidates ahead of 5.2 release ([#3862](https://github.com/patternfly/patternfly-org/issues/3862)) ([12eeb78](https://github.com/patternfly/patternfly-org/commit/12eeb782d32c4fa65f6aef64292f1e0d92f0d183))
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
## 5.3.20 (2024-01-15)
|
|
358
|
+
|
|
359
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
## 5.3.19 (2024-01-15)
|
|
363
|
+
|
|
364
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
## 5.3.18 (2024-01-12)
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
### Bug Fixes
|
|
371
|
+
|
|
372
|
+
* bump puppeteer to fix core ([#3860](https://github.com/patternfly/patternfly-org/issues/3860)) ([1695209](https://github.com/patternfly/patternfly-org/commit/169520944b7c3dccf69709e6e2075b9153fce059))
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
## 5.3.17 (2024-01-05)
|
|
376
|
+
|
|
377
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
## 5.3.16 (2024-01-03)
|
|
381
|
+
|
|
382
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
## 5.3.15 (2023-12-14)
|
|
387
|
+
|
|
388
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
389
|
+
|
|
24
390
|
|
|
25
391
|
|
|
26
392
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.ws-heading-anchor {
|
|
6
|
-
color: var(--pf-
|
|
7
|
-
transform: translate(calc(-100% - var(--pf-
|
|
6
|
+
color: var(--pf-v6-global--Color--100);
|
|
7
|
+
transform: translate(calc(-100% - var(--pf-v6-global--spacer--xs)), -50%);
|
|
8
8
|
opacity: 0;
|
|
9
9
|
position: absolute;
|
|
10
10
|
left: 0;
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
display: inline-block;
|
|
3
3
|
height: 18px;
|
|
4
4
|
width: 18px;
|
|
5
|
-
border: var(--pf-
|
|
6
|
-
border-radius: var(--pf-
|
|
5
|
+
border: var(--pf-v6-global--BorderWidth--sm) solid var(--pf-v6-global--BorderColor--200);
|
|
6
|
+
border-radius: var(--pf-v6-global--BorderRadius--lg);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.ws-td-text {
|
|
10
|
-
font-size: var(--pf-
|
|
10
|
+
font-size: var(--pf-v6-global--FontSize--sm) !important;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.ws-css-property {
|
|
14
|
-
padding: var(--pf-
|
|
14
|
+
padding: var(--pf-v6-global--spacer--xs) var(--pf-v6-global--spacer--md);
|
|
15
15
|
}
|
|
@@ -62,7 +62,7 @@ const flattenList = files => {
|
|
|
62
62
|
export class CSSVariables extends React.Component {
|
|
63
63
|
constructor(props) {
|
|
64
64
|
super(props);
|
|
65
|
-
const prefixToken = props.prefix.replace("pf-
|
|
65
|
+
const prefixToken = props.prefix.replace("pf-v6-", "").replace(/-+/g, "_");
|
|
66
66
|
const applicableFiles = Object.entries(tokensModule)
|
|
67
67
|
.filter(([key, val]) => prefixToken === key)
|
|
68
68
|
.sort(([key1], [key2]) => key1.localeCompare(key2))
|
|
@@ -103,12 +103,12 @@ export class CSSVariables extends React.Component {
|
|
|
103
103
|
<div key={rowKey}>
|
|
104
104
|
<div
|
|
105
105
|
key={`${rowKey}_1`}
|
|
106
|
-
className="pf-
|
|
106
|
+
className="pf-v6-l-flex pf-m-space-items-sm"
|
|
107
107
|
>
|
|
108
108
|
{isColorRegex.test(value) && (
|
|
109
109
|
<div
|
|
110
110
|
key={`${rowKey}_2`}
|
|
111
|
-
className="pf-
|
|
111
|
+
className="pf-v6-l-flex pf-m-column pf-m-align-self-center"
|
|
112
112
|
>
|
|
113
113
|
<span
|
|
114
114
|
className="ws-color-box"
|
|
@@ -118,7 +118,7 @@ export class CSSVariables extends React.Component {
|
|
|
118
118
|
)}
|
|
119
119
|
<div
|
|
120
120
|
key={`${rowKey}_3`}
|
|
121
|
-
className="pf-
|
|
121
|
+
className="pf-v6-l-flex pf-m-column pf-m-align-self-center ws-td-text"
|
|
122
122
|
>
|
|
123
123
|
{value}
|
|
124
124
|
</div>
|
|
@@ -170,7 +170,7 @@ export class CSSVariables extends React.Component {
|
|
|
170
170
|
render() {
|
|
171
171
|
return (
|
|
172
172
|
<React.Fragment>
|
|
173
|
-
{this.props.autoLinkHeader && <AutoLinkHeader size="h3" className="pf-
|
|
173
|
+
{this.props.autoLinkHeader && <AutoLinkHeader size="h3" className="pf-v6-u-mt-lg pf-v6-u-mb-md">{`Prefixed with '${this.props.prefix}'`}</AutoLinkHeader>}
|
|
174
174
|
<CSSSearch getDebouncedFilteredRows={this.getDebouncedFilteredRows} />
|
|
175
175
|
<Table
|
|
176
176
|
variant="compact"
|
|
@@ -3,52 +3,52 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.ws-example {
|
|
6
|
-
margin-top: var(--pf-
|
|
7
|
-
margin-bottom: var(--pf-
|
|
6
|
+
margin-top: var(--pf-v6-global--spacer--lg);
|
|
7
|
+
margin-bottom: var(--pf-v6-global--spacer--lg);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.ws-example > .ws-example-header {
|
|
11
|
-
padding: var(--pf-
|
|
11
|
+
padding: var(--pf-v6-global--spacer--md);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.ws-example-header > .ws-example-heading:not(:last-child) {
|
|
15
|
-
margin-bottom: var(--pf-
|
|
15
|
+
margin-bottom: var(--pf-v6-global--spacer--md);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.ws-code-editor:not(.ws-example-code-expanded) > .pf-
|
|
19
|
-
--pf-
|
|
18
|
+
.ws-code-editor:not(.ws-example-code-expanded) > .pf-v6-c-code-editor__header::before {
|
|
19
|
+
--pf-v6-c-code-editor__header--before--BorderBottomWidth: 0;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.ws-code-editor-control {
|
|
23
|
-
--pf-
|
|
24
|
-
--pf-
|
|
25
|
-
--pf-
|
|
26
|
-
--pf-
|
|
23
|
+
--pf-v6-c-button--m-control--BackgroundColor: transparent;
|
|
24
|
+
--pf-v6-c-button--m-control--active--BackgroundColor: transparent;
|
|
25
|
+
--pf-v6-c-button--m-control--focus--BackgroundColor: transparent;
|
|
26
|
+
--pf-v6-c-button--m-control--hover--BackgroundColor: transparent;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
.ws-code-editor-control.pf-
|
|
30
|
-
--pf-
|
|
29
|
+
.ws-code-editor-control.pf-v6-c-button {
|
|
30
|
+
--pf-v6-c-button--after--BorderWidth: 0;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.ws-preview {
|
|
34
|
-
padding: var(--pf-
|
|
35
|
-
background-color: var(--pf-
|
|
36
|
-
border-bottom: var(--pf-
|
|
34
|
+
padding: var(--pf-v6-global--spacer--md);
|
|
35
|
+
background-color: var(--pf-v6-global--BackgroundColor--100);
|
|
36
|
+
border-bottom: var(--pf-v6-global--BorderWidth--sm) solid var(--pf-v6-global--BorderColor--300);
|
|
37
37
|
transition: width .2s ease-in-out;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.ws-core-c-page.ws-preview > .ws-preview-html,
|
|
41
|
-
.ws-react-c-page.ws-preview > .pf-
|
|
41
|
+
.ws-react-c-page.ws-preview > .pf-v6-c-page {
|
|
42
42
|
overflow: hidden;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.ws-editor {
|
|
46
|
-
font-size: var(--pf-
|
|
46
|
+
font-size: var(--pf-v6-global--FontSize--md);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.ws-editor .token.punctuation,
|
|
50
50
|
.ws-editor .token.operator {
|
|
51
|
-
color: var(--pf-
|
|
51
|
+
color: var(--pf-v6-global--danger-color--100);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.ws-preview__thumbnail-link {
|
|
@@ -100,33 +100,33 @@
|
|
|
100
100
|
color: rgba(255,255,255,.4);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
.pf-
|
|
104
|
-
--pf-
|
|
105
|
-
--pf-
|
|
106
|
-
border: var(--pf-
|
|
103
|
+
.pf-v6-c-badge.ws-beta-badge {
|
|
104
|
+
--pf-v6-c-badge--m-unread--BackgroundColor: var(--pf-v6-global--BackgroundColor--100);
|
|
105
|
+
--pf-v6-c-badge--m-unread--Color: var(--pf-v6-global--primary-color--100);
|
|
106
|
+
border: var(--pf-v6-global--BorderWidth--sm) solid var(--pf-v6-global--primary-color--100);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
.ws-prop-required {
|
|
110
|
-
color: var(--pf-
|
|
110
|
+
color: var(--pf-v6-global--danger-color--100);
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
.ws-full-page-utils {
|
|
114
114
|
position: fixed;
|
|
115
115
|
right: 0;
|
|
116
116
|
bottom: 0;
|
|
117
|
-
padding: var(--pf-
|
|
118
|
-
z-index: var(--pf-
|
|
117
|
+
padding: var(--pf-v6-global--spacer--lg);
|
|
118
|
+
z-index: var(--pf-v6-global--ZIndex--2xl);
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
.ws-full-page-utils::before {
|
|
122
122
|
position: absolute;
|
|
123
123
|
inset: 0;
|
|
124
124
|
content: "";
|
|
125
|
-
background-color: var(--pf-
|
|
125
|
+
background-color: var(--pf-v6-global--BackgroundColor--100);
|
|
126
126
|
opacity: 0.8;
|
|
127
|
-
box-shadow: var(--pf-
|
|
127
|
+
box-shadow: var(--pf-v6-global--BoxShadow--sm);
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
.pf-
|
|
131
|
-
background-color: var(--pf-
|
|
130
|
+
.pf-v6-theme-dark .ws-theme-switch-full-page::before {
|
|
131
|
+
background-color: var(--pf-v6-global--BackgroundColor--300);
|
|
132
132
|
}
|
|
@@ -131,7 +131,7 @@ export const Example = ({
|
|
|
131
131
|
if (lang === 'html') {
|
|
132
132
|
livePreview = (
|
|
133
133
|
<div
|
|
134
|
-
className={css('ws-preview-html', isFullscreenPreview && 'pf-
|
|
134
|
+
className={css('ws-preview-html', isFullscreenPreview && 'pf-v6-u-h-100')}
|
|
135
135
|
dangerouslySetInnerHTML={{ __html: editorCode }}
|
|
136
136
|
/>
|
|
137
137
|
);
|
|
@@ -164,13 +164,13 @@ export const Example = ({
|
|
|
164
164
|
|
|
165
165
|
if (isFullscreenPreview) {
|
|
166
166
|
return (
|
|
167
|
-
<div id={previewId} className={css(className, 'pf-
|
|
167
|
+
<div id={previewId} className={css(className, 'pf-v6-u-h-100')}>
|
|
168
168
|
{livePreview}
|
|
169
169
|
{(hasDarkThemeSwitcher || hasRTLSwitcher) && (
|
|
170
|
-
<Flex direction={{ default: 'column' }} gap={{ default: 'gapLg' }} className="ws-full-page-utils pf-
|
|
170
|
+
<Flex direction={{ default: 'column' }} gap={{ default: 'gapLg' }} className="ws-full-page-utils pf-v6-m-dir-ltr ">
|
|
171
171
|
{hasDarkThemeSwitcher && (
|
|
172
172
|
<Switch id="ws-example-theme-switch" label="Dark theme" defaultChecked={false} onChange={() =>
|
|
173
|
-
document.querySelector('html').classList.toggle('pf-
|
|
173
|
+
document.querySelector('html').classList.toggle('pf-v6-theme-dark')} />
|
|
174
174
|
)}
|
|
175
175
|
{hasRTLSwitcher && (
|
|
176
176
|
<Switch id="ws-example-rtl-switch" label="RTL" defaultChecked={false} onChange={() => {
|
|
@@ -248,7 +248,7 @@ export const Example = ({
|
|
|
248
248
|
className={css(
|
|
249
249
|
className,
|
|
250
250
|
isFullscreen ? 'ws-preview-fullscreen' : 'ws-preview',
|
|
251
|
-
isRTL && 'pf-
|
|
251
|
+
isRTL && 'pf-v6-m-dir-rtl')
|
|
252
252
|
}
|
|
253
253
|
>
|
|
254
254
|
{livePreview}
|
|
@@ -103,7 +103,7 @@ export const ExampleToolbar = ({
|
|
|
103
103
|
copyCode();
|
|
104
104
|
trackEvent('code_editor_control_click', 'click_event', 'COPY_CODE');
|
|
105
105
|
}}
|
|
106
|
-
variant="
|
|
106
|
+
variant="plain"
|
|
107
107
|
aria-label={copyAriaLabel}
|
|
108
108
|
className={editorControlProps.className}
|
|
109
109
|
>
|
|
@@ -124,7 +124,7 @@ export const ExampleToolbar = ({
|
|
|
124
124
|
>
|
|
125
125
|
<Button
|
|
126
126
|
aria-label={codesandboxAriaLabel}
|
|
127
|
-
variant="
|
|
127
|
+
variant="plain"
|
|
128
128
|
type="submit"
|
|
129
129
|
onClick={() => {
|
|
130
130
|
trackEvent('code_editor_control_click', 'click_event', 'CODESANDBOX_LINK');
|
|
@@ -218,6 +218,7 @@ export const ExampleToolbar = ({
|
|
|
218
218
|
onEditorDidMount={onEditorDidMount}
|
|
219
219
|
isReadOnly={isFullscreen}
|
|
220
220
|
className={`${isEditorOpen ? 'ws-example-code-expanded ' : ''}ws-code-editor`}
|
|
221
|
+
isHeaderPlain
|
|
221
222
|
/>
|
|
222
223
|
);
|
|
223
224
|
}
|