@patternfly/patternfly 6.0.0-alpha.105 → 6.0.0-alpha.107
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/Divider/divider.css +42 -42
- package/components/Label/label.css +14 -0
- package/components/Label/label.scss +19 -0
- package/components/Masthead/masthead.css +70 -70
- package/components/Pagination/pagination.css +30 -30
- package/components/Tabs/tabs.css +90 -90
- package/components/Toolbar/toolbar.css +288 -288
- package/docs/components/Label/examples/Label.md +1781 -56
- package/docs/layouts/Bullseye/examples/Bullseye.css +4 -4
- package/docs/layouts/Flex/examples/Flex.css +4 -4
- package/docs/layouts/Flex/examples/Flex.md +50 -50
- package/docs/layouts/Gallery/examples/Gallery.css +4 -4
- package/docs/layouts/Gallery/examples/Gallery.md +6 -6
- package/docs/layouts/Grid/examples/Grid.css +3 -3
- package/docs/layouts/Grid/examples/Grid.md +33 -33
- package/docs/layouts/Level/examples/Level.css +5 -5
- package/docs/layouts/Split/examples/Split.css +4 -4
- package/docs/layouts/Stack/examples/Stack.css +5 -5
- package/layouts/Bullseye/bullseye.css +5 -1
- package/layouts/Bullseye/bullseye.scss +4 -1
- package/layouts/Flex/flex.css +207 -203
- package/layouts/Flex/flex.scss +34 -31
- package/layouts/Gallery/gallery.css +6 -2
- package/layouts/Gallery/gallery.scss +8 -5
- package/layouts/Grid/grid.css +6 -2
- package/layouts/Grid/grid.scss +7 -4
- package/layouts/Level/level.css +5 -1
- package/layouts/Level/level.scss +5 -2
- package/layouts/Split/split.css +5 -1
- package/layouts/Split/split.scss +5 -2
- package/layouts/Stack/stack.css +5 -1
- package/layouts/Stack/stack.scss +5 -2
- package/package.json +1 -1
- package/patternfly-addons.css +672 -672
- package/patternfly-no-globals.css +773 -731
- package/patternfly-theme-dark-unversioned.css +773 -731
- package/patternfly.css +773 -731
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/functions.scss +3 -3
- package/sass-utilities/scss-variables.scss +9 -9
- package/utilities/Spacing/spacing.css +672 -672
- package/utilities/Spacing/spacing.scss +1 -1
package/layouts/Flex/flex.scss
CHANGED
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
// Always keep list of spacers and breakpoints up-to-date
|
|
2
|
-
$pf-
|
|
3
|
-
$pf-
|
|
4
|
-
$pf-
|
|
5
|
-
$pf-
|
|
2
|
+
$pf-v6-l-flex--breakpoint-map: build-breakpoint-map();
|
|
3
|
+
$pf-v6-l-flex--spacer-map: build-spacer-map();
|
|
4
|
+
$pf-v6-l-flex--gap-map: build-spacer-map("base", "none", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl");
|
|
5
|
+
$pf-v6-l-flex--variable-map: build-variable-map("#{$pf-prefix}l-flex--spacer", $pf-v6-l-flex--spacer-map);
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
:where(:root),
|
|
8
|
+
:where(.#{$flex}) {
|
|
8
9
|
--#{$flex}--Display: flex;
|
|
9
10
|
--#{$flex}--FlexWrap: wrap;
|
|
10
11
|
--#{$flex}--AlignItems: baseline;
|
|
11
12
|
--#{$flex}--m-row--AlignItems: baseline;
|
|
12
13
|
--#{$flex}--m-row-reverse--AlignItems: baseline;
|
|
13
14
|
--#{$flex}--item--Order: 0;
|
|
14
|
-
--#{$flex}--spacer--column--base: var(
|
|
15
|
-
--#{$flex}--spacer--row--base: var(
|
|
15
|
+
--#{$flex}--spacer--column--base: var(--pf-t--global--spacer--lg); // default spacer/gap for columns
|
|
16
|
+
--#{$flex}--spacer--row--base: var(--pf-t--global--spacer--sm); // default spacer/gap for rows
|
|
16
17
|
--#{$flex}--RowGap: var(--#{$flex}--spacer--row--base);
|
|
17
18
|
--#{$flex}--ColumnGap: 0;
|
|
18
19
|
--#{$flex}--m-gap--RowGap: var(--#{$flex}--spacer--row--base);
|
|
19
20
|
--#{$flex}--m-gap--ColumnGap: var(--#{$flex}--spacer--column--base);
|
|
20
21
|
--#{$flex}--m-row-gap--RowGap: var(--#{$flex}--spacer--row--base);
|
|
21
22
|
--#{$flex}--m-column-gap--ColumnGap: var(--#{$flex}--spacer--column--base);
|
|
23
|
+
}
|
|
22
24
|
|
|
25
|
+
.#{$flex} {
|
|
23
26
|
// Emit spacer css variables that map to requested spacer values
|
|
24
|
-
@include pf-v5-emit-properties($pf-
|
|
27
|
+
@include pf-v5-emit-properties($pf-v6-l-flex--variable-map);
|
|
25
28
|
|
|
26
29
|
display: var(--#{$flex}--Display);
|
|
27
30
|
flex-wrap: var(--#{$flex}--FlexWrap);
|
|
@@ -69,7 +72,7 @@ $pf-v5-l-flex--variable-map: build-variable-map("#{$pf-prefix}l-flex--spacer", $
|
|
|
69
72
|
}
|
|
70
73
|
|
|
71
74
|
.#{$flex} {
|
|
72
|
-
@each $breakpoint, $breakpoint-value in $pf-
|
|
75
|
+
@each $breakpoint, $breakpoint-value in $pf-v6-l-flex--breakpoint-map {
|
|
73
76
|
$breakpoint-name: if($breakpoint != "base", -on-#{$breakpoint}, "");
|
|
74
77
|
|
|
75
78
|
@include pf-v5-apply-breakpoint($breakpoint) {
|
|
@@ -296,14 +299,14 @@ $pf-v5-l-flex--variable-map: build-variable-map("#{$pf-prefix}l-flex--spacer", $
|
|
|
296
299
|
}
|
|
297
300
|
|
|
298
301
|
// .pf-m-space-items-{size}{-on-[breakpoint]}
|
|
299
|
-
@each $breakpoint, $breakpoint-value in $pf-
|
|
302
|
+
@each $breakpoint, $breakpoint-value in $pf-v6-l-flex--breakpoint-map {
|
|
300
303
|
$breakpoint-name: if($breakpoint != "base", -on-#{$breakpoint}, "");
|
|
301
304
|
|
|
302
305
|
@include pf-v5-apply-breakpoint($breakpoint) {
|
|
303
|
-
@each $spacer, $spacer-value in $pf-
|
|
306
|
+
@each $spacer, $spacer-value in $pf-v6-l-flex--spacer-map {
|
|
304
307
|
&.pf-m-space-items-#{$spacer}#{$breakpoint-name} {
|
|
305
308
|
> * {
|
|
306
|
-
--#{$flex}--spacer: var(#{map-get($pf-
|
|
309
|
+
--#{$flex}--spacer: var(#{map-get($pf-v6-l-flex--variable-map, $spacer-value)});
|
|
307
310
|
}
|
|
308
311
|
|
|
309
312
|
> :last-child {
|
|
@@ -315,16 +318,16 @@ $pf-v5-l-flex--variable-map: build-variable-map("#{$pf-prefix}l-flex--spacer", $
|
|
|
315
318
|
}
|
|
316
319
|
|
|
317
320
|
// .pf-m-spacer-{size}{-on-[breakpoint]}
|
|
318
|
-
@each $breakpoint, $breakpoint-value in $pf-
|
|
321
|
+
@each $breakpoint, $breakpoint-value in $pf-v6-l-flex--breakpoint-map {
|
|
319
322
|
$breakpoint-name: if($breakpoint != "base", -on-#{$breakpoint}, "");
|
|
320
323
|
|
|
321
324
|
@include pf-v5-apply-breakpoint($breakpoint) {
|
|
322
|
-
@each $spacer, $spacer-value in $pf-
|
|
325
|
+
@each $spacer, $spacer-value in $pf-v6-l-flex--spacer-map {
|
|
323
326
|
.pf-m-spacer-#{$spacer}#{$breakpoint-name} {
|
|
324
|
-
--#{$flex}--spacer: var(#{map-get($pf-
|
|
327
|
+
--#{$flex}--spacer: var(#{map-get($pf-v6-l-flex--variable-map, $spacer-value)});
|
|
325
328
|
|
|
326
329
|
&:last-child {
|
|
327
|
-
--#{$flex}--spacer: var(#{map-get($pf-
|
|
330
|
+
--#{$flex}--spacer: var(#{map-get($pf-v6-l-flex--variable-map, $spacer-value)});
|
|
328
331
|
}
|
|
329
332
|
}
|
|
330
333
|
}
|
|
@@ -332,17 +335,17 @@ $pf-v5-l-flex--variable-map: build-variable-map("#{$pf-prefix}l-flex--spacer", $
|
|
|
332
335
|
}
|
|
333
336
|
|
|
334
337
|
// .pf-m-gap{-[size]}{-on-[breakpoint]}
|
|
335
|
-
@each $breakpoint, $breakpoint-value in $pf-
|
|
336
|
-
$pf-
|
|
338
|
+
@each $breakpoint, $breakpoint-value in $pf-v6-l-flex--breakpoint-map {
|
|
339
|
+
$pf-v6-l-flex--gap--selectors: ();
|
|
337
340
|
|
|
338
341
|
@include pf-v5-apply-breakpoint($breakpoint) {
|
|
339
|
-
@each $spacer, $value in $pf-
|
|
342
|
+
@each $spacer, $value in $pf-v6-l-flex--gap-map {
|
|
340
343
|
$breakpoint-name: if($breakpoint == "base", "", -on-#{$breakpoint});
|
|
341
344
|
$spacer-name: if($spacer == "base", "", -#{$spacer});
|
|
342
345
|
$spacer-row: if($spacer == "base", var(--#{$flex}--m-gap--RowGap), $value);
|
|
343
346
|
$spacer-column: if($spacer == "base", var(--#{$flex}--m-gap--ColumnGap), $value);
|
|
344
347
|
$selector: ".pf-m-gap#{$spacer-name}#{$breakpoint-name}";
|
|
345
|
-
$pf-
|
|
348
|
+
$pf-v6-l-flex--gap--selectors: append($pf-v6-l-flex--gap--selectors, $selector, $separator: comma);
|
|
346
349
|
|
|
347
350
|
&#{$selector} {
|
|
348
351
|
--#{$flex}--RowGap: #{$spacer-row};
|
|
@@ -350,7 +353,7 @@ $pf-v5-l-flex--variable-map: build-variable-map("#{$pf-prefix}l-flex--spacer", $
|
|
|
350
353
|
}
|
|
351
354
|
}
|
|
352
355
|
|
|
353
|
-
&:is(#{$pf-
|
|
356
|
+
&:is(#{$pf-v6-l-flex--gap--selectors}) {
|
|
354
357
|
> * {
|
|
355
358
|
--#{$flex}--spacer--row: 0;
|
|
356
359
|
--#{$flex}--spacer--column: 0;
|
|
@@ -360,23 +363,23 @@ $pf-v5-l-flex--variable-map: build-variable-map("#{$pf-prefix}l-flex--spacer", $
|
|
|
360
363
|
}
|
|
361
364
|
|
|
362
365
|
// .pf-m-row-gap{-[size]}{-on-[breakpoint]}
|
|
363
|
-
@each $breakpoint, $breakpoint-value in $pf-
|
|
366
|
+
@each $breakpoint, $breakpoint-value in $pf-v6-l-flex--breakpoint-map {
|
|
364
367
|
@include pf-v5-apply-breakpoint($breakpoint) {
|
|
365
|
-
$pf-
|
|
368
|
+
$pf-v6-l-flex--row-gap--selectors: ();
|
|
366
369
|
|
|
367
|
-
@each $spacer, $value in $pf-
|
|
370
|
+
@each $spacer, $value in $pf-v6-l-flex--gap-map {
|
|
368
371
|
$breakpoint-name: if($breakpoint == "base", "", -on-#{$breakpoint});
|
|
369
372
|
$spacer-name: if($spacer == "base", "", -#{$spacer});
|
|
370
373
|
$spacer-value: if($spacer == "base", var(--#{$flex}--m-row-gap--RowGap), $value);
|
|
371
374
|
$selector: ".pf-m-row-gap#{$spacer-name}#{$breakpoint-name}";
|
|
372
|
-
$pf-
|
|
375
|
+
$pf-v6-l-flex--row-gap--selectors: append($pf-v6-l-flex--row-gap--selectors, $selector, $separator: comma);
|
|
373
376
|
|
|
374
377
|
&#{$selector} {
|
|
375
378
|
--#{$flex}--RowGap: #{$spacer-value};
|
|
376
379
|
}
|
|
377
380
|
}
|
|
378
381
|
|
|
379
|
-
&:is(#{$pf-
|
|
382
|
+
&:is(#{$pf-v6-l-flex--row-gap--selectors}) {
|
|
380
383
|
> * {
|
|
381
384
|
--#{$flex}--spacer--row: 0;
|
|
382
385
|
}
|
|
@@ -385,23 +388,23 @@ $pf-v5-l-flex--variable-map: build-variable-map("#{$pf-prefix}l-flex--spacer", $
|
|
|
385
388
|
}
|
|
386
389
|
|
|
387
390
|
// .pf-m-column-gap{-[size]}{-on-[breakpoint]}
|
|
388
|
-
@each $breakpoint, $breakpoint-value in $pf-
|
|
389
|
-
$pf-
|
|
391
|
+
@each $breakpoint, $breakpoint-value in $pf-v6-l-flex--breakpoint-map {
|
|
392
|
+
$pf-v6-l-flex--column-gap--selectors: ();
|
|
390
393
|
|
|
391
394
|
@include pf-v5-apply-breakpoint($breakpoint) {
|
|
392
|
-
@each $spacer, $value in $pf-
|
|
395
|
+
@each $spacer, $value in $pf-v6-l-flex--gap-map {
|
|
393
396
|
$breakpoint-name: if($breakpoint == "base", "", -on-#{$breakpoint});
|
|
394
397
|
$spacer-name: if($spacer == "base", "", -#{$spacer});
|
|
395
398
|
$spacer-value: if($spacer == "base", var(--#{$flex}--m-column-gap--ColumnGap), $value);
|
|
396
399
|
$selector: ".pf-m-column-gap#{$spacer-name}#{$breakpoint-name}";
|
|
397
|
-
$pf-
|
|
400
|
+
$pf-v6-l-flex--column-gap--selectors: append($pf-v6-l-flex--column-gap--selectors, $selector, $separator: comma);
|
|
398
401
|
|
|
399
402
|
&#{$selector} {
|
|
400
403
|
--#{$flex}--ColumnGap: #{$spacer-value};
|
|
401
404
|
}
|
|
402
405
|
}
|
|
403
406
|
|
|
404
|
-
&:is(#{$pf-
|
|
407
|
+
&:is(#{$pf-v6-l-flex--column-gap--selectors}) {
|
|
405
408
|
> * {
|
|
406
409
|
--#{$flex}--spacer--column: 0;
|
|
407
410
|
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
:where(:root),
|
|
2
|
+
:where(.pf-v6-l-gallery) {
|
|
3
|
+
--pf-v6-l-gallery--m-gutter--GridGap: var(--pf-t--global--spacer--lg);
|
|
3
4
|
--pf-v6-l-gallery--GridTemplateColumns--min: 250px;
|
|
4
5
|
--pf-v6-l-gallery--GridTemplateColumns--minmax--min: var(--pf-v6-l-gallery--GridTemplateColumns--min);
|
|
5
6
|
--pf-v6-l-gallery--GridTemplateColumns--max: 1fr;
|
|
6
7
|
--pf-v6-l-gallery--GridTemplateColumns--minmax--max: var(--pf-v6-l-gallery--GridTemplateColumns--max);
|
|
7
8
|
--pf-v6-l-gallery--GridTemplateColumns: repeat(auto-fill, minmax(var(--pf-v6-l-gallery--GridTemplateColumns--minmax--min), var(--pf-v6-l-gallery--GridTemplateColumns--minmax--max)));
|
|
8
9
|
--pf-v6-l-gallery--GridTemplateRows: auto;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.pf-v6-l-gallery {
|
|
9
13
|
display: grid;
|
|
10
14
|
grid-template-rows: var(--pf-v6-l-gallery--GridTemplateRows);
|
|
11
15
|
grid-template-columns: var(--pf-v6-l-gallery--GridTemplateColumns);
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
$pf-
|
|
1
|
+
$pf-v6-l-gallery--breakpoint-map: build-breakpoint-map();
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
:where(:root),
|
|
4
|
+
:where(.#{$gallery}) {
|
|
5
|
+
--#{$gallery}--m-gutter--GridGap: var(--pf-t--global--spacer--lg);
|
|
5
6
|
--#{$gallery}--GridTemplateColumns--min: 250px;
|
|
6
7
|
--#{$gallery}--GridTemplateColumns--minmax--min: var(--#{$gallery}--GridTemplateColumns--min);
|
|
7
8
|
--#{$gallery}--GridTemplateColumns--max: 1fr;
|
|
8
9
|
--#{$gallery}--GridTemplateColumns--minmax--max: var(--#{$gallery}--GridTemplateColumns--max);
|
|
9
10
|
--#{$gallery}--GridTemplateColumns: repeat(auto-fill, minmax(var(--#{$gallery}--GridTemplateColumns--minmax--min), var(--#{$gallery}--GridTemplateColumns--minmax--max)));
|
|
10
11
|
--#{$gallery}--GridTemplateRows: auto;
|
|
12
|
+
}
|
|
11
13
|
|
|
14
|
+
.#{$gallery} {
|
|
12
15
|
display: grid;
|
|
13
16
|
grid-template-rows: var(--#{$gallery}--GridTemplateRows);
|
|
14
17
|
grid-template-columns: var(--#{$gallery}--GridTemplateColumns);
|
|
@@ -17,6 +20,6 @@ $pf-v5-l-gallery--breakpoint-map: build-breakpoint-map();
|
|
|
17
20
|
grid-gap: var(--#{$gallery}--m-gutter--GridGap);
|
|
18
21
|
}
|
|
19
22
|
|
|
20
|
-
@include pf-v5-build-css-variable-stack("--#{$gallery}--GridTemplateColumns--minmax--min", "--#{$gallery}--GridTemplateColumns--min", $pf-
|
|
21
|
-
@include pf-v5-build-css-variable-stack("--#{$gallery}--GridTemplateColumns--minmax--max", "--#{$gallery}--GridTemplateColumns--max", $pf-
|
|
23
|
+
@include pf-v5-build-css-variable-stack("--#{$gallery}--GridTemplateColumns--minmax--min", "--#{$gallery}--GridTemplateColumns--min", $pf-v6-l-gallery--breakpoint-map);
|
|
24
|
+
@include pf-v5-build-css-variable-stack("--#{$gallery}--GridTemplateColumns--minmax--max", "--#{$gallery}--GridTemplateColumns--max", $pf-v6-l-gallery--breakpoint-map);
|
|
22
25
|
}
|
package/layouts/Grid/grid.css
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
:where(:root),
|
|
2
|
+
:where(.pf-v6-l-grid) {
|
|
3
|
+
--pf-v6-l-grid--m-gutter--GridGap: var(--pf-t--global--spacer--lg);
|
|
3
4
|
--pf-v6-l-grid__item--GridColumnStart: auto;
|
|
4
5
|
--pf-v6-l-grid__item--GridColumnEnd: span 12;
|
|
5
6
|
--pf-v6-l-grid--item--Order: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.pf-v6-l-grid {
|
|
6
10
|
display: grid;
|
|
7
11
|
grid-template-columns: repeat(12, [col-start] 1fr);
|
|
8
12
|
}
|
package/layouts/Grid/grid.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
$pf-
|
|
1
|
+
$pf-v6-l-grid--breakpoint-map: build-breakpoint-map(); // currently only used for css variable stack
|
|
2
2
|
|
|
3
3
|
// URL.com/guidelines#layout
|
|
4
4
|
// Generate smart grid layout
|
|
@@ -39,12 +39,15 @@ $pf-v5-l-grid--breakpoint-map: build-breakpoint-map(); // currently only used fo
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
// Grid base
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
:where(:root),
|
|
43
|
+
:where(.#{$grid}) {
|
|
44
|
+
--#{$grid}--m-gutter--GridGap: var(--pf-t--global--spacer--lg);
|
|
44
45
|
--#{$grid}__item--GridColumnStart: auto;
|
|
45
46
|
--#{$grid}__item--GridColumnEnd: span 12;
|
|
46
47
|
--#{$grid}--item--Order: 0;
|
|
48
|
+
}
|
|
47
49
|
|
|
50
|
+
.#{$grid} {
|
|
48
51
|
display: grid;
|
|
49
52
|
grid-template-columns: repeat(12, [col-start] 1fr);
|
|
50
53
|
|
|
@@ -55,7 +58,7 @@ $pf-v5-l-grid--breakpoint-map: build-breakpoint-map(); // currently only used fo
|
|
|
55
58
|
min-width: 0;
|
|
56
59
|
min-height: 0;
|
|
57
60
|
|
|
58
|
-
@include pf-v5-build-css-variable-stack("order", "--#{$grid}--item--Order", $pf-
|
|
61
|
+
@include pf-v5-build-css-variable-stack("order", "--#{$grid}--item--Order", $pf-v6-l-grid--breakpoint-map);
|
|
59
62
|
}
|
|
60
63
|
|
|
61
64
|
// Loop through $breakpoints map to generate responsive classes
|
package/layouts/Level/level.css
CHANGED
package/layouts/Level/level.scss
CHANGED
package/layouts/Split/split.css
CHANGED
package/layouts/Split/split.scss
CHANGED
package/layouts/Stack/stack.css
CHANGED
package/layouts/Stack/stack.scss
CHANGED