@patternfly/patternfly 6.0.0-alpha.99 → 6.0.0-prerelease.2
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 -2
- package/assets/fontawesome/_animated.scss +1 -0
- package/assets/fontawesome/_bordered-pulled.scss +1 -0
- package/assets/fontawesome/_core.scss +2 -0
- package/assets/fontawesome/_fixed-width.scss +2 -0
- package/assets/fontawesome/_icons.scss +1 -0
- package/assets/fontawesome/_index.scss +12 -0
- package/assets/fontawesome/_larger.scss +4 -2
- package/assets/fontawesome/_list.scss +4 -2
- package/assets/fontawesome/_rotated-flipped.scss +2 -0
- package/assets/fontawesome/_screen-reader.scss +1 -0
- package/assets/fontawesome/_stacked.scss +3 -1
- package/assets/fontawesome/_variables.scss +3 -2
- package/assets/fontawesome/fontawesome.scss +12 -12
- package/assets/icons/iconUnicodes.json +6 -0
- package/assets/images/img_avatar-dark.svg +22 -16
- package/assets/images/img_avatar-light.svg +25 -18
- package/assets/images/pf-background.svg +21 -21
- package/assets/images/pf_logo.svg +11 -11
- package/assets/images/pf_logo_white.svg +16 -17
- package/assets/pficon/pf-v6-pficon.woff2 +0 -0
- package/assets/pficon/pficon.scss +310 -271
- package/base/_index.scss +10 -0
- package/base/{_globals.scss → normalize.scss} +15 -48
- package/base/patternfly-common.css +14 -0
- package/base/patternfly-common.scss +68 -2
- package/base/patternfly-fa-icons.css +1 -1
- package/base/patternfly-fa-icons.scss +35 -2
- package/base/patternfly-fonts.css +10 -80
- package/base/patternfly-fonts.scss +49 -2
- package/base/patternfly-pf-icons.css +158 -134
- package/base/patternfly-pf-icons.scss +1 -2
- package/base/patternfly-svg-icons.css +5 -0
- package/base/{_svg-icons.scss → patternfly-svg-icons.scss} +2 -0
- package/base/patternfly-variables.css +1082 -1206
- package/base/patternfly-variables.scss +20 -2
- package/base/reset.scss +33 -0
- package/base/tokens/_index.scss +6 -0
- package/base/tokens/tokens-charts-dark.scss +173 -0
- package/base/tokens/{_tokens-charts.scss → tokens-charts.scss} +162 -148
- package/base/tokens/{_tokens-dark.scss → tokens-dark.scss} +307 -294
- package/base/tokens/{_tokens-default.scss → tokens-default.scss} +574 -447
- package/base/tokens/{_tokens-font.scss → tokens-local.scss} +13 -34
- package/base/tokens/{_tokens-palette.scss → tokens-palette.scss} +69 -70
- package/components/AboutModalBox/about-modal-box.css +86 -81
- package/components/AboutModalBox/about-modal-box.scss +80 -82
- package/components/Accordion/accordion.css +44 -43
- package/components/Accordion/accordion.scss +52 -52
- package/components/ActionList/action-list.css +6 -5
- package/components/ActionList/action-list.scss +7 -5
- package/components/Alert/alert-group.css +72 -19
- package/components/Alert/alert-group.scss +105 -18
- package/components/Alert/alert.css +52 -59
- package/components/Alert/alert.scss +56 -65
- package/components/Avatar/avatar.css +42 -41
- package/components/Avatar/avatar.scss +8 -7
- package/components/BackToTop/back-to-top.css +19 -17
- package/components/BackToTop/back-to-top.scss +17 -17
- package/components/Backdrop/backdrop.css +1 -1
- package/components/Backdrop/backdrop.scss +3 -4
- package/components/BackgroundImage/background-image.scss +3 -4
- package/components/Badge/badge.css +29 -7
- package/components/Badge/badge.scss +33 -9
- package/components/Banner/banner.css +30 -37
- package/components/Banner/banner.scss +30 -43
- package/components/Brand/brand.css +14 -10
- package/components/Brand/brand.scss +8 -5
- package/components/Breadcrumb/breadcrumb.css +23 -24
- package/components/Breadcrumb/breadcrumb.scss +25 -28
- package/components/Button/button.css +150 -128
- package/components/Button/button.scss +155 -130
- package/components/CalendarMonth/calendar-month.css +46 -46
- package/components/CalendarMonth/calendar-month.scss +49 -50
- package/components/Card/card.css +110 -93
- package/components/Card/card.scss +118 -92
- package/components/Check/check.css +5 -5
- package/components/Check/check.scss +7 -8
- package/components/ClipboardCopy/clipboard-copy.css +33 -41
- package/components/ClipboardCopy/clipboard-copy.scss +35 -44
- package/components/CodeBlock/code-block.css +21 -20
- package/components/CodeBlock/code-block.scss +21 -21
- package/components/CodeEditor/code-editor.css +35 -34
- package/components/CodeEditor/code-editor.scss +35 -35
- package/components/Content/content.css +167 -153
- package/components/Content/content.scss +204 -145
- package/components/DataList/data-list-grid.css +117 -117
- package/components/DataList/data-list-grid.scss +22 -20
- package/components/DataList/data-list.css +308 -312
- package/components/DataList/data-list.scss +145 -152
- package/components/DatePicker/date-picker.css +17 -17
- package/components/DatePicker/date-picker.scss +17 -18
- package/components/DescriptionList/description-list-order.css +5 -5
- package/components/DescriptionList/description-list-order.scss +3 -1
- package/components/DescriptionList/description-list.css +46 -44
- package/components/DescriptionList/description-list.scss +26 -31
- package/components/Divider/divider.css +104 -107
- package/components/Divider/divider.scss +19 -19
- package/components/DragDrop/drag-drop.css +4 -2
- package/components/DragDrop/drag-drop.scss +3 -3
- package/components/Drawer/drawer.css +115 -114
- package/components/Drawer/drawer.scss +136 -134
- package/components/DualListSelector/dual-list-selector.css +64 -61
- package/components/DualListSelector/dual-list-selector.scss +54 -51
- package/components/EmptyState/empty-state.css +38 -37
- package/components/EmptyState/empty-state.scss +39 -39
- package/components/ExpandableSection/expandable-section.css +27 -86
- package/components/ExpandableSection/expandable-section.scss +32 -101
- package/components/FileUpload/file-upload.css +2 -2
- package/components/FileUpload/file-upload.scss +2 -3
- package/components/Form/form.css +173 -115
- package/components/Form/form.scss +117 -103
- package/components/FormControl/form-control.css +57 -57
- package/components/FormControl/form-control.scss +69 -67
- package/components/HelperText/helper-text.css +5 -4
- package/components/HelperText/helper-text.scss +8 -6
- package/components/Hint/hint.css +25 -25
- package/components/Hint/hint.scss +25 -27
- package/components/Icon/icon.css +10 -10
- package/components/Icon/icon.scss +11 -12
- package/components/InlineEdit/inline-edit.css +12 -12
- package/components/InlineEdit/inline-edit.scss +12 -13
- package/components/InputGroup/input-group.css +16 -16
- package/components/InputGroup/input-group.scss +18 -19
- package/components/JumpLinks/jump-links.css +80 -96
- package/components/JumpLinks/jump-links.scss +80 -100
- package/components/Label/label-group.css +28 -28
- package/components/Label/label-group.scss +29 -30
- package/components/Label/label.css +102 -87
- package/components/Label/label.scss +113 -94
- package/components/List/list.css +44 -47
- package/components/List/list.scss +51 -58
- package/components/Login/login.css +122 -118
- package/components/Login/login.scss +105 -112
- package/components/Masthead/masthead.css +273 -175
- package/components/Masthead/masthead.scss +102 -68
- package/components/Menu/menu.css +151 -95
- package/components/Menu/menu.scss +59 -40
- package/components/MenuToggle/menu-toggle.css +129 -108
- package/components/MenuToggle/menu-toggle.scss +150 -128
- package/components/ModalBox/modal-box.css +53 -45
- package/components/ModalBox/modal-box.scss +52 -46
- package/components/MultipleFileUpload/multiple-file-upload.css +37 -37
- package/components/MultipleFileUpload/multiple-file-upload.scss +38 -39
- package/components/Nav/nav.css +33 -9
- package/components/Nav/nav.scss +46 -13
- package/components/NotificationDrawer/notification-drawer.css +50 -51
- package/components/NotificationDrawer/notification-drawer.scss +58 -57
- package/components/NumberInput/number-input.css +7 -11
- package/components/NumberInput/number-input.scss +5 -7
- package/components/OverflowMenu/overflow-menu.css +2 -1
- package/components/OverflowMenu/overflow-menu.scss +3 -1
- package/components/Page/page.css +175 -519
- package/components/Page/page.scss +155 -386
- package/components/Pagination/pagination.css +82 -79
- package/components/Pagination/pagination.scss +43 -40
- package/components/Panel/panel.css +33 -30
- package/components/Panel/panel.scss +35 -33
- package/components/Popover/popover.css +54 -52
- package/components/Popover/popover.scss +55 -54
- package/components/Progress/progress.css +8 -4
- package/components/Progress/progress.scss +14 -11
- package/components/ProgressStepper/progress-stepper.css +246 -245
- package/components/ProgressStepper/progress-stepper.scss +118 -118
- package/components/Radio/radio.css +7 -7
- package/components/Radio/radio.scss +9 -10
- package/components/Sidebar/sidebar.css +139 -139
- package/components/Sidebar/sidebar.scss +61 -61
- package/components/SimpleList/simple-list.css +21 -20
- package/components/SimpleList/simple-list.scss +22 -23
- package/components/Skeleton/skeleton.css +4 -4
- package/components/Skeleton/skeleton.scss +7 -8
- package/components/SkipToContent/skip-to-content.css +7 -6
- package/components/SkipToContent/skip-to-content.scss +7 -7
- package/components/Slider/slider.css +31 -31
- package/components/Slider/slider.scss +54 -55
- package/components/Spinner/spinner.scss +4 -5
- package/components/Switch/switch.css +4 -10
- package/components/Switch/switch.scss +8 -17
- package/components/TabContent/tab-content.css +25 -25
- package/components/TabContent/tab-content.scss +28 -28
- package/components/Table/table-grid.css +434 -508
- package/components/Table/table-grid.scss +131 -150
- package/components/Table/table-scrollable.css +31 -34
- package/components/Table/table-scrollable.scss +44 -41
- package/components/Table/table-tree-view.css +287 -279
- package/components/Table/table-tree-view.scss +84 -84
- package/components/Table/table.css +316 -279
- package/components/Table/table.scss +346 -301
- package/components/Tabs/tabs.css +215 -240
- package/components/Tabs/tabs.scss +130 -162
- package/components/TextInputGroup/text-input-group.css +122 -64
- package/components/TextInputGroup/text-input-group.scss +144 -87
- package/components/Tile/tile.css +15 -15
- package/components/Tile/tile.scss +16 -17
- package/components/Timestamp/timestamp.css +13 -19
- package/components/Timestamp/timestamp.scss +16 -22
- package/components/Title/title.css +14 -13
- package/components/Title/title.scss +15 -15
- package/components/ToggleGroup/toggle-group.css +37 -37
- package/components/ToggleGroup/toggle-group.scss +38 -41
- package/components/Toolbar/toolbar.css +547 -1431
- package/components/Toolbar/toolbar.scss +159 -123
- package/components/Tooltip/tooltip.css +28 -27
- package/components/Tooltip/tooltip.scss +31 -30
- package/components/TreeView/tree-view.css +184 -184
- package/components/TreeView/tree-view.scss +133 -133
- package/components/Truncate/truncate.css +2 -2
- package/components/Truncate/truncate.scss +7 -8
- package/components/Wizard/wizard.css +190 -154
- package/components/Wizard/wizard.scss +211 -165
- package/components/_index.css +22378 -0
- package/components/_index.scss +82 -0
- package/docs/components/AboutModalBox/examples/AboutModalBox.md +3 -1
- package/docs/components/Accordion/examples/Accordion.md +1 -1
- package/docs/components/ActionList/examples/ActionList.md +64 -24
- package/docs/components/Alert/examples/Alert.md +116 -74
- package/docs/components/BackToTop/examples/BackToTop.md +1 -1
- package/docs/components/Badge/examples/Badge.md +6 -16
- package/docs/components/Banner/examples/Banner.md +16 -10
- package/docs/components/Brand/examples/Brand.md +2 -2
- package/docs/components/Breadcrumb/examples/Breadcrumb.md +19 -59
- package/docs/components/Button/examples/Button.md +537 -368
- package/docs/components/CalendarMonth/examples/CalendarMonth.md +24 -8
- package/docs/components/Card/examples/Card.md +372 -658
- package/docs/components/Check/examples/Check.md +10 -15
- package/docs/components/ClipboardCopy/examples/ClipboardCopy.md +92 -47
- package/docs/components/CodeBlock/examples/CodeBlock.md +51 -28
- package/docs/components/CodeEditor/examples/CodeEditor.md +41 -22
- package/docs/components/Content/examples/Content.md +600 -60
- package/docs/components/DataList/examples/DataList.md +291 -1028
- package/docs/components/DatePicker/examples/DatePicker.md +18 -6
- package/docs/components/DescriptionList/examples/DescriptionList.md +80 -55
- package/docs/components/Drawer/examples/Drawer.md +60 -21
- package/docs/components/DualListSelector/examples/DualListSelector.md +364 -996
- package/docs/components/EmptyState/examples/EmptyState.md +123 -53
- package/docs/components/ExpandableSection/examples/ExpandableSection.md +96 -91
- package/docs/components/FileUpload/examples/FileUpload.md +42 -14
- package/docs/components/Form/examples/Form.md +100 -26
- package/docs/components/Hint/examples/Hint.md +54 -164
- package/docs/components/InlineEdit/examples/InlineEdit.md +132 -45
- package/docs/components/InputGroup/examples/InputGroup.md +38 -62
- package/docs/components/JumpLinks/examples/JumpLinks.md +189 -72
- package/docs/components/Label/examples/Label.md +2577 -406
- package/docs/components/Login/examples/Login.md +372 -334
- package/docs/components/Masthead/examples/masthead.md +515 -484
- package/docs/components/Menu/examples/Menu.md +77 -138
- package/docs/components/MenuToggle/examples/MenuToggle.md +289 -39
- package/docs/components/ModalBox/examples/ModalBox.md +158 -100
- package/docs/components/MultipleFileUpload/examples/MultipleFileUpload.md +137 -97
- package/docs/components/Nav/examples/Navigation.css +2 -7
- package/docs/components/Nav/examples/Navigation.md +337 -270
- package/docs/components/NotificationDrawer/examples/NotificationDrawer.md +515 -2076
- package/docs/components/NumberInput/examples/NumberInput.md +96 -48
- package/docs/components/OverflowMenu/examples/overflow-menu.css +4 -28
- package/docs/components/OverflowMenu/examples/overflow-menu.md +104 -159
- package/docs/components/Page/examples/Page.css +5 -9
- package/docs/components/Page/examples/Page.md +254 -181
- package/docs/components/Pagination/examples/Pagination.md +336 -756
- package/docs/components/Panel/examples/Panel.md +3 -2
- package/docs/components/Popover/examples/Popover.md +60 -15
- package/docs/components/ProgressStepper/examples/ProgressStepper.md +15 -15
- package/docs/components/Sidebar/examples/Sidebar.css +4 -2
- package/docs/components/Sidebar/examples/Sidebar.md +3 -3
- package/docs/components/Skeleton/examples/Skeleton.css +1 -1
- package/docs/components/SkipToContent/examples/SkipToContent.md +3 -1
- package/docs/components/Slider/examples/Slider.md +53 -45
- package/docs/components/Spinner/examples/Spinner.md +1 -1
- package/docs/components/Switch/examples/Switch.md +33 -148
- package/docs/components/Table/examples/Table.css +11 -6
- package/docs/components/Table/examples/Table.md +5302 -2464
- package/docs/components/Tabs/examples/Tabs.md +1267 -607
- package/docs/components/TextInputGroup/examples/TextInputGroup.css +8 -3
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +469 -278
- package/docs/components/Tile/examples/Tile.css +5 -5
- package/docs/components/Timestamp/examples/Timestamp.md +7 -1
- package/docs/components/ToggleGroup/examples/toggle-group.md +1 -3
- package/docs/components/Toolbar/examples/Toolbar.css +50 -39
- package/docs/components/Toolbar/examples/Toolbar.md +1562 -1200
- package/docs/components/Tooltip/examples/Tooltip.css +1 -1
- package/docs/components/TreeView/examples/TreeView.md +627 -49
- package/docs/components/Truncate/examples/Truncate.css +1 -2
- package/docs/components/Wizard/examples/Wizard.md +1595 -126
- package/docs/demos/AboutModal/examples/AboutModal.md +191 -198
- package/docs/demos/Alert/examples/Alert.md +924 -909
- package/docs/demos/BackToTop/examples/BackToTop.md +318 -327
- package/docs/demos/Banner/examples/Banner.md +641 -659
- package/docs/demos/Button/examples/Button.md +8 -8
- package/docs/demos/Card/examples/Card.css +6 -6
- package/docs/demos/Card/examples/Card.md +419 -606
- package/docs/demos/CardView/examples/CardView.md +822 -1435
- package/docs/demos/Dashboard/examples/Dashboard.md +1308 -1442
- package/docs/demos/DataList/examples/DataList.md +3210 -3424
- package/docs/demos/DescriptionList/examples/DescriptionList.md +899 -937
- package/docs/demos/Drawer/examples/Drawer.md +1165 -1176
- package/docs/demos/Form/examples/BasicForms.md +153 -88
- package/docs/demos/JumpLinks/examples/JumpLinks.md +1710 -1602
- package/docs/demos/Masthead/examples/Masthead.md +1719 -1583
- package/docs/demos/Modal/examples/Modal.md +1231 -1235
- package/docs/demos/Nav/examples/Nav.md +1216 -1230
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +1910 -4577
- package/docs/demos/Page/examples/Page.css +11 -0
- package/docs/demos/Page/examples/Page.md +3753 -2540
- package/docs/demos/Panel/Panel.md +88 -0
- package/docs/demos/PasswordGenerator/examples/PasswordGenerator.md +9 -3
- package/docs/demos/PasswordStrength/examples/PasswordStrength.md +16 -48
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +5150 -6255
- package/docs/demos/Skeleton/examples/Skeleton.md +297 -304
- package/docs/demos/Table/examples/Table.md +14272 -15154
- package/docs/demos/Tabs/examples/Tabs.md +2821 -2891
- package/docs/demos/Toolbar/examples/Toolbar.css +10 -18
- package/docs/demos/Toolbar/examples/Toolbar.md +2487 -2663
- package/docs/demos/Wizard/examples/Wizard.md +3021 -2784
- package/docs/layouts/Bullseye/examples/Bullseye.css +4 -4
- package/docs/layouts/Flex/examples/Flex.css +4 -4
- package/docs/layouts/Flex/examples/Flex.md +50 -50
- package/docs/layouts/Gallery/examples/Gallery.css +4 -4
- package/docs/layouts/Gallery/examples/Gallery.md +6 -6
- package/docs/layouts/Grid/examples/Grid.css +3 -3
- package/docs/layouts/Grid/examples/Grid.md +33 -33
- package/docs/layouts/Level/examples/Level.css +5 -5
- package/docs/layouts/Split/examples/Split.css +4 -4
- package/docs/layouts/Stack/examples/Stack.css +5 -5
- package/docs/utilities/Accessibility/examples/Accessibility.md +2 -2
- package/docs/utilities/Alignment/examples/Alignment.css +6 -6
- package/docs/utilities/Alignment/examples/Alignment.md +5 -5
- package/docs/utilities/BackgroundColor/examples/BackgroundColor.md +7 -67
- package/docs/utilities/BoxShadow/examples/box-shadow.css +11 -11
- package/docs/utilities/BoxShadow/examples/box-shadow.md +15 -38
- package/docs/utilities/Display/examples/Display.css +3 -10
- package/docs/utilities/Display/examples/Display.md +21 -12
- package/docs/utilities/Flex/examples/Flex.css +7 -7
- package/docs/utilities/Flex/examples/Flex.md +82 -40
- package/docs/utilities/Float/examples/Float.css +5 -5
- package/docs/utilities/Float/examples/Float.md +6 -6
- package/docs/utilities/Sizing/examples/Sizing.css +6 -6
- package/docs/utilities/Sizing/examples/Sizing.md +60 -60
- package/docs/utilities/Spacing/examples/Spacing.css +3 -3
- package/docs/utilities/Spacing/examples/Spacing.md +37 -37
- package/docs/utilities/Text/examples/Text.md +78 -77
- package/icons/pficons.mjs +6 -0
- package/layouts/Bullseye/bullseye.css +4 -0
- package/layouts/Bullseye/bullseye.scss +5 -1
- package/layouts/Flex/flex.css +241 -237
- package/layouts/Flex/flex.scss +48 -44
- package/layouts/Gallery/gallery.css +15 -11
- package/layouts/Gallery/gallery.scss +9 -5
- package/layouts/Grid/grid.css +20 -16
- package/layouts/Grid/grid.scss +12 -8
- package/layouts/Level/level.css +5 -1
- package/layouts/Level/level.scss +6 -2
- package/layouts/Split/split.css +5 -1
- package/layouts/Split/split.scss +6 -2
- package/layouts/Stack/stack.css +5 -1
- package/layouts/Stack/stack.scss +6 -2
- package/layouts/_index.css +3461 -0
- package/layouts/_index.scss +8 -0
- package/package.json +39 -39
- package/patternfly-addons.css +2071 -2648
- package/patternfly-addons.scss +2 -12
- package/patternfly-base-no-globals.css +1429 -1645
- package/patternfly-base-no-globals.scss +5 -3
- package/patternfly-base.css +1511 -1723
- package/patternfly-base.scss +2 -6
- package/patternfly-charts.css +579 -240
- package/patternfly-charts.scss +352 -337
- package/patternfly-no-globals.css +19895 -23410
- package/patternfly-no-globals.scss +5 -4
- package/patternfly.css +19999 -23510
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/patternfly.scss +3 -4
- package/sass-utilities/_index.scss +6 -0
- package/sass-utilities/functions.scss +25 -25
- package/sass-utilities/{_init.scss → init.scss} +6 -6
- package/sass-utilities/mixins.scss +108 -72
- package/sass-utilities/{component-namespaces.scss → namespaces-components.scss} +3 -27
- package/sass-utilities/{layout-namespaces.scss → namespaces-layouts.scss} +3 -1
- package/sass-utilities/scss-variables.scss +49 -261
- package/utilities/Accessibility/accessibility.css +15 -15
- package/utilities/Accessibility/accessibility.scss +8 -6
- package/utilities/Alignment/alignment.css +29 -29
- package/utilities/Alignment/alignment.scss +6 -4
- package/utilities/BackgroundColor/background-color.css +67 -0
- package/utilities/BackgroundColor/background-color.scss +16 -0
- package/utilities/BoxShadow/box-shadow.css +15 -39
- package/utilities/BoxShadow/box-shadow.scss +19 -28
- package/utilities/Display/display.css +43 -5
- package/utilities/Display/display.scss +7 -4
- package/utilities/Flex/flex.css +50 -50
- package/utilities/Flex/flex.scss +21 -20
- package/utilities/Float/float.css +29 -29
- package/utilities/Float/float.scss +6 -6
- package/utilities/Sizing/sizing.css +58 -58
- package/utilities/Sizing/sizing.scss +23 -21
- package/utilities/Spacing/spacing.css +1372 -1372
- package/utilities/Spacing/spacing.scss +6 -6
- package/utilities/Text/text.css +419 -662
- package/utilities/Text/text.scss +81 -107
- package/utilities/_index.css +7815 -0
- package/utilities/_index.scss +10 -0
- package/assets/images/pf-logo-small.svg +0 -23
- package/assets/images/pf_logo_white.hbs +0 -35
- package/assets/images/pfbg-icon.svg +0 -1
- package/assets/pficon/pf-v5-pficon.woff2 +0 -0
- package/base/_base.scss +0 -2
- package/base/_chart-globals.scss +0 -415
- package/base/_common.scss +0 -50
- package/base/_fa-icons.scss +0 -33
- package/base/_fonts.scss +0 -136
- package/base/_icons.scss +0 -3
- package/base/_pficons.scss +0 -2
- package/base/_themes.scss +0 -43
- package/base/_variables.scss +0 -299
- package/base/patternfly-globals.css +0 -120
- package/base/patternfly-globals.scss +0 -2
- package/base/patternfly-icons.css +0 -4728
- package/base/patternfly-icons.scss +0 -2
- package/base/patternfly-themes.css +0 -82
- package/base/patternfly-themes.scss +0 -2
- package/base/themes/dark/_chart-globals.scss +0 -42
- package/base/themes/dark/_globals.scss +0 -5
- package/base/tokens/_workspace-overrides.scss +0 -7
- package/components/AppLauncher/app-launcher.css +0 -244
- package/components/AppLauncher/app-launcher.scss +0 -308
- package/components/AppLauncher/themes/dark/app-launcher.scss +0 -13
- package/components/Chip/chip-group.css +0 -93
- package/components/Chip/chip-group.scss +0 -98
- package/components/Chip/chip.css +0 -122
- package/components/Chip/chip.scss +0 -140
- package/components/Chip/themes/dark/chip.scss +0 -9
- package/components/ContextSelector/context-selector.css +0 -336
- package/components/ContextSelector/context-selector.scss +0 -384
- package/components/ContextSelector/themes/dark/context-selector.scss +0 -24
- package/components/Dropdown/dropdown.css +0 -686
- package/components/Dropdown/dropdown.scss +0 -820
- package/components/Dropdown/themes/dark/dropdown.scss +0 -32
- package/components/LogViewer/log-viewer.css +0 -197
- package/components/LogViewer/log-viewer.scss +0 -226
- package/components/LogViewer/themes/dark/log-viewer.scss +0 -7
- package/components/NotificationBadge/notification-badge.css +0 -87
- package/components/NotificationBadge/notification-badge.scss +0 -108
- package/components/OptionsMenu/options-menu.css +0 -279
- package/components/OptionsMenu/options-menu.scss +0 -332
- package/components/OptionsMenu/themes/dark/options-menu.scss +0 -21
- package/components/Select/select.css +0 -599
- package/components/Select/select.scss +0 -713
- package/components/Select/themes/dark/select.scss +0 -23
- package/components/_all.scss +0 -91
- package/docs/components/AppLauncher/deprecated/application-launcher.css +0 -25
- package/docs/components/AppLauncher/deprecated/application-launcher.md +0 -792
- package/docs/components/Breadcrumb/examples/Breadcrumb.css +0 -3
- package/docs/components/Chip/examples/Chip.md +0 -846
- package/docs/components/ContextSelector/deprecated/context-selector.css +0 -7
- package/docs/components/ContextSelector/deprecated/context-selector.md +0 -909
- package/docs/components/Dropdown/deprecated/Dropdown.css +0 -64
- package/docs/components/Dropdown/deprecated/Dropdown.md +0 -2920
- package/docs/components/LogViewer/examples/LogViewer.css +0 -17
- package/docs/components/LogViewer/examples/LogViewer.md +0 -5936
- package/docs/components/NotificationBadge/examples/NotificationBadge.md +0 -222
- package/docs/components/OptionsMenu/deprecated/options-menu.css +0 -25
- package/docs/components/OptionsMenu/deprecated/options-menu.md +0 -1014
- package/docs/components/Page/deprecated/PageHeader.css +0 -17
- package/docs/components/Page/deprecated/PageHeader.md +0 -261
- package/docs/components/Pagination/examples/Pagination.css +0 -3
- package/docs/components/Select/deprecated/Select.css +0 -56
- package/docs/components/Select/deprecated/Select.md +0 -3525
- package/docs/components/Tabs/examples/Tabs.css +0 -10
- package/docs/components/ToggleGroup/examples/toggle-group.css +0 -4
- package/docs/demos/ContextSelector/examples/ContextSelector.md +0 -1712
- package/docs/demos/Page/examples/Penta.md +0 -821
- package/docs/utilities/Text/examples/Text.css +0 -0
- package/layouts/_all.scss +0 -7
- package/patternfly-base-no-globals-theme-dark-unversioned.css +0 -6276
- package/patternfly-base-no-globals-theme-dark-unversioned.scss +0 -11
- package/patternfly-base-theme-dark-unversioned.css +0 -6393
- package/patternfly-base-theme-dark-unversioned.scss +0 -5
- package/patternfly-charts-theme-dark-unversioned.css +0 -70
- package/patternfly-charts-theme-dark-unversioned.scss +0 -8
- package/patternfly-charts-theme-dark.css +0 -70
- package/patternfly-charts-theme-dark.scss +0 -8
- package/patternfly-theme-dark-unversioned.css +0 -35533
- package/patternfly-theme-dark-unversioned.scss +0 -6
- package/patternfly-theme-dark.css +0 -0
- package/patternfly-theme-dark.scss +0 -1
- package/sass-utilities/_all.scss +0 -9
- package/sass-utilities/colors.scss +0 -82
- package/sass-utilities/div.import.scss +0 -3
- package/sass-utilities/div.scss +0 -4
- package/sass-utilities/placeholders.scss +0 -72
- package/sass-utilities/themes/dark/_all.scss +0 -4
- package/sass-utilities/themes/dark/colors.scss +0 -16
- package/sass-utilities/themes/dark/mixins.scss +0 -7
- package/sass-utilities/themes/dark/placeholders.scss +0 -5
- package/sass-utilities/themes/dark/scss-variables.scss +0 -92
- package/themes/dark/_patternfly-charts-theme-dark.scss +0 -98
- package/utilities/BackgroundColor/BackgroundColor.css +0 -414
- package/utilities/BackgroundColor/BackgroundColor.scss +0 -64
- package/utilities/BackgroundColor/themes/dark/BackgroundColor.css +0 -0
- package/utilities/BackgroundColor/themes/dark/BackgroundColor.scss +0 -25
- package/utilities/Text/themes/dark/text.css +0 -0
- package/utilities/Text/themes/dark/text.scss +0 -33
package/patternfly.scss
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@import "layouts/all";
|
|
1
|
+
@use './patternfly-base';
|
|
2
|
+
@use './components';
|
|
3
|
+
@use './layouts';
|
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
// PatternFly functions
|
|
2
2
|
// --------------------------------------------------
|
|
3
|
-
@
|
|
3
|
+
@use '../sass-utilities/scss-variables.scss' as *;
|
|
4
|
+
@use '../sass-utilities/init.scss' as *;
|
|
5
|
+
@use 'sass:math';
|
|
4
6
|
|
|
5
7
|
// Transform px to rems
|
|
6
8
|
@function pf-strip-unit($num) {
|
|
7
|
-
@
|
|
8
|
-
|
|
9
|
+
@if type-of($num) == 'number' and not unitless($num) {
|
|
10
|
+
@return math.div($num, ($num * 0 + 1));
|
|
11
|
+
}
|
|
9
12
|
|
|
10
|
-
@
|
|
11
|
-
@return div(pf-strip-unit($pxval), $base) * 1rem;
|
|
13
|
+
@return $num;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
|
-
@function pf-
|
|
15
|
-
@return div(pf-strip-unit($pxval), $base) * 1rem;
|
|
16
|
+
@function pf-size-prem($pxval, $base: $pf-v6-global--space-size-root) {
|
|
17
|
+
@return math.div(pf-strip-unit($pxval), $base) * 1rem;
|
|
16
18
|
}
|
|
17
19
|
|
|
18
|
-
@function pf-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
@return url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 #{$viewBox} 512'%3E%3Cpath fill='%23#{$color}' d='#{$svg-coordinates}'/%3E%3C/svg%3E");
|
|
20
|
+
@function pf-font-prem($pxval, $base: $pf-v6-global--font-size-root) {
|
|
21
|
+
@return math.div(pf-strip-unit($pxval), $base) * 1rem;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
// Return (width) breakpoint value if it exists
|
|
25
|
-
@function pf-breakpoint-value($breakpoint, $breakpoint-map: $pf-
|
|
25
|
+
@function pf-breakpoint-value($breakpoint, $breakpoint-map: $pf-v6-global--breakpoint-name-map) {
|
|
26
26
|
$breakpoint-value: if(map-has-key($breakpoint-map, #{$breakpoint}), map-get($breakpoint-map, #{$breakpoint}), false);
|
|
27
27
|
|
|
28
28
|
@return #{$breakpoint-value};
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
// Return height breakpoint value if it exists
|
|
32
|
-
@function pf-height-breakpoint-value($height-breakpoint, $height-breakpoint-map: $pf-
|
|
32
|
+
@function pf-height-breakpoint-value($height-breakpoint, $height-breakpoint-map: $pf-v6-global--height-breakpoint-name-map) {
|
|
33
33
|
$height-breakpoint-value: if(map-has-key($height-breakpoint-map, #{$height-breakpoint}), map-get($height-breakpoint-map, #{$height-breakpoint}), false);
|
|
34
34
|
|
|
35
35
|
@return #{$height-breakpoint-value};
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
// Build breakpoint map
|
|
39
|
-
// Based on $pf-
|
|
39
|
+
// Based on $pf-v6-global--breakpoint-name-map
|
|
40
40
|
@function build-breakpoint-map($map-items...) {
|
|
41
41
|
$map: ();
|
|
42
42
|
|
|
43
43
|
@if length($map-items) == 0 {
|
|
44
44
|
$map: ("base": null);
|
|
45
|
-
$map: map-merge($map, $pf-
|
|
45
|
+
$map: map-merge($map, $pf-v6-global--breakpoint-name-map);
|
|
46
46
|
} @else {
|
|
47
47
|
@each $breakpoint in $map-items {
|
|
48
|
-
@if not map-has-key($pf-
|
|
48
|
+
@if not map-has-key($pf-v6-global--breakpoint-name-map, $breakpoint) and $breakpoint != "base" {
|
|
49
49
|
$map: map-merge($map, ("invalid breakpoint #{$breakpoint}": null));
|
|
50
50
|
} @else if $breakpoint == "base" {
|
|
51
51
|
$map: map-merge($map, ($breakpoint: null));
|
|
52
52
|
} @else {
|
|
53
|
-
$map: map-merge($map, ($breakpoint: map-get($pf-
|
|
53
|
+
$map: map-merge($map, ($breakpoint: map-get($pf-v6-global--breakpoint-name-map, #{$breakpoint})));
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
}
|
|
@@ -59,21 +59,21 @@
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
// Build height breakpoint map
|
|
62
|
-
// Based on $pf-
|
|
62
|
+
// Based on $pf-v6-global--height-breakpoint-name-map
|
|
63
63
|
@function build-height-breakpoint-map($map-items...) {
|
|
64
64
|
$map: ();
|
|
65
65
|
|
|
66
66
|
@if length($map-items) == 0 {
|
|
67
67
|
$map: ("base": null);
|
|
68
|
-
$map: map-merge($map, $pf-
|
|
68
|
+
$map: map-merge($map, $pf-v6-global--height-breakpoint-name-map);
|
|
69
69
|
} @else {
|
|
70
70
|
@each $breakpoint in $map-items {
|
|
71
|
-
@if not map-has-key($pf-
|
|
71
|
+
@if not map-has-key($pf-v6-global--height-breakpoint-name-map, $breakpoint) and $breakpoint != "base" {
|
|
72
72
|
$map: map-merge($map, ("invalid breakpoint #{$breakpoint}": null));
|
|
73
73
|
} @else if $breakpoint == "base" {
|
|
74
74
|
$map: map-merge($map, ($breakpoint: null));
|
|
75
75
|
} @else {
|
|
76
|
-
$map: map-merge($map, ($breakpoint: map-get($pf-
|
|
76
|
+
$map: map-merge($map, ($breakpoint: map-get($pf-v6-global--height-breakpoint-name-map, #{$breakpoint})));
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -83,13 +83,13 @@
|
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
// Build spacer map
|
|
86
|
-
// Based on $pf-
|
|
86
|
+
// Based on $pf-v6-global--spacer-map
|
|
87
87
|
@function build-spacer-map($map-items...) {
|
|
88
88
|
$map: ();
|
|
89
89
|
|
|
90
90
|
@if length($map-items) == 0 {
|
|
91
91
|
$map: ("none": 0);
|
|
92
|
-
$map: map-merge($map, $pf-
|
|
92
|
+
$map: map-merge($map, $pf-v6-global--spacer-map);
|
|
93
93
|
$map: map-remove($map, "auto", "0");
|
|
94
94
|
}
|
|
95
95
|
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
@if $spacer == "none" {
|
|
98
98
|
$map: map-merge($map, ($spacer: 0));
|
|
99
99
|
} @else {
|
|
100
|
-
$map: map-merge($map, ($spacer: map-get($pf-
|
|
100
|
+
$map: map-merge($map, ($spacer: map-get($pf-v6-global--spacer-map, #{$spacer})));
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
|
|
@@ -118,6 +118,6 @@
|
|
|
118
118
|
|
|
119
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
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-
|
|
121
|
+
@function pf-v6-calc-inverse($val, $multiplier: var(--#{$pf-global}--inverse--multiplier)) {
|
|
122
122
|
@return calc(#{$val} * #{$multiplier});
|
|
123
123
|
}
|
|
@@ -23,11 +23,11 @@ $pf-global--theme-light--placeholder--class: 't-light' !default;
|
|
|
23
23
|
// stylelint-enable
|
|
24
24
|
|
|
25
25
|
// Dark theme versioned variables
|
|
26
|
-
$pf-
|
|
27
|
-
$pf-
|
|
28
|
-
$pf-
|
|
26
|
+
$pf-v6--theme-dark--class: '.' + #{$pf-global--theme--namespace} + #{$pf-global--theme--version} + #{$pf-global--theme-dark--class} !default; // include the operator here
|
|
27
|
+
$pf-v6--theme-dark--target: '' !default; // include the operator here
|
|
28
|
+
$pf-v6--theme-dark--placeholder--class: '.' + #{$pf-global--theme--namespace} + #{$pf-global--theme--version} + #{$pf-global--theme-dark--placeholder--class} !default; // include the operator here
|
|
29
29
|
|
|
30
30
|
// Light theme versioned variables
|
|
31
|
-
$pf-
|
|
32
|
-
$pf-
|
|
33
|
-
$pf-
|
|
31
|
+
$pf-v6--theme-light--class: '.' + #{$pf-global--theme--namespace} + #{$pf-global--theme--version} + #{$pf-global--theme-light--class} !default; // include the operator here
|
|
32
|
+
$pf-v6--theme-light--target: '' !default; // include the operator here
|
|
33
|
+
$pf-v6--theme-light--placeholder--class: '.' + #{$pf-global--theme--namespace} + #{$pf-global--theme--version} + #{$pf-global--theme-light--placeholder--class} !default; // include the operator here
|
|
@@ -1,52 +1,56 @@
|
|
|
1
|
+
@use '../sass-utilities/functions.scss' as *;
|
|
2
|
+
@use '../sass-utilities/init.scss' as *;
|
|
3
|
+
@use '../sass-utilities/scss-variables.scss' as *;
|
|
4
|
+
|
|
1
5
|
// Media query used to create responsive classes
|
|
2
|
-
@mixin pf-
|
|
6
|
+
@mixin pf-v6-media-query($point) {
|
|
3
7
|
@if $point == "" or not $point or $point == "base" {
|
|
4
8
|
@content;
|
|
5
9
|
} @else if $point == "sm" {
|
|
6
|
-
@media screen and (min-width: $pf-
|
|
10
|
+
@media screen and (min-width: $pf-v6-global--breakpoint--sm) {
|
|
7
11
|
@content;
|
|
8
12
|
}
|
|
9
13
|
} @else if $point == "md" {
|
|
10
|
-
@media screen and (min-width: $pf-
|
|
14
|
+
@media screen and (min-width: $pf-v6-global--breakpoint--md) {
|
|
11
15
|
@content;
|
|
12
16
|
}
|
|
13
17
|
} @else if $point == "lg" {
|
|
14
|
-
@media screen and (min-width: $pf-
|
|
18
|
+
@media screen and (min-width: $pf-v6-global--breakpoint--lg) {
|
|
15
19
|
@content;
|
|
16
20
|
}
|
|
17
21
|
} @else if $point == "xl" {
|
|
18
|
-
@media screen and (min-width: $pf-
|
|
22
|
+
@media screen and (min-width: $pf-v6-global--breakpoint--xl) {
|
|
19
23
|
@content;
|
|
20
24
|
}
|
|
21
25
|
} @else if $point == "2xl" {
|
|
22
|
-
@media screen and (min-width: $pf-
|
|
26
|
+
@media screen and (min-width: $pf-v6-global--breakpoint--2xl) {
|
|
23
27
|
@content;
|
|
24
28
|
}
|
|
25
29
|
}
|
|
26
30
|
}
|
|
27
31
|
|
|
28
32
|
// Media query used to create responsive classes
|
|
29
|
-
@mixin pf-
|
|
33
|
+
@mixin pf-v6-height-media-query($point) {
|
|
30
34
|
@if $point == "" or not $point or $point == "base" {
|
|
31
35
|
@content;
|
|
32
36
|
} @else if $point == "sm" {
|
|
33
|
-
@media screen and (min-height: $pf-
|
|
37
|
+
@media screen and (min-height: $pf-v6-global--height-breakpoint--sm) {
|
|
34
38
|
@content;
|
|
35
39
|
}
|
|
36
40
|
} @else if $point == "md" {
|
|
37
|
-
@media screen and (min-height: $pf-
|
|
41
|
+
@media screen and (min-height: $pf-v6-global--height-breakpoint--md) {
|
|
38
42
|
@content;
|
|
39
43
|
}
|
|
40
44
|
} @else if $point == "lg" {
|
|
41
|
-
@media screen and (min-height: $pf-
|
|
45
|
+
@media screen and (min-height: $pf-v6-global--height-breakpoint--lg) {
|
|
42
46
|
@content;
|
|
43
47
|
}
|
|
44
48
|
} @else if $point == "xl" {
|
|
45
|
-
@media screen and (min-height: $pf-
|
|
49
|
+
@media screen and (min-height: $pf-v6-global--height-breakpoint--xl) {
|
|
46
50
|
@content;
|
|
47
51
|
}
|
|
48
52
|
} @else if $point == "2xl" {
|
|
49
|
-
@media screen and (min-height: $pf-
|
|
53
|
+
@media screen and (min-height: $pf-v6-global--height-breakpoint--2xl) {
|
|
50
54
|
@content;
|
|
51
55
|
}
|
|
52
56
|
}
|
|
@@ -56,35 +60,34 @@
|
|
|
56
60
|
// @group mixins
|
|
57
61
|
// @moduleType mixin
|
|
58
62
|
// @parameter: [Suffix] xs, sm, md, lg, xl, base or null
|
|
59
|
-
// @usage: @include pf-
|
|
63
|
+
// @usage: @include pf-v6-utility-builder(class-name, base sm md lg xl);
|
|
60
64
|
// ===============================================================================================
|
|
61
65
|
|
|
62
66
|
// ## Example sass map:
|
|
63
67
|
// this must be used when order matters or a cluster of similar utilties need to overwrite each other
|
|
64
68
|
|
|
65
69
|
// Justify content options
|
|
66
|
-
// $pf-
|
|
70
|
+
// $pf-v6-u-flex-options: (
|
|
67
71
|
// flex-none: (flex none),
|
|
68
72
|
// flex-1: (flex 1)
|
|
69
73
|
// );
|
|
70
74
|
|
|
71
|
-
// non-responsive, base only @include pf-
|
|
72
|
-
// responsive, including all breakpoints @include pf-
|
|
73
|
-
// responsive height breakpoints @include pf-
|
|
75
|
+
// non-responsive, base only @include pf-v6-utility-builder($sass-map)
|
|
76
|
+
// responsive, including all breakpoints @include pf-v6-utility-builder($sass-map, $pf-v6-global--breakpoint-list)
|
|
77
|
+
// responsive height breakpoints @include pf-v6-utility-builder($sass-map, $pf-v6-global--height-breakpoint-list, 'height')
|
|
74
78
|
|
|
75
79
|
// ## Passing individual utilities values
|
|
76
80
|
// ===============================================================================================
|
|
77
81
|
// Example individual utility:
|
|
78
|
-
// @include pf-
|
|
79
|
-
|
|
80
|
-
@mixin pf-v5-utility-builder($props, $breakpoints: null, $direction: "width") {
|
|
82
|
+
// @include pf-v6-utility-builder(flex-fill flex "1 1 auto", $pf-v6-global--breakpoint-list);
|
|
83
|
+
@mixin pf-v6-utility-builder($props, $breakpoints: null, $direction: 'width') {
|
|
81
84
|
// if $class-name is a map
|
|
82
85
|
|
|
83
86
|
// stylelint-disable
|
|
84
87
|
@if type-of($props) == map {
|
|
85
88
|
@each $class, $val in $props {
|
|
86
89
|
$property: nth($val, 1);
|
|
87
|
-
$value: #{nth($val, 2) !important
|
|
90
|
+
$value: #{nth($val, 2)} !important;
|
|
88
91
|
|
|
89
92
|
.#{$pf-prefix}u-#{$class} {
|
|
90
93
|
#{$property}: #{$value};
|
|
@@ -97,10 +100,10 @@
|
|
|
97
100
|
$suffix: -on-#{$breakpoint};
|
|
98
101
|
|
|
99
102
|
@if $direction == 'height' {
|
|
100
|
-
@include pf-
|
|
103
|
+
@include pf-v6-height-media-query($breakpoint) {
|
|
101
104
|
@each $class, $val in $props {
|
|
102
105
|
$property: nth($val, 1);
|
|
103
|
-
$value: #{nth($val, 2) !important
|
|
106
|
+
$value: #{nth($val, 2)} !important;
|
|
104
107
|
|
|
105
108
|
.#{$pf-prefix}u-#{$class}#{$suffix}-height {
|
|
106
109
|
#{$property}: #{$value};
|
|
@@ -108,11 +111,11 @@
|
|
|
108
111
|
}
|
|
109
112
|
}
|
|
110
113
|
}
|
|
111
|
-
@else if $direction == 'width' {
|
|
112
|
-
@include pf-
|
|
114
|
+
@else if ($direction == 'width') {
|
|
115
|
+
@include pf-v6-media-query($breakpoint) {
|
|
113
116
|
@each $class, $val in $props {
|
|
114
117
|
$property: nth($val, 1);
|
|
115
|
-
$value: #{nth($val, 2) !important
|
|
118
|
+
$value: #{nth($val, 2)} !important;
|
|
116
119
|
|
|
117
120
|
.#{$pf-prefix}u-#{$class}#{$suffix} {
|
|
118
121
|
#{$property}: #{$value};
|
|
@@ -123,7 +126,6 @@
|
|
|
123
126
|
}
|
|
124
127
|
}
|
|
125
128
|
}
|
|
126
|
-
|
|
127
129
|
@else if type-of($props) == list {
|
|
128
130
|
$class: nth($props, 1);
|
|
129
131
|
$property: nth($props, 2);
|
|
@@ -138,7 +140,7 @@
|
|
|
138
140
|
$suffix: -on-#{$breakpoint};
|
|
139
141
|
|
|
140
142
|
.#{$pf-prefix}u-#{$class}#{$suffix} {
|
|
141
|
-
@include pf-
|
|
143
|
+
@include pf-v6-media-query($breakpoint) {
|
|
142
144
|
#{$property}: #{$value};
|
|
143
145
|
}
|
|
144
146
|
}
|
|
@@ -149,17 +151,17 @@
|
|
|
149
151
|
|
|
150
152
|
// stylelint-enable
|
|
151
153
|
|
|
152
|
-
@mixin pf-
|
|
154
|
+
@mixin pf-v6-u-screen-reader {
|
|
153
155
|
position: fixed;
|
|
154
|
-
|
|
155
|
-
|
|
156
|
+
inset-block-start: 0;
|
|
157
|
+
inset-inline-start: 0;
|
|
156
158
|
overflow: hidden;
|
|
157
159
|
clip: rect(0, 0, 0, 0);
|
|
158
160
|
white-space: nowrap;
|
|
159
161
|
border: 0;
|
|
160
162
|
}
|
|
161
163
|
|
|
162
|
-
@mixin pf-
|
|
164
|
+
@mixin pf-v6-u-visible {
|
|
163
165
|
position: static;
|
|
164
166
|
overflow: visible;
|
|
165
167
|
clip: auto;
|
|
@@ -167,27 +169,13 @@
|
|
|
167
169
|
border: inherit;
|
|
168
170
|
}
|
|
169
171
|
|
|
170
|
-
@mixin pf-
|
|
171
|
-
@if $color {
|
|
172
|
-
color: var(#{$color});
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
@extend %pf-v5-t-light;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
@mixin pf-v5-t-dark($color: "--#{$pf-global}--Color--100") {
|
|
179
|
-
color: var(#{$color});
|
|
180
|
-
|
|
181
|
-
@extend %pf-v5-t-dark;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
@mixin pf-v5-text-overflow {
|
|
172
|
+
@mixin pf-v6-text-overflow {
|
|
185
173
|
overflow: hidden;
|
|
186
174
|
text-overflow: ellipsis;
|
|
187
175
|
white-space: nowrap;
|
|
188
176
|
}
|
|
189
177
|
|
|
190
|
-
@mixin pf-
|
|
178
|
+
@mixin pf-v6-line-clamp($line-clamp-val: 1) {
|
|
191
179
|
// stylelint-disable
|
|
192
180
|
display: -webkit-box;
|
|
193
181
|
-webkit-box-orient: vertical;
|
|
@@ -196,7 +184,7 @@
|
|
|
196
184
|
overflow: hidden;
|
|
197
185
|
}
|
|
198
186
|
|
|
199
|
-
@mixin pf-
|
|
187
|
+
@mixin pf-v6-overflow-hide-scroll {
|
|
200
188
|
&::-webkit-scrollbar {
|
|
201
189
|
display: none;
|
|
202
190
|
} // hides scrollbars in Chrome
|
|
@@ -205,15 +193,44 @@
|
|
|
205
193
|
-ms-overflow-style: -ms-autohiding-scrollbar; // auto hides scrollbars in Edge
|
|
206
194
|
}
|
|
207
195
|
|
|
208
|
-
@mixin pf-
|
|
196
|
+
@mixin pf-v6-hidden-visible($val: "block") {
|
|
209
197
|
// stylelint-disable-next-line
|
|
210
|
-
|
|
198
|
+
--#{$pf-prefix}hidden-visible--visible--Display: #{$val};
|
|
199
|
+
|
|
200
|
+
// base value for visible display property is set to 'block' by default and passed in to
|
|
201
|
+
// placeholder via `pf-v6-hidden-visible` mixin
|
|
202
|
+
|
|
203
|
+
// set hidden var values
|
|
204
|
+
// stylelint-disable custom-property-pattern
|
|
205
|
+
--#{$pf-prefix}hidden-visible--hidden--Display: none;
|
|
206
|
+
|
|
207
|
+
// set visibile var values
|
|
208
|
+
--#{$pf-prefix}hidden-visible--Display: var(--#{$pf-prefix}hidden-visible--visible--Display);
|
|
209
|
+
|
|
210
|
+
// set default state to visible
|
|
211
|
+
display: var(--#{$pf-prefix}hidden-visible--Display);
|
|
212
|
+
|
|
213
|
+
// toggle values based on state
|
|
214
|
+
&.pf-m-hidden {
|
|
215
|
+
--#{$pf-prefix}hidden-visible--Display: var(--#{$pf-prefix}hidden-visible--hidden--Display);
|
|
216
|
+
}
|
|
211
217
|
|
|
212
|
-
@
|
|
218
|
+
@each $size, $bp in $pf-v6-global--breakpoint-name-map {
|
|
219
|
+
@media screen and (min-width: $bp) {
|
|
220
|
+
&.pf-m-hidden-on-#{$size} {
|
|
221
|
+
--#{$pf-prefix}hidden-visible--Display: var(--#{$pf-prefix}hidden-visible--hidden--Display);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
&.pf-m-visible-on-#{$size} {
|
|
225
|
+
--#{$pf-prefix}hidden-visible--Display: var(--#{$pf-prefix}hidden-visible--visible--Display);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
// stylelint-enable
|
|
213
230
|
}
|
|
214
231
|
|
|
215
232
|
// Apply media query if value is passed
|
|
216
|
-
@mixin pf-
|
|
233
|
+
@mixin pf-v6-apply-breakpoint($breakpoint) {
|
|
217
234
|
@if $breakpoint == "null" or $breakpoint == "base" or $breakpoint == "" {
|
|
218
235
|
@content;
|
|
219
236
|
} @else {
|
|
@@ -226,7 +243,7 @@
|
|
|
226
243
|
}
|
|
227
244
|
|
|
228
245
|
// Apply height media query if value is passed
|
|
229
|
-
@mixin pf-
|
|
246
|
+
@mixin pf-v6-apply-height-breakpoint($breakpoint) {
|
|
230
247
|
@if $breakpoint == "null" or $breakpoint == "base" or $breakpoint == "" {
|
|
231
248
|
@content;
|
|
232
249
|
} @else {
|
|
@@ -238,14 +255,14 @@
|
|
|
238
255
|
}
|
|
239
256
|
}
|
|
240
257
|
|
|
241
|
-
@mixin pf-
|
|
258
|
+
@mixin pf-v6-emit-properties($map) {
|
|
242
259
|
@each $prop, $value in $map {
|
|
243
260
|
#{$value}: #{$prop};
|
|
244
261
|
}
|
|
245
262
|
}
|
|
246
263
|
|
|
247
264
|
// Animate tab focus removal
|
|
248
|
-
@mixin pf-
|
|
265
|
+
@mixin pf-v6-animate-remove-tab-focus($element, $delay: $pf-v6-global--TransitionDuration) {
|
|
249
266
|
@keyframes pf-remove-tab-focus {
|
|
250
267
|
to {
|
|
251
268
|
visibility: hidden;
|
|
@@ -260,7 +277,7 @@
|
|
|
260
277
|
}
|
|
261
278
|
|
|
262
279
|
// Build variable stack
|
|
263
|
-
@mixin pf-
|
|
280
|
+
@mixin pf-v6-build-css-variable-stack($prop, $css-var, $breakpoint-map: $pf-v6-global--breakpoint-map, $important: false) {
|
|
264
281
|
$list: ();
|
|
265
282
|
|
|
266
283
|
@each $breakpoint, $breakpoint-value in $breakpoint-map {
|
|
@@ -283,7 +300,7 @@
|
|
|
283
300
|
}
|
|
284
301
|
|
|
285
302
|
// Assign variable stack to $prop
|
|
286
|
-
@include pf-
|
|
303
|
+
@include pf-v6-apply-breakpoint($breakpoint) {
|
|
287
304
|
@if $important == true {
|
|
288
305
|
// stylelint-disable declaration-no-important
|
|
289
306
|
#{$prop}: #{$variable-list} !important;
|
|
@@ -296,7 +313,7 @@
|
|
|
296
313
|
}
|
|
297
314
|
|
|
298
315
|
// Build variable stack
|
|
299
|
-
@mixin pf-
|
|
316
|
+
@mixin pf-v6-output-root-variables($css-var, $breakpoint-map: $pf-v6-global--breakpoint-map) {
|
|
300
317
|
$list: ();
|
|
301
318
|
|
|
302
319
|
@each $breakpoint, $breakpoint-value in $breakpoint-map {
|
|
@@ -314,13 +331,13 @@
|
|
|
314
331
|
}
|
|
315
332
|
|
|
316
333
|
// Dark theme style block
|
|
317
|
-
@mixin pf-
|
|
334
|
+
@mixin pf-v6-theme-dark($theme-dark-class: $pf-v6--theme-dark--class, $theme-dark-target: $pf-v6--theme-dark--target) {
|
|
318
335
|
#{$theme-dark-target}:where(#{$theme-dark-class}) {
|
|
319
336
|
@content;
|
|
320
337
|
}
|
|
321
338
|
}
|
|
322
339
|
|
|
323
|
-
@mixin pf-
|
|
340
|
+
@mixin pf-v6-construct-global-vars($prefix: $pf-prefix--version, $maps...) {
|
|
324
341
|
@each $map in $maps {
|
|
325
342
|
@each $name, $val in $map {
|
|
326
343
|
#{$prefix}#{$name}: #{$val};
|
|
@@ -328,11 +345,23 @@
|
|
|
328
345
|
}
|
|
329
346
|
}
|
|
330
347
|
|
|
348
|
+
@mixin pf-v6-remove-num-arrows {
|
|
349
|
+
appearance: textfield;
|
|
350
|
+
|
|
351
|
+
// stylelint-disable
|
|
352
|
+
&::-webkit-inner-spin-button,
|
|
353
|
+
&::-webkit-outer-spin-button {
|
|
354
|
+
// stylelint-enable
|
|
355
|
+
margin: 0;
|
|
356
|
+
appearance: none;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
331
360
|
// RTL helpers
|
|
332
361
|
|
|
333
362
|
// Used to create the RTL selector for RTL specific styles
|
|
334
363
|
|
|
335
|
-
// @include pf-
|
|
364
|
+
// @include pf-v6-rtl {
|
|
336
365
|
// background: red;
|
|
337
366
|
// }
|
|
338
367
|
|
|
@@ -341,14 +370,14 @@
|
|
|
341
370
|
// [dir="rtl"] {
|
|
342
371
|
// background: red;
|
|
343
372
|
// }
|
|
344
|
-
@mixin pf-
|
|
373
|
+
@mixin pf-v6-rtl {
|
|
345
374
|
@at-root :where(.#{$pf-prefix}m-dir-rtl, [dir="rtl"]) #{&} {
|
|
346
375
|
@content;
|
|
347
376
|
}
|
|
348
377
|
}
|
|
349
378
|
|
|
350
379
|
// Used to create the LTR selector for LTR specific styles
|
|
351
|
-
@mixin pf-
|
|
380
|
+
@mixin pf-v6-ltr {
|
|
352
381
|
@at-root :where(.#{$pf-prefix}m-dir-ltr, [dir="ltr"]) #{&} {
|
|
353
382
|
@content;
|
|
354
383
|
}
|
|
@@ -356,7 +385,7 @@
|
|
|
356
385
|
|
|
357
386
|
// Creates a default/LTR declaration, and an RTL declaration.
|
|
358
387
|
|
|
359
|
-
// @include pf-
|
|
388
|
+
// @include pf-v6-bidirectional-style(background, blue, red)
|
|
360
389
|
|
|
361
390
|
// renders as
|
|
362
391
|
|
|
@@ -364,26 +393,33 @@
|
|
|
364
393
|
// [dir="rtl"] {
|
|
365
394
|
// background: red;
|
|
366
395
|
// }
|
|
367
|
-
@mixin pf-
|
|
396
|
+
@mixin pf-v6-bidirectional-style($prop, $ltr-val, $rtl-val) {
|
|
368
397
|
#{$prop}: #{$ltr-val};
|
|
369
398
|
|
|
370
|
-
@include pf-
|
|
399
|
+
@include pf-v6-rtl {
|
|
371
400
|
#{$prop}: #{$rtl-val};
|
|
372
401
|
}
|
|
373
402
|
}
|
|
374
403
|
|
|
375
404
|
// 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().
|
|
376
|
-
@mixin pf-
|
|
405
|
+
@mixin pf-v6-mirror-inline {
|
|
377
406
|
scale: -1 1;
|
|
378
407
|
}
|
|
379
408
|
|
|
380
|
-
@mixin pf-
|
|
381
|
-
@include pf-
|
|
382
|
-
@include pf-
|
|
409
|
+
@mixin pf-v6-mirror-inline-on-rtl {
|
|
410
|
+
@include pf-v6-rtl {
|
|
411
|
+
@include pf-v6-mirror-inline;
|
|
383
412
|
}
|
|
384
413
|
}
|
|
385
414
|
|
|
386
415
|
// 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.
|
|
387
|
-
@mixin pf-
|
|
416
|
+
@mixin pf-v6-set-inverse($val: true) {
|
|
388
417
|
--#{$pf-global}--inverse--multiplier: #{if($val, -1, 1)};
|
|
389
418
|
}
|
|
419
|
+
|
|
420
|
+
@mixin pf-root($selector, $mods: null) {
|
|
421
|
+
:root,
|
|
422
|
+
.#{$selector} {
|
|
423
|
+
@content
|
|
424
|
+
}
|
|
425
|
+
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use '../sass-utilities/init.scss' as *;
|
|
2
|
+
@use '../sass-utilities/scss-variables.scss' as *;
|
|
3
|
+
|
|
1
4
|
// Globally scoped component variables
|
|
2
5
|
// About Modal Box
|
|
3
6
|
// stylelint-disable scss/dollar-variable-pattern
|
|
@@ -15,9 +18,6 @@ $alert: #{$pf-prefix} + 'c-alert';
|
|
|
15
18
|
// Alert Group
|
|
16
19
|
$alert-group: #{$pf-prefix} + 'c-alert-group';
|
|
17
20
|
|
|
18
|
-
// App Launcher
|
|
19
|
-
$app-launcher: #{$pf-prefix} + 'c-app-launcher';
|
|
20
|
-
|
|
21
21
|
// Avatar
|
|
22
22
|
$avatar: #{$pf-prefix} + 'c-avatar';
|
|
23
23
|
|
|
@@ -54,12 +54,6 @@ $card: #{$pf-prefix} + 'c-card';
|
|
|
54
54
|
// Check
|
|
55
55
|
$check: #{$pf-prefix} + 'c-check';
|
|
56
56
|
|
|
57
|
-
// Chip
|
|
58
|
-
$chip: #{$pf-prefix} + 'c-chip';
|
|
59
|
-
|
|
60
|
-
// Chip Group
|
|
61
|
-
$chip-group: #{$pf-prefix} + 'c-chip-group';
|
|
62
|
-
|
|
63
57
|
// Clipboard Copy
|
|
64
58
|
$clipboard-copy: #{$pf-prefix} + 'c-clipboard-copy';
|
|
65
59
|
|
|
@@ -72,9 +66,6 @@ $code-editor: #{$pf-prefix} + 'c-code-editor';
|
|
|
72
66
|
// Content
|
|
73
67
|
$content: #{$pf-prefix} + 'c-content';
|
|
74
68
|
|
|
75
|
-
// Context Selector
|
|
76
|
-
$context-selector: #{$pf-prefix} + 'c-context-selector';
|
|
77
|
-
|
|
78
69
|
// Data List
|
|
79
70
|
$data-list: #{$pf-prefix} + 'c-data-list';
|
|
80
71
|
|
|
@@ -95,9 +86,6 @@ $droppable: #{$pf-prefix} + 'c-droppable';
|
|
|
95
86
|
// Drawer
|
|
96
87
|
$drawer: #{$pf-prefix} + 'c-drawer';
|
|
97
88
|
|
|
98
|
-
// Dropdown
|
|
99
|
-
$dropdown: #{$pf-prefix} + 'c-dropdown';
|
|
100
|
-
|
|
101
89
|
// Dual List Selector
|
|
102
90
|
$dual-list-selector: #{$pf-prefix} + 'c-dual-list-selector';
|
|
103
91
|
|
|
@@ -146,9 +134,6 @@ $list: #{$pf-prefix} + 'c-list';
|
|
|
146
134
|
// Login
|
|
147
135
|
$login: #{$pf-prefix} + 'c-login';
|
|
148
136
|
|
|
149
|
-
// Log Viewer
|
|
150
|
-
$log-viewer: #{$pf-prefix} + 'c-log-viewer';
|
|
151
|
-
|
|
152
137
|
// Masthead
|
|
153
138
|
$masthead: #{$pf-prefix} + 'c-masthead';
|
|
154
139
|
|
|
@@ -167,18 +152,12 @@ $multiple-file-upload: #{$pf-prefix} + 'c-multiple-file-upload';
|
|
|
167
152
|
// Nav
|
|
168
153
|
$nav: #{$pf-prefix} + 'c-nav';
|
|
169
154
|
|
|
170
|
-
// Notification Badge
|
|
171
|
-
$notification-badge: #{$pf-prefix} + 'c-notification-badge';
|
|
172
|
-
|
|
173
155
|
// Notification Drawer
|
|
174
156
|
$notification-drawer: #{$pf-prefix} + 'c-notification-drawer';
|
|
175
157
|
|
|
176
158
|
// Number Input
|
|
177
159
|
$number-input: #{$pf-prefix} + 'c-number-input';
|
|
178
160
|
|
|
179
|
-
// Options Menu
|
|
180
|
-
$options-menu: #{$pf-prefix} + 'c-options-menu';
|
|
181
|
-
|
|
182
161
|
// Overflow Menu
|
|
183
162
|
$overflow-menu: #{$pf-prefix} + 'c-overflow-menu';
|
|
184
163
|
|
|
@@ -203,9 +182,6 @@ $progress-stepper: #{$pf-prefix} + 'c-progress-stepper';
|
|
|
203
182
|
// Radio
|
|
204
183
|
$radio: #{$pf-prefix} + 'c-radio';
|
|
205
184
|
|
|
206
|
-
// Select
|
|
207
|
-
$select: #{$pf-prefix} + 'c-select';
|
|
208
|
-
|
|
209
185
|
// Sidebar
|
|
210
186
|
$sidebar: #{$pf-prefix} + 'c-sidebar';
|
|
211
187
|
|