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