@porsche-design-system/components-react 3.2.0-rc.0 → 3.3.0-rc.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 -938
  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 -938
  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,87 +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
- gap: spacingStaticSmall,
4450
- transition: `transform ${carouselTransitionDuration}ms`,
4451
- }, bullet: Object.assign({ borderRadius: borderRadiusSmall, background: isHighContrastMode ? canvasTextColor : contrastMediumColor }, (isInfinitePagination
4452
- ? {
4453
- width: '0px',
4454
- height: '0px',
4455
- transition: `background-color ${carouselTransitionDuration}ms, width ${carouselTransitionDuration}ms, height ${carouselTransitionDuration}ms`,
4456
- }
4457
- : {
4458
- width: paginationBulletSize,
4459
- height: paginationBulletSize,
4460
- transition: `background-color ${carouselTransitionDuration}ms, width ${carouselTransitionDuration}ms`,
4461
- })) }, (isInfinitePagination && {
4462
- [`${paginationInfiniteStartCaseClass}`]: {
4463
- ['& > .bullet:nth-child(-n+4)']: {
4464
- width: paginationBulletSize,
4465
- height: paginationBulletSize,
4735
+ },
4736
+ },
4737
+ '&__list': {
4738
+ display: 'flex',
4739
+ ...getBackfaceVisibilityJssStyle(),
4466
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
4467
4747
  },
4468
- [`${bulletInfiniteClass}`]: Object.assign(Object.assign({}, addImportantToEachRule({
4469
- width: paginationInfiniteBulletSize,
4470
- height: paginationInfiniteBulletSize,
4471
- })), { '& ~ span': {
4472
- width: paginationBulletSize,
4473
- height: paginationBulletSize,
4474
- }, [`& ~ .${bulletInfiniteClass} ~ span`]: {
4475
- width: '0px',
4476
- height: '0px',
4477
- } }),
4478
- })), { [`${bulletActiveClass}`]: Object.assign({ background: isHighContrastMode ? canvasTextColor : primaryColor, height: paginationBulletSize, width: addImportantToRule(paginationActiveBulletSize) }, (isInfinitePagination && {
4479
- '& ~ span': {
4480
- 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',
4481
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
+ }),
4482
4781
  },
4483
- [`& ~ .${bulletInfiniteClass} ~ span`]: {
4484
- width: '0px',
4485
- 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
+ }),
4486
4819
  },
4487
- })) }))));
4820
+ }),
4821
+ });
4488
4822
  };
4489
4823
 
4490
4824
  const getThemedFormStateColors = (theme, state) => {
@@ -4505,7 +4839,14 @@ const getFunctionalComponentRequiredStyles = () => {
4505
4839
 
4506
4840
  const getFunctionalComponentStateMessageStyles = (theme, state) => {
4507
4841
  return {
4508
- 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
+ },
4509
4850
  };
4510
4851
  };
4511
4852
 
@@ -4522,9 +4863,14 @@ const getCheckboxRadioJssStyle = (hideLabel, state, isDisabled, isLoading, theme
4522
4863
  ? disabledColor
4523
4864
  : formStateColor || primaryColor;
4524
4865
  const checkedHoverColor = formStateHoverColor || contrastHighColor;
4525
- return Object.assign(Object.assign({ '@global': {
4526
- ':host': addImportantToEachRule(Object.assign(Object.assign({}, hostHiddenStyles), { display: 'block' })),
4527
- '::slotted': addImportantToEachRule(Object.assign({ '&(input)': {
4866
+ return {
4867
+ '@global': {
4868
+ ':host': addImportantToEachRule({
4869
+ ...hostHiddenStyles,
4870
+ display: 'block',
4871
+ }),
4872
+ '::slotted': addImportantToEachRule({
4873
+ '&(input)': {
4528
4874
  position: 'relative',
4529
4875
  width: fontLineHeight,
4530
4876
  height: fontLineHeight,
@@ -4542,31 +4888,53 @@ const getCheckboxRadioJssStyle = (hideLabel, state, isDisabled, isLoading, theme
4542
4888
  border: `2px solid ${uncheckedColor}`,
4543
4889
  outline: 0,
4544
4890
  cursor: disabledOrLoading ? 'not-allowed' : 'pointer',
4545
- }, '&(input:checked)': {
4891
+ },
4892
+ '&(input:checked)': {
4546
4893
  // background-image is merged in later
4547
4894
  borderColor: checkedColor,
4548
4895
  backgroundColor: checkedColor,
4549
- } }, (!disabledOrLoading && Object.assign(Object.assign({}, (!isHighContrastMode &&
4550
- hoverMediaQuery({
4551
- '&(input:hover), .text:hover ~ &(input)': {
4552
- borderColor: uncheckedHoverColor,
4553
- },
4554
- '&(input:checked:hover), .text:hover ~ &(input:checked)': {
4555
- borderColor: checkedHoverColor,
4556
- backgroundColor: checkedHoverColor,
4557
- },
4558
- }))), (!isDisabled && {
4559
- '&(input:focus)::before': Object.assign(Object.assign({ content: '""', position: 'absolute' }, getInsetJssStyle(-6)), { border: `${borderWidthBase} solid ${focusColor}` }),
4560
- '&(input:focus:not(:focus-visible))::before': {
4561
- borderColor: 'transparent',
4562
4896
  },
4563
- }))))),
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
+ }),
4564
4921
  label: {
4565
4922
  position: 'relative',
4566
4923
  display: 'flex',
4567
4924
  alignItems: 'flex-start',
4568
4925
  },
4569
- }, 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
+ };
4570
4938
  };
4571
4939
 
4572
4940
  const getInlineSVGBackgroundImage = (path) => {
@@ -4581,33 +4949,41 @@ const getComponentCss$S = (hideLabel, state, isDisabled, isLoading, theme) => {
4581
4949
  const indeterminateIconColor = isHighContrastMode
4582
4950
  ? canvasColor
4583
4951
  : getThemedColors(theme).primaryColor.replace(/#/g, '%23');
4584
- return getCss(mergeDeep(getCheckboxRadioJssStyle(hideLabel, state, isDisabled, isLoading, theme), Object.assign({ '@global': {
4585
- '::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)': {
4586
4956
  borderRadius: borderRadiusSmall,
4587
- } }, (!isLoading && {
4588
- '&(input:checked)': {
4589
- 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"/>`),
4590
4957
  },
4591
- })), { '&(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)': {
4592
4964
  backgroundImage: getInlineSVGBackgroundImage(`<path fill="${indeterminateIconColor}" d="m20,11v2H4v-2h16Z"/>`),
4593
- } }), (!isDisabled && {
4594
- '&(input:focus)::before': {
4595
- borderRadius: borderRadiusMedium,
4596
4965
  },
4597
- }))),
4598
- } }, (isLoading && {
4599
- spinner: {
4600
- position: 'absolute',
4601
- top: `calc(${fontLineHeight}/2 + 2px)`,
4602
- left: `calc(${fontLineHeight}/2 + 2px)`,
4603
- transform: 'translate(-50%, -50%)',
4604
- height: fontLineHeight,
4605
- width: fontLineHeight,
4606
- fontFamily,
4607
- fontSize: '1rem',
4608
- cursor: 'not-allowed',
4966
+ ...(!isDisabled && {
4967
+ '&(input:focus)::before': {
4968
+ borderRadius: borderRadiusMedium,
4969
+ },
4970
+ }),
4971
+ }),
4609
4972
  },
4610
- }))));
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
+ }));
4611
4987
  };
4612
4988
 
4613
4989
  const widthMap = {
@@ -4618,21 +4994,27 @@ const widthMap = {
4618
4994
  const getComponentCss$R = (width) => {
4619
4995
  return getCss({
4620
4996
  '@global': {
4621
- ':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
+ }),
4622
5017
  },
4623
- root: Object.assign({ minWidth: 0 }, (['full', 'fluid'].includes(width)
4624
- ? {
4625
- padding: `0 ${gridFullOffset}`,
4626
- }
4627
- : {
4628
- padding: `0 ${widthMap[width].base}`,
4629
- [getMediaQueryMin('s')]: {
4630
- padding: `0 ${widthMap[width].s}`,
4631
- },
4632
- [getMediaQueryMin('xxl')]: {
4633
- padding: `0 ${widthMap[width].xxl}`,
4634
- },
4635
- })),
4636
5018
  });
4637
5019
  };
4638
5020
 
@@ -4651,8 +5033,23 @@ const getDimensionStyle = {
4651
5033
  const getComponentCss$Q = () => {
4652
5034
  return getCss({
4653
5035
  '@global': {
4654
- ':host': Object.assign({ position: 'relative', display: 'inline-block', verticalAlign: 'top' }, addImportantToEachRule(Object.assign(Object.assign({ outline: 0, boxSizing: 'content-box' }, getDimensionStyle), hostHiddenStyles))),
4655
- 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
+ },
4656
5053
  picture: {
4657
5054
  display: 'block',
4658
5055
  width: `min(${width}px, 100%)`,
@@ -4672,12 +5069,23 @@ const getComponentCss$Q = () => {
4672
5069
  const DISPLAY_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
4673
5070
 
4674
5071
  const getTypographyRootJssStyle = (baseTextStyle, responsiveStyle, align, color, ellipsis, theme) => {
4675
- 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 && {
4676
- maxWidth: '100%',
4677
- overflow: 'hidden',
4678
- textOverflow: 'ellipsis',
4679
- whiteSpace: 'nowrap',
4680
- })), 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
+ };
4681
5089
  };
4682
5090
  const getTypographySlottedJssStyle = () => {
4683
5091
  return {
@@ -4707,7 +5115,10 @@ const sizeMap$4 = {
4707
5115
  const getComponentCss$P = (size, align, color, ellipsis, theme) => {
4708
5116
  return getCss({
4709
5117
  '@global': {
4710
- ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
5118
+ ':host': {
5119
+ display: 'block',
5120
+ ...addImportantToEachRule(hostHiddenStyles),
5121
+ },
4711
5122
  '::slotted': {
4712
5123
  [DISPLAY_TAGS.map((i) => `&(${i})`).join()]: addImportantToEachRule(getTypographySlottedJssStyle()),
4713
5124
  },
@@ -4727,38 +5138,80 @@ const getComponentCss$O = (color, orientation, theme) => {
4727
5138
  };
4728
5139
  return getCss({
4729
5140
  '@global': {
4730
- ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
4731
- 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
+ },
4732
5153
  },
4733
5154
  });
4734
5155
  };
4735
5156
 
4736
5157
  const getComponentCss$N = (state, labelSize, hasLabel, theme) => {
4737
- 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: {
4738
5165
  margin: 0,
4739
5166
  padding: 0,
4740
5167
  border: 'none',
4741
- } }, (hasLabel && {
4742
- legend: Object.assign({ margin: `0 0 ${spacingStaticMedium}`, padding: 0, color: getThemedColors(theme).primaryColor }, (labelSize === 'small' ? headingSmallStyle : headingMediumStyle)),
4743
- })) }, getFunctionalComponentRequiredStyles()), mergeDeep(getFunctionalComponentStateMessageStyles(theme, state), {
4744
- message: {
4745
- 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
+ }),
4746
5177
  },
4747
- })));
5178
+ ...getFunctionalComponentRequiredStyles(),
5179
+ ...mergeDeep(getFunctionalComponentStateMessageStyles(theme, state), {
5180
+ message: {
5181
+ marginTop: spacingStaticMedium,
5182
+ },
5183
+ }),
5184
+ });
4748
5185
  };
4749
5186
 
4750
5187
  const getComponentCss$M = (state, labelSize, hasLabel, theme) => {
4751
- 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: {
4752
5195
  margin: 0,
4753
5196
  padding: 0,
4754
5197
  border: 'none',
4755
- } }, (hasLabel && {
4756
- legend: Object.assign({ margin: `0 0 ${spacingStaticMedium}`, padding: 0, color: getThemedColors(theme).primaryColor }, (labelSize === 'small' ? headingSmallStyle : headingMediumStyle)),
4757
- })) }, getFunctionalComponentRequiredStyles()), mergeDeep(getFunctionalComponentStateMessageStyles(theme, state), {
4758
- message: {
4759
- 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
+ }),
4760
5207
  },
4761
- })));
5208
+ ...getFunctionalComponentRequiredStyles(),
5209
+ ...mergeDeep(getFunctionalComponentStateMessageStyles(theme, state), {
5210
+ message: {
5211
+ marginTop: spacingStaticMedium,
5212
+ },
5213
+ }),
5214
+ });
4762
5215
  };
4763
5216
 
4764
5217
  const flexItemWidths = {
@@ -4774,17 +5227,21 @@ const flexItemWidths = {
4774
5227
  const getComponentCss$L = (width, offset, alignSelf, grow, shrink, flex) => {
4775
5228
  return getCss({
4776
5229
  '@global': {
4777
- ':host': addImportantToEachRule(Object.assign(Object.assign({ boxSizing: 'border-box' }, hostHiddenStyles), mergeDeep(buildResponsiveStyles(width, (widthResponsive) => ({
4778
- width: `${flexItemWidths[widthResponsive]}%`,
4779
- })), buildResponsiveStyles(offset, (offsetResponsive) => ({
4780
- marginLeft: `${flexItemWidths[offsetResponsive]}%`,
4781
- })), buildResponsiveStyles(alignSelf, (alignSelfResponsive) => ({
4782
- alignSelf: alignSelfResponsive,
4783
- })), flex !== 'initial' // flex shorthand conflicts with grow and shrink, which means even default grow or shrink props would override flex
4784
- ? buildResponsiveStyles(flex, (flexResponsive) => ({
4785
- flex: flexResponsive === 'equal' ? '1 1 0' : flexResponsive,
4786
- }))
4787
- : 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
+ }),
4788
5245
  },
4789
5246
  });
4790
5247
  };
@@ -4823,56 +5280,108 @@ const getComponentCss$J = (isOpen, position, hasHeader, hasFooter, hasSubFooter,
4823
5280
  const contentPadding = `${spacingStaticMedium} ${spacingFluidLarge} ${spacingStaticMedium} ${spacingFluidLarge}`;
4824
5281
  const shadowColor = isThemeDark(theme) ? flyoutBoxShadowColorDark : flyoutBoxShadowColor;
4825
5282
  const transparentColor = isThemeDark(theme) ? 'rgba(14, 14, 18, 0)' : 'rgba(255, 255, 255, 0)';
4826
- return getCss(Object.assign(Object.assign(Object.assign(Object.assign({ '@global': addImportantToEachRule({
4827
- ':host': Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', position: 'fixed', zIndex: FLYOUT_Z_INDEX }, (isOpen
4828
- ? {
4829
- visibility: 'inherit',
4830
- }
4831
- : {
4832
- visibility: 'hidden',
4833
- transition: `visibility 0s linear ${flyoutTransitionDuration}`,
4834
- })), getInsetJssStyle()), getFrostedGlassBackgroundJssStyles(isOpen, flyoutTransitionDuration)), hostHiddenStyles),
4835
- }), header: Object.assign(Object.assign({ display: 'flex' }, (hasHeader && {
4836
- flexDirection: 'row-reverse',
4837
- })), { justifyContent: 'flex-end', background: backgroundColor, position: 'sticky', top: 0 }), [`${headerShadowClass}`]: {
4838
- boxShadow: `${isThemeDark(theme) ? flyoutBoxShadowColorDark : flyoutBoxShadowColor} 0px 5px 10px`,
4839
- } }, (hasHeader && {
4840
- 'header-content': {
4841
- flex: 'auto',
4842
- padding: `${spacingStaticMedium} 0 ${spacingStaticMedium} ${spacingFluidLarge}`,
4843
- },
4844
- })), { dismiss: Object.assign({ margin: spacingStaticMedium, height: 'fit-content', border: `2px solid ${backgroundColor}`, borderRadius: '4px', background: backgroundColor }, hoverMediaQuery({
4845
- '&:hover': {
4846
- background: darkThemeContrastHighColor,
4847
- borderColor: darkThemeContrastHighColor,
4848
- },
4849
- })), root: Object.assign(Object.assign({ color: primaryColor, display: 'flex', flexDirection: 'column', position: 'relative', [isPositionLeft ? 'marginRight' : 'marginLeft']: 'auto', boxSizing: 'border-box' }, (hasSubFooter && {
4850
- overflowY: 'auto',
4851
- overscrollBehaviorY: 'none',
4852
- })), { 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 && {
4853
- overflowY: 'auto',
4854
- WebkitOverflowScrolling: 'touch',
4855
- 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})`,
4856
- backgroundPosition: 'bottom center, top center, bottom center, top center',
4857
- backgroundRepeat: 'no-repeat',
4858
- backgroundSize: '100% 20px, 100% 20px, 100% 10px, 100% 10px',
4859
- backgroundAttachment: 'local, local, scroll, scroll',
4860
- overscrollBehaviorY: 'none',
4861
- })) }), (hasFooter && {
4862
- 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',
4863
5308
  background: backgroundColor,
4864
- padding: contentPadding,
4865
5309
  position: 'sticky',
4866
- 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
+ }),
4867
5333
  },
4868
- [`${footerShadowClass}`]: {
4869
- 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)`,
4870
5353
  },
4871
- })), (hasSubFooter && {
4872
- ['sub-footer']: {
5354
+ content: {
4873
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
+ }),
4874
5367
  },
4875
- })));
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
+ });
4876
5385
  };
4877
5386
 
4878
5387
  const gutter$1 = `calc(${gridGap} / 2)`;
@@ -4882,12 +5391,18 @@ const gridItemWidths = [
4882
5391
  const getComponentCss$I = (size, offset) => {
4883
5392
  return getCss({
4884
5393
  '@global': {
4885
- ':host': addImportantToEachRule(Object.assign(Object.assign({ paddingLeft: gutter$1, paddingRight: gutter$1, boxSizing: 'border-box' }, hostHiddenStyles), mergeDeep(buildResponsiveStyles(size, (sizeResponsive) => ({
4886
- width: `${gridItemWidths[sizeResponsive]}%`,
4887
- minWidth: `${gridItemWidths[sizeResponsive]}%`,
4888
- })), buildResponsiveStyles(offset, (offsetResponsive) => ({
4889
- marginLeft: `${gridItemWidths[offsetResponsive]}%`,
4890
- }))))),
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
+ }),
4891
5406
  },
4892
5407
  });
4893
5408
  };
@@ -4896,7 +5411,15 @@ const gutter = `calc(${gridGap} / -2)`;
4896
5411
  const getComponentCss$H = (direction, wrap) => {
4897
5412
  return getCss({
4898
5413
  '@global': {
4899
- ':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
+ }),
4900
5423
  },
4901
5424
  });
4902
5425
  };
@@ -4911,7 +5434,10 @@ const sizeMap$3 = {
4911
5434
  const getComponentCss$G = (size, align, color, ellipsis, theme) => {
4912
5435
  return getCss({
4913
5436
  '@global': {
4914
- ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
5437
+ ':host': {
5438
+ display: 'block',
5439
+ ...addImportantToEachRule(hostHiddenStyles),
5440
+ },
4915
5441
  '::slotted': {
4916
5442
  [HEADING_TAGS.map((i) => `&(${i})`).join()]: addImportantToEachRule(getTypographySlottedJssStyle()),
4917
5443
  },
@@ -4943,11 +5469,13 @@ const headlineSizeMap = {
4943
5469
  'headline-5': fontSizeHeadingSmall,
4944
5470
  };
4945
5471
  const getHeadlineVariantJssStyle = (variant) => {
4946
- return Object.assign({}, (variant === 'large-title'
4947
- ? displayMediumStyle
4948
- : {
4949
- fontSize: headlineSizeMap[variant],
4950
- }));
5472
+ return {
5473
+ ...(variant === 'large-title'
5474
+ ? displayMediumStyle
5475
+ : {
5476
+ fontSize: headlineSizeMap[variant],
5477
+ }),
5478
+ };
4951
5479
  };
4952
5480
  const textSizeMap = {
4953
5481
  'xx-small': fontSizeTextXXSmall,
@@ -4965,7 +5493,10 @@ const getTextSizeJssStyle = (textSize) => {
4965
5493
  const getComponentCss$F = (variant, align, color, ellipsis, theme) => {
4966
5494
  return getCss({
4967
5495
  '@global': {
4968
- ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
5496
+ ':host': {
5497
+ display: 'block',
5498
+ ...addImportantToEachRule(hostHiddenStyles),
5499
+ },
4969
5500
  '::slotted': {
4970
5501
  [HEADLINE_TAGS.map((i) => `&(${i})`).join()]: addImportantToEachRule(getTypographySlottedJssStyle()),
4971
5502
  },
@@ -5047,23 +5578,42 @@ const getComponentCss$E = (color, size, theme) => {
5047
5578
  const isSizeInherit = size === 'inherit';
5048
5579
  const isDark = isThemeDark(theme);
5049
5580
  return getCss({
5050
- '@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 &&
5051
- getSchemedHighContrastMediaQuery({
5052
- filter: filter.light[color],
5053
- }, {
5054
- filter: filter.dark[color],
5055
- }))), { WebkitAnimation: `${isDark ? `${keyFramesDark}-${color}` : `${keyFramesLight}-${color}`} 1ms` }))), (isSizeInherit
5056
- ? {
5057
- width: size,
5058
- height: size,
5059
- }
5060
- : {
5061
- width: fontLineHeight,
5062
- height: fontLineHeight,
5063
- font: `${sizeMap$2[size]} ${fontFamily}`,
5064
- })) }, (!isColorInherit && {
5065
- [`@keyframes ${isDark ? `${keyFramesDark}-${color}` : `${keyFramesLight}-${color}`}`]: forceRerenderAnimationStyle,
5066
- })),
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
+ },
5067
5617
  });
5068
5618
  };
5069
5619
 
@@ -5081,14 +5631,23 @@ const getBackgroundColor = (state, theme) => {
5081
5631
  return colorMap[state];
5082
5632
  };
5083
5633
  const getNotificationRootJssStyle = (state, hasAction, hasClose, theme) => {
5084
- return Object.assign(Object.assign({ display: 'grid',
5634
+ return {
5635
+ display: 'grid',
5085
5636
  // 2 columns for content and optional close button
5086
- gridTemplateColumns: `minmax(auto, 1fr)${hasClose ? ' auto' : ''}`, gap: spacingStaticMedium, placeItems: 'start', padding: spacingStaticMedium, background: getBackgroundColor(state, theme), borderRadius: borderRadiusSmall }, (isHighContrastMode && {
5087
- outline: '1px solid transparent',
5088
- })), { [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]: {
5089
5647
  // 4 columns are for icon, content, optional action button and optional close button
5090
5648
  gridTemplateColumns: `auto minmax(auto, 1fr)${hasAction ? ' auto' : ''}${hasClose ? ' auto' : ''}`,
5091
- } });
5649
+ },
5650
+ };
5092
5651
  };
5093
5652
  const getNotificationIconJssStyle = () => ({
5094
5653
  [mediaQueryMaxS$1]: {
@@ -5106,36 +5665,60 @@ const getNotificationContentJssStyle = () => ({
5106
5665
 
5107
5666
  const mediaQueryMaxS = getMediaQueryMax('s');
5108
5667
  const getComponentCss$D = (state, hasAction, hasClose, theme) => {
5109
- return getCss(Object.assign({ '@global': {
5110
- ':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
+ }),
5111
5674
  h5: headingSmallStyle,
5112
5675
  p: textSmallStyle,
5113
5676
  'h5,p': {
5114
5677
  margin: 0,
5115
5678
  color: getThemedColors(theme).primaryColor,
5116
5679
  },
5117
- }, icon: getNotificationIconJssStyle(), content: getNotificationContentJssStyle() }, (hasAction && {
5118
- action: {
5119
- [mediaQueryMaxS]: {
5120
- gridRowStart: 2,
5121
- },
5122
5680
  },
5123
- })));
5681
+ icon: getNotificationIconJssStyle(),
5682
+ content: getNotificationContentJssStyle(),
5683
+ ...(hasAction && {
5684
+ action: {
5685
+ [mediaQueryMaxS]: {
5686
+ gridRowStart: 2,
5687
+ },
5688
+ },
5689
+ }),
5690
+ });
5124
5691
  };
5125
5692
 
5126
5693
  const getComponentCss$C = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme) => {
5127
5694
  const { focusColor } = getThemedColors(theme);
5128
- 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 && {
5129
5700
  '@global': addImportantToEachRule({
5130
5701
  '::slotted': {
5131
- '&(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
+ },
5132
5708
  // The clickable area for Safari < ~15 (<= release date: 2021-10-28) is reduced to the slotted anchor itself,
5133
5709
  // since Safari prior to this major release does not support pseudo-elements in the slotted context
5134
5710
  // (https://bugs.webkit.org/show_bug.cgi?id=178237)
5135
- '&(a)::before': Object.assign({ content: '""', position: 'fixed', top: offsetVertical, bottom: offsetVertical, borderRadius: borderRadiusSmall }, buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
5136
- right: hideLabelValue ? offsetVertical : offsetHorizontal,
5137
- left: hideLabelValue ? offsetVertical : offsetHorizontal,
5138
- }))),
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
+ },
5139
5722
  '&(a:focus)::before': {
5140
5723
  border: `${borderWidthBase} solid ${focusColor}`,
5141
5724
  },
@@ -5144,25 +5727,35 @@ const getComponentCss$C = (icon, iconSource, active, stretch, size, hideLabel, a
5144
5727
  },
5145
5728
  },
5146
5729
  }),
5147
- })), { root: {
5148
- textDecoration: underline ? 'underline' : 'none',
5149
- } })));
5730
+ }));
5150
5731
  };
5151
5732
 
5152
5733
  const getComponentCss$B = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, theme) => {
5153
5734
  const { focusColor } = getThemedColors(theme);
5154
5735
  const { linkColor } = getHighContrastColors();
5155
- return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, false, hasSlottedAnchor, theme), Object.assign({}, (hasSlottedAnchor && Object.assign(Object.assign({}, (isHighContrastMode && {
5156
- root: {
5157
- borderColor: linkColor,
5158
- },
5159
- })), { '@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({
5160
5743
  '::slotted': {
5161
- '&(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
+ },
5162
5750
  // The clickable area for Safari < ~15 (<= release date: 2021-10-28) is reduced to the slotted anchor itself,
5163
5751
  // since Safari prior to this major release does not support pseudo-elements in the slotted context
5164
5752
  // (https://bugs.webkit.org/show_bug.cgi?id=178237)
5165
- '&(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
+ },
5166
5759
  // TODO: combine link-social-styles with link-button-styles and tabs-bar-styles
5167
5760
  '&(a::-moz-focus-inner)': {
5168
5761
  border: 0,
@@ -5174,7 +5767,8 @@ const getComponentCss$B = (icon, iconSource, variant, hideLabel, hasSlottedAncho
5174
5767
  border: 0,
5175
5768
  },
5176
5769
  },
5177
- }) })))));
5770
+ }),
5771
+ }));
5178
5772
  };
5179
5773
 
5180
5774
  // array is redefined instead of using the one from in model-signature
@@ -5183,23 +5777,60 @@ const LINK_TILE_MODEL_SIGNATURE_HEADING_TAGS = ['h2', 'h3', 'h4', 'h5', 'h6'];
5183
5777
 
5184
5778
  const getComponentCss$A = (aspectRatio, weight, direction, hasDescription) => {
5185
5779
  const tileBaseStyles = getTileBaseStyles(aspectRatio);
5186
- 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(',')]: {
5187
5785
  margin: addImportantToRule(0),
5188
- } }), 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: {
5189
5796
  position: 'absolute',
5190
5797
  top: spacingFluidMedium,
5191
5798
  left: spacingFluidMedium,
5192
- }, heading: Object.assign(Object.assign({ margin: 0 }, textLargeStyle), buildResponsiveStyles(weight, (w) => ({ fontWeight: getFontWeight(w) }))) }), (hasDescription && {
5193
- description: Object.assign({ margin: '-12px 0 0 ' }, textSmallStyle),
5194
- })), { 'link-group': Object.assign({ display: 'flex', width: '100%', gap: spacingFluidSmall }, buildResponsiveStyles(direction, getGroupDirectionJssStyles)), 'link-overlay': Object.assign({
5195
- // covers entire tile, used for expanded click-area only
5196
- position: 'fixed' }, getInsetJssStyle()) }));
5197
- };
5198
-
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
+
5199
5825
  const getComponentCss$z = (...args) => {
5200
- return getCss(Object.assign(Object.assign({}, getButtonLinkTileStyles(...args)), { 'link-overlay': Object.assign({
5826
+ return getCss({
5827
+ ...getButtonLinkTileStyles(...args),
5828
+ 'link-overlay': {
5201
5829
  // covers entire tile, used for expanded click-area only
5202
- position: 'fixed' }, getInsetJssStyle()) }));
5830
+ position: 'fixed',
5831
+ ...getInsetJssStyle(),
5832
+ },
5833
+ });
5203
5834
  };
5204
5835
 
5205
5836
  const baseSizes = {
@@ -5215,10 +5846,29 @@ const baseSizes = {
5215
5846
  const getComponentCss$y = (size) => {
5216
5847
  return getCss({
5217
5848
  '@global': {
5218
- ':host': Object.assign({ position: 'relative', display: 'inline-flex', verticalAlign: 'top' }, addImportantToEachRule(Object.assign({ outline: 0 }, hostHiddenStyles))),
5219
- a: Object.assign({ display: 'block', textDecoration: 'none' }, focusPseudoJssStyle),
5220
- picture: Object.assign({ display: 'block' }, (size === 'responsive'
5221
- ? 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
+ },
5222
5872
  img: {
5223
5873
  display: 'block',
5224
5874
  width: '100%',
@@ -5264,41 +5914,67 @@ const isFullscreenForXl = (fullscreen) => {
5264
5914
  };
5265
5915
  const getSlottedJssStyle = (marginValue, hasHeader, hasDismissButton) => {
5266
5916
  const marginPx = `${-marginValue}px`;
5267
- return Object.assign(Object.assign({ [`&(.${stretchToFullModalWidthClassName})`]: {
5917
+ return {
5918
+ [`&(.${stretchToFullModalWidthClassName})`]: {
5268
5919
  width: `calc(100% + ${marginValue * 2}px)`,
5269
5920
  margin: `0 ${marginPx}`,
5270
- } }, (!hasHeader && {
5271
- [`&(.${stretchToFullModalWidthClassName}:first-child)`]: {
5272
- marginTop: hasDismissButton ? pxToRemWithUnit(-marginValue) : marginPx,
5273
5921
  },
5274
- })), { [`&(.${stretchToFullModalWidthClassName}:last-child)`]: {
5922
+ ...(!hasHeader && {
5923
+ [`&(.${stretchToFullModalWidthClassName}:first-child)`]: {
5924
+ marginTop: hasDismissButton ? pxToRemWithUnit(-marginValue) : marginPx,
5925
+ },
5926
+ }),
5927
+ [`&(.${stretchToFullModalWidthClassName}:last-child)`]: {
5275
5928
  marginBottom: marginPx,
5276
- } });
5929
+ },
5930
+ };
5277
5931
  };
5278
5932
  const getComponentCss$x = (isOpen, isFullscreen, hasDismissButton, hasHeader) => {
5279
5933
  const isFullscreenForXlAndXxl = isFullscreenForXl(isFullscreen);
5280
5934
  const duration = isOpen ? '.6s' : '.2s';
5281
- return getCss(Object.assign(Object.assign({ '@global': {
5282
- ':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
5283
- ? {
5284
- visibility: 'inherit',
5285
- }
5286
- : {
5287
- visibility: 'hidden',
5288
- transition: 'visibility 0s linear .2s',
5289
- })), hostHiddenStyles), getFrostedGlassBackgroundJssStyles(isOpen, duration)))), { overflowY: 'auto' }),
5290
- '::slotted': addImportantToEachRule(Object.assign({}, mergeDeep(getSlottedJssStyle(32, hasHeader, hasDismissButton), buildResponsiveStyles(isFullscreen, (fullscreenValue) => ({
5291
- [`&(.${stretchToFullModalWidthClassName}`]: {
5292
- '&:first-child)': {
5293
- borderRadius: fullscreenValue ? 0 : '8px 8px 0 0',
5294
- },
5295
- '&:last-child)': {
5296
- 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
+ },
5297
5968
  },
5298
- },
5299
- }))))),
5300
- h2: Object.assign(Object.assign({}, headingLargeStyle), { margin: 0, color: lightThemePrimaryColor }),
5301
- }, root: mergeDeep({
5969
+ }))),
5970
+ }),
5971
+ h2: {
5972
+ ...headingLargeStyle,
5973
+ margin: 0,
5974
+ color: lightThemePrimaryColor,
5975
+ },
5976
+ },
5977
+ root: mergeDeep({
5302
5978
  position: 'relative',
5303
5979
  boxSizing: 'border-box',
5304
5980
  transform: isOpen ? 'scale3d(1,1,1)' : 'scale3d(.9,.9,1)',
@@ -5307,25 +5983,46 @@ const getComponentCss$x = (isOpen, isFullscreen, hasDismissButton, hasHeader) =>
5307
5983
  padding: hasDismissButton ? `${pxToRemWithUnit(32)} 32px 32px 32px` : '32px',
5308
5984
  background: backgroundColor,
5309
5985
  outline: isHighContrastMode ? '1px solid transparent' : 0,
5310
- '&: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
+ },
5311
5997
  '&:not(:focus-visible)::before': {
5312
5998
  border: 0,
5313
5999
  },
5314
6000
  [mediaQueryXl]: {
5315
6001
  margin: isFullscreenForXlAndXxl ? 0 : `min(192px, 10vh) ${gridExtendedOffsetBase}`,
5316
6002
  },
5317
- }, buildResponsiveStyles(isFullscreen, getFullscreenJssStyles)) }, (hasHeader && {
5318
- header: {
5319
- padding: '0 0 8px',
5320
- },
5321
- })), (hasDismissButton && {
5322
- dismiss: Object.assign({ position: 'absolute', top: '8px', right: '8px', border: `2px solid ${backgroundColor}`, borderRadius: '4px', background: backgroundColor }, hoverMediaQuery({
5323
- '&:hover': {
5324
- background: darkThemeContrastHighColor,
5325
- 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
+ }),
5326
6023
  },
5327
- })),
5328
- })));
6024
+ }),
6025
+ });
5329
6026
  };
5330
6027
 
5331
6028
  const modelSignatureHeight = 36;
@@ -5349,18 +6046,37 @@ const getComponentCss$w = (size, color, theme) => {
5349
6046
  const isColorInherit = color === 'inherit';
5350
6047
  return getCss({
5351
6048
  '@global': {
5352
- ':host': Object.assign({ display: 'inline-block', verticalAlign: 'top' }, addImportantToEachRule(Object.assign(Object.assign({ maxWidth: '100%', maxHeight: '100%' }, (!isSizeInherit && {
5353
- width: 'inherit',
5354
- height: 'inherit',
5355
- // TODO: we need a width map of all signatures to ensure same fluid behavior like implemented fro crest + wordmark
5356
- maxHeight: `${modelSignatureHeight}px`,
5357
- })), hostHiddenStyles))),
5358
- img: Object.assign(Object.assign({ display: 'block', maxWidth: '100%', maxHeight: '100%', pointerEvents: 'none' }, (!isColorInherit && Object.assign({ filter: colorToFilterMap[theme][color] }, (isHighContrastMode &&
5359
- getSchemedHighContrastMediaQuery({
5360
- filter: colorToFilterMap.light[color],
5361
- }, {
5362
- filter: colorToFilterMap.dark[color],
5363
- }))))), (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
+ },
5364
6080
  },
5365
6081
  });
5366
6082
  };
@@ -5377,10 +6093,18 @@ const getComponentCss$v = (maxNumberOfPageLinks, theme) => {
5377
6093
  const { primaryColor, disabledColor, hoverColor, focusColor } = getThemedColors(theme);
5378
6094
  return getCss({
5379
6095
  '@global': {
5380
- ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
5381
- nav: Object.assign({ display: 'flex', justifyContent: 'center', userSelect: 'none' }, buildResponsiveStyles(maxNumberOfPageLinks, (n) => ({
5382
- counterReset: `size ${n}`,
5383
- }))),
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
+ },
5384
6108
  ul: {
5385
6109
  display: 'flex',
5386
6110
  gap: spacingStaticXSmall,
@@ -5401,13 +6125,53 @@ const getComponentCss$v = (maxNumberOfPageLinks, theme) => {
5401
6125
  },
5402
6126
  },
5403
6127
  },
5404
- 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({
5405
- '&:not([aria-disabled]):not(.ellipsis):hover': Object.assign(Object.assign({}, frostedGlassStyle), { background: hoverColor }),
5406
- })), { '&: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
+ },
5407
6168
  },
5408
- ellipsis: Object.assign(Object.assign({}, disabledCursorStyle), { '&::after': {
6169
+ ellipsis: {
6170
+ ...disabledCursorStyle,
6171
+ '&::after': {
5409
6172
  content: '"…"',
5410
- } }),
6173
+ },
6174
+ },
5411
6175
  });
5412
6176
  };
5413
6177
 
@@ -5481,16 +6245,52 @@ const getComponentCss$u = (direction, theme) => {
5481
6245
  const { hoverColor, focusColor } = getThemedColors(theme);
5482
6246
  return getCss({
5483
6247
  '@global': {
5484
- ':host': Object.assign(Object.assign({}, addImportantToEachRule(Object.assign({ position: 'relative', display: 'inline-block' }, hostHiddenStyles))), { verticalAlign: 'top' }),
5485
- p: Object.assign(Object.assign({}, textSmallStyle), { margin: 0 }),
5486
- 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({
5487
- transition: getTransition('background-color'),
5488
- '&:hover': Object.assign(Object.assign({}, frostedGlassStyle), { backgroundColor: hoverColor }),
5489
- })), { '&::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': {
5490
6288
  borderColor: focusColor,
5491
- }, '&:focus:not(:focus-visible)::before': {
6289
+ },
6290
+ '&:focus:not(:focus-visible)::before': {
5492
6291
  borderColor: 'transparent',
5493
- } }),
6292
+ },
6293
+ },
5494
6294
  },
5495
6295
  label: getHiddenTextJssStyle(),
5496
6296
  icon: {
@@ -5509,11 +6309,31 @@ const getComponentCss$u = (direction, theme) => {
5509
6309
  pointerEvents: 'none',
5510
6310
  animation: '240ms $fadeIn ease forwards'
5511
6311
  ,
5512
- '&::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
+ }),
5513
6336
  },
5514
- 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 && {
5515
- outline: `1px solid ${canvasTextColor}`,
5516
- })),
5517
6337
  '@keyframes fadeIn': {
5518
6338
  from: {
5519
6339
  opacity: 0,
@@ -5531,15 +6351,19 @@ const getComponentCss$t = (hideLabel, state, isDisabled, theme) => {
5531
6351
  : getInvertedThemedColors(theme).primaryColor.replace(/#/g, '%23');
5532
6352
  return getCss(mergeDeep(getCheckboxRadioJssStyle(hideLabel, state, isDisabled, false, theme), {
5533
6353
  '@global': {
5534
- '::slotted': addImportantToEachRule(Object.assign({ '&(input)': {
6354
+ '::slotted': addImportantToEachRule({
6355
+ '&(input)': {
5535
6356
  borderRadius: '50%',
5536
- }, '&(input:checked)': {
6357
+ },
6358
+ '&(input:checked)': {
5537
6359
  backgroundImage: getInlineSVGBackgroundImage(`<circle fill="${checkedIconColor}" cx="12" cy="12" r="6"/>`),
5538
- } }, (!isDisabled && {
5539
- '&(input:focus)::before': {
5540
- borderRadius: '50%',
5541
6360
  },
5542
- }))),
6361
+ ...(!isDisabled && {
6362
+ '&(input:focus)::before': {
6363
+ borderRadius: '50%',
6364
+ },
6365
+ }),
6366
+ }),
5543
6367
  },
5544
6368
  }));
5545
6369
  };
@@ -5583,11 +6407,35 @@ const getComponentCss$s = (gradientColor, isNextHidden, isPrevHidden, scrollIndi
5583
6407
  };
5584
6408
  return getCss({
5585
6409
  '@global': {
5586
- ':host': addImportantToEachRule(Object.assign({ display: 'block', height: 'inherit' }, hostHiddenStyles)),
5587
- 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({
5588
- transition: getTransition('background-color'),
5589
- '&:hover': Object.assign(Object.assign({}, frostedGlassStyle), { background: hoverColor }),
5590
- })),
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
+ },
5591
6439
  },
5592
6440
  root: {
5593
6441
  display: 'grid',
@@ -5595,14 +6443,19 @@ const getComponentCss$s = (gradientColor, isNextHidden, isPrevHidden, scrollIndi
5595
6443
  margin: '0 -4px',
5596
6444
  height: 'inherit',
5597
6445
  },
5598
- 'scroll-area': Object.assign({ gridArea: '1 / 1 / 1 / -1', padding: '4px', overflow: 'auto hidden' }, (!hasScrollbar && {
5599
- // If scrollbar is disabled - hide scrollbar
5600
- msOverflowStyle: 'none' /* IE and Edge */,
5601
- scrollbarWidth: 'none' /* Firefox */,
5602
- '&::-webkit-scrollbar': {
5603
- display: 'none',
5604
- },
5605
- })),
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
+ },
5606
6459
  // Extra wrapper needed to compensate different offset parent calculation depending on browser.
5607
6460
  // Needed for position of status bar.
5608
6461
  'scroll-wrapper': {
@@ -5612,7 +6465,14 @@ const getComponentCss$s = (gradientColor, isNextHidden, isPrevHidden, scrollIndi
5612
6465
  minWidth: '100%',
5613
6466
  verticalAlign: 'top',
5614
6467
  outline: 0,
5615
- '&::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
+ },
5616
6476
  '&:focus::before': {
5617
6477
  borderColor: focusColor,
5618
6478
  },
@@ -5633,12 +6493,36 @@ const getComponentCss$s = (gradientColor, isNextHidden, isPrevHidden, scrollIndi
5633
6493
  right: 0,
5634
6494
  },
5635
6495
  },
5636
- '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({
5637
- visibility: isPrevHidden ? 'hidden' : 'visible',
5638
- })) }),
5639
- '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({
5640
- visibility: isNextHidden ? 'hidden' : 'visible',
5641
- })) }),
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
+ },
5642
6526
  });
5643
6527
  };
5644
6528
 
@@ -5655,35 +6539,77 @@ const getColors$2 = (isDisabled, isSelected, theme) => {
5655
6539
  hoverBorderColor: primaryColor,
5656
6540
  };
5657
6541
  };
5658
- 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) => {
5659
6544
  const { focusColor } = getThemedColors(theme);
5660
6545
  const { buttonColor, labelColor, borderColor, hoverBorderColor } = getColors$2(isDisabled, isSelected, theme);
5661
6546
  return getCss({
5662
6547
  '@global': {
5663
- ':host': addImportantToEachRule(Object.assign({ display: 'block', outline: 0 }, hostHiddenStyles)),
5664
- 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': {
5665
6576
  borderColor: focusColor,
5666
- }, '&:focus:not(:focus-visible)::before': {
6577
+ },
6578
+ '&:focus:not(:focus-visible)::before': {
5667
6579
  borderColor: 'transparent',
5668
- } }), (isDisabled
5669
- ? {
5670
- cursor: 'not-allowed',
5671
- }
5672
- : Object.assign({ cursor: 'pointer' }, (!isSelected &&
5673
- hoverMediaQuery({
5674
- transition: getTransition('border-color'),
5675
- '&:hover': {
5676
- borderColor: hoverBorderColor,
5677
- },
5678
- }))))),
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
+ },
5679
6596
  // label
5680
- span: Object.assign(Object.assign({ display: 'block' }, textXSmallStyle), { overflowWrap: 'normal', color: labelColor }),
5681
- },
5682
- icon: {
5683
- height: ICON_SIZE,
5684
- width: ICON_SIZE,
5685
- marginRight: ICON_MARGIN,
6597
+ span: {
6598
+ display: 'block',
6599
+ ...textXSmallStyle,
6600
+ overflowWrap: 'normal',
6601
+ color: labelColor,
6602
+ },
5686
6603
  },
6604
+ ...(hasIcon && {
6605
+ icon: {
6606
+ height: ICON_SIZE,
6607
+ width: ICON_SIZE,
6608
+ ...(hasSlottedContent && {
6609
+ marginRight: ICON_MARGIN,
6610
+ }),
6611
+ },
6612
+ }),
5687
6613
  });
5688
6614
  };
5689
6615
 
@@ -5693,7 +6619,13 @@ const getComponentCss$q = (maxWidth) => {
5693
6619
  maxWidth = (maxWidth > MAX_ITEM_WIDTH && MAX_ITEM_WIDTH) || (maxWidth < MIN_ITEM_WIDTH && MIN_ITEM_WIDTH) || maxWidth;
5694
6620
  return getCss({
5695
6621
  '@global': {
5696
- ':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
+ }),
5697
6629
  },
5698
6630
  });
5699
6631
  };
@@ -5701,71 +6633,131 @@ const getComponentCss$q = (maxWidth) => {
5701
6633
  const getBaseChildStyles = (child, state, theme, additionalDefaultJssStyle) => {
5702
6634
  const { primaryColor, contrastLowColor, contrastMediumColor, disabledColor } = getThemedColors(theme);
5703
6635
  const { formStateColor, formStateHoverColor } = getThemedFormStateColors(theme, state);
5704
- 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'
5705
6641
  ? `calc(${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2)` // we need 10px additionally so input height becomes 54px
5706
- : '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({
5707
- // with the media query the selector has higher priority and overrides disabled styles
5708
- [`::slotted(${child}:not(:disabled):not(:focus):not([readonly]):hover)`]: {
5709
- 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,
5710
6656
  },
5711
- })), { [`::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)`]: {
5712
6664
  borderColor: primaryColor,
5713
- }, [`::slotted(${child}:disabled)`]: {
6665
+ },
6666
+ [`::slotted(${child}:disabled)`]: {
5714
6667
  cursor: 'not-allowed',
5715
6668
  color: disabledColor,
5716
6669
  borderColor: disabledColor,
5717
6670
  WebkitTextFillColor: disabledColor,
5718
- } }), (child !== 'select' && {
5719
- [`::slotted(${child}[readonly])`]: {
5720
- borderColor: contrastLowColor,
5721
- background: contrastLowColor,
5722
6671
  },
5723
- }));
6672
+ ...(child !== 'select' && {
6673
+ [`::slotted(${child}[readonly])`]: {
6674
+ borderColor: contrastLowColor,
6675
+ background: contrastLowColor,
6676
+ },
6677
+ }),
6678
+ };
5724
6679
  };
5725
6680
  const getLabelStyles = (child, isDisabled, hideLabel, state, theme, counterOrUnitOrIconStyles) => {
5726
6681
  const { primaryColor, disabledColor, contrastHighColor } = getThemedColors(theme);
5727
6682
  const { formStateHoverColor } = getThemedFormStateColors(theme, state);
5728
6683
  const counterOrUnitOrIconStylesKey = counterOrUnitOrIconStyles && Object.keys(counterOrUnitOrIconStyles)[0];
5729
- return Object.assign({ label: {
6684
+ return {
6685
+ label: {
5730
6686
  display: 'flex',
5731
6687
  flexDirection: 'column',
5732
6688
  gap: spacingStaticXSmall,
5733
6689
  position: 'relative',
5734
- '&__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 && {
5735
- color: contrastHighColor,
5736
- })) }), hoverMediaQuery({
5737
- '&:hover': {
5738
- [`&~::slotted(${child}:not(:disabled):not(:focus):not([readonly]))` +
5739
- (formStateHoverColor ? `,::slotted(${child}:not(:disabled):not(:focus):not([readonly]):hover)` : '')]: {
5740
- borderColor: addImportantToRule(formStateHoverColor || primaryColor),
5741
- },
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
+ }),
5742
6702
  },
5743
- })),
5744
- } }, (counterOrUnitOrIconStyles && {
5745
- [counterOrUnitOrIconStylesKey]: Object.assign(Object.assign(Object.assign({}, counterOrUnitOrIconStyles[counterOrUnitOrIconStylesKey]), { pointerEvents: 'none' }), (isDisabled && {
5746
- color: disabledColor,
5747
- cursor: 'not-allowed',
5748
- })),
5749
- }));
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
+ };
5750
6724
  };
5751
6725
 
5752
6726
  const OPTION_HEIGHT = 40; // optgroups are higher and ignored
5753
6727
  const getComponentCss$p = (isDisabled, hasCustomDropdown, hideLabel, state, theme) => {
5754
- 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: {
5755
6743
  display: 'block',
5756
6744
  position: 'relative',
5757
- } }, getLabelStyles('select', isDisabled, hideLabel, state, theme, {
5758
- icon: {
5759
- position: 'absolute',
5760
- bottom: '13px',
5761
- right: '15px',
5762
- transform: 'rotate3d(0,0,1,0.0001deg)',
5763
- transition: getTransition('transform'),
5764
- '&--open': {
5765
- transform: 'rotate3d(0,0,1,180deg)',
5766
- },
5767
6745
  },
5768
- })), 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
+ });
5769
6761
  };
5770
6762
 
5771
6763
  const dropdownPositionVar = '--p-internal-dropdown-position';
@@ -5775,19 +6767,36 @@ const getButtonStyles = (direction, isOpen, state, theme) => {
5775
6767
  const isDirectionDown = direction === 'down';
5776
6768
  return {
5777
6769
  '@global': {
5778
- 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': {
5779
6784
  borderColor: primaryColor,
5780
- } }, hoverMediaQuery({
5781
- '&:not(:disabled):not(:focus):hover': {
5782
- borderColor: isOpen ? primaryColor : formStateHoverColor || primaryColor,
5783
6785
  },
5784
- })), { '&:disabled': {
6786
+ ...hoverMediaQuery({
6787
+ '&:not(:disabled):not(:focus):hover': {
6788
+ borderColor: isOpen ? primaryColor : formStateHoverColor || primaryColor,
6789
+ },
6790
+ }),
6791
+ '&:disabled': {
5785
6792
  cursor: 'not-allowed',
5786
6793
  borderColor: disabledColor,
5787
- } }), (isOpen && {
5788
- [isDirectionDown ? 'borderBottomLeftRadius' : 'borderTopLeftRadius']: 0,
5789
- [isDirectionDown ? 'borderBottomRightRadius' : 'borderTopRightRadius']: 0,
5790
- })),
6794
+ },
6795
+ ...(isOpen && {
6796
+ [isDirectionDown ? 'borderBottomLeftRadius' : 'borderTopLeftRadius']: 0,
6797
+ [isDirectionDown ? 'borderBottomRightRadius' : 'borderTopRightRadius']: 0,
6798
+ }),
6799
+ },
5791
6800
  },
5792
6801
  };
5793
6802
  };
@@ -5801,28 +6810,63 @@ const getFilterStyles = (direction, isOpen, state, disabled, theme) => {
5801
6810
  };
5802
6811
  return {
5803
6812
  '@global': {
5804
- 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': {
5805
6838
  opacity: 1,
5806
6839
  '&+span, &~ ul': {
5807
6840
  borderColor: primaryColor,
5808
6841
  },
5809
- } }), hoverMediaQuery({
5810
- '&:not(:disabled)': {
5811
- '&+span:hover': {
5812
- borderColor: isOpen ? primaryColor : formStateHoverColor || primaryColor,
5813
- },
5814
- '&:hover': {
5815
- '&+span, &~ul': {
6842
+ },
6843
+ ...hoverMediaQuery({
6844
+ '&:not(:disabled)': {
6845
+ '&+span:hover': {
5816
6846
  borderColor: isOpen ? primaryColor : formStateHoverColor || primaryColor,
5817
6847
  },
6848
+ '&:hover': {
6849
+ '&+span, &~ul': {
6850
+ borderColor: isOpen ? primaryColor : formStateHoverColor || primaryColor,
6851
+ },
6852
+ },
5818
6853
  },
5819
- },
5820
- })), { '&+span': Object.assign(Object.assign(Object.assign({
6854
+ }),
6855
+ '&+span': {
5821
6856
  // for focus outline and clicking arrow since input ends left of the icon
5822
- position: 'absolute' }, getInsetJssStyle()), { transition: getTransition('border-color'), pointerEvents: 'all', cursor: disabled ? 'not-allowed' : 'pointer', border: `${borderWidthBase} solid ${isOpen ? primaryColor : formStateColor || contrastMediumColor}`, borderRadius: borderRadiusSmall }), (isOpen && {
5823
- [isDirectionDown ? 'borderBottomLeftRadius' : 'borderTopLeftRadius']: 0,
5824
- [isDirectionDown ? 'borderBottomRightRadius' : 'borderTopRightRadius']: 0,
5825
- })) }),
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
+ },
5826
6870
  },
5827
6871
  };
5828
6872
  };
@@ -5832,29 +6876,74 @@ const getListStyles = (direction, theme) => {
5832
6876
  const { highlightColor } = getHighContrastColors();
5833
6877
  return {
5834
6878
  '@global': {
5835
- 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
5836
- ? ['borderBottomLeftRadius', 'borderBottomRightRadius']
5837
- : ['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)' }),
5838
- },
5839
- 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]': {
5840
- cursor: 'not-allowed',
5841
- }, '&__sr': getHiddenTextJssStyle() }, hoverMediaQuery({
5842
- '&:not([aria-disabled]):not([role=status]):hover': {
5843
- color: isHighContrastMode ? highlightColor : primaryColor,
5844
- 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
5845
6906
  },
5846
- })), { '&--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': {
5847
6932
  color: isHighContrastMode ? highlightColor : primaryColor,
5848
6933
  background: backgroundSurfaceColor,
5849
- }, '&--selected': {
6934
+ },
6935
+ '&--selected': {
5850
6936
  cursor: 'default',
5851
6937
  pointerEvents: 'none',
5852
- }, '&--disabled': {
6938
+ },
6939
+ '&--disabled': {
5853
6940
  cursor: 'not-allowed',
5854
6941
  color: disabledColor,
5855
- }, '&--hidden': {
6942
+ },
6943
+ '&--hidden': {
5856
6944
  display: 'none',
5857
- } }),
6945
+ },
6946
+ },
5858
6947
  optgroup: {
5859
6948
  display: 'block',
5860
6949
  padding: '3px 14px',
@@ -5875,13 +6964,24 @@ const getComponentCss$o = (direction, isOpen, state, disabled, filter, theme) =>
5875
6964
  // merge because of global styles
5876
6965
  mergeDeep({
5877
6966
  '@global': {
5878
- ':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 &&
5879
- !isHighContrastMode &&
5880
- hoverMediaQuery({
5881
- '&(:hover)': {
5882
- color: formStateHoverColor || primaryColor,
5883
- },
5884
- }))),
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
+ },
5885
6985
  },
5886
6986
  'sr-text': {
5887
6987
  display: 'none',
@@ -5907,7 +7007,11 @@ const getComponentCss$n = (size, theme) => {
5907
7007
  const { canvasColor, canvasTextColor } = getHighContrastColors();
5908
7008
  return getCss({
5909
7009
  '@global': {
5910
- ':host': addImportantToEachRule(Object.assign({ display: 'inline-flex', verticalAlign: 'top' }, hostHiddenStyles)),
7010
+ ':host': addImportantToEachRule({
7011
+ display: 'inline-flex',
7012
+ verticalAlign: 'top',
7013
+ ...hostHiddenStyles,
7014
+ }),
5911
7015
  svg: {
5912
7016
  display: 'block',
5913
7017
  position: 'relative',
@@ -5952,14 +7056,21 @@ const getComponentCss$n = (size, theme) => {
5952
7056
  },
5953
7057
  },
5954
7058
  },
5955
- 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
+ },
5956
7067
  'sr-only': getHiddenTextJssStyle(),
5957
7068
  });
5958
7069
  };
5959
7070
 
5960
7071
  const getSVGPath = (stepCount, numberedCircleColors, isStateCurrent) => {
5961
7072
  // # of the hexcolor starts a fragment identifier in URLs, so we have to replace it with the escaped value of # = %23
5962
- 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') }), {});
5963
7074
  const { disabledColor, invertedBaseColor, primaryColor } = numberedCircleColors;
5964
7075
  const fillColor = isStateCurrent ? invertedBaseColor : disabledColor;
5965
7076
  const svgCirclePath = `<circle fill="${isStateCurrent ? primaryColor : 'none'}"${isStateCurrent ? '' : ` stroke="${fillColor}"`} stroke-width="1px" cx="12" cy="12" r="9"/>`;
@@ -5984,47 +7095,98 @@ const getComponentCss$m = (state, disabled, theme) => {
5984
7095
  const isStateCurrent = state === 'current';
5985
7096
  const isStateCurrentOrUndefined = !state || isStateCurrent;
5986
7097
  const isDisabled = !state || disabled;
5987
- return getCss(Object.assign(Object.assign({ '@global': {
5988
- ':host': Object.assign(Object.assign({}, (isStateCurrentOrUndefined &&
5989
- Array.from(Array(9)).reduce((result, _, i) => (Object.assign(Object.assign({}, result), { [`&(:nth-of-type(${i + 1})) $button::before`]: {
5990
- backgroundImage: getInlineSVGBackgroundImage(getSVGPath(i, {
5991
- primaryColor,
5992
- invertedBaseColor: getInvertedThemedColors(theme).primaryColor,
5993
- disabledColor,
5994
- }, isStateCurrent)),
5995
- } })), {}))), addImportantToEachRule(Object.assign(Object.assign({ fontSize: 'inherit' }, hostHiddenStyles), { '&(:not(:last-of-type))': {
5996
- margin: `0 ${spacingFluidXSmall} 0 0`,
5997
- } }))),
5998
- 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 &&
5999
- hoverMediaQuery({
6000
- transition: getTransition('background-color'),
6001
- '&:hover': Object.assign(Object.assign({}, frostedGlassStyle), { background: hoverColor }),
6002
- }))), (isStateCurrentOrUndefined && {
6003
- // counter
6004
- // Pseudo element is needed to center the counter to the text, as it is not working optimal directly on the button
6005
- '&::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': {
6006
7156
  content: '""',
6007
- height: fontLineHeight,
6008
- width: fontLineHeight,
7157
+ position: 'absolute',
7158
+ ...getInsetJssStyle(),
7159
+ border: `${borderWidthBase} solid ${focusColor}`,
7160
+ borderRadius: borderRadiusSmall,
6009
7161
  },
6010
- })), { '&: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': {
6011
7163
  borderColor: 'transparent',
6012
- } }),
6013
- } }, (!isStateCurrentOrUndefined && {
6014
- // complete / warning icons via icon component
6015
- icon: {
6016
- height: fontLineHeight,
6017
- width: fontLineHeight,
7164
+ },
7165
+ },
6018
7166
  },
6019
- })), { '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
+ });
6020
7176
  };
6021
7177
 
6022
7178
  const getComponentCss$l = (size) => {
6023
7179
  return getCss({
6024
7180
  '@global': {
6025
- ':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] })),
6026
7189
  },
6027
- scroller: Object.assign(Object.assign({}, textSmallStyle), buildResponsiveStyles(size, (s) => ({ fontSize: fontSizeText[s] }))),
6028
7190
  });
6029
7191
  };
6030
7192
 
@@ -6059,22 +7221,55 @@ const getColors$1 = (checked, disabled, loading, theme) => {
6059
7221
  const getComponentCss$k = (alignLabel, hideLabel, stretch, checked, disabled, loading, theme) => {
6060
7222
  const { buttonBorderColor, buttonBorderColorHover, buttonBackgroundColor, buttonBackgroundColorHover, toggleBackgroundColor, toggleBackgroundColorHover, textColor, } = getColors$1(checked, disabled, loading, theme);
6061
7223
  const { focusColor } = getThemedColors(theme);
6062
- return getCss(Object.assign(Object.assign({ '@global': {
6063
- ':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' })))))),
6064
- }, 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) => ({
6065
- justifyContent: stretchValue ? 'space-between' : 'flex-start',
6066
- }))), (!isDisabledOrLoading(disabled, loading) &&
6067
- hoverMediaQuery({
6068
- '&:hover .switch': {
6069
- borderColor: buttonBorderColorHover,
6070
- backgroundColor: buttonBackgroundColorHover,
6071
- '& .toggle': {
6072
- 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
+ },
6073
7259
  },
6074
- },
6075
- }))), { '&: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': {
6076
7269
  borderColor: 'transparent',
6077
- } }), switch: {
7270
+ },
7271
+ },
7272
+ switch: {
6078
7273
  position: 'relative',
6079
7274
  width: '48px',
6080
7275
  height: '28px',
@@ -6085,7 +7280,8 @@ const getComponentCss$k = (alignLabel, hideLabel, stretch, checked, disabled, lo
6085
7280
  backgroundColor: buttonBackgroundColor,
6086
7281
  cursor: isDisabledOrLoading(disabled, loading) ? 'not-allowed' : 'pointer',
6087
7282
  transition: `${getTransition('background-color')},${getTransition('border-color')},${getTransition('color')}`,
6088
- }, toggle: {
7283
+ },
7284
+ toggle: {
6089
7285
  position: 'absolute',
6090
7286
  top: '2px',
6091
7287
  left: '2px',
@@ -6096,23 +7292,36 @@ const getComponentCss$k = (alignLabel, hideLabel, stretch, checked, disabled, lo
6096
7292
  backgroundColor: toggleBackgroundColor,
6097
7293
  transform: `translate3d(${checked ? '20px' : '0'}, 0, 0)`,
6098
7294
  transition: `${getTransition('background-color')},${getTransition('transform')}`,
6099
- } }, (loading && {
6100
- spinner: {
6101
- position: 'absolute',
6102
- top: '-4px',
6103
- left: '-4px',
6104
- width: '28px',
6105
- height: '28px',
6106
7295
  },
6107
- })), { label: Object.assign(Object.assign(Object.assign({}, textSmallStyle), { paddingTop: '2px', minWidth: 0, minHeight: 0, color: textColor }), mergeDeep(buildResponsiveStyles(alignLabel, (alignLabelValue) => ({
6108
- order: alignLabelValue === 'left' ? -1 : 0,
6109
- })), 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
+ });
6110
7316
  };
6111
7317
 
6112
7318
  const getComponentCss$j = () => {
6113
7319
  return getCss({
6114
7320
  '@global': {
6115
- ':host': addImportantToEachRule(Object.assign({ display: 'table-row-group' }, hostHiddenStyles)),
7321
+ ':host': addImportantToEachRule({
7322
+ display: 'table-row-group',
7323
+ ...hostHiddenStyles,
7324
+ }),
6116
7325
  },
6117
7326
  });
6118
7327
  };
@@ -6120,7 +7329,16 @@ const getComponentCss$j = () => {
6120
7329
  const getComponentCss$i = (multiline) => {
6121
7330
  return getCss({
6122
7331
  '@global': {
6123
- ':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
+ },
6124
7342
  },
6125
7343
  });
6126
7344
  };
@@ -6137,13 +7355,24 @@ const getComponentCss$h = (theme) => {
6137
7355
  const { primaryColor, hoverColor, contrastLowColor } = doGetThemedColors(theme);
6138
7356
  return getCss({
6139
7357
  '@global': {
6140
- ':host': addImportantToEachRule(Object.assign(Object.assign(Object.assign({ display: 'block' }, textSmallStyle), { color: primaryColor, textAlign: 'left' }), hostHiddenStyles)),
6141
- '::slotted(*)': addImportantToEachRule(Object.assign({ [cssVariableTableHoverColor]: hoverColor, [cssVariableTableBorderColor]: contrastLowColor, [cssVariableTableHeadCellIconFilter]: isThemeDark(theme) ? 'invert(100%)' : 'none' }, (isHighContrastMode &&
6142
- getSchemedHighContrastMediaQuery({
6143
- [cssVariableTableHeadCellIconFilter]: 'none',
6144
- }, {
6145
- [cssVariableTableHeadCellIconFilter]: 'invert(100%)',
6146
- })))),
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
+ }),
6147
7376
  },
6148
7377
  caption: {
6149
7378
  marginBottom: spacingFluidMedium,
@@ -6162,48 +7391,91 @@ const buttonBeforeOffsetVertical = '-2px';
6162
7391
  const buttonBeforeOffsetHorizontal = '-4px';
6163
7392
  const getComponentCss$g = (active, direction, hideLabel, multiline) => {
6164
7393
  const sortable = isSortable(active, direction);
6165
- 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
6166
- ? {
6167
- 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': {
6168
- content: '""',
6169
- position: 'absolute',
6170
- top: buttonBeforeOffsetVertical,
6171
- bottom: buttonBeforeOffsetVertical,
6172
- right: buttonBeforeOffsetHorizontal,
6173
- left: buttonBeforeOffsetHorizontal,
6174
- borderRadius: borderRadiusSmall,
6175
- zIndex: -1,
6176
- transition: getTransition('background-color'),
6177
- } }, hoverMediaQuery({
6178
- '&:hover, &:focus': {
6179
- '& .icon': {
6180
- 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,
6181
7449
  },
6182
7450
  },
6183
- '&:hover::before': Object.assign(Object.assign({}, frostedGlassStyle), { backgroundColor: hoverColor }),
6184
- })), { '&:focus::before': {
6185
- border: `${borderWidthBase} solid ${focusColor}`,
6186
- }, '&:not(:focus-visible)::before': {
7451
+ }
7452
+ : hideLabel && {
7453
+ span: {
7454
+ ...getHiddenTextJssStyle(),
7455
+ display: 'block',
6187
7456
  border: 0,
6188
- } }),
6189
- }
6190
- : hideLabel && {
6191
- span: Object.assign(Object.assign({}, getHiddenTextJssStyle()), { display: 'block', border: 0 }),
6192
- })) }, (sortable && {
6193
- icon: {
6194
- transition: getTransition('opacity'),
6195
- opacity: active ? 1 : 0,
6196
- transform: `rotate3d(0,0,1,${isDirectionAsc(direction) ? 0 : 180}deg)`,
6197
- transformOrigin: '50% 50%',
6198
- filter: `var(${cssVariableTableHeadCellIconFilter})`,
7457
+ },
7458
+ }),
6199
7459
  },
6200
- })));
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
+ });
6201
7470
  };
6202
7471
 
6203
7472
  const getComponentCss$f = () => {
6204
7473
  return getCss({
6205
7474
  '@global': {
6206
- ':host': addImportantToEachRule(Object.assign({ display: 'table-row' }, hostHiddenStyles)),
7475
+ ':host': addImportantToEachRule({
7476
+ display: 'table-row',
7477
+ ...hostHiddenStyles,
7478
+ }),
6207
7479
  },
6208
7480
  });
6209
7481
  };
@@ -6211,7 +7483,13 @@ const getComponentCss$f = () => {
6211
7483
  const getComponentCss$e = () => {
6212
7484
  return getCss({
6213
7485
  '@global': {
6214
- ':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
+ }),
6215
7493
  },
6216
7494
  });
6217
7495
  };
@@ -6219,52 +7497,132 @@ const getComponentCss$e = () => {
6219
7497
  const getComponentCss$d = () => {
6220
7498
  return getCss({
6221
7499
  '@global': {
6222
- ':host': addImportantToEachRule(Object.assign(Object.assign({ display: 'table-row', borderTop: `1px solid var(${cssVariableTableBorderColor})`, borderBottom: `1px solid var(${cssVariableTableBorderColor})`, transition: getTransition('background') }, hostHiddenStyles), hoverMediaQuery({
6223
- '&(:hover)': {
6224
- // ...frostedGlassStyle, // will result in not smooth transition when applied
6225
- background: `var(${cssVariableTableHoverColor})`,
6226
- },
6227
- }))),
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
+ }),
6228
7513
  },
6229
7514
  });
6230
7515
  };
6231
7516
 
6232
- const tabsTransitionDuration = '.4s';
6233
- 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();
6234
7521
  const getComponentCss$c = (size, weight, theme) => {
6235
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
+ };
6236
7529
  return getCss({
6237
- '@global': Object.assign({ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(Object.assign({ position: 'relative',
6238
- // TODO: probably not needed because there is no style with position: fixed
6239
- transform: 'translate3d(0,0,0)' }, hostHiddenStyles))) }, addImportantToEachRule(Object.assign(Object.assign({
6240
- // would be nice to use shared selector like '::slotted([role])'
6241
- // but this doesn't work reliably when rendering in browser
6242
- [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({
6243
- transition: getTransition('background'),
6244
- })) }) }, hoverMediaQuery({
6245
- [transformSelector('::slotted([role]:hover)::before')]: Object.assign(Object.assign({}, frostedGlassStyle), { background: hoverColor }),
6246
- })), {
6247
- // TODO: combine link-social-styles with link-button-styles and tabs-bar-styles
6248
- [transformSelector('::slotted([role]:focus)::before')]: {
6249
- border: `${borderWidthBase} solid ${focusColor}`,
6250
- borderRadius: borderRadiusSmall,
6251
- }, [transformSelector('::slotted([role]:focus:not(:focus-visible))::before')]: {
6252
- borderColor: 'transparent',
6253
- }, [transformSelector('::slotted([role]:not(:last-child))')]: {
6254
- marginRight: '16px', // No token for this spacing exists yet
6255
- } }))),
6256
- 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
6257
7615
  bar: {
6258
- display: 'block',
6259
- position: 'absolute',
7616
+ ...barJssStyle,
6260
7617
  width: 0,
6261
- height: '2px',
6262
- left: 0,
6263
7618
  bottom: isHighContrastMode ? '0' : '-2px',
6264
- background: isHighContrastMode ? getHighContrastColors().canvasTextColor : primaryColor,
6265
- '&--enable-transition': {
6266
- willChange: 'width',
6267
- 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',
6268
7626
  },
6269
7627
  },
6270
7628
  });
@@ -6274,7 +7632,20 @@ const getComponentCss$b = (theme) => {
6274
7632
  const { primaryColor, focusColor } = getThemedColors(theme);
6275
7633
  return getCss({
6276
7634
  '@global': {
6277
- ':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
+ }),
6278
7649
  },
6279
7650
  });
6280
7651
  };
@@ -6282,7 +7653,10 @@ const getComponentCss$b = (theme) => {
6282
7653
  const getComponentCss$a = () => {
6283
7654
  return getCss({
6284
7655
  '@global': {
6285
- ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
7656
+ ':host': {
7657
+ display: 'block',
7658
+ ...addImportantToEachRule(hostHiddenStyles),
7659
+ },
6286
7660
  },
6287
7661
  root: {
6288
7662
  marginBottom: '8px',
@@ -6292,7 +7666,13 @@ const getComponentCss$a = () => {
6292
7666
 
6293
7667
  const getTagFocusJssStyle = (themedColors) => {
6294
7668
  return {
6295
- '&: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
+ },
6296
7676
  '&:focus:not(:focus-visible)::before': {
6297
7677
  borderColor: 'transparent',
6298
7678
  },
@@ -6315,26 +7695,53 @@ const getComponentCss$9 = (color, hasLabel, theme) => {
6315
7695
  const themedColors = getThemedColors(theme);
6316
7696
  const { primaryColor, hoverColor, contrastHighColor } = themedColors;
6317
7697
  const backgroundColor = getThemedBackgroundColor(color, themedColors);
6318
- return getCss(Object.assign(Object.assign({ '@global': {
6319
- ':host': addImportantToEachRule(Object.assign({ display: 'inline-block', verticalAlign: 'top', outline: 0 }, hostHiddenStyles)),
6320
- 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({
6321
- '&:hover > .icon': {
6322
- backgroundColor: hoverColor,
6323
- },
6324
- })),
6325
- } }, (hasLabel && {
6326
- label: {
6327
- display: 'block',
6328
- marginBottom: '-4px',
6329
- color: contrastHighColor,
6330
- 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
+ },
6331
7728
  },
6332
- })), { icon: {
7729
+ ...(hasLabel && {
7730
+ label: {
7731
+ display: 'block',
7732
+ marginBottom: '-4px',
7733
+ color: contrastHighColor,
7734
+ fontSize: fontSizeTextXSmall,
7735
+ },
7736
+ }),
7737
+ icon: {
6333
7738
  padding: '4px',
6334
7739
  marginRight: '10px',
6335
7740
  transition: getTransition('background-color'),
6336
7741
  borderRadius: borderRadiusSmall,
6337
- }, 'sr-only': getHiddenTextJssStyle() }));
7742
+ },
7743
+ 'sr-only': getHiddenTextJssStyle(),
7744
+ });
6338
7745
  };
6339
7746
 
6340
7747
  const getThemedBackgroundHoverColor = (tagColor, themedColors, theme) => {
@@ -6366,25 +7773,59 @@ const getComponentCss$8 = (tagColor, isFocusable, theme) => {
6366
7773
  const { primaryColor, backgroundColor, backgroundHoverColor } = getColors(themedColors, tagColor, theme);
6367
7774
  return getCss({
6368
7775
  '@global': {
6369
- ':host': Object.assign({ display: 'inline-flex', verticalAlign: 'top' }, addImportantToEachRule(hostHiddenStyles)),
6370
- 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 && {
6371
- outline: '1px solid transparent',
6372
- })), (isFocusable &&
6373
- hoverMediaQuery({
6374
- transition: getTransition('background-color'),
6375
- '&:hover': {
6376
- background: backgroundHoverColor,
6377
- },
6378
- }))),
6379
- '::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]) => {
6380
- result[key.replace(/^&([a-z:\-()]*)(::[a-z\-]+)$/, '&(a$1)$2, &(button$1)$2')] = value;
6381
- return result;
6382
- }, {})), { '&(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)': {
6383
7822
  display: 'none',
6384
- } })),
7823
+ },
7824
+ }),
6385
7825
  },
6386
7826
  icon: {
6387
- marginLeft: '-2px', // optimize visual alignment
7827
+ marginLeft: '-2px',
7828
+ alignSelf: 'flex-start',
6388
7829
  },
6389
7830
  });
6390
7831
  };
@@ -6431,38 +7872,72 @@ const getComponentCss$7 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter
6431
7872
  const isSearchWithoutForm = isSearch && !isWithinForm;
6432
7873
  const isSearchWithForm = isSearch && isWithinForm;
6433
7874
  const isCalendarOrTimeWithCustomIndicator = showCustomCalendarOrTimeIndicator(isCalendar, isTime);
6434
- 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
6435
- ? getInputPaddingHorizontal(isSearchWithForm ? 2 : 1)
6436
- : spacingStaticMedium }, hostHiddenStyles))) }, addImportantToEachRule(Object.assign(Object.assign({}, getBaseChildStyles('input', state, theme, Object.assign({ padding: `${spacingStaticSmall} var(${cssVariableInputPaddingRight}) ${spacingStaticSmall} var(${cssVariableInputPaddingLeft})` }, (isNumber && {
6437
- MozAppearance: 'textfield', // hides up/down spin button for Firefox
6438
- })))), { '::slotted': {
6439
- '&(input:-internal-autofill-selected),&(input:-internal-autofill-previewed),&(input:-webkit-autofill),&(input:-webkit-autofill:focus)': {
6440
- 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
+ },
6441
7898
  },
6442
- } }))) }, ((isSearchOrPassword || isCalendarOrTimeWithCustomIndicator) && {
6443
- button: Object.assign(Object.assign({}, baseButtonOrIconStyles), { right: getButtonOrIconOffsetHorizontal(1),
6444
- // TODO: maybe we should render hidden button conditionally, needs to be checked if a11y compliant
6445
- '&:not([hidden]) ~ .button': {
6446
- right: getButtonOrIconOffsetHorizontal(2),
6447
- } }),
6448
- })), (isSearchWithoutForm && {
6449
- icon: Object.assign(Object.assign({}, baseButtonOrIconStyles), { left: getButtonOrIconOffsetHorizontal(1), pointerEvents: 'none' }),
6450
- })), { 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: {
6451
7919
  display: 'block',
6452
7920
  position: 'relative',
6453
- } }), getLabelStyles('input', isDisabled, hideLabel, state, theme, hasUnitOrVisibleCounter && {
6454
- unit: {
6455
- position: 'absolute',
6456
- bottom: '15px',
6457
- [unitPosition === 'suffix' ? 'right' : 'left']: 0,
6458
- zIndex: 1,
6459
- padding: unitPosition === 'suffix' ? `0 ${spacingStaticMedium} 0 10px` : `0 10px 0 ${spacingStaticMedium}`,
6460
- font: textSmallStyle.font,
6461
- color: contrastMediumColor,
6462
- },
6463
- })), 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),
6464
7935
  // TODO: could be made conditional if we had hasUnit
6465
- 'sr-only': Object.assign(Object.assign({}, getHiddenTextJssStyle()), { padding: 0 }) }));
7936
+ 'sr-only': {
7937
+ ...getHiddenTextJssStyle(),
7938
+ padding: 0,
7939
+ },
7940
+ });
6466
7941
  };
6467
7942
 
6468
7943
  /** @deprecated */
@@ -6480,24 +7955,42 @@ const getComponentCss$6 = (type, theme) => {
6480
7955
  const isOrderedList = isListTypeOrdered(type);
6481
7956
  return getCss({
6482
7957
  '@global': {
6483
- ':host': Object.assign({ display: 'block' }, addImportantToEachRule(Object.assign({ counterReset: counter }, hostHiddenStyles))),
6484
- '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
6485
7970
  ? `var(${cssVariableOrderedPaddingLeft},1.5rem)` // reserves space for ::before (root ordered list)
6486
7971
  : `var(${cssVariableUnorderedPaddingLeft},.375rem)` // reserves space for ::marker "•" (root unordered list)
6487
- }`, listStyleType: isOrderedList ? 'none' : `var(${cssVariableListStyleType},'•')` }),
7972
+ }`,
7973
+ listStyleType: isOrderedList ? 'none' : `var(${cssVariableListStyleType},'•')`, // custom ::marker char for root unordered list
7974
+ },
6488
7975
  // css selector for text-list-item
6489
- '::slotted(*)': addImportantToEachRule(Object.assign({ [cssVariablePaddingTop]: spacingStaticXSmall,
7976
+ '::slotted(*)': addImportantToEachRule({
7977
+ [cssVariablePaddingTop]: spacingStaticXSmall,
6490
7978
  // TODO: in case it's last root list item with a nested list it would result in outer spacing which is not desired
6491
- [cssVariablePaddingBottom]: spacingStaticMedium, [cssVariableOrderedPaddingLeft]: '2rem', [cssVariableUnorderedPaddingLeft]: '.625rem', [cssVariableListStyleType]: '"–"' }, (isOrderedList && {
6492
- '&::before': {
6493
- content: `counters(${counter},'.',${isListTypeNumbered(type) ? 'decimal' : 'lower-latin'}) var(${cssVariablePseudoSuffix},'.')`,
6494
- counterIncrement: counter,
6495
- position: 'absolute',
6496
- top: 0,
6497
- left: 0,
6498
- transform: 'translate(-100%,0)',
6499
- },
6500
- }))),
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
+ }),
6501
7994
  },
6502
7995
  });
6503
7996
  };
@@ -6505,7 +7998,15 @@ const getComponentCss$6 = (type, theme) => {
6505
7998
  const getComponentCss$5 = () => {
6506
7999
  return getCss({
6507
8000
  '@global': addImportantToEachRule({
6508
- ':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
+ },
6509
8010
  '::slotted(*)': {
6510
8011
  [cssVariablePseudoSuffix]: '""', // don't show suffix "." for nested ordered list
6511
8012
  },
@@ -6526,7 +8027,10 @@ const sizeMap = {
6526
8027
  const getComponentCss$4 = (size, weight, align, color, ellipsis, theme) => {
6527
8028
  return getCss({
6528
8029
  '@global': {
6529
- ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
8030
+ ':host': {
8031
+ display: 'block',
8032
+ ...addImportantToEachRule(hostHiddenStyles),
8033
+ },
6530
8034
  '::slotted': {
6531
8035
  [TEXT_TAGS.map((i) => `&(${i})`).join()]: addImportantToEachRule(getTypographySlottedJssStyle()),
6532
8036
  },
@@ -6540,27 +8044,42 @@ const getComponentCss$4 = (size, weight, align, color, ellipsis, theme) => {
6540
8044
 
6541
8045
  const getComponentCss$3 = (isDisabled, hideLabel, state, hasCounter, theme) => {
6542
8046
  const { contrastMediumColor } = getThemedColors(theme);
6543
- 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, {
6544
- font: textSmallStyle.font,
6545
- padding: hasCounter ? `12px ${spacingStaticMedium} ${spacingStaticLarge}` : `12px ${spacingStaticMedium}`,
6546
- })), {
6547
- '::slotted(textarea)': {
6548
- height: 'auto',
6549
- minHeight: '200px',
6550
- resize: 'vertical', // overridable, too
6551
- },
6552
- })) }, getLabelStyles('textarea', isDisabled, hideLabel, state, theme, hasCounter && {
6553
- counter: {
6554
- position: 'absolute',
6555
- bottom: '6px',
6556
- right: '12px',
6557
- zIndex: 1,
6558
- font: textSmallStyle.font,
6559
- 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
+ }),
6560
8063
  },
6561
- })), getFunctionalComponentRequiredStyles()), getFunctionalComponentStateMessageStyles(theme, state)), (hasCounter && {
6562
- 'sr-only': Object.assign(Object.assign({}, getHiddenTextJssStyle()), { padding: 0 }),
6563
- })));
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
+ });
6564
8083
  };
6565
8084
 
6566
8085
  const cssVariablePositionBottom = '--p-toast-position-bottom'; // CSS custom property exposed as public interface
@@ -6589,15 +8108,24 @@ const toastCloseClassName = 'close';
6589
8108
  const getComponentCss$1 = () => {
6590
8109
  return getCss({
6591
8110
  '@global': {
6592
- ':host': addImportantToEachRule(Object.assign({ position: 'fixed', left: gridExtendedOffsetBase, right: gridExtendedOffsetBase,
8111
+ ':host': addImportantToEachRule({
8112
+ position: 'fixed',
8113
+ left: gridExtendedOffsetBase,
8114
+ right: gridExtendedOffsetBase,
6593
8115
  // Needs a not overridable internal css variable to cover default position depending on viewport size and to handle animation properly.
6594
8116
  // In addition, a public css variable can be passed to overwrite the default position.
6595
- [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')]: {
6596
8122
  left: '64px',
6597
8123
  right: 'auto',
6598
8124
  [cssVariablePositionBottomInternal]: `var(${cssVariablePositionBottom}, 64px)`,
6599
8125
  bottom: `var(${cssVariablePositionBottomInternal})`,
6600
- } }, hostHiddenStyles)),
8126
+ },
8127
+ ...hostHiddenStyles,
8128
+ }),
6601
8129
  '@keyframes in': getKeyframesMobile('in', cssVariablePositionBottomInternal),
6602
8130
  '@keyframes out': getKeyframesMobile('out', cssVariablePositionBottomInternal),
6603
8131
  },
@@ -6613,20 +8141,35 @@ const getComponentCss$1 = () => {
6613
8141
  const getComponentCss = (size, theme) => {
6614
8142
  return getCss({
6615
8143
  '@global': {
6616
- ':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' && {
6617
- height: 'clamp(0.63rem, 0.42vw + 0.5rem, 1rem)',
6618
- // workaround for Safari to optimize image rendering
6619
- '@supports (height: round(down, 1px, 1px))': {
6620
- height: 'round(down, clamp(0.63rem, 0.42vw + 0.5rem, 1rem), 1px)',
6621
- },
6622
- })), 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
+ },
6623
8163
  'a, svg': {
6624
8164
  display: 'block',
6625
8165
  maxWidth: '100%',
6626
8166
  maxHeight: '100%',
6627
8167
  height: 'inherit',
6628
8168
  },
6629
- a: Object.assign({ textDecoration: 'none' }, focusPseudoJssStyle),
8169
+ a: {
8170
+ textDecoration: 'none',
8171
+ ...focusPseudoJssStyle,
8172
+ },
6630
8173
  svg: {
6631
8174
  fill: isHighContrastMode ? getHighContrastColors().canvasTextColor : getThemedColors(theme).primaryColor,
6632
8175
  },