@patternfly/patternfly 6.0.0-alpha.77 → 6.0.0-alpha.78
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/patternfly-variables.css +26 -23
- package/base/tokens/_tokens-charts.scss +159 -0
- package/base/tokens/_tokens-dark.scss +7 -5
- package/base/tokens/_tokens-default.scss +27 -17
- package/base/tokens/_tokens-palette.scss +4 -4
- package/components/Button/button.css +2 -2
- package/components/Button/button.scss +2 -2
- package/components/FormControl/form-control.css +3 -3
- package/components/FormControl/form-control.scss +3 -3
- package/components/Icon/icon.css +27 -27
- package/components/Icon/icon.scss +27 -27
- package/components/Label/label-group.css +1 -1
- package/components/Label/label-group.scss +1 -1
- package/components/Label/label.css +2 -2
- package/components/Label/label.scss +2 -2
- package/components/MenuToggle/menu-toggle.css +4 -4
- package/components/MenuToggle/menu-toggle.scss +4 -4
- package/components/ProgressStepper/progress-stepper.css +2 -2
- package/components/ProgressStepper/progress-stepper.scss +2 -2
- package/components/Table/table-grid.css +29 -45
- package/components/Table/table-grid.scss +40 -53
- package/components/Table/table-scrollable.css +6 -6
- package/components/Table/table-scrollable.scss +8 -8
- package/components/Table/table-tree-view.css +76 -74
- package/components/Table/table-tree-view.scss +44 -39
- package/components/Table/table.css +54 -74
- package/components/Table/table.scss +68 -86
- package/components/Tile/tile.css +1 -1
- package/components/Tile/tile.scss +1 -1
- package/components/TreeView/tree-view.css +76 -97
- package/components/TreeView/tree-view.scss +82 -113
- package/docs/components/TreeView/examples/TreeView.md +7 -57
- package/package.json +1 -1
- package/patternfly-base-no-globals-theme-dark-unversioned.css +26 -23
- package/patternfly-base-no-globals.css +26 -23
- package/patternfly-base-theme-dark-unversioned.css +26 -23
- package/patternfly-base.css +26 -23
- package/patternfly-no-globals.css +309 -365
- package/patternfly-theme-dark-unversioned.css +309 -365
- package/patternfly.css +309 -365
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/components/TreeView/themes/dark/tree-view.scss +0 -8
|
@@ -1,77 +1,69 @@
|
|
|
1
1
|
// @debug $tree-view; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
|
|
2
2
|
$pf-v5-c-tree-view--MaxNesting: 10 !default;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
--#{$tree-view}--PaddingBottom: var(--#{$pf-global}--spacer--sm);
|
|
7
|
-
|
|
4
|
+
:where(:root),
|
|
5
|
+
:where(.#{$tree-view}) {
|
|
8
6
|
// Node base
|
|
9
|
-
--#{$tree-view}__node--indent--base: calc(var(
|
|
10
|
-
--#{$tree-view}__node--nested-indent--base: calc(var(--#{$tree-view}__node--indent--base) - var(
|
|
7
|
+
--#{$tree-view}__node--indent--base: calc(var(--pf-t--global--spacer--md) * 2 + var(--#{$tree-view}__node-toggle-icon--MinWidth)); // based off of the expected width of the toggle button
|
|
8
|
+
--#{$tree-view}__node--nested-indent--base: calc(var(--#{$tree-view}__node--indent--base) - var(--pf-t--global--spacer--md)); // nested spacing that removes the toggle button's left padding, so the icon aligns with text on the node above it
|
|
9
|
+
|
|
10
|
+
// Content
|
|
11
|
+
--#{$tree-view}__content--BorderRadius: var(--pf-t--global--border--radius--small);
|
|
11
12
|
|
|
12
13
|
// Node
|
|
13
|
-
--#{$tree-view}__node--PaddingTop
|
|
14
|
-
--#{$tree-view}__node--
|
|
15
|
-
--#{$tree-view}__node--
|
|
16
|
-
--#{$tree-view}__node--PaddingBottom: var(--#{$pf-global}--spacer--sm);
|
|
14
|
+
--#{$tree-view}__node--PaddingTop: var(--pf-t--global--spacer--sm);
|
|
15
|
+
--#{$tree-view}__node--PaddingRight: var(--pf-t--global--spacer--sm);
|
|
16
|
+
--#{$tree-view}__node--PaddingBottom: var(--pf-t--global--spacer--sm);
|
|
17
17
|
--#{$tree-view}__node--PaddingLeft: var(--#{$tree-view}__node--indent--base);
|
|
18
|
-
--#{$tree-view}__node--Color: var(
|
|
19
|
-
--#{$tree-view}__node--m-current--Color: var(--#{$pf-global}--link--Color);
|
|
20
|
-
--#{$tree-view}__node--m-current--FontWeight: var(--#{$pf-global}--FontWeight--bold);
|
|
18
|
+
--#{$tree-view}__node--Color: var(--pf-t--global--text--color--subtle);
|
|
21
19
|
--#{$tree-view}__node--BackgroundColor: transparent;
|
|
20
|
+
--#{$tree-view}__node--m-current--Color: var(--pf-t--global--text--color--regular);
|
|
21
|
+
--#{$tree-view}__node--m-current--BackgroundColor: var(--pf-t--global--background--color--primary--clicked);
|
|
22
|
+
--#{$tree-view}__node--hover--BackgroundColor: var(--pf-t--global--background--color--primary--hover);
|
|
22
23
|
|
|
23
24
|
// Container
|
|
24
25
|
--#{$tree-view}__node-container--Display: contents;
|
|
25
26
|
|
|
26
|
-
//
|
|
27
|
-
--#{$tree-view}__node-content--RowGap: var(
|
|
27
|
+
// Node content
|
|
28
|
+
--#{$tree-view}__node-content--RowGap: var(--pf-t--global--spacer--sm);
|
|
28
29
|
--#{$tree-view}__node-content--Overflow: visible;
|
|
29
30
|
|
|
30
|
-
// Link hover/focus
|
|
31
|
-
--#{$tree-view}__node--hover--BackgroundColor: var(--#{$pf-global}--BackgroundColor--200);
|
|
32
|
-
--#{$tree-view}__node--focus--BackgroundColor: var(--#{$pf-global}--BackgroundColor--200);
|
|
33
|
-
|
|
34
31
|
// Nested toggle
|
|
35
|
-
--#{$tree-view}__list-item__list-item__node-toggle--Top: var(--#{$tree-view}__node--PaddingTop
|
|
32
|
+
--#{$tree-view}__list-item__list-item__node-toggle--Top: var(--#{$tree-view}__node--PaddingTop);
|
|
36
33
|
--#{$tree-view}__list-item__list-item__node-toggle--Left: var(--#{$tree-view}__node--PaddingLeft);
|
|
37
34
|
--#{$tree-view}__list-item__list-item__node-toggle--TranslateX: -100%;
|
|
38
35
|
|
|
39
36
|
// Toggle
|
|
40
37
|
--#{$tree-view}__node-toggle--Position: absolute;
|
|
41
|
-
--#{$tree-view}__node-toggle--Color--base: var(
|
|
38
|
+
--#{$tree-view}__node-toggle--Color--base: var(--pf-t--global--icon--color--subtle);
|
|
42
39
|
--#{$tree-view}__node-toggle--Color: var(--#{$tree-view}__node-toggle--Color--base);
|
|
43
|
-
--#{$tree-view}__node-toggle--hover--Color: var(--#{$pf-global}--Color--100);
|
|
44
|
-
--#{$tree-view}__node-toggle--focus--Color: var(--#{$pf-global}--Color--100);
|
|
45
|
-
--#{$tree-view}__node-toggle--active--Color: var(--#{$pf-global}--Color--100);
|
|
46
40
|
--#{$tree-view}__node-toggle--BackgroundColor: transparent;
|
|
47
|
-
--#{$tree-view}__list-item--m-expanded__node-toggle--Color: var(
|
|
41
|
+
--#{$tree-view}__list-item--m-expanded__node-toggle--Color: var(--pf-t--global--icon--color--regular);
|
|
48
42
|
|
|
49
43
|
// Toggle icon
|
|
50
|
-
--#{$tree-view}__node-toggle-icon--MinWidth: var(
|
|
51
|
-
--#{$tree-view}__node-toggle
|
|
52
|
-
--#{$tree-view}__node-toggle
|
|
53
|
-
--#{$tree-view}__node-toggle
|
|
54
|
-
--#{$tree-view}__node-toggle
|
|
55
|
-
--#{$tree-view}__node-toggle
|
|
56
|
-
--#{$tree-view}__node-toggle
|
|
57
|
-
--#{$tree-view}__node-toggle-button--MarginBottom: calc(var(--#{$pf-global}--spacer--form-element) * -1);
|
|
44
|
+
--#{$tree-view}__node-toggle-icon--MinWidth: var(--pf-t--global--icon--size--body--default);
|
|
45
|
+
--#{$tree-view}__node-toggle--PaddingTop: var(--pf-t--global--spacer--sm);
|
|
46
|
+
--#{$tree-view}__node-toggle--PaddingRight: var(--pf-t--global--spacer--md);
|
|
47
|
+
--#{$tree-view}__node-toggle--PaddingBottom: var(--pf-t--global--spacer--sm);
|
|
48
|
+
--#{$tree-view}__node-toggle--PaddingLeft: var(--pf-t--global--spacer--md);
|
|
49
|
+
--#{$tree-view}__node-toggle--MarginTop: calc(var(--#{$tree-view}__node-toggle--PaddingTop) * -1);
|
|
50
|
+
--#{$tree-view}__node-toggle--MarginBottom: calc(var(--#{$tree-view}__node-toggle--PaddingTop) * -1);
|
|
58
51
|
|
|
59
52
|
// Check
|
|
60
|
-
--#{$tree-view}__node-check--MarginRight: var(
|
|
53
|
+
--#{$tree-view}__node-check--MarginRight: var(--pf-t--global--spacer--sm);
|
|
61
54
|
|
|
62
55
|
// Badge
|
|
63
|
-
--#{$tree-view}__node-count--MarginLeft: var(
|
|
64
|
-
--#{$tree-view}__node-count--c-badge--m-read--BackgroundColor: var(--#{$pf-global}--disabled-color--200);
|
|
56
|
+
--#{$tree-view}__node-count--MarginLeft: var(--pf-t--global--spacer--sm);
|
|
65
57
|
|
|
66
58
|
// Search
|
|
67
|
-
--#{$tree-view}__search--PaddingTop: var(
|
|
68
|
-
--#{$tree-view}__search--PaddingRight: var(
|
|
69
|
-
--#{$tree-view}__search--PaddingBottom: var(
|
|
70
|
-
--#{$tree-view}__search--PaddingLeft: var(
|
|
59
|
+
--#{$tree-view}__search--PaddingTop: var(--pf-t--global--spacer--sm);
|
|
60
|
+
--#{$tree-view}__search--PaddingRight: var(--pf-t--global--spacer--sm);
|
|
61
|
+
--#{$tree-view}__search--PaddingBottom: var(--pf-t--global--spacer--sm);
|
|
62
|
+
--#{$tree-view}__search--PaddingLeft: var(--pf-t--global--spacer--sm);
|
|
71
63
|
|
|
72
64
|
// Icon
|
|
73
|
-
--#{$tree-view}__node-icon--PaddingRight: var(
|
|
74
|
-
--#{$tree-view}__node-icon--Color: var(
|
|
65
|
+
--#{$tree-view}__node-icon--PaddingRight: var(--pf-t--global--spacer--sm);
|
|
66
|
+
--#{$tree-view}__node-icon--Color: var(--pf-t--global--icon--color--subtle);
|
|
75
67
|
--#{$tree-view}__node-toggle-icon--base--Rotate: 0;
|
|
76
68
|
--#{$tree-view}__node-toggle-icon--Rotate: var(--#{$tree-view}__node-toggle-icon--base--Rotate);
|
|
77
69
|
--#{$tree-view}__list-item--m-expanded__node-toggle-icon--Rotate: 90deg;
|
|
@@ -80,21 +72,21 @@ $pf-v5-c-tree-view--MaxNesting: 10 !default;
|
|
|
80
72
|
--#{$tree-view}__node-text--max-lines: 1;
|
|
81
73
|
|
|
82
74
|
// Title
|
|
83
|
-
--#{$tree-view}__node-title--FontWeight: var(
|
|
75
|
+
--#{$tree-view}__node-title--FontWeight: var(--pf-t--global--font--weight--body--bold);
|
|
84
76
|
|
|
85
77
|
// Action
|
|
86
|
-
--#{$tree-view}__action--
|
|
78
|
+
--#{$tree-view}__action--MarginInlineEnd: var(--pf-t--global--spacer--md);
|
|
87
79
|
|
|
88
80
|
// Guides
|
|
89
81
|
// ================================================================== //
|
|
90
82
|
--#{$tree-view}--m-guides--guide--Left: var(--#{$tree-view}--m-guides--guide-left--base); // starting value, this gets updated for each nesting level
|
|
91
83
|
|
|
92
84
|
// Base
|
|
93
|
-
--#{$tree-view}--m-guides--guide-color--base: var(
|
|
94
|
-
--#{$tree-view}--m-guides--guide-width--base: var(
|
|
85
|
+
--#{$tree-view}--m-guides--guide-color--base: var(--pf-t--global--border--color--default);
|
|
86
|
+
--#{$tree-view}--m-guides--guide-width--base: var(--pf-t--global--border--width--divider--default);
|
|
95
87
|
--#{$tree-view}--m-guides--guide-left--base: calc(var(--#{$tree-view}__node--PaddingLeft) - var(--#{$tree-view}--m-guides__list-node--guide-width--base));
|
|
96
88
|
--#{$tree-view}--m-guides--guide-left--base--offset: calc(var(--#{$tree-view}__list-item__list-item__node-toggle--Left) + var(--#{$tree-view}__node-toggle-icon--MinWidth) / 2); // based on toggle positioning
|
|
97
|
-
--#{$tree-view}--m-guides__list-node--guide-width--base: var(
|
|
89
|
+
--#{$tree-view}--m-guides__list-node--guide-width--base: var(--pf-t--global--spacer--lg);
|
|
98
90
|
|
|
99
91
|
// List item
|
|
100
92
|
--#{$tree-view}--m-guides__list-item--before--Top: 0;
|
|
@@ -103,7 +95,7 @@ $pf-v5-c-tree-view--MaxNesting: 10 !default;
|
|
|
103
95
|
--#{$tree-view}--m-guides__list-item--before--BackgroundColor: var(--#{$tree-view}--m-guides--guide-color--base);
|
|
104
96
|
--#{$tree-view}--m-guides__list-item--last-child--before--Top: var(--#{$tree-view}--m-guides__node--before--Top);
|
|
105
97
|
--#{$tree-view}--m-guides__list-item--last-child--before--Height: var(--#{$tree-view}--m-guides__list-item--last-child--before--Top);
|
|
106
|
-
--#{$tree-view}--m-guides__list-item--ZIndex: var(
|
|
98
|
+
--#{$tree-view}--m-guides__list-item--ZIndex: var(--pf-t--global--Zindex--xs);
|
|
107
99
|
|
|
108
100
|
// Node
|
|
109
101
|
--#{$tree-view}--m-guides__node--before--Width: #{pf-size-prem(16px)};
|
|
@@ -114,28 +106,29 @@ $pf-v5-c-tree-view--MaxNesting: 10 !default;
|
|
|
114
106
|
// Compact
|
|
115
107
|
// ================================================================== //
|
|
116
108
|
// Base
|
|
117
|
-
--#{$tree-view}--m-compact--base-border--Left--offset: var(
|
|
109
|
+
--#{$tree-view}--m-compact--base-border--Left--offset: var(--pf-t--global--spacer--md);
|
|
118
110
|
--#{$tree-view}--m-compact--base-border--Left: calc(var(--#{$tree-view}__node--PaddingLeft) - var(--#{$tree-view}--m-compact--base-border--Left--offset));
|
|
119
111
|
--#{$tree-view}--m-compact__node--indent--base: var(--#{$tree-view}__node--indent--base); // based off of the expected width of the toggle button
|
|
120
|
-
--#{$tree-view}--m-compact__node--nested-indent--base: var(
|
|
112
|
+
--#{$tree-view}--m-compact__node--nested-indent--base: var(--pf-t--global--spacer--lg);
|
|
121
113
|
--#{$tree-view}--m-compact--border--Left: var(--#{$tree-view}--m-compact--base-border--Left);
|
|
122
114
|
|
|
123
115
|
// Node
|
|
116
|
+
--#{$tree-view}--m-compact__node--Color: var(--pf-t--global--text--color--regular);
|
|
124
117
|
--#{$tree-view}--m-compact__node--PaddingTop: 0;
|
|
125
118
|
--#{$tree-view}--m-compact__node--PaddingBottom: 0;
|
|
126
|
-
--#{$tree-view}--m-compact__node--nested--PaddingTop: var(
|
|
127
|
-
--#{$tree-view}--m-compact__node--nested--PaddingBottom: var(
|
|
119
|
+
--#{$tree-view}--m-compact__node--nested--PaddingTop: var(--pf-t--global--spacer--sm);
|
|
120
|
+
--#{$tree-view}--m-compact__node--nested--PaddingBottom: var(--pf-t--global--spacer--sm);
|
|
128
121
|
|
|
129
122
|
// Node toggle
|
|
130
123
|
--#{$tree-view}--m-compact__list-item__list-item__node-toggle--Top: calc(var(--#{$tree-view}--m-compact__node-container--PaddingTop));
|
|
131
124
|
|
|
132
125
|
// List item
|
|
133
|
-
--#{$tree-view}--m-compact__list-item--BorderBottomWidth: var(
|
|
134
|
-
--#{$tree-view}--m-compact__list-item--BorderBottomColor: var(
|
|
126
|
+
--#{$tree-view}--m-compact__list-item--BorderBottomWidth: var(--pf-t--global--border--width--divider--default);
|
|
127
|
+
--#{$tree-view}--m-compact__list-item--BorderBottomColor: var(--pf-t--global--border--color--default);
|
|
135
128
|
--#{$tree-view}--m-compact__list-item--before--Top: 0;
|
|
136
129
|
--#{$tree-view}--m-compact__list-item--last-child--before--Height: var(--#{$tree-view}--m-compact__node--before--Top);
|
|
137
|
-
--#{$tree-view}--m-compact__list-item--nested--before--Top: calc(var(--#{$tree-view}
|
|
138
|
-
--#{$tree-view}--m-compact__list-item--nested--last-child--before--Height: calc(var(--#{$tree-view}--m-compact__node--before--Top) + var(--#{$tree-view}
|
|
130
|
+
--#{$tree-view}--m-compact__list-item--nested--before--Top: calc(var(--#{$tree-view}--m-compact__node--nested--PaddingTop) * -1);
|
|
131
|
+
--#{$tree-view}--m-compact__list-item--nested--last-child--before--Height: calc(var(--#{$tree-view}--m-compact__node--before--Top) + var(--#{$tree-view}--m-compact__node--nested--PaddingTop));
|
|
139
132
|
|
|
140
133
|
// Node
|
|
141
134
|
--#{$tree-view}--m-compact__node--PaddingLeft: var(--#{$tree-view}--m-compact__node--indent--base);
|
|
@@ -143,21 +136,22 @@ $pf-v5-c-tree-view--MaxNesting: 10 !default;
|
|
|
143
136
|
--#{$tree-view}--m-compact__node--level-2--PaddingLeft: var(--#{$tree-view}--m-compact__node--indent--base);
|
|
144
137
|
|
|
145
138
|
// Node toggle
|
|
146
|
-
--#{$tree-view}--m-compact__node-toggle--nested--MarginRight: calc(var(--#{$tree-view}__node-toggle
|
|
147
|
-
--#{$tree-view}--m-compact__node-toggle--nested--MarginLeft: calc(var(--#{$tree-view}__node-toggle
|
|
139
|
+
--#{$tree-view}--m-compact__node-toggle--nested--MarginRight: calc(var(--#{$tree-view}__node-toggle--PaddingLeft) * -.5);
|
|
140
|
+
--#{$tree-view}--m-compact__node-toggle--nested--MarginLeft: calc(var(--#{$tree-view}__node-toggle--PaddingLeft) * -1.5);
|
|
148
141
|
|
|
149
142
|
// Node container
|
|
150
143
|
--#{$tree-view}--m-compact__node-container--Display: flex;
|
|
151
|
-
--#{$tree-view}--m-compact__node-container--PaddingBottom--base: var(
|
|
152
|
-
--#{$tree-view}--m-compact__node-container--PaddingTop: var(
|
|
153
|
-
--#{$tree-view}--m-compact__node-container--PaddingRight: var(
|
|
144
|
+
--#{$tree-view}--m-compact__node-container--PaddingBottom--base: var(--pf-t--global--spacer--lg);
|
|
145
|
+
--#{$tree-view}--m-compact__node-container--PaddingTop: var(--pf-t--global--spacer--lg);
|
|
146
|
+
--#{$tree-view}--m-compact__node-container--PaddingRight: var(--pf-t--global--spacer--lg);
|
|
154
147
|
--#{$tree-view}--m-compact__node-container--PaddingBottom: var(--#{$tree-view}--m-compact__node-container--PaddingBottom--base);
|
|
155
|
-
--#{$tree-view}--m-compact__node-container--PaddingLeft: var(
|
|
156
|
-
--#{$tree-view}--m-compact__node-container--
|
|
157
|
-
--#{$tree-view}--m-compact__node-container--nested--
|
|
158
|
-
--#{$tree-view}--m-compact__node-container--nested--
|
|
159
|
-
--#{$tree-view}--m-compact__node-container--nested--
|
|
160
|
-
--#{$tree-view}--m-compact__node-container--nested--
|
|
148
|
+
--#{$tree-view}--m-compact__node-container--PaddingLeft: var(--pf-t--global--spacer--xs);
|
|
149
|
+
--#{$tree-view}--m-compact__node-container--BorderRadius: var(--pf-t--global--border--radius--small);
|
|
150
|
+
--#{$tree-view}--m-compact__node-container--nested--PaddingTop: var(--pf-t--global--spacer--md);
|
|
151
|
+
--#{$tree-view}--m-compact__node-container--nested--PaddingRight: var(--pf-t--global--spacer--lg);
|
|
152
|
+
--#{$tree-view}--m-compact__node-container--nested--PaddingBottom: var(--pf-t--global--spacer--md);
|
|
153
|
+
--#{$tree-view}--m-compact__node-container--nested--PaddingLeft: var(--pf-t--global--spacer--lg);
|
|
154
|
+
--#{$tree-view}--m-compact__node-container--nested--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
|
|
161
155
|
--#{$tree-view}--m-compact__list-item--m-expanded__node-container--PaddingBottom: 0;
|
|
162
156
|
|
|
163
157
|
// Background transparent
|
|
@@ -165,17 +159,16 @@ $pf-v5-c-tree-view--MaxNesting: 10 !default;
|
|
|
165
159
|
|
|
166
160
|
// Compact, no background
|
|
167
161
|
// ================================================================== //
|
|
168
|
-
--#{$tree-view}--m-compact--m-no-background--base-border--Left--offset: var(
|
|
162
|
+
--#{$tree-view}--m-compact--m-no-background--base-border--Left--offset: var(--pf-t--global--spacer--sm);
|
|
169
163
|
--#{$tree-view}--m-compact--m-no-background--base-border--Left: calc(var(--#{$tree-view}__node--PaddingLeft) - var(--#{$tree-view}--m-compact--m-no-background--base-border--Left--offset));
|
|
170
164
|
--#{$tree-view}--m-compact--m-no-background__node--indent--base: var(--#{$tree-view}__node--indent--base); // based off of the expected width of the toggle button
|
|
171
|
-
--#{$tree-view}--m-compact--m-no-background__node--nested-indent--base: var(
|
|
165
|
+
--#{$tree-view}--m-compact--m-no-background__node--nested-indent--base: var(--pf-t--global--spacer--2xl);
|
|
172
166
|
--#{$tree-view}--m-compact--m-no-background__node--nested--PaddingTop: 0;
|
|
173
167
|
--#{$tree-view}--m-compact--m-no-background__node--nested--PaddingBottom: 0;
|
|
174
168
|
--#{$tree-view}--m-compact--m-no-background__node--before--Top: calc(var(--#{$tree-view}--m-compact__node-container--nested--PaddingTop) + var(--#{$tree-view}--m-compact__node--nested--PaddingTop) + #{pf-size-prem(4px)});
|
|
169
|
+
}
|
|
175
170
|
|
|
176
|
-
|
|
177
|
-
padding-block-end: var(--#{$tree-view}--PaddingBottom);
|
|
178
|
-
|
|
171
|
+
.#{$tree-view} {
|
|
179
172
|
&.pf-m-compact,
|
|
180
173
|
&.pf-m-guides {
|
|
181
174
|
.#{$tree-view}__list-item {
|
|
@@ -224,11 +217,11 @@ $pf-v5-c-tree-view--MaxNesting: 10 !default;
|
|
|
224
217
|
}
|
|
225
218
|
|
|
226
219
|
&.pf-m-compact {
|
|
220
|
+
--#{$tree-view}__node--Color: var(--#{$tree-view}--m-compact__node--Color);
|
|
227
221
|
--#{$tree-view}__node--PaddingTop: var(--#{$tree-view}--m-compact__node--PaddingTop);
|
|
228
222
|
--#{$tree-view}__node--PaddingBottom: var(--#{$tree-view}--m-compact__node--PaddingBottom);
|
|
229
223
|
--#{$tree-view}__node-container--Display: var(--#{$tree-view}--m-compact__node-container--Display);
|
|
230
224
|
--#{$tree-view}__node--hover--BackgroundColor: transparent;
|
|
231
|
-
--#{$tree-view}__node--focus--BackgroundColor: transparent;
|
|
232
225
|
--#{$tree-view}__list-item__list-item__node-toggle--Top: var(--#{$tree-view}--m-compact__list-item__list-item__node-toggle--Top);
|
|
233
226
|
|
|
234
227
|
// Level 1
|
|
@@ -337,7 +330,6 @@ $pf-v5-c-tree-view--MaxNesting: 10 !default;
|
|
|
337
330
|
display: inline-block;
|
|
338
331
|
min-width: var(--#{$tree-view}__node-toggle-icon--MinWidth);
|
|
339
332
|
text-align: center;
|
|
340
|
-
transition: var(--#{$tree-view}__node-toggle-icon--Transition);
|
|
341
333
|
transform: rotate(var(--#{$tree-view}__node-toggle-icon--Rotate));
|
|
342
334
|
}
|
|
343
335
|
|
|
@@ -377,41 +369,17 @@ $pf-v5-c-tree-view--MaxNesting: 10 !default;
|
|
|
377
369
|
|
|
378
370
|
&.pf-m-current {
|
|
379
371
|
--#{$tree-view}__node--Color: var(--#{$tree-view}__node--m-current--Color);
|
|
380
|
-
|
|
381
|
-
font-weight: var(--#{$tree-view}__node--m-current--FontWeight);
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
&:focus {
|
|
385
|
-
--#{$tree-view}__node--BackgroundColor: var(--#{$tree-view}__node--focus--BackgroundColor);
|
|
386
372
|
}
|
|
387
373
|
|
|
388
374
|
.#{$tree-view}__node-count {
|
|
389
375
|
margin-inline-start: var(--#{$tree-view}__node-count--MarginLeft);
|
|
390
|
-
|
|
391
|
-
.#{$badge}.pf-m-read {
|
|
392
|
-
--#{$badge}--m-read--BackgroundColor: var(--#{$tree-view}__node-count--c-badge--m-read--BackgroundColor);
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
&:not(.pf-m-selectable),
|
|
397
|
-
&.pf-m-selectable .#{$tree-view}__node-toggle {
|
|
398
|
-
&:hover {
|
|
399
|
-
--#{$tree-view}__node-toggle--Color: var(--#{$tree-view}__node-toggle--hover--Color);
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
&:focus {
|
|
403
|
-
--#{$tree-view}__node-toggle--Color: var(--#{$tree-view}__node-toggle--focus--Color);
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
&:active {
|
|
407
|
-
--#{$tree-view}__node-toggle--Color: var(--#{$tree-view}__node-toggle--active--Color);
|
|
408
|
-
}
|
|
409
376
|
}
|
|
410
377
|
}
|
|
411
378
|
|
|
412
379
|
.#{$tree-view}__node-container {
|
|
413
380
|
display: var(--#{$tree-view}__node-container--Display);
|
|
414
381
|
flex-grow: 1;
|
|
382
|
+
border-radius: var(--#{$tree-view}--m-compact__node-container--BorderRadius);
|
|
415
383
|
}
|
|
416
384
|
|
|
417
385
|
.#{$tree-view}__node-content {
|
|
@@ -429,6 +397,7 @@ $pf-v5-c-tree-view--MaxNesting: 10 !default;
|
|
|
429
397
|
margin-inline-end: var(--#{$tree-view}__node-check--MarginRight);
|
|
430
398
|
}
|
|
431
399
|
|
|
400
|
+
// TODO - should this use the button component? It isn't always a <button> element, but should have the same layout whether it's a button or not
|
|
432
401
|
.#{$tree-view}__node-toggle {
|
|
433
402
|
position: var(--#{$tree-view}__node-toggle--Position);
|
|
434
403
|
inset-block-start: var(--#{$tree-view}__list-item__list-item__node-toggle--Top);
|
|
@@ -436,12 +405,12 @@ $pf-v5-c-tree-view--MaxNesting: 10 !default;
|
|
|
436
405
|
display: inline-flex;
|
|
437
406
|
align-items: center;
|
|
438
407
|
justify-content: center;
|
|
439
|
-
padding-block-start: var(--#{$tree-view}__node-toggle
|
|
440
|
-
padding-block-end: var(--#{$tree-view}__node-toggle
|
|
441
|
-
padding-inline-start: var(--#{$tree-view}__node-toggle
|
|
442
|
-
padding-inline-end: var(--#{$tree-view}__node-toggle
|
|
443
|
-
margin-block-start: var(--#{$tree-view}__node-toggle
|
|
444
|
-
margin-block-end: var(--#{$tree-view}__node-toggle
|
|
408
|
+
padding-block-start: var(--#{$tree-view}__node-toggle--PaddingTop);
|
|
409
|
+
padding-block-end: var(--#{$tree-view}__node-toggle--PaddingBottom);
|
|
410
|
+
padding-inline-start: var(--#{$tree-view}__node-toggle--PaddingLeft);
|
|
411
|
+
padding-inline-end: var(--#{$tree-view}__node-toggle--PaddingRight);
|
|
412
|
+
margin-block-start: var(--#{$tree-view}__node-toggle--MarginTop);
|
|
413
|
+
margin-block-end: var(--#{$tree-view}__node-toggle--MarginBottom);
|
|
445
414
|
color: var(--#{$tree-view}__node-toggle--Color);
|
|
446
415
|
background-color: var(--#{$tree-view}__node-toggle--BackgroundColor);
|
|
447
416
|
border: 0;
|
|
@@ -499,6 +468,8 @@ $pf-v5-c-tree-view--MaxNesting: 10 !default;
|
|
|
499
468
|
.#{$tree-view}__content {
|
|
500
469
|
display: flex;
|
|
501
470
|
align-items: center;
|
|
471
|
+
background-color: var(--#{$tree-view}__content--BackgroundColor);
|
|
472
|
+
border-radius: var(--#{$tree-view}__content--BorderRadius);
|
|
502
473
|
}
|
|
503
474
|
|
|
504
475
|
.#{$tree-view}__content:hover,
|
|
@@ -507,7 +478,12 @@ $pf-v5-c-tree-view--MaxNesting: 10 !default;
|
|
|
507
478
|
}
|
|
508
479
|
|
|
509
480
|
.#{$tree-view}__action {
|
|
510
|
-
margin-inline-
|
|
481
|
+
margin-inline-end: var(--#{$tree-view}__action--MarginInlineEnd);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
// TODO - make sure we can use :has(), maybe move pf-m-current modifier to __content
|
|
485
|
+
.#{$tree-view}__content:has(> .#{$tree-view}__node.pf-m-current) {
|
|
486
|
+
--#{$tree-view}__content--BackgroundColor: var(--#{$tree-view}__node--m-current--BackgroundColor);
|
|
511
487
|
}
|
|
512
488
|
|
|
513
489
|
// stylelint-disable no-duplicate-selectors
|
|
@@ -533,10 +509,3 @@ $pf-v5-c-tree-view--MaxNesting: 10 !default;
|
|
|
533
509
|
}
|
|
534
510
|
}
|
|
535
511
|
// stylelint-enable
|
|
536
|
-
|
|
537
|
-
// stylelint-disable no-invalid-position-at-import-rule
|
|
538
|
-
@import "themes/dark/tree-view";
|
|
539
|
-
|
|
540
|
-
@include pf-v5-theme-dark {
|
|
541
|
-
@include pf-v5-theme-dark-tree-view;
|
|
542
|
-
}
|
|
@@ -1960,63 +1960,13 @@ cssPrefix: pf-v5-c-tree-view
|
|
|
1960
1960
|
</button>
|
|
1961
1961
|
|
|
1962
1962
|
<div class="pf-v5-c-tree-view__action">
|
|
1963
|
-
<
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
>
|
|
1971
|
-
<i class="fas fa-ellipsis-v" aria-hidden="true"></i>
|
|
1972
|
-
</button>
|
|
1973
|
-
<ul
|
|
1974
|
-
class="pf-v5-c-dropdown__menu pf-m-align-right"
|
|
1975
|
-
aria-labelledby="dropdown-kebab-button"
|
|
1976
|
-
hidden
|
|
1977
|
-
role="menu"
|
|
1978
|
-
>
|
|
1979
|
-
<li role="none">
|
|
1980
|
-
<a
|
|
1981
|
-
class="pf-v5-c-dropdown__menu-item"
|
|
1982
|
-
role="menuitem"
|
|
1983
|
-
href="#"
|
|
1984
|
-
>Link</a>
|
|
1985
|
-
</li>
|
|
1986
|
-
<li role="none">
|
|
1987
|
-
<button
|
|
1988
|
-
class="pf-v5-c-dropdown__menu-item"
|
|
1989
|
-
role="menuitem"
|
|
1990
|
-
type="button"
|
|
1991
|
-
>Action</button>
|
|
1992
|
-
</li>
|
|
1993
|
-
<li role="none">
|
|
1994
|
-
<a
|
|
1995
|
-
class="pf-v5-c-dropdown__menu-item pf-m-disabled"
|
|
1996
|
-
role="menuitem"
|
|
1997
|
-
href="#"
|
|
1998
|
-
aria-disabled="true"
|
|
1999
|
-
tabindex="-1"
|
|
2000
|
-
>Disabled link</a>
|
|
2001
|
-
</li>
|
|
2002
|
-
<li role="none">
|
|
2003
|
-
<button
|
|
2004
|
-
class="pf-v5-c-dropdown__menu-item"
|
|
2005
|
-
role="menuitem"
|
|
2006
|
-
type="button"
|
|
2007
|
-
disabled
|
|
2008
|
-
>Disabled action</button>
|
|
2009
|
-
</li>
|
|
2010
|
-
<li class="pf-v5-c-divider" role="separator"></li>
|
|
2011
|
-
<li role="none">
|
|
2012
|
-
<a
|
|
2013
|
-
class="pf-v5-c-dropdown__menu-item"
|
|
2014
|
-
role="menuitem"
|
|
2015
|
-
href="#"
|
|
2016
|
-
>Separated link</a>
|
|
2017
|
-
</li>
|
|
2018
|
-
</ul>
|
|
2019
|
-
</div>
|
|
1963
|
+
<button
|
|
1964
|
+
class="pf-v5-c-button pf-m-plain"
|
|
1965
|
+
type="button"
|
|
1966
|
+
aria-label="Actions"
|
|
1967
|
+
>
|
|
1968
|
+
<i class="fas fa-ellipsis-v" aria-hidden="true"></i>
|
|
1969
|
+
</button>
|
|
2020
1970
|
</div>
|
|
2021
1971
|
</div>
|
|
2022
1972
|
</li>
|
package/package.json
CHANGED
|
@@ -336,10 +336,6 @@ html .ws-preview {
|
|
|
336
336
|
--pf-t--global--box-shadow--lg: 0px 8px 24px 0px rgb(0 0 0 / 50%);
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
-
/**
|
|
340
|
-
* Do not edit directly
|
|
341
|
-
* Generated on Tue, 05 Dec 2023 16:11:05 GMT
|
|
342
|
-
*/
|
|
343
339
|
:root {
|
|
344
340
|
--pf-t--color--red--70: #5f0000;
|
|
345
341
|
--pf-t--color--red--60: #a60000;
|
|
@@ -534,10 +530,10 @@ html .ws-preview {
|
|
|
534
530
|
--pf-t--global--border--radius--small: var(--pf-t--global--border--radius--200);
|
|
535
531
|
--pf-t--global--border--radius--tiny: var(--pf-t--global--border--radius--100);
|
|
536
532
|
--pf-t--global--border--radius--sharp: var(--pf-t--global--border--radius--0);
|
|
537
|
-
--pf-t--global--border--width--control--
|
|
533
|
+
--pf-t--global--border--width--control--clicked: var(--pf-t--global--border--width--200);
|
|
538
534
|
--pf-t--global--border--width--control--hover: var(--pf-t--global--border--width--100);
|
|
539
535
|
--pf-t--global--border--width--control--default: var(--pf-t--global--border--width--100);
|
|
540
|
-
--pf-t--global--border--width--button--
|
|
536
|
+
--pf-t--global--border--width--button--clicked: var(--pf-t--global--border--width--200);
|
|
541
537
|
--pf-t--global--border--width--button--hover: var(--pf-t--global--border--width--200);
|
|
542
538
|
--pf-t--global--border--width--button--default: var(--pf-t--global--border--width--100);
|
|
543
539
|
--pf-t--global--border--width--box--status--read: var(--pf-t--global--border--width--100);
|
|
@@ -548,7 +544,7 @@ html .ws-preview {
|
|
|
548
544
|
--pf-t--global--border--width--extra-strong: var(--pf-t--global--border--width--300);
|
|
549
545
|
--pf-t--global--border--width--strong: var(--pf-t--global--border--width--200);
|
|
550
546
|
--pf-t--global--border--width--regular: var(--pf-t--global--border--width--100);
|
|
551
|
-
--pf-t--global--border--width--divider--
|
|
547
|
+
--pf-t--global--border--width--divider--clicked: var(--pf-t--global--border--width--100);
|
|
552
548
|
--pf-t--global--border--width--divider--hover: var(--pf-t--global--border--width--100);
|
|
553
549
|
--pf-t--global--border--width--divider--default: var(--pf-t--global--border--width--100);
|
|
554
550
|
--pf-t--global--icon--color--300: var(--pf-t--color--white);
|
|
@@ -693,7 +689,6 @@ html .ws-preview {
|
|
|
693
689
|
--pf-t--global--border--color--clicked: var(--pf-t--global--color--brand--200);
|
|
694
690
|
--pf-t--global--border--color--hover: var(--pf-t--global--color--brand--100);
|
|
695
691
|
--pf-t--global--border--color--default: var(--pf-t--global--border--color--100);
|
|
696
|
-
--pf-t--global--border--color--disabled: var(--pf-t--global--background--color--disabled--default);
|
|
697
692
|
--pf-t--global--border--color--status--warning--clicked: var(--pf-t--global--color--status--warning--300);
|
|
698
693
|
--pf-t--global--border--color--status--warning--hover: var(--pf-t--global--color--status--warning--300);
|
|
699
694
|
--pf-t--global--border--color--status--warning--default: var(--pf-t--global--color--status--warning--200);
|
|
@@ -705,6 +700,14 @@ html .ws-preview {
|
|
|
705
700
|
--pf-t--global--icon--color--status--warning--clicked: var(--pf-t--global--color--status--warning--300);
|
|
706
701
|
--pf-t--global--icon--color--status--warning--hover: var(--pf-t--global--color--status--warning--300);
|
|
707
702
|
--pf-t--global--icon--color--status--warning--default: var(--pf-t--global--color--status--warning--200);
|
|
703
|
+
--pf-t--global--icon--size--font--4xl: var(--pf-t--global--font--size--4xl);
|
|
704
|
+
--pf-t--global--icon--size--font--3xl: var(--pf-t--global--font--size--3xl);
|
|
705
|
+
--pf-t--global--icon--size--font--2xl: var(--pf-t--global--font--size--2xl);
|
|
706
|
+
--pf-t--global--icon--size--font--xl: var(--pf-t--global--font--size--xl);
|
|
707
|
+
--pf-t--global--icon--size--font--lg: var(--pf-t--global--font--size--lg);
|
|
708
|
+
--pf-t--global--icon--size--font--md: var(--pf-t--global--font--size--md);
|
|
709
|
+
--pf-t--global--icon--size--font--sm: var(--pf-t--global--font--size--sm);
|
|
710
|
+
--pf-t--global--icon--size--font--xs: var(--pf-t--global--font--size--xs);
|
|
708
711
|
--pf-t--global--text--color--nonstatus--on-gray--clicked: var(--pf-t--global--text--color--regular);
|
|
709
712
|
--pf-t--global--text--color--nonstatus--on-gray--hover: var(--pf-t--global--text--color--regular);
|
|
710
713
|
--pf-t--global--text--color--nonstatus--on-gray--default: var(--pf-t--global--text--color--regular);
|
|
@@ -773,10 +776,12 @@ html .ws-preview {
|
|
|
773
776
|
--pf-t--global--color--status--unread--attention--hover: var(--pf-t--global--color--status--danger--hover);
|
|
774
777
|
--pf-t--global--color--status--unread--attention--clicked: var(--pf-t--global--color--status--danger--clicked);
|
|
775
778
|
--pf-t--global--color--status--unread--attention--default: var(--pf-t--global--color--status--danger--default);
|
|
776
|
-
--pf-t--global--color--status--unread--default--
|
|
779
|
+
--pf-t--global--color--status--unread--default--clicked: var(--pf-t--global--color--brand--clicked);
|
|
777
780
|
--pf-t--global--color--status--unread--default--hover: var(--pf-t--global--color--brand--hover);
|
|
778
781
|
--pf-t--global--color--status--unread--default--default: var(--pf-t--global--color--brand--default);
|
|
779
782
|
--pf-t--global--background--color--control--default: var(--pf-t--global--background--color--primary--default);
|
|
783
|
+
--pf-t--global--border--color--alt: var(--pf-t--global--background--color--primary--default);
|
|
784
|
+
--pf-t--global--border--color--disabled: var(--pf-t--global--background--color--disabled--default);
|
|
780
785
|
--pf-t--global--border--color--status--custom--clicked: var(--pf-t--global--color--status--custom--clicked);
|
|
781
786
|
--pf-t--global--border--color--status--custom--hover: var(--pf-t--global--color--status--custom--hover);
|
|
782
787
|
--pf-t--global--border--color--status--custom--default: var(--pf-t--global--color--status--custom--default);
|
|
@@ -861,22 +866,18 @@ html .ws-preview {
|
|
|
861
866
|
--pf-t--global--icon--color--brand--clicked: var(--pf-t--global--color--brand--clicked);
|
|
862
867
|
--pf-t--global--icon--color--brand--hover: var(--pf-t--global--color--brand--hover);
|
|
863
868
|
--pf-t--global--icon--color--brand--default: var(--pf-t--global--color--brand--default);
|
|
864
|
-
--pf-t--global--icon--size--body--lg: var(--pf-t--global--font--size--body--lg);
|
|
865
|
-
--pf-t--global--icon--size--body--default: var(--pf-t--global--font--size--body--default);
|
|
866
|
-
--pf-t--global--icon--size--body--sm: var(--pf-t--global--font--size--body--sm);
|
|
867
|
-
--pf-t--global--icon--size--heading--h6: var(--pf-t--global--font--size--heading--h6);
|
|
868
|
-
--pf-t--global--icon--size--heading--h5: var(--pf-t--global--font--size--heading--h5);
|
|
869
|
-
--pf-t--global--icon--size--heading--h4: var(--pf-t--global--font--size--heading--h4);
|
|
870
|
-
--pf-t--global--icon--size--heading--h3: var(--pf-t--global--font--size--heading--h3);
|
|
871
|
-
--pf-t--global--icon--size--heading--h2: var(--pf-t--global--font--size--heading--h2);
|
|
872
|
-
--pf-t--global--icon--size--heading--h1: var(--pf-t--global--font--size--heading--h1);
|
|
869
|
+
--pf-t--global--icon--size--font--body--lg: var(--pf-t--global--font--size--body--lg);
|
|
870
|
+
--pf-t--global--icon--size--font--body--default: var(--pf-t--global--font--size--body--default);
|
|
871
|
+
--pf-t--global--icon--size--font--body--sm: var(--pf-t--global--font--size--body--sm);
|
|
872
|
+
--pf-t--global--icon--size--font--heading--h6: var(--pf-t--global--font--size--heading--h6);
|
|
873
|
+
--pf-t--global--icon--size--font--heading--h5: var(--pf-t--global--font--size--heading--h5);
|
|
874
|
+
--pf-t--global--icon--size--font--heading--h4: var(--pf-t--global--font--size--heading--h4);
|
|
875
|
+
--pf-t--global--icon--size--font--heading--h3: var(--pf-t--global--font--size--heading--h3);
|
|
876
|
+
--pf-t--global--icon--size--font--heading--h2: var(--pf-t--global--font--size--heading--h2);
|
|
877
|
+
--pf-t--global--icon--size--font--heading--h1: var(--pf-t--global--font--size--heading--h1);
|
|
873
878
|
--pf-t--global--color--status--read--on-secondary: var(--pf-t--global--background--color--control--default);
|
|
874
879
|
}
|
|
875
880
|
|
|
876
|
-
/**
|
|
877
|
-
* Do not edit directly
|
|
878
|
-
* Generated on Tue, 05 Dec 2023 16:11:05 GMT
|
|
879
|
-
*/
|
|
880
881
|
:root:where(.pf-v5-theme-dark) {
|
|
881
882
|
--pf-t--global--background--color--action--plain--default: rgba(0, 0, 0, 0.0000);
|
|
882
883
|
--pf-t--global--dark--background--color--500: rgba(21, 21, 21, 0.8000);
|
|
@@ -1127,6 +1128,8 @@ html .ws-preview {
|
|
|
1127
1128
|
--pf-t--global--text--color--on-brand--clicked: var(--pf-t--global--text--color--inverse);
|
|
1128
1129
|
--pf-t--global--text--color--on-brand--hover: var(--pf-t--global--text--color--inverse);
|
|
1129
1130
|
--pf-t--global--text--color--on-brand--default: var(--pf-t--global--text--color--inverse);
|
|
1131
|
+
--pf-t--global--border--color--alt: var(--pf-t--global--background--color--primary--default);
|
|
1132
|
+
--pf-t--global--border--color--disabled: var(--pf-t--global--background--color--disabled--default);
|
|
1130
1133
|
--pf-t--global--border--color--status--custom--clicked: var(--pf-t--global--color--status--custom--clicked);
|
|
1131
1134
|
--pf-t--global--border--color--status--custom--hover: var(--pf-t--global--color--status--custom--hover);
|
|
1132
1135
|
--pf-t--global--border--color--status--custom--default: var(--pf-t--global--color--status--custom--default);
|
|
@@ -1219,7 +1222,7 @@ html .ws-preview {
|
|
|
1219
1222
|
--pf-t--global--color--status--unread--attention--hover: var(--pf-t--global--color--status--danger--hover);
|
|
1220
1223
|
--pf-t--global--color--status--unread--attention--clicked: var(--pf-t--global--color--status--danger--clicked);
|
|
1221
1224
|
--pf-t--global--color--status--unread--attention--default: var(--pf-t--global--color--status--danger--default);
|
|
1222
|
-
--pf-t--global--color--status--unread--default--
|
|
1225
|
+
--pf-t--global--color--status--unread--default--clicked: var(--pf-t--global--color--brand--clicked);
|
|
1223
1226
|
--pf-t--global--color--status--unread--default--hover: var(--pf-t--global--color--brand--hover);
|
|
1224
1227
|
--pf-t--global--color--status--unread--default--default: var(--pf-t--global--color--brand--default);
|
|
1225
1228
|
--pf-t--global--background--color--floating--clicked: var(--pf-t--global--background--color--action--plain--hover);
|