@patternfly/patternfly 4.192.6 → 4.194.1
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/base/_chart-globals.scss +131 -0
- package/components/Chip/chip.css +1 -0
- package/components/Chip/chip.scss +1 -0
- package/components/ChipGroup/chip-group.css +4 -0
- package/components/ChipGroup/chip-group.scss +4 -0
- package/components/Label/label.css +5 -3
- package/components/Label/label.scss +3 -1
- package/components/Spinner/spinner.css +12 -12
- package/components/Spinner/spinner.scss +12 -12
- package/docs/components/Label/examples/Label.md +13 -1
- package/docs/components/LabelGroup/examples/LabelGroup.md +52 -5
- package/docs/demos/Card/examples/Card.md +4 -1
- package/docs/demos/Dashboard/examples/Dashboard.md +4 -1
- package/package.json +1 -1
- package/patternfly-charts-theme-dark.css +65 -0
- package/patternfly-charts-theme-dark.scss +8 -0
- package/patternfly-charts.css +109 -0
- package/patternfly-charts.scss +131 -0
- package/patternfly-no-reset.css +22 -15
- package/patternfly.css +22 -15
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/themes/dark/_chart-globals.scss +39 -0
- package/themes/dark/_patternfly-charts-theme-dark.scss +93 -0
package/base/_chart-globals.scss
CHANGED
|
@@ -172,10 +172,22 @@ $pf-chart-bullet--group-title--divider--Fill--Color: $pf-color-black-200;
|
|
|
172
172
|
$pf-chart-bullet--group-title--divider--stroke--Color: $pf-color-black-200;
|
|
173
173
|
$pf-chart-bullet--group-title--divider--stroke--Width: $pf-chart-global--stroke--Width--sm;
|
|
174
174
|
$pf-chart-bullet--Height: 140;
|
|
175
|
+
$pf-chart-bullet--label--title--Fill: $pf-chart-global--Fill--Color--900;
|
|
176
|
+
$pf-chart-bullet--label--grouptitle--Fill: $pf-chart-global--Fill--Color--900;
|
|
175
177
|
$pf-chart-bullet--label--subtitle--Fill: $pf-chart-global--Fill--Color--400;
|
|
176
178
|
$pf-chart-bullet--primary-measure--dot--size: 6;
|
|
177
179
|
$pf-chart-bullet--primary-measure--segmented--Width: 9;
|
|
180
|
+
$pf-chart-bullet--negative-measure--ColorScale--100: $pf-chart-color-red-100;
|
|
181
|
+
$pf-chart-bullet--negative-measure--ColorScale--200: $pf-chart-color-red-200;
|
|
182
|
+
$pf-chart-bullet--negative-measure--ColorScale--300: $pf-chart-color-red-300;
|
|
183
|
+
$pf-chart-bullet--negative-measure--ColorScale--400: $pf-chart-color-red-400;
|
|
184
|
+
$pf-chart-bullet--negative-measure--ColorScale--500: $pf-chart-color-red-500;
|
|
178
185
|
$pf-chart-bullet--qualitative-range--Width: 30;
|
|
186
|
+
$pf-chart-bullet--qualitative-range--ColorScale--100: $pf-chart-color-black-100;
|
|
187
|
+
$pf-chart-bullet--qualitative-range--ColorScale--200: $pf-chart-color-black-200;
|
|
188
|
+
$pf-chart-bullet--qualitative-range--ColorScale--300: $pf-chart-color-black-300;
|
|
189
|
+
$pf-chart-bullet--qualitative-range--ColorScale--400: $pf-chart-color-black-400;
|
|
190
|
+
$pf-chart-bullet--qualitative-range--ColorScale--500: $pf-chart-color-black-500;
|
|
179
191
|
|
|
180
192
|
// Candlestick
|
|
181
193
|
$pf-chart-candelstick--data--stroke--Width: $pf-chart-global--stroke--Width--xs;
|
|
@@ -183,7 +195,11 @@ $pf-chart-candelstick--data--stroke--Color: $pf-chart-global--Fill--Color--900;
|
|
|
183
195
|
$pf-chart-candelstick--candle--positive--Color: $pf-chart-global--Fill--Color--white;
|
|
184
196
|
$pf-chart-candelstick--candle--negative--Color: $pf-chart-global--Fill--Color--900;
|
|
185
197
|
|
|
198
|
+
// Container
|
|
199
|
+
$pf-chart-container--cursor--line--Fill: $pf-color-black-900;
|
|
200
|
+
|
|
186
201
|
// Simple Donut Chart
|
|
202
|
+
$pf-chart-donut--label--title--Fill: $pf-chart-global--Fill--Color--900;
|
|
187
203
|
$pf-chart-donut--label--subtitle--Fill: $pf-chart-global--Fill--Color--400;
|
|
188
204
|
$pf-chart-donut--label--subtitle--position: "center";
|
|
189
205
|
$pf-chart-donut--pie--Height: 230;
|
|
@@ -283,3 +299,118 @@ $pf-chart-voronoi--flyout--PointerEvents: "none";
|
|
|
283
299
|
$pf-chart-voronoi--flyout--stroke--Color: $pf-chart-global--Fill--Color--900;
|
|
284
300
|
$pf-chart-voronoi--flyout--stroke--Fill: $pf-chart-global--Fill--Color--900;
|
|
285
301
|
$pf-chart-voronoi--flyout--PointerEvents: "none";
|
|
302
|
+
|
|
303
|
+
// Theme color scales
|
|
304
|
+
|
|
305
|
+
// blue
|
|
306
|
+
$pf-chart-theme--blue--ColorScale--100: $pf-chart-color-blue-300;
|
|
307
|
+
$pf-chart-theme--blue--ColorScale--200: $pf-chart-color-blue-100;
|
|
308
|
+
$pf-chart-theme--blue--ColorScale--300: $pf-chart-color-blue-500;
|
|
309
|
+
$pf-chart-theme--blue--ColorScale--400: $pf-chart-color-blue-200;
|
|
310
|
+
$pf-chart-theme--blue--ColorScale--500: $pf-chart-color-blue-400;
|
|
311
|
+
|
|
312
|
+
// cyan
|
|
313
|
+
$pf-chart-theme--cyan--ColorScale--100: $pf-chart-color-cyan-300;
|
|
314
|
+
$pf-chart-theme--cyan--ColorScale--200: $pf-chart-color-cyan-100;
|
|
315
|
+
$pf-chart-theme--cyan--ColorScale--300: $pf-chart-color-cyan-500;
|
|
316
|
+
$pf-chart-theme--cyan--ColorScale--400: $pf-chart-color-cyan-200;
|
|
317
|
+
$pf-chart-theme--cyan--ColorScale--500: $pf-chart-color-cyan-400;
|
|
318
|
+
|
|
319
|
+
// gold
|
|
320
|
+
$pf-chart-theme--gold--ColorScale--100: $pf-chart-color-gold-300;
|
|
321
|
+
$pf-chart-theme--gold--ColorScale--200: $pf-chart-color-gold-100;
|
|
322
|
+
$pf-chart-theme--gold--ColorScale--300: $pf-chart-color-gold-500;
|
|
323
|
+
$pf-chart-theme--gold--ColorScale--400: $pf-chart-color-gold-200;
|
|
324
|
+
$pf-chart-theme--gold--ColorScale--500: $pf-chart-color-gold-400;
|
|
325
|
+
|
|
326
|
+
// gray
|
|
327
|
+
$pf-chart-theme--gray--ColorScale--100: $pf-chart-color-black-300;
|
|
328
|
+
$pf-chart-theme--gray--ColorScale--200: $pf-chart-color-black-100;
|
|
329
|
+
$pf-chart-theme--gray--ColorScale--300: $pf-chart-color-black-500;
|
|
330
|
+
$pf-chart-theme--gray--ColorScale--400: $pf-chart-color-black-200;
|
|
331
|
+
$pf-chart-theme--gray--ColorScale--500: $pf-chart-color-black-400;
|
|
332
|
+
|
|
333
|
+
// green
|
|
334
|
+
$pf-chart-theme--green--ColorScale--100: $pf-chart-color-green-300;
|
|
335
|
+
$pf-chart-theme--green--ColorScale--200: $pf-chart-color-green-100;
|
|
336
|
+
$pf-chart-theme--green--ColorScale--300: $pf-chart-color-green-500;
|
|
337
|
+
$pf-chart-theme--green--ColorScale--400: $pf-chart-color-green-200;
|
|
338
|
+
$pf-chart-theme--green--ColorScale--500: $pf-chart-color-green-400;
|
|
339
|
+
|
|
340
|
+
// multi ordered
|
|
341
|
+
$pf-chart-theme--multi-color-ordered--ColorScale--100: $pf-chart-color-blue-300;
|
|
342
|
+
$pf-chart-theme--multi-color-ordered--ColorScale--200: $pf-chart-color-green-300;
|
|
343
|
+
$pf-chart-theme--multi-color-ordered--ColorScale--300: $pf-chart-color-cyan-300;
|
|
344
|
+
$pf-chart-theme--multi-color-ordered--ColorScale--400: $pf-chart-color-gold-300;
|
|
345
|
+
$pf-chart-theme--multi-color-ordered--ColorScale--500: $pf-chart-color-orange-300;
|
|
346
|
+
$pf-chart-theme--multi-color-ordered--ColorScale--600: $pf-chart-color-blue-100;
|
|
347
|
+
$pf-chart-theme--multi-color-ordered--ColorScale--700: $pf-chart-color-green-500;
|
|
348
|
+
$pf-chart-theme--multi-color-ordered--ColorScale--800: $pf-chart-color-cyan-100;
|
|
349
|
+
$pf-chart-theme--multi-color-ordered--ColorScale--900: $pf-chart-color-gold-100;
|
|
350
|
+
$pf-chart-theme--multi-color-ordered--ColorScale--1000: $pf-chart-color-orange-500;
|
|
351
|
+
$pf-chart-theme--multi-color-ordered--ColorScale--1100: $pf-chart-color-blue-500;
|
|
352
|
+
$pf-chart-theme--multi-color-ordered--ColorScale--1200: $pf-chart-color-green-100;
|
|
353
|
+
$pf-chart-theme--multi-color-ordered--ColorScale--1300: $pf-chart-color-cyan-500;
|
|
354
|
+
$pf-chart-theme--multi-color-ordered--ColorScale--1400: $pf-chart-color-gold-500;
|
|
355
|
+
$pf-chart-theme--multi-color-ordered--ColorScale--1500: $pf-chart-color-orange-100;
|
|
356
|
+
$pf-chart-theme--multi-color-ordered--ColorScale--1600: $pf-chart-color-blue-200;
|
|
357
|
+
$pf-chart-theme--multi-color-ordered--ColorScale--1700: $pf-chart-color-green-400;
|
|
358
|
+
$pf-chart-theme--multi-color-ordered--ColorScale--1800: $pf-chart-color-cyan-200;
|
|
359
|
+
$pf-chart-theme--multi-color-ordered--ColorScale--1900: $pf-chart-color-gold-200;
|
|
360
|
+
$pf-chart-theme--multi-color-ordered--ColorScale--2000: $pf-chart-color-orange-400;
|
|
361
|
+
$pf-chart-theme--multi-color-ordered--ColorScale--2100: $pf-chart-color-blue-400;
|
|
362
|
+
$pf-chart-theme--multi-color-ordered--ColorScale--2200: $pf-chart-color-green-200;
|
|
363
|
+
$pf-chart-theme--multi-color-ordered--ColorScale--2300: $pf-chart-color-cyan-400;
|
|
364
|
+
$pf-chart-theme--multi-color-ordered--ColorScale--2400: $pf-chart-color-gold-400;
|
|
365
|
+
$pf-chart-theme--multi-color-ordered--ColorScale--2500: $pf-chart-color-orange-200;
|
|
366
|
+
|
|
367
|
+
// multi unordered
|
|
368
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--100: $pf-chart-color-blue-300;
|
|
369
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--200: $pf-chart-color-gold-300;
|
|
370
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--300: $pf-chart-color-green-300;
|
|
371
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--400: $pf-chart-color-purple-300;
|
|
372
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--500: $pf-chart-color-orange-300;
|
|
373
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--600: $pf-chart-color-cyan-300;
|
|
374
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--700: $pf-chart-color-black-300;
|
|
375
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--800: $pf-chart-color-blue-100;
|
|
376
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--900: $pf-chart-color-gold-500;
|
|
377
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--1000: $pf-chart-color-green-100;
|
|
378
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--1100: $pf-chart-color-purple-500;
|
|
379
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--1200: $pf-chart-color-orange-100;
|
|
380
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--1300: $pf-chart-color-cyan-500;
|
|
381
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--1400: $pf-chart-color-black-100;
|
|
382
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--1500: $pf-chart-color-blue-500;
|
|
383
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--1600: $pf-chart-color-gold-100;
|
|
384
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--1700: $pf-chart-color-green-500;
|
|
385
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--1800: $pf-chart-color-purple-100;
|
|
386
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--1900: $pf-chart-color-orange-500;
|
|
387
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--2000: $pf-chart-color-cyan-100;
|
|
388
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--2100: $pf-chart-color-black-500;
|
|
389
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--2200: $pf-chart-color-blue-200;
|
|
390
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--2300: $pf-chart-color-gold-400;
|
|
391
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--2400: $pf-chart-color-green-200;
|
|
392
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--2500: $pf-chart-color-purple-400;
|
|
393
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--2600: $pf-chart-color-orange-200;
|
|
394
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--2700: $pf-chart-color-cyan-400;
|
|
395
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--2800: $pf-chart-color-black-200;
|
|
396
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--2900: $pf-chart-color-blue-400;
|
|
397
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--3000: $pf-chart-color-gold-200;
|
|
398
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--3100: $pf-chart-color-green-400;
|
|
399
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--3200: $pf-chart-color-purple-200;
|
|
400
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--3300: $pf-chart-color-orange-400;
|
|
401
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--3400: $pf-chart-color-cyan-200;
|
|
402
|
+
$pf-chart-theme--multi-color-unordered--ColorScale--3500: $pf-chart-color-black-400;
|
|
403
|
+
|
|
404
|
+
// orange
|
|
405
|
+
$pf-chart-theme--orange--ColorScale--100: $pf-chart-color-orange-300;
|
|
406
|
+
$pf-chart-theme--orange--ColorScale--200: $pf-chart-color-orange-100;
|
|
407
|
+
$pf-chart-theme--orange--ColorScale--300: $pf-chart-color-orange-500;
|
|
408
|
+
$pf-chart-theme--orange--ColorScale--400: $pf-chart-color-orange-200;
|
|
409
|
+
$pf-chart-theme--orange--ColorScale--500: $pf-chart-color-orange-400;
|
|
410
|
+
|
|
411
|
+
// purple
|
|
412
|
+
$pf-chart-theme--purple--ColorScale--100: $pf-chart-color-purple-300;
|
|
413
|
+
$pf-chart-theme--purple--ColorScale--200: $pf-chart-color-purple-100;
|
|
414
|
+
$pf-chart-theme--purple--ColorScale--300: $pf-chart-color-purple-500;
|
|
415
|
+
$pf-chart-theme--purple--ColorScale--400: $pf-chart-color-purple-200;
|
|
416
|
+
$pf-chart-theme--purple--ColorScale--500: $pf-chart-color-purple-400;
|
package/components/Chip/chip.css
CHANGED
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
position: relative;
|
|
40
40
|
display: inline-flex;
|
|
41
41
|
align-items: center;
|
|
42
|
+
min-width: 0;
|
|
42
43
|
padding: var(--pf-c-chip--PaddingTop) var(--pf-c-chip--PaddingRight) var(--pf-c-chip--PaddingBottom) var(--pf-c-chip--PaddingLeft);
|
|
43
44
|
list-style: none;
|
|
44
45
|
background-color: var(--pf-c-chip--BackgroundColor);
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
position: relative;
|
|
44
44
|
display: inline-flex;
|
|
45
45
|
align-items: center;
|
|
46
|
+
min-width: 0;
|
|
46
47
|
padding: var(--pf-c-chip--PaddingTop) var(--pf-c-chip--PaddingRight) var(--pf-c-chip--PaddingBottom) var(--pf-c-chip--PaddingLeft);
|
|
47
48
|
list-style: none;
|
|
48
49
|
background-color: var(--pf-c-chip--BackgroundColor);
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
flex: 1;
|
|
41
41
|
flex-wrap: wrap;
|
|
42
42
|
align-items: baseline;
|
|
43
|
+
min-width: 0;
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
.pf-c-chip-group__list {
|
|
@@ -52,10 +53,13 @@
|
|
|
52
53
|
display: inline-flex;
|
|
53
54
|
flex-wrap: wrap;
|
|
54
55
|
align-items: center;
|
|
56
|
+
min-width: 0;
|
|
57
|
+
max-width: 100%;
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
.pf-c-chip-group__list-item {
|
|
58
61
|
display: inline-flex;
|
|
62
|
+
min-width: 0;
|
|
59
63
|
margin-right: var(--pf-c-chip-group__list-item--MarginRight);
|
|
60
64
|
margin-bottom: var(--pf-c-chip-group__list-item--MarginBottom);
|
|
61
65
|
}
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
flex: 1;
|
|
42
42
|
flex-wrap: wrap;
|
|
43
43
|
align-items: baseline;
|
|
44
|
+
min-width: 0;
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
.pf-c-chip-group__list {
|
|
@@ -53,10 +54,13 @@
|
|
|
53
54
|
display: inline-flex;
|
|
54
55
|
flex-wrap: wrap;
|
|
55
56
|
align-items: center;
|
|
57
|
+
min-width: 0;
|
|
58
|
+
max-width: 100%;
|
|
56
59
|
}
|
|
57
60
|
|
|
58
61
|
.pf-c-chip-group__list-item {
|
|
59
62
|
display: inline-flex;
|
|
63
|
+
min-width: 0;
|
|
60
64
|
margin-right: var(--pf-c-chip-group__list-item--MarginRight);
|
|
61
65
|
margin-bottom: var(--pf-c-chip-group__list-item--MarginBottom);
|
|
62
66
|
}
|
|
@@ -245,12 +245,14 @@
|
|
|
245
245
|
--pf-c-label--m-editable__content--hover--before--BorderColor: var(--pf-c-label--m-outline__content--before--BorderColor);
|
|
246
246
|
--pf-c-label--m-editable__content--focus--before--BorderColor: var(--pf-c-label--m-outline__content--before--BorderColor);
|
|
247
247
|
}
|
|
248
|
-
.pf-c-label.pf-m-overflow:hover,
|
|
248
|
+
.pf-c-label.pf-m-overflow:hover,
|
|
249
|
+
.pf-c-label.pf-m-add:hover, .pf-c-label.pf-m-outline a.pf-c-label__content:hover,
|
|
249
250
|
.pf-c-label.pf-m-outline button.pf-c-label__content:hover {
|
|
250
251
|
--pf-c-label__content--before--BorderWidth: var(--pf-c-label--m-outline__content--link--hover--before--BorderWidth);
|
|
251
252
|
--pf-c-label__content--before--BorderColor: var(--pf-c-label--m-outline__content--link--hover--before--BorderColor);
|
|
252
253
|
}
|
|
253
|
-
.pf-c-label.pf-m-overflow:focus,
|
|
254
|
+
.pf-c-label.pf-m-overflow:focus,
|
|
255
|
+
.pf-c-label.pf-m-add:focus, .pf-c-label.pf-m-outline a.pf-c-label__content:focus,
|
|
254
256
|
.pf-c-label.pf-m-outline button.pf-c-label__content:focus {
|
|
255
257
|
--pf-c-label__content--before--BorderWidth: var(--pf-c-label--m-outline__content--link--focus--before--BorderWidth);
|
|
256
258
|
--pf-c-label__content--before--BorderColor: var(--pf-c-label--m-outline__content--link--focus--before--BorderColor);
|
|
@@ -298,7 +300,7 @@
|
|
|
298
300
|
margin-bottom: var(--pf-c-label__c-button--MarginBottom);
|
|
299
301
|
margin-left: var(--pf-c-label__c-button--MarginLeft);
|
|
300
302
|
}
|
|
301
|
-
.pf-c-label.pf-m-overflow {
|
|
303
|
+
.pf-c-label.pf-m-overflow, .pf-c-label.pf-m-add {
|
|
302
304
|
--pf-c-label__content--Color: var(--pf-c-label--m-overflow__content--Color);
|
|
303
305
|
--pf-c-label--BackgroundColor: var(--pf-c-label--m-overflow__content--BackgroundColor);
|
|
304
306
|
--pf-c-label__content--before--BorderWidth: var(--pf-c-label--m-overflow__content--before--BorderWidth);
|
|
@@ -294,6 +294,7 @@
|
|
|
294
294
|
a,
|
|
295
295
|
button {
|
|
296
296
|
@at-root .pf-c-label.pf-m-overflow,
|
|
297
|
+
.pf-c-label.pf-m-add,
|
|
297
298
|
&.pf-c-label__content {
|
|
298
299
|
// stylelint-enable selector-no-qualifying-type
|
|
299
300
|
&:hover {
|
|
@@ -362,7 +363,8 @@
|
|
|
362
363
|
margin-left: var(--pf-c-label__c-button--MarginLeft);
|
|
363
364
|
}
|
|
364
365
|
|
|
365
|
-
&.pf-m-overflow
|
|
366
|
+
&.pf-m-overflow,
|
|
367
|
+
&.pf-m-add {
|
|
366
368
|
--pf-c-label__content--Color: var(--pf-c-label--m-overflow__content--Color);
|
|
367
369
|
--pf-c-label--BackgroundColor: var(--pf-c-label--m-overflow__content--BackgroundColor);
|
|
368
370
|
--pf-c-label__content--before--BorderWidth: var(--pf-c-label--m-overflow__content--before--BorderWidth);
|
|
@@ -50,10 +50,10 @@ span.pf-c-spinner {
|
|
|
50
50
|
transform: rotate(0deg);
|
|
51
51
|
}
|
|
52
52
|
50% {
|
|
53
|
-
transform: rotate(
|
|
53
|
+
transform: rotate(540deg);
|
|
54
54
|
}
|
|
55
55
|
100% {
|
|
56
|
-
transform: rotate(
|
|
56
|
+
transform: rotate(1080deg);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
.pf-c-spinner__clipper {
|
|
@@ -66,10 +66,10 @@ span.pf-c-spinner {
|
|
|
66
66
|
|
|
67
67
|
@keyframes pf-animation-spinner__clipper {
|
|
68
68
|
0% {
|
|
69
|
-
transform: rotate(
|
|
69
|
+
transform: rotate(90deg);
|
|
70
70
|
}
|
|
71
71
|
100% {
|
|
72
|
-
transform: rotate(
|
|
72
|
+
transform: rotate(360deg);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
.pf-c-spinner__clipper::after {
|
|
@@ -85,10 +85,10 @@ span.pf-c-spinner {
|
|
|
85
85
|
|
|
86
86
|
@keyframes pf-animation-spinner__clipper-after {
|
|
87
87
|
0% {
|
|
88
|
-
transform: rotate(
|
|
88
|
+
transform: rotate(-180deg);
|
|
89
89
|
}
|
|
90
90
|
100% {
|
|
91
|
-
transform: rotate(
|
|
91
|
+
transform: rotate(90deg);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
.pf-c-spinner__lead-ball {
|
|
@@ -115,11 +115,11 @@ span.pf-c-spinner {
|
|
|
115
115
|
0% {
|
|
116
116
|
transform: rotate(0deg);
|
|
117
117
|
}
|
|
118
|
-
|
|
119
|
-
transform: rotate(
|
|
118
|
+
33% {
|
|
119
|
+
transform: rotate(180deg);
|
|
120
120
|
}
|
|
121
121
|
100% {
|
|
122
|
-
transform: rotate(
|
|
122
|
+
transform: rotate(360deg);
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
.pf-c-spinner__tail-ball {
|
|
@@ -146,11 +146,11 @@ span.pf-c-spinner {
|
|
|
146
146
|
0% {
|
|
147
147
|
transform: rotate(0deg);
|
|
148
148
|
}
|
|
149
|
-
|
|
150
|
-
transform: rotate(
|
|
149
|
+
66% {
|
|
150
|
+
transform: rotate(180deg);
|
|
151
151
|
}
|
|
152
152
|
100% {
|
|
153
|
-
transform: rotate(
|
|
153
|
+
transform: rotate(360deg);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
svg.pf-c-spinner {
|
|
@@ -79,11 +79,11 @@ span.pf-c-spinner {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
50% {
|
|
82
|
-
transform: rotate(
|
|
82
|
+
transform: rotate(540deg);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
100% {
|
|
86
|
-
transform: rotate(
|
|
86
|
+
transform: rotate(1080deg);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
@@ -98,11 +98,11 @@ span.pf-c-spinner {
|
|
|
98
98
|
|
|
99
99
|
@keyframes pf-animation-spinner__clipper {
|
|
100
100
|
0% {
|
|
101
|
-
transform: rotate(
|
|
101
|
+
transform: rotate(90deg);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
100% {
|
|
105
|
-
transform: rotate(
|
|
105
|
+
transform: rotate(360deg);
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
|
|
@@ -121,11 +121,11 @@ span.pf-c-spinner {
|
|
|
121
121
|
// The Clipper:after moves rotates 270deg in relation to its parent (so that it appears to grow and then shrink)
|
|
122
122
|
@keyframes pf-animation-spinner__clipper-after {
|
|
123
123
|
0% {
|
|
124
|
-
transform: rotate(
|
|
124
|
+
transform: rotate(-180deg);
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
100% {
|
|
128
|
-
transform: rotate(
|
|
128
|
+
transform: rotate(90deg);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
|
|
@@ -157,12 +157,12 @@ span.pf-c-spinner {
|
|
|
157
157
|
transform: rotate(0deg);
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
|
|
161
|
-
transform: rotate(
|
|
160
|
+
33% {
|
|
161
|
+
transform: rotate(180deg);
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
100% {
|
|
165
|
-
transform: rotate(
|
|
165
|
+
transform: rotate(360deg);
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
|
|
@@ -194,12 +194,12 @@ span.pf-c-spinner {
|
|
|
194
194
|
transform: rotate(0deg);
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
-
|
|
198
|
-
transform: rotate(
|
|
197
|
+
66% {
|
|
198
|
+
transform: rotate(180deg);
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
100% {
|
|
202
|
-
transform: rotate(
|
|
202
|
+
transform: rotate(360deg);
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
|
|
@@ -1121,7 +1121,7 @@ cssPrefix: pf-c-label
|
|
|
1121
1121
|
This style of label is used to indicate overflow within a label group.
|
|
1122
1122
|
|
|
1123
1123
|
```html
|
|
1124
|
-
<button class="pf-c-label pf-m-overflow">
|
|
1124
|
+
<button class="pf-c-label pf-m-overflow" type="button">
|
|
1125
1125
|
<span class="pf-c-label__content">Overflow</span>
|
|
1126
1126
|
</button>
|
|
1127
1127
|
|
|
@@ -1206,6 +1206,17 @@ This style of label is used to indicate overflow within a label group.
|
|
|
1206
1206
|
|
|
1207
1207
|
```
|
|
1208
1208
|
|
|
1209
|
+
### Add label
|
|
1210
|
+
|
|
1211
|
+
This style of label is used to add new labels to a label group.
|
|
1212
|
+
|
|
1213
|
+
```html isBeta
|
|
1214
|
+
<button class="pf-c-label pf-m-add" type="button">
|
|
1215
|
+
<span class="pf-c-label__content">Add Label</span>
|
|
1216
|
+
</button>
|
|
1217
|
+
|
|
1218
|
+
```
|
|
1219
|
+
|
|
1209
1220
|
## Documentation
|
|
1210
1221
|
|
|
1211
1222
|
### Usage
|
|
@@ -1220,6 +1231,7 @@ This style of label is used to indicate overflow within a label group.
|
|
|
1220
1231
|
| `.pf-m-outline` | `.pf-c-label` | Modifies label for outline styles. |
|
|
1221
1232
|
| `.pf-m-compact` | `.pf-c-label` | Modifies label for compact styles. |
|
|
1222
1233
|
| `.pf-m-overflow` | `.pf-c-label` | Modifies label for overflow styles for use in a label group. |
|
|
1234
|
+
| `.pf-m-add` | `.pf-c-label` | Modifies label for add styles for use in a label group. |
|
|
1223
1235
|
| `.pf-m-blue` | `.pf-c-label` | Modifies the label to have blue colored styling. |
|
|
1224
1236
|
| `.pf-m-green` | `.pf-c-label` | Modifies the label to have green colored styling. |
|
|
1225
1237
|
| `.pf-m-orange` | `.pf-c-label` | Modifies the label to have orange colored styling. |
|
|
@@ -84,7 +84,7 @@ cssPrefix: pf-c-label-group
|
|
|
84
84
|
</span>
|
|
85
85
|
</li>
|
|
86
86
|
<li class="pf-c-label-group__list-item">
|
|
87
|
-
<button class="pf-c-label pf-m-overflow">
|
|
87
|
+
<button class="pf-c-label pf-m-overflow" type="button">
|
|
88
88
|
<span class="pf-c-label__content">3 more</span>
|
|
89
89
|
</button>
|
|
90
90
|
</li>
|
|
@@ -151,7 +151,7 @@ cssPrefix: pf-c-label-group
|
|
|
151
151
|
</span>
|
|
152
152
|
</li>
|
|
153
153
|
<li class="pf-c-label-group__list-item">
|
|
154
|
-
<button class="pf-c-label pf-m-overflow">
|
|
154
|
+
<button class="pf-c-label pf-m-overflow" type="button">
|
|
155
155
|
<span class="pf-c-label__content">3 less</span>
|
|
156
156
|
</button>
|
|
157
157
|
</li>
|
|
@@ -161,6 +161,53 @@ cssPrefix: pf-c-label-group
|
|
|
161
161
|
|
|
162
162
|
```
|
|
163
163
|
|
|
164
|
+
### Add label
|
|
165
|
+
|
|
166
|
+
```html
|
|
167
|
+
<div class="pf-c-label-group">
|
|
168
|
+
<div class="pf-c-label-group__main">
|
|
169
|
+
<ul class="pf-c-label-group__list" role="list" aria-label="Group of labels">
|
|
170
|
+
<li class="pf-c-label-group__list-item">
|
|
171
|
+
<span class="pf-c-label">
|
|
172
|
+
<span class="pf-c-label__content">
|
|
173
|
+
<span class="pf-c-label__icon">
|
|
174
|
+
<i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
|
|
175
|
+
</span>
|
|
176
|
+
Label
|
|
177
|
+
</span>
|
|
178
|
+
</span>
|
|
179
|
+
</li>
|
|
180
|
+
<li class="pf-c-label-group__list-item">
|
|
181
|
+
<span class="pf-c-label pf-m-blue">
|
|
182
|
+
<span class="pf-c-label__content">
|
|
183
|
+
<span class="pf-c-label__icon">
|
|
184
|
+
<i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
|
|
185
|
+
</span>
|
|
186
|
+
Label 2
|
|
187
|
+
</span>
|
|
188
|
+
</span>
|
|
189
|
+
</li>
|
|
190
|
+
<li class="pf-c-label-group__list-item">
|
|
191
|
+
<span class="pf-c-label pf-m-green">
|
|
192
|
+
<span class="pf-c-label__content">
|
|
193
|
+
<span class="pf-c-label__icon">
|
|
194
|
+
<i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
|
|
195
|
+
</span>
|
|
196
|
+
Label 3
|
|
197
|
+
</span>
|
|
198
|
+
</span>
|
|
199
|
+
</li>
|
|
200
|
+
<li class="pf-c-label-group__list-item">
|
|
201
|
+
<button class="pf-c-label pf-m-add" type="button">
|
|
202
|
+
<span class="pf-c-label__content">Add Label</span>
|
|
203
|
+
</button>
|
|
204
|
+
</li>
|
|
205
|
+
</ul>
|
|
206
|
+
</div>
|
|
207
|
+
</div>
|
|
208
|
+
|
|
209
|
+
```
|
|
210
|
+
|
|
164
211
|
### Category
|
|
165
212
|
|
|
166
213
|
```html
|
|
@@ -383,7 +430,7 @@ cssPrefix: pf-c-label-group
|
|
|
383
430
|
</span>
|
|
384
431
|
</li>
|
|
385
432
|
<li class="pf-c-label-group__list-item">
|
|
386
|
-
<button class="pf-c-label pf-m-overflow">
|
|
433
|
+
<button class="pf-c-label pf-m-overflow" type="button">
|
|
387
434
|
<span class="pf-c-label__content">3 more</span>
|
|
388
435
|
</button>
|
|
389
436
|
</li>
|
|
@@ -450,7 +497,7 @@ cssPrefix: pf-c-label-group
|
|
|
450
497
|
</span>
|
|
451
498
|
</li>
|
|
452
499
|
<li class="pf-c-label-group__list-item">
|
|
453
|
-
<button class="pf-c-label pf-m-overflow">
|
|
500
|
+
<button class="pf-c-label pf-m-overflow" type="button">
|
|
454
501
|
<span class="pf-c-label__content">3 less</span>
|
|
455
502
|
</button>
|
|
456
503
|
</li>
|
|
@@ -983,7 +1030,7 @@ In addition to the JavaScript management of [editable labels](/components/label#
|
|
|
983
1030
|
</span>
|
|
984
1031
|
</li>
|
|
985
1032
|
<li class="pf-c-label-group__list-item">
|
|
986
|
-
<button class="pf-c-label pf-m-overflow pf-m-compact">
|
|
1033
|
+
<button class="pf-c-label pf-m-overflow pf-m-compact" type="button">
|
|
987
1034
|
<span class="pf-c-label__content">3 more</span>
|
|
988
1035
|
</button>
|
|
989
1036
|
</li>
|
|
@@ -111,7 +111,10 @@ wrapperTag: div
|
|
|
111
111
|
</span>
|
|
112
112
|
</li>
|
|
113
113
|
<li class="pf-c-label-group__list-item">
|
|
114
|
-
<button
|
|
114
|
+
<button
|
|
115
|
+
class="pf-c-label pf-m-overflow pf-m-compact"
|
|
116
|
+
type="button"
|
|
117
|
+
>
|
|
115
118
|
<span class="pf-c-label__content">1 more</span>
|
|
116
119
|
</button>
|
|
117
120
|
</li>
|
|
@@ -1071,7 +1071,10 @@ cssPrefix: pf-d-dashboard
|
|
|
1071
1071
|
</span>
|
|
1072
1072
|
</li>
|
|
1073
1073
|
<li class="pf-c-label-group__list-item">
|
|
1074
|
-
<button
|
|
1074
|
+
<button
|
|
1075
|
+
class="pf-c-label pf-m-overflow"
|
|
1076
|
+
type="button"
|
|
1077
|
+
>
|
|
1075
1078
|
<span class="pf-c-label__content">1 more</span>
|
|
1076
1079
|
</button>
|
|
1077
1080
|
</li>
|
package/package.json
CHANGED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
:where(.pf-theme-dark) .pf-c-chart svg g[clip-path] {
|
|
2
|
+
mix-blend-mode: normal;
|
|
3
|
+
}
|
|
4
|
+
:root:where(.pf-theme-dark) {
|
|
5
|
+
--pf-chart-color-blue-100: #add6ff;
|
|
6
|
+
--pf-chart-color-blue-200: #85c2ff;
|
|
7
|
+
--pf-chart-color-blue-300: #47a3ff;
|
|
8
|
+
--pf-chart-color-blue-400: #0a85ff;
|
|
9
|
+
--pf-chart-color-blue-500: #06c;
|
|
10
|
+
--pf-chart-color-green-100: #d6eed3;
|
|
11
|
+
--pf-chart-color-green-200: #aedca7;
|
|
12
|
+
--pf-chart-color-green-300: #85cb7c;
|
|
13
|
+
--pf-chart-color-green-400: #5cb950;
|
|
14
|
+
--pf-chart-color-green-500: #3e8635;
|
|
15
|
+
--pf-chart-color-cyan-100: #b9feff;
|
|
16
|
+
--pf-chart-color-cyan-200: #86fdff;
|
|
17
|
+
--pf-chart-color-cyan-300: #00b5b8;
|
|
18
|
+
--pf-chart-color-cyan-400: #008c8f;
|
|
19
|
+
--pf-chart-color-cyan-500: #005f60;
|
|
20
|
+
--pf-chart-color-purple-100: #cec8e4;
|
|
21
|
+
--pf-chart-color-purple-200: #a99fd1;
|
|
22
|
+
--pf-chart-color-purple-300: #9183c3;
|
|
23
|
+
--pf-chart-color-purple-400: #7968b6;
|
|
24
|
+
--pf-chart-color-purple-500: #6753ac;
|
|
25
|
+
--pf-chart-color-red-100: #ffadad;
|
|
26
|
+
--pf-chart-color-red-200: #ff7070;
|
|
27
|
+
--pf-chart-color-red-300: #ff4747;
|
|
28
|
+
--pf-chart-color-red-400: #ff0a0a;
|
|
29
|
+
--pf-chart-color-red-500: #a30000;
|
|
30
|
+
--pf-chart-global--BorderColor: var(--pf-global--BorderColor--100);
|
|
31
|
+
--pf-chart-global--BorderColor--accent: var(--pf-global--BorderColor--400);
|
|
32
|
+
--pf-chart-global--label--Fill: var(--pf-global--Color--100);
|
|
33
|
+
--pf-chart-global--title--Fill: var(--pf-global--Color--100);
|
|
34
|
+
--pf-chart-global--subtitle--Fill: var(--pf-global--Color--200);
|
|
35
|
+
--pf-chart-global--tooltip--Fill: var(--pf-global--Color--100);
|
|
36
|
+
--pf-chart-global--tooltip--bg--Fill: var(--pf-global--BackgroundColor--300);
|
|
37
|
+
--pf-chart-axis--axis--stroke--Color: var(--pf-chart-global--BorderColor);
|
|
38
|
+
--pf-chart-axis--grid--stroke--Color: var(--pf-chart-global--BorderColor);
|
|
39
|
+
--pf-chart-axis--tick--stroke--Color: var(--pf-chart-global--BorderColor);
|
|
40
|
+
--pf-chart-axis--axis--tick--stroke--Color: var(--pf-chart-global--BorderColor);
|
|
41
|
+
--pf-chart-axis--grid--Fill: var(--pf-chart-global--BorderColor);
|
|
42
|
+
--pf-chart-axis--tick-label--Fill: var(--pf-chart-global--label--Fill);
|
|
43
|
+
--pf-chart-bullet--label--title--Fill: var(--pf-chart-global--title--Fill);
|
|
44
|
+
--pf-chart-bullet--label--grouptitle--Fill: var(--pf-chart-bullet--label--title--Fill);
|
|
45
|
+
--pf-chart-bullet--label--subtitle--Fill: var(--pf-chart-global--subtitle--Fill);
|
|
46
|
+
--pf-chart-bullet--negative-measure--ColorScale--100: var(--pf-global--palette--red-400);
|
|
47
|
+
--pf-chart-bullet--negative-measure--ColorScale--200: var(--pf-global--palette--red-300);
|
|
48
|
+
--pf-chart-bullet--negative-measure--ColorScale--300: var(--pf-global--palette--red-200);
|
|
49
|
+
--pf-chart-bullet--negative-measure--ColorScale--400: var(--pf-global--palette--red-100);
|
|
50
|
+
--pf-chart-bullet--negative-measure--ColorScale--500: var(--pf-global--palette--red-9999);
|
|
51
|
+
--pf-chart-bullet--qualitative-range--ColorScale--100: var(--pf-global--palette--black-600);
|
|
52
|
+
--pf-chart-bullet--qualitative-range--ColorScale--200: var(--pf-global--palette--black-500);
|
|
53
|
+
--pf-chart-bullet--qualitative-range--ColorScale--300: var(--pf-global--palette--black-400);
|
|
54
|
+
--pf-chart-bullet--qualitative-range--ColorScale--400: var(--pf-global--palette--black-300);
|
|
55
|
+
--pf-chart-bullet--qualitative-range--ColorScale--500: var(--pf-global--palette--black-200);
|
|
56
|
+
--pf-chart-container--cursor--line--Fill: var(--pf-chart-global--BorderColor--accent);
|
|
57
|
+
--pf-chart-donut--label--title--Fill: var(--pf-chart-global--title--Fill);
|
|
58
|
+
--pf-chart-donut--label--subtitle--Fill: var(--pf-chart-global--subtitle--Fill);
|
|
59
|
+
--pf-chart-line--data--stroke--Color: var(--pf-chart-global--BorderColor);
|
|
60
|
+
--pf-chart-tooltip--Fill: var(--pf-chart-global--tooltip--Fill);
|
|
61
|
+
--pf-chart-voronoi--labels--Fill: var(--pf-chart-global--tooltip--Fill);
|
|
62
|
+
--pf-chart-tooltip--flyoutStyle--Fill: var(--pf-chart-global--tooltip--bg--Fill);
|
|
63
|
+
--pf-chart-voronoi--flyout--stroke--Fill: var(--pf-chart-global--tooltip--bg--Fill);
|
|
64
|
+
--pf-chart-voronoi--flyout--stroke--Color: var(--pf-chart-global--tooltip--bg--Fill);
|
|
65
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
@import "themes/dark/patternfly-charts-theme-dark";
|
|
2
|
+
|
|
3
|
+
$pf-theme-dark-class: ".pf-theme-dark" !default;
|
|
4
|
+
$pf-charts-theme-dark-class: $pf-theme-dark-class !default;
|
|
5
|
+
|
|
6
|
+
:where(#{$pf-theme-dark-class}) {
|
|
7
|
+
@include pf-charts-theme-dark($pf-charts-theme-dark-class);
|
|
8
|
+
}
|