@patternfly/react-styles 6.3.0-prerelease.1 → 6.3.0-prerelease.2

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.
Files changed (31) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/css/assets/images/icon-help.hbs +3 -0
  3. package/css/assets/images/icon-outlined-star.hbs +3 -0
  4. package/css/assets/images/icon-star.hbs +3 -0
  5. package/css/components/Accordion/accordion.css +71 -1
  6. package/css/components/Alert/alert-group.css +52 -31
  7. package/css/components/Alert/alert-group.d.ts +4 -1
  8. package/css/components/Alert/alert-group.js +4 -1
  9. package/css/components/Alert/alert-group.mjs +4 -1
  10. package/css/components/Button/button.css +27 -0
  11. package/css/components/Button/button.d.ts +3 -0
  12. package/css/components/Button/button.js +3 -0
  13. package/css/components/Button/button.mjs +3 -0
  14. package/css/components/ExpandableSection/expandable-section.css +46 -0
  15. package/css/components/MenuToggle/menu-toggle.css +8 -4
  16. package/css/components/Skeleton/skeleton.css +22 -2
  17. package/css/components/Table/table.css +33 -0
  18. package/css/components/Timestamp/timestamp.css +4 -0
  19. package/css/components/Timestamp/timestamp.d.ts +2 -1
  20. package/css/components/Timestamp/timestamp.js +2 -1
  21. package/css/components/Timestamp/timestamp.mjs +2 -1
  22. package/css/components/TreeView/tree-view.css +33 -0
  23. package/css/components/TreeView/tree-view.d.ts +1 -0
  24. package/css/components/TreeView/tree-view.js +1 -0
  25. package/css/components/TreeView/tree-view.mjs +1 -0
  26. package/css/components/Truncate/truncate.css +1 -0
  27. package/css/components/_index.css +297 -38
  28. package/css/components/_index.d.ts +7 -0
  29. package/css/components/_index.js +7 -0
  30. package/css/components/_index.mjs +7 -0
  31. package/package.json +3 -3
@@ -74,6 +74,17 @@
74
74
  --pf-v6-c-table__action--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
75
75
  --pf-v6-c-table__action--PaddingInlineStart: var(--pf-t--global--spacer--sm);
76
76
  --pf-v6-c-table__action--PaddingInlineEnd: var(--pf-t--global--spacer--sm);
77
+ --pf-v6-c-table__expandable-row--TransitionDuration--expand--slide: 0s;
78
+ --pf-v6-c-table__expandable-row--TransitionDuration--expand--fade: var(--pf-t--global--motion--duration--fade--default);
79
+ --pf-v6-c-table__expandable-row--TransitionDuration--collapse--slide: 0s;
80
+ --pf-v6-c-table__expandable-row--TransitionDuration--collapse--fade: var(--pf-t--global--motion--duration--fade--short);
81
+ --pf-v6-c-table__expandable-row--TransitionDuration--slide: var(--pf-v6-c-table__expandable-row--TransitionDuration--collapse--slide);
82
+ --pf-v6-c-table__expandable-row--TransitionDuration--fade: var(--pf-v6-c-table__expandable-row--TransitionDuration--collapse--fade);
83
+ --pf-v6-c-table__expandable-row--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default);
84
+ --pf-v6-c-table__expandable-row--Opacity: 0;
85
+ --pf-v6-c-table__tbody--m-expanded__expandable-row--Opacity: 1;
86
+ --pf-v6-c-table__expandable-row--TranslateY: 0;
87
+ --pf-v6-c-table__tbody--m-expanded__expandable-row--TranslateY: 0;
77
88
  --pf-v6-c-table__expandable-row-content--PaddingBlockStart: var(--pf-t--global--spacer--md);
78
89
  --pf-v6-c-table__expandable-row-content--PaddingBlockEnd: var(--pf-t--global--spacer--md);
79
90
  --pf-v6-c-table__expandable-row-content--PaddingInlineStart: var(--pf-t--global--spacer--md);
@@ -134,6 +145,13 @@
134
145
  --pf-v6-c-table--m-sticky-header--ZIndex: calc(var(--pf-t--global--z-index--xs) + 1);
135
146
  --pf-v6-c-table--m-sticky-header--border--ZIndex: calc(var(--pf-t--global--z-index--xs) + 2);
136
147
  }
148
+ @media screen and (prefers-reduced-motion: no-preference) {
149
+ .pf-v6-c-table {
150
+ --pf-v6-c-table__expandable-row--TransitionDuration--expand--slide: var(--pf-t--global--motion--duration--fade--default);
151
+ --pf-v6-c-table__expandable-row--TransitionDuration--collapse--slide: var(--pf-t--global--motion--duration--fade--short);
152
+ --pf-v6-c-table__expandable-row--TranslateY: -.5rem;
153
+ }
154
+ }
137
155
 
138
156
  .pf-v6-c-table {
139
157
  width: 100%;
@@ -702,6 +720,12 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
702
720
  .pf-v6-c-table__expandable-row {
703
721
  position: relative;
704
722
  border-block-end: 0 solid transparent;
723
+ opacity: var(--pf-v6-c-table__expandable-row--Opacity);
724
+ transition-timing-function: var(--pf-v6-c-table__expandable-row--TransitionTimingFunction);
725
+ transition-duration: var(--pf-v6-c-table__expandable-row--TransitionDuration--fade), var(--pf-v6-c-table__expandable-row--TransitionDuration--slide), var(--pf-v6-c-table__expandable-row--TransitionDuration--fade);
726
+ transition-property: opacity, translate, display;
727
+ transition-behavior: allow-discrete;
728
+ translate: 0 var(--pf-v6-c-table__expandable-row--TranslateY);
705
729
  }
706
730
  :not(.pf-v6-c-table__control-row) ~ .pf-v6-c-table__expandable-row > .pf-v6-c-table__th,
707
731
  :not(.pf-v6-c-table__control-row) ~ .pf-v6-c-table__expandable-row > .pf-v6-c-table__td {
@@ -730,6 +754,15 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
730
754
  .pf-v6-c-table__expandable-row.pf-m-expanded {
731
755
  border-block-end-color: var(--pf-v6-c-table__expandable-row--m-expanded--BorderBlockEndColor);
732
756
  border-block-end-width: var(--pf-v6-c-table--border-width--base);
757
+ opacity: var(--pf-v6-c-table__tbody--m-expanded__expandable-row--Opacity);
758
+ transition-duration: var(--pf-v6-c-table__expandable-row--TransitionDuration--expand--fade), var(--pf-v6-c-table__expandable-row--TransitionDuration--expand--slide), var(--pf-v6-c-table__expandable-row--TransitionDuration--expand--fade);
759
+ translate: 0 var(--pf-v6-c-table__tbody--m-expanded__expandable-row--TranslateY);
760
+ }
761
+ @starting-style {
762
+ .pf-v6-c-table__expandable-row.pf-m-expanded {
763
+ opacity: var(--pf-v6-c-table__expandable-row--Opacity);
764
+ translate: 0 var(--pf-v6-c-table__expandable-row--TranslateY);
765
+ }
733
766
  }
734
767
  .pf-v6-c-table__expandable-row:not(.pf-m-expanded) {
735
768
  display: none;
@@ -28,4 +28,8 @@
28
28
  --pf-v6-c-timestamp--Color: var(--pf-v6-c-timestamp--m-help-text--hover--Color);
29
29
  --pf-v6-c-timestamp--m-help-text--TextDecorationLine: var(--pf-v6-c-timestamp--m-help-text--hover--TextDecorationLine);
30
30
  --pf-v6-c-timestamp--m-help-text--TextDecorationStyle: var(--pf-v6-c-timestamp--m-help-text--hover--TextDecorationStyle);
31
+ }
32
+
33
+ .pf-v6-c-timestamp__text {
34
+ text-decoration: inherit;
31
35
  }
@@ -3,6 +3,7 @@ declare const _default: {
3
3
  "modifiers": {
4
4
  "helpText": "pf-m-help-text"
5
5
  },
6
- "timestamp": "pf-v6-c-timestamp"
6
+ "timestamp": "pf-v6-c-timestamp",
7
+ "timestampText": "pf-v6-c-timestamp__text"
7
8
  };
8
9
  export default _default;
@@ -5,5 +5,6 @@ exports.default = {
5
5
  "modifiers": {
6
6
  "helpText": "pf-m-help-text"
7
7
  },
8
- "timestamp": "pf-v6-c-timestamp"
8
+ "timestamp": "pf-v6-c-timestamp",
9
+ "timestampText": "pf-v6-c-timestamp__text"
9
10
  };
@@ -3,5 +3,6 @@ export default {
3
3
  "modifiers": {
4
4
  "helpText": "pf-m-help-text"
5
5
  },
6
- "timestamp": "pf-v6-c-timestamp"
6
+ "timestamp": "pf-v6-c-timestamp",
7
+ "timestampText": "pf-v6-c-timestamp__text"
7
8
  };
@@ -14,6 +14,17 @@
14
14
  --pf-v6-c-tree-view__node-container--Display: contents;
15
15
  --pf-v6-c-tree-view__node-content--RowGap: var(--pf-t--global--spacer--sm);
16
16
  --pf-v6-c-tree-view__node-content--Overflow: visible;
17
+ --pf-v6-c-tree-view__list--TransitionDuration--expand--slide: 0s;
18
+ --pf-v6-c-tree-view__list--TransitionDuration--expand--fade: var(--pf-t--global--motion--duration--fade--default);
19
+ --pf-v6-c-tree-view__list--TransitionDuration--collapse--slide: 0s;
20
+ --pf-v6-c-tree-view__list--TransitionDuration--collapse--fade: var(--pf-t--global--motion--duration--fade--short);
21
+ --pf-v6-c-tree-view__list--TransitionDuration--slide: var(--pf-v6-c-tree-view__list--TransitionDuration--collapse--slide);
22
+ --pf-v6-c-tree-view__list--TransitionDuration--fade: var(--pf-v6-c-tree-view__list--TransitionDuration--collapse--fade);
23
+ --pf-v6-c-tree-view__list--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default);
24
+ --pf-v6-c-tree-view__list--Opacity: 0;
25
+ --pf-v6-c-tree-view--m-expanded__list--Opacity: 1;
26
+ --pf-v6-c-tree-view__list--TranslateY: 0;
27
+ --pf-v6-c-tree-view--m-expanded__list--TranslateY: 0;
17
28
  --pf-v6-c-tree-view__list-item__list-item__node-toggle--InsetBlockStart: var(--pf-v6-c-tree-view__node--PaddingBlockStart);
18
29
  --pf-v6-c-tree-view__list-item__list-item__node-toggle--InsetInlineStart: var(--pf-v6-c-tree-view__node--PaddingInlineStart);
19
30
  --pf-v6-c-tree-view__list-item__list-item__node-toggle--TranslateX: -100%;
@@ -29,6 +40,8 @@
29
40
  --pf-v6-c-tree-view__node-toggle--PaddingInlineStart: var(--pf-t--global--spacer--md);
30
41
  --pf-v6-c-tree-view__node-toggle--MarginBlockStart: calc(var(--pf-v6-c-tree-view__node-toggle--PaddingBlockStart) * -1);
31
42
  --pf-v6-c-tree-view__node-toggle--MarginBlockEnd: calc(var(--pf-v6-c-tree-view__node-toggle--PaddingBlockStart) * -1);
43
+ --pf-v6-c-tree-view__node-toggle-icon--TransitionDuration: var(--pf-t--global--motion--duration--icon--default);
44
+ --pf-v6-c-tree-view__node-toggle-icon--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default);
32
45
  --pf-v6-c-tree-view__node-check--MarginInlineEnd: var(--pf-t--global--spacer--sm);
33
46
  --pf-v6-c-tree-view__node-count--MarginInlineStart: var(--pf-t--global--spacer--sm);
34
47
  --pf-v6-c-tree-view__search--PaddingBlockStart: var(--pf-t--global--spacer--sm);
@@ -104,6 +117,13 @@
104
117
  --pf-v6-c-tree-view--m-compact--m-no-background__node--nested--PaddingBlockEnd: 0;
105
118
  --pf-v6-c-tree-view--m-compact--m-no-background__node--before--InsetBlockStart: calc(var(--pf-v6-c-tree-view--m-compact__node-container--nested--PaddingBlockStart) + var(--pf-v6-c-tree-view--m-compact__node--nested--PaddingBlockStart) + 0.25rem);
106
119
  }
120
+ @media screen and (prefers-reduced-motion: no-preference) {
121
+ .pf-v6-c-tree-view {
122
+ --pf-v6-c-tree-view__list--TransitionDuration--expand--slide: var(--pf-t--global--motion--duration--fade--default);
123
+ --pf-v6-c-tree-view__list--TransitionDuration--collapse--slide: var(--pf-t--global--motion--duration--fade--short);
124
+ --pf-v6-c-tree-view__list--TranslateY: -.5rem;
125
+ }
126
+ }
107
127
 
108
128
  .pf-v6-c-tree-view.pf-m-compact .pf-v6-c-tree-view__list-item, .pf-v6-c-tree-view.pf-m-guides .pf-v6-c-tree-view__list-item {
109
129
  position: relative;
@@ -219,12 +239,20 @@
219
239
  display: inline-block;
220
240
  min-width: var(--pf-v6-c-tree-view__node-toggle-icon--MinWidth);
221
241
  text-align: center;
242
+ transition: transform var(--pf-v6-c-tree-view__node-toggle-icon--TransitionDuration) var(--pf-v6-c-tree-view__node-toggle-icon--TransitionTimingFunction);
222
243
  transform: rotate(var(--pf-v6-c-tree-view__node-toggle-icon--Rotate));
223
244
  }
224
245
  :where(.pf-v6-m-dir-rtl, [dir=rtl]) .pf-v6-c-tree-view__node-toggle-icon {
225
246
  scale: -1 1;
226
247
  }
227
248
 
249
+ .pf-v6-c-tree-view__list-item .pf-v6-c-tree-view__list {
250
+ opacity: var(--pf-v6-c-tree-view__list--Opacity);
251
+ transition-timing-function: var(--pf-v6-c-tree-view__list--TransitionTimingFunction);
252
+ transition-duration: var(--pf-v6-c-tree-view__list--TransitionDuration--fade), var(--pf-v6-c-tree-view__list--TransitionDuration--slide);
253
+ transition-property: opacity, translate;
254
+ translate: 0 var(--pf-v6-c-tree-view__list--TranslateY);
255
+ }
228
256
  .pf-v6-c-tree-view__list-item .pf-v6-c-tree-view__list-item {
229
257
  --pf-v6-c-tree-view__node-toggle-icon--Rotate: var(--pf-v6-c-tree-view__node-toggle-icon--base--Rotate);
230
258
  --pf-v6-c-tree-view__node-toggle--Color: var(--pf-v6-c-tree-view__node-toggle--Color--base);
@@ -233,6 +261,11 @@
233
261
  --pf-v6-c-tree-view__node-toggle--Color: var(--pf-v6-c-tree-view__list-item--m-expanded__node-toggle--Color);
234
262
  --pf-v6-c-tree-view__node-toggle-icon--Rotate: var(--pf-v6-c-tree-view__list-item--m-expanded__node-toggle-icon--Rotate);
235
263
  }
264
+ .pf-v6-c-tree-view__list-item.pf-m-expanded > .pf-v6-c-tree-view__list {
265
+ opacity: var(--pf-v6-c-tree-view--m-expanded__list--Opacity);
266
+ transition-duration: var(--pf-v6-c-tree-view__list--TransitionDuration--expand--fade), var(--pf-v6-c-tree-view__list--TransitionDuration--expand--slide);
267
+ translate: 0 var(--pf-v6-c-tree-view--m-expanded__list--TranslateY);
268
+ }
236
269
 
237
270
  .pf-v6-c-tree-view__node,
238
271
  .pf-v6-c-tree-view__node-container {
@@ -12,6 +12,7 @@ declare const _default: {
12
12
  "treeView": "pf-v6-c-tree-view",
13
13
  "treeViewAction": "pf-v6-c-tree-view__action",
14
14
  "treeViewContent": "pf-v6-c-tree-view__content",
15
+ "treeViewList": "pf-v6-c-tree-view__list",
15
16
  "treeViewListItem": "pf-v6-c-tree-view__list-item",
16
17
  "treeViewNode": "pf-v6-c-tree-view__node",
17
18
  "treeViewNodeCheck": "pf-v6-c-tree-view__node-check",
@@ -14,6 +14,7 @@ exports.default = {
14
14
  "treeView": "pf-v6-c-tree-view",
15
15
  "treeViewAction": "pf-v6-c-tree-view__action",
16
16
  "treeViewContent": "pf-v6-c-tree-view__content",
17
+ "treeViewList": "pf-v6-c-tree-view__list",
17
18
  "treeViewListItem": "pf-v6-c-tree-view__list-item",
18
19
  "treeViewNode": "pf-v6-c-tree-view__node",
19
20
  "treeViewNodeCheck": "pf-v6-c-tree-view__node-check",
@@ -12,6 +12,7 @@ export default {
12
12
  "treeView": "pf-v6-c-tree-view",
13
13
  "treeViewAction": "pf-v6-c-tree-view__action",
14
14
  "treeViewContent": "pf-v6-c-tree-view__content",
15
+ "treeViewList": "pf-v6-c-tree-view__list",
15
16
  "treeViewListItem": "pf-v6-c-tree-view__list-item",
16
17
  "treeViewNode": "pf-v6-c-tree-view__node",
17
18
  "treeViewNodeCheck": "pf-v6-c-tree-view__node-check",
@@ -8,6 +8,7 @@
8
8
  grid-auto-flow: column;
9
9
  align-items: baseline;
10
10
  min-width: var(--pf-v6-c-truncate--MinWidth);
11
+ text-decoration: inherit;
11
12
  }
12
13
  .pf-v6-c-truncate.pf-m-fixed {
13
14
  display: inline;