@porsche-design-system/components-react 3.2.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (400) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/esm/hooks.js +4 -4
  3. package/esm/utils.js +3 -3
  4. package/hooks.d.ts +2 -2
  5. package/hooks.js +4 -4
  6. package/lib/components/accordion.wrapper.d.ts +9 -9
  7. package/lib/components/banner.wrapper.d.ts +9 -9
  8. package/lib/components/button-group.wrapper.d.ts +2 -2
  9. package/lib/components/button-pure.wrapper.d.ts +14 -14
  10. package/lib/components/button-tile.wrapper.d.ts +13 -13
  11. package/lib/components/button.wrapper.d.ts +10 -10
  12. package/lib/components/carousel.wrapper.d.ts +16 -16
  13. package/lib/components/checkbox-wrapper.wrapper.d.ts +7 -7
  14. package/lib/components/content-wrapper.wrapper.d.ts +4 -4
  15. package/lib/components/crest.wrapper.d.ts +4 -4
  16. package/lib/components/display.wrapper.d.ts +7 -7
  17. package/lib/components/divider.wrapper.d.ts +5 -5
  18. package/lib/components/fieldset-wrapper.wrapper.d.ts +7 -7
  19. package/lib/components/fieldset.wrapper.d.ts +7 -7
  20. package/lib/components/flex-item.wrapper.d.ts +7 -7
  21. package/lib/components/flex.wrapper.d.ts +7 -7
  22. package/lib/components/flyout.wrapper.d.ts +5 -5
  23. package/lib/components/grid-item.wrapper.d.ts +3 -3
  24. package/lib/components/grid.wrapper.d.ts +4 -4
  25. package/lib/components/heading.wrapper.d.ts +7 -7
  26. package/lib/components/headline.wrapper.d.ts +7 -7
  27. package/lib/components/icon.wrapper.d.ts +10 -10
  28. package/lib/components/inline-notification.wrapper.d.ts +12 -12
  29. package/lib/components/link-pure.wrapper.d.ts +16 -16
  30. package/lib/components/link-social.wrapper.d.ts +8 -8
  31. package/lib/components/link-tile-model-signature.wrapper.d.ts +7 -7
  32. package/lib/components/link-tile.wrapper.d.ts +11 -11
  33. package/lib/components/link.wrapper.d.ts +11 -11
  34. package/lib/components/marque.wrapper.d.ts +7 -7
  35. package/lib/components/modal.wrapper.d.ts +9 -9
  36. package/lib/components/model-signature.wrapper.d.ts +5 -5
  37. package/lib/components/pagination.wrapper.d.ts +12 -12
  38. package/lib/components/popover.wrapper.d.ts +5 -5
  39. package/lib/components/radio-button-wrapper.wrapper.d.ts +6 -6
  40. package/lib/components/scroller.wrapper.d.ts +9 -9
  41. package/lib/components/segmented-control-item.wrapper.d.ts +5 -5
  42. package/lib/components/segmented-control.wrapper.d.ts +6 -6
  43. package/lib/components/select-wrapper.wrapper.d.ts +10 -10
  44. package/lib/components/spinner.wrapper.d.ts +4 -4
  45. package/lib/components/stepper-horizontal-item.wrapper.d.ts +3 -3
  46. package/lib/components/stepper-horizontal.wrapper.d.ts +5 -5
  47. package/lib/components/switch.wrapper.d.ts +10 -10
  48. package/lib/components/table-body.wrapper.d.ts +1 -1
  49. package/lib/components/table-cell.wrapper.d.ts +2 -2
  50. package/lib/components/table-head-cell.wrapper.d.ts +4 -4
  51. package/lib/components/table-head-row.wrapper.d.ts +1 -1
  52. package/lib/components/table-head.wrapper.d.ts +1 -1
  53. package/lib/components/table-row.wrapper.d.ts +1 -1
  54. package/lib/components/table.wrapper.d.ts +5 -5
  55. package/lib/components/tabs-bar.wrapper.d.ts +8 -8
  56. package/lib/components/tabs-item.wrapper.d.ts +1 -1
  57. package/lib/components/tabs.wrapper.d.ts +9 -9
  58. package/lib/components/tag-dismissible.wrapper.d.ts +5 -5
  59. package/lib/components/tag.wrapper.d.ts +5 -5
  60. package/lib/components/text-field-wrapper.wrapper.d.ts +15 -15
  61. package/lib/components/text-list-item.wrapper.d.ts +1 -1
  62. package/lib/components/text-list.wrapper.d.ts +5 -5
  63. package/lib/components/text.wrapper.d.ts +8 -8
  64. package/lib/components/textarea-wrapper.wrapper.d.ts +9 -9
  65. package/lib/components/toast.wrapper.d.ts +2 -2
  66. package/lib/components/wordmark.wrapper.d.ts +6 -6
  67. package/lib/types.d.ts +27 -2
  68. package/package.json +2 -2
  69. package/provider.d.ts +2 -2
  70. package/ssr/components/dist/styles/esm/styles-entry.js +2481 -939
  71. package/ssr/components/dist/utils/esm/utils-entry.js +48 -48
  72. package/ssr/components-react/projects/react-ssr-wrapper/src/hooks.js +4 -4
  73. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/accordion.wrapper.js +1 -1
  74. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.js +1 -1
  75. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/button-group.wrapper.js +1 -1
  76. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/button-pure.wrapper.js +1 -1
  77. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/button-tile.wrapper.js +1 -1
  78. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/button.wrapper.js +1 -1
  79. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.js +1 -1
  80. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/checkbox-wrapper.wrapper.js +1 -1
  81. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/content-wrapper.wrapper.js +1 -1
  82. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/crest.wrapper.js +1 -1
  83. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/display.wrapper.js +1 -1
  84. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/divider.wrapper.js +1 -1
  85. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/fieldset-wrapper.wrapper.js +1 -1
  86. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/fieldset.wrapper.js +1 -1
  87. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/flex-item.wrapper.js +1 -1
  88. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/flex.wrapper.js +1 -1
  89. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.wrapper.js +1 -1
  90. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/grid-item.wrapper.js +1 -1
  91. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/grid.wrapper.js +1 -1
  92. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/heading.wrapper.js +1 -1
  93. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/headline.wrapper.js +1 -1
  94. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/icon.wrapper.js +1 -1
  95. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/inline-notification.wrapper.js +1 -1
  96. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/link-pure.wrapper.js +1 -1
  97. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/link-social.wrapper.js +1 -1
  98. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile-model-signature.wrapper.js +1 -1
  99. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile.wrapper.js +1 -1
  100. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/link.wrapper.js +1 -1
  101. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/marque.wrapper.js +1 -1
  102. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/modal.wrapper.js +1 -1
  103. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/model-signature.wrapper.js +1 -1
  104. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/pagination.wrapper.js +1 -1
  105. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/popover.wrapper.js +1 -1
  106. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/radio-button-wrapper.wrapper.js +1 -1
  107. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/scroller.wrapper.js +1 -1
  108. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control-item.wrapper.js +1 -1
  109. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control.wrapper.js +1 -1
  110. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/select-wrapper-dropdown.wrapper.js +1 -1
  111. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/select-wrapper.wrapper.js +1 -1
  112. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/spinner.wrapper.js +1 -1
  113. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal-item.wrapper.js +1 -1
  114. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal.wrapper.js +1 -1
  115. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/switch.wrapper.js +1 -1
  116. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/table-body.wrapper.js +1 -1
  117. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/table-cell.wrapper.js +1 -1
  118. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/table-head-cell.wrapper.js +1 -1
  119. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/table-head-row.wrapper.js +1 -1
  120. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/table-head.wrapper.js +1 -1
  121. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/table-row.wrapper.js +1 -1
  122. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/table.wrapper.js +1 -1
  123. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.js +1 -1
  124. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-item.wrapper.js +1 -1
  125. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.js +1 -1
  126. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/tag-dismissible.wrapper.js +1 -1
  127. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/tag.wrapper.js +1 -1
  128. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/text-field-wrapper.wrapper.js +1 -1
  129. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/text-list-item.wrapper.js +1 -1
  130. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/text-list.wrapper.js +1 -1
  131. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/text.wrapper.js +1 -1
  132. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/textarea-wrapper.wrapper.js +1 -1
  133. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/toast.wrapper.js +1 -1
  134. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/wordmark.wrapper.js +1 -1
  135. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +1 -0
  136. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +3 -0
  137. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.js +1 -0
  138. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.js +1 -0
  139. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.js +1 -0
  140. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +1 -0
  141. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js +9 -6
  142. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.js +3 -2
  143. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.js +1 -0
  144. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.js +1 -0
  145. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.js +1 -0
  146. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.js +1 -0
  147. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.js +1 -0
  148. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.js +1 -0
  149. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.js +1 -0
  150. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.js +1 -0
  151. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.js +10 -0
  152. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.js +1 -0
  153. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.js +2 -1
  154. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.js +1 -0
  155. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.js +1 -0
  156. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.js +2 -2
  157. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.js +1 -0
  158. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.js +1 -0
  159. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js +1 -0
  160. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.js +1 -0
  161. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js +1 -0
  162. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.js +1 -0
  163. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.js +1 -0
  164. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.js +5 -0
  165. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.js +1 -0
  166. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.js +3 -4
  167. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.js +5 -4
  168. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.js +3 -2
  169. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +6 -7
  170. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.js +4 -2
  171. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.js +4 -6
  172. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.js +68 -8
  173. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +6 -3
  174. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.js +1 -0
  175. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.js +1 -1
  176. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.js +1 -0
  177. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +5 -5
  178. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.js +1 -0
  179. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-body.js +1 -0
  180. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-cell.js +1 -0
  181. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.js +1 -0
  182. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-row.js +1 -0
  183. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head.js +1 -0
  184. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-row.js +1 -0
  185. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.js +1 -0
  186. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +11 -7
  187. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-item.js +1 -0
  188. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +2 -4
  189. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.js +1 -0
  190. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.js +1 -0
  191. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +18 -9
  192. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.js +1 -0
  193. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.js +1 -0
  194. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.js +1 -0
  195. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.js +6 -2
  196. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/toast.js +2 -0
  197. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/wordmark.js +1 -0
  198. package/ssr/components-react/projects/react-ssr-wrapper/src/splitChildren.js +2 -2
  199. package/ssr/components-react/projects/react-ssr-wrapper/src/utils.js +3 -3
  200. package/ssr/esm/components/dist/styles/esm/styles-entry.js +2481 -939
  201. package/ssr/esm/components/dist/utils/esm/utils-entry.js +49 -48
  202. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/hooks.js +4 -4
  203. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/accordion.wrapper.js +1 -1
  204. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.js +1 -1
  205. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button-group.wrapper.js +1 -1
  206. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button-pure.wrapper.js +1 -1
  207. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button-tile.wrapper.js +1 -1
  208. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button.wrapper.js +1 -1
  209. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.js +1 -1
  210. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/checkbox-wrapper.wrapper.js +1 -1
  211. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/content-wrapper.wrapper.js +1 -1
  212. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/crest.wrapper.js +1 -1
  213. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/display.wrapper.js +1 -1
  214. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/divider.wrapper.js +1 -1
  215. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/fieldset-wrapper.wrapper.js +1 -1
  216. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/fieldset.wrapper.js +1 -1
  217. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flex-item.wrapper.js +1 -1
  218. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flex.wrapper.js +1 -1
  219. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.wrapper.js +1 -1
  220. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/grid-item.wrapper.js +1 -1
  221. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/grid.wrapper.js +1 -1
  222. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/heading.wrapper.js +1 -1
  223. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/headline.wrapper.js +1 -1
  224. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/icon.wrapper.js +1 -1
  225. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/inline-notification.wrapper.js +1 -1
  226. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-pure.wrapper.js +1 -1
  227. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-social.wrapper.js +1 -1
  228. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile-model-signature.wrapper.js +1 -1
  229. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile.wrapper.js +1 -1
  230. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link.wrapper.js +1 -1
  231. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/marque.wrapper.js +1 -1
  232. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/modal.wrapper.js +1 -1
  233. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/model-signature.wrapper.js +1 -1
  234. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/pagination.wrapper.js +1 -1
  235. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/popover.wrapper.js +1 -1
  236. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/radio-button-wrapper.wrapper.js +1 -1
  237. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/scroller.wrapper.js +1 -1
  238. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control-item.wrapper.js +1 -1
  239. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control.wrapper.js +1 -1
  240. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/select-wrapper-dropdown.wrapper.js +1 -1
  241. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/select-wrapper.wrapper.js +1 -1
  242. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/spinner.wrapper.js +1 -1
  243. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal-item.wrapper.js +1 -1
  244. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal.wrapper.js +1 -1
  245. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/switch.wrapper.js +1 -1
  246. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table-body.wrapper.js +1 -1
  247. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table-cell.wrapper.js +1 -1
  248. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table-head-cell.wrapper.js +1 -1
  249. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table-head-row.wrapper.js +1 -1
  250. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table-head.wrapper.js +1 -1
  251. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table-row.wrapper.js +1 -1
  252. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table.wrapper.js +1 -1
  253. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.js +1 -1
  254. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-item.wrapper.js +1 -1
  255. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.js +1 -1
  256. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tag-dismissible.wrapper.js +1 -1
  257. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tag.wrapper.js +1 -1
  258. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text-field-wrapper.wrapper.js +1 -1
  259. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text-list-item.wrapper.js +1 -1
  260. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text-list.wrapper.js +1 -1
  261. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text.wrapper.js +1 -1
  262. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/textarea-wrapper.wrapper.js +1 -1
  263. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/toast.wrapper.js +1 -1
  264. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/wordmark.wrapper.js +1 -1
  265. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +1 -0
  266. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +3 -0
  267. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.js +1 -0
  268. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.js +1 -0
  269. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.js +1 -0
  270. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +1 -0
  271. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js +9 -6
  272. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.js +3 -2
  273. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.js +1 -0
  274. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.js +1 -0
  275. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.js +1 -0
  276. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.js +1 -0
  277. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.js +1 -0
  278. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.js +1 -0
  279. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.js +1 -0
  280. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.js +1 -0
  281. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.js +10 -0
  282. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.js +1 -0
  283. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.js +2 -1
  284. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.js +1 -0
  285. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.js +1 -0
  286. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.js +2 -2
  287. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.js +1 -0
  288. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.js +1 -0
  289. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js +1 -0
  290. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.js +1 -0
  291. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js +1 -0
  292. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.js +1 -0
  293. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.js +1 -0
  294. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.js +5 -0
  295. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.js +1 -0
  296. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.js +3 -4
  297. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.js +5 -4
  298. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.js +3 -2
  299. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +6 -7
  300. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.js +4 -2
  301. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.js +4 -6
  302. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.js +68 -8
  303. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +6 -3
  304. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.js +1 -0
  305. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.js +1 -1
  306. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.js +1 -0
  307. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +5 -5
  308. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.js +1 -0
  309. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-body.js +1 -0
  310. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-cell.js +1 -0
  311. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.js +1 -0
  312. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-row.js +1 -0
  313. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head.js +1 -0
  314. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-row.js +1 -0
  315. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.js +1 -0
  316. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +11 -7
  317. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-item.js +1 -0
  318. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +2 -4
  319. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.js +1 -0
  320. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.js +1 -0
  321. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +18 -9
  322. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.js +1 -0
  323. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.js +1 -0
  324. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.js +1 -0
  325. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.js +6 -2
  326. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/toast.js +2 -0
  327. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/wordmark.js +1 -0
  328. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/splitChildren.js +2 -2
  329. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/utils.js +3 -3
  330. package/ssr/hooks.d.ts +2 -2
  331. package/ssr/lib/components/accordion.wrapper.d.ts +1 -1
  332. package/ssr/lib/components/banner.wrapper.d.ts +1 -1
  333. package/ssr/lib/components/button-group.wrapper.d.ts +1 -1
  334. package/ssr/lib/components/button-pure.wrapper.d.ts +1 -1
  335. package/ssr/lib/components/button-tile.wrapper.d.ts +1 -1
  336. package/ssr/lib/components/button.wrapper.d.ts +1 -1
  337. package/ssr/lib/components/carousel.wrapper.d.ts +1 -1
  338. package/ssr/lib/components/checkbox-wrapper.wrapper.d.ts +1 -1
  339. package/ssr/lib/components/content-wrapper.wrapper.d.ts +1 -1
  340. package/ssr/lib/components/crest.wrapper.d.ts +1 -1
  341. package/ssr/lib/components/display.wrapper.d.ts +1 -1
  342. package/ssr/lib/components/divider.wrapper.d.ts +1 -1
  343. package/ssr/lib/components/fieldset-wrapper.wrapper.d.ts +1 -1
  344. package/ssr/lib/components/fieldset.wrapper.d.ts +1 -1
  345. package/ssr/lib/components/flex-item.wrapper.d.ts +1 -1
  346. package/ssr/lib/components/flex.wrapper.d.ts +1 -1
  347. package/ssr/lib/components/flyout.wrapper.d.ts +1 -1
  348. package/ssr/lib/components/grid-item.wrapper.d.ts +1 -1
  349. package/ssr/lib/components/grid.wrapper.d.ts +1 -1
  350. package/ssr/lib/components/heading.wrapper.d.ts +1 -1
  351. package/ssr/lib/components/headline.wrapper.d.ts +1 -1
  352. package/ssr/lib/components/icon.wrapper.d.ts +3 -3
  353. package/ssr/lib/components/inline-notification.wrapper.d.ts +1 -1
  354. package/ssr/lib/components/link-pure.wrapper.d.ts +1 -1
  355. package/ssr/lib/components/link-social.wrapper.d.ts +1 -1
  356. package/ssr/lib/components/link-tile-model-signature.wrapper.d.ts +1 -1
  357. package/ssr/lib/components/link-tile.wrapper.d.ts +1 -1
  358. package/ssr/lib/components/link.wrapper.d.ts +1 -1
  359. package/ssr/lib/components/marque.wrapper.d.ts +1 -1
  360. package/ssr/lib/components/modal.wrapper.d.ts +1 -1
  361. package/ssr/lib/components/model-signature.wrapper.d.ts +1 -1
  362. package/ssr/lib/components/pagination.wrapper.d.ts +1 -1
  363. package/ssr/lib/components/popover.wrapper.d.ts +1 -1
  364. package/ssr/lib/components/radio-button-wrapper.wrapper.d.ts +1 -1
  365. package/ssr/lib/components/scroller.wrapper.d.ts +1 -1
  366. package/ssr/lib/components/segmented-control-item.wrapper.d.ts +1 -1
  367. package/ssr/lib/components/segmented-control.wrapper.d.ts +1 -1
  368. package/ssr/lib/components/select-wrapper-dropdown.wrapper.d.ts +1 -1
  369. package/ssr/lib/components/select-wrapper.wrapper.d.ts +1 -1
  370. package/ssr/lib/components/spinner.wrapper.d.ts +1 -1
  371. package/ssr/lib/components/stepper-horizontal-item.wrapper.d.ts +1 -1
  372. package/ssr/lib/components/stepper-horizontal.wrapper.d.ts +1 -1
  373. package/ssr/lib/components/switch.wrapper.d.ts +1 -1
  374. package/ssr/lib/components/table-body.wrapper.d.ts +1 -1
  375. package/ssr/lib/components/table-cell.wrapper.d.ts +1 -1
  376. package/ssr/lib/components/table-head-cell.wrapper.d.ts +1 -1
  377. package/ssr/lib/components/table-head-row.wrapper.d.ts +1 -1
  378. package/ssr/lib/components/table-head.wrapper.d.ts +1 -1
  379. package/ssr/lib/components/table-row.wrapper.d.ts +1 -1
  380. package/ssr/lib/components/table.wrapper.d.ts +1 -1
  381. package/ssr/lib/components/tabs-bar.wrapper.d.ts +1 -1
  382. package/ssr/lib/components/tabs-item.wrapper.d.ts +1 -1
  383. package/ssr/lib/components/tabs.wrapper.d.ts +1 -1
  384. package/ssr/lib/components/tag-dismissible.wrapper.d.ts +1 -1
  385. package/ssr/lib/components/tag.wrapper.d.ts +1 -1
  386. package/ssr/lib/components/text-field-wrapper.wrapper.d.ts +1 -1
  387. package/ssr/lib/components/text-list-item.wrapper.d.ts +1 -1
  388. package/ssr/lib/components/text-list.wrapper.d.ts +1 -1
  389. package/ssr/lib/components/text.wrapper.d.ts +1 -1
  390. package/ssr/lib/components/textarea-wrapper.wrapper.d.ts +1 -1
  391. package/ssr/lib/components/toast.wrapper.d.ts +1 -1
  392. package/ssr/lib/components/wordmark.wrapper.d.ts +1 -1
  393. package/ssr/lib/dsr-components/accordion.d.ts +0 -3
  394. package/ssr/lib/dsr-components/tabs-bar.d.ts +1 -2
  395. package/ssr/lib/types.d.ts +27 -2
  396. package/ssr/provider.d.ts +2 -2
  397. package/ssr/utils.d.ts +1 -1
  398. package/utils.d.ts +1 -1
  399. package/utils.js +3 -3
  400. package/ssr/lib/dsr-components/toast-item.d.ts +0 -5
@@ -14,7 +14,7 @@ hasWindow &&
14
14
  .filter((mutation) => mutation.oldValue !== mutation.target.getAttribute(mutation.attributeName))
15
15
  // remove duplicates so we execute callback only once per node
16
16
  .filter((mutation, idx, arr) => arr.findIndex((m) => m.target === mutation.target) === idx)
17
- .forEach((mutation) => { var _a; return (_a = attributeMutationMap.get(mutation.target)) === null || _a === void 0 ? void 0 : _a(); });
17
+ .forEach((mutation) => attributeMutationMap.get(mutation.target)?.());
18
18
  });
19
19
 
20
20
  const parseJSON = (prop) => {
@@ -26,7 +26,7 @@ const parseJSON = (prop) => {
26
26
  .replace(/[\s"]?([a-z]+)[\s"]?:([^//])/g, '"$1":$2') // wrap keys in double quotes if they don't have them but ignore potential urls
27
27
  );
28
28
  }
29
- catch (_a) {
29
+ catch {
30
30
  // prop is string, e.g. "block" or "inline"
31
31
  return prop;
32
32
  }
@@ -306,7 +306,7 @@ const textLargeStyle = {
306
306
  const mediaQueries = Object.values(breakpoint).map((v) => `(min-width:${v}px)`);
307
307
  hasWindow && window.matchMedia ? mediaQueries.map(window.matchMedia) : [];
308
308
 
309
- Object.entries(breakpoint).reduce((result, [key, val]) => (Object.assign(Object.assign({}, result), { [`${val}px`]: key })), {});
309
+ Object.entries(breakpoint).reduce((result, [key, val]) => ({ ...result, [`${val}px`]: key }), {});
310
310
 
311
311
  const hasVisibleIcon = (iconName, iconSource) => {
312
312
  return iconName !== 'none' || !!iconSource;
@@ -322,7 +322,7 @@ hasWindow &&
322
322
  // remove duplicates so we execute callback only once per node
323
323
  .filter((mutation, idx, arr) => arr.findIndex((m) => m.target === mutation.target) === idx)
324
324
  // find node in map that contains the mutated element to find and invoke its callback
325
- .forEach((mutation) => { var _a; return (_a = childrenMutationMap.get(mapKeys.find((node) => node.contains(mutation.target)))) === null || _a === void 0 ? void 0 : _a(); });
325
+ .forEach((mutation) => childrenMutationMap.get(mapKeys.find((node) => node.contains(mutation.target)))?.());
326
326
  }
327
327
  });
328
328
 
@@ -3749,7 +3749,7 @@ const schemeHighContrast = {
3749
3749
  linkColor: 'LinkText',
3750
3750
  };
3751
3751
  const getThemedColors = (theme) => {
3752
- return isHighContrastMode ? Object.assign(Object.assign({}, themes[theme]), schemeHighContrastMerged) : themes[theme];
3752
+ return isHighContrastMode ? { ...themes[theme], ...schemeHighContrastMerged } : themes[theme];
3753
3753
  };
3754
3754
  const getHighContrastColors = () => {
3755
3755
  return schemeHighContrast;
@@ -3794,7 +3794,14 @@ const getResetInitialStylesForSlottedAnchor = {
3794
3794
  };
3795
3795
  const focusPseudoJssStyle = {
3796
3796
  outline: 0,
3797
- '&:focus::before': Object.assign(Object.assign({ content: '""', position: 'absolute' }, getInsetJssStyle()), { borderRadius: '1px', outline: `${borderWidthBase} solid ${themeLightStateFocus}`, outlineOffset: '2px' }),
3797
+ '&:focus::before': {
3798
+ content: '""',
3799
+ position: 'absolute',
3800
+ ...getInsetJssStyle(),
3801
+ borderRadius: '1px',
3802
+ outline: `${borderWidthBase} solid ${themeLightStateFocus}`,
3803
+ outlineOffset: '2px',
3804
+ },
3798
3805
  '&:focus:not(:focus-visible)::before': {
3799
3806
  outline: 0,
3800
3807
  },
@@ -3812,7 +3819,13 @@ const getHiddenTextJssStyle = (isHidden = true, isShownJssStyle) => isHidden
3812
3819
  height: '1px',
3813
3820
  textIndent: '-999999px',
3814
3821
  }
3815
- : Object.assign({ position: 'static', width: 'auto', height: 'auto', textIndent: 0 }, isShownJssStyle);
3822
+ : {
3823
+ position: 'static',
3824
+ width: 'auto',
3825
+ height: 'auto',
3826
+ textIndent: 0,
3827
+ ...isShownJssStyle,
3828
+ };
3816
3829
  const getBackfaceVisibilityJssStyle = () => ({
3817
3830
  backfaceVisibility: 'hidden',
3818
3831
  WebkitBackfaceVisibility: 'hidden',
@@ -3827,12 +3840,24 @@ const getBackfaceVisibilityJssStyle = () => ({
3827
3840
  const getFrostedGlassBackgroundJssStyles = (isVisible, duration, timingFn = 'cubic-bezier(.16,1,.3,1)') => {
3828
3841
  return {
3829
3842
  // workaround via pseudo element to fix stacking (black) background in safari
3830
- '&::before': Object.assign(Object.assign(Object.assign(Object.assign({ content: '""', position: 'fixed' }, getInsetJssStyle()), { background: themeDarkBackgroundShading, pointerEvents: 'none' }), (isVisible
3831
- ? Object.assign({ opacity: 1 }, frostedGlassStyle) : {
3832
- opacity: 0,
3833
- backdropFilter: 'blur(0px)',
3834
- WebkitBackdropFilter: 'blur(0px)',
3835
- })), { transition: `opacity ${duration} ${timingFn}, backdrop-filter ${duration} ${timingFn}, --webkit-backdrop-filter ${duration} ${timingFn}` }),
3843
+ '&::before': {
3844
+ content: '""',
3845
+ position: 'fixed',
3846
+ ...getInsetJssStyle(),
3847
+ background: themeDarkBackgroundShading,
3848
+ pointerEvents: 'none',
3849
+ ...(isVisible
3850
+ ? {
3851
+ opacity: 1,
3852
+ ...frostedGlassStyle,
3853
+ }
3854
+ : {
3855
+ opacity: 0,
3856
+ backdropFilter: 'blur(0px)',
3857
+ WebkitBackdropFilter: 'blur(0px)',
3858
+ }),
3859
+ transition: `opacity ${duration} ${timingFn}, backdrop-filter ${duration} ${timingFn}, --webkit-backdrop-filter ${duration} ${timingFn}`,
3860
+ },
3836
3861
  };
3837
3862
  };
3838
3863
 
@@ -3877,7 +3902,7 @@ const supportsConstructableStylesheets = () => {
3877
3902
  try {
3878
3903
  return typeof new CSSStyleSheet().replaceSync === 'function';
3879
3904
  }
3880
- catch (_a) {
3905
+ catch {
3881
3906
  return false;
3882
3907
  }
3883
3908
  };
@@ -3891,9 +3916,11 @@ const buildResponsiveStyles = (rawValue, getJssStyle) => {
3891
3916
  // base styles are applied on root object, responsive styles are nested within
3892
3917
  // hence it is used as the initial object within reduce function
3893
3918
  .filter((key) => key !== 'base')
3894
- .reduce((result, breakpointValue) => (Object.assign(Object.assign({}, result), {
3919
+ .reduce((result, breakpointValue) => ({
3920
+ ...result,
3895
3921
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
3896
- [getMediaQueryMin(breakpointValue)]: getJssStyle(value[breakpointValue]) })), getJssStyle(value.base))
3922
+ [getMediaQueryMin(breakpointValue)]: getJssStyle(value[breakpointValue]),
3923
+ }), getJssStyle(value.base))
3897
3924
  : getJssStyle(value);
3898
3925
  };
3899
3926
  const isObject = (obj) => typeof obj === 'object' && !Array.isArray(obj);
@@ -3930,7 +3957,7 @@ const formatObjectOutput = (value) => {
3930
3957
  .replace(/^"(.+)"$/, '$1'); // remove wrapping double quotes
3931
3958
  };
3932
3959
  'value, ' +
3933
- formatObjectOutput(breakpoints.reduce((prev, key) => (Object.assign(Object.assign({}, prev), { [key + (key !== 'base' ? '?' : '')]: 'value' })), {})).replace(/"/g, '');
3960
+ formatObjectOutput(breakpoints.reduce((prev, key) => ({ ...prev, [key + (key !== 'base' ? '?' : '')]: 'value' }), {})).replace(/"/g, '');
3934
3961
 
3935
3962
  const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
3936
3963
 
@@ -3938,34 +3965,65 @@ const getComponentCss$Z = (size, compact, open, theme) => {
3938
3965
  const { primaryColor, hoverColor, focusColor, contrastLowColor } = getThemedColors(theme);
3939
3966
  return getCss({
3940
3967
  '@global': {
3941
- ':host': addImportantToEachRule(Object.assign(Object.assign({ display: 'block' }, (!compact && {
3942
- borderBottom: `1px solid ${contrastLowColor}`,
3943
- })), hostHiddenStyles)),
3944
- button: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', position: 'relative', justifyContent: 'space-between', width: '100%', textDecoration: 'none', border: 0, outline: 0, gap: '24px', background: 'transparent', cursor: 'pointer', textAlign: 'left', color: primaryColor }, textSmallStyle), { fontWeight: fontWeightSemiBold }), buildResponsiveStyles(size, (s) => ({
3945
- fontSize: s === 'medium' ? fontSizeTextMedium : fontSizeTextSmall,
3946
- padding: `${compact ? '4px' : s === 'medium' ? '20px' : '15px'} 0`,
3947
- }))), mergeDeep({
3948
- '&::before': Object.assign({ content: '""', position: 'absolute', borderRadius: borderRadiusSmall, left: '-4px', right: '-4px' }, (compact
3949
- ? {
3950
- top: '2px',
3951
- bottom: '2px',
3952
- }
3953
- : {
3954
- top: '6px',
3955
- bottom: '6px',
3956
- })),
3957
- }, hoverMediaQuery({
3958
- '&::before': {
3959
- transition: getTransition('background-color'),
3960
- },
3961
- '&:hover::before': {
3962
- background: hoverColor,
3963
- },
3964
- }))), { '&:focus::before': {
3968
+ ':host': addImportantToEachRule({
3969
+ display: 'block',
3970
+ ...(!compact && {
3971
+ borderBottom: `1px solid ${contrastLowColor}`,
3972
+ }),
3973
+ ...hostHiddenStyles,
3974
+ }),
3975
+ button: {
3976
+ display: 'flex',
3977
+ position: 'relative',
3978
+ justifyContent: 'space-between',
3979
+ width: '100%',
3980
+ textDecoration: 'none',
3981
+ border: 0,
3982
+ outline: 0,
3983
+ gap: '24px',
3984
+ background: 'transparent',
3985
+ cursor: 'pointer',
3986
+ textAlign: 'left',
3987
+ color: primaryColor,
3988
+ ...textSmallStyle,
3989
+ fontWeight: fontWeightSemiBold,
3990
+ ...buildResponsiveStyles(size, (s) => ({
3991
+ fontSize: s === 'medium' ? fontSizeTextMedium : fontSizeTextSmall,
3992
+ padding: `${compact ? '4px' : s === 'medium' ? '20px' : '15px'} 0`,
3993
+ })),
3994
+ // mergeDeep needed because of hoverMediaQuery in certain modes not wrapping keys and therefore overriding "&::before" key
3995
+ ...mergeDeep({
3996
+ '&::before': {
3997
+ content: '""',
3998
+ position: 'absolute',
3999
+ borderRadius: borderRadiusSmall,
4000
+ left: '-4px',
4001
+ right: '-4px',
4002
+ ...(compact
4003
+ ? {
4004
+ top: '2px',
4005
+ bottom: '2px',
4006
+ }
4007
+ : {
4008
+ top: '6px',
4009
+ bottom: '6px',
4010
+ }),
4011
+ },
4012
+ }, hoverMediaQuery({
4013
+ '&::before': {
4014
+ transition: getTransition('background-color'),
4015
+ },
4016
+ '&:hover::before': {
4017
+ background: hoverColor,
4018
+ },
4019
+ })),
4020
+ '&:focus::before': {
3965
4021
  border: `${borderWidthBase} solid ${focusColor}`,
3966
- }, '&:not(:focus-visible)::before': {
4022
+ },
4023
+ '&:not(:focus-visible)::before': {
3967
4024
  border: 0,
3968
- } }),
4025
+ },
4026
+ },
3969
4027
  },
3970
4028
  heading: {
3971
4029
  margin: 0,
@@ -3982,23 +4040,26 @@ const getComponentCss$Z = (size, compact, open, theme) => {
3982
4040
  transform: open ? 'rotate3d(0)' : 'rotate3d(0,0,1,90deg)',
3983
4041
  transition: getTransition('transform'),
3984
4042
  },
3985
- collapsible: Object.assign({ color: primaryColor, overflow: 'hidden' }, (open
3986
- ? {
3987
- height: 'auto',
3988
- paddingBottom: compact ? spacingStaticSmall : '24px',
3989
- visibility: 'visible',
3990
- transition: getTransition('height') + ',' + getTransition('padding-bottom'),
3991
- animation: `$open 0s ${transitionDuration} forwards`, // delay overflow change and have `overflow: visible` after transition
3992
- }
3993
- : {
3994
- height: 0,
3995
- visibility: 'hidden',
3996
- transition: getTransition('height') + `,visibility 0s linear ${transitionDuration}`,
3997
- })),
3998
- // TODO: this doesn't get shortened and results in `keyframes-open` for some unknown reason
3999
- '@keyframes open': {
4000
- to: {
4001
- overflow: 'visible',
4043
+ collapsible: {
4044
+ color: primaryColor,
4045
+ display: 'grid',
4046
+ ...(open
4047
+ ? {
4048
+ gridTemplateRows: '1fr',
4049
+ visibility: 'visible',
4050
+ transition: `grid-template-rows ${transitionDuration} ease-out`,
4051
+ paddingBottom: compact ? spacingStaticSmall : '24px',
4052
+ }
4053
+ : {
4054
+ gridTemplateRows: '0fr',
4055
+ visibility: 'hidden',
4056
+ transition: `grid-template-rows ${transitionDuration} ease-out, visibility 0s linear ${transitionDuration}`,
4057
+ }),
4058
+ '& div': {
4059
+ overflow: 'hidden',
4060
+ // Necessary to make focus outlines fully visible
4061
+ padding: '4px',
4062
+ margin: '-4px',
4002
4063
  },
4003
4064
  },
4004
4065
  });
@@ -4022,24 +4083,47 @@ const topBottomFallback = '56px';
4022
4083
  const getComponentCss$Y = (isOpen) => {
4023
4084
  return getCss({
4024
4085
  '@global': {
4025
- ':host': addImportantToEachRule(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ position: 'fixed', bottom: `var(${cssVariableBottom},${topBottomFallback})`, left: gridExtendedOffsetBase, right: gridExtendedOffsetBase, margin: 0, padding: 0, width: 'auto', maxWidth: '100%', zIndex: `var(${cssVariableZIndex},${BANNER_Z_INDEX})` }, dropShadowHighStyle), { borderRadius: borderRadiusSmall }), (isOpen
4026
- ? {
4027
- opacity: 1,
4028
- visibility: 'inherit',
4029
- transform: 'translate3d(0,0,0)',
4030
- transition: `opacity ${duration$1} ${easeInQuad$1},transform ${duration$1} ${easeInQuad$1}`,
4031
- }
4032
- : {
4033
- opacity: 0,
4034
- visibility: 'hidden',
4035
- transform: `translate3d(0,calc(var(${cssVariableBottom},${topBottomFallback}) + 100%),0)`,
4036
- '&(.hydrated),&(.ssr)': {
4037
- transition: `visibility 0s linear ${duration$1},opacity ${duration$1} ${easeOutQuad$1},transform ${duration$1} ${easeOutQuad$1}`,
4038
- },
4039
- })), { [getMediaQueryMin('s')]: Object.assign({ top: `var(${cssVariableTop},${topBottomFallback})`, bottom: 'auto', left: gridExtendedOffsetS, right: gridExtendedOffsetS }, (!isOpen && { transform: `translate3d(0,calc(-100% - var(${cssVariableTop},${topBottomFallback})),0)` })), [getMediaQueryMin('xxl')]: {
4086
+ ':host': addImportantToEachRule({
4087
+ position: 'fixed',
4088
+ bottom: `var(${cssVariableBottom},${topBottomFallback})`,
4089
+ left: gridExtendedOffsetBase,
4090
+ right: gridExtendedOffsetBase,
4091
+ margin: 0,
4092
+ padding: 0,
4093
+ width: 'auto',
4094
+ maxWidth: '100%',
4095
+ zIndex: `var(${cssVariableZIndex},${BANNER_Z_INDEX})`,
4096
+ ...dropShadowHighStyle,
4097
+ borderRadius: borderRadiusSmall,
4098
+ ...(isOpen
4099
+ ? {
4100
+ opacity: 1,
4101
+ visibility: 'inherit',
4102
+ transform: 'translate3d(0,0,0)',
4103
+ transition: `opacity ${duration$1} ${easeInQuad$1},transform ${duration$1} ${easeInQuad$1}`,
4104
+ }
4105
+ : {
4106
+ opacity: 0,
4107
+ visibility: 'hidden',
4108
+ transform: `translate3d(0,calc(var(${cssVariableBottom},${topBottomFallback}) + 100%),0)`,
4109
+ '&(.hydrated),&(.ssr)': {
4110
+ transition: `visibility 0s linear ${duration$1},opacity ${duration$1} ${easeOutQuad$1},transform ${duration$1} ${easeOutQuad$1}`,
4111
+ },
4112
+ }),
4113
+ [getMediaQueryMin('s')]: {
4114
+ top: `var(${cssVariableTop},${topBottomFallback})`,
4115
+ bottom: 'auto',
4116
+ left: gridExtendedOffsetS,
4117
+ right: gridExtendedOffsetS,
4118
+ // space before and after "-" is crucial)
4119
+ ...(!isOpen && { transform: `translate3d(0,calc(-100% - var(${cssVariableTop},${topBottomFallback})),0)` }),
4120
+ },
4121
+ [getMediaQueryMin('xxl')]: {
4040
4122
  left: gridExtendedOffsetXXL,
4041
4123
  right: gridExtendedOffsetXXL,
4042
- } }), hostHiddenStyles)),
4124
+ },
4125
+ ...hostHiddenStyles,
4126
+ }),
4043
4127
  },
4044
4128
  });
4045
4129
  };
@@ -4061,8 +4145,15 @@ const getGroupDirectionJssStyles = (direction) => {
4061
4145
  const getComponentCss$X = (direction) => {
4062
4146
  return getCss({
4063
4147
  '@global': {
4064
- ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
4065
- div: Object.assign({ display: 'flex', gap: spacingFluidSmall }, buildResponsiveStyles(direction, getGroupDirectionJssStyles)),
4148
+ ':host': {
4149
+ display: 'block',
4150
+ ...addImportantToEachRule(hostHiddenStyles),
4151
+ },
4152
+ div: {
4153
+ display: 'flex',
4154
+ gap: spacingFluidSmall,
4155
+ ...buildResponsiveStyles(direction, getGroupDirectionJssStyles),
4156
+ },
4066
4157
  },
4067
4158
  });
4068
4159
  };
@@ -4083,75 +4174,134 @@ const getFontSizeText = (size) => {
4083
4174
  // Needed for slotted anchor and hidden label, which then enlarges the hidden label to equal host size and indents the text to be visually hidden.
4084
4175
  const getVisibilityJssStyle = (hideLabel) => {
4085
4176
  return hideLabel
4086
- ? Object.assign(Object.assign({ position: 'absolute' }, getInsetJssStyle()), { whiteSpace: 'nowrap', textIndent: '-999999px' }) : Object.assign(Object.assign({ position: 'relative' }, getInsetJssStyle('auto')), { whiteSpace: 'inherit', textIndent: 0 });
4177
+ ? {
4178
+ position: 'absolute',
4179
+ ...getInsetJssStyle(),
4180
+ whiteSpace: 'nowrap',
4181
+ textIndent: '-999999px',
4182
+ }
4183
+ : {
4184
+ position: 'relative',
4185
+ ...getInsetJssStyle('auto'),
4186
+ whiteSpace: 'inherit',
4187
+ textIndent: 0,
4188
+ zIndex: 1, // fix Firefox bug on :hover (#2583)
4189
+ };
4087
4190
  };
4088
4191
  const offsetVertical = '-2px';
4089
4192
  const offsetHorizontal = '-4px';
4090
4193
  const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, hasSlottedAnchor, theme) => {
4091
4194
  const { primaryColor, disabledColor, hoverColor, focusColor } = getThemedColors(theme);
4092
4195
  const hasIcon = hasVisibleIcon(icon, iconSource);
4093
- return Object.assign({ '@global': {
4094
- ':host': Object.assign(Object.assign({}, addImportantToEachRule(Object.assign({ transform: 'translate3d(0,0,0)', outline: 0 }, hostHiddenStyles))), buildResponsiveStyles(stretch, (responsiveStretch) => (Object.assign({ display: responsiveStretch ? 'block' : 'inline-block', width: responsiveStretch ? '100%' : 'auto' }, (!responsiveStretch && { verticalAlign: 'top' }))))),
4095
- }, root: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', gap: spacingStaticXSmall, width: '100%', margin: 0, padding: 0, color: isDisabledOrLoading ? disabledColor : primaryColor, outline: 0 }, textSmallStyle), mergeDeep(buildResponsiveStyles(stretch, (stretchValue) => ({
4096
- justifyContent: stretchValue ? 'space-between' : 'flex-start',
4097
- alignItems: stretchValue ? 'center' : 'flex-start',
4098
- })), buildResponsiveStyles(size, (sizeValue) => ({
4099
- fontSize: getFontSizeText(sizeValue),
4100
- })))), { '&::before': Object.assign(Object.assign(Object.assign({ content: '""', position: 'absolute', top: offsetVertical, bottom: offsetVertical }, buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
4101
- right: hideLabelValue ? offsetVertical : offsetHorizontal,
4102
- left: hideLabelValue ? offsetVertical : offsetHorizontal,
4103
- }))), { borderRadius: borderRadiusSmall, transition: getTransition('background-color') }), (active && Object.assign(Object.assign({}, frostedGlassStyle), { backgroundColor: hoverColor }))) }), (!isDisabledOrLoading &&
4104
- hoverMediaQuery({
4105
- '&:hover::before': Object.assign(Object.assign({}, frostedGlassStyle), { backgroundColor: hoverColor }),
4106
- }))), (!hasSlottedAnchor && {
4107
- '&:focus::before': {
4108
- border: `${borderWidthBase} solid ${focusColor}`,
4196
+ return {
4197
+ '@global': {
4198
+ ':host': {
4199
+ ...addImportantToEachRule({
4200
+ transform: 'translate3d(0,0,0)',
4201
+ outline: 0,
4202
+ ...hostHiddenStyles,
4203
+ }),
4204
+ ...buildResponsiveStyles(stretch, (responsiveStretch) => ({
4205
+ display: responsiveStretch ? 'block' : 'inline-block',
4206
+ width: responsiveStretch ? '100%' : 'auto',
4207
+ ...(!responsiveStretch && { verticalAlign: 'top' }),
4208
+ })),
4109
4209
  },
4110
- '&:not(:focus-visible)::before': {
4111
- border: 0,
4210
+ },
4211
+ root: {
4212
+ display: 'flex',
4213
+ gap: spacingStaticXSmall,
4214
+ width: '100%',
4215
+ margin: 0,
4216
+ padding: 0,
4217
+ color: isDisabledOrLoading ? disabledColor : primaryColor,
4218
+ outline: 0,
4219
+ ...textSmallStyle,
4220
+ ...mergeDeep(buildResponsiveStyles(stretch, (stretchValue) => ({
4221
+ justifyContent: stretchValue ? 'space-between' : 'flex-start',
4222
+ alignItems: stretchValue ? 'center' : 'flex-start',
4223
+ })), buildResponsiveStyles(size, (sizeValue) => ({
4224
+ fontSize: getFontSizeText(sizeValue),
4225
+ }))),
4226
+ '&::before': {
4227
+ content: '""',
4228
+ position: 'absolute',
4229
+ top: offsetVertical,
4230
+ bottom: offsetVertical,
4231
+ ...buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
4232
+ right: hideLabelValue ? offsetVertical : offsetHorizontal,
4233
+ left: hideLabelValue ? offsetVertical : offsetHorizontal,
4234
+ })),
4235
+ borderRadius: borderRadiusSmall,
4236
+ transition: getTransition('background-color'),
4237
+ ...(active && {
4238
+ ...frostedGlassStyle,
4239
+ backgroundColor: hoverColor,
4240
+ }),
4112
4241
  },
4113
- })), label: {
4242
+ ...(!isDisabledOrLoading &&
4243
+ hoverMediaQuery({
4244
+ '&:hover::before': {
4245
+ ...frostedGlassStyle,
4246
+ backgroundColor: hoverColor,
4247
+ },
4248
+ })),
4249
+ ...(!hasSlottedAnchor && {
4250
+ '&:focus::before': {
4251
+ border: `${borderWidthBase} solid ${focusColor}`,
4252
+ },
4253
+ '&:not(:focus-visible)::before': {
4254
+ border: 0,
4255
+ },
4256
+ }),
4257
+ },
4258
+ label: {
4114
4259
  position: 'relative', // needed for hover state when icon="none" is set
4115
- } }, (hasIcon && {
4116
- icon: {
4117
- position: 'relative',
4118
- flexShrink: '0',
4119
- width: fontLineHeight,
4120
- height: fontLineHeight,
4121
- // workaround for Safari to optimize vertical alignment of icons
4122
- // TODO: check if this is still needed after optimized icons are included
4123
- '@supports (width: round(down, 1px, 1px))': {
4124
- width: `round(down, ${fontLineHeight}, 1px)`,
4125
- height: `round(down, ${fontLineHeight}, 1px)`,
4126
- },
4127
4260
  },
4128
- label: mergeDeep(buildResponsiveStyles(hideLabel, getVisibilityJssStyle), buildResponsiveStyles(alignLabel, (alignLabelValue) => ({
4129
- order: alignLabelValue === 'left' ? -1 : 0,
4130
- }))),
4131
- }));
4261
+ ...(hasIcon && {
4262
+ icon: {
4263
+ position: 'relative',
4264
+ flexShrink: '0',
4265
+ width: fontLineHeight,
4266
+ height: fontLineHeight,
4267
+ // workaround for Safari to optimize vertical alignment of icons
4268
+ // TODO: check if this is still needed after optimized icons are included
4269
+ '@supports (width: round(down, 1px, 1px))': {
4270
+ width: `round(down, ${fontLineHeight}, 1px)`,
4271
+ height: `round(down, ${fontLineHeight}, 1px)`,
4272
+ },
4273
+ },
4274
+ label: mergeDeep(buildResponsiveStyles(hideLabel, getVisibilityJssStyle), buildResponsiveStyles(alignLabel, (alignLabelValue) => ({
4275
+ order: alignLabelValue === 'left' ? -1 : 0,
4276
+ }))),
4277
+ }),
4278
+ };
4132
4279
  };
4133
4280
 
4134
4281
  const getComponentCss$W = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, theme) => {
4135
4282
  const hasIcon = hasVisibleIcon(icon, iconSource);
4136
- return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, false, theme), Object.assign({ root: {
4283
+ return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, false, theme), {
4284
+ root: {
4137
4285
  appearance: 'none',
4138
4286
  background: 'transparent',
4139
4287
  textAlign: 'left',
4140
4288
  border: 0,
4141
4289
  cursor: isDisabledOrLoading ? 'not-allowed' : 'pointer',
4142
- } }, (!hasIcon &&
4143
- isLoading && {
4144
- label: {
4145
- visibility: 'hidden',
4146
- },
4147
- icon: {
4148
- position: 'absolute',
4149
- top: 0,
4150
- left: `calc(50% - ${fontLineHeight} / 2)`,
4151
- width: fontLineHeight,
4152
- height: fontLineHeight,
4153
4290
  },
4154
- }))));
4291
+ ...(!hasIcon &&
4292
+ isLoading && {
4293
+ label: {
4294
+ visibility: 'hidden',
4295
+ },
4296
+ icon: {
4297
+ position: 'absolute',
4298
+ top: 0,
4299
+ left: `calc(50% - ${fontLineHeight} / 2)`,
4300
+ width: fontLineHeight,
4301
+ height: fontLineHeight,
4302
+ },
4303
+ }),
4304
+ }));
4155
4305
  };
4156
4306
 
4157
4307
  const fontWeightMap = {
@@ -4190,25 +4340,46 @@ const aspectRatioPaddingMap = {
4190
4340
  };
4191
4341
  const getTileBaseStyles = (aspectRatio, isDisabled) => {
4192
4342
  return {
4193
- '@global': Object.assign({ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)) }, addImportantToEachRule({
4194
- '::slotted': {
4195
- '&(picture)': Object.assign({ position: 'absolute' }, getInsetJssStyle()),
4196
- '&(img)': {
4197
- height: '100%',
4198
- width: '100%',
4199
- objectFit: 'cover',
4200
- },
4343
+ '@global': {
4344
+ ':host': {
4345
+ display: 'block',
4346
+ ...addImportantToEachRule(hostHiddenStyles),
4201
4347
  },
4202
- })),
4203
- root: Object.assign(Object.assign({ position: 'relative', overflow: 'hidden', transform: 'translate3d(0,0,0)', borderRadius: borderRadiusLarge, color: getThemedTypographyColor('dark', 'primary') }, buildResponsiveStyles(aspectRatio, (ratio) => ({
4204
- paddingTop: aspectRatioPaddingMap[ratio],
4205
- }))), (!isDisabled &&
4206
- hoverMediaQuery({
4207
- '&:hover .image-container': {
4208
- transform: 'scale3d(1.05,1.05,1.05)',
4348
+ ...addImportantToEachRule({
4349
+ '::slotted': {
4350
+ '&(picture)': {
4351
+ position: 'absolute',
4352
+ ...getInsetJssStyle(),
4353
+ },
4354
+ '&(img)': {
4355
+ height: '100%',
4356
+ width: '100%',
4357
+ objectFit: 'cover',
4358
+ },
4209
4359
  },
4210
- }))),
4211
- 'image-container': Object.assign({ position: 'absolute', transition: getTransition('transform') }, getInsetJssStyle()),
4360
+ }),
4361
+ },
4362
+ root: {
4363
+ position: 'relative',
4364
+ overflow: 'hidden',
4365
+ transform: 'translate3d(0,0,0)',
4366
+ borderRadius: borderRadiusLarge,
4367
+ color: getThemedTypographyColor('dark', 'primary'),
4368
+ ...buildResponsiveStyles(aspectRatio, (ratio) => ({
4369
+ paddingTop: aspectRatioPaddingMap[ratio],
4370
+ })),
4371
+ ...(!isDisabled &&
4372
+ hoverMediaQuery({
4373
+ '&:hover .image-container': {
4374
+ transform: 'scale3d(1.05,1.05,1.05)',
4375
+ },
4376
+ })),
4377
+ },
4378
+ 'image-container': {
4379
+ position: 'absolute',
4380
+ transition: getTransition('transform'),
4381
+ ...getInsetJssStyle(),
4382
+ },
4212
4383
  content: {
4213
4384
  position: 'absolute',
4214
4385
  left: 0,
@@ -4231,32 +4402,59 @@ const sizeMap$5 = {
4231
4402
  const getButtonLinkTileStyles = (aspectRatio, size, weight, // to get deprecated semibold typed
4232
4403
  align, compact, hasGradient, isDisabled) => {
4233
4404
  const isTopAligned = align === 'top';
4234
- return Object.assign({}, mergeDeep(getTileBaseStyles(aspectRatio, isDisabled), {
4235
- '@global': {
4236
- p: Object.assign(Object.assign({ maxWidth: pxToRemWithUnit(550), margin: 0 }, textLargeStyle), mergeDeep(buildResponsiveStyles(size, (s) => sizeMap$5[s]), buildResponsiveStyles(weight, (w) => ({
4237
- fontWeight: getFontWeight(w === 'semibold' ? 'semi-bold' : w), // mapping of the deprecated weight semibold
4238
- })))),
4239
- },
4240
- content: Object.assign(Object.assign(Object.assign({ display: 'grid' }, (isTopAligned ? { top: 0 } : { bottom: 0 })), { padding: isTopAligned
4241
- ? `${spacingFluidMedium} ${spacingFluidMedium} ${spacingFluidLarge}`
4242
- : `${spacingFluidLarge} ${spacingFluidMedium} ${spacingFluidMedium}` }), mergeDeep(hasGradient &&
4243
- buildResponsiveStyles(compact, (isCompact) => isCompact && isTopAligned ? gradientToBottomStyle : gradientToTopStyle), buildResponsiveStyles(compact, (isCompact) => isCompact // TODO: use flex
4244
- ? Object.assign({ alignItems: 'center', gridTemplateColumns: 'auto 24px', gridTemplateRows: 'auto' }, (isTopAligned ? { top: 0 } : { bottom: 0 })) : {
4245
- gridTemplateRows: 'auto auto',
4246
- gridTemplateColumns: 'auto',
4247
- }))),
4248
- 'link-or-button-pure': buildResponsiveStyles(compact, (isCompact) => ({
4249
- display: isCompact ? 'inline-block' : 'none',
4250
- })),
4251
- 'link-or-button': Object.assign({ minHeight: '54px' }, buildResponsiveStyles(compact, (isCompact) => ({
4252
- display: isCompact ? 'none' : 'inline-block',
4253
- }))),
4254
- }));
4405
+ return {
4406
+ ...mergeDeep(getTileBaseStyles(aspectRatio, isDisabled), {
4407
+ '@global': {
4408
+ p: {
4409
+ maxWidth: pxToRemWithUnit(550),
4410
+ margin: 0,
4411
+ ...textLargeStyle,
4412
+ ...mergeDeep(buildResponsiveStyles(size, (s) => sizeMap$5[s]), buildResponsiveStyles(weight, (w) => ({
4413
+ fontWeight: getFontWeight(w === 'semibold' ? 'semi-bold' : w), // mapping of the deprecated weight semibold
4414
+ }))),
4415
+ },
4416
+ },
4417
+ content: {
4418
+ display: 'grid',
4419
+ ...(isTopAligned ? { top: 0 } : { bottom: 0 }),
4420
+ padding: isTopAligned
4421
+ ? `${spacingFluidMedium} ${spacingFluidMedium} ${spacingFluidLarge}`
4422
+ : `${spacingFluidLarge} ${spacingFluidMedium} ${spacingFluidMedium}`,
4423
+ ...mergeDeep(hasGradient &&
4424
+ buildResponsiveStyles(compact, (isCompact) => isCompact && isTopAligned ? gradientToBottomStyle : gradientToTopStyle), buildResponsiveStyles(compact, (isCompact) => isCompact // TODO: use flex
4425
+ ? {
4426
+ alignItems: 'center',
4427
+ gridTemplateColumns: 'auto 24px',
4428
+ gridTemplateRows: 'auto',
4429
+ ...(isTopAligned ? { top: 0 } : { bottom: 0 }),
4430
+ }
4431
+ : {
4432
+ gridTemplateRows: 'auto auto',
4433
+ gridTemplateColumns: 'auto',
4434
+ })),
4435
+ },
4436
+ 'link-or-button-pure': buildResponsiveStyles(compact, (isCompact) => ({
4437
+ display: isCompact ? 'inline-block' : 'none',
4438
+ })),
4439
+ 'link-or-button': {
4440
+ minHeight: '54px',
4441
+ ...buildResponsiveStyles(compact, (isCompact) => ({
4442
+ display: isCompact ? 'none' : 'inline-block',
4443
+ })),
4444
+ },
4445
+ }),
4446
+ };
4255
4447
  };
4256
4448
 
4257
4449
  const getComponentCss$V = (isDisabledOrLoading, ...args) => {
4258
4450
  const buttonLinkTileStyles = getButtonLinkTileStyles(...args);
4259
- return getCss(Object.assign(Object.assign({}, buttonLinkTileStyles), { root: Object.assign(Object.assign({}, buttonLinkTileStyles.root), { cursor: isDisabledOrLoading ? 'not-allowed' : 'pointer' }) }));
4451
+ return getCss({
4452
+ ...buttonLinkTileStyles,
4453
+ root: {
4454
+ ...buttonLinkTileStyles.root,
4455
+ cursor: isDisabledOrLoading ? 'not-allowed' : 'pointer',
4456
+ },
4457
+ });
4260
4458
  };
4261
4459
 
4262
4460
  const { primaryColor: darkThemePrimaryColor$1 } = getThemedColors('dark');
@@ -4287,26 +4485,69 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
4287
4485
  const { textColor, borderColor, borderColorHover, backgroundColor, backgroundColorHover } = getVariantColors(variant, theme);
4288
4486
  const { focusColor } = getThemedColors(theme);
4289
4487
  const hasIcon = hasVisibleIcon(icon, iconSource) || hideLabel;
4290
- return Object.assign({ '@global': {
4291
- ':host': Object.assign({ display: 'inline-block' }, addImportantToEachRule(Object.assign({ verticalAlign: 'top', outline: 0 }, hostHiddenStyles))),
4292
- }, root: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', alignItems: 'flex-start', justifyContent: 'center', width: '100%', minWidth: '54px', minHeight: '54px', boxSizing: 'border-box', outline: 0, textAlign: 'left', appearance: 'none', textDecoration: 'none', border: `2px solid ${borderColor}`, borderRadius: borderRadiusSmall, transform: 'translate3d(0,0,0)', // creates new stacking context (for slotted anchor + focus)
4293
- backgroundColor, color: textColor }, textSmallStyle), { transition: ['background-color', 'border-color', 'color'].map(getTransition).join() }), buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
4294
- padding: hideLabelValue ? '13px' : hasIcon ? '13px 26px 13px 18px' : '13px 26px',
4295
- gap: hideLabelValue ? 0 : spacingStaticSmall,
4296
- }))), (!hasSlottedAnchor && {
4297
- '&:focus::before': Object.assign({ content: '""', position: 'fixed', border: `${borderWidthBase} solid ${focusColor}`, borderRadius: borderRadiusMedium }, getInsetJssStyle(-6)),
4298
- '&:not(:focus-visible)::before': {
4299
- border: 0,
4488
+ return {
4489
+ '@global': {
4490
+ ':host': {
4491
+ display: 'inline-block',
4492
+ ...addImportantToEachRule({
4493
+ verticalAlign: 'top',
4494
+ outline: 0,
4495
+ ...hostHiddenStyles,
4496
+ }),
4300
4497
  },
4301
- })), (!isDisabledOrLoading &&
4302
- hoverMediaQuery({
4303
- '&:hover': Object.assign({ backgroundColor: backgroundColorHover, borderColor: isHighContrastMode ? focusColor : borderColorHover }, (!isPrimary && frostedGlassStyle)),
4304
- }))), label: buildResponsiveStyles(hideLabel, getHiddenTextJssStyle) }, (hasIcon && {
4305
- icon: {
4306
- width: fontLineHeight,
4307
- height: fontLineHeight,
4308
4498
  },
4309
- }));
4499
+ root: {
4500
+ display: 'flex',
4501
+ alignItems: 'flex-start',
4502
+ justifyContent: 'center',
4503
+ width: '100%',
4504
+ minWidth: '54px',
4505
+ minHeight: '54px',
4506
+ boxSizing: 'border-box',
4507
+ outline: 0,
4508
+ textAlign: 'left',
4509
+ appearance: 'none',
4510
+ textDecoration: 'none',
4511
+ border: `2px solid ${borderColor}`,
4512
+ borderRadius: borderRadiusSmall,
4513
+ transform: 'translate3d(0,0,0)',
4514
+ backgroundColor,
4515
+ color: textColor,
4516
+ ...textSmallStyle,
4517
+ transition: ['background-color', 'border-color', 'color'].map(getTransition).join(),
4518
+ ...buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
4519
+ padding: hideLabelValue ? '13px' : hasIcon ? '13px 26px 13px 18px' : '13px 26px',
4520
+ gap: hideLabelValue ? 0 : spacingStaticSmall,
4521
+ })),
4522
+ ...(!hasSlottedAnchor && {
4523
+ '&:focus::before': {
4524
+ content: '""',
4525
+ position: 'fixed',
4526
+ border: `${borderWidthBase} solid ${focusColor}`,
4527
+ borderRadius: borderRadiusMedium,
4528
+ ...getInsetJssStyle(-6),
4529
+ },
4530
+ '&:not(:focus-visible)::before': {
4531
+ border: 0,
4532
+ },
4533
+ }),
4534
+ ...(!isDisabledOrLoading &&
4535
+ hoverMediaQuery({
4536
+ '&:hover': {
4537
+ backgroundColor: backgroundColorHover,
4538
+ borderColor: isHighContrastMode ? focusColor : borderColorHover,
4539
+ ...(!isPrimary && frostedGlassStyle),
4540
+ },
4541
+ })),
4542
+ },
4543
+ label: buildResponsiveStyles(hideLabel, getHiddenTextJssStyle),
4544
+ ...(hasIcon && {
4545
+ icon: {
4546
+ width: fontLineHeight,
4547
+ height: fontLineHeight,
4548
+ },
4549
+ }),
4550
+ };
4310
4551
  };
4311
4552
 
4312
4553
  const getDisabledColors = (variant, loading, theme) => {
@@ -4330,25 +4571,40 @@ const getComponentCss$U = (icon, iconSource, variant, hideLabel, disabled, loadi
4330
4571
  const disabledOrLoading = isDisabledOrLoading(disabled, loading);
4331
4572
  const { textColor, borderColor, backgroundColor } = getDisabledColors(variant, loading, theme);
4332
4573
  const isPrimary = variant === 'primary';
4333
- return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, disabledOrLoading, false, theme), Object.assign(Object.assign({ root: Object.assign(Object.assign({ cursor: disabledOrLoading ? 'not-allowed' : 'pointer' }, (disabledOrLoading && {
4334
- backgroundColor,
4335
- borderColor,
4336
- color: textColor,
4337
- })), (loading && !isPrimary && frostedGlassStyle)) }, (loading && {
4338
- spinner: {
4339
- width: fontLineHeight,
4340
- height: fontLineHeight,
4341
- pointerEvents: 'none',
4342
- position: 'absolute',
4343
- top: '50%',
4344
- left: '50%',
4345
- transform: 'translate(-50%, -50%)',
4574
+ return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, disabledOrLoading, false, theme), {
4575
+ root: {
4576
+ cursor: disabledOrLoading ? 'not-allowed' : 'pointer',
4577
+ ...(disabledOrLoading && {
4578
+ backgroundColor,
4579
+ borderColor,
4580
+ color: textColor,
4581
+ }),
4582
+ ...(loading && !isPrimary && frostedGlassStyle),
4583
+ },
4584
+ ...(loading && {
4585
+ spinner: {
4586
+ width: fontLineHeight,
4587
+ height: fontLineHeight,
4588
+ pointerEvents: 'none',
4589
+ position: 'absolute',
4590
+ top: '50%',
4591
+ left: '50%',
4592
+ transform: 'translate(-50%, -50%)',
4593
+ },
4594
+ }),
4595
+ label: {
4596
+ transition: getTransition('opacity'),
4597
+ ...(loading && {
4598
+ opacity: 0, // use opacity for smooth transition between states
4599
+ }),
4600
+ },
4601
+ icon: {
4602
+ transition: getTransition('opacity'),
4603
+ ...(loading && {
4604
+ opacity: 0, // use opacity for smooth transition between states
4605
+ }),
4346
4606
  },
4347
- })), { label: Object.assign({ transition: getTransition('opacity') }, (loading && {
4348
- opacity: 0, // use opacity for smooth transition between states
4349
- })), icon: Object.assign({ transition: getTransition('opacity') }, (loading && {
4350
- opacity: 0, // use opacity for smooth transition between states
4351
- })) })));
4607
+ }));
4352
4608
  };
4353
4609
 
4354
4610
  const carouselTransitionDuration = 400;
@@ -4374,10 +4630,32 @@ const getComponentCss$T = (width, hasPagination, isInfinitePagination, alignHead
4374
4630
  const { primaryColor, contrastMediumColor, focusColor } = getThemedColors(theme);
4375
4631
  const { canvasTextColor } = getHighContrastColors();
4376
4632
  const isHeaderAlignCenter = alignHeader === 'center';
4377
- return getCss(Object.assign({ '@global': {
4378
- ':host': addImportantToEachRule(Object.assign({ display: 'flex', gap: spacingFluidMedium, flexDirection: 'column', boxSizing: 'content-box' }, hostHiddenStyles)),
4379
- [selectorHeading]: addImportantToEachRule(Object.assign(Object.assign({}, headingXLargeStyle), { maxWidth: '56.25rem', margin: 0 })),
4380
- [selectorDescription]: addImportantToEachRule(Object.assign(Object.assign({}, textSmallStyle), { maxWidth: '34.375rem', margin: `${spacingFluidXSmall} 0 0` })),
4633
+ return getCss({
4634
+ '@global': {
4635
+ ':host': addImportantToEachRule({
4636
+ display: 'flex',
4637
+ gap: spacingFluidMedium,
4638
+ flexDirection: 'column',
4639
+ boxSizing: 'content-box',
4640
+ ...hostHiddenStyles,
4641
+ }),
4642
+ '::slotted(*)': {
4643
+ borderRadius: addImportantToRule(`var(--p-carousel-border-radius, ${borderRadiusLarge})`),
4644
+ },
4645
+ '::slotted(*:focus-visible)': addImportantToEachRule({
4646
+ outline: `${borderWidthBase} solid ${focusColor}`,
4647
+ outlineOffset: '2px',
4648
+ }),
4649
+ [selectorHeading]: addImportantToEachRule({
4650
+ ...headingXLargeStyle,
4651
+ maxWidth: '56.25rem',
4652
+ margin: 0,
4653
+ }),
4654
+ [selectorDescription]: addImportantToEachRule({
4655
+ ...textSmallStyle,
4656
+ maxWidth: '34.375rem',
4657
+ margin: `${spacingFluidXSmall} 0 0`,
4658
+ }),
4381
4659
  [`${selectorHeading},${selectorDescription}`]: addImportantToEachRule({
4382
4660
  color: primaryColor,
4383
4661
  [mediaQueryS]: isHeaderAlignCenter
@@ -4388,13 +4666,28 @@ const getComponentCss$T = (width, hasPagination, isInfinitePagination, alignHead
4388
4666
  gridColumn: '1 / 3',
4389
4667
  },
4390
4668
  }),
4391
- }, header: Object.assign(Object.assign({ display: 'grid', padding: `0 ${spacingMap[width].base}` }, (isHeaderAlignCenter && {
4392
- textAlign: 'center',
4393
- })), { [mediaQueryS]: Object.assign(Object.assign({ fontFamily, fontSize: fontSizeTextSmall, columnGap: spacingStaticMedium, gridTemplateColumns: `${buttonGroupWidth} minmax(0px, 1fr) ${buttonGroupWidth}` }, (isHeaderAlignCenter && {
4394
- justifyItems: 'center', // relevant when max-width of heading or description is reached
4395
- })), { padding: `0 ${spacingMap[width].s}` }), [mediaQueryXXL]: {
4669
+ },
4670
+ header: {
4671
+ display: 'grid',
4672
+ padding: `0 ${spacingMap[width].base}`,
4673
+ ...(isHeaderAlignCenter && {
4674
+ textAlign: 'center',
4675
+ }),
4676
+ [mediaQueryS]: {
4677
+ fontFamily,
4678
+ fontSize: fontSizeTextSmall,
4679
+ columnGap: spacingStaticMedium,
4680
+ gridTemplateColumns: `${buttonGroupWidth} minmax(0px, 1fr) ${buttonGroupWidth}`,
4681
+ ...(isHeaderAlignCenter && {
4682
+ justifyItems: 'center', // relevant when max-width of heading or description is reached
4683
+ }),
4684
+ padding: `0 ${spacingMap[width].s}`,
4685
+ },
4686
+ [mediaQueryXXL]: {
4396
4687
  padding: `0 ${spacingMap[width].xxl}`,
4397
- } }), nav: {
4688
+ },
4689
+ },
4690
+ nav: {
4398
4691
  display: 'none',
4399
4692
  [mediaQueryS]: {
4400
4693
  display: 'flex',
@@ -4404,88 +4697,128 @@ const getComponentCss$T = (width, hasPagination, isInfinitePagination, alignHead
4404
4697
  justifyContent: 'end',
4405
4698
  justifySelf: 'end',
4406
4699
  },
4407
- }, btn: {
4700
+ },
4701
+ btn: {
4408
4702
  padding: spacingStaticSmall,
4409
- }, 'skip-link': {
4703
+ },
4704
+ 'skip-link': {
4410
4705
  opacity: 0,
4411
4706
  pointerEvents: 'none',
4412
4707
  '&:focus': {
4413
4708
  opacity: 1,
4414
4709
  pointerEvents: 'all',
4415
4710
  },
4416
- }, splide: {
4711
+ },
4712
+ splide: {
4417
4713
  overflow: 'hidden',
4418
- // visibility: 'hidden',
4419
4714
  padding: '4px 0',
4420
4715
  margin: '-4px 0',
4421
- '&__track': Object.assign(Object.assign({ cursor: 'grab' }, addImportantToEachRule({
4422
- padding: `0 ${spacingMap[width].base}`,
4423
- [getMediaQueryMax('xs')]: {
4424
- paddingRight: `calc(${gridBasicOffsetBase} + ${gridGap})`, // we need to give cut off slides a bit more space on mobile views
4425
- },
4426
- [mediaQueryS]: {
4427
- padding: `0 ${spacingMap[width].s}`,
4428
- },
4429
- [mediaQueryXXL]: {
4430
- padding: `0 ${spacingMap[width].xxl}`,
4431
- },
4432
- })), { '&--draggable': {
4716
+ '&__track': {
4717
+ cursor: 'grab',
4718
+ // !important is necessary to override inline styles set by splide library
4719
+ ...addImportantToEachRule({
4720
+ padding: `0 ${spacingMap[width].base}`,
4721
+ [getMediaQueryMax('xs')]: {
4722
+ paddingRight: `calc(${gridBasicOffsetBase} + ${gridGap})`, // we need to give cut off slides a bit more space on mobile views
4723
+ },
4724
+ [mediaQueryS]: {
4725
+ padding: `0 ${spacingMap[width].s}`,
4726
+ },
4727
+ [mediaQueryXXL]: {
4728
+ padding: `0 ${spacingMap[width].xxl}`,
4729
+ },
4730
+ }),
4731
+ '&--draggable': {
4433
4732
  userSelect: 'none',
4434
4733
  WebkitUserSelect: 'none',
4435
4734
  WebkitTouchCallout: 'none',
4436
- } }),
4437
- '&__list': Object.assign({ display: 'flex' }, getBackfaceVisibilityJssStyle()),
4438
- '&__slide': Object.assign(Object.assign({ position: 'relative', flexShrink: 0 }, getBackfaceVisibilityJssStyle()), { transform: 'translateZ(0)', borderRadius: borderRadiusLarge, overflow: 'hidden', '&:focus-visible': {
4439
- outline: `${borderWidthBase} solid ${focusColor}`,
4440
- outlineOffset: '2px',
4441
- } }),
4442
- '&__sr': getHiddenTextJssStyle(), // appears in the DOM when sliding
4443
- } }, (hasPagination && Object.assign(Object.assign({ ['pagination-container']: Object.assign(Object.assign({}, buildResponsiveStyles(hasPagination, (hasPaginationValue) => ({
4444
- display: hasPaginationValue ? 'flex' : 'none',
4445
- }))), { position: 'relative', justifyContent: isInfinitePagination ? 'flex-start' : 'center', width: `calc(${paginationActiveBulletSize} + ${paginationBulletSize} * 4 + ${spacingStaticSmall} * 4)`, left: 'calc(50% - 42px)', overflowX: 'hidden' }), pagination: {
4446
- display: 'flex',
4447
- alignItems: 'center',
4448
- width: 'fit-content',
4449
- height: paginationBulletSize,
4450
- gap: spacingStaticSmall,
4451
- transition: `transform ${carouselTransitionDuration}ms`,
4452
- }, bullet: Object.assign({ borderRadius: borderRadiusSmall, background: isHighContrastMode ? canvasTextColor : contrastMediumColor }, (isInfinitePagination
4453
- ? {
4454
- width: '0px',
4455
- height: '0px',
4456
- transition: `background-color ${carouselTransitionDuration}ms, width ${carouselTransitionDuration}ms, height ${carouselTransitionDuration}ms`,
4457
- }
4458
- : {
4459
- width: paginationBulletSize,
4460
- height: paginationBulletSize,
4461
- transition: `background-color ${carouselTransitionDuration}ms, width ${carouselTransitionDuration}ms`,
4462
- })) }, (isInfinitePagination && {
4463
- [`${paginationInfiniteStartCaseClass}`]: {
4464
- ['& > .bullet:nth-child(-n+4)']: {
4465
- width: paginationBulletSize,
4466
- height: paginationBulletSize,
4735
+ },
4736
+ },
4737
+ '&__list': {
4738
+ display: 'flex',
4739
+ ...getBackfaceVisibilityJssStyle(),
4467
4740
  },
4741
+ '&__slide': {
4742
+ flexShrink: 0,
4743
+ ...getBackfaceVisibilityJssStyle(),
4744
+ transform: 'translateZ(0)', // fixes mobile safari flickering, https://github.com/nolimits4web/swiper/issues/3527#issuecomment-609088939
4745
+ },
4746
+ '&__sr': getHiddenTextJssStyle(), // appears in the DOM when sliding
4468
4747
  },
4469
- [`${bulletInfiniteClass}`]: Object.assign(Object.assign({}, addImportantToEachRule({
4470
- width: paginationInfiniteBulletSize,
4471
- height: paginationInfiniteBulletSize,
4472
- })), { '& ~ span': {
4473
- width: paginationBulletSize,
4474
- height: paginationBulletSize,
4475
- }, [`& ~ .${bulletInfiniteClass} ~ span`]: {
4476
- width: '0px',
4477
- height: '0px',
4478
- } }),
4479
- })), { [`${bulletActiveClass}`]: Object.assign({ background: isHighContrastMode ? canvasTextColor : primaryColor, height: paginationBulletSize, width: addImportantToRule(paginationActiveBulletSize) }, (isInfinitePagination && {
4480
- '& ~ span': {
4481
- width: paginationBulletSize,
4748
+ ...(hasPagination && {
4749
+ ['pagination-container']: {
4750
+ ...buildResponsiveStyles(hasPagination, (hasPaginationValue) => ({
4751
+ display: hasPaginationValue ? 'flex' : 'none',
4752
+ })),
4753
+ position: 'relative',
4754
+ justifyContent: isInfinitePagination ? 'flex-start' : 'center',
4755
+ width: `calc(${paginationActiveBulletSize} + ${paginationBulletSize} * 4 + ${spacingStaticSmall} * 4)`,
4756
+ left: 'calc(50% - 42px)',
4757
+ overflowX: 'hidden',
4758
+ },
4759
+ pagination: {
4760
+ display: 'flex',
4761
+ alignItems: 'center',
4762
+ width: 'fit-content',
4482
4763
  height: paginationBulletSize,
4764
+ gap: spacingStaticSmall,
4765
+ transition: `transform ${carouselTransitionDuration}ms`,
4766
+ },
4767
+ bullet: {
4768
+ borderRadius: borderRadiusSmall,
4769
+ background: isHighContrastMode ? canvasTextColor : contrastMediumColor,
4770
+ ...(isInfinitePagination
4771
+ ? {
4772
+ width: '0px',
4773
+ height: '0px',
4774
+ transition: `background-color ${carouselTransitionDuration}ms, width ${carouselTransitionDuration}ms, height ${carouselTransitionDuration}ms`,
4775
+ }
4776
+ : {
4777
+ width: paginationBulletSize,
4778
+ height: paginationBulletSize,
4779
+ transition: `background-color ${carouselTransitionDuration}ms, width ${carouselTransitionDuration}ms`,
4780
+ }),
4483
4781
  },
4484
- [`& ~ .${bulletInfiniteClass} ~ span`]: {
4485
- width: '0px',
4486
- height: '0px',
4782
+ ...(isInfinitePagination && {
4783
+ [`${paginationInfiniteStartCaseClass}`]: {
4784
+ ['& > .bullet:nth-child(-n+4)']: {
4785
+ width: paginationBulletSize,
4786
+ height: paginationBulletSize,
4787
+ },
4788
+ },
4789
+ [`${bulletInfiniteClass}`]: {
4790
+ // Necessary to override the bulletActiveClass sibling selector
4791
+ ...addImportantToEachRule({
4792
+ width: paginationInfiniteBulletSize,
4793
+ height: paginationInfiniteBulletSize,
4794
+ }),
4795
+ '& ~ span': {
4796
+ width: paginationBulletSize,
4797
+ height: paginationBulletSize,
4798
+ },
4799
+ [`& ~ .${bulletInfiniteClass} ~ span`]: {
4800
+ width: '0px',
4801
+ height: '0px',
4802
+ },
4803
+ },
4804
+ }),
4805
+ [`${bulletActiveClass}`]: {
4806
+ background: isHighContrastMode ? canvasTextColor : primaryColor,
4807
+ height: paginationBulletSize,
4808
+ width: addImportantToRule(paginationActiveBulletSize),
4809
+ ...(isInfinitePagination && {
4810
+ '& ~ span': {
4811
+ width: paginationBulletSize,
4812
+ height: paginationBulletSize,
4813
+ },
4814
+ [`& ~ .${bulletInfiniteClass} ~ span`]: {
4815
+ width: '0px',
4816
+ height: '0px',
4817
+ },
4818
+ }),
4487
4819
  },
4488
- })) }))));
4820
+ }),
4821
+ });
4489
4822
  };
4490
4823
 
4491
4824
  const getThemedFormStateColors = (theme, state) => {
@@ -4506,7 +4839,14 @@ const getFunctionalComponentRequiredStyles = () => {
4506
4839
 
4507
4840
  const getFunctionalComponentStateMessageStyles = (theme, state) => {
4508
4841
  return {
4509
- message: Object.assign(Object.assign({ display: 'flex', gap: spacingStaticXSmall, marginTop: spacingStaticXSmall }, textSmallStyle), { color: getThemedFormStateColors(theme, state).formStateColor, transition: getTransition('color') }),
4842
+ message: {
4843
+ display: 'flex',
4844
+ gap: spacingStaticXSmall,
4845
+ marginTop: spacingStaticXSmall,
4846
+ ...textSmallStyle,
4847
+ color: getThemedFormStateColors(theme, state).formStateColor,
4848
+ transition: getTransition('color'),
4849
+ },
4510
4850
  };
4511
4851
  };
4512
4852
 
@@ -4523,9 +4863,14 @@ const getCheckboxRadioJssStyle = (hideLabel, state, isDisabled, isLoading, theme
4523
4863
  ? disabledColor
4524
4864
  : formStateColor || primaryColor;
4525
4865
  const checkedHoverColor = formStateHoverColor || contrastHighColor;
4526
- return Object.assign(Object.assign({ '@global': {
4527
- ':host': addImportantToEachRule(Object.assign(Object.assign({}, hostHiddenStyles), { display: 'block' })),
4528
- '::slotted': addImportantToEachRule(Object.assign({ '&(input)': {
4866
+ return {
4867
+ '@global': {
4868
+ ':host': addImportantToEachRule({
4869
+ ...hostHiddenStyles,
4870
+ display: 'block',
4871
+ }),
4872
+ '::slotted': addImportantToEachRule({
4873
+ '&(input)': {
4529
4874
  position: 'relative',
4530
4875
  width: fontLineHeight,
4531
4876
  height: fontLineHeight,
@@ -4543,31 +4888,53 @@ const getCheckboxRadioJssStyle = (hideLabel, state, isDisabled, isLoading, theme
4543
4888
  border: `2px solid ${uncheckedColor}`,
4544
4889
  outline: 0,
4545
4890
  cursor: disabledOrLoading ? 'not-allowed' : 'pointer',
4546
- }, '&(input:checked)': {
4891
+ },
4892
+ '&(input:checked)': {
4547
4893
  // background-image is merged in later
4548
4894
  borderColor: checkedColor,
4549
4895
  backgroundColor: checkedColor,
4550
- } }, (!disabledOrLoading && Object.assign(Object.assign({}, (!isHighContrastMode &&
4551
- hoverMediaQuery({
4552
- '&(input:hover), .text:hover ~ &(input)': {
4553
- borderColor: uncheckedHoverColor,
4554
- },
4555
- '&(input:checked:hover), .text:hover ~ &(input:checked)': {
4556
- borderColor: checkedHoverColor,
4557
- backgroundColor: checkedHoverColor,
4558
- },
4559
- }))), (!isDisabled && {
4560
- '&(input:focus)::before': Object.assign(Object.assign({ content: '""', position: 'absolute' }, getInsetJssStyle(-6)), { border: `${borderWidthBase} solid ${focusColor}` }),
4561
- '&(input:focus:not(:focus-visible))::before': {
4562
- borderColor: 'transparent',
4563
4896
  },
4564
- }))))),
4897
+ ...(!disabledOrLoading && {
4898
+ ...(!isHighContrastMode &&
4899
+ hoverMediaQuery({
4900
+ '&(input:hover), .text:hover ~ &(input)': {
4901
+ borderColor: uncheckedHoverColor,
4902
+ },
4903
+ '&(input:checked:hover), .text:hover ~ &(input:checked)': {
4904
+ borderColor: checkedHoverColor,
4905
+ backgroundColor: checkedHoverColor,
4906
+ },
4907
+ })),
4908
+ ...(!isDisabled && {
4909
+ '&(input:focus)::before': {
4910
+ content: '""',
4911
+ position: 'absolute',
4912
+ ...getInsetJssStyle(-6),
4913
+ border: `${borderWidthBase} solid ${focusColor}`,
4914
+ },
4915
+ '&(input:focus:not(:focus-visible))::before': {
4916
+ borderColor: 'transparent',
4917
+ },
4918
+ }),
4919
+ }),
4920
+ }),
4565
4921
  label: {
4566
4922
  position: 'relative',
4567
4923
  display: 'flex',
4568
4924
  alignItems: 'flex-start',
4569
4925
  },
4570
- }, text: Object.assign(Object.assign(Object.assign({ order: 1, cursor: disabledOrLoading ? 'default' : 'pointer' }, textSmallStyle), { color: disabledOrLoading ? disabledColor : primaryColor, transition: getTransition('color') }), buildResponsiveStyles(hideLabel, (isHidden) => getHiddenTextJssStyle(isHidden, { padding: `2px 0 0 ${spacingStaticSmall}` }))) }, getFunctionalComponentRequiredStyles()), getFunctionalComponentStateMessageStyles(theme, state));
4926
+ },
4927
+ text: {
4928
+ order: 1,
4929
+ cursor: disabledOrLoading ? 'default' : 'pointer',
4930
+ ...textSmallStyle,
4931
+ color: disabledOrLoading ? disabledColor : primaryColor,
4932
+ transition: getTransition('color'),
4933
+ ...buildResponsiveStyles(hideLabel, (isHidden) => getHiddenTextJssStyle(isHidden, { padding: `2px 0 0 ${spacingStaticSmall}` })),
4934
+ },
4935
+ ...getFunctionalComponentRequiredStyles(),
4936
+ ...getFunctionalComponentStateMessageStyles(theme, state),
4937
+ };
4571
4938
  };
4572
4939
 
4573
4940
  const getInlineSVGBackgroundImage = (path) => {
@@ -4582,33 +4949,41 @@ const getComponentCss$S = (hideLabel, state, isDisabled, isLoading, theme) => {
4582
4949
  const indeterminateIconColor = isHighContrastMode
4583
4950
  ? canvasColor
4584
4951
  : getThemedColors(theme).primaryColor.replace(/#/g, '%23');
4585
- return getCss(mergeDeep(getCheckboxRadioJssStyle(hideLabel, state, isDisabled, isLoading, theme), Object.assign({ '@global': {
4586
- '::slotted': addImportantToEachRule(Object.assign(Object.assign(Object.assign({ '&(input)': {
4952
+ return getCss(mergeDeep(getCheckboxRadioJssStyle(hideLabel, state, isDisabled, isLoading, theme), {
4953
+ '@global': {
4954
+ '::slotted': addImportantToEachRule({
4955
+ '&(input)': {
4587
4956
  borderRadius: borderRadiusSmall,
4588
- } }, (!isLoading && {
4589
- '&(input:checked)': {
4590
- backgroundImage: getInlineSVGBackgroundImage(`<path fill="${checkedIconColor}" d="m20.22,7.47l-1.47-1.42-9.26,9.02-4.24-4.15-1.47,1.42,5.71,5.6,10.73-10.47Z"/>`),
4591
4957
  },
4592
- })), { '&(input:indeterminate)': {
4958
+ ...(!isLoading && {
4959
+ '&(input:checked)': {
4960
+ backgroundImage: getInlineSVGBackgroundImage(`<path fill="${checkedIconColor}" d="m20.22,7.47l-1.47-1.42-9.26,9.02-4.24-4.15-1.47,1.42,5.71,5.6,10.73-10.47Z"/>`),
4961
+ },
4962
+ }),
4963
+ '&(input:indeterminate)': {
4593
4964
  backgroundImage: getInlineSVGBackgroundImage(`<path fill="${indeterminateIconColor}" d="m20,11v2H4v-2h16Z"/>`),
4594
- } }), (!isDisabled && {
4595
- '&(input:focus)::before': {
4596
- borderRadius: borderRadiusMedium,
4597
4965
  },
4598
- }))),
4599
- } }, (isLoading && {
4600
- spinner: {
4601
- position: 'absolute',
4602
- top: `calc(${fontLineHeight}/2 + 2px)`,
4603
- left: `calc(${fontLineHeight}/2 + 2px)`,
4604
- transform: 'translate(-50%, -50%)',
4605
- height: fontLineHeight,
4606
- width: fontLineHeight,
4607
- fontFamily,
4608
- fontSize: '1rem',
4609
- cursor: 'not-allowed',
4966
+ ...(!isDisabled && {
4967
+ '&(input:focus)::before': {
4968
+ borderRadius: borderRadiusMedium,
4969
+ },
4970
+ }),
4971
+ }),
4610
4972
  },
4611
- }))));
4973
+ ...(isLoading && {
4974
+ spinner: {
4975
+ position: 'absolute',
4976
+ top: `calc(${fontLineHeight}/2 + 2px)`,
4977
+ left: `calc(${fontLineHeight}/2 + 2px)`,
4978
+ transform: 'translate(-50%, -50%)',
4979
+ height: fontLineHeight,
4980
+ width: fontLineHeight,
4981
+ fontFamily,
4982
+ fontSize: '1rem',
4983
+ cursor: 'not-allowed',
4984
+ },
4985
+ }),
4986
+ }));
4612
4987
  };
4613
4988
 
4614
4989
  const widthMap = {
@@ -4619,21 +4994,27 @@ const widthMap = {
4619
4994
  const getComponentCss$R = (width) => {
4620
4995
  return getCss({
4621
4996
  '@global': {
4622
- ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
4997
+ ':host': {
4998
+ display: 'block',
4999
+ ...addImportantToEachRule(hostHiddenStyles),
5000
+ },
5001
+ },
5002
+ root: {
5003
+ minWidth: 0,
5004
+ ...(['full', 'fluid'].includes(width)
5005
+ ? {
5006
+ padding: `0 ${gridFullOffset}`,
5007
+ }
5008
+ : {
5009
+ padding: `0 ${widthMap[width].base}`,
5010
+ [getMediaQueryMin('s')]: {
5011
+ padding: `0 ${widthMap[width].s}`,
5012
+ },
5013
+ [getMediaQueryMin('xxl')]: {
5014
+ padding: `0 ${widthMap[width].xxl}`,
5015
+ },
5016
+ }),
4623
5017
  },
4624
- root: Object.assign({ minWidth: 0 }, (['full', 'fluid'].includes(width)
4625
- ? {
4626
- padding: `0 ${gridFullOffset}`,
4627
- }
4628
- : {
4629
- padding: `0 ${widthMap[width].base}`,
4630
- [getMediaQueryMin('s')]: {
4631
- padding: `0 ${widthMap[width].s}`,
4632
- },
4633
- [getMediaQueryMin('xxl')]: {
4634
- padding: `0 ${widthMap[width].xxl}`,
4635
- },
4636
- })),
4637
5018
  });
4638
5019
  };
4639
5020
 
@@ -4652,8 +5033,23 @@ const getDimensionStyle = {
4652
5033
  const getComponentCss$Q = () => {
4653
5034
  return getCss({
4654
5035
  '@global': {
4655
- ':host': Object.assign({ position: 'relative', display: 'inline-block', verticalAlign: 'top' }, addImportantToEachRule(Object.assign(Object.assign({ outline: 0, boxSizing: 'content-box' }, getDimensionStyle), hostHiddenStyles))),
4656
- a: Object.assign(Object.assign({ display: 'block', textDecoration: 'none' }, getDimensionStyle), focusPseudoJssStyle),
5036
+ ':host': {
5037
+ position: 'relative',
5038
+ display: 'inline-block',
5039
+ verticalAlign: 'top',
5040
+ ...addImportantToEachRule({
5041
+ outline: 0,
5042
+ boxSizing: 'content-box',
5043
+ ...getDimensionStyle,
5044
+ ...hostHiddenStyles,
5045
+ }),
5046
+ },
5047
+ a: {
5048
+ display: 'block',
5049
+ textDecoration: 'none',
5050
+ ...getDimensionStyle,
5051
+ ...focusPseudoJssStyle,
5052
+ },
4657
5053
  picture: {
4658
5054
  display: 'block',
4659
5055
  width: `min(${width}px, 100%)`,
@@ -4673,12 +5069,23 @@ const getComponentCss$Q = () => {
4673
5069
  const DISPLAY_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
4674
5070
 
4675
5071
  const getTypographyRootJssStyle = (baseTextStyle, responsiveStyle, align, color, ellipsis, theme) => {
4676
- return Object.assign(Object.assign(Object.assign(Object.assign({ margin: 0, padding: 0 }, baseTextStyle), { color: getThemedTypographyColor(theme, color), textAlign: align, letterSpacing: 'normal', listStyleType: 'none', whiteSpace: 'inherit' }), (ellipsis && {
4677
- maxWidth: '100%',
4678
- overflow: 'hidden',
4679
- textOverflow: 'ellipsis',
4680
- whiteSpace: 'nowrap',
4681
- })), responsiveStyle);
5072
+ return {
5073
+ margin: 0,
5074
+ padding: 0,
5075
+ ...baseTextStyle,
5076
+ color: getThemedTypographyColor(theme, color),
5077
+ textAlign: align,
5078
+ letterSpacing: 'normal',
5079
+ listStyleType: 'none',
5080
+ whiteSpace: 'inherit',
5081
+ ...(ellipsis && {
5082
+ maxWidth: '100%',
5083
+ overflow: 'hidden',
5084
+ textOverflow: 'ellipsis',
5085
+ whiteSpace: 'nowrap',
5086
+ }),
5087
+ ...responsiveStyle,
5088
+ };
4682
5089
  };
4683
5090
  const getTypographySlottedJssStyle = () => {
4684
5091
  return {
@@ -4708,7 +5115,10 @@ const sizeMap$4 = {
4708
5115
  const getComponentCss$P = (size, align, color, ellipsis, theme) => {
4709
5116
  return getCss({
4710
5117
  '@global': {
4711
- ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
5118
+ ':host': {
5119
+ display: 'block',
5120
+ ...addImportantToEachRule(hostHiddenStyles),
5121
+ },
4712
5122
  '::slotted': {
4713
5123
  [DISPLAY_TAGS.map((i) => `&(${i})`).join()]: addImportantToEachRule(getTypographySlottedJssStyle()),
4714
5124
  },
@@ -4728,38 +5138,80 @@ const getComponentCss$O = (color, orientation, theme) => {
4728
5138
  };
4729
5139
  return getCss({
4730
5140
  '@global': {
4731
- ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
4732
- hr: Object.assign({ margin: 0, padding: 0, border: 'none', textAlign: 'left', background: isHighContrastMode ? getHighContrastColors().canvasTextColor : colorMap[color] }, buildResponsiveStyles(orientation, (o) => o === 'horizontal' ? { height: '1px', width: '100%' } : { height: '100%', width: '1px' })),
5141
+ ':host': {
5142
+ display: 'block',
5143
+ ...addImportantToEachRule(hostHiddenStyles),
5144
+ },
5145
+ hr: {
5146
+ margin: 0,
5147
+ padding: 0,
5148
+ border: 'none',
5149
+ textAlign: 'left',
5150
+ background: isHighContrastMode ? getHighContrastColors().canvasTextColor : colorMap[color],
5151
+ ...buildResponsiveStyles(orientation, (o) => o === 'horizontal' ? { height: '1px', width: '100%' } : { height: '100%', width: '1px' }),
5152
+ },
4733
5153
  },
4734
5154
  });
4735
5155
  };
4736
5156
 
4737
5157
  const getComponentCss$N = (state, labelSize, hasLabel, theme) => {
4738
- return getCss(Object.assign(Object.assign({ '@global': Object.assign({ ':host': addImportantToEachRule(Object.assign({ display: 'block' }, hostHiddenStyles)), fieldset: {
5158
+ return getCss({
5159
+ '@global': {
5160
+ ':host': addImportantToEachRule({
5161
+ display: 'block',
5162
+ ...hostHiddenStyles,
5163
+ }),
5164
+ fieldset: {
4739
5165
  margin: 0,
4740
5166
  padding: 0,
4741
5167
  border: 'none',
4742
- } }, (hasLabel && {
4743
- legend: Object.assign({ margin: `0 0 ${spacingStaticMedium}`, padding: 0, color: getThemedColors(theme).primaryColor }, (labelSize === 'small' ? headingSmallStyle : headingMediumStyle)),
4744
- })) }, getFunctionalComponentRequiredStyles()), mergeDeep(getFunctionalComponentStateMessageStyles(theme, state), {
4745
- message: {
4746
- marginTop: spacingStaticMedium,
5168
+ },
5169
+ ...(hasLabel && {
5170
+ legend: {
5171
+ margin: `0 0 ${spacingStaticMedium}`,
5172
+ padding: 0,
5173
+ color: getThemedColors(theme).primaryColor,
5174
+ ...(labelSize === 'small' ? headingSmallStyle : headingMediumStyle),
5175
+ },
5176
+ }),
4747
5177
  },
4748
- })));
5178
+ ...getFunctionalComponentRequiredStyles(),
5179
+ ...mergeDeep(getFunctionalComponentStateMessageStyles(theme, state), {
5180
+ message: {
5181
+ marginTop: spacingStaticMedium,
5182
+ },
5183
+ }),
5184
+ });
4749
5185
  };
4750
5186
 
4751
5187
  const getComponentCss$M = (state, labelSize, hasLabel, theme) => {
4752
- return getCss(Object.assign(Object.assign({ '@global': Object.assign({ ':host': addImportantToEachRule(Object.assign({ display: 'block' }, hostHiddenStyles)), fieldset: {
5188
+ return getCss({
5189
+ '@global': {
5190
+ ':host': addImportantToEachRule({
5191
+ display: 'block',
5192
+ ...hostHiddenStyles,
5193
+ }),
5194
+ fieldset: {
4753
5195
  margin: 0,
4754
5196
  padding: 0,
4755
5197
  border: 'none',
4756
- } }, (hasLabel && {
4757
- legend: Object.assign({ margin: `0 0 ${spacingStaticMedium}`, padding: 0, color: getThemedColors(theme).primaryColor }, (labelSize === 'small' ? headingSmallStyle : headingMediumStyle)),
4758
- })) }, getFunctionalComponentRequiredStyles()), mergeDeep(getFunctionalComponentStateMessageStyles(theme, state), {
4759
- message: {
4760
- marginTop: spacingStaticMedium,
5198
+ },
5199
+ ...(hasLabel && {
5200
+ legend: {
5201
+ margin: `0 0 ${spacingStaticMedium}`,
5202
+ padding: 0,
5203
+ color: getThemedColors(theme).primaryColor,
5204
+ ...(labelSize === 'small' ? headingSmallStyle : headingMediumStyle),
5205
+ },
5206
+ }),
4761
5207
  },
4762
- })));
5208
+ ...getFunctionalComponentRequiredStyles(),
5209
+ ...mergeDeep(getFunctionalComponentStateMessageStyles(theme, state), {
5210
+ message: {
5211
+ marginTop: spacingStaticMedium,
5212
+ },
5213
+ }),
5214
+ });
4763
5215
  };
4764
5216
 
4765
5217
  const flexItemWidths = {
@@ -4775,17 +5227,21 @@ const flexItemWidths = {
4775
5227
  const getComponentCss$L = (width, offset, alignSelf, grow, shrink, flex) => {
4776
5228
  return getCss({
4777
5229
  '@global': {
4778
- ':host': addImportantToEachRule(Object.assign(Object.assign({ boxSizing: 'border-box' }, hostHiddenStyles), mergeDeep(buildResponsiveStyles(width, (widthResponsive) => ({
4779
- width: `${flexItemWidths[widthResponsive]}%`,
4780
- })), buildResponsiveStyles(offset, (offsetResponsive) => ({
4781
- marginLeft: `${flexItemWidths[offsetResponsive]}%`,
4782
- })), buildResponsiveStyles(alignSelf, (alignSelfResponsive) => ({
4783
- alignSelf: alignSelfResponsive,
4784
- })), flex !== 'initial' // flex shorthand conflicts with grow and shrink, which means even default grow or shrink props would override flex
4785
- ? buildResponsiveStyles(flex, (flexResponsive) => ({
4786
- flex: flexResponsive === 'equal' ? '1 1 0' : flexResponsive,
4787
- }))
4788
- : mergeDeep(buildResponsiveStyles(grow, (flexGrow) => ({ flexGrow })), buildResponsiveStyles(shrink, (flexShrink) => ({ flexShrink })))))),
5230
+ ':host': addImportantToEachRule({
5231
+ boxSizing: 'border-box',
5232
+ ...hostHiddenStyles,
5233
+ ...mergeDeep(buildResponsiveStyles(width, (widthResponsive) => ({
5234
+ width: `${flexItemWidths[widthResponsive]}%`,
5235
+ })), buildResponsiveStyles(offset, (offsetResponsive) => ({
5236
+ marginLeft: `${flexItemWidths[offsetResponsive]}%`,
5237
+ })), buildResponsiveStyles(alignSelf, (alignSelfResponsive) => ({
5238
+ alignSelf: alignSelfResponsive,
5239
+ })), flex !== 'initial' // flex shorthand conflicts with grow and shrink, which means even default grow or shrink props would override flex
5240
+ ? buildResponsiveStyles(flex, (flexResponsive) => ({
5241
+ flex: flexResponsive === 'equal' ? '1 1 0' : flexResponsive,
5242
+ }))
5243
+ : mergeDeep(buildResponsiveStyles(grow, (flexGrow) => ({ flexGrow })), buildResponsiveStyles(shrink, (flexShrink) => ({ flexShrink })))),
5244
+ }),
4789
5245
  },
4790
5246
  });
4791
5247
  };
@@ -4824,56 +5280,108 @@ const getComponentCss$J = (isOpen, position, hasHeader, hasFooter, hasSubFooter,
4824
5280
  const contentPadding = `${spacingStaticMedium} ${spacingFluidLarge} ${spacingStaticMedium} ${spacingFluidLarge}`;
4825
5281
  const shadowColor = isThemeDark(theme) ? flyoutBoxShadowColorDark : flyoutBoxShadowColor;
4826
5282
  const transparentColor = isThemeDark(theme) ? 'rgba(14, 14, 18, 0)' : 'rgba(255, 255, 255, 0)';
4827
- return getCss(Object.assign(Object.assign(Object.assign(Object.assign({ '@global': addImportantToEachRule({
4828
- ':host': Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', position: 'fixed', zIndex: FLYOUT_Z_INDEX }, (isOpen
4829
- ? {
4830
- visibility: 'inherit',
4831
- }
4832
- : {
4833
- visibility: 'hidden',
4834
- transition: `visibility 0s linear ${flyoutTransitionDuration}`,
4835
- })), getInsetJssStyle()), getFrostedGlassBackgroundJssStyles(isOpen, flyoutTransitionDuration)), hostHiddenStyles),
4836
- }), header: Object.assign(Object.assign({ display: 'flex' }, (hasHeader && {
4837
- flexDirection: 'row-reverse',
4838
- })), { justifyContent: 'flex-end', background: backgroundColor, position: 'sticky', top: 0 }), [`${headerShadowClass}`]: {
4839
- boxShadow: `${isThemeDark(theme) ? flyoutBoxShadowColorDark : flyoutBoxShadowColor} 0px 5px 10px`,
4840
- } }, (hasHeader && {
4841
- 'header-content': {
4842
- flex: 'auto',
4843
- padding: `${spacingStaticMedium} 0 ${spacingStaticMedium} ${spacingFluidLarge}`,
4844
- },
4845
- })), { dismiss: Object.assign({ margin: spacingStaticMedium, height: 'fit-content', border: `2px solid ${backgroundColor}`, borderRadius: '4px', background: backgroundColor }, hoverMediaQuery({
4846
- '&:hover': {
4847
- background: darkThemeContrastHighColor,
4848
- borderColor: darkThemeContrastHighColor,
4849
- },
4850
- })), root: Object.assign(Object.assign({ color: primaryColor, display: 'flex', flexDirection: 'column', position: 'relative', [isPositionLeft ? 'marginRight' : 'marginLeft']: 'auto', boxSizing: 'border-box' }, (hasSubFooter && {
4851
- overflowY: 'auto',
4852
- overscrollBehaviorY: 'none',
4853
- })), { height: '100%', minWidth: minWidthDefault, maxWidth: `var(${cssVariableMaxWidth}, ${maxWidthDefault})`, background: backgroundColor, opacity: isOpen ? 1 : 0, transform: isOpen ? 'initial' : `translate3d(${isPositionLeft ? '-100%' : '100%'}, 0, 0)`, transition: `opacity ${flyoutTransitionDuration} ${flyoutTransitionTimingFunction} ${isOpen ? '0s' : flyoutTransitionDuration}, transform ${flyoutTransitionDuration} ${flyoutTransitionTimingFunction}`, boxShadow: `${isPositionLeft ? '3px' : '-3px'} 0px 30px rgba(0, 0, 0, 0.25)` }), content: Object.assign({ padding: contentPadding }, (!hasSubFooter && {
4854
- overflowY: 'auto',
4855
- WebkitOverflowScrolling: 'touch',
4856
- backgroundImage: `linear-gradient(to top, ${backgroundColor}, ${backgroundColor}), linear-gradient(to top, ${backgroundColor}, ${backgroundColor}), linear-gradient(to top, ${shadowColor}, ${transparentColor}), linear-gradient(to bottom, ${shadowColor}, ${transparentColor})`,
4857
- backgroundPosition: 'bottom center, top center, bottom center, top center',
4858
- backgroundRepeat: 'no-repeat',
4859
- backgroundSize: '100% 20px, 100% 20px, 100% 10px, 100% 10px',
4860
- backgroundAttachment: 'local, local, scroll, scroll',
4861
- overscrollBehaviorY: 'none',
4862
- })) }), (hasFooter && {
4863
- footer: {
5283
+ return getCss({
5284
+ '@global': addImportantToEachRule({
5285
+ ':host': {
5286
+ display: 'flex',
5287
+ position: 'fixed',
5288
+ zIndex: FLYOUT_Z_INDEX,
5289
+ ...(isOpen
5290
+ ? {
5291
+ visibility: 'inherit',
5292
+ }
5293
+ : {
5294
+ visibility: 'hidden',
5295
+ transition: `visibility 0s linear ${flyoutTransitionDuration}`,
5296
+ }),
5297
+ ...getInsetJssStyle(),
5298
+ ...getFrostedGlassBackgroundJssStyles(isOpen, flyoutTransitionDuration),
5299
+ ...hostHiddenStyles,
5300
+ },
5301
+ }),
5302
+ header: {
5303
+ display: 'flex',
5304
+ ...(hasHeader && {
5305
+ flexDirection: 'row-reverse',
5306
+ }),
5307
+ justifyContent: 'flex-end',
4864
5308
  background: backgroundColor,
4865
- padding: contentPadding,
4866
5309
  position: 'sticky',
4867
- bottom: 0,
5310
+ top: 0,
5311
+ },
5312
+ [`${headerShadowClass}`]: {
5313
+ boxShadow: `${isThemeDark(theme) ? flyoutBoxShadowColorDark : flyoutBoxShadowColor} 0px 5px 10px`,
5314
+ },
5315
+ ...(hasHeader && {
5316
+ 'header-content': {
5317
+ flex: 'auto',
5318
+ padding: `${spacingStaticMedium} 0 ${spacingStaticMedium} ${spacingFluidLarge}`,
5319
+ },
5320
+ }),
5321
+ dismiss: {
5322
+ margin: spacingStaticMedium,
5323
+ height: 'fit-content',
5324
+ border: `2px solid ${backgroundColor}`,
5325
+ borderRadius: '4px',
5326
+ background: backgroundColor,
5327
+ ...hoverMediaQuery({
5328
+ '&:hover': {
5329
+ background: darkThemeContrastHighColor,
5330
+ borderColor: darkThemeContrastHighColor,
5331
+ },
5332
+ }),
4868
5333
  },
4869
- [`${footerShadowClass}`]: {
4870
- boxShadow: `${isThemeDark(theme) ? flyoutBoxShadowColorDark : flyoutBoxShadowColor} 0px -5px 10px`,
5334
+ root: {
5335
+ color: primaryColor,
5336
+ display: 'flex',
5337
+ flexDirection: 'column',
5338
+ position: 'relative',
5339
+ [isPositionLeft ? 'marginRight' : 'marginLeft']: 'auto',
5340
+ boxSizing: 'border-box',
5341
+ ...(hasSubFooter && {
5342
+ overflowY: 'auto',
5343
+ overscrollBehaviorY: 'none',
5344
+ }),
5345
+ height: '100%',
5346
+ minWidth: minWidthDefault,
5347
+ maxWidth: `var(${cssVariableMaxWidth}, ${maxWidthDefault})`,
5348
+ background: backgroundColor,
5349
+ opacity: isOpen ? 1 : 0,
5350
+ transform: isOpen ? 'initial' : `translate3d(${isPositionLeft ? '-100%' : '100%'}, 0, 0)`,
5351
+ transition: `opacity ${flyoutTransitionDuration} ${flyoutTransitionTimingFunction} ${isOpen ? '0s' : flyoutTransitionDuration}, transform ${flyoutTransitionDuration} ${flyoutTransitionTimingFunction}`,
5352
+ boxShadow: `${isPositionLeft ? '3px' : '-3px'} 0px 30px rgba(0, 0, 0, 0.25)`,
4871
5353
  },
4872
- })), (hasSubFooter && {
4873
- ['sub-footer']: {
5354
+ content: {
4874
5355
  padding: contentPadding,
5356
+ // If sub-footer is used scroll shadows have to be done via JS
5357
+ ...(!hasSubFooter && {
5358
+ overflowY: 'auto',
5359
+ WebkitOverflowScrolling: 'touch',
5360
+ backgroundImage: `linear-gradient(to top, ${backgroundColor}, ${backgroundColor}), linear-gradient(to top, ${backgroundColor}, ${backgroundColor}), linear-gradient(to top, ${shadowColor}, ${transparentColor}), linear-gradient(to bottom, ${shadowColor}, ${transparentColor})`,
5361
+ backgroundPosition: 'bottom center, top center, bottom center, top center',
5362
+ backgroundRepeat: 'no-repeat',
5363
+ backgroundSize: '100% 20px, 100% 20px, 100% 10px, 100% 10px',
5364
+ backgroundAttachment: 'local, local, scroll, scroll',
5365
+ overscrollBehaviorY: 'none',
5366
+ }),
4875
5367
  },
4876
- })));
5368
+ ...(hasFooter && {
5369
+ footer: {
5370
+ background: backgroundColor,
5371
+ padding: contentPadding,
5372
+ position: 'sticky',
5373
+ bottom: 0,
5374
+ },
5375
+ [`${footerShadowClass}`]: {
5376
+ boxShadow: `${isThemeDark(theme) ? flyoutBoxShadowColorDark : flyoutBoxShadowColor} 0px -5px 10px`,
5377
+ },
5378
+ }),
5379
+ ...(hasSubFooter && {
5380
+ ['sub-footer']: {
5381
+ padding: contentPadding,
5382
+ },
5383
+ }),
5384
+ });
4877
5385
  };
4878
5386
 
4879
5387
  const gutter$1 = `calc(${gridGap} / 2)`;
@@ -4883,12 +5391,18 @@ const gridItemWidths = [
4883
5391
  const getComponentCss$I = (size, offset) => {
4884
5392
  return getCss({
4885
5393
  '@global': {
4886
- ':host': addImportantToEachRule(Object.assign(Object.assign({ paddingLeft: gutter$1, paddingRight: gutter$1, boxSizing: 'border-box' }, hostHiddenStyles), mergeDeep(buildResponsiveStyles(size, (sizeResponsive) => ({
4887
- width: `${gridItemWidths[sizeResponsive]}%`,
4888
- minWidth: `${gridItemWidths[sizeResponsive]}%`,
4889
- })), buildResponsiveStyles(offset, (offsetResponsive) => ({
4890
- marginLeft: `${gridItemWidths[offsetResponsive]}%`,
4891
- }))))),
5394
+ ':host': addImportantToEachRule({
5395
+ paddingLeft: gutter$1,
5396
+ paddingRight: gutter$1,
5397
+ boxSizing: 'border-box',
5398
+ ...hostHiddenStyles,
5399
+ ...mergeDeep(buildResponsiveStyles(size, (sizeResponsive) => ({
5400
+ width: `${gridItemWidths[sizeResponsive]}%`,
5401
+ minWidth: `${gridItemWidths[sizeResponsive]}%`,
5402
+ })), buildResponsiveStyles(offset, (offsetResponsive) => ({
5403
+ marginLeft: `${gridItemWidths[offsetResponsive]}%`,
5404
+ }))),
5405
+ }),
4892
5406
  },
4893
5407
  });
4894
5408
  };
@@ -4897,7 +5411,15 @@ const gutter = `calc(${gridGap} / -2)`;
4897
5411
  const getComponentCss$H = (direction, wrap) => {
4898
5412
  return getCss({
4899
5413
  '@global': {
4900
- ':host': addImportantToEachRule(Object.assign(Object.assign({ display: 'flex', flex: 'auto', width: 'auto', marginLeft: gutter, marginRight: gutter }, hostHiddenStyles), mergeDeep(buildResponsiveStyles(direction, (flexDirection) => ({ flexDirection })), buildResponsiveStyles(wrap, (flexWrap) => ({ flexWrap }))))),
5414
+ ':host': addImportantToEachRule({
5415
+ display: 'flex',
5416
+ flex: 'auto',
5417
+ width: 'auto',
5418
+ marginLeft: gutter,
5419
+ marginRight: gutter,
5420
+ ...hostHiddenStyles,
5421
+ ...mergeDeep(buildResponsiveStyles(direction, (flexDirection) => ({ flexDirection })), buildResponsiveStyles(wrap, (flexWrap) => ({ flexWrap }))),
5422
+ }),
4901
5423
  },
4902
5424
  });
4903
5425
  };
@@ -4912,7 +5434,10 @@ const sizeMap$3 = {
4912
5434
  const getComponentCss$G = (size, align, color, ellipsis, theme) => {
4913
5435
  return getCss({
4914
5436
  '@global': {
4915
- ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
5437
+ ':host': {
5438
+ display: 'block',
5439
+ ...addImportantToEachRule(hostHiddenStyles),
5440
+ },
4916
5441
  '::slotted': {
4917
5442
  [HEADING_TAGS.map((i) => `&(${i})`).join()]: addImportantToEachRule(getTypographySlottedJssStyle()),
4918
5443
  },
@@ -4944,11 +5469,13 @@ const headlineSizeMap = {
4944
5469
  'headline-5': fontSizeHeadingSmall,
4945
5470
  };
4946
5471
  const getHeadlineVariantJssStyle = (variant) => {
4947
- return Object.assign({}, (variant === 'large-title'
4948
- ? displayMediumStyle
4949
- : {
4950
- fontSize: headlineSizeMap[variant],
4951
- }));
5472
+ return {
5473
+ ...(variant === 'large-title'
5474
+ ? displayMediumStyle
5475
+ : {
5476
+ fontSize: headlineSizeMap[variant],
5477
+ }),
5478
+ };
4952
5479
  };
4953
5480
  const textSizeMap = {
4954
5481
  'xx-small': fontSizeTextXXSmall,
@@ -4966,7 +5493,10 @@ const getTextSizeJssStyle = (textSize) => {
4966
5493
  const getComponentCss$F = (variant, align, color, ellipsis, theme) => {
4967
5494
  return getCss({
4968
5495
  '@global': {
4969
- ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
5496
+ ':host': {
5497
+ display: 'block',
5498
+ ...addImportantToEachRule(hostHiddenStyles),
5499
+ },
4970
5500
  '::slotted': {
4971
5501
  [HEADLINE_TAGS.map((i) => `&(${i})`).join()]: addImportantToEachRule(getTypographySlottedJssStyle()),
4972
5502
  },
@@ -5048,23 +5578,42 @@ const getComponentCss$E = (color, size, theme) => {
5048
5578
  const isSizeInherit = size === 'inherit';
5049
5579
  const isDark = isThemeDark(theme);
5050
5580
  return getCss({
5051
- '@global': Object.assign({ ':host': Object.assign({ display: 'inline-block', verticalAlign: 'top' }, addImportantToEachRule(hostHiddenStyles)), img: Object.assign(Object.assign({ display: 'block', margin: 0, padding: 0, pointerEvents: 'none' }, (!isColorInherit && Object.assign(Object.assign({ filter: filter[theme][color] }, (isHighContrastMode &&
5052
- getSchemedHighContrastMediaQuery({
5053
- filter: filter.light[color],
5054
- }, {
5055
- filter: filter.dark[color],
5056
- }))), { WebkitAnimation: `${isDark ? `${keyFramesDark}-${color}` : `${keyFramesLight}-${color}`} 1ms` }))), (isSizeInherit
5057
- ? {
5058
- width: size,
5059
- height: size,
5060
- }
5061
- : {
5062
- width: fontLineHeight,
5063
- height: fontLineHeight,
5064
- font: `${sizeMap$2[size]} ${fontFamily}`,
5065
- })) }, (!isColorInherit && {
5066
- [`@keyframes ${isDark ? `${keyFramesDark}-${color}` : `${keyFramesLight}-${color}`}`]: forceRerenderAnimationStyle,
5067
- })),
5581
+ '@global': {
5582
+ ':host': {
5583
+ display: 'inline-block',
5584
+ verticalAlign: 'top',
5585
+ ...addImportantToEachRule(hostHiddenStyles),
5586
+ },
5587
+ img: {
5588
+ display: 'block',
5589
+ margin: 0,
5590
+ padding: 0,
5591
+ pointerEvents: 'none',
5592
+ ...(!isColorInherit && {
5593
+ filter: filter[theme][color],
5594
+ ...(isHighContrastMode &&
5595
+ getSchemedHighContrastMediaQuery({
5596
+ filter: filter.light[color],
5597
+ }, {
5598
+ filter: filter.dark[color],
5599
+ })),
5600
+ WebkitAnimation: `${isDark ? `${keyFramesDark}-${color}` : `${keyFramesLight}-${color}`} 1ms`, // needed to enforce repaint in Safari if theme is switched programmatically.
5601
+ }),
5602
+ ...(isSizeInherit
5603
+ ? {
5604
+ width: size,
5605
+ height: size,
5606
+ }
5607
+ : {
5608
+ width: fontLineHeight,
5609
+ height: fontLineHeight,
5610
+ font: `${sizeMap$2[size]} ${fontFamily}`,
5611
+ }),
5612
+ },
5613
+ ...(!isColorInherit && {
5614
+ [`@keyframes ${isDark ? `${keyFramesDark}-${color}` : `${keyFramesLight}-${color}`}`]: forceRerenderAnimationStyle,
5615
+ }),
5616
+ },
5068
5617
  });
5069
5618
  };
5070
5619
 
@@ -5082,14 +5631,23 @@ const getBackgroundColor = (state, theme) => {
5082
5631
  return colorMap[state];
5083
5632
  };
5084
5633
  const getNotificationRootJssStyle = (state, hasAction, hasClose, theme) => {
5085
- return Object.assign(Object.assign({ display: 'grid',
5634
+ return {
5635
+ display: 'grid',
5086
5636
  // 2 columns for content and optional close button
5087
- gridTemplateColumns: `minmax(auto, 1fr)${hasClose ? ' auto' : ''}`, gap: spacingStaticMedium, placeItems: 'start', padding: spacingStaticMedium, background: getBackgroundColor(state, theme), borderRadius: borderRadiusSmall }, (isHighContrastMode && {
5088
- outline: '1px solid transparent',
5089
- })), { [mediaQueryMinS$1]: {
5637
+ gridTemplateColumns: `minmax(auto, 1fr)${hasClose ? ' auto' : ''}`,
5638
+ gap: spacingStaticMedium,
5639
+ placeItems: 'start',
5640
+ padding: spacingStaticMedium,
5641
+ background: getBackgroundColor(state, theme),
5642
+ borderRadius: borderRadiusSmall,
5643
+ ...(isHighContrastMode && {
5644
+ outline: '1px solid transparent',
5645
+ }),
5646
+ [mediaQueryMinS$1]: {
5090
5647
  // 4 columns are for icon, content, optional action button and optional close button
5091
5648
  gridTemplateColumns: `auto minmax(auto, 1fr)${hasAction ? ' auto' : ''}${hasClose ? ' auto' : ''}`,
5092
- } });
5649
+ },
5650
+ };
5093
5651
  };
5094
5652
  const getNotificationIconJssStyle = () => ({
5095
5653
  [mediaQueryMaxS$1]: {
@@ -5107,36 +5665,60 @@ const getNotificationContentJssStyle = () => ({
5107
5665
 
5108
5666
  const mediaQueryMaxS = getMediaQueryMax('s');
5109
5667
  const getComponentCss$D = (state, hasAction, hasClose, theme) => {
5110
- return getCss(Object.assign({ '@global': {
5111
- ':host': addImportantToEachRule(Object.assign(Object.assign({}, getNotificationRootJssStyle(state, hasAction, hasClose, theme)), hostHiddenStyles)),
5668
+ return getCss({
5669
+ '@global': {
5670
+ ':host': addImportantToEachRule({
5671
+ ...getNotificationRootJssStyle(state, hasAction, hasClose, theme),
5672
+ ...hostHiddenStyles,
5673
+ }),
5112
5674
  h5: headingSmallStyle,
5113
5675
  p: textSmallStyle,
5114
5676
  'h5,p': {
5115
5677
  margin: 0,
5116
5678
  color: getThemedColors(theme).primaryColor,
5117
5679
  },
5118
- }, icon: getNotificationIconJssStyle(), content: getNotificationContentJssStyle() }, (hasAction && {
5119
- action: {
5120
- [mediaQueryMaxS]: {
5121
- gridRowStart: 2,
5122
- },
5123
5680
  },
5124
- })));
5681
+ icon: getNotificationIconJssStyle(),
5682
+ content: getNotificationContentJssStyle(),
5683
+ ...(hasAction && {
5684
+ action: {
5685
+ [mediaQueryMaxS]: {
5686
+ gridRowStart: 2,
5687
+ },
5688
+ },
5689
+ }),
5690
+ });
5125
5691
  };
5126
5692
 
5127
5693
  const getComponentCss$C = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme) => {
5128
5694
  const { focusColor } = getThemedColors(theme);
5129
- return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, hideLabel, alignLabel, hasSlottedAnchor, theme), Object.assign(Object.assign({}, (hasSlottedAnchor && {
5695
+ return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, hideLabel, alignLabel, hasSlottedAnchor, theme), {
5696
+ root: {
5697
+ textDecoration: underline ? 'underline' : 'none',
5698
+ },
5699
+ }, hasSlottedAnchor && {
5130
5700
  '@global': addImportantToEachRule({
5131
5701
  '::slotted': {
5132
- '&(a)': Object.assign(Object.assign({}, getResetInitialStylesForSlottedAnchor), { outline: 0, textDecoration: underline ? 'underline' : 'none', font: 'inherit', color: 'inherit' }),
5702
+ '&(a)': {
5703
+ ...getResetInitialStylesForSlottedAnchor,
5704
+ textDecoration: underline ? 'underline' : 'none',
5705
+ font: 'inherit',
5706
+ color: 'inherit',
5707
+ },
5133
5708
  // The clickable area for Safari < ~15 (<= release date: 2021-10-28) is reduced to the slotted anchor itself,
5134
5709
  // since Safari prior to this major release does not support pseudo-elements in the slotted context
5135
5710
  // (https://bugs.webkit.org/show_bug.cgi?id=178237)
5136
- '&(a)::before': Object.assign({ content: '""', position: 'fixed', top: offsetVertical, bottom: offsetVertical, borderRadius: borderRadiusSmall }, buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
5137
- right: hideLabelValue ? offsetVertical : offsetHorizontal,
5138
- left: hideLabelValue ? offsetVertical : offsetHorizontal,
5139
- }))),
5711
+ '&(a)::before': {
5712
+ content: '""',
5713
+ position: 'fixed',
5714
+ top: offsetVertical,
5715
+ bottom: offsetVertical,
5716
+ borderRadius: borderRadiusSmall,
5717
+ ...buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
5718
+ right: hideLabelValue ? offsetVertical : offsetHorizontal,
5719
+ left: hideLabelValue ? offsetVertical : offsetHorizontal,
5720
+ })),
5721
+ },
5140
5722
  '&(a:focus)::before': {
5141
5723
  border: `${borderWidthBase} solid ${focusColor}`,
5142
5724
  },
@@ -5145,25 +5727,35 @@ const getComponentCss$C = (icon, iconSource, active, stretch, size, hideLabel, a
5145
5727
  },
5146
5728
  },
5147
5729
  }),
5148
- })), { root: {
5149
- textDecoration: underline ? 'underline' : 'none',
5150
- } })));
5730
+ }));
5151
5731
  };
5152
5732
 
5153
5733
  const getComponentCss$B = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, theme) => {
5154
5734
  const { focusColor } = getThemedColors(theme);
5155
5735
  const { linkColor } = getHighContrastColors();
5156
- return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, false, hasSlottedAnchor, theme), Object.assign({}, (hasSlottedAnchor && Object.assign(Object.assign({}, (isHighContrastMode && {
5157
- root: {
5158
- borderColor: linkColor,
5159
- },
5160
- })), { '@global': addImportantToEachRule({
5736
+ return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, false, hasSlottedAnchor, theme), hasSlottedAnchor && {
5737
+ ...(isHighContrastMode && {
5738
+ root: {
5739
+ borderColor: linkColor,
5740
+ },
5741
+ }),
5742
+ '@global': addImportantToEachRule({
5161
5743
  '::slotted': {
5162
- '&(a)': Object.assign(Object.assign({}, getResetInitialStylesForSlottedAnchor), { outline: 0, textDecoration: 'none', font: 'inherit', color: 'inherit' }),
5744
+ '&(a)': {
5745
+ ...getResetInitialStylesForSlottedAnchor,
5746
+ textDecoration: 'none',
5747
+ font: 'inherit',
5748
+ color: 'inherit',
5749
+ },
5163
5750
  // The clickable area for Safari < ~15 (<= release date: 2021-10-28) is reduced to the slotted anchor itself,
5164
5751
  // since Safari prior to this major release does not support pseudo-elements in the slotted context
5165
5752
  // (https://bugs.webkit.org/show_bug.cgi?id=178237)
5166
- '&(a)::before': Object.assign({ content: '""', position: 'fixed', borderRadius: borderRadiusMedium }, getInsetJssStyle(-6)),
5753
+ '&(a)::before': {
5754
+ content: '""',
5755
+ position: 'fixed',
5756
+ borderRadius: borderRadiusMedium,
5757
+ ...getInsetJssStyle(-6),
5758
+ },
5167
5759
  // TODO: combine link-social-styles with link-button-styles and tabs-bar-styles
5168
5760
  '&(a::-moz-focus-inner)': {
5169
5761
  border: 0,
@@ -5175,7 +5767,8 @@ const getComponentCss$B = (icon, iconSource, variant, hideLabel, hasSlottedAncho
5175
5767
  border: 0,
5176
5768
  },
5177
5769
  },
5178
- }) })))));
5770
+ }),
5771
+ }));
5179
5772
  };
5180
5773
 
5181
5774
  // array is redefined instead of using the one from in model-signature
@@ -5184,23 +5777,60 @@ const LINK_TILE_MODEL_SIGNATURE_HEADING_TAGS = ['h2', 'h3', 'h4', 'h5', 'h6'];
5184
5777
 
5185
5778
  const getComponentCss$A = (aspectRatio, weight, direction, hasDescription) => {
5186
5779
  const tileBaseStyles = getTileBaseStyles(aspectRatio);
5187
- return getCss(Object.assign(Object.assign(Object.assign(Object.assign({}, tileBaseStyles), { '@global': Object.assign(Object.assign({}, tileBaseStyles['@global']), { [LINK_TILE_MODEL_SIGNATURE_HEADING_TAGS.join(',')]: {
5780
+ return getCss({
5781
+ ...tileBaseStyles,
5782
+ '@global': {
5783
+ ...tileBaseStyles['@global'],
5784
+ [LINK_TILE_MODEL_SIGNATURE_HEADING_TAGS.join(',')]: {
5188
5785
  margin: addImportantToRule(0),
5189
- } }), content: Object.assign(Object.assign(Object.assign({}, tileBaseStyles.content), { flexDirection: 'column', bottom: 0, padding: `${spacingFluidLarge} ${spacingFluidMedium} ${spacingFluidMedium}` }), gradientToTopStyle), model: {
5786
+ },
5787
+ },
5788
+ content: {
5789
+ ...tileBaseStyles.content,
5790
+ flexDirection: 'column',
5791
+ bottom: 0,
5792
+ padding: `${spacingFluidLarge} ${spacingFluidMedium} ${spacingFluidMedium}`,
5793
+ ...gradientToTopStyle,
5794
+ },
5795
+ model: {
5190
5796
  position: 'absolute',
5191
5797
  top: spacingFluidMedium,
5192
5798
  left: spacingFluidMedium,
5193
- }, heading: Object.assign(Object.assign({ margin: 0 }, textLargeStyle), buildResponsiveStyles(weight, (w) => ({ fontWeight: getFontWeight(w) }))) }), (hasDescription && {
5194
- description: Object.assign({ margin: '-12px 0 0 ' }, textSmallStyle),
5195
- })), { 'link-group': Object.assign({ display: 'flex', width: '100%', gap: spacingFluidSmall }, buildResponsiveStyles(direction, getGroupDirectionJssStyles)), 'link-overlay': Object.assign({
5196
- // covers entire tile, used for expanded click-area only
5197
- position: 'fixed' }, getInsetJssStyle()) }));
5198
- };
5199
-
5799
+ },
5800
+ heading: {
5801
+ margin: 0,
5802
+ ...textLargeStyle,
5803
+ ...buildResponsiveStyles(weight, (w) => ({ fontWeight: getFontWeight(w) })),
5804
+ },
5805
+ ...(hasDescription && {
5806
+ description: {
5807
+ margin: '-12px 0 0 ',
5808
+ ...textSmallStyle,
5809
+ },
5810
+ }),
5811
+ 'link-group': {
5812
+ display: 'flex',
5813
+ width: '100%',
5814
+ gap: spacingFluidSmall,
5815
+ ...buildResponsiveStyles(direction, getGroupDirectionJssStyles),
5816
+ },
5817
+ 'link-overlay': {
5818
+ // covers entire tile, used for expanded click-area only
5819
+ position: 'fixed',
5820
+ ...getInsetJssStyle(),
5821
+ },
5822
+ });
5823
+ };
5824
+
5200
5825
  const getComponentCss$z = (...args) => {
5201
- return getCss(Object.assign(Object.assign({}, getButtonLinkTileStyles(...args)), { 'link-overlay': Object.assign({
5826
+ return getCss({
5827
+ ...getButtonLinkTileStyles(...args),
5828
+ 'link-overlay': {
5202
5829
  // covers entire tile, used for expanded click-area only
5203
- position: 'fixed' }, getInsetJssStyle()) }));
5830
+ position: 'fixed',
5831
+ ...getInsetJssStyle(),
5832
+ },
5833
+ });
5204
5834
  };
5205
5835
 
5206
5836
  const baseSizes = {
@@ -5216,10 +5846,29 @@ const baseSizes = {
5216
5846
  const getComponentCss$y = (size) => {
5217
5847
  return getCss({
5218
5848
  '@global': {
5219
- ':host': Object.assign({ position: 'relative', display: 'inline-flex', verticalAlign: 'top' }, addImportantToEachRule(Object.assign({ outline: 0 }, hostHiddenStyles))),
5220
- a: Object.assign({ display: 'block', textDecoration: 'none' }, focusPseudoJssStyle),
5221
- picture: Object.assign({ display: 'block' }, (size === 'responsive'
5222
- ? Object.assign(Object.assign({}, baseSizes.small), { [getMediaQueryMin('l')]: baseSizes.medium }) : baseSizes[size])),
5849
+ ':host': {
5850
+ position: 'relative',
5851
+ display: 'inline-flex',
5852
+ verticalAlign: 'top',
5853
+ ...addImportantToEachRule({
5854
+ outline: 0,
5855
+ ...hostHiddenStyles,
5856
+ }),
5857
+ },
5858
+ a: {
5859
+ display: 'block',
5860
+ textDecoration: 'none',
5861
+ ...focusPseudoJssStyle,
5862
+ },
5863
+ picture: {
5864
+ display: 'block',
5865
+ ...(size === 'responsive'
5866
+ ? {
5867
+ ...baseSizes.small,
5868
+ [getMediaQueryMin('l')]: baseSizes.medium,
5869
+ }
5870
+ : baseSizes[size]),
5871
+ },
5223
5872
  img: {
5224
5873
  display: 'block',
5225
5874
  width: '100%',
@@ -5265,41 +5914,67 @@ const isFullscreenForXl = (fullscreen) => {
5265
5914
  };
5266
5915
  const getSlottedJssStyle = (marginValue, hasHeader, hasDismissButton) => {
5267
5916
  const marginPx = `${-marginValue}px`;
5268
- return Object.assign(Object.assign({ [`&(.${stretchToFullModalWidthClassName})`]: {
5917
+ return {
5918
+ [`&(.${stretchToFullModalWidthClassName})`]: {
5269
5919
  width: `calc(100% + ${marginValue * 2}px)`,
5270
5920
  margin: `0 ${marginPx}`,
5271
- } }, (!hasHeader && {
5272
- [`&(.${stretchToFullModalWidthClassName}:first-child)`]: {
5273
- marginTop: hasDismissButton ? pxToRemWithUnit(-marginValue) : marginPx,
5274
5921
  },
5275
- })), { [`&(.${stretchToFullModalWidthClassName}:last-child)`]: {
5922
+ ...(!hasHeader && {
5923
+ [`&(.${stretchToFullModalWidthClassName}:first-child)`]: {
5924
+ marginTop: hasDismissButton ? pxToRemWithUnit(-marginValue) : marginPx,
5925
+ },
5926
+ }),
5927
+ [`&(.${stretchToFullModalWidthClassName}:last-child)`]: {
5276
5928
  marginBottom: marginPx,
5277
- } });
5929
+ },
5930
+ };
5278
5931
  };
5279
5932
  const getComponentCss$x = (isOpen, isFullscreen, hasDismissButton, hasHeader) => {
5280
5933
  const isFullscreenForXlAndXxl = isFullscreenForXl(isFullscreen);
5281
5934
  const duration = isOpen ? '.6s' : '.2s';
5282
- return getCss(Object.assign(Object.assign({ '@global': {
5283
- ':host': Object.assign(Object.assign({}, addImportantToEachRule(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ position: 'fixed' }, getInsetJssStyle()), { zIndex: MODAL_Z_INDEX, display: 'flex', alignItems: 'center', justifyContent: 'center', flexWrap: 'wrap' }), (isOpen
5284
- ? {
5285
- visibility: 'inherit',
5286
- }
5287
- : {
5288
- visibility: 'hidden',
5289
- transition: 'visibility 0s linear .2s',
5290
- })), hostHiddenStyles), getFrostedGlassBackgroundJssStyles(isOpen, duration)))), { overflowY: 'auto' }),
5291
- '::slotted': addImportantToEachRule(Object.assign({}, mergeDeep(getSlottedJssStyle(32, hasHeader, hasDismissButton), buildResponsiveStyles(isFullscreen, (fullscreenValue) => ({
5292
- [`&(.${stretchToFullModalWidthClassName}`]: {
5293
- '&:first-child)': {
5294
- borderRadius: fullscreenValue ? 0 : '8px 8px 0 0',
5295
- },
5296
- '&:last-child)': {
5297
- borderRadius: fullscreenValue ? 0 : '0 0 8px 8px',
5935
+ return getCss({
5936
+ '@global': {
5937
+ ':host': {
5938
+ ...addImportantToEachRule({
5939
+ position: 'fixed',
5940
+ ...getInsetJssStyle(),
5941
+ zIndex: MODAL_Z_INDEX,
5942
+ display: 'flex',
5943
+ alignItems: 'center',
5944
+ justifyContent: 'center',
5945
+ flexWrap: 'wrap',
5946
+ ...(isOpen
5947
+ ? {
5948
+ visibility: 'inherit',
5949
+ }
5950
+ : {
5951
+ visibility: 'hidden',
5952
+ transition: 'visibility 0s linear .2s',
5953
+ }),
5954
+ ...hostHiddenStyles,
5955
+ ...getFrostedGlassBackgroundJssStyles(isOpen, duration),
5956
+ }),
5957
+ overflowY: 'auto', // overrideable
5958
+ },
5959
+ '::slotted': addImportantToEachRule({
5960
+ ...mergeDeep(getSlottedJssStyle(32, hasHeader, hasDismissButton), buildResponsiveStyles(isFullscreen, (fullscreenValue) => ({
5961
+ [`&(.${stretchToFullModalWidthClassName}`]: {
5962
+ '&:first-child)': {
5963
+ borderRadius: fullscreenValue ? 0 : '8px 8px 0 0',
5964
+ },
5965
+ '&:last-child)': {
5966
+ borderRadius: fullscreenValue ? 0 : '0 0 8px 8px',
5967
+ },
5298
5968
  },
5299
- },
5300
- }))))),
5301
- h2: Object.assign(Object.assign({}, headingLargeStyle), { margin: 0, color: lightThemePrimaryColor }),
5302
- }, root: mergeDeep({
5969
+ }))),
5970
+ }),
5971
+ h2: {
5972
+ ...headingLargeStyle,
5973
+ margin: 0,
5974
+ color: lightThemePrimaryColor,
5975
+ },
5976
+ },
5977
+ root: mergeDeep({
5303
5978
  position: 'relative',
5304
5979
  boxSizing: 'border-box',
5305
5980
  transform: isOpen ? 'scale3d(1,1,1)' : 'scale3d(.9,.9,1)',
@@ -5308,25 +5983,46 @@ const getComponentCss$x = (isOpen, isFullscreen, hasDismissButton, hasHeader) =>
5308
5983
  padding: hasDismissButton ? `${pxToRemWithUnit(32)} 32px 32px 32px` : '32px',
5309
5984
  background: backgroundColor,
5310
5985
  outline: isHighContrastMode ? '1px solid transparent' : 0,
5311
- '&:focus::before': Object.assign({ content: '""', position: 'fixed', border: `${borderWidthBase} solid`, pointerEvents: 'none' }, buildResponsiveStyles(isFullscreen, (fullscreenValue) => (Object.assign({ borderRadius: fullscreenValue ? 0 : '12px', borderColor: fullscreenValue ? lightThemePrimaryColor : darkThemePrimaryColor }, getInsetJssStyle(fullscreenValue ? 0 : -4))))),
5986
+ '&:focus::before': {
5987
+ content: '""',
5988
+ position: 'fixed',
5989
+ border: `${borderWidthBase} solid`,
5990
+ pointerEvents: 'none',
5991
+ ...buildResponsiveStyles(isFullscreen, (fullscreenValue) => ({
5992
+ borderRadius: fullscreenValue ? 0 : '12px',
5993
+ borderColor: fullscreenValue ? lightThemePrimaryColor : darkThemePrimaryColor,
5994
+ ...getInsetJssStyle(fullscreenValue ? 0 : -4),
5995
+ })),
5996
+ },
5312
5997
  '&:not(:focus-visible)::before': {
5313
5998
  border: 0,
5314
5999
  },
5315
6000
  [mediaQueryXl]: {
5316
6001
  margin: isFullscreenForXlAndXxl ? 0 : `min(192px, 10vh) ${gridExtendedOffsetBase}`,
5317
6002
  },
5318
- }, buildResponsiveStyles(isFullscreen, getFullscreenJssStyles)) }, (hasHeader && {
5319
- header: {
5320
- padding: '0 0 8px',
5321
- },
5322
- })), (hasDismissButton && {
5323
- dismiss: Object.assign({ position: 'absolute', top: '8px', right: '8px', border: `2px solid ${backgroundColor}`, borderRadius: '4px', background: backgroundColor }, hoverMediaQuery({
5324
- '&:hover': {
5325
- background: darkThemeContrastHighColor,
5326
- borderColor: darkThemeContrastHighColor,
6003
+ }, buildResponsiveStyles(isFullscreen, getFullscreenJssStyles)),
6004
+ ...(hasHeader && {
6005
+ header: {
6006
+ padding: '0 0 8px',
6007
+ },
6008
+ }),
6009
+ ...(hasDismissButton && {
6010
+ dismiss: {
6011
+ position: 'absolute',
6012
+ top: '8px',
6013
+ right: '8px',
6014
+ border: `2px solid ${backgroundColor}`,
6015
+ borderRadius: '4px',
6016
+ background: backgroundColor,
6017
+ ...hoverMediaQuery({
6018
+ '&:hover': {
6019
+ background: darkThemeContrastHighColor,
6020
+ borderColor: darkThemeContrastHighColor,
6021
+ },
6022
+ }),
5327
6023
  },
5328
- })),
5329
- })));
6024
+ }),
6025
+ });
5330
6026
  };
5331
6027
 
5332
6028
  const modelSignatureHeight = 36;
@@ -5350,18 +6046,37 @@ const getComponentCss$w = (size, color, theme) => {
5350
6046
  const isColorInherit = color === 'inherit';
5351
6047
  return getCss({
5352
6048
  '@global': {
5353
- ':host': Object.assign({ display: 'inline-block', verticalAlign: 'top' }, addImportantToEachRule(Object.assign(Object.assign({ maxWidth: '100%', maxHeight: '100%' }, (!isSizeInherit && {
5354
- width: 'inherit',
5355
- height: 'inherit',
5356
- // TODO: we need a width map of all signatures to ensure same fluid behavior like implemented fro crest + wordmark
5357
- maxHeight: `${modelSignatureHeight}px`,
5358
- })), hostHiddenStyles))),
5359
- img: Object.assign(Object.assign({ display: 'block', maxWidth: '100%', maxHeight: '100%', pointerEvents: 'none' }, (!isColorInherit && Object.assign({ filter: colorToFilterMap[theme][color] }, (isHighContrastMode &&
5360
- getSchemedHighContrastMediaQuery({
5361
- filter: colorToFilterMap.light[color],
5362
- }, {
5363
- filter: colorToFilterMap.dark[color],
5364
- }))))), (isSizeInherit && { height: size })),
6049
+ ':host': {
6050
+ display: 'inline-block',
6051
+ verticalAlign: 'top',
6052
+ ...addImportantToEachRule({
6053
+ maxWidth: '100%',
6054
+ maxHeight: '100%',
6055
+ ...(!isSizeInherit && {
6056
+ width: 'inherit',
6057
+ height: 'inherit',
6058
+ // TODO: we need a width map of all signatures to ensure same fluid behavior like implemented fro crest + wordmark
6059
+ maxHeight: `${modelSignatureHeight}px`,
6060
+ }),
6061
+ ...hostHiddenStyles,
6062
+ }),
6063
+ },
6064
+ img: {
6065
+ display: 'block',
6066
+ maxWidth: '100%',
6067
+ maxHeight: '100%',
6068
+ pointerEvents: 'none',
6069
+ ...(!isColorInherit && {
6070
+ filter: colorToFilterMap[theme][color],
6071
+ ...(isHighContrastMode &&
6072
+ getSchemedHighContrastMediaQuery({
6073
+ filter: colorToFilterMap.light[color],
6074
+ }, {
6075
+ filter: colorToFilterMap.dark[color],
6076
+ })),
6077
+ }),
6078
+ ...(isSizeInherit && { height: size }),
6079
+ },
5365
6080
  },
5366
6081
  });
5367
6082
  };
@@ -5378,10 +6093,18 @@ const getComponentCss$v = (maxNumberOfPageLinks, theme) => {
5378
6093
  const { primaryColor, disabledColor, hoverColor, focusColor } = getThemedColors(theme);
5379
6094
  return getCss({
5380
6095
  '@global': {
5381
- ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
5382
- nav: Object.assign({ display: 'flex', justifyContent: 'center', userSelect: 'none' }, buildResponsiveStyles(maxNumberOfPageLinks, (n) => ({
5383
- counterReset: `size ${n}`,
5384
- }))),
6096
+ ':host': {
6097
+ display: 'block',
6098
+ ...addImportantToEachRule(hostHiddenStyles),
6099
+ },
6100
+ nav: {
6101
+ display: 'flex',
6102
+ justifyContent: 'center',
6103
+ userSelect: 'none',
6104
+ ...buildResponsiveStyles(maxNumberOfPageLinks, (n) => ({
6105
+ counterReset: `size ${n}`,
6106
+ })),
6107
+ },
5385
6108
  ul: {
5386
6109
  display: 'flex',
5387
6110
  gap: spacingStaticXSmall,
@@ -5402,13 +6125,53 @@ const getComponentCss$v = (maxNumberOfPageLinks, theme) => {
5402
6125
  },
5403
6126
  },
5404
6127
  },
5405
- span: Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', justifyContent: 'center', alignItems: 'center', transition: ['color', 'border-color', 'background-color'].map(getTransition).join(), position: 'relative', width: buttonSize, height: buttonSize, boxSizing: 'border-box' }, textSmallStyle), { whiteSpace: 'nowrap', cursor: 'pointer', color: primaryColor, outline: 0, borderRadius: borderRadiusSmall, borderColor: 'transparent' }), hoverMediaQuery({
5406
- '&:not([aria-disabled]):not(.ellipsis):hover': Object.assign(Object.assign({}, frostedGlassStyle), { background: hoverColor }),
5407
- })), { '&:not(.ellipsis):focus:focus-visible::before': Object.assign(Object.assign({ content: '""', position: 'absolute' }, getInsetJssStyle(-4)), { border: `${borderWidthBase} solid ${focusColor}`, borderRadius: borderRadiusMedium }), '&[aria-current]': Object.assign(Object.assign({}, disabledCursorStyle), { color: primaryColor, border: `${borderWidthBase} solid ${primaryColor}`, '&:not(.ellipsis):focus::before': getInsetJssStyle(-6) }), '&[aria-disabled]': Object.assign(Object.assign({}, disabledCursorStyle), { color: disabledColor }) }),
6128
+ span: {
6129
+ display: 'flex',
6130
+ justifyContent: 'center',
6131
+ alignItems: 'center',
6132
+ transition: ['color', 'border-color', 'background-color'].map(getTransition).join(),
6133
+ position: 'relative',
6134
+ width: buttonSize,
6135
+ height: buttonSize,
6136
+ boxSizing: 'border-box',
6137
+ ...textSmallStyle,
6138
+ whiteSpace: 'nowrap',
6139
+ cursor: 'pointer',
6140
+ color: primaryColor,
6141
+ outline: 0,
6142
+ borderRadius: borderRadiusSmall,
6143
+ borderColor: 'transparent',
6144
+ ...hoverMediaQuery({
6145
+ '&:not([aria-disabled]):not(.ellipsis):hover': {
6146
+ ...frostedGlassStyle,
6147
+ background: hoverColor,
6148
+ },
6149
+ }),
6150
+ '&:not(.ellipsis):focus:focus-visible::before': {
6151
+ content: '""',
6152
+ position: 'absolute',
6153
+ ...getInsetJssStyle(-4),
6154
+ border: `${borderWidthBase} solid ${focusColor}`,
6155
+ borderRadius: borderRadiusMedium,
6156
+ },
6157
+ '&[aria-current]': {
6158
+ ...disabledCursorStyle,
6159
+ color: primaryColor,
6160
+ border: `${borderWidthBase} solid ${primaryColor}`,
6161
+ '&:not(.ellipsis):focus::before': getInsetJssStyle(-6),
6162
+ },
6163
+ '&[aria-disabled]': {
6164
+ ...disabledCursorStyle,
6165
+ color: disabledColor,
6166
+ },
6167
+ },
5408
6168
  },
5409
- ellipsis: Object.assign(Object.assign({}, disabledCursorStyle), { '&::after': {
6169
+ ellipsis: {
6170
+ ...disabledCursorStyle,
6171
+ '&::after': {
5410
6172
  content: '"…"',
5411
- } }),
6173
+ },
6174
+ },
5412
6175
  });
5413
6176
  };
5414
6177
 
@@ -5482,16 +6245,52 @@ const getComponentCss$u = (direction, theme) => {
5482
6245
  const { hoverColor, focusColor } = getThemedColors(theme);
5483
6246
  return getCss({
5484
6247
  '@global': {
5485
- ':host': Object.assign(Object.assign({}, addImportantToEachRule(Object.assign({ position: 'relative', display: 'inline-block' }, hostHiddenStyles))), { verticalAlign: 'top' }),
5486
- p: Object.assign(Object.assign({}, textSmallStyle), { margin: 0 }),
5487
- button: Object.assign(Object.assign(Object.assign(Object.assign({ display: 'block', position: 'relative', appearance: 'none', background: 'transparent', border: 0, padding: 0, outline: 0, cursor: 'pointer' }, textSmallStyle), { width: fontLineHeight, height: fontLineHeight, borderRadius: '50%' }), hoverMediaQuery({
5488
- transition: getTransition('background-color'),
5489
- '&:hover': Object.assign(Object.assign({}, frostedGlassStyle), { backgroundColor: hoverColor }),
5490
- })), { '&::before': Object.assign(Object.assign({ content: '""', position: 'absolute' }, getInsetJssStyle(-2)), { border: `${borderWidthBase} solid transparent`, borderRadius: '50%' }), '&:focus::before': {
6248
+ ':host': {
6249
+ ...addImportantToEachRule({
6250
+ position: 'relative',
6251
+ display: 'inline-block',
6252
+ ...hostHiddenStyles,
6253
+ }),
6254
+ verticalAlign: 'top',
6255
+ },
6256
+ p: {
6257
+ ...textSmallStyle,
6258
+ margin: 0,
6259
+ },
6260
+ button: {
6261
+ display: 'block',
6262
+ position: 'relative',
6263
+ appearance: 'none',
6264
+ background: 'transparent',
6265
+ border: 0,
6266
+ padding: 0,
6267
+ outline: 0,
6268
+ cursor: 'pointer',
6269
+ ...textSmallStyle,
6270
+ width: fontLineHeight,
6271
+ height: fontLineHeight,
6272
+ borderRadius: '50%',
6273
+ ...hoverMediaQuery({
6274
+ transition: getTransition('background-color'),
6275
+ '&:hover': {
6276
+ ...frostedGlassStyle,
6277
+ backgroundColor: hoverColor,
6278
+ },
6279
+ }),
6280
+ '&::before': {
6281
+ content: '""',
6282
+ position: 'absolute',
6283
+ ...getInsetJssStyle(-2),
6284
+ border: `${borderWidthBase} solid transparent`,
6285
+ borderRadius: '50%',
6286
+ },
6287
+ '&:focus::before': {
5491
6288
  borderColor: focusColor,
5492
- }, '&:focus:not(:focus-visible)::before': {
6289
+ },
6290
+ '&:focus:not(:focus-visible)::before': {
5493
6291
  borderColor: 'transparent',
5494
- } }),
6292
+ },
6293
+ },
5495
6294
  },
5496
6295
  label: getHiddenTextJssStyle(),
5497
6296
  icon: {
@@ -5510,11 +6309,31 @@ const getComponentCss$u = (direction, theme) => {
5510
6309
  pointerEvents: 'none',
5511
6310
  animation: '240ms $fadeIn ease forwards'
5512
6311
  ,
5513
- '&::before': Object.assign({ content: '""', position: 'absolute', borderStyle: 'solid' }, directionArrowMap[direction]),
6312
+ '&::before': {
6313
+ content: '""',
6314
+ position: 'absolute',
6315
+ borderStyle: 'solid',
6316
+ ...directionArrowMap[direction],
6317
+ },
6318
+ },
6319
+ popover: {
6320
+ position: 'absolute',
6321
+ maxWidth: 'min(90vw, 27rem)',
6322
+ width: 'max-content',
6323
+ boxSizing: 'border-box',
6324
+ background: backgroundColorThemeLight,
6325
+ padding: '8px 16px',
6326
+ pointerEvents: 'auto',
6327
+ ...directionPositionMap[direction],
6328
+ ...textSmallStyle,
6329
+ listStyleType: 'none',
6330
+ color: primaryColorThemeLight,
6331
+ whiteSpace: 'inherit',
6332
+ borderRadius: borderRadiusSmall,
6333
+ ...(isHighContrastMode && {
6334
+ outline: `1px solid ${canvasTextColor}`,
6335
+ }),
5514
6336
  },
5515
- popover: Object.assign(Object.assign(Object.assign(Object.assign({ position: 'absolute', maxWidth: 'min(90vw, 27rem)', width: 'max-content', boxSizing: 'border-box', background: backgroundColorThemeLight, padding: '8px 16px', pointerEvents: 'auto' }, directionPositionMap[direction]), textSmallStyle), { listStyleType: 'none', color: primaryColorThemeLight, whiteSpace: 'inherit', borderRadius: borderRadiusSmall }), (isHighContrastMode && {
5516
- outline: `1px solid ${canvasTextColor}`,
5517
- })),
5518
6337
  '@keyframes fadeIn': {
5519
6338
  from: {
5520
6339
  opacity: 0,
@@ -5532,15 +6351,19 @@ const getComponentCss$t = (hideLabel, state, isDisabled, theme) => {
5532
6351
  : getInvertedThemedColors(theme).primaryColor.replace(/#/g, '%23');
5533
6352
  return getCss(mergeDeep(getCheckboxRadioJssStyle(hideLabel, state, isDisabled, false, theme), {
5534
6353
  '@global': {
5535
- '::slotted': addImportantToEachRule(Object.assign({ '&(input)': {
6354
+ '::slotted': addImportantToEachRule({
6355
+ '&(input)': {
5536
6356
  borderRadius: '50%',
5537
- }, '&(input:checked)': {
6357
+ },
6358
+ '&(input:checked)': {
5538
6359
  backgroundImage: getInlineSVGBackgroundImage(`<circle fill="${checkedIconColor}" cx="12" cy="12" r="6"/>`),
5539
- } }, (!isDisabled && {
5540
- '&(input:focus)::before': {
5541
- borderRadius: '50%',
5542
6360
  },
5543
- }))),
6361
+ ...(!isDisabled && {
6362
+ '&(input:focus)::before': {
6363
+ borderRadius: '50%',
6364
+ },
6365
+ }),
6366
+ }),
5544
6367
  },
5545
6368
  }));
5546
6369
  };
@@ -5584,11 +6407,35 @@ const getComponentCss$s = (gradientColor, isNextHidden, isPrevHidden, scrollIndi
5584
6407
  };
5585
6408
  return getCss({
5586
6409
  '@global': {
5587
- ':host': addImportantToEachRule(Object.assign({ display: 'block', height: 'inherit' }, hostHiddenStyles)),
5588
- button: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', pointerEvents: 'auto', alignItems: 'center', justifyContent: 'center' }, textSmallStyle), { height: `calc(${fontLineHeight} + 4px)`, width: `calc(${fontLineHeight} + 4px)`, border: 0, outline: 0, cursor: 'pointer', background: backgroundColorMap[theme][gradientColor], borderRadius: borderRadiusSmall }), frostedGlassStyle), { visibility: 'hidden' }), (!isDarkTheme && dropShadowLowStyle)), hoverMediaQuery({
5589
- transition: getTransition('background-color'),
5590
- '&:hover': Object.assign(Object.assign({}, frostedGlassStyle), { background: hoverColor }),
5591
- })),
6410
+ ':host': addImportantToEachRule({
6411
+ display: 'block',
6412
+ height: 'inherit',
6413
+ ...hostHiddenStyles,
6414
+ }),
6415
+ button: {
6416
+ display: 'flex',
6417
+ pointerEvents: 'auto',
6418
+ alignItems: 'center',
6419
+ justifyContent: 'center',
6420
+ ...textSmallStyle,
6421
+ height: `calc(${fontLineHeight} + 4px)`,
6422
+ width: `calc(${fontLineHeight} + 4px)`,
6423
+ border: 0,
6424
+ outline: 0,
6425
+ cursor: 'pointer',
6426
+ background: backgroundColorMap[theme][gradientColor],
6427
+ borderRadius: borderRadiusSmall,
6428
+ ...frostedGlassStyle,
6429
+ visibility: 'hidden',
6430
+ ...(!isDarkTheme && dropShadowLowStyle),
6431
+ ...hoverMediaQuery({
6432
+ transition: getTransition('background-color'),
6433
+ '&:hover': {
6434
+ ...frostedGlassStyle,
6435
+ background: hoverColor,
6436
+ },
6437
+ }),
6438
+ },
5592
6439
  },
5593
6440
  root: {
5594
6441
  display: 'grid',
@@ -5596,14 +6443,19 @@ const getComponentCss$s = (gradientColor, isNextHidden, isPrevHidden, scrollIndi
5596
6443
  margin: '0 -4px',
5597
6444
  height: 'inherit',
5598
6445
  },
5599
- 'scroll-area': Object.assign({ gridArea: '1 / 1 / 1 / -1', padding: '4px', overflow: 'auto hidden' }, (!hasScrollbar && {
5600
- // If scrollbar is disabled - hide scrollbar
5601
- msOverflowStyle: 'none' /* IE and Edge */,
5602
- scrollbarWidth: 'none' /* Firefox */,
5603
- '&::-webkit-scrollbar': {
5604
- display: 'none',
5605
- },
5606
- })),
6446
+ 'scroll-area': {
6447
+ gridArea: '1 / 1 / 1 / -1',
6448
+ padding: '4px',
6449
+ overflow: 'auto hidden',
6450
+ ...(!hasScrollbar && {
6451
+ // If scrollbar is disabled - hide scrollbar
6452
+ msOverflowStyle: 'none' /* IE and Edge */,
6453
+ scrollbarWidth: 'none' /* Firefox */,
6454
+ '&::-webkit-scrollbar': {
6455
+ display: 'none',
6456
+ },
6457
+ }),
6458
+ },
5607
6459
  // Extra wrapper needed to compensate different offset parent calculation depending on browser.
5608
6460
  // Needed for position of status bar.
5609
6461
  'scroll-wrapper': {
@@ -5613,7 +6465,14 @@ const getComponentCss$s = (gradientColor, isNextHidden, isPrevHidden, scrollIndi
5613
6465
  minWidth: '100%',
5614
6466
  verticalAlign: 'top',
5615
6467
  outline: 0,
5616
- '&::before': Object.assign(Object.assign({ content: '""', position: 'absolute' }, getInsetJssStyle(-4)), { border: `${borderWidthBase} solid transparent`, borderRadius: borderRadiusSmall, pointerEvents: 'none' }),
6468
+ '&::before': {
6469
+ content: '""',
6470
+ position: 'absolute',
6471
+ ...getInsetJssStyle(-4),
6472
+ border: `${borderWidthBase} solid transparent`,
6473
+ borderRadius: borderRadiusSmall,
6474
+ pointerEvents: 'none', // Needed to enable clicks inside of slot
6475
+ },
5617
6476
  '&:focus::before': {
5618
6477
  borderColor: focusColor,
5619
6478
  },
@@ -5634,12 +6493,36 @@ const getComponentCss$s = (gradientColor, isNextHidden, isPrevHidden, scrollIndi
5634
6493
  right: 0,
5635
6494
  },
5636
6495
  },
5637
- 'action-prev': Object.assign(Object.assign({}, actionPrevNextStyles), { marginLeft: '-1px', gridArea: '1 / 1 / 1 / 1', justifyContent: 'flex-start', background: `linear-gradient(to right, ${getGradient(theme, gradientColor)} 100%)`, visibility: isPrevHidden ? 'hidden' : 'visible', '& button': Object.assign({ marginLeft: '8px' }, hoverMediaQuery({
5638
- visibility: isPrevHidden ? 'hidden' : 'visible',
5639
- })) }),
5640
- 'action-next': Object.assign(Object.assign({}, actionPrevNextStyles), { marginRight: '-1px', gridArea: '1 / 3 / 1 / 3', justifyContent: 'flex-end', background: `linear-gradient(to left, ${getGradient(theme, gradientColor)} 100%)`, visibility: isNextHidden ? 'hidden' : 'visible', '& button': Object.assign({ marginRight: '8px' }, hoverMediaQuery({
5641
- visibility: isNextHidden ? 'hidden' : 'visible',
5642
- })) }),
6496
+ 'action-prev': {
6497
+ ...actionPrevNextStyles,
6498
+ marginLeft: '-1px',
6499
+ gridArea: '1 / 1 / 1 / 1',
6500
+ justifyContent: 'flex-start',
6501
+ background: `linear-gradient(to right, ${getGradient(theme, gradientColor)} 100%)`,
6502
+ visibility: isPrevHidden ? 'hidden' : 'visible',
6503
+ '& button': {
6504
+ marginLeft: '8px',
6505
+ // hide buttons on mobile (actually devices not supporting hover)
6506
+ ...hoverMediaQuery({
6507
+ visibility: isPrevHidden ? 'hidden' : 'visible',
6508
+ }),
6509
+ },
6510
+ },
6511
+ 'action-next': {
6512
+ ...actionPrevNextStyles,
6513
+ marginRight: '-1px',
6514
+ gridArea: '1 / 3 / 1 / 3',
6515
+ justifyContent: 'flex-end',
6516
+ background: `linear-gradient(to left, ${getGradient(theme, gradientColor)} 100%)`,
6517
+ visibility: isNextHidden ? 'hidden' : 'visible',
6518
+ '& button': {
6519
+ marginRight: '8px',
6520
+ // hide buttons on mobile (actually devices not supporting hover)
6521
+ ...hoverMediaQuery({
6522
+ visibility: isNextHidden ? 'hidden' : 'visible',
6523
+ }),
6524
+ },
6525
+ },
5643
6526
  });
5644
6527
  };
5645
6528
 
@@ -5656,35 +6539,77 @@ const getColors$2 = (isDisabled, isSelected, theme) => {
5656
6539
  hoverBorderColor: primaryColor,
5657
6540
  };
5658
6541
  };
5659
- const getComponentCss$r = (isDisabled, isSelected, hasIcon, theme) => {
6542
+ const getItemPadding = (hasIconAndSlottedContent) => hasIconAndSlottedContent ? `13px ${ITEM_PADDING} 13px 13px` : `13px ${ITEM_PADDING}`;
6543
+ const getComponentCss$r = (isDisabled, isSelected, hasIcon, hasSlottedContent, theme) => {
5660
6544
  const { focusColor } = getThemedColors(theme);
5661
6545
  const { buttonColor, labelColor, borderColor, hoverBorderColor } = getColors$2(isDisabled, isSelected, theme);
5662
6546
  return getCss({
5663
6547
  '@global': {
5664
- ':host': addImportantToEachRule(Object.assign({ display: 'block', outline: 0 }, hostHiddenStyles)),
5665
- button: Object.assign(Object.assign(Object.assign({ display: 'block', height: '100%', width: '100%', padding: hasIcon ? `13px ${ITEM_PADDING} 13px 13px` : `13px ${ITEM_PADDING}`, margin: 0, border: `${borderWidthBase} solid ${borderColor}`, borderRadius: borderRadiusSmall, outline: 0, background: 'transparent', color: buttonColor }, textSmallStyle), { overflowWrap: 'normal', position: 'relative', '&::before': Object.assign(Object.assign({ content: '""', position: 'absolute' }, getInsetJssStyle(-5)), { border: `${borderWidthBase} solid transparent`, borderRadius: '7px' }), '&:focus::before': {
6548
+ ':host': addImportantToEachRule({
6549
+ display: 'block',
6550
+ outline: 0,
6551
+ ...hostHiddenStyles,
6552
+ }),
6553
+ // All width relevant styling has to be kept in sync with the tempDiv of the p-segmented-control utils
6554
+ button: {
6555
+ display: 'block',
6556
+ height: '100%',
6557
+ width: '100%',
6558
+ padding: getItemPadding(hasIcon && hasSlottedContent),
6559
+ margin: 0,
6560
+ border: `${borderWidthBase} solid ${borderColor}`,
6561
+ borderRadius: borderRadiusSmall,
6562
+ outline: 0,
6563
+ background: 'transparent',
6564
+ color: buttonColor,
6565
+ ...textSmallStyle,
6566
+ overflowWrap: 'normal',
6567
+ position: 'relative',
6568
+ '&::before': {
6569
+ content: '""',
6570
+ position: 'absolute',
6571
+ ...getInsetJssStyle(-5),
6572
+ border: `${borderWidthBase} solid transparent`,
6573
+ borderRadius: '7px',
6574
+ },
6575
+ '&:focus::before': {
5666
6576
  borderColor: focusColor,
5667
- }, '&:focus:not(:focus-visible)::before': {
6577
+ },
6578
+ '&:focus:not(:focus-visible)::before': {
5668
6579
  borderColor: 'transparent',
5669
- } }), (isDisabled
5670
- ? {
5671
- cursor: 'not-allowed',
5672
- }
5673
- : Object.assign({ cursor: 'pointer' }, (!isSelected &&
5674
- hoverMediaQuery({
5675
- transition: getTransition('border-color'),
5676
- '&:hover': {
5677
- borderColor: hoverBorderColor,
5678
- },
5679
- }))))),
6580
+ },
6581
+ ...(isDisabled
6582
+ ? {
6583
+ cursor: 'not-allowed',
6584
+ }
6585
+ : {
6586
+ cursor: 'pointer',
6587
+ ...(!isSelected &&
6588
+ hoverMediaQuery({
6589
+ transition: getTransition('border-color'),
6590
+ '&:hover': {
6591
+ borderColor: hoverBorderColor,
6592
+ },
6593
+ })),
6594
+ }),
6595
+ },
5680
6596
  // label
5681
- span: Object.assign(Object.assign({ display: 'block' }, textXSmallStyle), { overflowWrap: 'normal', color: labelColor }),
5682
- },
5683
- icon: {
5684
- height: ICON_SIZE,
5685
- width: ICON_SIZE,
5686
- marginRight: ICON_MARGIN,
6597
+ span: {
6598
+ display: 'block',
6599
+ ...textXSmallStyle,
6600
+ overflowWrap: 'normal',
6601
+ color: labelColor,
6602
+ },
5687
6603
  },
6604
+ ...(hasIcon && {
6605
+ icon: {
6606
+ height: ICON_SIZE,
6607
+ width: ICON_SIZE,
6608
+ ...(hasSlottedContent && {
6609
+ marginRight: ICON_MARGIN,
6610
+ }),
6611
+ },
6612
+ }),
5688
6613
  });
5689
6614
  };
5690
6615
 
@@ -5694,7 +6619,13 @@ const getComponentCss$q = (maxWidth) => {
5694
6619
  maxWidth = (maxWidth > MAX_ITEM_WIDTH && MAX_ITEM_WIDTH) || (maxWidth < MIN_ITEM_WIDTH && MIN_ITEM_WIDTH) || maxWidth;
5695
6620
  return getCss({
5696
6621
  '@global': {
5697
- ':host': addImportantToEachRule(Object.assign({ display: 'grid', gridAutoRows: '1fr', gridTemplateColumns: `repeat(auto-fit, ${maxWidth}px)`, gap: '6px' }, hostHiddenStyles)),
6622
+ ':host': addImportantToEachRule({
6623
+ display: 'grid',
6624
+ gridAutoRows: '1fr',
6625
+ gridTemplateColumns: `repeat(auto-fit, ${maxWidth}px)`,
6626
+ gap: '6px',
6627
+ ...hostHiddenStyles,
6628
+ }),
5698
6629
  },
5699
6630
  });
5700
6631
  };
@@ -5702,71 +6633,131 @@ const getComponentCss$q = (maxWidth) => {
5702
6633
  const getBaseChildStyles = (child, state, theme, additionalDefaultJssStyle) => {
5703
6634
  const { primaryColor, contrastLowColor, contrastMediumColor, disabledColor } = getThemedColors(theme);
5704
6635
  const { formStateColor, formStateHoverColor } = getThemedFormStateColors(theme, state);
5705
- return Object.assign(Object.assign(Object.assign({ [`::slotted(${child})`]: Object.assign({ display: 'block', width: '100%', height: child !== 'textarea'
6636
+ return {
6637
+ [`::slotted(${child})`]: {
6638
+ display: 'block',
6639
+ width: '100%',
6640
+ height: child !== 'textarea'
5706
6641
  ? `calc(${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2)` // we need 10px additionally so input height becomes 54px
5707
- : 'auto', margin: 0, outline: 0, WebkitAppearance: 'none', appearance: 'none', boxSizing: 'border-box', border: `${borderWidthBase} solid ${formStateColor || contrastMediumColor}`, borderRadius: borderRadiusSmall, background: 'transparent', font: textSmallStyle.font.replace('ex', 'ex + 6px'), textIndent: 0, color: primaryColor, transition: ['color', 'border-color', 'background-color'].map(getTransition).join() }, additionalDefaultJssStyle) }, hoverMediaQuery({
5708
- // with the media query the selector has higher priority and overrides disabled styles
5709
- [`::slotted(${child}:not(:disabled):not(:focus):not([readonly]):hover)`]: {
5710
- borderColor: formStateHoverColor || primaryColor,
6642
+ : 'auto',
6643
+ margin: 0,
6644
+ outline: 0,
6645
+ WebkitAppearance: 'none',
6646
+ appearance: 'none',
6647
+ boxSizing: 'border-box',
6648
+ border: `${borderWidthBase} solid ${formStateColor || contrastMediumColor}`,
6649
+ borderRadius: borderRadiusSmall,
6650
+ background: 'transparent',
6651
+ font: textSmallStyle.font.replace('ex', 'ex + 6px'),
6652
+ textIndent: 0,
6653
+ color: primaryColor,
6654
+ transition: ['color', 'border-color', 'background-color'].map(getTransition).join(),
6655
+ ...additionalDefaultJssStyle,
5711
6656
  },
5712
- })), { [`::slotted(${child}:focus)`]: {
6657
+ ...hoverMediaQuery({
6658
+ // with the media query the selector has higher priority and overrides disabled styles
6659
+ [`::slotted(${child}:not(:disabled):not(:focus):not([readonly]):hover)`]: {
6660
+ borderColor: formStateHoverColor || primaryColor,
6661
+ },
6662
+ }),
6663
+ [`::slotted(${child}:focus)`]: {
5713
6664
  borderColor: primaryColor,
5714
- }, [`::slotted(${child}:disabled)`]: {
6665
+ },
6666
+ [`::slotted(${child}:disabled)`]: {
5715
6667
  cursor: 'not-allowed',
5716
6668
  color: disabledColor,
5717
6669
  borderColor: disabledColor,
5718
6670
  WebkitTextFillColor: disabledColor,
5719
- } }), (child !== 'select' && {
5720
- [`::slotted(${child}[readonly])`]: {
5721
- borderColor: contrastLowColor,
5722
- background: contrastLowColor,
5723
6671
  },
5724
- }));
6672
+ ...(child !== 'select' && {
6673
+ [`::slotted(${child}[readonly])`]: {
6674
+ borderColor: contrastLowColor,
6675
+ background: contrastLowColor,
6676
+ },
6677
+ }),
6678
+ };
5725
6679
  };
5726
6680
  const getLabelStyles = (child, isDisabled, hideLabel, state, theme, counterOrUnitOrIconStyles) => {
5727
6681
  const { primaryColor, disabledColor, contrastHighColor } = getThemedColors(theme);
5728
6682
  const { formStateHoverColor } = getThemedFormStateColors(theme, state);
5729
6683
  const counterOrUnitOrIconStylesKey = counterOrUnitOrIconStyles && Object.keys(counterOrUnitOrIconStyles)[0];
5730
- return Object.assign({ label: {
6684
+ return {
6685
+ label: {
5731
6686
  display: 'flex',
5732
6687
  flexDirection: 'column',
5733
6688
  gap: spacingStaticXSmall,
5734
6689
  position: 'relative',
5735
- '&__text': Object.assign(Object.assign(Object.assign(Object.assign({ display: 'block' }, buildResponsiveStyles(hideLabel, (isHidden) => getHiddenTextJssStyle(isHidden, { width: 'fit-content' }))), textSmallStyle), { color: isDisabled ? disabledColor : primaryColor, transition: getTransition('color'), '&+&': Object.assign({ marginTop: `-${spacingStaticXSmall}`, fontSize: fontSizeTextXSmall }, (!isDisabled && {
5736
- color: contrastHighColor,
5737
- })) }), hoverMediaQuery({
5738
- '&:hover': {
5739
- [`&~::slotted(${child}:not(:disabled):not(:focus):not([readonly]))` +
5740
- (formStateHoverColor ? `,::slotted(${child}:not(:disabled):not(:focus):not([readonly]):hover)` : '')]: {
5741
- borderColor: addImportantToRule(formStateHoverColor || primaryColor),
5742
- },
6690
+ '&__text': {
6691
+ display: 'block',
6692
+ ...buildResponsiveStyles(hideLabel, (isHidden) => getHiddenTextJssStyle(isHidden, { width: 'fit-content' })),
6693
+ ...textSmallStyle,
6694
+ color: isDisabled ? disabledColor : primaryColor,
6695
+ transition: getTransition('color'),
6696
+ '&+&': {
6697
+ marginTop: `-${spacingStaticXSmall}`,
6698
+ fontSize: fontSizeTextXSmall,
6699
+ ...(!isDisabled && {
6700
+ color: contrastHighColor,
6701
+ }),
5743
6702
  },
5744
- })),
5745
- } }, (counterOrUnitOrIconStyles && {
5746
- [counterOrUnitOrIconStylesKey]: Object.assign(Object.assign(Object.assign({}, counterOrUnitOrIconStyles[counterOrUnitOrIconStylesKey]), { pointerEvents: 'none' }), (isDisabled && {
5747
- color: disabledColor,
5748
- cursor: 'not-allowed',
5749
- })),
5750
- }));
6703
+ ...hoverMediaQuery({
6704
+ '&:hover': {
6705
+ [`&~::slotted(${child}:not(:disabled):not(:focus):not([readonly]))` +
6706
+ (formStateHoverColor ? `,::slotted(${child}:not(:disabled):not(:focus):not([readonly]):hover)` : '')]: {
6707
+ borderColor: addImportantToRule(formStateHoverColor || primaryColor),
6708
+ },
6709
+ },
6710
+ }),
6711
+ },
6712
+ },
6713
+ ...(counterOrUnitOrIconStyles && {
6714
+ [counterOrUnitOrIconStylesKey]: {
6715
+ ...counterOrUnitOrIconStyles[counterOrUnitOrIconStylesKey],
6716
+ pointerEvents: 'none',
6717
+ ...(isDisabled && {
6718
+ color: disabledColor,
6719
+ cursor: 'not-allowed',
6720
+ }),
6721
+ },
6722
+ }),
6723
+ };
5751
6724
  };
5752
6725
 
5753
6726
  const OPTION_HEIGHT = 40; // optgroups are higher and ignored
5754
6727
  const getComponentCss$p = (isDisabled, hasCustomDropdown, hideLabel, state, theme) => {
5755
- return getCss(Object.assign(Object.assign(Object.assign({ '@global': addImportantToEachRule(Object.assign({ ':host': Object.assign({ display: 'block' }, hostHiddenStyles) }, getBaseChildStyles('select', state, theme, Object.assign({ position: 'static', zIndex: 0, cursor: 'pointer', padding: `8px calc(${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2) 8px ${spacingStaticMedium}` }, (hasCustomDropdown && !isDisabled && { borderColor: 'transparent' }))))), root: {
6728
+ return getCss({
6729
+ '@global': addImportantToEachRule({
6730
+ ':host': {
6731
+ display: 'block',
6732
+ ...hostHiddenStyles,
6733
+ },
6734
+ ...getBaseChildStyles('select', state, theme, {
6735
+ position: 'static',
6736
+ zIndex: 0,
6737
+ cursor: 'pointer',
6738
+ padding: `8px calc(${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2) 8px ${spacingStaticMedium}`,
6739
+ ...(hasCustomDropdown && !isDisabled && { borderColor: 'transparent' }),
6740
+ }),
6741
+ }),
6742
+ root: {
5756
6743
  display: 'block',
5757
6744
  position: 'relative',
5758
- } }, getLabelStyles('select', isDisabled, hideLabel, state, theme, {
5759
- icon: {
5760
- position: 'absolute',
5761
- bottom: '13px',
5762
- right: '15px',
5763
- transform: 'rotate3d(0,0,1,0.0001deg)',
5764
- transition: getTransition('transform'),
5765
- '&--open': {
5766
- transform: 'rotate3d(0,0,1,180deg)',
5767
- },
5768
6745
  },
5769
- })), getFunctionalComponentRequiredStyles()), getFunctionalComponentStateMessageStyles(theme, state)));
6746
+ ...getLabelStyles('select', isDisabled, hideLabel, state, theme, {
6747
+ icon: {
6748
+ position: 'absolute',
6749
+ bottom: '13px',
6750
+ right: '15px',
6751
+ transform: 'rotate3d(0,0,1,0.0001deg)',
6752
+ transition: getTransition('transform'),
6753
+ '&--open': {
6754
+ transform: 'rotate3d(0,0,1,180deg)',
6755
+ },
6756
+ },
6757
+ }),
6758
+ ...getFunctionalComponentRequiredStyles(),
6759
+ ...getFunctionalComponentStateMessageStyles(theme, state),
6760
+ });
5770
6761
  };
5771
6762
 
5772
6763
  const dropdownPositionVar = '--p-internal-dropdown-position';
@@ -5776,19 +6767,36 @@ const getButtonStyles = (direction, isOpen, state, theme) => {
5776
6767
  const isDirectionDown = direction === 'down';
5777
6768
  return {
5778
6769
  '@global': {
5779
- button: Object.assign(Object.assign(Object.assign({ position: 'absolute', top: 0, height: `calc(${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2)`, width: '100%', font: textSmallStyle.font.replace('ex', 'ex + 6px'), padding: 0, background: 'transparent', border: `${borderWidthBase} solid ${isOpen ? primaryColor : formStateColor || contrastMediumColor}`, borderRadius: borderRadiusSmall, outline: '0', cursor: 'pointer', transition: getTransition('border-color'), '&:focus, &:focus ~ ul': {
6770
+ button: {
6771
+ position: 'absolute',
6772
+ top: 0,
6773
+ height: `calc(${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2)`,
6774
+ width: '100%',
6775
+ font: textSmallStyle.font.replace('ex', 'ex + 6px'),
6776
+ padding: 0,
6777
+ background: 'transparent',
6778
+ border: `${borderWidthBase} solid ${isOpen ? primaryColor : formStateColor || contrastMediumColor}`,
6779
+ borderRadius: borderRadiusSmall,
6780
+ outline: '0',
6781
+ cursor: 'pointer',
6782
+ transition: getTransition('border-color'),
6783
+ '&:focus, &:focus ~ ul': {
5780
6784
  borderColor: primaryColor,
5781
- } }, hoverMediaQuery({
5782
- '&:not(:disabled):not(:focus):hover': {
5783
- borderColor: isOpen ? primaryColor : formStateHoverColor || primaryColor,
5784
6785
  },
5785
- })), { '&:disabled': {
6786
+ ...hoverMediaQuery({
6787
+ '&:not(:disabled):not(:focus):hover': {
6788
+ borderColor: isOpen ? primaryColor : formStateHoverColor || primaryColor,
6789
+ },
6790
+ }),
6791
+ '&:disabled': {
5786
6792
  cursor: 'not-allowed',
5787
6793
  borderColor: disabledColor,
5788
- } }), (isOpen && {
5789
- [isDirectionDown ? 'borderBottomLeftRadius' : 'borderTopLeftRadius']: 0,
5790
- [isDirectionDown ? 'borderBottomRightRadius' : 'borderTopRightRadius']: 0,
5791
- })),
6794
+ },
6795
+ ...(isOpen && {
6796
+ [isDirectionDown ? 'borderBottomLeftRadius' : 'borderTopLeftRadius']: 0,
6797
+ [isDirectionDown ? 'borderBottomRightRadius' : 'borderTopRightRadius']: 0,
6798
+ }),
6799
+ },
5792
6800
  },
5793
6801
  };
5794
6802
  };
@@ -5802,28 +6810,63 @@ const getFilterStyles = (direction, isOpen, state, disabled, theme) => {
5802
6810
  };
5803
6811
  return {
5804
6812
  '@global': {
5805
- input: Object.assign(Object.assign(Object.assign(Object.assign({ display: 'block', position: 'absolute', zIndex: 1, bottom: '2px', left: '2px', width: `calc(100% - (${fontLineHeight} + 6px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2))`, height: `calc(${fontLineHeight} + 6px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2)`, font: textSmallStyle.font.replace('ex', 'ex + 6px'), padding: `13px ${spacingStaticMedium}`, outline: '0', appearance: 'none', boxSizing: 'border-box', border: '0', borderRadius: borderRadiusSmall, opacity: 0 }, textSmallStyle), { textIndent: 0, cursor: disabled ? 'not-allowed' : 'text', color: primaryColor, background: backgroundColor, '&::placeholder': placeHolderJssStyle, '&::-webkit-input-placeholder': placeHolderJssStyle, '&::-moz-placeholder': placeHolderJssStyle, '&:not(:disabled):focus': {
6813
+ input: {
6814
+ display: 'block',
6815
+ position: 'absolute',
6816
+ zIndex: 1,
6817
+ bottom: '2px',
6818
+ left: '2px',
6819
+ width: `calc(100% - (${fontLineHeight} + 6px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2))`,
6820
+ height: `calc(${fontLineHeight} + 6px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2)`,
6821
+ font: textSmallStyle.font.replace('ex', 'ex + 6px'),
6822
+ padding: `13px ${spacingStaticMedium}`,
6823
+ outline: '0',
6824
+ appearance: 'none',
6825
+ boxSizing: 'border-box',
6826
+ border: '0',
6827
+ borderRadius: borderRadiusSmall,
6828
+ opacity: 0,
6829
+ ...textSmallStyle,
6830
+ textIndent: 0,
6831
+ cursor: disabled ? 'not-allowed' : 'text',
6832
+ color: primaryColor,
6833
+ background: backgroundColor,
6834
+ '&::placeholder': placeHolderJssStyle,
6835
+ '&::-webkit-input-placeholder': placeHolderJssStyle,
6836
+ '&::-moz-placeholder': placeHolderJssStyle,
6837
+ '&:not(:disabled):focus': {
5806
6838
  opacity: 1,
5807
6839
  '&+span, &~ ul': {
5808
6840
  borderColor: primaryColor,
5809
6841
  },
5810
- } }), hoverMediaQuery({
5811
- '&:not(:disabled)': {
5812
- '&+span:hover': {
5813
- borderColor: isOpen ? primaryColor : formStateHoverColor || primaryColor,
5814
- },
5815
- '&:hover': {
5816
- '&+span, &~ul': {
6842
+ },
6843
+ ...hoverMediaQuery({
6844
+ '&:not(:disabled)': {
6845
+ '&+span:hover': {
5817
6846
  borderColor: isOpen ? primaryColor : formStateHoverColor || primaryColor,
5818
6847
  },
6848
+ '&:hover': {
6849
+ '&+span, &~ul': {
6850
+ borderColor: isOpen ? primaryColor : formStateHoverColor || primaryColor,
6851
+ },
6852
+ },
5819
6853
  },
5820
- },
5821
- })), { '&+span': Object.assign(Object.assign(Object.assign({
6854
+ }),
6855
+ '&+span': {
5822
6856
  // for focus outline and clicking arrow since input ends left of the icon
5823
- position: 'absolute' }, getInsetJssStyle()), { transition: getTransition('border-color'), pointerEvents: 'all', cursor: disabled ? 'not-allowed' : 'pointer', border: `${borderWidthBase} solid ${isOpen ? primaryColor : formStateColor || contrastMediumColor}`, borderRadius: borderRadiusSmall }), (isOpen && {
5824
- [isDirectionDown ? 'borderBottomLeftRadius' : 'borderTopLeftRadius']: 0,
5825
- [isDirectionDown ? 'borderBottomRightRadius' : 'borderTopRightRadius']: 0,
5826
- })) }),
6857
+ position: 'absolute',
6858
+ ...getInsetJssStyle(),
6859
+ transition: getTransition('border-color'),
6860
+ pointerEvents: 'all',
6861
+ cursor: disabled ? 'not-allowed' : 'pointer',
6862
+ border: `${borderWidthBase} solid ${isOpen ? primaryColor : formStateColor || contrastMediumColor}`,
6863
+ borderRadius: borderRadiusSmall,
6864
+ ...(isOpen && {
6865
+ [isDirectionDown ? 'borderBottomLeftRadius' : 'borderTopLeftRadius']: 0,
6866
+ [isDirectionDown ? 'borderBottomRightRadius' : 'borderTopRightRadius']: 0,
6867
+ }),
6868
+ },
6869
+ },
5827
6870
  },
5828
6871
  };
5829
6872
  };
@@ -5833,29 +6876,74 @@ const getListStyles = (direction, theme) => {
5833
6876
  const { highlightColor } = getHighContrastColors();
5834
6877
  return {
5835
6878
  '@global': {
5836
- ul: Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', flexDirection: 'column', gap: spacingStaticSmall, position: `var(${dropdownPositionVar})`, padding: '6px', margin: 0, background: backgroundColor }, textSmallStyle), { zIndex: 10, left: 0, right: 0, [isDirectionDown ? 'top' : 'bottom']: 'calc(100% - 2px)', boxSizing: 'border-box', maxHeight: `${8.5 * (OPTION_HEIGHT + 8) + 6 + 2}px`, overflowY: 'auto', WebkitOverflowScrolling: 'touch', scrollBehavior: 'smooth', border: `2px solid ${primaryColor}`, [isDirectionDown ? 'borderTop' : 'borderBottom']: addImportantToRule(`1px solid ${contrastMediumColor}`) }), (isDirectionDown
5837
- ? ['borderBottomLeftRadius', 'borderBottomRightRadius']
5838
- : ['borderTopLeftRadius', 'borderTopRightRadius']).reduce((result, curr) => (Object.assign(Object.assign({}, result), { [curr]: borderRadiusSmall })), {})), { scrollbarWidth: 'thin', scrollbarColor: 'auto', transition: getTransition('border-color'), transform: 'translate3d(0,0,0)' }),
5839
- },
5840
- option: Object.assign(Object.assign({ display: 'flex', justifyContent: 'space-between', gap: '12px', padding: `${spacingStaticSmall} 12px`, flex: `1 0 calc(${fontLineHeight} + ${spacingStaticSmall} * 2)`, color: contrastHighColor, cursor: 'pointer', textAlign: 'left', wordBreak: 'break-word', boxSizing: 'border-box', borderRadius: borderRadiusSmall, transition: ['background-color', 'color'].map(getTransition).join(), '&[role=status]': {
5841
- cursor: 'not-allowed',
5842
- }, '&__sr': getHiddenTextJssStyle() }, hoverMediaQuery({
5843
- '&:not([aria-disabled]):not([role=status]):hover': {
5844
- color: isHighContrastMode ? highlightColor : primaryColor,
5845
- background: backgroundSurfaceColor,
6879
+ ul: {
6880
+ display: 'flex',
6881
+ flexDirection: 'column',
6882
+ gap: spacingStaticSmall,
6883
+ position: `var(${dropdownPositionVar})`,
6884
+ padding: '6px',
6885
+ margin: 0,
6886
+ background: backgroundColor,
6887
+ ...textSmallStyle,
6888
+ zIndex: 10,
6889
+ left: 0,
6890
+ right: 0,
6891
+ [isDirectionDown ? 'top' : 'bottom']: 'calc(100% - 2px)',
6892
+ boxSizing: 'border-box',
6893
+ maxHeight: `${8.5 * (OPTION_HEIGHT + 8) + 6 + 2}px`,
6894
+ overflowY: 'auto',
6895
+ WebkitOverflowScrolling: 'touch',
6896
+ scrollBehavior: 'smooth',
6897
+ border: `2px solid ${primaryColor}`,
6898
+ [isDirectionDown ? 'borderTop' : 'borderBottom']: addImportantToRule(`1px solid ${contrastMediumColor}`),
6899
+ ...(isDirectionDown
6900
+ ? ['borderBottomLeftRadius', 'borderBottomRightRadius']
6901
+ : ['borderTopLeftRadius', 'borderTopRightRadius']).reduce((result, curr) => ({ ...result, [curr]: borderRadiusSmall }), {}),
6902
+ scrollbarWidth: 'thin',
6903
+ scrollbarColor: 'auto',
6904
+ transition: getTransition('border-color'),
6905
+ transform: 'translate3d(0,0,0)', // fix iOS bug if less than 5 items are displayed
5846
6906
  },
5847
- })), { '&--highlighted, &--selected': {
6907
+ },
6908
+ option: {
6909
+ display: 'flex',
6910
+ justifyContent: 'space-between',
6911
+ gap: '12px',
6912
+ padding: `${spacingStaticSmall} 12px`,
6913
+ flex: `1 0 calc(${fontLineHeight} + ${spacingStaticSmall} * 2)`,
6914
+ color: contrastHighColor,
6915
+ cursor: 'pointer',
6916
+ textAlign: 'left',
6917
+ wordBreak: 'break-word',
6918
+ boxSizing: 'border-box',
6919
+ borderRadius: borderRadiusSmall,
6920
+ transition: ['background-color', 'color'].map(getTransition).join(),
6921
+ '&[role=status]': {
6922
+ cursor: 'not-allowed',
6923
+ },
6924
+ '&__sr': getHiddenTextJssStyle(),
6925
+ ...hoverMediaQuery({
6926
+ '&:not([aria-disabled]):not([role=status]):hover': {
6927
+ color: isHighContrastMode ? highlightColor : primaryColor,
6928
+ background: backgroundSurfaceColor,
6929
+ },
6930
+ }),
6931
+ '&--highlighted, &--selected': {
5848
6932
  color: isHighContrastMode ? highlightColor : primaryColor,
5849
6933
  background: backgroundSurfaceColor,
5850
- }, '&--selected': {
6934
+ },
6935
+ '&--selected': {
5851
6936
  cursor: 'default',
5852
6937
  pointerEvents: 'none',
5853
- }, '&--disabled': {
6938
+ },
6939
+ '&--disabled': {
5854
6940
  cursor: 'not-allowed',
5855
6941
  color: disabledColor,
5856
- }, '&--hidden': {
6942
+ },
6943
+ '&--hidden': {
5857
6944
  display: 'none',
5858
- } }),
6945
+ },
6946
+ },
5859
6947
  optgroup: {
5860
6948
  display: 'block',
5861
6949
  padding: '3px 14px',
@@ -5876,13 +6964,24 @@ const getComponentCss$o = (direction, isOpen, state, disabled, filter, theme) =>
5876
6964
  // merge because of global styles
5877
6965
  mergeDeep({
5878
6966
  '@global': {
5879
- ':host': Object.assign({ [dropdownPositionVar]: 'absolute', display: 'block', position: `var(${dropdownPositionVar})`, font: textSmallStyle.font.replace('ex', 'ex + 6px'), marginTop: `calc(-1 * (${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2))`, paddingTop: `calc(${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2)`, left: 0, right: 0, color: disabled ? disabledColor : formStateColor || contrastMediumColor }, (!disabled &&
5880
- !isHighContrastMode &&
5881
- hoverMediaQuery({
5882
- '&(:hover)': {
5883
- color: formStateHoverColor || primaryColor,
5884
- },
5885
- }))),
6967
+ ':host': {
6968
+ [dropdownPositionVar]: 'absolute',
6969
+ display: 'block',
6970
+ position: `var(${dropdownPositionVar})`,
6971
+ font: textSmallStyle.font.replace('ex', 'ex + 6px'),
6972
+ marginTop: `calc(-1 * (${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2))`,
6973
+ paddingTop: `calc(${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2)`,
6974
+ left: 0,
6975
+ right: 0,
6976
+ color: disabled ? disabledColor : formStateColor || contrastMediumColor,
6977
+ ...(!disabled &&
6978
+ !isHighContrastMode &&
6979
+ hoverMediaQuery({
6980
+ '&(:hover)': {
6981
+ color: formStateHoverColor || primaryColor,
6982
+ },
6983
+ })),
6984
+ },
5886
6985
  },
5887
6986
  'sr-text': {
5888
6987
  display: 'none',
@@ -5908,7 +7007,11 @@ const getComponentCss$n = (size, theme) => {
5908
7007
  const { canvasColor, canvasTextColor } = getHighContrastColors();
5909
7008
  return getCss({
5910
7009
  '@global': {
5911
- ':host': addImportantToEachRule(Object.assign({ display: 'inline-flex', verticalAlign: 'top' }, hostHiddenStyles)),
7010
+ ':host': addImportantToEachRule({
7011
+ display: 'inline-flex',
7012
+ verticalAlign: 'top',
7013
+ ...hostHiddenStyles,
7014
+ }),
5912
7015
  svg: {
5913
7016
  display: 'block',
5914
7017
  position: 'relative',
@@ -5953,14 +7056,21 @@ const getComponentCss$n = (size, theme) => {
5953
7056
  },
5954
7057
  },
5955
7058
  },
5956
- root: Object.assign(Object.assign({ display: 'block' }, buildResponsiveStyles(size, (s) => sizeMap$1[s])), { margin: 0, padding: 0, boxSizing: 'border-box', strokeWidth: 1.5 }),
7059
+ root: {
7060
+ display: 'block',
7061
+ ...buildResponsiveStyles(size, (s) => sizeMap$1[s]),
7062
+ margin: 0,
7063
+ padding: 0,
7064
+ boxSizing: 'border-box',
7065
+ strokeWidth: 1.5,
7066
+ },
5957
7067
  'sr-only': getHiddenTextJssStyle(),
5958
7068
  });
5959
7069
  };
5960
7070
 
5961
7071
  const getSVGPath = (stepCount, numberedCircleColors, isStateCurrent) => {
5962
7072
  // # of the hexcolor starts a fragment identifier in URLs, so we have to replace it with the escaped value of # = %23
5963
- numberedCircleColors = Object.entries(numberedCircleColors).reduce((result, [key, value]) => (Object.assign(Object.assign({}, result), { [key]: value.replace(/#/g, '%23') })), {});
7073
+ numberedCircleColors = Object.entries(numberedCircleColors).reduce((result, [key, value]) => ({ ...result, [key]: value.replace(/#/g, '%23') }), {});
5964
7074
  const { disabledColor, invertedBaseColor, primaryColor } = numberedCircleColors;
5965
7075
  const fillColor = isStateCurrent ? invertedBaseColor : disabledColor;
5966
7076
  const svgCirclePath = `<circle fill="${isStateCurrent ? primaryColor : 'none'}"${isStateCurrent ? '' : ` stroke="${fillColor}"`} stroke-width="1px" cx="12" cy="12" r="9"/>`;
@@ -5985,47 +7095,98 @@ const getComponentCss$m = (state, disabled, theme) => {
5985
7095
  const isStateCurrent = state === 'current';
5986
7096
  const isStateCurrentOrUndefined = !state || isStateCurrent;
5987
7097
  const isDisabled = !state || disabled;
5988
- return getCss(Object.assign(Object.assign({ '@global': {
5989
- ':host': Object.assign(Object.assign({}, (isStateCurrentOrUndefined &&
5990
- Array.from(Array(9)).reduce((result, _, i) => (Object.assign(Object.assign({}, result), { [`&(:nth-of-type(${i + 1})) $button::before`]: {
5991
- backgroundImage: getInlineSVGBackgroundImage(getSVGPath(i, {
5992
- primaryColor,
5993
- invertedBaseColor: getInvertedThemedColors(theme).primaryColor,
5994
- disabledColor,
5995
- }, isStateCurrent)),
5996
- } })), {}))), addImportantToEachRule(Object.assign(Object.assign({ fontSize: 'inherit' }, hostHiddenStyles), { '&(:not(:last-of-type))': {
5997
- margin: `0 ${spacingFluidXSmall} 0 0`,
5998
- } }))),
5999
- button: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', position: 'relative', gap: '3px', color: isDisabled ? disabledColor : primaryColor, padding: '4px 10px 4px 6px', background: 0, border: 0, outline: 0 }, textSmallStyle), { fontSize: 'inherit', width: 'max-content', cursor: isDisabled ? 'not-allowed' : 'pointer', borderRadius: borderRadiusSmall }), (isStateCurrent && Object.assign(Object.assign({}, frostedGlassStyle), { background: hoverColor }))), (!isDisabled &&
6000
- hoverMediaQuery({
6001
- transition: getTransition('background-color'),
6002
- '&:hover': Object.assign(Object.assign({}, frostedGlassStyle), { background: hoverColor }),
6003
- }))), (isStateCurrentOrUndefined && {
6004
- // counter
6005
- // Pseudo element is needed to center the counter to the text, as it is not working optimal directly on the button
6006
- '&::before': {
7098
+ return getCss({
7099
+ '@global': {
7100
+ ':host': {
7101
+ ...(isStateCurrentOrUndefined &&
7102
+ Array.from(Array(9)).reduce((result, _, i) => ({
7103
+ ...result,
7104
+ [`&(:nth-of-type(${i + 1})) $button::before`]: {
7105
+ backgroundImage: getInlineSVGBackgroundImage(getSVGPath(i, {
7106
+ primaryColor,
7107
+ invertedBaseColor: getInvertedThemedColors(theme).primaryColor,
7108
+ disabledColor,
7109
+ }, isStateCurrent)),
7110
+ },
7111
+ }), {})),
7112
+ ...addImportantToEachRule({
7113
+ fontSize: 'inherit',
7114
+ ...hostHiddenStyles,
7115
+ '&(:not(:last-of-type))': {
7116
+ margin: `0 ${spacingFluidXSmall} 0 0`,
7117
+ },
7118
+ }),
7119
+ },
7120
+ button: {
7121
+ display: 'flex',
7122
+ position: 'relative',
7123
+ gap: '3px',
7124
+ color: isDisabled ? disabledColor : primaryColor,
7125
+ padding: '4px 10px 4px 6px',
7126
+ background: 0,
7127
+ border: 0,
7128
+ outline: 0,
7129
+ ...textSmallStyle,
7130
+ fontSize: 'inherit',
7131
+ width: 'max-content',
7132
+ cursor: isDisabled ? 'not-allowed' : 'pointer',
7133
+ borderRadius: borderRadiusSmall,
7134
+ ...(isStateCurrent && {
7135
+ ...frostedGlassStyle,
7136
+ background: hoverColor,
7137
+ }),
7138
+ ...(!isDisabled &&
7139
+ hoverMediaQuery({
7140
+ transition: getTransition('background-color'),
7141
+ '&:hover': {
7142
+ ...frostedGlassStyle,
7143
+ background: hoverColor,
7144
+ },
7145
+ })),
7146
+ ...(isStateCurrentOrUndefined && {
7147
+ // counter
7148
+ // Pseudo element is needed to center the counter to the text, as it is not working optimal directly on the button
7149
+ '&::before': {
7150
+ content: '""',
7151
+ height: fontLineHeight,
7152
+ width: fontLineHeight,
7153
+ },
7154
+ }),
7155
+ '&:focus::after': {
6007
7156
  content: '""',
6008
- height: fontLineHeight,
6009
- width: fontLineHeight,
7157
+ position: 'absolute',
7158
+ ...getInsetJssStyle(),
7159
+ border: `${borderWidthBase} solid ${focusColor}`,
7160
+ borderRadius: borderRadiusSmall,
6010
7161
  },
6011
- })), { '&:focus::after': Object.assign(Object.assign({ content: '""', position: 'absolute' }, getInsetJssStyle()), { border: `${borderWidthBase} solid ${focusColor}`, borderRadius: borderRadiusSmall }), '&:focus:not(:focus-visible)::after': {
7162
+ '&:focus:not(:focus-visible)::after': {
6012
7163
  borderColor: 'transparent',
6013
- } }),
6014
- } }, (!isStateCurrentOrUndefined && {
6015
- // complete / warning icons via icon component
6016
- icon: {
6017
- height: fontLineHeight,
6018
- width: fontLineHeight,
7164
+ },
7165
+ },
6019
7166
  },
6020
- })), { 'sr-only': getHiddenTextJssStyle() }));
7167
+ ...(!isStateCurrentOrUndefined && {
7168
+ // complete / warning icons via icon component
7169
+ icon: {
7170
+ height: fontLineHeight,
7171
+ width: fontLineHeight,
7172
+ },
7173
+ }),
7174
+ 'sr-only': getHiddenTextJssStyle(),
7175
+ });
6021
7176
  };
6022
7177
 
6023
7178
  const getComponentCss$l = (size) => {
6024
7179
  return getCss({
6025
7180
  '@global': {
6026
- ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
7181
+ ':host': {
7182
+ display: 'block',
7183
+ ...addImportantToEachRule(hostHiddenStyles),
7184
+ },
7185
+ },
7186
+ scroller: {
7187
+ ...textSmallStyle,
7188
+ ...buildResponsiveStyles(size, (s) => ({ fontSize: fontSizeText[s] })),
6027
7189
  },
6028
- scroller: Object.assign(Object.assign({}, textSmallStyle), buildResponsiveStyles(size, (s) => ({ fontSize: fontSizeText[s] }))),
6029
7190
  });
6030
7191
  };
6031
7192
 
@@ -6060,22 +7221,55 @@ const getColors$1 = (checked, disabled, loading, theme) => {
6060
7221
  const getComponentCss$k = (alignLabel, hideLabel, stretch, checked, disabled, loading, theme) => {
6061
7222
  const { buttonBorderColor, buttonBorderColorHover, buttonBackgroundColor, buttonBackgroundColorHover, toggleBackgroundColor, toggleBackgroundColorHover, textColor, } = getColors$1(checked, disabled, loading, theme);
6062
7223
  const { focusColor } = getThemedColors(theme);
6063
- return getCss(Object.assign(Object.assign({ '@global': {
6064
- ':host': addImportantToEachRule(Object.assign(Object.assign({ outline: 0 }, hostHiddenStyles), buildResponsiveStyles(stretch, (stretchValue) => (Object.assign({ display: stretchValue ? 'block' : 'inline-block', width: stretchValue ? '100%' : 'auto' }, (!stretchValue && { verticalAlign: 'top' })))))),
6065
- }, root: Object.assign(Object.assign(Object.assign({ display: 'flex', alignItems: 'flex-start', gap: spacingStaticSmall, width: '100%', padding: 0, outline: 0, border: 0, textAlign: 'left', background: 'transparent', appearance: 'none', cursor: isDisabledOrLoading(disabled, loading) ? 'auto' : 'pointer' }, buildResponsiveStyles(stretch, (stretchValue) => ({
6066
- justifyContent: stretchValue ? 'space-between' : 'flex-start',
6067
- }))), (!isDisabledOrLoading(disabled, loading) &&
6068
- hoverMediaQuery({
6069
- '&:hover .switch': {
6070
- borderColor: buttonBorderColorHover,
6071
- backgroundColor: buttonBackgroundColorHover,
6072
- '& .toggle': {
6073
- backgroundColor: toggleBackgroundColorHover,
7224
+ return getCss({
7225
+ '@global': {
7226
+ ':host': addImportantToEachRule({
7227
+ outline: 0,
7228
+ ...hostHiddenStyles,
7229
+ ...buildResponsiveStyles(stretch, (stretchValue) => ({
7230
+ display: stretchValue ? 'block' : 'inline-block',
7231
+ width: stretchValue ? '100%' : 'auto',
7232
+ ...(!stretchValue && { verticalAlign: 'top' }),
7233
+ })),
7234
+ }),
7235
+ },
7236
+ root: {
7237
+ display: 'flex',
7238
+ alignItems: 'flex-start',
7239
+ gap: spacingStaticSmall,
7240
+ width: '100%',
7241
+ padding: 0,
7242
+ outline: 0,
7243
+ border: 0,
7244
+ textAlign: 'left',
7245
+ background: 'transparent',
7246
+ appearance: 'none',
7247
+ cursor: isDisabledOrLoading(disabled, loading) ? 'auto' : 'pointer',
7248
+ ...buildResponsiveStyles(stretch, (stretchValue) => ({
7249
+ justifyContent: stretchValue ? 'space-between' : 'flex-start',
7250
+ })),
7251
+ ...(!isDisabledOrLoading(disabled, loading) &&
7252
+ hoverMediaQuery({
7253
+ '&:hover .switch': {
7254
+ borderColor: buttonBorderColorHover,
7255
+ backgroundColor: buttonBackgroundColorHover,
7256
+ '& .toggle': {
7257
+ backgroundColor: toggleBackgroundColorHover,
7258
+ },
6074
7259
  },
6075
- },
6076
- }))), { '&:focus .switch::before': Object.assign(Object.assign({ content: '""', position: 'absolute' }, getInsetJssStyle(-6)), { border: `${borderWidthBase} solid ${focusColor}`, borderRadius: '18px' }), '&:not(:focus-visible) .switch::before': {
7260
+ })),
7261
+ '&:focus .switch::before': {
7262
+ content: '""',
7263
+ position: 'absolute',
7264
+ ...getInsetJssStyle(-6),
7265
+ border: `${borderWidthBase} solid ${focusColor}`,
7266
+ borderRadius: '18px',
7267
+ },
7268
+ '&:not(:focus-visible) .switch::before': {
6077
7269
  borderColor: 'transparent',
6078
- } }), switch: {
7270
+ },
7271
+ },
7272
+ switch: {
6079
7273
  position: 'relative',
6080
7274
  width: '48px',
6081
7275
  height: '28px',
@@ -6086,7 +7280,8 @@ const getComponentCss$k = (alignLabel, hideLabel, stretch, checked, disabled, lo
6086
7280
  backgroundColor: buttonBackgroundColor,
6087
7281
  cursor: isDisabledOrLoading(disabled, loading) ? 'not-allowed' : 'pointer',
6088
7282
  transition: `${getTransition('background-color')},${getTransition('border-color')},${getTransition('color')}`,
6089
- }, toggle: {
7283
+ },
7284
+ toggle: {
6090
7285
  position: 'absolute',
6091
7286
  top: '2px',
6092
7287
  left: '2px',
@@ -6097,23 +7292,36 @@ const getComponentCss$k = (alignLabel, hideLabel, stretch, checked, disabled, lo
6097
7292
  backgroundColor: toggleBackgroundColor,
6098
7293
  transform: `translate3d(${checked ? '20px' : '0'}, 0, 0)`,
6099
7294
  transition: `${getTransition('background-color')},${getTransition('transform')}`,
6100
- } }, (loading && {
6101
- spinner: {
6102
- position: 'absolute',
6103
- top: '-4px',
6104
- left: '-4px',
6105
- width: '28px',
6106
- height: '28px',
6107
7295
  },
6108
- })), { label: Object.assign(Object.assign(Object.assign({}, textSmallStyle), { paddingTop: '2px', minWidth: 0, minHeight: 0, color: textColor }), mergeDeep(buildResponsiveStyles(alignLabel, (alignLabelValue) => ({
6109
- order: alignLabelValue === 'left' ? -1 : 0,
6110
- })), buildResponsiveStyles(hideLabel, getHiddenTextJssStyle))) }));
7296
+ ...(loading && {
7297
+ spinner: {
7298
+ position: 'absolute',
7299
+ top: '-4px',
7300
+ left: '-4px',
7301
+ width: '28px',
7302
+ height: '28px',
7303
+ },
7304
+ }),
7305
+ label: {
7306
+ ...textSmallStyle,
7307
+ paddingTop: '2px',
7308
+ minWidth: 0,
7309
+ minHeight: 0,
7310
+ color: textColor,
7311
+ ...mergeDeep(buildResponsiveStyles(alignLabel, (alignLabelValue) => ({
7312
+ order: alignLabelValue === 'left' ? -1 : 0,
7313
+ })), buildResponsiveStyles(hideLabel, getHiddenTextJssStyle)),
7314
+ },
7315
+ });
6111
7316
  };
6112
7317
 
6113
7318
  const getComponentCss$j = () => {
6114
7319
  return getCss({
6115
7320
  '@global': {
6116
- ':host': addImportantToEachRule(Object.assign({ display: 'table-row-group' }, hostHiddenStyles)),
7321
+ ':host': addImportantToEachRule({
7322
+ display: 'table-row-group',
7323
+ ...hostHiddenStyles,
7324
+ }),
6117
7325
  },
6118
7326
  });
6119
7327
  };
@@ -6121,7 +7329,16 @@ const getComponentCss$j = () => {
6121
7329
  const getComponentCss$i = (multiline) => {
6122
7330
  return getCss({
6123
7331
  '@global': {
6124
- ':host': Object.assign(Object.assign({}, addImportantToEachRule(Object.assign({ display: 'table-cell', padding: spacingFluidSmall, margin: 0, whiteSpace: multiline ? 'normal' : 'nowrap' }, hostHiddenStyles))), { verticalAlign: 'middle' }),
7332
+ ':host': {
7333
+ ...addImportantToEachRule({
7334
+ display: 'table-cell',
7335
+ padding: spacingFluidSmall,
7336
+ margin: 0,
7337
+ whiteSpace: multiline ? 'normal' : 'nowrap',
7338
+ ...hostHiddenStyles,
7339
+ }),
7340
+ verticalAlign: 'middle',
7341
+ },
6125
7342
  },
6126
7343
  });
6127
7344
  };
@@ -6138,13 +7355,24 @@ const getComponentCss$h = (theme) => {
6138
7355
  const { primaryColor, hoverColor, contrastLowColor } = doGetThemedColors(theme);
6139
7356
  return getCss({
6140
7357
  '@global': {
6141
- ':host': addImportantToEachRule(Object.assign(Object.assign(Object.assign({ display: 'block' }, textSmallStyle), { color: primaryColor, textAlign: 'left' }), hostHiddenStyles)),
6142
- '::slotted(*)': addImportantToEachRule(Object.assign({ [cssVariableTableHoverColor]: hoverColor, [cssVariableTableBorderColor]: contrastLowColor, [cssVariableTableHeadCellIconFilter]: isThemeDark(theme) ? 'invert(100%)' : 'none' }, (isHighContrastMode &&
6143
- getSchemedHighContrastMediaQuery({
6144
- [cssVariableTableHeadCellIconFilter]: 'none',
6145
- }, {
6146
- [cssVariableTableHeadCellIconFilter]: 'invert(100%)',
6147
- })))),
7358
+ ':host': addImportantToEachRule({
7359
+ display: 'block',
7360
+ ...textSmallStyle,
7361
+ color: primaryColor,
7362
+ textAlign: 'left',
7363
+ ...hostHiddenStyles,
7364
+ }),
7365
+ '::slotted(*)': addImportantToEachRule({
7366
+ [cssVariableTableHoverColor]: hoverColor,
7367
+ [cssVariableTableBorderColor]: contrastLowColor,
7368
+ [cssVariableTableHeadCellIconFilter]: isThemeDark(theme) ? 'invert(100%)' : 'none',
7369
+ ...(isHighContrastMode &&
7370
+ getSchemedHighContrastMediaQuery({
7371
+ [cssVariableTableHeadCellIconFilter]: 'none',
7372
+ }, {
7373
+ [cssVariableTableHeadCellIconFilter]: 'invert(100%)',
7374
+ })),
7375
+ }),
6148
7376
  },
6149
7377
  caption: {
6150
7378
  marginBottom: spacingFluidMedium,
@@ -6163,48 +7391,91 @@ const buttonBeforeOffsetVertical = '-2px';
6163
7391
  const buttonBeforeOffsetHorizontal = '-4px';
6164
7392
  const getComponentCss$g = (active, direction, hideLabel, multiline) => {
6165
7393
  const sortable = isSortable(active, direction);
6166
- return getCss(Object.assign({ '@global': Object.assign({ ':host': addImportantToEachRule(Object.assign({ display: 'table-cell', padding: `2px ${spacingFluidSmall} ${spacingFluidSmall}`, verticalAlign: 'bottom', whiteSpace: multiline ? 'normal' : 'nowrap' }, hostHiddenStyles)) }, (sortable
6167
- ? {
6168
- button: Object.assign(Object.assign({ position: 'relative', display: 'flex', gap: spacingStaticXSmall, width: 'auto', margin: 0, padding: 0, font: 'inherit', color: 'inherit', outline: 0, alignItems: 'flex-end', appearance: 'none', background: 'transparent', textAlign: 'left', border: 0, zIndex: 0, cursor: 'pointer', '&::before': {
6169
- content: '""',
6170
- position: 'absolute',
6171
- top: buttonBeforeOffsetVertical,
6172
- bottom: buttonBeforeOffsetVertical,
6173
- right: buttonBeforeOffsetHorizontal,
6174
- left: buttonBeforeOffsetHorizontal,
6175
- borderRadius: borderRadiusSmall,
6176
- zIndex: -1,
6177
- transition: getTransition('background-color'),
6178
- } }, hoverMediaQuery({
6179
- '&:hover, &:focus': {
6180
- '& .icon': {
6181
- opacity: 1,
7394
+ return getCss({
7395
+ '@global': {
7396
+ ':host': addImportantToEachRule({
7397
+ display: 'table-cell',
7398
+ padding: `2px ${spacingFluidSmall} ${spacingFluidSmall}`,
7399
+ verticalAlign: 'bottom',
7400
+ whiteSpace: multiline ? 'normal' : 'nowrap',
7401
+ ...hostHiddenStyles,
7402
+ }),
7403
+ ...(sortable
7404
+ ? {
7405
+ button: {
7406
+ position: 'relative',
7407
+ display: 'flex',
7408
+ gap: spacingStaticXSmall,
7409
+ width: 'auto',
7410
+ margin: 0,
7411
+ padding: 0,
7412
+ font: 'inherit',
7413
+ color: 'inherit',
7414
+ outline: 0,
7415
+ alignItems: 'flex-end',
7416
+ appearance: 'none',
7417
+ background: 'transparent',
7418
+ textAlign: 'left',
7419
+ border: 0,
7420
+ zIndex: 0,
7421
+ cursor: 'pointer',
7422
+ '&::before': {
7423
+ content: '""',
7424
+ position: 'absolute',
7425
+ top: buttonBeforeOffsetVertical,
7426
+ bottom: buttonBeforeOffsetVertical,
7427
+ right: buttonBeforeOffsetHorizontal,
7428
+ left: buttonBeforeOffsetHorizontal,
7429
+ borderRadius: borderRadiusSmall,
7430
+ zIndex: -1,
7431
+ transition: getTransition('background-color'),
7432
+ },
7433
+ ...hoverMediaQuery({
7434
+ '&:hover, &:focus': {
7435
+ '& .icon': {
7436
+ opacity: 1,
7437
+ },
7438
+ },
7439
+ '&:hover::before': {
7440
+ ...frostedGlassStyle,
7441
+ backgroundColor: hoverColor,
7442
+ },
7443
+ }),
7444
+ '&:focus::before': {
7445
+ border: `${borderWidthBase} solid ${focusColor}`,
7446
+ },
7447
+ '&:not(:focus-visible)::before': {
7448
+ border: 0,
6182
7449
  },
6183
7450
  },
6184
- '&:hover::before': Object.assign(Object.assign({}, frostedGlassStyle), { backgroundColor: hoverColor }),
6185
- })), { '&:focus::before': {
6186
- border: `${borderWidthBase} solid ${focusColor}`,
6187
- }, '&:not(:focus-visible)::before': {
7451
+ }
7452
+ : hideLabel && {
7453
+ span: {
7454
+ ...getHiddenTextJssStyle(),
7455
+ display: 'block',
6188
7456
  border: 0,
6189
- } }),
6190
- }
6191
- : hideLabel && {
6192
- span: Object.assign(Object.assign({}, getHiddenTextJssStyle()), { display: 'block', border: 0 }),
6193
- })) }, (sortable && {
6194
- icon: {
6195
- transition: getTransition('opacity'),
6196
- opacity: active ? 1 : 0,
6197
- transform: `rotate3d(0,0,1,${isDirectionAsc(direction) ? 0 : 180}deg)`,
6198
- transformOrigin: '50% 50%',
6199
- filter: `var(${cssVariableTableHeadCellIconFilter})`,
7457
+ },
7458
+ }),
6200
7459
  },
6201
- })));
7460
+ ...(sortable && {
7461
+ icon: {
7462
+ transition: getTransition('opacity'),
7463
+ opacity: active ? 1 : 0,
7464
+ transform: `rotate3d(0,0,1,${isDirectionAsc(direction) ? 0 : 180}deg)`,
7465
+ transformOrigin: '50% 50%',
7466
+ filter: `var(${cssVariableTableHeadCellIconFilter})`,
7467
+ },
7468
+ }),
7469
+ });
6202
7470
  };
6203
7471
 
6204
7472
  const getComponentCss$f = () => {
6205
7473
  return getCss({
6206
7474
  '@global': {
6207
- ':host': addImportantToEachRule(Object.assign({ display: 'table-row' }, hostHiddenStyles)),
7475
+ ':host': addImportantToEachRule({
7476
+ display: 'table-row',
7477
+ ...hostHiddenStyles,
7478
+ }),
6208
7479
  },
6209
7480
  });
6210
7481
  };
@@ -6212,7 +7483,13 @@ const getComponentCss$f = () => {
6212
7483
  const getComponentCss$e = () => {
6213
7484
  return getCss({
6214
7485
  '@global': {
6215
- ':host': addImportantToEachRule(Object.assign({ display: 'table-header-group', fontSize: fontSizeTextXSmall, lineHeight: fontLineHeight, fontWeight: fontWeightSemiBold }, hostHiddenStyles)),
7486
+ ':host': addImportantToEachRule({
7487
+ display: 'table-header-group',
7488
+ fontSize: fontSizeTextXSmall,
7489
+ lineHeight: fontLineHeight,
7490
+ fontWeight: fontWeightSemiBold,
7491
+ ...hostHiddenStyles,
7492
+ }),
6216
7493
  },
6217
7494
  });
6218
7495
  };
@@ -6220,52 +7497,132 @@ const getComponentCss$e = () => {
6220
7497
  const getComponentCss$d = () => {
6221
7498
  return getCss({
6222
7499
  '@global': {
6223
- ':host': addImportantToEachRule(Object.assign(Object.assign({ display: 'table-row', borderTop: `1px solid var(${cssVariableTableBorderColor})`, borderBottom: `1px solid var(${cssVariableTableBorderColor})`, transition: getTransition('background') }, hostHiddenStyles), hoverMediaQuery({
6224
- '&(:hover)': {
6225
- // ...frostedGlassStyle, // will result in not smooth transition when applied
6226
- background: `var(${cssVariableTableHoverColor})`,
6227
- },
6228
- }))),
7500
+ ':host': addImportantToEachRule({
7501
+ display: 'table-row',
7502
+ borderTop: `1px solid var(${cssVariableTableBorderColor})`,
7503
+ borderBottom: `1px solid var(${cssVariableTableBorderColor})`,
7504
+ transition: getTransition('background'),
7505
+ ...hostHiddenStyles,
7506
+ ...hoverMediaQuery({
7507
+ '&(:hover)': {
7508
+ // ...frostedGlassStyle, // will result in not smooth transition when applied
7509
+ background: `var(${cssVariableTableHoverColor})`,
7510
+ },
7511
+ }),
7512
+ }),
6229
7513
  },
6230
7514
  });
6231
7515
  };
6232
7516
 
6233
- const tabsTransitionDuration = '.4s';
6234
- const transformSelector = (selector) => ['a', 'button'].map((tag) => selector.replace(/\[role]/g, tag)).join();
7517
+ const barTransitionDuration = '.4s';
7518
+ const scrollerAnimatedCssClass = 'scroller--animated';
7519
+ const targetSelectors = ['a', 'button'];
7520
+ const transformSelector = (selector) => targetSelectors.map((tag) => selector.replace(/\[role]/g, tag)).join();
6235
7521
  const getComponentCss$c = (size, weight, theme) => {
6236
7522
  const { primaryColor, hoverColor, focusColor } = getThemedColors(theme);
7523
+ const barJssStyle = {
7524
+ position: 'absolute',
7525
+ height: '2px',
7526
+ left: 0,
7527
+ background: isHighContrastMode ? getHighContrastColors().canvasTextColor : primaryColor,
7528
+ };
6237
7529
  return getCss({
6238
- '@global': Object.assign({ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(Object.assign({ position: 'relative',
6239
- // TODO: probably not needed because there is no style with position: fixed
6240
- transform: 'translate3d(0,0,0)' }, hostHiddenStyles))) }, addImportantToEachRule(Object.assign(Object.assign({
6241
- // would be nice to use shared selector like '::slotted([role])'
6242
- // but this doesn't work reliably when rendering in browser
6243
- [transformSelector('::slotted([role])')]: Object.assign(Object.assign({}, getResetInitialStylesForSlottedAnchor), { display: 'inline-block', position: 'relative', margin: '0 0 4px 0', padding: 0, verticalAlign: 'top', fontFamily: 'inherit', fontStyle: 'inherit', fontVariant: 'inherit', fontWeight: 'inherit', fontSize: 'inherit', lineHeight: 'inherit', whiteSpace: 'nowrap', boxSizing: 'border-box', WebkitAppearance: 'none', appearance: 'none', outline: 0, outlineOffset: '1px', textDecoration: 'none', textAlign: 'left', border: 0, background: 'transparent', color: primaryColor, cursor: 'pointer', borderRadius: borderRadiusSmall, '&::before': Object.assign({ content: '""', position: 'absolute', top: '-2px', bottom: '-2px', left: '-4px', right: '-4px', borderRadius: borderRadiusSmall, zIndex: '-1' }, hoverMediaQuery({
6244
- transition: getTransition('background'),
6245
- })) }) }, hoverMediaQuery({
6246
- [transformSelector('::slotted([role]:hover)::before')]: Object.assign(Object.assign({}, frostedGlassStyle), { background: hoverColor }),
6247
- })), {
6248
- // TODO: combine link-social-styles with link-button-styles and tabs-bar-styles
6249
- [transformSelector('::slotted([role]:focus)::before')]: {
6250
- border: `${borderWidthBase} solid ${focusColor}`,
6251
- borderRadius: borderRadiusSmall,
6252
- }, [transformSelector('::slotted([role]:focus:not(:focus-visible))::before')]: {
6253
- borderColor: 'transparent',
6254
- }, [transformSelector('::slotted([role]:not(:last-child))')]: {
6255
- marginRight: '16px', // No token for this spacing exists yet
6256
- } }))),
6257
- scroller: Object.assign(Object.assign(Object.assign({}, textSmallStyle), { fontWeight: getFontWeight(weight) }), buildResponsiveStyles(size, (s) => ({ fontSize: fontSizeText[s] }))),
7530
+ '@global': {
7531
+ ':host': {
7532
+ display: 'block',
7533
+ ...addImportantToEachRule({
7534
+ position: 'relative',
7535
+ ...hostHiddenStyles,
7536
+ }),
7537
+ },
7538
+ ...addImportantToEachRule({
7539
+ // would be nice to use shared selector like '::slotted([role])'
7540
+ // but this doesn't work reliably when rendering in browser
7541
+ [transformSelector('::slotted([role])')]: {
7542
+ ...getResetInitialStylesForSlottedAnchor,
7543
+ display: 'inline-block',
7544
+ position: 'relative',
7545
+ margin: '0 0 4px 0',
7546
+ verticalAlign: 'top',
7547
+ fontFamily: 'inherit',
7548
+ fontStyle: 'inherit',
7549
+ fontVariant: 'inherit',
7550
+ fontWeight: 'inherit',
7551
+ fontSize: 'inherit',
7552
+ lineHeight: 'inherit',
7553
+ whiteSpace: 'nowrap',
7554
+ boxSizing: 'border-box',
7555
+ WebkitAppearance: 'none',
7556
+ appearance: 'none',
7557
+ outlineOffset: '1px',
7558
+ textDecoration: 'none',
7559
+ textAlign: 'left',
7560
+ border: 0,
7561
+ color: primaryColor,
7562
+ cursor: 'pointer',
7563
+ borderRadius: borderRadiusSmall,
7564
+ zIndex: 0,
7565
+ ...hoverMediaQuery({
7566
+ '&::before': {
7567
+ content: '""',
7568
+ position: 'absolute',
7569
+ inset: '-2px -4px',
7570
+ borderRadius: borderRadiusSmall,
7571
+ zIndex: -1,
7572
+ transition: getTransition('background-color'),
7573
+ },
7574
+ }),
7575
+ },
7576
+ ...hoverMediaQuery({
7577
+ [transformSelector('::slotted([role]:hover)::before')]: {
7578
+ ...frostedGlassStyle,
7579
+ background: hoverColor,
7580
+ },
7581
+ }),
7582
+ // basic invisible bar, that will be delayed via transition: visibility
7583
+ [transformSelector('::slotted([role])::after')]: {
7584
+ content: '""',
7585
+ visibility: 'hidden',
7586
+ },
7587
+ // visible bar for selected tab
7588
+ [transformSelector('::slotted([role][aria-selected="true"])::after')]: {
7589
+ ...barJssStyle,
7590
+ right: '0px',
7591
+ bottom: isHighContrastMode ? '-4px' : '-6px',
7592
+ visibility: 'visible',
7593
+ },
7594
+ // TODO: combine link-social-styles with link-button-styles and tabs-bar-styles
7595
+ [transformSelector('::slotted([role]:focus:focus-visible)::before')]: {
7596
+ border: `${borderWidthBase} solid ${focusColor}`,
7597
+ },
7598
+ [transformSelector('::slotted([role]:not(:last-child))')]: {
7599
+ marginRight: spacingStaticMedium,
7600
+ },
7601
+ }),
7602
+ },
7603
+ scroller: {
7604
+ ...textSmallStyle,
7605
+ fontWeight: getFontWeight(weight),
7606
+ ...buildResponsiveStyles(size, (s) => ({ fontSize: fontSizeText[s] })),
7607
+ },
7608
+ // conditionally applied and removed based on if activeTabIndex exists
7609
+ [scrollerAnimatedCssClass]: {
7610
+ ['& ' + transformSelector('::slotted([role][aria-selected="true"])::after')]: {
7611
+ transition: addImportantToRule(`visibility 0s linear ${barTransitionDuration}`), // bar appears after transition
7612
+ },
7613
+ },
7614
+ // moving bar
6258
7615
  bar: {
6259
- display: 'block',
6260
- position: 'absolute',
7616
+ ...barJssStyle,
6261
7617
  width: 0,
6262
- height: '2px',
6263
- left: 0,
6264
7618
  bottom: isHighContrastMode ? '0' : '-2px',
6265
- background: isHighContrastMode ? getHighContrastColors().canvasTextColor : primaryColor,
6266
- '&--enable-transition': {
6267
- willChange: 'width',
6268
- transition: `transform ${tabsTransitionDuration},width ${tabsTransitionDuration}`,
7619
+ visibility: 'visible',
7620
+ transition: `transform ${barTransitionDuration},width ${barTransitionDuration}`,
7621
+ animation: '$hide 0s .5s forwards', // auto hide bar after transition, needs to be a little longer in Safari
7622
+ },
7623
+ '@keyframes hide': {
7624
+ to: {
7625
+ visibility: 'hidden',
6269
7626
  },
6270
7627
  },
6271
7628
  });
@@ -6275,7 +7632,20 @@ const getComponentCss$b = (theme) => {
6275
7632
  const { primaryColor, focusColor } = getThemedColors(theme);
6276
7633
  return getCss({
6277
7634
  '@global': {
6278
- ':host': addImportantToEachRule(Object.assign(Object.assign({ display: 'block', position: 'relative', color: primaryColor }, hostHiddenStyles), { outline: 0, '&(:focus:focus-visible)::before': Object.assign(Object.assign({ content: '""', position: 'absolute' }, getInsetJssStyle(-4)), { border: `${borderWidthBase} solid ${focusColor}`, borderRadius: borderRadiusSmall }) })),
7635
+ ':host': addImportantToEachRule({
7636
+ display: 'block',
7637
+ position: 'relative',
7638
+ color: primaryColor,
7639
+ ...hostHiddenStyles,
7640
+ outline: 0,
7641
+ '&(:focus:focus-visible)::before': {
7642
+ content: '""',
7643
+ position: 'absolute',
7644
+ ...getInsetJssStyle(-4),
7645
+ border: `${borderWidthBase} solid ${focusColor}`,
7646
+ borderRadius: borderRadiusSmall,
7647
+ },
7648
+ }),
6279
7649
  },
6280
7650
  });
6281
7651
  };
@@ -6283,7 +7653,10 @@ const getComponentCss$b = (theme) => {
6283
7653
  const getComponentCss$a = () => {
6284
7654
  return getCss({
6285
7655
  '@global': {
6286
- ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
7656
+ ':host': {
7657
+ display: 'block',
7658
+ ...addImportantToEachRule(hostHiddenStyles),
7659
+ },
6287
7660
  },
6288
7661
  root: {
6289
7662
  marginBottom: '8px',
@@ -6293,7 +7666,13 @@ const getComponentCss$a = () => {
6293
7666
 
6294
7667
  const getTagFocusJssStyle = (themedColors) => {
6295
7668
  return {
6296
- '&:focus::before': Object.assign(Object.assign({ content: '""', position: 'absolute' }, getInsetJssStyle(-4)), { border: `${borderWidthBase} solid ${themedColors.focusColor}`, borderRadius: borderRadiusMedium }),
7669
+ '&:focus::before': {
7670
+ content: '""',
7671
+ position: 'absolute',
7672
+ ...getInsetJssStyle(-4),
7673
+ border: `${borderWidthBase} solid ${themedColors.focusColor}`,
7674
+ borderRadius: borderRadiusMedium,
7675
+ },
6297
7676
  '&:focus:not(:focus-visible)::before': {
6298
7677
  borderColor: 'transparent',
6299
7678
  },
@@ -6316,26 +7695,53 @@ const getComponentCss$9 = (color, hasLabel, theme) => {
6316
7695
  const themedColors = getThemedColors(theme);
6317
7696
  const { primaryColor, hoverColor, contrastHighColor } = themedColors;
6318
7697
  const backgroundColor = getThemedBackgroundColor(color, themedColors);
6319
- return getCss(Object.assign(Object.assign({ '@global': {
6320
- ':host': addImportantToEachRule(Object.assign({ display: 'inline-block', verticalAlign: 'top', outline: 0 }, hostHiddenStyles)),
6321
- button: Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', position: 'relative', alignItems: 'center', gap: '12px', minHeight: '54px', padding: '4px 0 4px 12px', borderRadius: borderRadiusSmall, border: 0, cursor: 'pointer', background: backgroundColor, color: primaryColor, textAlign: 'left' }, textSmallStyle), { outline: isHighContrastMode ? '1px solid transparent' : 0 }), getTagFocusJssStyle(themedColors)), hoverMediaQuery({
6322
- '&:hover > .icon': {
6323
- backgroundColor: hoverColor,
6324
- },
6325
- })),
6326
- } }, (hasLabel && {
6327
- label: {
6328
- display: 'block',
6329
- marginBottom: '-4px',
6330
- color: contrastHighColor,
6331
- fontSize: fontSizeTextXSmall,
7698
+ return getCss({
7699
+ '@global': {
7700
+ ':host': addImportantToEachRule({
7701
+ display: 'inline-block',
7702
+ verticalAlign: 'top',
7703
+ outline: 0,
7704
+ ...hostHiddenStyles,
7705
+ }),
7706
+ button: {
7707
+ display: 'flex',
7708
+ position: 'relative',
7709
+ alignItems: 'center',
7710
+ gap: '12px',
7711
+ minHeight: '54px',
7712
+ padding: '4px 0 4px 12px',
7713
+ borderRadius: borderRadiusSmall,
7714
+ border: 0,
7715
+ cursor: 'pointer',
7716
+ background: backgroundColor,
7717
+ color: primaryColor,
7718
+ textAlign: 'left',
7719
+ ...textSmallStyle,
7720
+ outline: isHighContrastMode ? '1px solid transparent' : 0,
7721
+ ...getTagFocusJssStyle(themedColors),
7722
+ ...hoverMediaQuery({
7723
+ '&:hover > .icon': {
7724
+ backgroundColor: hoverColor,
7725
+ },
7726
+ }),
7727
+ },
6332
7728
  },
6333
- })), { icon: {
7729
+ ...(hasLabel && {
7730
+ label: {
7731
+ display: 'block',
7732
+ marginBottom: '-4px',
7733
+ color: contrastHighColor,
7734
+ fontSize: fontSizeTextXSmall,
7735
+ },
7736
+ }),
7737
+ icon: {
6334
7738
  padding: '4px',
6335
7739
  marginRight: '10px',
6336
7740
  transition: getTransition('background-color'),
6337
7741
  borderRadius: borderRadiusSmall,
6338
- }, 'sr-only': getHiddenTextJssStyle() }));
7742
+ },
7743
+ 'sr-only': getHiddenTextJssStyle(),
7744
+ });
6339
7745
  };
6340
7746
 
6341
7747
  const getThemedBackgroundHoverColor = (tagColor, themedColors, theme) => {
@@ -6367,25 +7773,59 @@ const getComponentCss$8 = (tagColor, isFocusable, theme) => {
6367
7773
  const { primaryColor, backgroundColor, backgroundHoverColor } = getColors(themedColors, tagColor, theme);
6368
7774
  return getCss({
6369
7775
  '@global': {
6370
- ':host': Object.assign({ display: 'inline-flex', verticalAlign: 'top' }, addImportantToEachRule(hostHiddenStyles)),
6371
- span: Object.assign(Object.assign({ display: 'flex', gap: '2px', alignItems: 'center', position: 'relative', padding: '4px 9px', borderRadius: borderRadiusSmall, background: backgroundColor, color: primaryColor, font: textXSmallStyle.font, whiteSpace: 'nowrap' }, (isHighContrastMode && {
6372
- outline: '1px solid transparent',
6373
- })), (isFocusable &&
6374
- hoverMediaQuery({
6375
- transition: getTransition('background-color'),
6376
- '&:hover': {
6377
- background: backgroundHoverColor,
6378
- },
6379
- }))),
6380
- '::slotted': addImportantToEachRule(Object.assign(Object.assign({ '&(a),&(button)': Object.assign(Object.assign({}, getResetInitialStylesForSlottedAnchor), { display: 'inline', position: 'static', textDecoration: 'underline', cursor: 'pointer', font: 'inherit', outline: 0, color: 'inherit', appearance: 'none', margin: 0, padding: 0, background: 0, border: 0, textAlign: 'left' }) }, Object.entries(getTagFocusJssStyle(themedColors)).reduce((result, [key, value]) => {
6381
- result[key.replace(/^&([a-z:\-()]*)(::[a-z\-]+)$/, '&(a$1)$2, &(button$1)$2')] = value;
6382
- return result;
6383
- }, {})), { '&(br)': {
7776
+ ':host': {
7777
+ display: 'inline-flex',
7778
+ verticalAlign: 'top',
7779
+ whiteSpace: 'nowrap',
7780
+ ...addImportantToEachRule(hostHiddenStyles),
7781
+ },
7782
+ span: {
7783
+ display: 'flex',
7784
+ gap: '2px',
7785
+ alignItems: 'center',
7786
+ position: 'relative',
7787
+ padding: '4px 9px',
7788
+ borderRadius: borderRadiusSmall,
7789
+ background: backgroundColor,
7790
+ color: primaryColor,
7791
+ font: textXSmallStyle.font,
7792
+ ...(isHighContrastMode && {
7793
+ outline: '1px solid transparent',
7794
+ }),
7795
+ ...(isFocusable &&
7796
+ hoverMediaQuery({
7797
+ transition: getTransition('background-color'),
7798
+ '&:hover': {
7799
+ background: backgroundHoverColor,
7800
+ },
7801
+ })),
7802
+ },
7803
+ '::slotted': addImportantToEachRule({
7804
+ '&(a),&(button)': {
7805
+ ...getResetInitialStylesForSlottedAnchor,
7806
+ display: 'inline',
7807
+ position: 'static',
7808
+ textDecoration: 'underline',
7809
+ cursor: 'pointer',
7810
+ font: 'inherit',
7811
+ color: 'inherit',
7812
+ appearance: 'none',
7813
+ border: 0,
7814
+ textAlign: 'left',
7815
+ },
7816
+ // Transform selectors of getTagFocusJssStyle() to fit the ::slotted syntax
7817
+ ...Object.entries(getTagFocusJssStyle(themedColors)).reduce((result, [key, value]) => {
7818
+ result[key.replace(/^&([a-z:\-()]*)(::[a-z\-]+)$/, '&(a$1)$2, &(button$1)$2')] = value;
7819
+ return result;
7820
+ }, {}),
7821
+ '&(br)': {
6384
7822
  display: 'none',
6385
- } })),
7823
+ },
7824
+ }),
6386
7825
  },
6387
7826
  icon: {
6388
- marginLeft: '-2px', // optimize visual alignment
7827
+ marginLeft: '-2px',
7828
+ alignSelf: 'flex-start',
6389
7829
  },
6390
7830
  });
6391
7831
  };
@@ -6432,38 +7872,72 @@ const getComponentCss$7 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter
6432
7872
  const isSearchWithoutForm = isSearch && !isWithinForm;
6433
7873
  const isSearchWithForm = isSearch && isWithinForm;
6434
7874
  const isCalendarOrTimeWithCustomIndicator = showCustomCalendarOrTimeIndicator(isCalendar, isTime);
6435
- return getCss(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ '@global': Object.assign({ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(Object.assign({ [cssVariableInputPaddingLeft]: isSearchWithoutForm ? getInputPaddingHorizontal(1) : spacingStaticMedium, [cssVariableInputPaddingRight]: isSearchOrPassword || isCalendarOrTimeWithCustomIndicator
6436
- ? getInputPaddingHorizontal(isSearchWithForm ? 2 : 1)
6437
- : spacingStaticMedium }, hostHiddenStyles))) }, addImportantToEachRule(Object.assign(Object.assign({}, getBaseChildStyles('input', state, theme, Object.assign({ padding: `${spacingStaticSmall} var(${cssVariableInputPaddingRight}) ${spacingStaticSmall} var(${cssVariableInputPaddingLeft})` }, (isNumber && {
6438
- MozAppearance: 'textfield', // hides up/down spin button for Firefox
6439
- })))), { '::slotted': {
6440
- '&(input:-internal-autofill-selected),&(input:-internal-autofill-previewed),&(input:-webkit-autofill),&(input:-webkit-autofill:focus)': {
6441
- WebkitBackgroundClip: 'padding-box', // reset webkit autofill styles
7875
+ return getCss({
7876
+ '@global': {
7877
+ ':host': {
7878
+ display: 'block',
7879
+ ...addImportantToEachRule({
7880
+ [cssVariableInputPaddingLeft]: isSearchWithoutForm ? getInputPaddingHorizontal(1) : spacingStaticMedium,
7881
+ [cssVariableInputPaddingRight]: isSearchOrPassword || isCalendarOrTimeWithCustomIndicator
7882
+ ? getInputPaddingHorizontal(isSearchWithForm ? 2 : 1)
7883
+ : spacingStaticMedium,
7884
+ ...hostHiddenStyles,
7885
+ }),
7886
+ },
7887
+ ...addImportantToEachRule({
7888
+ ...getBaseChildStyles('input', state, theme, {
7889
+ padding: `${spacingStaticSmall} var(${cssVariableInputPaddingRight}) ${spacingStaticSmall} var(${cssVariableInputPaddingLeft})`,
7890
+ ...(isNumber && {
7891
+ MozAppearance: 'textfield', // hides up/down spin button for Firefox
7892
+ }),
7893
+ }),
7894
+ '::slotted': {
7895
+ '&(input:-internal-autofill-selected),&(input:-internal-autofill-previewed),&(input:-webkit-autofill),&(input:-webkit-autofill:focus)': {
7896
+ WebkitBackgroundClip: 'padding-box', // reset webkit autofill styles
7897
+ },
6442
7898
  },
6443
- } }))) }, ((isSearchOrPassword || isCalendarOrTimeWithCustomIndicator) && {
6444
- button: Object.assign(Object.assign({}, baseButtonOrIconStyles), { right: getButtonOrIconOffsetHorizontal(1),
6445
- // TODO: maybe we should render hidden button conditionally, needs to be checked if a11y compliant
6446
- '&:not([hidden]) ~ .button': {
6447
- right: getButtonOrIconOffsetHorizontal(2),
6448
- } }),
6449
- })), (isSearchWithoutForm && {
6450
- icon: Object.assign(Object.assign({}, baseButtonOrIconStyles), { left: getButtonOrIconOffsetHorizontal(1), pointerEvents: 'none' }),
6451
- })), { root: {
7899
+ }),
7900
+ },
7901
+ ...((isSearchOrPassword || isCalendarOrTimeWithCustomIndicator) && {
7902
+ button: {
7903
+ ...baseButtonOrIconStyles,
7904
+ right: getButtonOrIconOffsetHorizontal(1),
7905
+ // TODO: maybe we should render hidden button conditionally, needs to be checked if a11y compliant
7906
+ '&:not([hidden]) ~ .button': {
7907
+ right: getButtonOrIconOffsetHorizontal(2),
7908
+ },
7909
+ },
7910
+ }),
7911
+ ...(isSearchWithoutForm && {
7912
+ icon: {
7913
+ ...baseButtonOrIconStyles,
7914
+ left: getButtonOrIconOffsetHorizontal(1),
7915
+ pointerEvents: 'none',
7916
+ },
7917
+ }),
7918
+ root: {
6452
7919
  display: 'block',
6453
7920
  position: 'relative',
6454
- } }), getLabelStyles('input', isDisabled, hideLabel, state, theme, hasUnitOrVisibleCounter && {
6455
- unit: {
6456
- position: 'absolute',
6457
- bottom: '15px',
6458
- [unitPosition === 'suffix' ? 'right' : 'left']: 0,
6459
- zIndex: 1,
6460
- padding: unitPosition === 'suffix' ? `0 ${spacingStaticMedium} 0 10px` : `0 10px 0 ${spacingStaticMedium}`,
6461
- font: textSmallStyle.font,
6462
- color: contrastMediumColor,
6463
- },
6464
- })), getFunctionalComponentRequiredStyles()), getFunctionalComponentStateMessageStyles(theme, state)), {
7921
+ },
7922
+ ...getLabelStyles('input', isDisabled, hideLabel, state, theme, hasUnitOrVisibleCounter && {
7923
+ unit: {
7924
+ position: 'absolute',
7925
+ bottom: '15px',
7926
+ [unitPosition === 'suffix' ? 'right' : 'left']: 0,
7927
+ zIndex: 1,
7928
+ padding: unitPosition === 'suffix' ? `0 ${spacingStaticMedium} 0 10px` : `0 10px 0 ${spacingStaticMedium}`,
7929
+ font: textSmallStyle.font,
7930
+ color: contrastMediumColor,
7931
+ },
7932
+ }),
7933
+ ...getFunctionalComponentRequiredStyles(),
7934
+ ...getFunctionalComponentStateMessageStyles(theme, state),
6465
7935
  // TODO: could be made conditional if we had hasUnit
6466
- 'sr-only': Object.assign(Object.assign({}, getHiddenTextJssStyle()), { padding: 0 }) }));
7936
+ 'sr-only': {
7937
+ ...getHiddenTextJssStyle(),
7938
+ padding: 0,
7939
+ },
7940
+ });
6467
7941
  };
6468
7942
 
6469
7943
  /** @deprecated */
@@ -6481,24 +7955,42 @@ const getComponentCss$6 = (type, theme) => {
6481
7955
  const isOrderedList = isListTypeOrdered(type);
6482
7956
  return getCss({
6483
7957
  '@global': {
6484
- ':host': Object.assign({ display: 'block' }, addImportantToEachRule(Object.assign({ counterReset: counter }, hostHiddenStyles))),
6485
- 'ol,ul': Object.assign(Object.assign({}, textSmallStyle), { color: getThemedColors(theme).primaryColor, margin: 0, padding: `var(${cssVariablePaddingTop},0) 0 var(${cssVariablePaddingBottom},0) ${isOrderedList
7958
+ ':host': {
7959
+ display: 'block',
7960
+ ...addImportantToEachRule({
7961
+ counterReset: counter,
7962
+ ...hostHiddenStyles,
7963
+ }),
7964
+ },
7965
+ 'ol,ul': {
7966
+ ...textSmallStyle,
7967
+ color: getThemedColors(theme).primaryColor,
7968
+ margin: 0,
7969
+ padding: `var(${cssVariablePaddingTop},0) 0 var(${cssVariablePaddingBottom},0) ${isOrderedList
6486
7970
  ? `var(${cssVariableOrderedPaddingLeft},1.5rem)` // reserves space for ::before (root ordered list)
6487
7971
  : `var(${cssVariableUnorderedPaddingLeft},.375rem)` // reserves space for ::marker "•" (root unordered list)
6488
- }`, listStyleType: isOrderedList ? 'none' : `var(${cssVariableListStyleType},'•')` }),
7972
+ }`,
7973
+ listStyleType: isOrderedList ? 'none' : `var(${cssVariableListStyleType},'•')`, // custom ::marker char for root unordered list
7974
+ },
6489
7975
  // css selector for text-list-item
6490
- '::slotted(*)': addImportantToEachRule(Object.assign({ [cssVariablePaddingTop]: spacingStaticXSmall,
7976
+ '::slotted(*)': addImportantToEachRule({
7977
+ [cssVariablePaddingTop]: spacingStaticXSmall,
6491
7978
  // TODO: in case it's last root list item with a nested list it would result in outer spacing which is not desired
6492
- [cssVariablePaddingBottom]: spacingStaticMedium, [cssVariableOrderedPaddingLeft]: '2rem', [cssVariableUnorderedPaddingLeft]: '.625rem', [cssVariableListStyleType]: '"–"' }, (isOrderedList && {
6493
- '&::before': {
6494
- content: `counters(${counter},'.',${isListTypeNumbered(type) ? 'decimal' : 'lower-latin'}) var(${cssVariablePseudoSuffix},'.')`,
6495
- counterIncrement: counter,
6496
- position: 'absolute',
6497
- top: 0,
6498
- left: 0,
6499
- transform: 'translate(-100%,0)',
6500
- },
6501
- }))),
7979
+ [cssVariablePaddingBottom]: spacingStaticMedium,
7980
+ [cssVariableOrderedPaddingLeft]: '2rem',
7981
+ [cssVariableUnorderedPaddingLeft]: '.625rem',
7982
+ [cssVariableListStyleType]: '"–"',
7983
+ ...(isOrderedList && {
7984
+ '&::before': {
7985
+ content: `counters(${counter},'.',${isListTypeNumbered(type) ? 'decimal' : 'lower-latin'}) var(${cssVariablePseudoSuffix},'.')`,
7986
+ counterIncrement: counter,
7987
+ position: 'absolute',
7988
+ top: 0,
7989
+ left: 0,
7990
+ transform: 'translate(-100%,0)',
7991
+ },
7992
+ }),
7993
+ }),
6502
7994
  },
6503
7995
  });
6504
7996
  };
@@ -6506,7 +7998,15 @@ const getComponentCss$6 = (type, theme) => {
6506
7998
  const getComponentCss$5 = () => {
6507
7999
  return getCss({
6508
8000
  '@global': addImportantToEachRule({
6509
- ':host': Object.assign({ display: 'list-item', position: 'relative', font: 'inherit', color: 'inherit', listStyleType: 'inherit', paddingLeft: spacingStaticMedium }, hostHiddenStyles),
8001
+ ':host': {
8002
+ display: 'list-item',
8003
+ position: 'relative',
8004
+ font: 'inherit',
8005
+ color: 'inherit',
8006
+ listStyleType: 'inherit',
8007
+ paddingLeft: spacingStaticMedium,
8008
+ ...hostHiddenStyles,
8009
+ },
6510
8010
  '::slotted(*)': {
6511
8011
  [cssVariablePseudoSuffix]: '""', // don't show suffix "." for nested ordered list
6512
8012
  },
@@ -6527,7 +8027,10 @@ const sizeMap = {
6527
8027
  const getComponentCss$4 = (size, weight, align, color, ellipsis, theme) => {
6528
8028
  return getCss({
6529
8029
  '@global': {
6530
- ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
8030
+ ':host': {
8031
+ display: 'block',
8032
+ ...addImportantToEachRule(hostHiddenStyles),
8033
+ },
6531
8034
  '::slotted': {
6532
8035
  [TEXT_TAGS.map((i) => `&(${i})`).join()]: addImportantToEachRule(getTypographySlottedJssStyle()),
6533
8036
  },
@@ -6541,27 +8044,42 @@ const getComponentCss$4 = (size, weight, align, color, ellipsis, theme) => {
6541
8044
 
6542
8045
  const getComponentCss$3 = (isDisabled, hideLabel, state, hasCounter, theme) => {
6543
8046
  const { contrastMediumColor } = getThemedColors(theme);
6544
- return getCss(Object.assign(Object.assign(Object.assign(Object.assign({ '@global': Object.assign({ ':host': addImportantToEachRule(Object.assign({ display: 'block' }, hostHiddenStyles)) }, mergeDeep(addImportantToEachRule(getBaseChildStyles('textarea', state, theme, {
6545
- font: textSmallStyle.font,
6546
- padding: hasCounter ? `12px ${spacingStaticMedium} ${spacingStaticLarge}` : `12px ${spacingStaticMedium}`,
6547
- })), {
6548
- '::slotted(textarea)': {
6549
- height: 'auto',
6550
- minHeight: '200px',
6551
- resize: 'vertical', // overridable, too
6552
- },
6553
- })) }, getLabelStyles('textarea', isDisabled, hideLabel, state, theme, hasCounter && {
6554
- counter: {
6555
- position: 'absolute',
6556
- bottom: '6px',
6557
- right: '12px',
6558
- zIndex: 1,
6559
- font: textSmallStyle.font,
6560
- color: contrastMediumColor,
8047
+ return getCss({
8048
+ '@global': {
8049
+ ':host': addImportantToEachRule({
8050
+ display: 'block',
8051
+ ...hostHiddenStyles,
8052
+ }),
8053
+ ...mergeDeep(addImportantToEachRule(getBaseChildStyles('textarea', state, theme, {
8054
+ font: textSmallStyle.font,
8055
+ padding: hasCounter ? `12px ${spacingStaticMedium} ${spacingStaticLarge}` : `12px ${spacingStaticMedium}`,
8056
+ })), {
8057
+ '::slotted(textarea)': {
8058
+ height: 'auto',
8059
+ minHeight: '200px',
8060
+ resize: 'vertical', // overridable, too
8061
+ },
8062
+ }),
6561
8063
  },
6562
- })), getFunctionalComponentRequiredStyles()), getFunctionalComponentStateMessageStyles(theme, state)), (hasCounter && {
6563
- 'sr-only': Object.assign(Object.assign({}, getHiddenTextJssStyle()), { padding: 0 }),
6564
- })));
8064
+ ...getLabelStyles('textarea', isDisabled, hideLabel, state, theme, hasCounter && {
8065
+ counter: {
8066
+ position: 'absolute',
8067
+ bottom: '6px',
8068
+ right: '12px',
8069
+ zIndex: 1,
8070
+ font: textSmallStyle.font,
8071
+ color: contrastMediumColor,
8072
+ },
8073
+ }),
8074
+ ...getFunctionalComponentRequiredStyles(),
8075
+ ...getFunctionalComponentStateMessageStyles(theme, state),
8076
+ ...(hasCounter && {
8077
+ 'sr-only': {
8078
+ ...getHiddenTextJssStyle(),
8079
+ padding: 0,
8080
+ },
8081
+ }),
8082
+ });
6565
8083
  };
6566
8084
 
6567
8085
  const cssVariablePositionBottom = '--p-toast-position-bottom'; // CSS custom property exposed as public interface
@@ -6590,15 +8108,24 @@ const toastCloseClassName = 'close';
6590
8108
  const getComponentCss$1 = () => {
6591
8109
  return getCss({
6592
8110
  '@global': {
6593
- ':host': addImportantToEachRule(Object.assign({ position: 'fixed', left: gridExtendedOffsetBase, right: gridExtendedOffsetBase,
8111
+ ':host': addImportantToEachRule({
8112
+ position: 'fixed',
8113
+ left: gridExtendedOffsetBase,
8114
+ right: gridExtendedOffsetBase,
6594
8115
  // Needs a not overridable internal css variable to cover default position depending on viewport size and to handle animation properly.
6595
8116
  // In addition, a public css variable can be passed to overwrite the default position.
6596
- [cssVariablePositionBottomInternal]: `var(${cssVariablePositionBottom}, 56px)`, bottom: `var(${cssVariablePositionBottomInternal})`, maxWidth: '42rem', zIndex: TOAST_Z_INDEX, [getMediaQueryMin('s')]: {
8117
+ [cssVariablePositionBottomInternal]: `var(${cssVariablePositionBottom}, 56px)`,
8118
+ bottom: `var(${cssVariablePositionBottomInternal})`,
8119
+ maxWidth: '42rem',
8120
+ zIndex: TOAST_Z_INDEX,
8121
+ [getMediaQueryMin('s')]: {
6597
8122
  left: '64px',
6598
8123
  right: 'auto',
6599
8124
  [cssVariablePositionBottomInternal]: `var(${cssVariablePositionBottom}, 64px)`,
6600
8125
  bottom: `var(${cssVariablePositionBottomInternal})`,
6601
- } }, hostHiddenStyles)),
8126
+ },
8127
+ ...hostHiddenStyles,
8128
+ }),
6602
8129
  '@keyframes in': getKeyframesMobile('in', cssVariablePositionBottomInternal),
6603
8130
  '@keyframes out': getKeyframesMobile('out', cssVariablePositionBottomInternal),
6604
8131
  },
@@ -6614,20 +8141,35 @@ const getComponentCss$1 = () => {
6614
8141
  const getComponentCss = (size, theme) => {
6615
8142
  return getCss({
6616
8143
  '@global': {
6617
- ':host': Object.assign({ position: 'relative', display: 'inline-block', verticalAlign: 'top' }, addImportantToEachRule(Object.assign(Object.assign({ outline: 0, maxWidth: '100%', maxHeight: '100%', boxSizing: 'content-box' }, (size !== 'inherit' && {
6618
- height: 'clamp(0.63rem, 0.42vw + 0.5rem, 1rem)',
6619
- // workaround for Safari to optimize image rendering
6620
- '@supports (height: round(down, 1px, 1px))': {
6621
- height: 'round(down, clamp(0.63rem, 0.42vw + 0.5rem, 1rem), 1px)',
6622
- },
6623
- })), hostHiddenStyles))),
8144
+ ':host': {
8145
+ position: 'relative',
8146
+ display: 'inline-block',
8147
+ verticalAlign: 'top',
8148
+ ...addImportantToEachRule({
8149
+ outline: 0,
8150
+ maxWidth: '100%',
8151
+ maxHeight: '100%',
8152
+ boxSizing: 'content-box',
8153
+ ...(size !== 'inherit' && {
8154
+ height: 'clamp(0.63rem, 0.42vw + 0.5rem, 1rem)',
8155
+ // workaround for Safari to optimize image rendering
8156
+ '@supports (height: round(down, 1px, 1px))': {
8157
+ height: 'round(down, clamp(0.63rem, 0.42vw + 0.5rem, 1rem), 1px)',
8158
+ },
8159
+ }),
8160
+ ...hostHiddenStyles,
8161
+ }),
8162
+ },
6624
8163
  'a, svg': {
6625
8164
  display: 'block',
6626
8165
  maxWidth: '100%',
6627
8166
  maxHeight: '100%',
6628
8167
  height: 'inherit',
6629
8168
  },
6630
- a: Object.assign({ textDecoration: 'none' }, focusPseudoJssStyle),
8169
+ a: {
8170
+ textDecoration: 'none',
8171
+ ...focusPseudoJssStyle,
8172
+ },
6631
8173
  svg: {
6632
8174
  fill: isHighContrastMode ? getHighContrastColors().canvasTextColor : getThemedColors(theme).primaryColor,
6633
8175
  },