@patternfly/patternfly 6.0.0-alpha.100 → 6.0.0-alpha.102
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/Nav/nav.css +3 -1
- package/components/Nav/nav.scss +4 -2
- package/components/Table/table-scrollable.css +12 -15
- package/components/Table/table-scrollable.scss +33 -30
- package/components/Table/table-tree-view.css +0 -2
- package/components/Table/table-tree-view.scss +9 -11
- package/components/Table/table.css +118 -55
- package/components/Table/table.scss +182 -100
- package/docs/components/Nav/examples/Navigation.css +2 -2
- package/docs/components/Nav/examples/Navigation.md +57 -55
- package/docs/components/Table/examples/Table.css +6 -8
- package/docs/components/Table/examples/Table.md +79 -92
- package/docs/demos/Table/examples/Table.md +28 -28
- package/docs/utilities/Accessibility/examples/Accessibility.md +2 -2
- package/docs/utilities/Alignment/examples/Alignment.css +4 -4
- package/docs/utilities/Alignment/examples/Alignment.md +5 -5
- package/docs/utilities/BackgroundColor/examples/BackgroundColor.md +24 -24
- package/docs/utilities/BoxShadow/examples/box-shadow.css +11 -11
- package/docs/utilities/BoxShadow/examples/box-shadow.md +15 -38
- package/docs/utilities/Display/examples/Display.css +8 -8
- package/docs/utilities/Display/examples/Display.md +7 -7
- package/docs/utilities/Flex/examples/Flex.css +5 -5
- package/docs/utilities/Flex/examples/Flex.md +82 -40
- package/docs/utilities/Float/examples/Float.css +2 -2
- package/docs/utilities/Float/examples/Float.md +6 -6
- package/docs/utilities/Sizing/examples/Sizing.css +4 -4
- package/docs/utilities/Sizing/examples/Sizing.md +60 -60
- package/docs/utilities/Spacing/examples/Spacing.css +1 -1
- package/docs/utilities/Spacing/examples/Spacing.md +37 -37
- package/docs/utilities/Text/examples/Text.md +53 -53
- package/package.json +1 -1
- package/patternfly-addons.css +91 -371
- package/patternfly-no-globals.css +133 -73
- package/patternfly-theme-dark-unversioned.css +133 -73
- package/patternfly.css +133 -73
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/mixins.scss +2 -2
- package/utilities/Alignment/alignment.css +24 -24
- package/utilities/Alignment/alignment.scss +4 -4
- package/utilities/BackgroundColor/BackgroundColor.css +0 -100
- package/utilities/BackgroundColor/BackgroundColor.scss +2 -8
- package/utilities/BoxShadow/box-shadow.css +15 -39
- package/utilities/BoxShadow/box-shadow.scss +17 -27
- package/utilities/Display/display.scss +2 -2
- package/utilities/Flex/flex.scss +18 -18
- package/utilities/Float/float.css +24 -24
- package/utilities/Float/float.scss +4 -4
- package/utilities/Sizing/sizing.css +28 -28
- package/utilities/Sizing/sizing.scss +17 -17
- package/utilities/Text/text.css +0 -155
- package/utilities/Text/text.scss +10 -16
- package/utilities/BackgroundColor/themes/dark/BackgroundColor.css +0 -0
- package/utilities/BackgroundColor/themes/dark/BackgroundColor.scss +0 -25
- package/utilities/Text/themes/dark/text.css +0 -0
- package/utilities/Text/themes/dark/text.scss +0 -33
package/components/Nav/nav.css
CHANGED
|
@@ -81,7 +81,6 @@
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
.pf-v6-c-nav {
|
|
84
|
-
--pf-v6-c-menu--MinWidth: 100%;
|
|
85
84
|
position: relative;
|
|
86
85
|
row-gap: var(--pf-v6-c-nav--RowGap);
|
|
87
86
|
column-gap: var(--pf-v6-c-nav--ColumnGap);
|
|
@@ -104,6 +103,9 @@
|
|
|
104
103
|
.pf-v6-c-nav.pf-m-fill {
|
|
105
104
|
flex-grow: 1;
|
|
106
105
|
}
|
|
106
|
+
.pf-v6-c-nav .pf-v6-c-menu {
|
|
107
|
+
--pf-v6-c-menu--MinWidth: 100%;
|
|
108
|
+
}
|
|
107
109
|
|
|
108
110
|
[class^=pf-v6-c-nav][hidden] {
|
|
109
111
|
display: none;
|
package/components/Nav/nav.scss
CHANGED
|
@@ -104,8 +104,6 @@
|
|
|
104
104
|
|
|
105
105
|
// - Nav root
|
|
106
106
|
.#{$nav} {
|
|
107
|
-
--#{$menu}--MinWidth: 100%;
|
|
108
|
-
|
|
109
107
|
position: relative;
|
|
110
108
|
row-gap: var(--#{$nav}--RowGap);
|
|
111
109
|
column-gap: var(--#{$nav}--ColumnGap);
|
|
@@ -130,6 +128,10 @@
|
|
|
130
128
|
&.pf-m-fill {
|
|
131
129
|
flex-grow: 1;
|
|
132
130
|
}
|
|
131
|
+
|
|
132
|
+
.#{$menu} {
|
|
133
|
+
--#{$menu}--MinWidth: 100%;
|
|
134
|
+
}
|
|
133
135
|
}
|
|
134
136
|
|
|
135
137
|
[class^="#{$nav}"][hidden] {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
:where(:root),
|
|
2
2
|
:where(.pf-v6-c-table) {
|
|
3
|
-
--pf-v6-c-table__sticky-cell--MinWidth--base:
|
|
3
|
+
--pf-v6-c-table__sticky-cell--MinWidth--base: 8.75rem;
|
|
4
4
|
--pf-v6-c-table__sticky-cell--MinWidth: var(--pf-v6-c-table__sticky-cell--MinWidth--base);
|
|
5
5
|
--pf-v6-c-table__sticky-cell--ZIndex: var(--pf-t--global--Zindex--xs);
|
|
6
6
|
--pf-v6-c-table__sticky-cell--Right: auto;
|
|
@@ -14,36 +14,33 @@
|
|
|
14
14
|
--pf-v6-c-table__sticky-cell--m-left--Left: 0;
|
|
15
15
|
--pf-v6-c-table--m-sticky-header__sticky-cell--ZIndex: calc(var(--pf-v6-c-table__sticky-cell--ZIndex) + 1);
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
--pf-v6-c-table--cell--Overflow: visible;
|
|
20
|
-
--pf-v6-c-table--m-sticky-header--cell--ZIndex: var(--pf-v6-c-table--m-sticky-header__sticky-cell--ZIndex);
|
|
17
|
+
|
|
18
|
+
.pf-v6-c-table .pf-v6-c-table__sticky-cell {
|
|
21
19
|
position: sticky;
|
|
22
20
|
inset-inline-start: var(--pf-v6-c-table__sticky-cell--Left);
|
|
23
21
|
inset-inline-end: var(--pf-v6-c-table__sticky-cell--Right);
|
|
24
22
|
z-index: var(--pf-v6-c-table__sticky-cell--ZIndex);
|
|
25
23
|
min-width: var(--pf-v6-c-table__sticky-cell--MinWidth);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.pf-v6-c-table__sticky-cell {
|
|
27
|
+
--pf-v6-c-table--cell--Overflow: visible;
|
|
28
|
+
--pf-v6-c-table--m-sticky-header--cell--ZIndex: var(--pf-v6-c-table--m-sticky-header__sticky-cell--ZIndex);
|
|
26
29
|
background-color: var(--pf-v6-c-table__sticky-cell--BackgroundColor);
|
|
27
30
|
background-clip: padding-box;
|
|
28
31
|
}
|
|
29
|
-
|
|
30
|
-
:where(.pf-v6-c-table) .pf-v6-c-table__sticky-cell.pf-m-border-right::before {
|
|
32
|
+
.pf-v6-c-table__sticky-cell.pf-m-border-right::before {
|
|
31
33
|
--pf-v6-c-table--cell--m-border-right--before--BorderRightWidth: var(--pf-v6-c-table__sticky-cell--m-border-right--before--BorderRightWidth);
|
|
32
34
|
--pf-v6-c-table--cell--m-border-right--before--BorderRightColor: var(--pf-v6-c-table__sticky-cell--m-border-right--before--BorderRightColor);
|
|
33
35
|
}
|
|
34
|
-
|
|
35
|
-
:where(.pf-v6-c-table) .pf-v6-c-table__sticky-cell.pf-m-border-left::before {
|
|
36
|
+
.pf-v6-c-table__sticky-cell.pf-m-border-left::before {
|
|
36
37
|
--pf-v6-c-table--cell--m-border-left--before--BorderLeftWidth: var(--pf-v6-c-table__sticky-cell--m-border-left--before--BorderLeftWidth);
|
|
37
38
|
--pf-v6-c-table--cell--m-border-left--before--BorderLeftColor: var(--pf-v6-c-table__sticky-cell--m-border-left--before--BorderLeftColor);
|
|
38
39
|
}
|
|
39
|
-
|
|
40
|
-
:where(.pf-v6-c-table) .pf-v6-c-table__sticky-cell.pf-m-right,
|
|
41
|
-
:where(.pf-v6-c-table) .pf-v6-c-table__sticky-cell.pf-m-inline-end {
|
|
40
|
+
.pf-v6-c-table__sticky-cell.pf-m-right, .pf-v6-c-table__sticky-cell.pf-m-inline-end {
|
|
42
41
|
--pf-v6-c-table__sticky-cell--Right: var(--pf-v6-c-table__sticky-cell--m-right--Right);
|
|
43
42
|
}
|
|
44
|
-
|
|
45
|
-
:where(.pf-v6-c-table) .pf-v6-c-table__sticky-cell.pf-m-left,
|
|
46
|
-
:where(.pf-v6-c-table) .pf-v6-c-table__sticky-cell.pf-m-inline-start {
|
|
43
|
+
.pf-v6-c-table__sticky-cell.pf-m-left, .pf-v6-c-table__sticky-cell.pf-m-inline-start {
|
|
47
44
|
--pf-v6-c-table__sticky-cell--Left: var(--pf-v6-c-table__sticky-cell--m-left--Left);
|
|
48
45
|
}
|
|
49
46
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// * Table scrollable
|
|
2
2
|
:where(:root),
|
|
3
3
|
:where(.#{$table}) {
|
|
4
|
-
--#{$table}__sticky-cell--MinWidth--base: #{pf-size-prem(
|
|
4
|
+
--#{$table}__sticky-cell--MinWidth--base: #{pf-size-prem(140px)};
|
|
5
5
|
--#{$table}__sticky-cell--MinWidth: var(--#{$table}__sticky-cell--MinWidth--base);
|
|
6
6
|
--#{$table}__sticky-cell--ZIndex: var(--pf-t--global--Zindex--xs);
|
|
7
7
|
--#{$table}__sticky-cell--Right: auto;
|
|
@@ -14,44 +14,47 @@
|
|
|
14
14
|
--#{$table}__sticky-cell--m-right--Right: 0;
|
|
15
15
|
--#{$table}__sticky-cell--m-left--Left: 0;
|
|
16
16
|
--#{$table}--m-sticky-header__sticky-cell--ZIndex: calc(var(--#{$table}__sticky-cell--ZIndex) + 1);
|
|
17
|
+
}
|
|
18
|
+
|
|
17
19
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
// - Table sticky cell
|
|
21
|
+
.#{$table} .#{$table}__sticky-cell {
|
|
22
|
+
position: sticky;
|
|
23
|
+
inset-inline-start: var(--#{$table}__sticky-cell--Left);
|
|
24
|
+
inset-inline-end: var(--#{$table}__sticky-cell--Right);
|
|
25
|
+
z-index: var(--#{$table}__sticky-cell--ZIndex);
|
|
26
|
+
min-width: var(--#{$table}__sticky-cell--MinWidth);
|
|
27
|
+
}
|
|
22
28
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
z-index: var(--#{$table}__sticky-cell--ZIndex);
|
|
27
|
-
min-width: var(--#{$table}__sticky-cell--MinWidth);
|
|
28
|
-
background-color: var(--#{$table}__sticky-cell--BackgroundColor);
|
|
29
|
-
background-clip: padding-box;
|
|
29
|
+
.#{$table}__sticky-cell {
|
|
30
|
+
--#{$table}--cell--Overflow: visible;
|
|
31
|
+
--#{$table}--m-sticky-header--cell--ZIndex: var(--#{$table}--m-sticky-header__sticky-cell--ZIndex);
|
|
30
32
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
--#{$table}--cell--m-border-right--before--BorderRightColor: var(--#{$table}__sticky-cell--m-border-right--before--BorderRightColor);
|
|
34
|
-
}
|
|
33
|
+
background-color: var(--#{$table}__sticky-cell--BackgroundColor);
|
|
34
|
+
background-clip: padding-box;
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
&.pf-m-border-right::before {
|
|
37
|
+
--#{$table}--cell--m-border-right--before--BorderRightWidth: var(--#{$table}__sticky-cell--m-border-right--before--BorderRightWidth);
|
|
38
|
+
--#{$table}--cell--m-border-right--before--BorderRightColor: var(--#{$table}__sticky-cell--m-border-right--before--BorderRightColor);
|
|
39
|
+
}
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
&.pf-m-border-left::before {
|
|
42
|
+
--#{$table}--cell--m-border-left--before--BorderLeftWidth: var(--#{$table}__sticky-cell--m-border-left--before--BorderLeftWidth);
|
|
43
|
+
--#{$table}--cell--m-border-left--before--BorderLeftColor: var(--#{$table}__sticky-cell--m-border-left--before--BorderLeftColor);
|
|
44
|
+
}
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
&.pf-m-right,
|
|
47
|
+
&.pf-m-inline-end {
|
|
48
|
+
--#{$table}__sticky-cell--Right: var(--#{$table}__sticky-cell--m-right--Right);
|
|
49
|
+
}
|
|
50
50
|
|
|
51
|
+
&.pf-m-left,
|
|
52
|
+
&.pf-m-inline-start {
|
|
53
|
+
--#{$table}__sticky-cell--Left: var(--#{$table}__sticky-cell--m-left--Left);
|
|
51
54
|
}
|
|
52
55
|
}
|
|
53
56
|
|
|
54
|
-
//
|
|
57
|
+
// - Scroll outer wrapper
|
|
55
58
|
.#{$scroll-outer-wrapper} {
|
|
56
59
|
--#{$scroll-outer-wrapper}--MinHeight: #{pf-size-prem(400px)};
|
|
57
60
|
--#{$scroll-outer-wrapper}--MaxHeight: 100%;
|
|
@@ -64,7 +67,7 @@
|
|
|
64
67
|
overflow: hidden;
|
|
65
68
|
}
|
|
66
69
|
|
|
67
|
-
//
|
|
70
|
+
// - Scroll inner wrapper
|
|
68
71
|
.#{$scroll-inner-wrapper} {
|
|
69
72
|
display: flex;
|
|
70
73
|
flex-direction: column;
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
--pf-v6-c-table__tree-view-main--PaddingLeft: var(--pf-v6-c-table__tree-view-main--indent--base);
|
|
7
7
|
--pf-v6-c-table__tree-view-main--MarginLeft: calc(var(--pf-v6-c-table--cell--PaddingLeft) * -1);
|
|
8
8
|
--pf-v6-c-table__tree-view-main--c-table__check--PaddingRight: var(--pf-t--global--spacer--sm);
|
|
9
|
-
--pf-v6-c-table__tree-view-main--c-table__check--PaddingLeft: var(--pf-t--global--spacer--sm);
|
|
10
9
|
--pf-v6-c-table__tree-view-main--c-table__check--MarginRight: var(--pf-t--global--spacer--sm);
|
|
11
10
|
--pf-v6-c-table__tree-view-icon--MinWidth: var(--pf-t--global--spacer--md);
|
|
12
11
|
--pf-v6-c-table__tree-view-icon--MarginRight: var(--pf-t--global--spacer--sm);
|
|
@@ -87,7 +86,6 @@
|
|
|
87
86
|
margin-inline-end: var(--pf-v6-c-table__tree-view-main--c-table__check--MarginRight);
|
|
88
87
|
}
|
|
89
88
|
.pf-v6-c-table__tree-view-main > .pf-v6-c-table__check label {
|
|
90
|
-
padding-inline-start: var(--pf-v6-c-table__tree-view-main--c-table__check--PaddingLeft);
|
|
91
89
|
padding-inline-end: var(--pf-v6-c-table__tree-view-main--c-table__check--PaddingRight);
|
|
92
90
|
margin-block-start: 0;
|
|
93
91
|
margin-block-end: 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
$pf-
|
|
1
|
+
$pf-v6-c-tree-view--MaxDepth: 10;
|
|
2
2
|
|
|
3
3
|
// * Table tree view
|
|
4
4
|
:where(:root),
|
|
@@ -9,28 +9,27 @@ $pf-v5-c-tree-view--MaxDepth: 10;
|
|
|
9
9
|
// * Table tree view main button
|
|
10
10
|
--#{$table}__tree-view-main--c-button--MarginRight: var(--pf-t--global--spacer--sm);
|
|
11
11
|
|
|
12
|
-
//
|
|
12
|
+
// * Table tree view main
|
|
13
13
|
--#{$table}__tree-view-main--PaddingLeft: var(--#{$table}__tree-view-main--indent--base);
|
|
14
14
|
--#{$table}__tree-view-main--MarginLeft: calc(var(--#{$table}--cell--PaddingLeft) * -1);
|
|
15
15
|
|
|
16
|
-
//
|
|
16
|
+
// * Table tree view check
|
|
17
17
|
--#{$table}__tree-view-main--c-table__check--PaddingRight: var(--pf-t--global--spacer--sm);
|
|
18
|
-
--#{$table}__tree-view-main--c-table__check--PaddingLeft: var(--pf-t--global--spacer--sm);
|
|
19
18
|
--#{$table}__tree-view-main--c-table__check--MarginRight: var(--pf-t--global--spacer--sm);
|
|
20
19
|
|
|
21
|
-
//
|
|
20
|
+
// * Table tree view icon
|
|
22
21
|
--#{$table}__tree-view-icon--MinWidth: var(--pf-t--global--spacer--md);
|
|
23
22
|
--#{$table}__tree-view-icon--MarginRight: var(--pf-t--global--spacer--sm);
|
|
24
23
|
|
|
25
|
-
//
|
|
24
|
+
// * Table tree view toggle
|
|
26
25
|
--#{$table}--m-tree-view__toggle--Position: absolute;
|
|
27
26
|
--#{$table}--m-tree-view__toggle--Left: var(--#{$table}__tree-view-main--PaddingLeft);
|
|
28
27
|
--#{$table}--m-tree-view__toggle--TranslateX: -100%;
|
|
29
28
|
|
|
30
|
-
//
|
|
29
|
+
// * Table tree view toggle toggle icon
|
|
31
30
|
--#{$table}--m-tree-view__toggle__toggle-icon--MinWidth: var(--pf-t--global--spacer--md);
|
|
32
31
|
|
|
33
|
-
//
|
|
32
|
+
// * Table tree view no inset tree view main
|
|
34
33
|
--#{$table}--m-no-inset__tree-view-main--PaddingLeft: 0;
|
|
35
34
|
--#{$table}--m-no-inset__tree-view-main--MarginLeft: 0;
|
|
36
35
|
}
|
|
@@ -51,7 +50,7 @@ $pf-v5-c-tree-view--MaxDepth: 10;
|
|
|
51
50
|
--#{$table}__tree-view-main--MarginLeft: var(--#{$table}--m-no-inset__tree-view-main--MarginLeft);
|
|
52
51
|
}
|
|
53
52
|
|
|
54
|
-
@for $i from 2 through $pf-
|
|
53
|
+
@for $i from 2 through $pf-v6-c-tree-view--MaxDepth {
|
|
55
54
|
tr:where(.#{$table}__tr)[aria-level="#{$i}"] {
|
|
56
55
|
--#{$table}__tree-view-main--PaddingLeft: calc(var(--#{$table}__tree-view-main--nested-indent--base) * #{$i - 1} + var(--#{$table}__tree-view-main--indent--base));
|
|
57
56
|
}
|
|
@@ -95,7 +94,6 @@ $pf-v5-c-tree-view--MaxDepth: 10;
|
|
|
95
94
|
}
|
|
96
95
|
|
|
97
96
|
> .#{$table}__check label {
|
|
98
|
-
padding-inline-start: var(--#{$table}__tree-view-main--c-table__check--PaddingLeft);
|
|
99
97
|
padding-inline-end: var(--#{$table}__tree-view-main--c-table__check--PaddingRight);
|
|
100
98
|
margin-block-start: 0;
|
|
101
99
|
margin-block-end: 0;
|
|
@@ -313,7 +311,7 @@ $pf-v5-c-tree-view--MaxDepth: 10;
|
|
|
313
311
|
margin-block-end: var(--#{$table}__tree-view-details-toggle--MarginBottom);
|
|
314
312
|
}
|
|
315
313
|
|
|
316
|
-
@for $i from 2 through $pf-
|
|
314
|
+
@for $i from 2 through $pf-v6-c-tree-view--MaxDepth {
|
|
317
315
|
tr:where(.#{$table}__tr)[aria-level="#{$i}"] {
|
|
318
316
|
--#{$table}--m-tree-view-grid__tbody--cell--PaddingLeft: calc(var(--#{$table}__tree-view-main--nested-indent--base) * #{$i - 1} + var(--#{$table}__tree-view-main--indent--base)); // indent, plus indent level, plus
|
|
319
317
|
}
|