@patternfly/patternfly 5.1.0-prerelease.8 → 5.1.0
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/base/_common.scss +21 -0
- package/base/_variables.scss +7 -0
- package/base/patternfly-common.css +14 -0
- package/base/patternfly-variables.css +5 -0
- package/components/AboutModalBox/about-modal-box.css +5 -0
- package/components/AboutModalBox/about-modal-box.scss +7 -0
- package/components/Accordion/accordion.css +3 -0
- package/components/Accordion/accordion.scss +2 -0
- package/components/Alert/alert.css +3 -0
- package/components/Alert/alert.scss +2 -0
- package/components/BackgroundImage/background-image.css +4 -1
- package/components/BackgroundImage/background-image.scss +6 -1
- package/components/Banner/banner.css +0 -3
- package/components/Breadcrumb/breadcrumb.css +3 -0
- package/components/Breadcrumb/breadcrumb.scss +2 -0
- package/components/Button/button.css +3 -0
- package/components/Button/button.scss +4 -0
- package/components/CalendarMonth/calendar-month.css +4 -0
- package/components/CalendarMonth/calendar-month.scss +2 -0
- package/components/Card/card.css +4 -1
- package/components/Card/card.scss +3 -1
- package/components/ClipboardCopy/clipboard-copy.css +3 -0
- package/components/ClipboardCopy/clipboard-copy.scss +2 -0
- package/components/DataList/data-list.css +3 -0
- package/components/DataList/data-list.scss +2 -0
- package/components/Drawer/drawer.css +45 -1
- package/components/Drawer/drawer.scss +43 -9
- package/components/DualListSelector/dual-list-selector.css +9 -1
- package/components/DualListSelector/dual-list-selector.scss +12 -3
- package/components/ExpandableSection/expandable-section.css +4 -0
- package/components/ExpandableSection/expandable-section.scss +2 -0
- package/components/Form/form.css +3 -0
- package/components/Form/form.scss +2 -0
- package/components/Icon/icon.scss +1 -1
- package/components/JumpLinks/jump-links.css +3 -0
- package/components/JumpLinks/jump-links.scss +2 -0
- package/components/Menu/menu.css +11 -0
- package/components/Menu/menu.scss +12 -2
- package/components/Nav/nav.css +20 -0
- package/components/Nav/nav.scss +22 -2
- package/components/NotificationDrawer/notification-drawer.css +4 -0
- package/components/NotificationDrawer/notification-drawer.scss +2 -0
- package/components/Page/page.css +4 -0
- package/components/Page/page.scss +6 -1
- package/components/Pagination/pagination.css +4 -0
- package/components/Pagination/pagination.scss +2 -0
- package/components/Popover/popover.css +62 -33
- package/components/Popover/popover.scss +88 -71
- package/components/Progress/progress.css +6 -4
- package/components/Progress/progress.scss +9 -4
- package/components/Skeleton/skeleton.css +4 -0
- package/components/Skeleton/skeleton.scss +2 -0
- package/components/Slider/slider.css +30 -6
- package/components/Slider/slider.scss +50 -19
- package/components/Switch/switch.css +4 -0
- package/components/Switch/switch.scss +5 -1
- package/components/Table/table-scrollable.css +2 -2
- package/components/Table/table-scrollable.scss +4 -2
- package/components/Table/table-tree-view.css +5 -1
- package/components/Table/table-tree-view.scss +7 -2
- package/components/Table/table.css +4 -0
- package/components/Table/table.scss +2 -0
- package/components/Tabs/tabs.css +10 -0
- package/components/Tabs/tabs.scss +8 -0
- package/components/Toolbar/toolbar.scss +2 -0
- package/components/Tooltip/tooltip.css +55 -26
- package/components/Tooltip/tooltip.scss +71 -54
- package/components/TreeView/tree-view.css +6 -0
- package/components/TreeView/tree-view.scss +10 -3
- package/components/Truncate/truncate.css +9 -0
- package/components/Truncate/truncate.scss +16 -3
- package/components/Wizard/wizard.css +10 -1
- package/components/Wizard/wizard.scss +12 -3
- package/docs/components/Button/examples/Button.md +15 -3
- package/docs/components/Card/examples/Card.md +2 -2
- 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/DualListSelector/examples/DualListSelector.md +64 -16
- package/docs/components/Label/examples/Label.md +1 -1
- package/docs/components/Menu/examples/Menu.css +8 -0
- package/docs/components/Menu/examples/Menu.md +90 -73
- package/docs/components/ModalBox/examples/ModalBox.css +3 -8
- package/docs/components/Nav/examples/Navigation.css +3 -26
- package/docs/components/Nav/examples/Navigation.md +99 -0
- package/docs/components/OptionsMenu/deprecated/options-menu.md +12 -3
- package/docs/components/Popover/examples/Popover.css +4 -9
- package/docs/components/Table/examples/Table.md +2 -2
- package/docs/components/Toolbar/examples/Toolbar.md +76 -60
- 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.md +23 -7
- package/docs/demos/DataList/examples/DataList.md +8 -2
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +16 -4
- package/docs/demos/Skeleton/examples/Skeleton.md +7 -35
- package/docs/demos/Table/examples/Table.md +48 -12
- package/docs/demos/Tabs/examples/Tabs.md +4 -1
- package/package.json +6 -5
- package/patternfly-base-no-globals-theme-dark-unversioned.css +19 -0
- package/patternfly-base-no-globals.css +19 -0
- package/patternfly-base-theme-dark-unversioned.css +19 -0
- package/patternfly-base.css +19 -0
- package/patternfly-no-globals.css +375 -87
- package/patternfly-theme-dark-unversioned.css +375 -87
- package/patternfly.css +375 -87
- 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 +60 -0
- package/sass-utilities/themes/dark/mixins.scss +3 -1
|
@@ -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
|
+
}
|
|
@@ -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
|
+
}
|