@patternfly/patternfly 6.0.0-alpha.7 → 6.0.0-alpha.9
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/README.md +13 -3
- package/assets/icons/iconUnicodes.json +1 -0
- package/assets/pficon/pf-v5-pficon.woff2 +0 -0
- package/assets/pficon/pficon.scss +6 -129
- package/base/_common.scss +21 -0
- package/base/_globals.scss +1 -1
- package/base/_variables.scss +7 -0
- package/base/patternfly-common.css +16 -2
- package/base/patternfly-globals.css +1 -1
- package/base/patternfly-icons.css +5 -1
- package/base/patternfly-pf-icons.css +5 -1
- package/base/patternfly-variables.css +16 -0
- package/base/tokens/_tokens-font.scss +16 -14
- package/components/AboutModalBox/about-modal-box.css +23 -12
- package/components/AboutModalBox/about-modal-box.scss +25 -12
- package/components/Accordion/accordion.css +33 -20
- package/components/Accordion/accordion.scss +32 -20
- package/components/ActionList/action-list.css +2 -2
- package/components/ActionList/action-list.scss +2 -2
- package/components/Alert/alert-group.css +7 -4
- package/components/Alert/alert-group.scss +7 -4
- package/components/Alert/alert.css +19 -13
- package/components/Alert/alert.scss +18 -13
- package/components/AppLauncher/app-launcher.css +32 -23
- package/components/AppLauncher/app-launcher.scss +32 -23
- package/components/BackToTop/back-to-top.css +2 -2
- package/components/BackToTop/back-to-top.scss +2 -2
- package/components/Backdrop/backdrop.css +2 -2
- package/components/Backdrop/backdrop.scss +2 -2
- package/components/BackgroundImage/background-image.css +6 -3
- package/components/BackgroundImage/background-image.scss +8 -3
- package/components/Badge/badge.css +2 -2
- package/components/Badge/badge.scss +2 -2
- package/components/Banner/banner.css +5 -5
- package/components/Banner/banner.scss +5 -2
- package/components/Breadcrumb/breadcrumb.css +9 -3
- package/components/Breadcrumb/breadcrumb.scss +8 -3
- package/components/Button/button.css +33 -21
- package/components/Button/button.scss +35 -23
- package/components/Button/themes/dark/button.scss +1 -1
- package/components/CalendarMonth/calendar-month.css +25 -15
- package/components/CalendarMonth/calendar-month.scss +23 -15
- package/components/Card/card.css +25 -17
- package/components/Card/card.scss +24 -17
- package/components/Check/check.css +2 -2
- package/components/Check/check.scss +2 -2
- package/components/Chip/chip-group.css +6 -6
- package/components/Chip/chip-group.scss +6 -6
- package/components/Chip/chip.css +16 -9
- package/components/Chip/chip.scss +17 -9
- package/components/ClipboardCopy/clipboard-copy.css +19 -10
- package/components/ClipboardCopy/clipboard-copy.scss +16 -8
- package/components/ClipboardCopy/themes/dark/clipboard-copy.scss +2 -2
- package/components/CodeBlock/code-block.css +6 -3
- package/components/CodeBlock/code-block.scss +6 -3
- package/components/CodeEditor/code-editor.css +31 -22
- package/components/CodeEditor/code-editor.scss +30 -21
- package/components/CodeEditor/themes/dark/code-editor.scss +1 -1
- package/components/Content/content.css +33 -30
- package/components/Content/content.scss +33 -30
- package/components/ContextSelector/context-selector.css +41 -26
- package/components/ContextSelector/context-selector.scss +40 -25
- package/components/ContextSelector/themes/dark/context-selector.scss +1 -1
- package/components/DataList/data-list-grid.css +21 -21
- package/components/DataList/data-list-grid.scss +3 -3
- package/components/DataList/data-list.css +69 -56
- package/components/DataList/data-list.scss +47 -35
- package/components/DatePicker/date-picker.css +8 -8
- package/components/DatePicker/date-picker.scss +8 -8
- package/components/DescriptionList/description-list.css +8 -5
- package/components/DescriptionList/description-list.scss +8 -5
- package/components/DragDrop/drag-drop.css +8 -8
- package/components/DragDrop/drag-drop.scss +8 -8
- package/components/Drawer/drawer.css +120 -61
- package/components/Drawer/drawer.scss +92 -43
- package/components/Dropdown/dropdown.css +75 -66
- package/components/Dropdown/dropdown.scss +65 -56
- package/components/DualListSelector/dual-list-selector.css +29 -15
- package/components/DualListSelector/dual-list-selector.scss +30 -15
- package/components/EmptyState/empty-state.css +7 -4
- package/components/EmptyState/empty-state.scss +7 -4
- package/components/ExpandableSection/expandable-section.css +17 -10
- package/components/ExpandableSection/expandable-section.scss +15 -10
- package/components/FileUpload/file-upload.css +9 -15
- package/components/FileUpload/file-upload.scss +9 -15
- package/components/Form/form.css +53 -50
- package/components/Form/form.scss +46 -44
- package/components/FormControl/form-control.css +18 -9
- package/components/FormControl/form-control.scss +18 -9
- package/components/HelperText/helper-text.css +1 -1
- package/components/HelperText/helper-text.scss +1 -1
- package/components/Hint/hint.css +9 -6
- package/components/Hint/hint.scss +9 -6
- package/components/Icon/icon.css +1 -1
- package/components/Icon/icon.scss +1 -1
- package/components/InlineEdit/inline-edit.css +4 -4
- package/components/InlineEdit/inline-edit.scss +4 -4
- package/components/InputGroup/input-group.css +12 -6
- package/components/InputGroup/input-group.scss +11 -5
- package/components/InputGroup/themes/dark/input-group.scss +1 -1
- package/components/JumpLinks/jump-links.css +27 -24
- package/components/JumpLinks/jump-links.scss +26 -24
- package/components/Label/label-group.css +13 -10
- package/components/Label/label-group.scss +13 -10
- package/components/Label/label.css +9 -9
- package/components/Label/label.scss +9 -9
- package/components/List/list.css +9 -9
- package/components/List/list.scss +9 -9
- package/components/LogViewer/log-viewer.css +14 -14
- package/components/LogViewer/log-viewer.scss +14 -14
- package/components/Login/login.css +36 -27
- package/components/Login/login.scss +36 -27
- package/components/Masthead/masthead.css +19 -22
- package/components/Masthead/masthead.scss +19 -22
- package/components/Menu/menu.css +79 -65
- package/components/Menu/menu.scss +80 -68
- package/components/MenuToggle/menu-toggle.css +33 -27
- package/components/MenuToggle/menu-toggle.scss +33 -27
- package/components/ModalBox/modal-box.css +19 -19
- package/components/ModalBox/modal-box.scss +20 -20
- package/components/MultipleFileUpload/multiple-file-upload.css +11 -8
- package/components/MultipleFileUpload/multiple-file-upload.scss +11 -8
- package/components/Nav/nav.css +120 -93
- package/components/Nav/nav.scss +120 -93
- package/components/Nav/themes/dark/nav.scss +2 -2
- package/components/NotificationBadge/notification-badge.css +66 -85
- package/components/NotificationBadge/notification-badge.scss +72 -103
- package/components/NotificationDrawer/notification-drawer.css +32 -19
- package/components/NotificationDrawer/notification-drawer.scss +30 -19
- package/components/NumberInput/number-input.css +2 -2
- package/components/NumberInput/number-input.scss +2 -2
- package/components/OptionsMenu/options-menu.css +43 -31
- package/components/OptionsMenu/options-menu.scss +43 -31
- package/components/OverflowMenu/overflow-menu.css +2 -2
- package/components/OverflowMenu/overflow-menu.scss +2 -2
- package/components/Page/page.css +135 -77
- package/components/Page/page.scss +81 -52
- package/components/Page/themes/dark/page.scss +1 -1
- package/components/Pagination/pagination.css +27 -17
- package/components/Pagination/pagination.scss +25 -17
- package/components/Panel/panel.css +13 -7
- package/components/Panel/panel.scss +13 -7
- package/components/Popover/popover.css +72 -40
- package/components/Popover/popover.scss +95 -75
- package/components/Progress/progress.css +9 -7
- package/components/Progress/progress.scss +12 -7
- package/components/ProgressStepper/progress-stepper.css +26 -20
- package/components/ProgressStepper/progress-stepper.scss +25 -19
- package/components/Radio/radio.css +3 -3
- package/components/Radio/radio.scss +3 -3
- package/components/Select/select.css +56 -47
- package/components/Select/select.scss +56 -47
- package/components/Sidebar/sidebar.css +11 -5
- package/components/Sidebar/sidebar.scss +11 -5
- package/components/SimpleList/simple-list.css +10 -4
- package/components/SimpleList/simple-list.scss +10 -4
- package/components/Skeleton/skeleton.css +6 -5
- package/components/Skeleton/skeleton.scss +4 -5
- package/components/SkipToContent/skip-to-content.css +3 -3
- package/components/SkipToContent/skip-to-content.scss +3 -3
- package/components/Slider/slider.css +47 -26
- package/components/Slider/slider.scss +56 -28
- package/components/Switch/switch.css +9 -5
- package/components/Switch/switch.scss +10 -6
- package/components/TabContent/tab-content.css +4 -1
- package/components/TabContent/tab-content.scss +4 -1
- package/components/Table/table-grid.css +256 -195
- package/components/Table/table-grid.scss +53 -39
- package/components/Table/table-scrollable.css +4 -4
- package/components/Table/table-scrollable.scss +6 -4
- package/components/Table/table-tree-view.css +112 -105
- package/components/Table/table-tree-view.scss +38 -33
- package/components/Table/table.css +92 -70
- package/components/Table/table.scss +90 -70
- package/components/Tabs/tabs.css +76 -48
- package/components/Tabs/tabs.scss +74 -48
- package/components/TextInputGroup/text-input-group.css +15 -15
- package/components/TextInputGroup/text-input-group.scss +15 -15
- package/components/Tile/tile.css +10 -10
- package/components/Tile/tile.scss +10 -10
- package/components/ToggleGroup/toggle-group.css +14 -11
- package/components/ToggleGroup/toggle-group.scss +14 -11
- package/components/Toolbar/toolbar.css +44 -41
- package/components/Toolbar/toolbar.scss +26 -21
- package/components/Tooltip/tooltip.css +60 -28
- package/components/Tooltip/tooltip.scss +76 -56
- package/components/TreeView/tree-view.css +48 -27
- package/components/TreeView/tree-view.scss +50 -28
- package/components/Truncate/truncate.css +9 -0
- package/components/Truncate/truncate.scss +16 -3
- package/components/Wizard/wizard.css +57 -36
- package/components/Wizard/wizard.scss +57 -36
- package/docs/components/Button/examples/Button.css +2 -2
- package/docs/components/Button/examples/Button.md +15 -3
- package/docs/components/Card/examples/Card.md +15 -15
- package/docs/components/Check/examples/Check.md +71 -59
- package/docs/components/Chip/examples/Chip.md +1 -1
- package/docs/components/ClipboardCopy/examples/ClipboardCopy.md +106 -0
- package/docs/components/CodeEditor/examples/CodeEditor.md +3 -3
- package/docs/components/DragDrop/examples/DragDrop.css +2 -2
- package/docs/components/Dropdown/deprecated/Dropdown.css +1 -1
- package/docs/components/DualListSelector/examples/DualListSelector.md +64 -16
- package/docs/components/Label/examples/Label.md +1 -1
- package/docs/components/LogViewer/examples/LogViewer.css +2 -2
- package/docs/components/LogViewer/examples/LogViewer.md +120 -30
- package/docs/components/Menu/examples/Menu.css +8 -0
- package/docs/components/Menu/examples/Menu.md +90 -73
- package/docs/components/MenuToggle/examples/MenuToggle.md +60 -39
- package/docs/components/ModalBox/examples/ModalBox.css +3 -8
- package/docs/components/Nav/examples/Navigation.css +4 -21
- package/docs/components/Nav/examples/Navigation.md +99 -0
- package/docs/components/NotificationBadge/examples/NotificationBadge.md +5 -7
- package/docs/components/OptionsMenu/deprecated/options-menu.md +12 -3
- package/docs/components/Popover/examples/Popover.css +4 -9
- package/docs/components/Radio/examples/Radio.md +63 -55
- package/docs/components/Select/deprecated/Select.md +184 -177
- package/docs/components/Table/examples/Table.css +2 -2
- package/docs/components/Table/examples/Table.md +2 -2
- package/docs/components/TextInputGroup/examples/TextInputGroup.css +1 -1
- package/docs/components/Tile/examples/Tile.css +1 -1
- package/docs/components/Toolbar/examples/Toolbar.md +525 -431
- package/docs/components/Tooltip/examples/Tooltip.css +4 -0
- package/docs/components/Tooltip/examples/Tooltip.md +3 -1
- package/docs/components/Truncate/examples/Truncate.md +2 -2
- package/docs/demos/Card/examples/Card.css +3 -3
- package/docs/demos/Card/examples/Card.md +26 -10
- package/docs/demos/CardView/examples/CardView.md +24 -20
- package/docs/demos/Dashboard/examples/Dashboard.md +3 -3
- package/docs/demos/DataList/examples/DataList.md +8 -2
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +160 -124
- package/docs/demos/Skeleton/examples/Skeleton.md +7 -35
- package/docs/demos/Table/examples/Table.md +336 -252
- package/docs/demos/Tabs/examples/Tabs.md +28 -21
- package/docs/demos/Toolbar/examples/Toolbar.css +5 -0
- package/docs/demos/Toolbar/examples/Toolbar.md +44 -44
- package/docs/layouts/Flex/examples/Flex.md +5 -5
- package/docs/utilities/BoxShadow/examples/box-shadow.css +5 -5
- package/icons/pficons.mjs +1 -0
- package/layouts/Flex/flex.css +115 -43
- package/layouts/Flex/flex.scss +20 -8
- package/package.json +9 -5
- package/patternfly-addons.css +732 -972
- package/patternfly-base-no-globals-theme-dark-unversioned.css +37 -3
- package/patternfly-base-no-globals.css +37 -3
- package/patternfly-base-theme-dark-unversioned.css +38 -4
- package/patternfly-base.css +38 -4
- package/patternfly-no-globals.css +2748 -1960
- package/patternfly-theme-dark-unversioned.css +2749 -1961
- package/patternfly.css +2749 -1961
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/functions.scss +6 -0
- package/sass-utilities/mixins.scss +62 -2
- package/sass-utilities/scss-variables.scss +8 -8
- package/sass-utilities/themes/dark/mixins.scss +3 -1
- package/utilities/Accessibility/accessibility.css +12 -12
- package/utilities/Spacing/spacing.css +720 -960
- package/utilities/Spacing/spacing.scss +4 -8
- package/components/NotificationBadge/themes/dark/notification-badge.scss +0 -10
- package/docs/components/NotificationBadge/examples/NotificationBadge.css +0 -3
|
@@ -115,3 +115,9 @@
|
|
|
115
115
|
|
|
116
116
|
@return $new-map;
|
|
117
117
|
}
|
|
118
|
+
|
|
119
|
+
// Returns a calc() with the inverse of a value used for RTL. Most commonly used as the inverse/negative of a value in a transform function (eg, translate(), rotate(), scale(), etc)
|
|
120
|
+
// Shouldn't be used on an existing LTR style as adding a calc() in an existing style could be breaking. Should used within an RTL selector, which is basically an opt-in.
|
|
121
|
+
@function pf-v5-calc-inverse($val, $multiplier: var(--#{$pf-global}--inverse--multiplier)) {
|
|
122
|
+
@return calc(#{$val} * #{$multiplier});
|
|
123
|
+
}
|
|
@@ -151,8 +151,8 @@
|
|
|
151
151
|
|
|
152
152
|
@mixin pf-v5-u-screen-reader {
|
|
153
153
|
position: fixed;
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
inset-block-start: 0;
|
|
155
|
+
inset-inline-start: 0;
|
|
156
156
|
overflow: hidden;
|
|
157
157
|
clip: rect(0, 0, 0, 0);
|
|
158
158
|
white-space: nowrap;
|
|
@@ -309,3 +309,63 @@
|
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
|
+
|
|
313
|
+
// RTL helpers
|
|
314
|
+
|
|
315
|
+
// Used to create the RTL selector for RTL specific styles
|
|
316
|
+
|
|
317
|
+
// @include pf-v5-rtl {
|
|
318
|
+
// background: red;
|
|
319
|
+
// }
|
|
320
|
+
|
|
321
|
+
// renders as
|
|
322
|
+
|
|
323
|
+
// [dir="rtl"] {
|
|
324
|
+
// background: red;
|
|
325
|
+
// }
|
|
326
|
+
@mixin pf-v5-rtl {
|
|
327
|
+
@at-root :where(.#{$pf-prefix}m-dir-rtl, [dir="rtl"]) #{&} {
|
|
328
|
+
@content;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
// Used to create the LTR selector for LTR specific styles
|
|
333
|
+
@mixin pf-v5-ltr {
|
|
334
|
+
@at-root :where(.#{$pf-prefix}m-dir-ltr, [dir="ltr"]) #{&} {
|
|
335
|
+
@content;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
// Creates a default/LTR declaration, and an RTL declaration.
|
|
340
|
+
|
|
341
|
+
// @include pf-v5-bidirectional-style(background, blue, red)
|
|
342
|
+
|
|
343
|
+
// renders as
|
|
344
|
+
|
|
345
|
+
// background: blue;
|
|
346
|
+
// [dir="rtl"] {
|
|
347
|
+
// background: red;
|
|
348
|
+
// }
|
|
349
|
+
@mixin pf-v5-bidirectional-style($prop, $ltr-val, $rtl-val) {
|
|
350
|
+
#{$prop}: #{$ltr-val};
|
|
351
|
+
|
|
352
|
+
@include pf-v5-rtl {
|
|
353
|
+
#{$prop}: #{$rtl-val};
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
// Mirrors/flips something horizontally/inline. Relies upon scale/scale() not already being used for the element. Can be extended to take arguments to use different methods other than scale().
|
|
358
|
+
@mixin pf-v5-mirror-inline {
|
|
359
|
+
scale: -1 1;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
@mixin pf-v5-mirror-inline-on-rtl {
|
|
363
|
+
@include pf-v5-rtl {
|
|
364
|
+
@include pf-v5-mirror-inline;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
// 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.
|
|
369
|
+
@mixin pf-v5-set-inverse($val: true) {
|
|
370
|
+
--#{$pf-global}--inverse--multiplier: #{if($val, -1, 1)};
|
|
371
|
+
}
|
|
@@ -294,17 +294,17 @@ $pf-v5-global--height-breakpoint-name-map: (
|
|
|
294
294
|
// Spacer properties
|
|
295
295
|
$pf-v5-global--spacer-properties-map: (
|
|
296
296
|
"m": "margin",
|
|
297
|
-
"mt": "margin-
|
|
298
|
-
"mr": "margin-
|
|
299
|
-
"mb": "margin-
|
|
300
|
-
"ml": "margin-
|
|
297
|
+
"mt": "margin-block-start",
|
|
298
|
+
"mr": "margin-inline-end",
|
|
299
|
+
"mb": "margin-block-end",
|
|
300
|
+
"ml": "margin-inline-start",
|
|
301
301
|
"mx": null,
|
|
302
302
|
"my": null,
|
|
303
303
|
"p": "padding",
|
|
304
|
-
"pt": "padding-
|
|
305
|
-
"pr": "padding-
|
|
306
|
-
"pb": "padding-
|
|
307
|
-
"pl": "padding-
|
|
304
|
+
"pt": "padding-block-start",
|
|
305
|
+
"pr": "padding-inline-end",
|
|
306
|
+
"pb": "padding-block-end",
|
|
307
|
+
"pl": "padding-inline-start",
|
|
308
308
|
"px": null,
|
|
309
309
|
"py": null
|
|
310
310
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.pf-v5-u-screen-reader {
|
|
2
2
|
position: fixed;
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
inset-block-start: 0;
|
|
4
|
+
inset-inline-start: 0;
|
|
5
5
|
overflow: hidden;
|
|
6
6
|
clip: rect(0, 0, 0, 0);
|
|
7
7
|
white-space: nowrap;
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
@media screen and (min-width: 576px) {
|
|
24
24
|
.pf-v5-u-screen-reader-on-sm {
|
|
25
25
|
position: fixed;
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
inset-block-start: 0;
|
|
27
|
+
inset-inline-start: 0;
|
|
28
28
|
overflow: hidden;
|
|
29
29
|
clip: rect(0, 0, 0, 0);
|
|
30
30
|
white-space: nowrap;
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
@media screen and (min-width: 768px) {
|
|
52
52
|
.pf-v5-u-screen-reader-on-md {
|
|
53
53
|
position: fixed;
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
inset-block-start: 0;
|
|
55
|
+
inset-inline-start: 0;
|
|
56
56
|
overflow: hidden;
|
|
57
57
|
clip: rect(0, 0, 0, 0);
|
|
58
58
|
white-space: nowrap;
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
@media screen and (min-width: 992px) {
|
|
80
80
|
.pf-v5-u-screen-reader-on-lg {
|
|
81
81
|
position: fixed;
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
inset-block-start: 0;
|
|
83
|
+
inset-inline-start: 0;
|
|
84
84
|
overflow: hidden;
|
|
85
85
|
clip: rect(0, 0, 0, 0);
|
|
86
86
|
white-space: nowrap;
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
@media screen and (min-width: 1200px) {
|
|
108
108
|
.pf-v5-u-screen-reader-on-xl {
|
|
109
109
|
position: fixed;
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
inset-block-start: 0;
|
|
111
|
+
inset-inline-start: 0;
|
|
112
112
|
overflow: hidden;
|
|
113
113
|
clip: rect(0, 0, 0, 0);
|
|
114
114
|
white-space: nowrap;
|
|
@@ -135,8 +135,8 @@
|
|
|
135
135
|
@media screen and (min-width: 1450px) {
|
|
136
136
|
.pf-v5-u-screen-reader-on-2xl {
|
|
137
137
|
position: fixed;
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
inset-block-start: 0;
|
|
139
|
+
inset-inline-start: 0;
|
|
140
140
|
overflow: hidden;
|
|
141
141
|
clip: rect(0, 0, 0, 0);
|
|
142
142
|
white-space: nowrap;
|