@patternfly/patternfly 4.216.3 → 4.217.0
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/components/Button/button.css +11 -1
- package/components/Button/button.scss +10 -1
- package/components/Spinner/spinner.css +4 -0
- package/components/Spinner/spinner.scss +7 -0
- package/components/TextInputGroup/text-input-group.css +11 -12
- package/components/TextInputGroup/text-input-group.scss +13 -18
- package/docs/components/Button/examples/Button.md +26 -6
- package/docs/components/LogViewer/examples/LogViewer.md +268 -268
- package/docs/components/Spinner/examples/Spinner.md +23 -6
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +5 -21
- package/docs/components/Toolbar/examples/Toolbar.md +40 -35
- package/docs/demos/DataList/examples/DataList.md +16 -14
- package/docs/demos/Drawer/examples/Drawer.md +168 -144
- package/docs/demos/JumpLinks/examples/JumpLinks.md +168 -144
- package/docs/demos/Masthead/examples/Masthead.md +24 -21
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +24 -27
- package/docs/demos/Table/examples/Table.md +88 -77
- package/docs/demos/Toolbar/examples/Toolbar.md +229 -231
- package/package.json +2 -2
- package/patternfly-no-reset.css +26 -13
- package/patternfly.css +26 -13
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
|
@@ -89,6 +89,12 @@
|
|
|
89
89
|
--pf-c-button--m-link--m-inline--FontSize: inherit;
|
|
90
90
|
--pf-c-button--m-link--m-inline--hover--TextDecoration: var(--pf-global--link--TextDecoration--hover);
|
|
91
91
|
--pf-c-button--m-link--m-inline--hover--Color: var(--pf-global--link--Color--hover);
|
|
92
|
+
--pf-c-button--m-link--m-inline--PaddingTop: 0;
|
|
93
|
+
--pf-c-button--m-link--m-inline--PaddingRight: 0;
|
|
94
|
+
--pf-c-button--m-link--m-inline--PaddingBottom: 0;
|
|
95
|
+
--pf-c-button--m-link--m-inline--PaddingLeft: 0;
|
|
96
|
+
--pf-c-button--m-link--m-inline__progress--Left: var(--pf-global--spacer--xs);
|
|
97
|
+
--pf-c-button--m-link--m-inline--m-in-progress--PaddingLeft: calc(var(--pf-c-button--m-link--m-inline__progress--Left) + 1rem + var(--pf-global--spacer--sm));
|
|
92
98
|
--pf-c-button--m-link--m-danger--BackgroundColor: transparent;
|
|
93
99
|
--pf-c-button--m-link--m-danger--Color: var(--pf-global--danger-color--100);
|
|
94
100
|
--pf-c-button--m-link--m-danger--hover--BackgroundColor: transparent;
|
|
@@ -287,8 +293,9 @@
|
|
|
287
293
|
}
|
|
288
294
|
.pf-c-button.pf-m-link.pf-m-inline {
|
|
289
295
|
--pf-c-button--FontSize: var(--pf-c-button--m-link--m-inline--FontSize);
|
|
296
|
+
--pf-c-button__progress--Left: var(--pf-c-button--m-link--m-inline__progress--Left);
|
|
290
297
|
display: inline;
|
|
291
|
-
padding:
|
|
298
|
+
padding: var(--pf-c-button--m-link--m-inline--PaddingTop) var(--pf-c-button--m-link--m-inline--PaddingRight) var(--pf-c-button--m-link--m-inline--PaddingBottom) var(--pf-c-button--m-link--m-inline--PaddingLeft);
|
|
292
299
|
text-align: left;
|
|
293
300
|
white-space: normal;
|
|
294
301
|
cursor: pointer;
|
|
@@ -454,6 +461,9 @@
|
|
|
454
461
|
--pf-c-button--PaddingLeft: var(--pf-c-button--m-progress--PaddingLeft);
|
|
455
462
|
transition: var(--pf-c-button--m-progress--TransitionProperty) var(--pf-c-button--m-progress--TransitionDuration);
|
|
456
463
|
}
|
|
464
|
+
.pf-c-button.pf-m-in-progress {
|
|
465
|
+
--pf-c-button--m-link--m-inline--PaddingLeft: var(--pf-c-button--m-link--m-inline--m-in-progress--PaddingLeft);
|
|
466
|
+
}
|
|
457
467
|
.pf-c-button.pf-m-in-progress:not(.pf-m-plain) {
|
|
458
468
|
--pf-c-button--PaddingRight: var(--pf-c-button--m-in-progress--PaddingRight);
|
|
459
469
|
--pf-c-button--PaddingLeft: var(--pf-c-button--m-in-progress--PaddingLeft);
|
|
@@ -112,6 +112,12 @@
|
|
|
112
112
|
--pf-c-button--m-link--m-inline--FontSize: inherit;
|
|
113
113
|
--pf-c-button--m-link--m-inline--hover--TextDecoration: var(--pf-global--link--TextDecoration--hover);
|
|
114
114
|
--pf-c-button--m-link--m-inline--hover--Color: var(--pf-global--link--Color--hover);
|
|
115
|
+
--pf-c-button--m-link--m-inline--PaddingTop: 0;
|
|
116
|
+
--pf-c-button--m-link--m-inline--PaddingRight: 0;
|
|
117
|
+
--pf-c-button--m-link--m-inline--PaddingBottom: 0;
|
|
118
|
+
--pf-c-button--m-link--m-inline--PaddingLeft: 0;
|
|
119
|
+
--pf-c-button--m-link--m-inline__progress--Left: var(--pf-global--spacer--xs);
|
|
120
|
+
--pf-c-button--m-link--m-inline--m-in-progress--PaddingLeft: calc(var(--pf-c-button--m-link--m-inline__progress--Left) + 1rem + var(--pf-global--spacer--sm));
|
|
115
121
|
|
|
116
122
|
// Link danger
|
|
117
123
|
--pf-c-button--m-link--m-danger--BackgroundColor: transparent;
|
|
@@ -368,9 +374,10 @@
|
|
|
368
374
|
|
|
369
375
|
&.pf-m-inline {
|
|
370
376
|
--pf-c-button--FontSize: var(--pf-c-button--m-link--m-inline--FontSize);
|
|
377
|
+
--pf-c-button__progress--Left: var(--pf-c-button--m-link--m-inline__progress--Left);
|
|
371
378
|
|
|
372
379
|
display: inline;
|
|
373
|
-
padding:
|
|
380
|
+
padding: var(--pf-c-button--m-link--m-inline--PaddingTop) var(--pf-c-button--m-link--m-inline--PaddingRight) var(--pf-c-button--m-link--m-inline--PaddingBottom) var(--pf-c-button--m-link--m-inline--PaddingLeft);
|
|
374
381
|
text-align: left;
|
|
375
382
|
white-space: normal;
|
|
376
383
|
cursor: pointer;
|
|
@@ -598,6 +605,8 @@
|
|
|
598
605
|
}
|
|
599
606
|
|
|
600
607
|
&.pf-m-in-progress {
|
|
608
|
+
--pf-c-button--m-link--m-inline--PaddingLeft: var(--pf-c-button--m-link--m-inline--m-in-progress--PaddingLeft);
|
|
609
|
+
|
|
601
610
|
&:not(.pf-m-plain) {
|
|
602
611
|
--pf-c-button--PaddingRight: var(--pf-c-button--m-in-progress--PaddingRight);
|
|
603
612
|
--pf-c-button--PaddingLeft: var(--pf-c-button--m-in-progress--PaddingLeft);
|
|
@@ -7,10 +7,14 @@
|
|
|
7
7
|
--pf-c-spinner--m-md--diameter: var(--pf-global--icon--FontSize--md);
|
|
8
8
|
--pf-c-spinner--m-lg--diameter: var(--pf-global--icon--FontSize--lg);
|
|
9
9
|
--pf-c-spinner--m-xl--diameter: var(--pf-global--icon--FontSize--xl);
|
|
10
|
+
--pf-c-spinner--m-inline--diameter: 1em;
|
|
10
11
|
width: var(--pf-c-spinner--Width);
|
|
11
12
|
height: var(--pf-c-spinner--Height);
|
|
12
13
|
overflow: hidden;
|
|
13
14
|
}
|
|
15
|
+
.pf-c-spinner.pf-m-inline {
|
|
16
|
+
--pf-c-spinner--diameter: var(--pf-c-spinner--m-inline--diameter);
|
|
17
|
+
}
|
|
14
18
|
.pf-c-spinner.pf-m-sm {
|
|
15
19
|
--pf-c-spinner--diameter: var(--pf-c-spinner--m-sm--diameter);
|
|
16
20
|
}
|
|
@@ -12,11 +12,18 @@
|
|
|
12
12
|
--pf-c-spinner--m-lg--diameter: var(--pf-global--icon--FontSize--lg);
|
|
13
13
|
--pf-c-spinner--m-xl--diameter: var(--pf-global--icon--FontSize--xl);
|
|
14
14
|
|
|
15
|
+
// inline
|
|
16
|
+
--pf-c-spinner--m-inline--diameter: 1em;
|
|
17
|
+
|
|
15
18
|
width: var(--pf-c-spinner--Width);
|
|
16
19
|
height: var(--pf-c-spinner--Height);
|
|
17
20
|
overflow: hidden;
|
|
18
21
|
|
|
19
22
|
// Modifiers change the variables for size variations
|
|
23
|
+
&.pf-m-inline {
|
|
24
|
+
--pf-c-spinner--diameter: var(--pf-c-spinner--m-inline--diameter);
|
|
25
|
+
}
|
|
26
|
+
|
|
20
27
|
&.pf-m-sm {
|
|
21
28
|
--pf-c-spinner--diameter: var(--pf-c-spinner--m-sm--diameter);
|
|
22
29
|
}
|
|
@@ -9,6 +9,11 @@
|
|
|
9
9
|
--pf-c-text-input-group__text--focus-within--after--BorderBottomColor: var(--pf-global--primary-color--100);
|
|
10
10
|
--pf-c-text-input-group__main--first-child--not--text-input--MarginLeft: var(--pf-global--spacer--sm);
|
|
11
11
|
--pf-c-text-input-group__main--m-icon__text-input--PaddingLeft: var(--pf-global--spacer--xl);
|
|
12
|
+
--pf-c-text-input-group__main--RowGap: var(--pf-global--spacer--xs);
|
|
13
|
+
--pf-c-text-input-group__main--ColumnGap: var(--pf-global--spacer--sm);
|
|
14
|
+
--pf-c-text-input-group--c-chip-group__main--PaddingTop: var(--pf-global--spacer--xs);
|
|
15
|
+
--pf-c-text-input-group--c-chip-group__main--PaddingRight: var(--pf-global--spacer--xs);
|
|
16
|
+
--pf-c-text-input-group--c-chip-group__main--PaddingBottom: var(--pf-global--spacer--xs);
|
|
12
17
|
--pf-c-text-input-group__text-input--PaddingTop: var(--pf-global--spacer--form-element);
|
|
13
18
|
--pf-c-text-input-group__text-input--PaddingRight: var(--pf-global--spacer--sm);
|
|
14
19
|
--pf-c-text-input-group__text-input--PaddingBottom: var(--pf-global--spacer--form-element);
|
|
@@ -54,7 +59,8 @@
|
|
|
54
59
|
.pf-c-text-input-group__main {
|
|
55
60
|
display: flex;
|
|
56
61
|
flex: 1;
|
|
57
|
-
|
|
62
|
+
flex-wrap: wrap;
|
|
63
|
+
gap: var(--pf-c-text-input-group__main--RowGap) var(--pf-c-text-input-group__main--ColumnGap);
|
|
58
64
|
min-width: 0;
|
|
59
65
|
}
|
|
60
66
|
.pf-c-text-input-group__main.pf-m-icon {
|
|
@@ -63,17 +69,10 @@
|
|
|
63
69
|
.pf-c-text-input-group__main > :first-child:not(.pf-c-text-input-group__text) {
|
|
64
70
|
margin-left: var(--pf-c-text-input-group__main--first-child--not--text-input--MarginLeft);
|
|
65
71
|
}
|
|
66
|
-
.pf-c-text-input-group__main .pf-c-chip-
|
|
67
|
-
|
|
68
|
-
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
.pf-c-text-input-group__main .pf-c-chip-group::-webkit-scrollbar {
|
|
72
|
-
display: none;
|
|
73
|
-
}
|
|
74
|
-
.pf-c-text-input-group__main .pf-c-chip-group,
|
|
75
|
-
.pf-c-text-input-group__main .pf-c-chip-group__list {
|
|
76
|
-
flex-wrap: nowrap;
|
|
72
|
+
.pf-c-text-input-group__main .pf-c-chip-group__main {
|
|
73
|
+
padding-top: var(--pf-c-text-input-group--c-chip-group__main--PaddingTop);
|
|
74
|
+
padding-right: var(--pf-c-text-input-group--c-chip-group__main--PaddingRight);
|
|
75
|
+
padding-bottom: var(--pf-c-text-input-group--c-chip-group__main--PaddingBottom);
|
|
77
76
|
}
|
|
78
77
|
|
|
79
78
|
.pf-c-text-input-group__text {
|
|
@@ -16,6 +16,13 @@
|
|
|
16
16
|
// Main
|
|
17
17
|
--pf-c-text-input-group__main--first-child--not--text-input--MarginLeft: var(--pf-global--spacer--sm);
|
|
18
18
|
--pf-c-text-input-group__main--m-icon__text-input--PaddingLeft: var(--pf-global--spacer--xl);
|
|
19
|
+
--pf-c-text-input-group__main--RowGap: var(--pf-global--spacer--xs);
|
|
20
|
+
--pf-c-text-input-group__main--ColumnGap: var(--pf-global--spacer--sm);
|
|
21
|
+
|
|
22
|
+
// Chip group
|
|
23
|
+
--pf-c-text-input-group--c-chip-group__main--PaddingTop: var(--pf-global--spacer--xs);
|
|
24
|
+
--pf-c-text-input-group--c-chip-group__main--PaddingRight: var(--pf-global--spacer--xs);
|
|
25
|
+
--pf-c-text-input-group--c-chip-group__main--PaddingBottom: var(--pf-global--spacer--xs);
|
|
19
26
|
|
|
20
27
|
// Text input
|
|
21
28
|
--pf-c-text-input-group__text-input--PaddingTop: var(--pf-global--spacer--form-element);
|
|
@@ -78,7 +85,8 @@
|
|
|
78
85
|
.pf-c-text-input-group__main {
|
|
79
86
|
display: flex;
|
|
80
87
|
flex: 1;
|
|
81
|
-
|
|
88
|
+
flex-wrap: wrap;
|
|
89
|
+
gap: var(--pf-c-text-input-group__main--RowGap) var(--pf-c-text-input-group__main--ColumnGap);
|
|
82
90
|
min-width: 0;
|
|
83
91
|
|
|
84
92
|
&.pf-m-icon {
|
|
@@ -89,23 +97,10 @@
|
|
|
89
97
|
margin-left: var(--pf-c-text-input-group__main--first-child--not--text-input--MarginLeft);
|
|
90
98
|
}
|
|
91
99
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
// Hide scrollbar for IE, Edge and Firefox
|
|
97
|
-
-ms-overflow-style: none; // IE and Edge
|
|
98
|
-
scrollbar-width: none; // Firefox
|
|
99
|
-
|
|
100
|
-
// Hide scrollbar for Chrome, Safari and Opera
|
|
101
|
-
&::-webkit-scrollbar {
|
|
102
|
-
display: none;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.pf-c-chip-group,
|
|
107
|
-
.pf-c-chip-group__list {
|
|
108
|
-
flex-wrap: nowrap;
|
|
100
|
+
.pf-c-chip-group__main {
|
|
101
|
+
padding-top: var(--pf-c-text-input-group--c-chip-group__main--PaddingTop);
|
|
102
|
+
padding-right: var(--pf-c-text-input-group--c-chip-group__main--PaddingRight);
|
|
103
|
+
padding-bottom: var(--pf-c-text-input-group--c-chip-group__main--PaddingBottom);
|
|
109
104
|
}
|
|
110
105
|
}
|
|
111
106
|
|
|
@@ -380,7 +380,7 @@ Sed hendrerit nisi in cursus maximus. Ut malesuada nisi turpis, in condimentum v
|
|
|
380
380
|
</span>
|
|
381
381
|
Primary loading
|
|
382
382
|
</button>
|
|
383
|
-
|
|
383
|
+
<br />
|
|
384
384
|
<button
|
|
385
385
|
class="pf-c-button pf-m-progress pf-m-secondary"
|
|
386
386
|
type="button"
|
|
@@ -403,20 +403,39 @@ Sed hendrerit nisi in cursus maximus. Ut malesuada nisi turpis, in condimentum v
|
|
|
403
403
|
</span>
|
|
404
404
|
Secondary loading
|
|
405
405
|
</button>
|
|
406
|
-
|
|
406
|
+
<br />
|
|
407
407
|
<button class="pf-c-button pf-m-plain" type="button" aria-label="Upload">
|
|
408
408
|
<i class="fas fa-upload" aria-hidden="true"></i>
|
|
409
409
|
</button>
|
|
410
410
|
|
|
411
|
+
<button class="pf-c-button pf-m-in-progress pf-m-plain" type="button">
|
|
412
|
+
<span class="pf-c-button__progress">
|
|
413
|
+
<span
|
|
414
|
+
class="pf-c-spinner pf-m-md"
|
|
415
|
+
role="progressbar"
|
|
416
|
+
aria-label="Uploading..."
|
|
417
|
+
>
|
|
418
|
+
<span class="pf-c-spinner__clipper"></span>
|
|
419
|
+
<span class="pf-c-spinner__lead-ball"></span>
|
|
420
|
+
<span class="pf-c-spinner__tail-ball"></span>
|
|
421
|
+
</span>
|
|
422
|
+
</span>
|
|
423
|
+
|
|
424
|
+
<i class="fas fa-upload" aria-hidden="true"></i>
|
|
425
|
+
</button>
|
|
426
|
+
<br />
|
|
411
427
|
<button
|
|
412
|
-
class="pf-c-button pf-m-
|
|
428
|
+
class="pf-c-button pf-m-progress pf-m-inline pf-m-link"
|
|
429
|
+
type="button"
|
|
430
|
+
>Inline loader</button>
|
|
431
|
+
|
|
432
|
+
<button
|
|
433
|
+
class="pf-c-button pf-m-progress pf-m-in-progress pf-m-inline pf-m-link"
|
|
413
434
|
type="button"
|
|
414
|
-
aria-label="Upload"
|
|
415
435
|
>
|
|
416
|
-
<i class="fas fa-upload" aria-hidden="true"></i>
|
|
417
436
|
<span class="pf-c-button__progress">
|
|
418
437
|
<span
|
|
419
|
-
class="pf-c-spinner pf-m-
|
|
438
|
+
class="pf-c-spinner pf-m-inline"
|
|
420
439
|
role="progressbar"
|
|
421
440
|
aria-label="Loading..."
|
|
422
441
|
>
|
|
@@ -425,6 +444,7 @@ Sed hendrerit nisi in cursus maximus. Ut malesuada nisi turpis, in condimentum v
|
|
|
425
444
|
<span class="pf-c-spinner__tail-ball"></span>
|
|
426
445
|
</span>
|
|
427
446
|
</span>
|
|
447
|
+
Inline loading
|
|
428
448
|
</button>
|
|
429
449
|
|
|
430
450
|
```
|