@patternfly/patternfly 6.5.0-prerelease.32 → 6.5.0-prerelease.34

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 (77) hide show
  1. package/assets/fontawesome/_variables.scss +2 -1
  2. package/base/tokens/tokens-local.scss +1 -1
  3. package/components/AboutModalBox/about-modal-box.css +36 -26
  4. package/components/Accordion/accordion.css +16 -13
  5. package/components/Alert/alert.css +5 -4
  6. package/components/Avatar/avatar.css +12 -4
  7. package/components/BackgroundImage/background-image.css +6 -3
  8. package/components/Banner/banner.css +8 -6
  9. package/components/Brand/brand.css +3 -1
  10. package/components/Breadcrumb/breadcrumb.css +4 -3
  11. package/components/Button/button.css +6 -6
  12. package/components/CalendarMonth/calendar-month.css +4 -3
  13. package/components/Card/card.css +7 -6
  14. package/components/ClipboardCopy/clipboard-copy.css +4 -3
  15. package/components/CodeEditor/code-editor.css +1 -1
  16. package/components/CodeEditor/code-editor.scss +1 -1
  17. package/components/Compass/compass.css +6 -2
  18. package/components/DataList/data-list.css +28 -21
  19. package/components/DescriptionList/description-list-order.scss +5 -1
  20. package/components/DescriptionList/description-list.css +7 -5
  21. package/components/DescriptionList/description-list.scss +5 -1
  22. package/components/Divider/divider.css +7 -5
  23. package/components/Drawer/drawer.css +38 -28
  24. package/components/Drawer/drawer.scss +12 -4
  25. package/components/DualListSelector/dual-list-selector.css +17 -11
  26. package/components/ExpandableSection/expandable-section.css +16 -14
  27. package/components/ExpandableSection/expandable-section.scss +1 -1
  28. package/components/Form/form.css +1 -1
  29. package/components/Form/form.scss +1 -1
  30. package/components/FormControl/form-control.css +1 -1
  31. package/components/FormControl/form-control.scss +1 -1
  32. package/components/JumpLinks/jump-links.css +4 -3
  33. package/components/JumpLinks/jump-links.scss +5 -1
  34. package/components/Label/label-group.css +2 -2
  35. package/components/Label/label-group.scss +2 -2
  36. package/components/Label/label.css +4 -3
  37. package/components/Login/login.css +51 -37
  38. package/components/Masthead/masthead.css +32 -18
  39. package/components/Masthead/masthead.scss +8 -2
  40. package/components/Menu/menu.css +23 -14
  41. package/components/ModalBox/modal-box.css +9 -7
  42. package/components/ModalBox/modal-box.scss +2 -2
  43. package/components/Nav/nav.css +17 -9
  44. package/components/Nav/nav.scss +5 -0
  45. package/components/NotificationDrawer/notification-drawer.css +6 -6
  46. package/components/Page/page.css +35 -29
  47. package/components/Page/page.scss +17 -5
  48. package/components/Pagination/pagination.scss +5 -1
  49. package/components/ProgressStepper/progress-stepper.scss +5 -1
  50. package/components/Sidebar/sidebar.css +1 -1
  51. package/components/Sidebar/sidebar.scss +7 -3
  52. package/components/Skeleton/skeleton.css +16 -15
  53. package/components/Slider/slider.css +32 -18
  54. package/components/Switch/switch.css +3 -1
  55. package/components/Table/table-tree-view.css +4 -2
  56. package/components/Table/table.css +31 -27
  57. package/components/Tabs/tabs.css +17 -15
  58. package/components/Tabs/tabs.scss +12 -4
  59. package/components/Toolbar/toolbar.css +14 -8
  60. package/components/Toolbar/toolbar.scss +5 -1
  61. package/components/TreeView/tree-view.css +44 -13
  62. package/components/TreeView/tree-view.scss +31 -0
  63. package/components/Wizard/wizard.css +20 -16
  64. package/components/Wizard/wizard.scss +3 -3
  65. package/components/_index.css +613 -426
  66. package/docs/components/TreeView/examples/TreeView.md +38 -26
  67. package/layouts/Flex/flex.scss +83 -19
  68. package/layouts/Gallery/gallery.css +6 -2
  69. package/layouts/_index.css +6 -2
  70. package/package.json +4 -2
  71. package/patternfly-charts.css +3 -3
  72. package/patternfly-no-globals.css +604 -413
  73. package/patternfly.css +604 -413
  74. package/patternfly.min.css +1 -1
  75. package/patternfly.min.css.map +1 -1
  76. package/sass-utilities/functions.scss +32 -25
  77. package/sass-utilities/mixins.scss +36 -20
@@ -3,10 +3,13 @@
3
3
  @use '../sass-utilities/scss-variables' as *;
4
4
  @use '../sass-utilities/init' as *;
5
5
  @use 'sass:math';
6
+ @use 'sass:meta';
7
+ @use 'sass:list';
8
+ @use 'sass:map';
6
9
 
7
10
  // Transform px to rems
8
11
  @function pf-strip-unit($num) {
9
- @if type-of($num) == 'number' and not unitless($num) {
12
+ @if meta.type-of($num) == 'number' and not math.is-unitless($num) {
10
13
  @return math.div($num, ($num * 0 + 1));
11
14
  }
12
15
 
@@ -29,16 +32,20 @@
29
32
 
30
33
  // Return (width) breakpoint value if it exists
31
34
  @function pf-breakpoint-value($breakpoint, $breakpoint-map: $pf-v6-global--breakpoint-name-map) {
32
- $breakpoint-value: if(map-has-key($breakpoint-map, #{$breakpoint}), map-get($breakpoint-map, #{$breakpoint}), false);
33
-
34
- @return #{$breakpoint-value};
35
+ @if map.has-key($breakpoint-map, #{$breakpoint}) {
36
+ @return #{map.get($breakpoint-map, #{$breakpoint})};
37
+ } @else {
38
+ @return false;
39
+ }
35
40
  }
36
41
 
37
42
  // Return height breakpoint value if it exists
38
43
  @function pf-height-breakpoint-value($height-breakpoint, $height-breakpoint-map: $pf-v6-global--height-breakpoint-name-map) {
39
- $height-breakpoint-value: if(map-has-key($height-breakpoint-map, #{$height-breakpoint}), map-get($height-breakpoint-map, #{$height-breakpoint}), false);
40
-
41
- @return #{$height-breakpoint-value};
44
+ @if map.has-key($height-breakpoint-map, #{$height-breakpoint}) {
45
+ @return #{map.get($height-breakpoint-map, #{$height-breakpoint})};
46
+ } @else {
47
+ @return false;
48
+ }
42
49
  }
43
50
 
44
51
  // Build breakpoint map
@@ -46,17 +53,17 @@
46
53
  @function build-breakpoint-map($map-items...) {
47
54
  $map: ();
48
55
 
49
- @if length($map-items) == 0 {
56
+ @if list.length($map-items) == 0 {
50
57
  $map: ("base": null);
51
- $map: map-merge($map, $pf-v6-global--breakpoint-name-map);
58
+ $map: map.merge($map, $pf-v6-global--breakpoint-name-map);
52
59
  } @else {
53
60
  @each $breakpoint in $map-items {
54
- @if not map-has-key($pf-v6-global--breakpoint-name-map, $breakpoint) and $breakpoint != "base" {
55
- $map: map-merge($map, ("invalid breakpoint #{$breakpoint}": null));
61
+ @if not map.has-key($pf-v6-global--breakpoint-name-map, $breakpoint) and $breakpoint != "base" {
62
+ $map: map.merge($map, ("invalid breakpoint #{$breakpoint}": null));
56
63
  } @else if $breakpoint == "base" {
57
- $map: map-merge($map, ($breakpoint: null));
64
+ $map: map.merge($map, ($breakpoint: null));
58
65
  } @else {
59
- $map: map-merge($map, ($breakpoint: map-get($pf-v6-global--breakpoint-name-map, #{$breakpoint})));
66
+ $map: map.merge($map, ($breakpoint: map.get($pf-v6-global--breakpoint-name-map, #{$breakpoint})));
60
67
  }
61
68
  }
62
69
  }
@@ -69,17 +76,17 @@
69
76
  @function build-height-breakpoint-map($map-items...) {
70
77
  $map: ();
71
78
 
72
- @if length($map-items) == 0 {
79
+ @if list.length($map-items) == 0 {
73
80
  $map: ("base": null);
74
- $map: map-merge($map, $pf-v6-global--height-breakpoint-name-map);
81
+ $map: map.merge($map, $pf-v6-global--height-breakpoint-name-map);
75
82
  } @else {
76
83
  @each $breakpoint in $map-items {
77
- @if not map-has-key($pf-v6-global--height-breakpoint-name-map, $breakpoint) and $breakpoint != "base" {
78
- $map: map-merge($map, ("invalid breakpoint #{$breakpoint}": null));
84
+ @if not map.has-key($pf-v6-global--height-breakpoint-name-map, $breakpoint) and $breakpoint != "base" {
85
+ $map: map.merge($map, ("invalid breakpoint #{$breakpoint}": null));
79
86
  } @else if $breakpoint == "base" {
80
- $map: map-merge($map, ($breakpoint: null));
87
+ $map: map.merge($map, ($breakpoint: null));
81
88
  } @else {
82
- $map: map-merge($map, ($breakpoint: map-get($pf-v6-global--height-breakpoint-name-map, #{$breakpoint})));
89
+ $map: map.merge($map, ($breakpoint: map.get($pf-v6-global--height-breakpoint-name-map, #{$breakpoint})));
83
90
  }
84
91
  }
85
92
  }
@@ -93,17 +100,17 @@
93
100
  @function build-spacer-map($map-items...) {
94
101
  $map: ();
95
102
 
96
- @if length($map-items) == 0 {
103
+ @if list.length($map-items) == 0 {
97
104
  $map: ("none": 0);
98
- $map: map-merge($map, $pf-v6-global--spacer-map);
99
- $map: map-remove($map, "auto", "0");
105
+ $map: map.merge($map, $pf-v6-global--spacer-map);
106
+ $map: map.remove($map, "auto", "0");
100
107
  }
101
108
 
102
109
  @each $spacer in $map-items {
103
110
  @if $spacer == "none" {
104
- $map: map-merge($map, ($spacer: 0));
111
+ $map: map.merge($map, ($spacer: 0));
105
112
  } @else {
106
- $map: map-merge($map, ($spacer: map-get($pf-v6-global--spacer-map, #{$spacer})));
113
+ $map: map.merge($map, ($spacer: map.get($pf-v6-global--spacer-map, #{$spacer})));
107
114
  }
108
115
  }
109
116
 
@@ -116,7 +123,7 @@
116
123
  $new-map: ();
117
124
 
118
125
  @each $size, $value in $map {
119
- $new-map: map-merge($new-map, (map-get($map, $size): --#{$namespace}--#{$size}));
126
+ $new-map: map.merge($new-map, (map.get($map, $size): --#{$namespace}--#{$size}));
120
127
  }
121
128
 
122
129
  @return $new-map;
@@ -2,6 +2,8 @@
2
2
  @use '../sass-utilities/init' as *;
3
3
  @use '../sass-utilities/scss-variables' as *;
4
4
  @use '../sass-utilities/namespaces-components' as *;
5
+ @use 'sass:list';
6
+ @use 'sass:meta';
5
7
 
6
8
  // Media query used to create responsive classes
7
9
  @mixin pf-v6-media-query($point) {
@@ -85,10 +87,10 @@
85
87
  // if $class-name is a map
86
88
 
87
89
  // stylelint-disable
88
- @if type-of($props) == map {
90
+ @if meta.type-of($props) == map {
89
91
  @each $class, $val in $props {
90
- $property: nth($val, 1);
91
- $value: #{nth($val, 2)} !important;
92
+ $property: list.nth($val, 1);
93
+ $value: #{list.nth($val, 2)} !important;
92
94
 
93
95
  .#{$pf-prefix}u-#{$class} {
94
96
  #{$property}: #{$value};
@@ -103,8 +105,8 @@
103
105
  @if $direction == 'height' {
104
106
  @include pf-v6-height-media-query($breakpoint) {
105
107
  @each $class, $val in $props {
106
- $property: nth($val, 1);
107
- $value: #{nth($val, 2)} !important;
108
+ $property: list.nth($val, 1);
109
+ $value: #{list.nth($val, 2)} !important;
108
110
 
109
111
  .#{$pf-prefix}u-#{$class}#{$suffix}-height {
110
112
  #{$property}: #{$value};
@@ -115,8 +117,8 @@
115
117
  @else if ($direction == 'width') {
116
118
  @include pf-v6-media-query($breakpoint) {
117
119
  @each $class, $val in $props {
118
- $property: nth($val, 1);
119
- $value: #{nth($val, 2)} !important;
120
+ $property: list.nth($val, 1);
121
+ $value: #{list.nth($val, 2)} !important;
120
122
 
121
123
  .#{$pf-prefix}u-#{$class}#{$suffix} {
122
124
  #{$property}: #{$value};
@@ -127,10 +129,10 @@
127
129
  }
128
130
  }
129
131
  }
130
- @else if type-of($props) == list {
131
- $class: nth($props, 1);
132
- $property: nth($props, 2);
133
- $value: nth($props, 3) !important;
132
+ @else if meta.type-of($props) == list {
133
+ $class: list.nth($props, 1);
134
+ $property: list.nth($props, 2);
135
+ $value: list.nth($props, 3) !important;
134
136
 
135
137
  .#{$pf-prefix}u-#{$class} {
136
138
  #{$property}: #{$value};
@@ -179,10 +181,10 @@
179
181
  @mixin pf-v6-line-clamp($line-clamp-val: 1) {
180
182
  // stylelint-disable
181
183
  display: -webkit-box;
184
+ overflow: hidden;
182
185
  -webkit-box-orient: vertical;
183
186
  -webkit-line-clamp: #{$line-clamp-val};
184
187
  // stylelint-enable
185
- overflow: hidden;
186
188
  }
187
189
 
188
190
  @mixin pf-v6-overflow-hide-scroll {
@@ -305,14 +307,14 @@
305
307
 
306
308
  // Build variable list
307
309
  @if $breakpoint != "base" {
308
- $list: append($list, $css-var + "-on-" + $breakpoint);
310
+ $list: list.append($list, $css-var + "-on-" + $breakpoint);
309
311
  } @else {
310
- $list: append($list, $css-var);
312
+ $list: list.append($list, $css-var);
311
313
  }
312
314
 
313
315
  // Construct variable stack
314
316
  @each $list-item in $list {
315
- @if length($variable-list) == 0 {
317
+ @if list.length($variable-list) == 0 {
316
318
  $variable-list: var(#{$list-item});
317
319
  } @else {
318
320
  $variable-list: var(#{$list-item}, $variable-list);
@@ -340,7 +342,7 @@
340
342
  // Build variable list
341
343
  // stylelint-disable scss/at-if-no-null
342
344
  @if $breakpoint-value {
343
- $list: append($list, $css-var + "-on-" + $breakpoint);
345
+ $list: list.append($list, $css-var + "-on-" + $breakpoint);
344
346
  }
345
347
  // stylelint-enable
346
348
  }
@@ -391,7 +393,11 @@
391
393
  // background: red;
392
394
  // }
393
395
  @mixin pf-v6-rtl($hasWhere: true) {
394
- $sel: if($hasWhere,':where',':is');
396
+ $sel: ':is';
397
+
398
+ @if $hasWhere {
399
+ $sel: ':where';
400
+ }
395
401
 
396
402
  @at-root #{$sel}(.#{$pf-prefix}m-dir-rtl, [dir="rtl"]) #{&} {
397
403
  @content;
@@ -400,7 +406,11 @@
400
406
 
401
407
  // Used to create the LTR selector for LTR specific styles
402
408
  @mixin pf-v6-ltr($hasWhere: true) {
403
- $sel: if($hasWhere,':where',':is');
409
+ $sel: ':is';
410
+
411
+ @if $hasWhere {
412
+ $sel: ':where';
413
+ }
404
414
 
405
415
  @at-root #{$sel}(.#{$pf-prefix}m-dir-ltr, [dir="ltr"]) #{&} {
406
416
  @content;
@@ -439,11 +449,17 @@
439
449
 
440
450
  // Declares a global inverse multiplier var used for returning the inverse of a number. Defined within blocks that reference the global var in calc() functions to conditionally return the default or inverse value of a number.
441
451
  @mixin pf-v6-set-inverse($val: true) {
442
- --#{$pf-global}--inverse--multiplier: #{if($val, -1, 1)};
452
+ @if $val {
453
+ --#{$pf-global}--inverse--multiplier: -1;
454
+ } @else {
455
+ --#{$pf-global}--inverse--multiplier: 1;
456
+ }
443
457
  }
444
458
 
445
459
  @mixin pf-root($selector, $isClass: true) {
446
- $selector: if($isClass, "." + $selector, $selector);
460
+ @if $isClass {
461
+ $selector: "." + $selector;
462
+ }
447
463
  #{$selector} {
448
464
  @content
449
465
  }