@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.
- package/CODE_OF_CONDUCT.md +1 -2
- package/assets/images/PF-HorizontalLogo-Color.svg +29 -0
- package/assets/images/PF-HorizontalLogo-Reverse.svg +28 -0
- package/assets/images/PF-IconLogo-color.svg +17 -0
- package/components/Backdrop/backdrop.css +6 -2
- package/components/Backdrop/backdrop.scss +5 -2
- package/components/Banner/banner.css +4 -0
- package/components/Banner/banner.scss +5 -0
- package/components/Card/card.css +3 -0
- package/components/Card/card.scss +8 -0
- package/components/Divider/divider.css +97 -177
- package/components/Divider/divider.scss +60 -79
- package/components/Form/form.css +6 -0
- package/components/Form/form.scss +4 -1
- package/components/Masthead/masthead.css +267 -435
- package/components/Masthead/masthead.scss +118 -233
- package/components/MenuToggle/menu-toggle.css +1 -0
- package/components/MenuToggle/menu-toggle.scss +2 -0
- package/components/Popover/popover.css +0 -2
- package/components/Popover/popover.scss +2 -2
- package/components/SimpleList/simple-list.css +35 -52
- package/components/SimpleList/simple-list.scss +41 -51
- package/components/Table/table.scss +1 -0
- package/components/Tooltip/tooltip.css +0 -2
- package/components/Tooltip/tooltip.scss +3 -3
- package/components/Truncate/truncate.css +4 -0
- package/components/Truncate/truncate.scss +3 -0
- package/docs/components/Accordion/examples/Accordion.md +6 -6
- package/docs/components/Alert/examples/Alert.md +2 -2
- package/docs/components/Brand/examples/Brand.md +9 -33
- package/docs/components/Breadcrumb/examples/Breadcrumb.md +1 -1
- package/docs/components/Card/examples/Card.md +18 -20
- package/docs/components/Check/examples/Check.md +1 -0
- package/docs/components/Content/examples/Content.md +5 -5
- package/docs/components/Divider/examples/Divider.css +3 -1
- package/docs/components/Divider/examples/Divider.md +4 -5
- package/docs/components/InlineEdit/examples/InlineEdit.md +3 -1
- package/docs/components/Label/examples/Label.md +11 -11
- package/docs/components/Masthead/examples/masthead.md +441 -16
- package/docs/components/Nav/examples/Navigation.css +18 -2
- package/docs/components/Nav/examples/Navigation.md +1 -1
- package/docs/components/Radio/examples/Radio.md +1 -1
- package/docs/components/SimpleList/examples/SimpleList.md +3 -3
- package/docs/components/Table/examples/Table.md +8 -8
- package/docs/components/Truncate/examples/Truncate.css +2 -2
- package/docs/demos/AboutModal/examples/AboutModal.md +40 -42
- package/docs/demos/Alert/examples/Alert.md +120 -126
- package/docs/demos/BackToTop/examples/BackToTop.md +40 -42
- package/docs/demos/Banner/examples/Banner.md +79 -80
- package/docs/demos/CardView/examples/CardView.md +40 -42
- package/docs/demos/ContextSelector/examples/ContextSelector.md +129 -146
- package/docs/demos/Dashboard/examples/Dashboard.md +40 -42
- package/docs/demos/DataList/examples/DataList.md +160 -279
- package/docs/demos/DescriptionList/examples/DescriptionList.md +120 -126
- package/docs/demos/Drawer/examples/Drawer.md +200 -210
- package/docs/demos/JumpLinks/examples/JumpLinks.md +240 -252
- package/docs/demos/Masthead/examples/Masthead.md +143 -224
- package/docs/demos/Modal/examples/Modal.md +240 -252
- package/docs/demos/Nav/examples/Nav.md +320 -336
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +200 -210
- package/docs/demos/Page/examples/Page.md +360 -378
- package/docs/demos/Page/examples/Penta.md +8 -15
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +280 -294
- package/docs/demos/Skeleton/examples/Skeleton.md +40 -42
- package/docs/demos/Table/examples/Table.md +617 -647
- package/docs/demos/Tabs/examples/Tabs.md +240 -252
- package/docs/demos/Toolbar/examples/Toolbar.md +80 -84
- package/docs/demos/Wizard/examples/Wizard.md +360 -378
- package/docs/layouts/Flex/examples/Flex.md +11 -11
- package/package.json +32 -32
- package/patternfly-no-globals.css +422 -673
- package/patternfly-theme-dark-unversioned.css +422 -673
- package/patternfly.css +422 -673
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- 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("
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
width: var(--#{$divider}--Size); // apply size to width in vertical orientation
|
|
16
|
+
height: 100%;
|
|
17
|
+
}
|
|
27
18
|
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
32
|
-
|
|
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
|
-
//
|
|
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
|
-
|
|
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
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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}--
|
|
43
|
+
background-color: var(--#{$divider}--Color);
|
|
84
44
|
}
|
|
85
45
|
|
|
86
|
-
//
|
|
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:
|
|
73
|
+
$breakpoint-name: '-on-' + #{$breakpoint};
|
|
90
74
|
|
|
91
|
-
@
|
|
92
|
-
|
|
93
|
-
|
|
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
|
-
|
|
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
|
package/components/Form/form.css
CHANGED
|
@@ -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;
|