@patternfly/patternfly 6.5.0-prerelease.4 → 6.5.0-prerelease.41
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 +1 -1
- package/assets/fontawesome/_variables.scss +2 -1
- package/assets/images/RHAiExperienceIcon.svg +27 -0
- package/assets/images/RHAutomationsLogo.svg +96 -0
- package/assets/images/RHServerStackIcon.svg +16 -0
- package/assets/images/compass--hero-bg.png +0 -0
- package/assets/images/compass--rh-wallpaper-dark.png +0 -0
- package/assets/images/compass--rh-wallpaper-light.png +0 -0
- package/assets/images/compass--wallpaper-dark.png +0 -0
- package/assets/images/compass--wallpaper-light.png +0 -0
- package/base/normalize.scss +7 -0
- package/base/patternfly-common.css +50 -0
- package/base/patternfly-common.scss +59 -0
- package/base/patternfly-svg-icons.css +11 -0
- package/base/patternfly-svg-icons.scss +14 -0
- package/base/patternfly-variables.css +345 -14
- package/base/patternfly-variables.scss +40 -0
- package/base/tokens/tokens-dark.scss +51 -3
- package/base/tokens/tokens-default.scss +67 -13
- package/base/tokens/tokens-glass-dark.scss +9 -0
- package/base/tokens/tokens-glass.scss +9 -0
- package/base/tokens/tokens-local.scss +16 -0
- package/base/tokens/tokens-palette.scss +3 -1
- package/base/tokens/tokens-redhat-dark.scss +14 -0
- package/base/tokens/tokens-redhat-glass-dark.scss +16 -0
- package/base/tokens/tokens-redhat-glass.scss +15 -0
- package/base/tokens/tokens-redhat-highcontrast-dark.scss +47 -0
- package/base/tokens/tokens-redhat-highcontrast.scss +127 -0
- package/base/tokens/tokens-redhat.scss +15 -0
- package/components/AboutModalBox/about-modal-box.css +36 -26
- package/components/Accordion/accordion.css +16 -13
- package/components/Accordion/accordion.scss +0 -1
- package/components/ActionList/action-list.css +2 -0
- package/components/ActionList/action-list.scss +2 -0
- package/components/Alert/alert.css +5 -4
- package/components/Avatar/avatar.css +12 -4
- package/components/BackgroundImage/background-image.css +6 -3
- package/components/Banner/banner.css +8 -6
- package/components/Brand/brand.css +3 -1
- package/components/Breadcrumb/breadcrumb.css +4 -3
- package/components/Button/button.css +39 -9
- package/components/Button/button.scss +40 -4
- package/components/CalendarMonth/calendar-month.css +4 -3
- package/components/Card/card.css +19 -6
- package/components/Card/card.scss +15 -1
- package/components/ClipboardCopy/clipboard-copy.css +4 -3
- package/components/CodeEditor/code-editor.css +1 -1
- package/components/CodeEditor/code-editor.scss +1 -1
- package/components/Compass/compass.css +320 -0
- package/components/Compass/compass.scss +349 -0
- package/components/DataList/data-list.css +33 -22
- package/components/DataList/data-list.scss +6 -1
- package/components/DescriptionList/description-list-order.scss +5 -1
- package/components/DescriptionList/description-list.css +7 -5
- package/components/DescriptionList/description-list.scss +5 -1
- package/components/Divider/divider.css +7 -5
- package/components/Drawer/drawer.css +110 -56
- package/components/Drawer/drawer.scss +69 -9
- package/components/DualListSelector/dual-list-selector.css +17 -11
- package/components/ExpandableSection/expandable-section.css +19 -14
- package/components/ExpandableSection/expandable-section.scss +4 -1
- package/components/Form/form.css +1 -1
- package/components/Form/form.scss +1 -1
- package/components/FormControl/form-control.css +1 -1
- package/components/FormControl/form-control.scss +1 -1
- package/components/Hero/hero.css +74 -0
- package/components/Hero/hero.scss +86 -0
- package/components/JumpLinks/jump-links.css +4 -3
- package/components/JumpLinks/jump-links.scss +5 -1
- package/components/Label/label-group.css +2 -2
- package/components/Label/label-group.scss +2 -2
- package/components/Label/label.css +4 -3
- package/components/Login/login.css +51 -37
- package/components/Masthead/masthead.css +70 -16
- package/components/Masthead/masthead.scss +54 -1
- package/components/Menu/menu.css +23 -14
- package/components/MenuToggle/menu-toggle.css +4 -0
- package/components/MenuToggle/menu-toggle.scss +5 -0
- package/components/ModalBox/modal-box.css +9 -7
- package/components/ModalBox/modal-box.scss +2 -2
- package/components/Nav/nav.css +72 -9
- package/components/Nav/nav.scss +75 -3
- package/components/NotificationDrawer/notification-drawer.css +8 -6
- package/components/NotificationDrawer/notification-drawer.scss +2 -0
- package/components/Page/page.css +55 -29
- package/components/Page/page.scss +44 -5
- package/components/Pagination/pagination.scss +5 -1
- package/components/ProgressStepper/progress-stepper.scss +5 -1
- package/components/Sidebar/sidebar.css +1 -1
- package/components/Sidebar/sidebar.scss +7 -3
- package/components/Skeleton/skeleton.css +16 -15
- package/components/Slider/slider.css +32 -18
- package/components/Switch/switch.css +3 -1
- package/components/Table/table-grid.css +28 -36
- package/components/Table/table-grid.scss +4 -4
- package/components/Table/table-tree-view.css +4 -2
- package/components/Table/table.css +31 -27
- package/components/Tabs/tabs.css +33 -16
- package/components/Tabs/tabs.scss +33 -5
- package/components/Toolbar/toolbar.css +46 -14
- package/components/Toolbar/toolbar.scss +33 -5
- package/components/TreeView/tree-view.css +44 -13
- package/components/TreeView/tree-view.scss +31 -0
- package/components/Wizard/wizard.css +20 -16
- package/components/Wizard/wizard.scss +3 -3
- package/components/_index.css +1460 -633
- package/components/_index.scss +3 -1
- package/docs/components/Avatar/examples/Avatar.md +4 -4
- package/docs/components/Brand/examples/Brand.md +2 -2
- package/docs/components/Button/examples/Button.md +116 -0
- package/docs/components/Card/examples/Card.md +154 -0
- package/docs/components/Compass/examples/Compass.css +17 -0
- package/docs/components/Compass/examples/Compass.md +118 -0
- package/docs/components/DataList/examples/DataList.md +184 -188
- package/docs/components/DescriptionList/examples/DescriptionList.md +2 -2
- package/docs/components/Divider/examples/Divider.md +2 -2
- package/docs/components/Drawer/examples/Drawer.md +83 -17
- package/docs/components/Hero/examples/Hero.md +25 -0
- package/docs/components/Icon/examples/Icon.md +1 -1
- package/docs/components/InputGroup/examples/InputGroup.md +1 -1
- package/docs/components/JumpLinks/examples/JumpLinks.md +2 -2
- package/docs/components/Masthead/examples/masthead.md +68 -1
- package/docs/components/Menu/examples/Menu.md +2 -2
- package/docs/components/MenuToggle/examples/MenuToggle.md +40 -0
- package/docs/components/ModalBox/examples/ModalBox.md +1 -1
- package/docs/components/Nav/examples/Navigation.md +44 -0
- package/docs/components/Page/examples/Page.md +39 -2
- package/docs/components/Pagination/examples/Pagination.md +3 -3
- package/docs/components/ProgressStepper/examples/ProgressStepper.md +2 -2
- package/docs/components/Sidebar/examples/Sidebar.md +1 -1
- package/docs/components/Table/examples/Table.md +4 -3
- package/docs/components/Tabs/examples/Tabs.md +998 -83
- package/docs/components/Toolbar/examples/Toolbar.md +35 -7
- package/docs/components/TreeView/examples/TreeView.md +38 -26
- package/docs/components/Wizard/examples/Wizard.md +15 -15
- package/docs/demos/AboutModal/examples/AboutModal.md +5 -5
- package/docs/demos/Alert/examples/Alert.md +15 -15
- package/docs/demos/BackToTop/examples/BackToTop.md +5 -5
- package/docs/demos/Banner/examples/Banner.md +10 -10
- package/docs/demos/Card/examples/Card.md +14 -2
- package/docs/demos/CardView/examples/CardView.md +5 -5
- package/docs/demos/Compass/examples/Compass.md +6470 -0
- package/docs/demos/Dashboard/examples/Dashboard.md +6 -9
- package/docs/demos/DataList/examples/DataList.md +20 -23
- package/docs/demos/DescriptionList/examples/DescriptionList.md +57 -50
- package/docs/demos/Drawer/examples/Drawer.md +67 -60
- package/docs/demos/JumpLinks/examples/JumpLinks.md +30 -30
- package/docs/demos/Masthead/examples/Masthead.md +55 -58
- package/docs/demos/Modal/examples/Modal.md +30 -33
- package/docs/demos/Nav/examples/Nav.md +299 -62
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +25 -25
- package/docs/demos/Page/examples/Page.md +70 -79
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +178 -200
- package/docs/demos/Skeleton/examples/Skeleton.md +5 -5
- package/docs/demos/Table/examples/Table.md +1922 -78
- package/docs/demos/Tabs/examples/Tabs.md +102 -39
- package/docs/demos/Toolbar/examples/Toolbar.md +10 -10
- package/docs/demos/Wizard/examples/Wizard.md +76 -82
- package/docs/layouts/Bullseye/examples/Bullseye.css +2 -2
- package/docs/layouts/Bullseye/examples/Bullseye.md +2 -1
- package/docs/layouts/Flex/examples/Flex.css +3 -3
- package/docs/layouts/Flex/examples/Flex.md +3 -2
- package/docs/layouts/Gallery/examples/Gallery.css +2 -2
- package/docs/layouts/Gallery/examples/Gallery.md +4 -3
- package/docs/layouts/Grid/examples/Grid.css +1 -1
- package/docs/layouts/Grid/examples/Grid.md +6 -5
- package/docs/layouts/Level/examples/Level.css +3 -3
- package/docs/layouts/Level/examples/Level.md +2 -1
- package/docs/layouts/Split/examples/Split.css +1 -1
- package/docs/layouts/Split/examples/Split.md +2 -1
- package/docs/layouts/Stack/examples/Stack.css +3 -3
- package/docs/layouts/Stack/examples/Stack.md +2 -1
- package/docs/utilities/Accessibility/examples/Accessibility.md +3 -2
- package/docs/utilities/Alignment/examples/Alignment.css +4 -4
- package/docs/utilities/Alignment/examples/Alignment.md +3 -2
- package/docs/utilities/BackgroundColor/examples/BackgroundColor.md +5 -4
- package/docs/utilities/BoxShadow/examples/box-shadow.css +2 -2
- package/docs/utilities/BoxShadow/examples/box-shadow.md +2 -1
- package/docs/utilities/Display/examples/Display.css +1 -1
- package/docs/utilities/Display/examples/Display.md +3 -2
- package/docs/utilities/Flex/examples/Flex.css +7 -7
- package/docs/utilities/Flex/examples/Flex.md +3 -2
- package/docs/utilities/Float/examples/Float.css +2 -2
- package/docs/utilities/Float/examples/Float.md +3 -2
- package/docs/utilities/Sizing/examples/Sizing.md +8 -7
- package/docs/utilities/Spacing/examples/Spacing.css +2 -2
- package/docs/utilities/Spacing/examples/Spacing.md +3 -2
- package/docs/utilities/Text/examples/Text.md +5 -4
- package/icons/PfIcons/add-circle-o.svg +4 -0
- package/icons/PfIcons/ansible-tower.svg +4 -0
- package/icons/PfIcons/applications.svg +4 -0
- package/icons/PfIcons/arrow.svg +4 -0
- package/icons/PfIcons/asleep.svg +4 -0
- package/icons/PfIcons/attention-bell.svg +4 -0
- package/icons/PfIcons/automation.svg +4 -0
- package/icons/PfIcons/bell.svg +4 -0
- package/icons/PfIcons/blueprint.svg +4 -0
- package/icons/PfIcons/build.svg +4 -0
- package/icons/PfIcons/builder-image.svg +4 -0
- package/icons/PfIcons/bundle.svg +4 -0
- package/icons/PfIcons/catalog.svg +4 -0
- package/icons/PfIcons/chat.svg +4 -0
- package/icons/PfIcons/close.svg +4 -0
- package/icons/PfIcons/cloud-security.svg +4 -0
- package/icons/PfIcons/cloud-tenant.svg +4 -0
- package/icons/PfIcons/cluster.svg +4 -0
- package/icons/PfIcons/connected.svg +4 -0
- package/icons/PfIcons/container-node.svg +4 -0
- package/icons/PfIcons/cpu.svg +4 -0
- package/icons/PfIcons/critical-risk.svg +4 -0
- package/icons/PfIcons/data-processor.svg +4 -0
- package/icons/PfIcons/data-sink.svg +4 -0
- package/icons/PfIcons/data-source.svg +4 -0
- package/icons/PfIcons/degraded.svg +4 -0
- package/icons/PfIcons/disconnected.svg +4 -0
- package/icons/PfIcons/domain.svg +4 -0
- package/icons/PfIcons/edit.svg +4 -0
- package/icons/PfIcons/enhancement.svg +4 -0
- package/icons/PfIcons/enterprise.svg +4 -0
- package/icons/PfIcons/equalizer.svg +4 -0
- package/icons/PfIcons/error-circle-o.svg +4 -0
- package/icons/PfIcons/export.svg +4 -0
- package/icons/PfIcons/filter.svg +4 -0
- package/icons/PfIcons/flavor.svg +4 -0
- package/icons/PfIcons/folder-close.svg +4 -0
- package/icons/PfIcons/folder-open.svg +4 -0
- package/icons/PfIcons/globe-route.svg +4 -0
- package/icons/PfIcons/help.svg +4 -0
- package/icons/PfIcons/history.svg +4 -0
- package/icons/PfIcons/home.svg +4 -0
- package/icons/PfIcons/import.svg +4 -0
- package/icons/PfIcons/in-progress.svg +4 -0
- package/icons/PfIcons/info.svg +4 -0
- package/icons/PfIcons/infrastructure.svg +4 -0
- package/icons/PfIcons/integration.svg +4 -0
- package/icons/PfIcons/key.svg +4 -0
- package/icons/PfIcons/locked.svg +4 -0
- package/icons/PfIcons/maintenance.svg +4 -0
- package/icons/PfIcons/memory.svg +4 -0
- package/icons/PfIcons/messages.svg +4 -0
- package/icons/PfIcons/middleware.svg +4 -0
- package/icons/PfIcons/migration.svg +4 -0
- package/icons/PfIcons/module.svg +4 -0
- package/icons/PfIcons/monitoring.svg +4 -0
- package/icons/PfIcons/multicluster.svg +4 -0
- package/icons/PfIcons/namespaces.svg +4 -0
- package/icons/PfIcons/network.svg +4 -0
- package/icons/PfIcons/new-process.svg +4 -0
- package/icons/PfIcons/not-started.svg +4 -0
- package/icons/PfIcons/off.svg +4 -0
- package/icons/PfIcons/ok.svg +4 -0
- package/icons/PfIcons/on-running.svg +4 -0
- package/icons/PfIcons/on.svg +4 -0
- package/icons/PfIcons/open-drawer-right.svg +4 -0
- package/icons/PfIcons/openshift.svg +4 -0
- package/icons/PfIcons/openstack.svg +4 -0
- package/icons/PfIcons/optimize.svg +4 -0
- package/icons/PfIcons/orders.svg +4 -0
- package/icons/PfIcons/os-image.svg +4 -0
- package/icons/PfIcons/package.svg +4 -0
- package/icons/PfIcons/panel-close.svg +4 -0
- package/icons/PfIcons/panel-open.svg +4 -0
- package/icons/PfIcons/paused.svg +4 -0
- package/icons/PfIcons/pending.svg +4 -0
- package/icons/PfIcons/pficon-dragdrop.svg +4 -0
- package/icons/PfIcons/pficon-history.svg +4 -0
- package/icons/PfIcons/pficon-network-range.svg +4 -0
- package/icons/PfIcons/pficon-satellite.svg +4 -0
- package/icons/PfIcons/pficon-sort-common-asc.svg +4 -0
- package/icons/PfIcons/pficon-sort-common-desc.svg +4 -0
- package/icons/PfIcons/pficon-template.svg +4 -0
- package/icons/PfIcons/pficon-vcenter.svg +4 -0
- package/icons/PfIcons/plugged.svg +4 -0
- package/icons/PfIcons/port.svg +4 -0
- package/icons/PfIcons/print.svg +4 -0
- package/icons/PfIcons/private.svg +4 -0
- package/icons/PfIcons/process-automation.svg +4 -0
- package/icons/PfIcons/project.svg +4 -0
- package/icons/PfIcons/rebalance.svg +4 -0
- package/icons/PfIcons/rebooting.svg +4 -0
- package/icons/PfIcons/regions.svg +4 -0
- package/icons/PfIcons/registry.svg +4 -0
- package/icons/PfIcons/remove2.svg +4 -0
- package/icons/PfIcons/replicator.svg +4 -0
- package/icons/PfIcons/repository.svg +4 -0
- package/icons/PfIcons/resource-pool.svg +4 -0
- package/icons/PfIcons/resources-almost-empty.svg +4 -0
- package/icons/PfIcons/resources-almost-full.svg +4 -0
- package/icons/PfIcons/resources-empty.svg +4 -0
- package/icons/PfIcons/resources-full.svg +4 -0
- package/icons/PfIcons/running.svg +4 -0
- package/icons/PfIcons/save.svg +4 -0
- package/icons/PfIcons/screen.svg +4 -0
- package/icons/PfIcons/security.svg +4 -0
- package/icons/PfIcons/server-group.svg +4 -0
- package/icons/PfIcons/server.svg +4 -0
- package/icons/PfIcons/service-catalog.svg +4 -0
- package/icons/PfIcons/service.svg +4 -0
- package/icons/PfIcons/services.svg +4 -0
- package/icons/PfIcons/severity-critical.svg +4 -0
- package/icons/PfIcons/severity-important.svg +4 -0
- package/icons/PfIcons/severity-minor.svg +4 -0
- package/icons/PfIcons/severity-moderate.svg +4 -0
- package/icons/PfIcons/severity-none.svg +4 -0
- package/icons/PfIcons/severity-undefined.svg +4 -0
- package/icons/PfIcons/spinner.svg +4 -0
- package/icons/PfIcons/spinner2.svg +4 -0
- package/icons/PfIcons/storage-domain.svg +4 -0
- package/icons/PfIcons/task.svg +4 -0
- package/icons/PfIcons/tenant.svg +4 -0
- package/icons/PfIcons/thumb-tack.svg +4 -0
- package/icons/PfIcons/topology.svg +4 -0
- package/icons/PfIcons/treeview.svg +4 -0
- package/icons/PfIcons/trend-down.svg +4 -0
- package/icons/PfIcons/trend-up.svg +4 -0
- package/icons/PfIcons/unknown.svg +4 -0
- package/icons/PfIcons/unlocked.svg +4 -0
- package/icons/PfIcons/unplugged.svg +4 -0
- package/icons/PfIcons/user.svg +4 -0
- package/icons/PfIcons/users.svg +4 -0
- package/icons/PfIcons/virtual-machine.svg +4 -0
- package/icons/PfIcons/volume.svg +4 -0
- package/icons/PfIcons/warning-triangle.svg +4 -0
- package/icons/PfIcons/zone.svg +4 -0
- package/layouts/Flex/flex.scss +83 -19
- package/layouts/Gallery/gallery.css +6 -2
- package/layouts/_index.css +6 -2
- package/package.json +34 -16
- package/patternfly-base-no-globals.css +406 -14
- package/patternfly-base.css +413 -14
- package/patternfly-charts.css +3 -3
- package/patternfly-no-globals.css +1796 -573
- package/patternfly.css +1803 -573
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/functions.scss +32 -25
- package/sass-utilities/mixins.scss +36 -20
- package/sass-utilities/namespaces-components.scss +6 -0
|
@@ -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
|
-
|
|
33
|
-
|
|
34
|
-
@
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
@
|
|
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
|
|
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
|
|
55
|
-
$map: map
|
|
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
|
|
64
|
+
$map: map.merge($map, ($breakpoint: null));
|
|
58
65
|
} @else {
|
|
59
|
-
$map: map
|
|
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
|
|
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
|
|
78
|
-
$map: map
|
|
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
|
|
87
|
+
$map: map.merge($map, ($breakpoint: null));
|
|
81
88
|
} @else {
|
|
82
|
-
$map: map
|
|
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
|
|
99
|
-
$map: map
|
|
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
|
|
111
|
+
$map: map.merge($map, ($spacer: 0));
|
|
105
112
|
} @else {
|
|
106
|
-
$map: map
|
|
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
|
|
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:
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
460
|
+
@if $isClass {
|
|
461
|
+
$selector: "." + $selector;
|
|
462
|
+
}
|
|
447
463
|
#{$selector} {
|
|
448
464
|
@content
|
|
449
465
|
}
|
|
@@ -63,6 +63,9 @@ $code-block: #{$pf-prefix} + 'c-code-block';
|
|
|
63
63
|
// Code Editor
|
|
64
64
|
$code-editor: #{$pf-prefix} + 'c-code-editor';
|
|
65
65
|
|
|
66
|
+
// Compass
|
|
67
|
+
$compass: #{$pf-prefix} + 'c-compass';
|
|
68
|
+
|
|
66
69
|
// Content
|
|
67
70
|
$content: #{$pf-prefix} + 'c-content';
|
|
68
71
|
|
|
@@ -107,6 +110,9 @@ $form-control: #{$pf-prefix} + 'c-form-control';
|
|
|
107
110
|
// Helper Text
|
|
108
111
|
$helper-text: #{$pf-prefix} + 'c-helper-text';
|
|
109
112
|
|
|
113
|
+
// Hero
|
|
114
|
+
$hero: #{$pf-prefix} + 'c-hero';
|
|
115
|
+
|
|
110
116
|
// Hint
|
|
111
117
|
$hint: #{$pf-prefix} + 'c-hint';
|
|
112
118
|
|