@patternfly/patternfly 6.0.0-alpha.34 → 6.0.0-alpha.39

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 (76) hide show
  1. package/CODE_OF_CONDUCT.md +1 -2
  2. package/assets/images/PF-HorizontalLogo-Color.svg +29 -0
  3. package/assets/images/PF-HorizontalLogo-Reverse.svg +28 -0
  4. package/assets/images/PF-IconLogo-color.svg +17 -0
  5. package/components/Backdrop/backdrop.css +6 -2
  6. package/components/Backdrop/backdrop.scss +5 -2
  7. package/components/Banner/banner.css +4 -0
  8. package/components/Banner/banner.scss +5 -0
  9. package/components/Card/card.css +3 -0
  10. package/components/Card/card.scss +8 -0
  11. package/components/Divider/divider.css +97 -177
  12. package/components/Divider/divider.scss +60 -79
  13. package/components/Form/form.css +6 -0
  14. package/components/Form/form.scss +4 -1
  15. package/components/Masthead/masthead.css +267 -435
  16. package/components/Masthead/masthead.scss +118 -233
  17. package/components/MenuToggle/menu-toggle.css +1 -0
  18. package/components/MenuToggle/menu-toggle.scss +2 -0
  19. package/components/Popover/popover.css +0 -2
  20. package/components/Popover/popover.scss +2 -2
  21. package/components/SimpleList/simple-list.css +35 -52
  22. package/components/SimpleList/simple-list.scss +41 -51
  23. package/components/Table/table.scss +1 -0
  24. package/components/Tooltip/tooltip.css +0 -2
  25. package/components/Tooltip/tooltip.scss +3 -3
  26. package/components/Truncate/truncate.css +4 -0
  27. package/components/Truncate/truncate.scss +3 -0
  28. package/docs/components/Accordion/examples/Accordion.md +6 -6
  29. package/docs/components/Alert/examples/Alert.md +2 -2
  30. package/docs/components/Brand/examples/Brand.md +9 -33
  31. package/docs/components/Breadcrumb/examples/Breadcrumb.md +1 -1
  32. package/docs/components/Card/examples/Card.md +18 -20
  33. package/docs/components/Check/examples/Check.md +1 -0
  34. package/docs/components/Content/examples/Content.md +5 -5
  35. package/docs/components/Divider/examples/Divider.css +3 -1
  36. package/docs/components/Divider/examples/Divider.md +4 -5
  37. package/docs/components/InlineEdit/examples/InlineEdit.md +3 -1
  38. package/docs/components/Label/examples/Label.md +11 -11
  39. package/docs/components/Masthead/examples/masthead.md +441 -16
  40. package/docs/components/Nav/examples/Navigation.css +18 -2
  41. package/docs/components/Nav/examples/Navigation.md +1 -1
  42. package/docs/components/Radio/examples/Radio.md +1 -1
  43. package/docs/components/SimpleList/examples/SimpleList.md +3 -3
  44. package/docs/components/Table/examples/Table.md +8 -8
  45. package/docs/components/Truncate/examples/Truncate.css +2 -2
  46. package/docs/demos/AboutModal/examples/AboutModal.md +40 -42
  47. package/docs/demos/Alert/examples/Alert.md +120 -126
  48. package/docs/demos/BackToTop/examples/BackToTop.md +40 -42
  49. package/docs/demos/Banner/examples/Banner.md +79 -80
  50. package/docs/demos/CardView/examples/CardView.md +40 -42
  51. package/docs/demos/ContextSelector/examples/ContextSelector.md +129 -146
  52. package/docs/demos/Dashboard/examples/Dashboard.md +40 -42
  53. package/docs/demos/DataList/examples/DataList.md +160 -279
  54. package/docs/demos/DescriptionList/examples/DescriptionList.md +120 -126
  55. package/docs/demos/Drawer/examples/Drawer.md +200 -210
  56. package/docs/demos/JumpLinks/examples/JumpLinks.md +240 -252
  57. package/docs/demos/Masthead/examples/Masthead.md +143 -224
  58. package/docs/demos/Modal/examples/Modal.md +240 -252
  59. package/docs/demos/Nav/examples/Nav.md +320 -336
  60. package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +200 -210
  61. package/docs/demos/Page/examples/Page.md +360 -378
  62. package/docs/demos/Page/examples/Penta.md +8 -15
  63. package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +280 -294
  64. package/docs/demos/Skeleton/examples/Skeleton.md +40 -42
  65. package/docs/demos/Table/examples/Table.md +617 -647
  66. package/docs/demos/Tabs/examples/Tabs.md +240 -252
  67. package/docs/demos/Toolbar/examples/Toolbar.md +80 -84
  68. package/docs/demos/Wizard/examples/Wizard.md +360 -378
  69. package/docs/layouts/Flex/examples/Flex.md +11 -11
  70. package/package.json +32 -32
  71. package/patternfly-no-globals.css +422 -673
  72. package/patternfly-theme-dark-unversioned.css +422 -673
  73. package/patternfly.css +422 -673
  74. package/patternfly.min.css +1 -1
  75. package/patternfly.min.css.map +1 -1
  76. package/components/SimpleList/themes/dark/simple-list.scss +0 -14
@@ -1,98 +1,80 @@
1
1
  // @debug $divider; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
2
- $pf-v5-c-divider--breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "xl", "2xl");
2
+ $pf-v5-c-divider--breakpoint-map: build-breakpoint-map("sm", "md", "lg", "xl", "2xl");
3
3
  $pf-v5-c-divider--spacer-map: build-spacer-map("none", "xs", "sm", "md", "lg", "xl", "2xl", "3xl");
4
4
 
5
+ // * Divider horizontal
5
6
  @mixin pf-v5-c-divider--m-horizontal {
6
- --#{$divider}--Display: var(--#{$divider}--m-horizontal--Display);
7
- --#{$divider}--FlexDirection: var(--#{$divider}--m-horizontal--FlexDirection);
8
- --#{$divider}--after--Width: var(--#{$divider}--m-horizontal--after--Width);
9
- --#{$divider}--after--Height: var(--#{$divider}--m-horizontal--after--Height);
10
-
11
- width: 100%; // update to var breaking change
12
- height: auto; // update to var breaking change
13
-
14
- &::after {
15
- flex-basis:
16
- calc(
17
- var(--#{$divider}--after--FlexBasis) - calc(var(--#{$divider}--after--Inset) * 2)
18
- ); // update at breaking change
19
- }
7
+ flex-direction: row;
8
+ width: 100%;
9
+ height: var(--#{$divider}--Size); // apply size to height in horizontal orientation
20
10
  }
21
11
 
12
+ // * Divider vertical
22
13
  @mixin pf-v5-c-divider--m-vertical {
23
- --#{$divider}--Display: var(--#{$divider}--m-vertical--Display);
24
- --#{$divider}--FlexDirection: var(--#{$divider}--m-vertical--FlexDirection);
25
- --#{$divider}--after--Width: var(--#{$divider}--m-vertical--after--Width);
26
- --#{$divider}--after--Height: var(--#{$divider}--m-vertical--after--Height);
14
+ flex-direction: column;
15
+ width: var(--#{$divider}--Size); // apply size to width in vertical orientation
16
+ height: 100%;
17
+ }
27
18
 
28
- width: auto; // update to var breaking change
29
- height: inherit; // update to var at breaking change
19
+ :root,
20
+ :where(.#{$divider}) {
21
+ // * Divider
22
+ --#{$divider}--Display: flex;
23
+ --#{$divider}--Color: var(--pf-t--global--border--color--default);
24
+ --#{$divider}--Size: var(--pf-t--global--border--width--divider--default);
30
25
 
31
- &::after {
32
- flex-basis:
33
- calc(
34
- var(--#{$divider}--m-vertical--after--FlexBasis) - var(--#{$divider}--after--Inset)
35
- ); // update at breaking change
36
- }
26
+ // * Divider before
27
+ --#{$divider}--before--FlexBasis: 100%;
37
28
  }
38
29
 
30
+ // - Divider
39
31
  .#{$divider} {
40
- // Base
41
- --#{$divider}--BorderWidth--base: var(--#{$pf-global}--BorderWidth--sm);
42
- --#{$divider}--BorderColor--base: var(--#{$divider}--BackgroundColor); // update at breaking change
43
- --#{$divider}--Height: var(--#{$divider}--BorderWidth--base); // remove at breaking change
44
- --#{$divider}--BackgroundColor: var(--#{$pf-global}--BorderColor--100); // remove at breaking change
45
- --#{$divider}--after--BackgroundColor: var(--#{$divider}--BorderColor--base); // remove at breaking change
46
-
47
- // Borders
48
- --#{$divider}--after--FlexBasis: 100%;
49
- --#{$divider}--after--Inset: 0%;
50
-
51
- // Vertical
52
- --#{$divider}--m-vertical--after--FlexBasis: 100%; // remove at breaking change
53
-
54
- // Horizontal mixin
55
- --#{$divider}--m-horizontal--Display: flex;
56
- --#{$divider}--m-horizontal--FlexDirection: row;
57
- --#{$divider}--m-horizontal--after--Height: var(--#{$divider}--Height); // update at breaking change
58
- --#{$divider}--m-horizontal--after--Width: auto;
59
-
60
- // Vertical mixin
61
- --#{$divider}--m-vertical--Display: inline-flex;
62
- --#{$divider}--m-vertical--FlexDirection: column;
63
- --#{$divider}--m-vertical--after--Height: auto;
64
- --#{$divider}--m-vertical--after--Width: var(--#{$divider}--BorderWidth--base); // remove at breaking change
65
-
66
- // Vertical
32
+ @include pf-v5-c-divider--m-horizontal; // default, set to orientation to horizontal
67
33
  @include pf-v5-hidden-visible(var(--#{$divider}--Display));
68
- @include pf-v5-c-divider--m-horizontal; // set to default to horizontal
69
34
 
70
- flex-direction: var(--#{$divider}--FlexDirection);
71
- flex-shrink: 0;
72
- align-items: center;
73
- align-self: stretch;
35
+ align-items: stretch;
74
36
  justify-content: center;
75
37
  border: 0; // removes the default border styling on an hr
76
38
 
77
- &::after {
78
- align-self: stretch;
79
- justify-self: center;
80
- width: var(--#{$divider}--after--Width);
81
- height: var(--#{$divider}--after--Height);
39
+ // - Divider before
40
+ &::before {
41
+ flex-basis: var(--#{$divider}--before--FlexBasis);
82
42
  content: "";
83
- background-color: var(--#{$divider}--after--BackgroundColor);
43
+ background-color: var(--#{$divider}--Color);
84
44
  }
85
45
 
86
- // stylelint-disable max-nesting-depth
46
+ // - Divider horizontal
47
+ &.pf-m-horizontal {
48
+ @include pf-v5-c-divider--m-horizontal;
49
+ }
50
+
51
+ // - Divider vertical
52
+ &.pf-m-vertical {
53
+ @include pf-v5-c-divider--m-vertical;
54
+ }
87
55
 
56
+ // - Divider spacer insets
57
+ @each $spacer, $spacer-value in $pf-v5-c-divider--spacer-map {
58
+ @if $spacer == none {
59
+ $spacer-value: 0%;
60
+ }
61
+
62
+ &.pf-m-inset-#{$spacer} {
63
+ --#{$divider}--before--FlexBasis: calc(100% - #{$spacer-value} * 2);
64
+ }
65
+ }
66
+ }
67
+
68
+ // TODO: move this loop to separate file for resize observer implementation
69
+ // TODO: make responsive values opt in/out
70
+ // stylelint-disable
71
+ .#{$divider} {
88
72
  @each $breakpoint, $breakpoint-value in $pf-v5-c-divider--breakpoint-map {
89
- $breakpoint-name: if($breakpoint != "base", -on-#{$breakpoint}, "");
73
+ $breakpoint-name: '-on-' + #{$breakpoint};
90
74
 
91
- @if $breakpoint != "base" {
92
- @include pf-v5-apply-breakpoint($breakpoint) {
93
- &.pf-m-horizontal#{$breakpoint-name} {
94
- @include pf-v5-c-divider--m-horizontal;
95
- }
75
+ @include pf-v5-apply-breakpoint($breakpoint) {
76
+ &.pf-m-horizontal#{$breakpoint-name} {
77
+ @include pf-v5-c-divider--m-horizontal;
96
78
  }
97
79
  }
98
80
 
@@ -104,16 +86,15 @@ $pf-v5-c-divider--spacer-map: build-spacer-map("none", "xs", "sm", "md", "lg", "
104
86
 
105
87
  @include pf-v5-apply-breakpoint($breakpoint) {
106
88
  @each $spacer, $spacer-value in $pf-v5-c-divider--spacer-map {
107
- @if $spacer == none {
108
- $spacer-value: 0%;
109
- }
110
-
111
89
  &.pf-m-inset-#{$spacer}#{$breakpoint-name} {
112
- --#{$divider}--after--Inset: #{$spacer-value};
90
+ @if $spacer == none {
91
+ --#{$divider}--before--FlexBasis: 100%;
92
+ } @else {
93
+ --#{$divider}--before--FlexBasis: calc(100% - #{$spacer-value} * 2);
94
+ }
113
95
  }
114
96
  }
115
97
  }
116
98
  }
117
-
118
- // stylelint-enable
119
99
  }
100
+ // stylelint-enable
@@ -247,6 +247,9 @@
247
247
  max-width: var(--pf-v5-c-form--m-limit-width--MaxWidth);
248
248
  }
249
249
 
250
+ .pf-v5-c-form__group {
251
+ min-width: 0;
252
+ }
250
253
  .pf-v5-c-form__group.pf-m-action {
251
254
  margin-block-start: var(--pf-v5-c-form__group--m-action--MarginTop);
252
255
  overflow: hidden;
@@ -335,6 +338,9 @@
335
338
  --pf-v5-c-form__group-label-help--Color: var(--pf-v5-c-form__group-label-help--focus--Color);
336
339
  }
337
340
 
341
+ .pf-v5-c-form__group-control {
342
+ min-width: 0;
343
+ }
338
344
  .pf-v5-c-form__group-control.pf-m-inline {
339
345
  display: flex;
340
346
  flex-flow: row wrap;
@@ -221,6 +221,8 @@ $pf-v5-c-form--m-horizontal--breakpoint-map: build-breakpoint-map("sm", "md", "l
221
221
  }
222
222
 
223
223
  .#{$form}__group {
224
+ min-width: 0;
225
+
224
226
  &.pf-m-action {
225
227
  margin-block-start: var(--#{$form}__group--m-action--MarginTop);
226
228
  overflow: hidden; // keeps the negative bottom margin bottom on .#{$form}__actions from triggering overflow
@@ -320,8 +322,9 @@ $pf-v5-c-form--m-horizontal--breakpoint-map: build-breakpoint-map("sm", "md", "l
320
322
  }
321
323
  }
322
324
 
323
-
324
325
  .#{$form}__group-control {
326
+ min-width: 0;
327
+
325
328
  &.pf-m-inline {
326
329
  display: flex;
327
330
  flex-flow: row wrap;