@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.
Files changed (338) hide show
  1. package/README.md +1 -1
  2. package/assets/fontawesome/_variables.scss +2 -1
  3. package/assets/images/RHAiExperienceIcon.svg +27 -0
  4. package/assets/images/RHAutomationsLogo.svg +96 -0
  5. package/assets/images/RHServerStackIcon.svg +16 -0
  6. package/assets/images/compass--hero-bg.png +0 -0
  7. package/assets/images/compass--rh-wallpaper-dark.png +0 -0
  8. package/assets/images/compass--rh-wallpaper-light.png +0 -0
  9. package/assets/images/compass--wallpaper-dark.png +0 -0
  10. package/assets/images/compass--wallpaper-light.png +0 -0
  11. package/base/normalize.scss +7 -0
  12. package/base/patternfly-common.css +50 -0
  13. package/base/patternfly-common.scss +59 -0
  14. package/base/patternfly-svg-icons.css +11 -0
  15. package/base/patternfly-svg-icons.scss +14 -0
  16. package/base/patternfly-variables.css +345 -14
  17. package/base/patternfly-variables.scss +40 -0
  18. package/base/tokens/tokens-dark.scss +51 -3
  19. package/base/tokens/tokens-default.scss +67 -13
  20. package/base/tokens/tokens-glass-dark.scss +9 -0
  21. package/base/tokens/tokens-glass.scss +9 -0
  22. package/base/tokens/tokens-local.scss +16 -0
  23. package/base/tokens/tokens-palette.scss +3 -1
  24. package/base/tokens/tokens-redhat-dark.scss +14 -0
  25. package/base/tokens/tokens-redhat-glass-dark.scss +16 -0
  26. package/base/tokens/tokens-redhat-glass.scss +15 -0
  27. package/base/tokens/tokens-redhat-highcontrast-dark.scss +47 -0
  28. package/base/tokens/tokens-redhat-highcontrast.scss +127 -0
  29. package/base/tokens/tokens-redhat.scss +15 -0
  30. package/components/AboutModalBox/about-modal-box.css +36 -26
  31. package/components/Accordion/accordion.css +16 -13
  32. package/components/Accordion/accordion.scss +0 -1
  33. package/components/ActionList/action-list.css +2 -0
  34. package/components/ActionList/action-list.scss +2 -0
  35. package/components/Alert/alert.css +5 -4
  36. package/components/Avatar/avatar.css +12 -4
  37. package/components/BackgroundImage/background-image.css +6 -3
  38. package/components/Banner/banner.css +8 -6
  39. package/components/Brand/brand.css +3 -1
  40. package/components/Breadcrumb/breadcrumb.css +4 -3
  41. package/components/Button/button.css +39 -9
  42. package/components/Button/button.scss +40 -4
  43. package/components/CalendarMonth/calendar-month.css +4 -3
  44. package/components/Card/card.css +19 -6
  45. package/components/Card/card.scss +15 -1
  46. package/components/ClipboardCopy/clipboard-copy.css +4 -3
  47. package/components/CodeEditor/code-editor.css +1 -1
  48. package/components/CodeEditor/code-editor.scss +1 -1
  49. package/components/Compass/compass.css +320 -0
  50. package/components/Compass/compass.scss +349 -0
  51. package/components/DataList/data-list.css +33 -22
  52. package/components/DataList/data-list.scss +6 -1
  53. package/components/DescriptionList/description-list-order.scss +5 -1
  54. package/components/DescriptionList/description-list.css +7 -5
  55. package/components/DescriptionList/description-list.scss +5 -1
  56. package/components/Divider/divider.css +7 -5
  57. package/components/Drawer/drawer.css +110 -56
  58. package/components/Drawer/drawer.scss +69 -9
  59. package/components/DualListSelector/dual-list-selector.css +17 -11
  60. package/components/ExpandableSection/expandable-section.css +19 -14
  61. package/components/ExpandableSection/expandable-section.scss +4 -1
  62. package/components/Form/form.css +1 -1
  63. package/components/Form/form.scss +1 -1
  64. package/components/FormControl/form-control.css +1 -1
  65. package/components/FormControl/form-control.scss +1 -1
  66. package/components/Hero/hero.css +74 -0
  67. package/components/Hero/hero.scss +86 -0
  68. package/components/JumpLinks/jump-links.css +4 -3
  69. package/components/JumpLinks/jump-links.scss +5 -1
  70. package/components/Label/label-group.css +2 -2
  71. package/components/Label/label-group.scss +2 -2
  72. package/components/Label/label.css +4 -3
  73. package/components/Login/login.css +51 -37
  74. package/components/Masthead/masthead.css +70 -16
  75. package/components/Masthead/masthead.scss +54 -1
  76. package/components/Menu/menu.css +23 -14
  77. package/components/MenuToggle/menu-toggle.css +4 -0
  78. package/components/MenuToggle/menu-toggle.scss +5 -0
  79. package/components/ModalBox/modal-box.css +9 -7
  80. package/components/ModalBox/modal-box.scss +2 -2
  81. package/components/Nav/nav.css +72 -9
  82. package/components/Nav/nav.scss +75 -3
  83. package/components/NotificationDrawer/notification-drawer.css +8 -6
  84. package/components/NotificationDrawer/notification-drawer.scss +2 -0
  85. package/components/Page/page.css +55 -29
  86. package/components/Page/page.scss +44 -5
  87. package/components/Pagination/pagination.scss +5 -1
  88. package/components/ProgressStepper/progress-stepper.scss +5 -1
  89. package/components/Sidebar/sidebar.css +1 -1
  90. package/components/Sidebar/sidebar.scss +7 -3
  91. package/components/Skeleton/skeleton.css +16 -15
  92. package/components/Slider/slider.css +32 -18
  93. package/components/Switch/switch.css +3 -1
  94. package/components/Table/table-grid.css +28 -36
  95. package/components/Table/table-grid.scss +4 -4
  96. package/components/Table/table-tree-view.css +4 -2
  97. package/components/Table/table.css +31 -27
  98. package/components/Tabs/tabs.css +33 -16
  99. package/components/Tabs/tabs.scss +33 -5
  100. package/components/Toolbar/toolbar.css +46 -14
  101. package/components/Toolbar/toolbar.scss +33 -5
  102. package/components/TreeView/tree-view.css +44 -13
  103. package/components/TreeView/tree-view.scss +31 -0
  104. package/components/Wizard/wizard.css +20 -16
  105. package/components/Wizard/wizard.scss +3 -3
  106. package/components/_index.css +1460 -633
  107. package/components/_index.scss +3 -1
  108. package/docs/components/Avatar/examples/Avatar.md +4 -4
  109. package/docs/components/Brand/examples/Brand.md +2 -2
  110. package/docs/components/Button/examples/Button.md +116 -0
  111. package/docs/components/Card/examples/Card.md +154 -0
  112. package/docs/components/Compass/examples/Compass.css +17 -0
  113. package/docs/components/Compass/examples/Compass.md +118 -0
  114. package/docs/components/DataList/examples/DataList.md +184 -188
  115. package/docs/components/DescriptionList/examples/DescriptionList.md +2 -2
  116. package/docs/components/Divider/examples/Divider.md +2 -2
  117. package/docs/components/Drawer/examples/Drawer.md +83 -17
  118. package/docs/components/Hero/examples/Hero.md +25 -0
  119. package/docs/components/Icon/examples/Icon.md +1 -1
  120. package/docs/components/InputGroup/examples/InputGroup.md +1 -1
  121. package/docs/components/JumpLinks/examples/JumpLinks.md +2 -2
  122. package/docs/components/Masthead/examples/masthead.md +68 -1
  123. package/docs/components/Menu/examples/Menu.md +2 -2
  124. package/docs/components/MenuToggle/examples/MenuToggle.md +40 -0
  125. package/docs/components/ModalBox/examples/ModalBox.md +1 -1
  126. package/docs/components/Nav/examples/Navigation.md +44 -0
  127. package/docs/components/Page/examples/Page.md +39 -2
  128. package/docs/components/Pagination/examples/Pagination.md +3 -3
  129. package/docs/components/ProgressStepper/examples/ProgressStepper.md +2 -2
  130. package/docs/components/Sidebar/examples/Sidebar.md +1 -1
  131. package/docs/components/Table/examples/Table.md +4 -3
  132. package/docs/components/Tabs/examples/Tabs.md +998 -83
  133. package/docs/components/Toolbar/examples/Toolbar.md +35 -7
  134. package/docs/components/TreeView/examples/TreeView.md +38 -26
  135. package/docs/components/Wizard/examples/Wizard.md +15 -15
  136. package/docs/demos/AboutModal/examples/AboutModal.md +5 -5
  137. package/docs/demos/Alert/examples/Alert.md +15 -15
  138. package/docs/demos/BackToTop/examples/BackToTop.md +5 -5
  139. package/docs/demos/Banner/examples/Banner.md +10 -10
  140. package/docs/demos/Card/examples/Card.md +14 -2
  141. package/docs/demos/CardView/examples/CardView.md +5 -5
  142. package/docs/demos/Compass/examples/Compass.md +6470 -0
  143. package/docs/demos/Dashboard/examples/Dashboard.md +6 -9
  144. package/docs/demos/DataList/examples/DataList.md +20 -23
  145. package/docs/demos/DescriptionList/examples/DescriptionList.md +57 -50
  146. package/docs/demos/Drawer/examples/Drawer.md +67 -60
  147. package/docs/demos/JumpLinks/examples/JumpLinks.md +30 -30
  148. package/docs/demos/Masthead/examples/Masthead.md +55 -58
  149. package/docs/demos/Modal/examples/Modal.md +30 -33
  150. package/docs/demos/Nav/examples/Nav.md +299 -62
  151. package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +25 -25
  152. package/docs/demos/Page/examples/Page.md +70 -79
  153. package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +178 -200
  154. package/docs/demos/Skeleton/examples/Skeleton.md +5 -5
  155. package/docs/demos/Table/examples/Table.md +1922 -78
  156. package/docs/demos/Tabs/examples/Tabs.md +102 -39
  157. package/docs/demos/Toolbar/examples/Toolbar.md +10 -10
  158. package/docs/demos/Wizard/examples/Wizard.md +76 -82
  159. package/docs/layouts/Bullseye/examples/Bullseye.css +2 -2
  160. package/docs/layouts/Bullseye/examples/Bullseye.md +2 -1
  161. package/docs/layouts/Flex/examples/Flex.css +3 -3
  162. package/docs/layouts/Flex/examples/Flex.md +3 -2
  163. package/docs/layouts/Gallery/examples/Gallery.css +2 -2
  164. package/docs/layouts/Gallery/examples/Gallery.md +4 -3
  165. package/docs/layouts/Grid/examples/Grid.css +1 -1
  166. package/docs/layouts/Grid/examples/Grid.md +6 -5
  167. package/docs/layouts/Level/examples/Level.css +3 -3
  168. package/docs/layouts/Level/examples/Level.md +2 -1
  169. package/docs/layouts/Split/examples/Split.css +1 -1
  170. package/docs/layouts/Split/examples/Split.md +2 -1
  171. package/docs/layouts/Stack/examples/Stack.css +3 -3
  172. package/docs/layouts/Stack/examples/Stack.md +2 -1
  173. package/docs/utilities/Accessibility/examples/Accessibility.md +3 -2
  174. package/docs/utilities/Alignment/examples/Alignment.css +4 -4
  175. package/docs/utilities/Alignment/examples/Alignment.md +3 -2
  176. package/docs/utilities/BackgroundColor/examples/BackgroundColor.md +5 -4
  177. package/docs/utilities/BoxShadow/examples/box-shadow.css +2 -2
  178. package/docs/utilities/BoxShadow/examples/box-shadow.md +2 -1
  179. package/docs/utilities/Display/examples/Display.css +1 -1
  180. package/docs/utilities/Display/examples/Display.md +3 -2
  181. package/docs/utilities/Flex/examples/Flex.css +7 -7
  182. package/docs/utilities/Flex/examples/Flex.md +3 -2
  183. package/docs/utilities/Float/examples/Float.css +2 -2
  184. package/docs/utilities/Float/examples/Float.md +3 -2
  185. package/docs/utilities/Sizing/examples/Sizing.md +8 -7
  186. package/docs/utilities/Spacing/examples/Spacing.css +2 -2
  187. package/docs/utilities/Spacing/examples/Spacing.md +3 -2
  188. package/docs/utilities/Text/examples/Text.md +5 -4
  189. package/icons/PfIcons/add-circle-o.svg +4 -0
  190. package/icons/PfIcons/ansible-tower.svg +4 -0
  191. package/icons/PfIcons/applications.svg +4 -0
  192. package/icons/PfIcons/arrow.svg +4 -0
  193. package/icons/PfIcons/asleep.svg +4 -0
  194. package/icons/PfIcons/attention-bell.svg +4 -0
  195. package/icons/PfIcons/automation.svg +4 -0
  196. package/icons/PfIcons/bell.svg +4 -0
  197. package/icons/PfIcons/blueprint.svg +4 -0
  198. package/icons/PfIcons/build.svg +4 -0
  199. package/icons/PfIcons/builder-image.svg +4 -0
  200. package/icons/PfIcons/bundle.svg +4 -0
  201. package/icons/PfIcons/catalog.svg +4 -0
  202. package/icons/PfIcons/chat.svg +4 -0
  203. package/icons/PfIcons/close.svg +4 -0
  204. package/icons/PfIcons/cloud-security.svg +4 -0
  205. package/icons/PfIcons/cloud-tenant.svg +4 -0
  206. package/icons/PfIcons/cluster.svg +4 -0
  207. package/icons/PfIcons/connected.svg +4 -0
  208. package/icons/PfIcons/container-node.svg +4 -0
  209. package/icons/PfIcons/cpu.svg +4 -0
  210. package/icons/PfIcons/critical-risk.svg +4 -0
  211. package/icons/PfIcons/data-processor.svg +4 -0
  212. package/icons/PfIcons/data-sink.svg +4 -0
  213. package/icons/PfIcons/data-source.svg +4 -0
  214. package/icons/PfIcons/degraded.svg +4 -0
  215. package/icons/PfIcons/disconnected.svg +4 -0
  216. package/icons/PfIcons/domain.svg +4 -0
  217. package/icons/PfIcons/edit.svg +4 -0
  218. package/icons/PfIcons/enhancement.svg +4 -0
  219. package/icons/PfIcons/enterprise.svg +4 -0
  220. package/icons/PfIcons/equalizer.svg +4 -0
  221. package/icons/PfIcons/error-circle-o.svg +4 -0
  222. package/icons/PfIcons/export.svg +4 -0
  223. package/icons/PfIcons/filter.svg +4 -0
  224. package/icons/PfIcons/flavor.svg +4 -0
  225. package/icons/PfIcons/folder-close.svg +4 -0
  226. package/icons/PfIcons/folder-open.svg +4 -0
  227. package/icons/PfIcons/globe-route.svg +4 -0
  228. package/icons/PfIcons/help.svg +4 -0
  229. package/icons/PfIcons/history.svg +4 -0
  230. package/icons/PfIcons/home.svg +4 -0
  231. package/icons/PfIcons/import.svg +4 -0
  232. package/icons/PfIcons/in-progress.svg +4 -0
  233. package/icons/PfIcons/info.svg +4 -0
  234. package/icons/PfIcons/infrastructure.svg +4 -0
  235. package/icons/PfIcons/integration.svg +4 -0
  236. package/icons/PfIcons/key.svg +4 -0
  237. package/icons/PfIcons/locked.svg +4 -0
  238. package/icons/PfIcons/maintenance.svg +4 -0
  239. package/icons/PfIcons/memory.svg +4 -0
  240. package/icons/PfIcons/messages.svg +4 -0
  241. package/icons/PfIcons/middleware.svg +4 -0
  242. package/icons/PfIcons/migration.svg +4 -0
  243. package/icons/PfIcons/module.svg +4 -0
  244. package/icons/PfIcons/monitoring.svg +4 -0
  245. package/icons/PfIcons/multicluster.svg +4 -0
  246. package/icons/PfIcons/namespaces.svg +4 -0
  247. package/icons/PfIcons/network.svg +4 -0
  248. package/icons/PfIcons/new-process.svg +4 -0
  249. package/icons/PfIcons/not-started.svg +4 -0
  250. package/icons/PfIcons/off.svg +4 -0
  251. package/icons/PfIcons/ok.svg +4 -0
  252. package/icons/PfIcons/on-running.svg +4 -0
  253. package/icons/PfIcons/on.svg +4 -0
  254. package/icons/PfIcons/open-drawer-right.svg +4 -0
  255. package/icons/PfIcons/openshift.svg +4 -0
  256. package/icons/PfIcons/openstack.svg +4 -0
  257. package/icons/PfIcons/optimize.svg +4 -0
  258. package/icons/PfIcons/orders.svg +4 -0
  259. package/icons/PfIcons/os-image.svg +4 -0
  260. package/icons/PfIcons/package.svg +4 -0
  261. package/icons/PfIcons/panel-close.svg +4 -0
  262. package/icons/PfIcons/panel-open.svg +4 -0
  263. package/icons/PfIcons/paused.svg +4 -0
  264. package/icons/PfIcons/pending.svg +4 -0
  265. package/icons/PfIcons/pficon-dragdrop.svg +4 -0
  266. package/icons/PfIcons/pficon-history.svg +4 -0
  267. package/icons/PfIcons/pficon-network-range.svg +4 -0
  268. package/icons/PfIcons/pficon-satellite.svg +4 -0
  269. package/icons/PfIcons/pficon-sort-common-asc.svg +4 -0
  270. package/icons/PfIcons/pficon-sort-common-desc.svg +4 -0
  271. package/icons/PfIcons/pficon-template.svg +4 -0
  272. package/icons/PfIcons/pficon-vcenter.svg +4 -0
  273. package/icons/PfIcons/plugged.svg +4 -0
  274. package/icons/PfIcons/port.svg +4 -0
  275. package/icons/PfIcons/print.svg +4 -0
  276. package/icons/PfIcons/private.svg +4 -0
  277. package/icons/PfIcons/process-automation.svg +4 -0
  278. package/icons/PfIcons/project.svg +4 -0
  279. package/icons/PfIcons/rebalance.svg +4 -0
  280. package/icons/PfIcons/rebooting.svg +4 -0
  281. package/icons/PfIcons/regions.svg +4 -0
  282. package/icons/PfIcons/registry.svg +4 -0
  283. package/icons/PfIcons/remove2.svg +4 -0
  284. package/icons/PfIcons/replicator.svg +4 -0
  285. package/icons/PfIcons/repository.svg +4 -0
  286. package/icons/PfIcons/resource-pool.svg +4 -0
  287. package/icons/PfIcons/resources-almost-empty.svg +4 -0
  288. package/icons/PfIcons/resources-almost-full.svg +4 -0
  289. package/icons/PfIcons/resources-empty.svg +4 -0
  290. package/icons/PfIcons/resources-full.svg +4 -0
  291. package/icons/PfIcons/running.svg +4 -0
  292. package/icons/PfIcons/save.svg +4 -0
  293. package/icons/PfIcons/screen.svg +4 -0
  294. package/icons/PfIcons/security.svg +4 -0
  295. package/icons/PfIcons/server-group.svg +4 -0
  296. package/icons/PfIcons/server.svg +4 -0
  297. package/icons/PfIcons/service-catalog.svg +4 -0
  298. package/icons/PfIcons/service.svg +4 -0
  299. package/icons/PfIcons/services.svg +4 -0
  300. package/icons/PfIcons/severity-critical.svg +4 -0
  301. package/icons/PfIcons/severity-important.svg +4 -0
  302. package/icons/PfIcons/severity-minor.svg +4 -0
  303. package/icons/PfIcons/severity-moderate.svg +4 -0
  304. package/icons/PfIcons/severity-none.svg +4 -0
  305. package/icons/PfIcons/severity-undefined.svg +4 -0
  306. package/icons/PfIcons/spinner.svg +4 -0
  307. package/icons/PfIcons/spinner2.svg +4 -0
  308. package/icons/PfIcons/storage-domain.svg +4 -0
  309. package/icons/PfIcons/task.svg +4 -0
  310. package/icons/PfIcons/tenant.svg +4 -0
  311. package/icons/PfIcons/thumb-tack.svg +4 -0
  312. package/icons/PfIcons/topology.svg +4 -0
  313. package/icons/PfIcons/treeview.svg +4 -0
  314. package/icons/PfIcons/trend-down.svg +4 -0
  315. package/icons/PfIcons/trend-up.svg +4 -0
  316. package/icons/PfIcons/unknown.svg +4 -0
  317. package/icons/PfIcons/unlocked.svg +4 -0
  318. package/icons/PfIcons/unplugged.svg +4 -0
  319. package/icons/PfIcons/user.svg +4 -0
  320. package/icons/PfIcons/users.svg +4 -0
  321. package/icons/PfIcons/virtual-machine.svg +4 -0
  322. package/icons/PfIcons/volume.svg +4 -0
  323. package/icons/PfIcons/warning-triangle.svg +4 -0
  324. package/icons/PfIcons/zone.svg +4 -0
  325. package/layouts/Flex/flex.scss +83 -19
  326. package/layouts/Gallery/gallery.css +6 -2
  327. package/layouts/_index.css +6 -2
  328. package/package.json +34 -16
  329. package/patternfly-base-no-globals.css +406 -14
  330. package/patternfly-base.css +413 -14
  331. package/patternfly-charts.css +3 -3
  332. package/patternfly-no-globals.css +1796 -573
  333. package/patternfly.css +1803 -573
  334. package/patternfly.min.css +1 -1
  335. package/patternfly.min.css.map +1 -1
  336. package/sass-utilities/functions.scss +32 -25
  337. package/sass-utilities/mixins.scss +36 -20
  338. 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
- $breakpoint-value: if(map-has-key($breakpoint-map, #{$breakpoint}), map-get($breakpoint-map, #{$breakpoint}), false);
33
-
34
- @return #{$breakpoint-value};
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
- $height-breakpoint-value: if(map-has-key($height-breakpoint-map, #{$height-breakpoint}), map-get($height-breakpoint-map, #{$height-breakpoint}), false);
40
-
41
- @return #{$height-breakpoint-value};
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-merge($map, $pf-v6-global--breakpoint-name-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-has-key($pf-v6-global--breakpoint-name-map, $breakpoint) and $breakpoint != "base" {
55
- $map: map-merge($map, ("invalid breakpoint #{$breakpoint}": null));
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-merge($map, ($breakpoint: null));
64
+ $map: map.merge($map, ($breakpoint: null));
58
65
  } @else {
59
- $map: map-merge($map, ($breakpoint: map-get($pf-v6-global--breakpoint-name-map, #{$breakpoint})));
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-merge($map, $pf-v6-global--height-breakpoint-name-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-has-key($pf-v6-global--height-breakpoint-name-map, $breakpoint) and $breakpoint != "base" {
78
- $map: map-merge($map, ("invalid breakpoint #{$breakpoint}": null));
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-merge($map, ($breakpoint: null));
87
+ $map: map.merge($map, ($breakpoint: null));
81
88
  } @else {
82
- $map: map-merge($map, ($breakpoint: map-get($pf-v6-global--height-breakpoint-name-map, #{$breakpoint})));
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-merge($map, $pf-v6-global--spacer-map);
99
- $map: map-remove($map, "auto", "0");
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-merge($map, ($spacer: 0));
111
+ $map: map.merge($map, ($spacer: 0));
105
112
  } @else {
106
- $map: map-merge($map, ($spacer: map-get($pf-v6-global--spacer-map, #{$spacer})));
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-merge($new-map, (map-get($map, $size): --#{$namespace}--#{$size}));
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: if($hasWhere,':where',':is');
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: if($hasWhere,':where',':is');
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
- --#{$pf-global}--inverse--multiplier: #{if($val, -1, 1)};
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
- $selector: if($isClass, "." + $selector, $selector);
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