@porsche-design-system/components-react 3.0.0-alpha.2 → 3.0.0-alpha.4

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 (347) hide show
  1. package/CHANGELOG.md +385 -0
  2. package/esm/lib/components/accordion.wrapper.js +2 -1
  3. package/esm/lib/components/banner.wrapper.js +3 -3
  4. package/esm/lib/components/button-tile.wrapper.js +22 -0
  5. package/esm/lib/components/carousel.wrapper.js +4 -3
  6. package/esm/lib/components/divider.wrapper.js +3 -3
  7. package/esm/lib/components/fieldset-wrapper.wrapper.js +1 -0
  8. package/esm/lib/components/fieldset.wrapper.js +22 -0
  9. package/esm/lib/components/link-social.wrapper.js +1 -1
  10. package/esm/lib/components/link-tile-model-signature.wrapper.js +22 -0
  11. package/esm/lib/components/link-tile.wrapper.js +1 -1
  12. package/esm/lib/components/modal.wrapper.js +4 -3
  13. package/esm/lib/components/pagination.wrapper.js +4 -3
  14. package/esm/lib/components/scroller.wrapper.js +3 -3
  15. package/esm/lib/components/segmented-control.wrapper.js +2 -1
  16. package/esm/lib/components/stepper-horizontal.wrapper.js +2 -1
  17. package/esm/lib/components/switch.wrapper.js +2 -1
  18. package/esm/lib/components/table.wrapper.js +6 -3
  19. package/esm/lib/components/tabs-bar.wrapper.js +4 -3
  20. package/esm/lib/components/tabs.wrapper.js +4 -3
  21. package/esm/lib/components/text-field-wrapper.wrapper.js +3 -3
  22. package/esm/lib/components/text-list.wrapper.js +3 -3
  23. package/esm/lib/components/textarea-wrapper.wrapper.js +3 -3
  24. package/esm/public-api.js +3 -0
  25. package/lib/components/accordion.wrapper.d.ts +12 -4
  26. package/lib/components/accordion.wrapper.js +2 -1
  27. package/lib/components/banner.wrapper.d.ts +22 -4
  28. package/lib/components/banner.wrapper.js +3 -3
  29. package/lib/components/button-group.wrapper.d.ts +2 -2
  30. package/lib/components/button-pure.wrapper.d.ts +15 -15
  31. package/lib/components/button-tile.wrapper.d.ts +120 -0
  32. package/lib/components/button-tile.wrapper.js +24 -0
  33. package/lib/components/button.wrapper.d.ts +5 -5
  34. package/lib/components/carousel.wrapper.d.ts +34 -10
  35. package/lib/components/carousel.wrapper.js +4 -3
  36. package/lib/components/checkbox-wrapper.wrapper.d.ts +5 -5
  37. package/lib/components/content-wrapper.wrapper.d.ts +2 -2
  38. package/lib/components/display.wrapper.d.ts +2 -2
  39. package/lib/components/divider.wrapper.d.ts +13 -5
  40. package/lib/components/divider.wrapper.js +3 -3
  41. package/lib/components/fieldset-wrapper.wrapper.d.ts +6 -5
  42. package/lib/components/fieldset-wrapper.wrapper.js +1 -0
  43. package/lib/components/fieldset.wrapper.d.ts +56 -0
  44. package/lib/components/fieldset.wrapper.js +24 -0
  45. package/lib/components/flex-item.wrapper.d.ts +2 -2
  46. package/lib/components/flex.wrapper.d.ts +2 -2
  47. package/lib/components/grid-item.wrapper.d.ts +2 -2
  48. package/lib/components/grid.wrapper.d.ts +2 -2
  49. package/lib/components/heading.wrapper.d.ts +2 -2
  50. package/lib/components/headline.wrapper.d.ts +2 -2
  51. package/lib/components/icon.wrapper.d.ts +2 -2
  52. package/lib/components/index.d.ts +3 -0
  53. package/lib/components/inline-notification.wrapper.d.ts +5 -5
  54. package/lib/components/link-pure.wrapper.d.ts +15 -15
  55. package/lib/components/link-social.wrapper.d.ts +8 -8
  56. package/lib/components/link-social.wrapper.js +1 -1
  57. package/lib/components/link-tile-model-signature.wrapper.d.ts +64 -0
  58. package/lib/components/link-tile-model-signature.wrapper.js +24 -0
  59. package/lib/components/link-tile.wrapper.d.ts +9 -9
  60. package/lib/components/link-tile.wrapper.js +1 -1
  61. package/lib/components/link.wrapper.d.ts +5 -5
  62. package/lib/components/marque.wrapper.d.ts +5 -5
  63. package/lib/components/modal.wrapper.d.ts +22 -6
  64. package/lib/components/modal.wrapper.js +4 -3
  65. package/lib/components/model-signature.wrapper.d.ts +2 -2
  66. package/lib/components/pagination.wrapper.d.ts +31 -15
  67. package/lib/components/pagination.wrapper.js +4 -3
  68. package/lib/components/popover.wrapper.d.ts +5 -5
  69. package/lib/components/radio-button-wrapper.wrapper.d.ts +5 -5
  70. package/lib/components/scroller.wrapper.d.ts +35 -11
  71. package/lib/components/scroller.wrapper.js +3 -3
  72. package/lib/components/segmented-control-item.wrapper.d.ts +5 -5
  73. package/lib/components/segmented-control.wrapper.d.ts +12 -4
  74. package/lib/components/segmented-control.wrapper.js +2 -1
  75. package/lib/components/select-wrapper.wrapper.d.ts +7 -7
  76. package/lib/components/spinner.wrapper.d.ts +2 -2
  77. package/lib/components/stepper-horizontal-item.wrapper.d.ts +5 -5
  78. package/lib/components/stepper-horizontal.wrapper.d.ts +13 -5
  79. package/lib/components/stepper-horizontal.wrapper.js +2 -1
  80. package/lib/components/switch.wrapper.d.ts +13 -5
  81. package/lib/components/switch.wrapper.js +2 -1
  82. package/lib/components/table-body.wrapper.d.ts +2 -2
  83. package/lib/components/table-cell.wrapper.d.ts +2 -2
  84. package/lib/components/table-head-cell.wrapper.d.ts +2 -2
  85. package/lib/components/table-head-row.wrapper.d.ts +2 -2
  86. package/lib/components/table-head.wrapper.d.ts +2 -2
  87. package/lib/components/table-row.wrapper.d.ts +2 -2
  88. package/lib/components/table.wrapper.d.ts +21 -5
  89. package/lib/components/table.wrapper.js +6 -3
  90. package/lib/components/tabs-bar.wrapper.d.ts +27 -11
  91. package/lib/components/tabs-bar.wrapper.js +4 -3
  92. package/lib/components/tabs-item.wrapper.d.ts +2 -2
  93. package/lib/components/tabs.wrapper.d.ts +27 -11
  94. package/lib/components/tabs.wrapper.js +4 -3
  95. package/lib/components/tag-dismissible.wrapper.d.ts +2 -2
  96. package/lib/components/tag.wrapper.d.ts +5 -5
  97. package/lib/components/text-field-wrapper.wrapper.d.ts +17 -9
  98. package/lib/components/text-field-wrapper.wrapper.js +3 -3
  99. package/lib/components/text-list-item.wrapper.d.ts +2 -2
  100. package/lib/components/text-list.wrapper.d.ts +19 -11
  101. package/lib/components/text-list.wrapper.js +3 -3
  102. package/lib/components/text.wrapper.d.ts +2 -2
  103. package/lib/components/textarea-wrapper.wrapper.d.ts +15 -7
  104. package/lib/components/textarea-wrapper.wrapper.js +3 -3
  105. package/lib/components/toast.wrapper.d.ts +2 -2
  106. package/lib/types.d.ts +164 -68
  107. package/package.json +2 -2
  108. package/public-api.js +6 -0
  109. package/ssr/components/dist/styles/esm/styles-entry.js +783 -2672
  110. package/ssr/components/dist/utils/esm/utils-entry.js +153 -2048
  111. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/accordion.wrapper.js +2 -1
  112. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.js +4 -4
  113. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/button-tile.wrapper.js +38 -0
  114. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.js +5 -4
  115. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/divider.wrapper.js +4 -4
  116. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/fieldset-wrapper.wrapper.js +1 -0
  117. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/fieldset.wrapper.js +38 -0
  118. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/link-social.wrapper.js +1 -1
  119. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile-model-signature.wrapper.js +38 -0
  120. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile.wrapper.js +1 -1
  121. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/modal.wrapper.js +5 -4
  122. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/pagination.wrapper.js +5 -4
  123. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/scroller.wrapper.js +4 -4
  124. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control.wrapper.js +2 -1
  125. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal.wrapper.js +2 -1
  126. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/switch.wrapper.js +2 -1
  127. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/table.wrapper.js +7 -4
  128. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.js +5 -4
  129. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.js +5 -4
  130. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/text-field-wrapper.wrapper.js +4 -4
  131. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/text-list.wrapper.js +4 -4
  132. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/textarea-wrapper.wrapper.js +4 -4
  133. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +4 -1
  134. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +6 -2
  135. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.js +1 -1
  136. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.js +4 -1
  137. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.js +88 -0
  138. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +4 -1
  139. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js +13 -3
  140. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.js +1 -1
  141. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.js +1 -1
  142. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.js +1 -1
  143. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.js +7 -2
  144. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.js +2 -1
  145. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.js +22 -0
  146. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.js +1 -1
  147. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.js +1 -1
  148. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.js +1 -1
  149. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.js +1 -1
  150. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.js +1 -1
  151. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.js +1 -1
  152. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.js +10 -3
  153. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.js +4 -1
  154. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.js +4 -1
  155. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js +5 -2
  156. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.js +95 -0
  157. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js +11 -12
  158. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.js +4 -1
  159. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.js +2 -2
  160. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.js +10 -3
  161. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.js +1 -1
  162. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.js +17 -4
  163. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.js +4 -1
  164. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.js +1 -1
  165. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +10 -3
  166. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.js +4 -1
  167. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.js +1 -1
  168. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +4 -1
  169. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.js +1 -1
  170. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.js +3 -0
  171. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.js +4 -1
  172. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +4 -1
  173. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.js +4 -1
  174. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-body.js +1 -1
  175. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-cell.js +1 -1
  176. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.js +4 -1
  177. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-row.js +1 -1
  178. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head.js +1 -1
  179. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-row.js +1 -1
  180. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.js +7 -10
  181. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +8 -2
  182. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-item.js +1 -1
  183. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +4 -1
  184. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.js +8 -2
  185. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.js +13 -2
  186. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +16 -7
  187. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.js +1 -1
  188. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.js +3 -3
  189. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.js +14 -2
  190. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.js +1 -1
  191. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/toast.js +1 -1
  192. package/ssr/components-react/projects/react-ssr-wrapper/src/public-api.js +6 -0
  193. package/ssr/esm/components/dist/styles/esm/styles-entry.js +754 -2646
  194. package/ssr/esm/components/dist/utils/esm/utils-entry.js +152 -2049
  195. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/accordion.wrapper.js +2 -1
  196. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.js +4 -4
  197. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button-tile.wrapper.js +36 -0
  198. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.js +5 -4
  199. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/divider.wrapper.js +4 -4
  200. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/fieldset-wrapper.wrapper.js +1 -0
  201. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/fieldset.wrapper.js +36 -0
  202. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-social.wrapper.js +1 -1
  203. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile-model-signature.wrapper.js +36 -0
  204. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile.wrapper.js +1 -1
  205. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/modal.wrapper.js +5 -4
  206. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/pagination.wrapper.js +5 -4
  207. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/scroller.wrapper.js +4 -4
  208. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control.wrapper.js +2 -1
  209. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal.wrapper.js +2 -1
  210. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/switch.wrapper.js +2 -1
  211. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table.wrapper.js +7 -4
  212. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.js +5 -4
  213. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.js +5 -4
  214. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text-field-wrapper.wrapper.js +4 -4
  215. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text-list.wrapper.js +4 -4
  216. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/textarea-wrapper.wrapper.js +4 -4
  217. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +6 -3
  218. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +7 -3
  219. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.js +3 -3
  220. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.js +6 -3
  221. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.js +86 -0
  222. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +6 -3
  223. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js +14 -4
  224. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.js +3 -3
  225. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.js +3 -3
  226. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.js +3 -3
  227. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.js +8 -3
  228. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.js +4 -3
  229. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.js +20 -0
  230. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.js +3 -3
  231. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.js +3 -3
  232. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.js +3 -3
  233. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.js +3 -3
  234. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.js +3 -3
  235. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.js +3 -3
  236. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.js +11 -4
  237. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.js +6 -3
  238. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.js +6 -3
  239. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js +7 -4
  240. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.js +93 -0
  241. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js +12 -13
  242. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.js +6 -3
  243. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.js +2 -2
  244. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.js +10 -3
  245. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.js +1 -1
  246. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.js +17 -4
  247. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.js +4 -1
  248. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.js +1 -1
  249. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +10 -3
  250. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.js +4 -1
  251. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.js +1 -1
  252. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +4 -1
  253. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.js +1 -1
  254. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.js +3 -0
  255. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.js +4 -1
  256. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +4 -1
  257. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.js +4 -1
  258. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-body.js +1 -1
  259. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-cell.js +1 -1
  260. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.js +6 -3
  261. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-row.js +3 -3
  262. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head.js +3 -3
  263. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-row.js +3 -3
  264. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.js +8 -11
  265. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +8 -2
  266. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-item.js +1 -1
  267. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +4 -1
  268. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.js +8 -2
  269. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.js +13 -2
  270. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +17 -8
  271. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.js +1 -1
  272. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.js +3 -3
  273. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.js +14 -2
  274. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.js +1 -1
  275. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/toast.js +1 -1
  276. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.js +3 -0
  277. package/ssr/lib/components/accordion.wrapper.d.ts +12 -4
  278. package/ssr/lib/components/banner.wrapper.d.ts +22 -4
  279. package/ssr/lib/components/button-group.wrapper.d.ts +2 -2
  280. package/ssr/lib/components/button-pure.wrapper.d.ts +15 -15
  281. package/ssr/lib/components/button-tile.wrapper.d.ts +120 -0
  282. package/ssr/lib/components/button.wrapper.d.ts +5 -5
  283. package/ssr/lib/components/carousel.wrapper.d.ts +34 -10
  284. package/ssr/lib/components/checkbox-wrapper.wrapper.d.ts +5 -5
  285. package/ssr/lib/components/content-wrapper.wrapper.d.ts +2 -2
  286. package/ssr/lib/components/display.wrapper.d.ts +2 -2
  287. package/ssr/lib/components/divider.wrapper.d.ts +13 -5
  288. package/ssr/lib/components/fieldset-wrapper.wrapper.d.ts +6 -5
  289. package/ssr/lib/components/fieldset.wrapper.d.ts +56 -0
  290. package/ssr/lib/components/flex-item.wrapper.d.ts +2 -2
  291. package/ssr/lib/components/flex.wrapper.d.ts +2 -2
  292. package/ssr/lib/components/grid-item.wrapper.d.ts +2 -2
  293. package/ssr/lib/components/grid.wrapper.d.ts +2 -2
  294. package/ssr/lib/components/heading.wrapper.d.ts +2 -2
  295. package/ssr/lib/components/headline.wrapper.d.ts +2 -2
  296. package/ssr/lib/components/icon.wrapper.d.ts +2 -2
  297. package/ssr/lib/components/index.d.ts +3 -0
  298. package/ssr/lib/components/inline-notification.wrapper.d.ts +5 -5
  299. package/ssr/lib/components/link-pure.wrapper.d.ts +15 -15
  300. package/ssr/lib/components/link-social.wrapper.d.ts +8 -8
  301. package/ssr/lib/components/link-tile-model-signature.wrapper.d.ts +64 -0
  302. package/ssr/lib/components/link-tile.wrapper.d.ts +9 -9
  303. package/ssr/lib/components/link.wrapper.d.ts +5 -5
  304. package/ssr/lib/components/marque.wrapper.d.ts +5 -5
  305. package/ssr/lib/components/modal.wrapper.d.ts +22 -6
  306. package/ssr/lib/components/model-signature.wrapper.d.ts +2 -2
  307. package/ssr/lib/components/pagination.wrapper.d.ts +31 -15
  308. package/ssr/lib/components/popover.wrapper.d.ts +5 -5
  309. package/ssr/lib/components/radio-button-wrapper.wrapper.d.ts +5 -5
  310. package/ssr/lib/components/scroller.wrapper.d.ts +35 -11
  311. package/ssr/lib/components/segmented-control-item.wrapper.d.ts +5 -5
  312. package/ssr/lib/components/segmented-control.wrapper.d.ts +12 -4
  313. package/ssr/lib/components/select-wrapper.wrapper.d.ts +7 -7
  314. package/ssr/lib/components/spinner.wrapper.d.ts +2 -2
  315. package/ssr/lib/components/stepper-horizontal-item.wrapper.d.ts +5 -5
  316. package/ssr/lib/components/stepper-horizontal.wrapper.d.ts +13 -5
  317. package/ssr/lib/components/switch.wrapper.d.ts +13 -5
  318. package/ssr/lib/components/table-body.wrapper.d.ts +2 -2
  319. package/ssr/lib/components/table-cell.wrapper.d.ts +2 -2
  320. package/ssr/lib/components/table-head-cell.wrapper.d.ts +2 -2
  321. package/ssr/lib/components/table-head-row.wrapper.d.ts +2 -2
  322. package/ssr/lib/components/table-head.wrapper.d.ts +2 -2
  323. package/ssr/lib/components/table-row.wrapper.d.ts +2 -2
  324. package/ssr/lib/components/table.wrapper.d.ts +21 -5
  325. package/ssr/lib/components/tabs-bar.wrapper.d.ts +27 -11
  326. package/ssr/lib/components/tabs-item.wrapper.d.ts +2 -2
  327. package/ssr/lib/components/tabs.wrapper.d.ts +27 -11
  328. package/ssr/lib/components/tag-dismissible.wrapper.d.ts +2 -2
  329. package/ssr/lib/components/tag.wrapper.d.ts +5 -5
  330. package/ssr/lib/components/text-field-wrapper.wrapper.d.ts +17 -9
  331. package/ssr/lib/components/text-list-item.wrapper.d.ts +2 -2
  332. package/ssr/lib/components/text-list.wrapper.d.ts +19 -11
  333. package/ssr/lib/components/text.wrapper.d.ts +2 -2
  334. package/ssr/lib/components/textarea-wrapper.wrapper.d.ts +15 -7
  335. package/ssr/lib/components/toast.wrapper.d.ts +2 -2
  336. package/ssr/lib/dsr-components/button-tile.d.ts +5 -0
  337. package/ssr/lib/dsr-components/carousel.d.ts +1 -1
  338. package/ssr/lib/dsr-components/fieldset-wrapper.d.ts +1 -0
  339. package/ssr/lib/dsr-components/fieldset.d.ts +5 -0
  340. package/ssr/lib/dsr-components/link-social.d.ts +1 -1
  341. package/ssr/lib/dsr-components/link-tile-model-signature.d.ts +5 -0
  342. package/ssr/lib/dsr-components/modal.d.ts +2 -1
  343. package/ssr/lib/dsr-components/table.d.ts +0 -6
  344. package/ssr/lib/dsr-components/text-field-wrapper.d.ts +2 -0
  345. package/ssr/lib/types.d.ts +164 -68
  346. package/styles/_index.scss +1 -0
  347. package/styles/scss.scss +0 -1
@@ -51,6 +51,10 @@ const dropShadowLowStyle = {
51
51
  filter: `drop-shadow(0px 3px 8px ${_dropShadowBackgroundColor})`,
52
52
  };
53
53
 
54
+ const dropShadowHighStyle = {
55
+ filter: `drop-shadow(0px 8px 40px ${_dropShadowBackgroundColor})`,
56
+ };
57
+
54
58
  const fontFamily = "'Porsche Next','Arial Narrow',Arial,'Heiti SC',SimHei,sans-serif";
55
59
 
56
60
  const fontHyphenationStyle = {
@@ -60,6 +64,8 @@ const fontHyphenationStyle = {
60
64
 
61
65
  const fontLineHeight = 'calc(6px + 2.125ex)';
62
66
 
67
+ const fontSizeTextXXSmall = '.75rem';
68
+
63
69
  const fontSizeTextXSmall = 'clamp(0.81rem, 0.23vw + 0.77rem, 0.88rem)';
64
70
 
65
71
  const fontSizeTextSmall = '1rem';
@@ -71,6 +77,7 @@ const fontSizeTextLarge = 'clamp(1.27rem, 0.51vw + 1.16rem, 1.78rem)';
71
77
  const fontSizeTextXLarge = 'clamp(1.42rem, 0.94vw + 1.23rem, 2.37rem)';
72
78
 
73
79
  const fontSizeText = {
80
+ xxSmall: fontSizeTextXXSmall,
74
81
  xSmall: fontSizeTextXSmall,
75
82
  small: fontSizeTextSmall,
76
83
  medium: fontSizeTextMedium,
@@ -88,7 +95,7 @@ const fontSizeHeadingXLarge = fontSizeTextXLarge;
88
95
 
89
96
  const fontSizeHeadingXXLarge = 'clamp(1.6rem, 1.56vw + 1.29rem, 3.16rem)';
90
97
 
91
- const fontSizeHeadingXXXLarge = 'clamp(1.8rem, 2.41vw + 1.32rem, 4.21rem)';
98
+ const fontSizeDisplaySmall = 'clamp(1.8rem, 2.41vw + 1.32rem, 4.21rem)';
92
99
 
93
100
  const fontSizeDisplayMedium = 'clamp(2.03rem, 3.58vw + 1.31rem, 5.61rem)';
94
101
 
@@ -96,20 +103,18 @@ const fontSizeDisplayLarge = 'clamp(2.28rem, 5.2vw + 1.24rem, 7.48rem)';
96
103
 
97
104
  const fontWeightRegular = 400;
98
105
 
99
- const fontWeightSemiBold$1 = 600;
106
+ const fontWeightSemiBold = 600;
100
107
 
101
108
  const fontWeightBold = 700;
102
109
 
103
110
  const fontWeight = {
104
111
  regular: fontWeightRegular,
105
- semiBold: fontWeightSemiBold$1,
112
+ semiBold: fontWeightSemiBold,
106
113
  bold: fontWeightBold,
107
114
  };
108
115
 
109
116
  const fontStyleNormal = 'normal';
110
117
 
111
- const fontStyleItalic = 'italic';
112
-
113
118
  const fontVariant = 'normal';
114
119
 
115
120
  const backdropFilter = 'blur(32px)';
@@ -118,19 +123,42 @@ const frostedGlassStyle = {
118
123
  backdropFilter,
119
124
  };
120
125
 
121
- const breakpointBase = '0px';
126
+ const _gradient = 'rgba(31,31,31,0.9) 0%,' +
127
+ 'rgba(31,31,31,0.9) 20%,' +
128
+ 'rgba(31,31,31,0.852589) 26.67%,' +
129
+ 'rgba(32,32,32,0.768225) 33.33%,' +
130
+ 'rgba(33,33,33,0.668116) 40%,' +
131
+ 'rgba(34,34,34,0.557309) 46.67%,' +
132
+ 'rgba(35,35,35,0.442691) 53.33%,' +
133
+ 'rgba(36,36,36,0.331884) 60%,' +
134
+ 'rgba(37,37,37,0.231775) 66.67%,' +
135
+ 'rgba(38,38,38,0.147411) 73.33%,' +
136
+ 'rgba(39,39,39,0.0816599) 80%,' +
137
+ 'rgba(39,39,39,0.03551) 86.67%,' +
138
+ 'rgba(39,39,39,0.0086472) 93.33%,' +
139
+ 'rgba(39,39,39,0)';
140
+
141
+ const gradientToBottomStyle = {
142
+ background: `linear-gradient(to bottom, ${_gradient} 100%);`,
143
+ };
144
+
145
+ const gradientToTopStyle = {
146
+ background: `linear-gradient(to top, ${_gradient} 100%);`,
147
+ };
148
+
149
+ const breakpointBase = 0;
122
150
 
123
- const breakpointXS = '480px';
151
+ const breakpointXS = 480;
124
152
 
125
- const breakpointS = '760px';
153
+ const breakpointS = 760;
126
154
 
127
- const breakpointM = '1000px';
155
+ const breakpointM = 1000;
128
156
 
129
- const breakpointL = '1300px';
157
+ const breakpointL = 1300;
130
158
 
131
- const breakpointXL = '1760px';
159
+ const breakpointXL = 1760;
132
160
 
133
- const breakpointXXL = '1920px';
161
+ const breakpointXXL = 1920;
134
162
 
135
163
  const breakpoint = {
136
164
  base: breakpointBase,
@@ -143,89 +171,74 @@ const breakpoint = {
143
171
  };
144
172
 
145
173
  function getMediaQueryMin(min) {
146
- return `@media(min-width:${breakpoint[min]})`;
174
+ return `@media(min-width:${breakpoint[min]}px)`;
147
175
  }
148
176
 
149
177
  const spacingFluidMedium = 'clamp(16px, 1.25vw + 12px, 36px)';
150
178
 
151
179
  const gridGap = spacingFluidMedium;
152
180
 
153
- const gridWidthMin = '320px';
181
+ const _gridWidthMax = '2560px';
182
+ // fluid sizing calculated by https://fluidtypography.com/#app-get-started
183
+ const _gridSafeZoneBase = 'max(22px, 10.625vw - 12px)'; // viewport-width range = 320 - 760px / size range = 22 - 68.75px
184
+ const _gridSafeZoneS = 'calc(5vw - 16px)'; // viewport-width range = 760 - 1920px / size range = 22(22.75) - 80(79.71)px
185
+ const _gridSafeZoneXXL = 'min(50vw - 880px, 400px)'; // viewport-width range = 1920 - 2560px / size range = 80(79.71)px - 400(399.71)px
154
186
 
155
- const gridWidthMax = '2560px';
187
+ const columnMap = {
188
+ narrow: 4,
189
+ basic: 2,
190
+ extended: 1,
191
+ };
192
+ const gridColumnWidthS = `calc((100vw - ${_gridSafeZoneS} * 2 - ${gridGap} * 15) / 16)`;
193
+ const gridColumnWidthXXL = `calc((min(100vw, ${_gridWidthMax}) - ${_gridSafeZoneXXL} * 2 - ${gridGap} * 15) / 16)`;
194
+ const _gridPadding = `max(0px, 50vw - ${_gridWidthMax} / 2)`;
195
+ const _getGridOffsetS = (width) => `calc(${_gridSafeZoneS} + (${gridGap} + ${gridColumnWidthS}) * ${columnMap[width]})`;
196
+ const _getGridOffsetXXL = (width) => `calc(${_gridPadding} + ${_gridSafeZoneXXL} + (${gridGap} + ${gridColumnWidthXXL}) * ${columnMap[width]})`;
156
197
 
157
- // fluid sizing calculated by https://fluidtypography.com/#app-get-started
158
- // gridSafeZoneBase: Viewport Width Range = 320 - 1920px / Size Range = 22 - 192px
159
- const gridSafeZoneBase = 'clamp(22px, 10.625vw - 12px, 192px)';
198
+ const gridFullOffset = _gridPadding;
160
199
 
161
- // fluid sizing calculated by https://fluidtypography.com/#app-get-started
162
- // gridSafeZoneXXL: Viewport Width Range = 1920 - 2560px / Size Range = 192 - 512px
163
- const gridSafeZoneXXL = 'clamp(192px, 50vw - 768px, 512px)';
200
+ const gridExtendedOffsetBase = _gridSafeZoneBase;
164
201
 
165
- const gridFullColumnStart = 'full-start';
202
+ const gridExtendedOffsetS = _getGridOffsetS('extended');
166
203
 
167
- const gridExtendedColumnStart = 'extended-start';
204
+ const gridExtendedOffsetXXL = _getGridOffsetXXL('extended');
168
205
 
169
- const gridBasicColumnStart = 'basic-start';
206
+ const gridExtendedOffset = {
207
+ base: gridExtendedOffsetBase,
208
+ s: gridExtendedOffsetS,
209
+ xxl: gridExtendedOffsetXXL,
210
+ };
170
211
 
171
- const gridNarrowColumnStart = 'narrow-start';
212
+ const gridBasicOffsetBase = _gridSafeZoneBase;
172
213
 
173
- const gridNarrowColumnEnd = 'narrow-end';
214
+ const gridBasicOffsetS = _getGridOffsetS('basic');
174
215
 
175
- const gridBasicColumnEnd = 'basic-end';
216
+ const gridBasicOffsetXXL = _getGridOffsetXXL('basic');
176
217
 
177
- const gridExtendedColumnEnd = 'extended-end';
218
+ const gridBasicOffset = {
219
+ base: gridBasicOffsetBase,
220
+ s: gridBasicOffsetS,
221
+ xxl: gridBasicOffsetXXL,
222
+ };
178
223
 
179
- const gridFullColumnEnd = 'full-end';
224
+ const gridNarrowOffsetBase = _gridSafeZoneBase;
180
225
 
181
- const _cssVariableGridExtendedSpanOneHalf = '--pds-grid-extended-span-one-half';
182
- const _cssVariableGridBasicSpanOneHalf = '--pds-grid-basic-span-one-half';
183
- const _cssVariableGridBasicSpanOneThird = '--pds-grid-basic-span-one-third';
184
- const _cssVariableGridBasicSpanTwoThirds = '--pds-grid-basic-span-two-thirds';
185
- const _cssVariableGridNarrowSpanOneHalf = '--pds-grid-narrow-span-one-half';
186
- const _cssVariableGridSafeZone = '--pds-internal-grid-safe-zone';
226
+ const gridNarrowOffsetS = _getGridOffsetS('narrow');
187
227
 
188
- const outerColumn = `minmax(0, calc(var(${_cssVariableGridSafeZone}) - ${gridGap}))`;
189
- const column = 'minmax(0, 1fr)';
190
- const getColumns = (repeat) => (repeat > 1 ? `repeat(${repeat}, ${column})` : column);
191
- const getColumnSpan = (span) => `span ${span}`;
192
- const getGridTemplateColumns = (layout) => layout === 'mobile'
193
- ? `[${gridFullColumnStart}] ${outerColumn} [${gridExtendedColumnStart} ${gridBasicColumnStart} ${gridNarrowColumnStart}] ${getColumns(6)} [${gridNarrowColumnEnd} ${gridBasicColumnEnd} ${gridExtendedColumnEnd}] ${outerColumn} [${gridFullColumnEnd}]`
194
- : `[${gridFullColumnStart}] ${outerColumn} [${gridExtendedColumnStart}] ${getColumns(1)} [${gridBasicColumnStart}] ${getColumns(2)} [${gridNarrowColumnStart}] ${getColumns(8)} [${gridNarrowColumnEnd}] ${getColumns(2)} [${gridBasicColumnEnd}] ${getColumns(1)} [${gridExtendedColumnEnd}] ${outerColumn} [${gridFullColumnEnd}]`;
195
- ({
196
- [_cssVariableGridSafeZone]: gridSafeZoneBase,
197
- [_cssVariableGridExtendedSpanOneHalf]: getColumnSpan(3),
198
- [_cssVariableGridBasicSpanOneHalf]: getColumnSpan(3),
199
- [_cssVariableGridBasicSpanOneThird]: getColumnSpan(2),
200
- [_cssVariableGridBasicSpanTwoThirds]: getColumnSpan(4),
201
- [_cssVariableGridNarrowSpanOneHalf]: getColumnSpan(3),
202
- display: 'grid',
203
- gridGap,
204
- gridTemplateColumns: getGridTemplateColumns('mobile'),
205
- minWidth: gridWidthMin,
206
- maxWidth: gridWidthMax,
207
- margin: 0,
208
- padding: `0 calc(50% - ${gridWidthMax} / 2)`,
209
- boxSizing: 'content-box',
210
- [getMediaQueryMin('s')]: {
211
- [_cssVariableGridExtendedSpanOneHalf]: getColumnSpan(7),
212
- [_cssVariableGridBasicSpanOneHalf]: getColumnSpan(6),
213
- [_cssVariableGridBasicSpanOneThird]: getColumnSpan(4),
214
- [_cssVariableGridBasicSpanTwoThirds]: getColumnSpan(8),
215
- [_cssVariableGridNarrowSpanOneHalf]: getColumnSpan(4),
216
- gridTemplateColumns: getGridTemplateColumns('desktop'),
217
- },
218
- [getMediaQueryMin('xxl')]: {
219
- [_cssVariableGridSafeZone]: gridSafeZoneXXL,
220
- },
221
- });
228
+ const gridNarrowOffsetXXL = _getGridOffsetXXL('narrow');
229
+
230
+ const gridNarrowOffset = {
231
+ base: gridNarrowOffsetBase,
232
+ s: gridNarrowOffsetS,
233
+ xxl: gridNarrowOffsetXXL,
234
+ };
222
235
 
223
236
  function getMediaQueryMax(max) {
224
- return `@media(max-width:${breakpoint[max].slice(0, -2) - 1}px)`;
237
+ return `@media(max-width:${breakpoint[max] - 1}px)`;
225
238
  }
226
239
 
227
240
  function getMediaQueryMinMax(min, max) {
228
- return `@media(min-width:${breakpoint[min]}) and (max-width:${breakpoint[max].slice(0, -2) - 1}px)`;
241
+ return `@media(min-width:${breakpoint[min]}px) and (max-width:${breakpoint[max] - 1}px)`;
229
242
  }
230
243
 
231
244
  const spacingStaticXSmall = '4px';
@@ -240,9 +253,11 @@ const spacingFluidXSmall = 'clamp(4px, 0.25vw + 3px, 8px)';
240
253
 
241
254
  const spacingFluidSmall = 'clamp(8px, 0.5vw + 6px, 16px)';
242
255
 
256
+ const spacingFluidLarge = 'clamp(32px, 2.75vw + 23px, 76px)';
257
+
243
258
  const themeDarkBackgroundShading = 'rgba(1, 2, 5, 0.67)';
244
259
 
245
- const _displayFontPartA = `${fontStyleItalic} ${fontVariant} ${fontWeightSemiBold$1} `;
260
+ const _displayFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightRegular} `;
246
261
  const _displayFontPartB = `/${fontLineHeight} ${fontFamily}`;
247
262
 
248
263
  const displayMediumStyle = {
@@ -253,7 +268,7 @@ const displayLargeStyle = {
253
268
  font: `${_displayFontPartA}${fontSizeDisplayLarge}${_displayFontPartB}`,
254
269
  };
255
270
 
256
- const _headingFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightSemiBold$1} `;
271
+ const _headingFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightSemiBold} `;
257
272
  const _headingFontPartB = `/${fontLineHeight} ${fontFamily}`;
258
273
 
259
274
  const headingSmallStyle = {
@@ -289,13 +304,18 @@ const textSmallStyle = {
289
304
  ...fontHyphenationStyle,
290
305
  };
291
306
 
307
+ const textLargeStyle = {
308
+ font: `${_textFontPartA}${fontSizeTextLarge}${_textFontPartB}`,
309
+ ...fontHyphenationStyle,
310
+ };
311
+
292
312
  // TODO: we shouldn't exclude xxl breakpoint
293
313
  const mediaQueries = Object.entries(breakpoint)
294
314
  .filter(([key]) => key !== 'xxl')
295
- .map(([, val]) => `(min-width:${val})`);
315
+ .map(([, val]) => `(min-width:${val}px)`);
296
316
  hasWindow && window.matchMedia ? mediaQueries.map(window.matchMedia) : [];
297
317
 
298
- Object.entries(breakpoint).reduce((result, [key, val]) => (Object.assign(Object.assign({}, result), { [val]: key })), {});
318
+ Object.entries(breakpoint).reduce((result, [key, val]) => (Object.assign(Object.assign({}, result), { [`${val}px`]: key })), {});
299
319
 
300
320
  const hasVisibleIcon = (iconName, iconSource) => {
301
321
  return iconName !== 'none' || !!iconSource;
@@ -505,12 +525,6 @@ var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symb
505
525
 
506
526
  var isBrowser = (typeof window === "undefined" ? "undefined" : _typeof$1(window)) === "object" && (typeof document === "undefined" ? "undefined" : _typeof$1(document)) === 'object' && document.nodeType === 9;
507
527
 
508
- var module$1 = /*#__PURE__*/Object.freeze({
509
- __proto__: null,
510
- default: isBrowser,
511
- isBrowser: isBrowser
512
- });
513
-
514
528
  var isProduction = process.env.NODE_ENV === 'production';
515
529
  function warning(condition, message) {
516
530
  if (!isProduction) {
@@ -1058,7 +1072,7 @@ function () {
1058
1072
 
1059
1073
  return ConditionalRule;
1060
1074
  }();
1061
- var keyRegExp = /@media|@supports\s+/;
1075
+ var keyRegExp = /@container|@media|@supports\s+/;
1062
1076
  var pluginConditionalRule = {
1063
1077
  onCreateRule: function onCreateRule(key, styles, options) {
1064
1078
  return keyRegExp.test(key) ? new ConditionalRule(key, styles, options) : null;
@@ -1355,7 +1369,7 @@ var pluginSimpleRule = {
1355
1369
  }
1356
1370
  };
1357
1371
 
1358
- var plugins$1 = [pluginStyleRule, pluginConditionalRule, pluginKeyframesRule, pluginKeyframeRule, pluginFontFaceRule, pluginViewportRule, pluginSimpleRule];
1372
+ var plugins = [pluginStyleRule, pluginConditionalRule, pluginKeyframesRule, pluginKeyframeRule, pluginFontFaceRule, pluginViewportRule, pluginSimpleRule];
1359
1373
 
1360
1374
  var defaultUpdateOptions = {
1361
1375
  process: true
@@ -2622,7 +2636,7 @@ var Jss =
2622
2636
  function () {
2623
2637
  function Jss(options) {
2624
2638
  this.id = instanceCounter++;
2625
- this.version = "10.9.2";
2639
+ this.version = "10.10.0";
2626
2640
  this.plugins = new PluginsRegistry();
2627
2641
  this.options = {
2628
2642
  id: {
@@ -2636,8 +2650,8 @@ function () {
2636
2650
  minify: false
2637
2651
  });
2638
2652
 
2639
- for (var i = 0; i < plugins$1.length; i++) {
2640
- this.plugins.use(plugins$1[i], {
2653
+ for (var i = 0; i < plugins.length; i++) {
2654
+ this.plugins.use(plugins[i], {
2641
2655
  queue: 'internal'
2642
2656
  });
2643
2657
  }
@@ -2902,54 +2916,24 @@ var jss_esm = /*#__PURE__*/Object.freeze({
2902
2916
  toCssValue: toCssValue
2903
2917
  });
2904
2918
 
2905
- function getAugmentedNamespace(n) {
2906
- if (n.__esModule) return n;
2907
- var f = n.default;
2908
- if (typeof f == "function") {
2909
- var a = function a () {
2910
- if (this instanceof a) {
2911
- var args = [null];
2912
- args.push.apply(args, arguments);
2913
- var Ctor = Function.bind.apply(f, args);
2914
- return new Ctor();
2915
- }
2916
- return f.apply(this, arguments);
2917
- };
2918
- a.prototype = f.prototype;
2919
- } else a = {};
2920
- Object.defineProperty(a, '__esModule', {value: true});
2921
- Object.keys(n).forEach(function (k) {
2922
- var d = Object.getOwnPropertyDescriptor(n, k);
2923
- Object.defineProperty(a, k, d.get ? d : {
2924
- enumerable: true,
2925
- get: function () {
2926
- return n[k];
2927
- }
2928
- });
2929
- });
2930
- return a;
2931
- }
2932
-
2933
2919
  /* eslint-disable no-var, prefer-template */
2934
2920
  var uppercasePattern = /[A-Z]/g;
2935
2921
  var msPattern = /^ms-/;
2936
- var cache$2 = {};
2922
+ var cache = {};
2937
2923
 
2938
2924
  function toHyphenLower(match) {
2939
2925
  return '-' + match.toLowerCase()
2940
2926
  }
2941
2927
 
2942
2928
  function hyphenateStyleName(name) {
2943
- if (cache$2.hasOwnProperty(name)) {
2944
- return cache$2[name]
2929
+ if (cache.hasOwnProperty(name)) {
2930
+ return cache[name]
2945
2931
  }
2946
2932
 
2947
2933
  var hName = name.replace(uppercasePattern, toHyphenLower);
2948
- return (cache$2[name] = msPattern.test(hName) ? '-' + hName : hName)
2934
+ return (cache[name] = msPattern.test(hName) ? '-' + hName : hName)
2949
2935
  }
2950
2936
 
2951
- var index_cjs = hyphenateStyleName;
2952
-
2953
2937
  /**
2954
2938
  * Convert camel cased property names to dash separated.
2955
2939
  */
@@ -2958,7 +2942,7 @@ function convertCase(style) {
2958
2942
  var converted = {};
2959
2943
 
2960
2944
  for (var prop in style) {
2961
- var key = prop.indexOf('--') === 0 ? prop : index_cjs(prop);
2945
+ var key = prop.indexOf('--') === 0 ? prop : hyphenateStyleName(prop);
2962
2946
  converted[key] = style[prop];
2963
2947
  }
2964
2948
 
@@ -2992,7 +2976,7 @@ function camelCase() {
2992
2976
  return value;
2993
2977
  }
2994
2978
 
2995
- var hyphenatedProp = index_cjs(prop); // There was no camel case in place
2979
+ var hyphenatedProp = hyphenateStyleName(prop); // There was no camel case in place
2996
2980
 
2997
2981
  if (prop === hyphenatedProp) return value;
2998
2982
  rule.prop(hyphenatedProp, value); // Core will ignore that property value we set the proper one above.
@@ -3297,6 +3281,34 @@ function jssNested() {
3297
3281
  };
3298
3282
  }
3299
3283
 
3284
+ function getAugmentedNamespace(n) {
3285
+ if (n.__esModule) return n;
3286
+ var f = n.default;
3287
+ if (typeof f == "function") {
3288
+ var a = function a () {
3289
+ if (this instanceof a) {
3290
+ var args = [null];
3291
+ args.push.apply(args, arguments);
3292
+ var Ctor = Function.bind.apply(f, args);
3293
+ return new Ctor();
3294
+ }
3295
+ return f.apply(this, arguments);
3296
+ };
3297
+ a.prototype = f.prototype;
3298
+ } else a = {};
3299
+ Object.defineProperty(a, '__esModule', {value: true});
3300
+ Object.keys(n).forEach(function (k) {
3301
+ var d = Object.getOwnPropertyDescriptor(n, k);
3302
+ Object.defineProperty(a, k, d.get ? d : {
3303
+ enumerable: true,
3304
+ get: function () {
3305
+ return n[k];
3306
+ }
3307
+ });
3308
+ });
3309
+ return a;
3310
+ }
3311
+
3300
3312
  var _tslib$1 = {};
3301
3313
 
3302
3314
  (function (exports) {
@@ -3705,10 +3717,10 @@ const themeLight = {
3705
3717
  contrastHighColor: '#535457',
3706
3718
  contrastHighColorDarken: '#353638',
3707
3719
  contrastHighColorLighten: '#717276',
3708
- hoverColor: 'rgba(148, 149, 152, 0.20)',
3720
+ hoverColor: 'rgba(148, 149, 152, .18)',
3709
3721
  hoverColorDarken: '#75767A',
3710
3722
  activeColor: 'rgba(148, 149, 152, 0.20)',
3711
- focusColor: '#0A0AFF',
3723
+ focusColor: '#1A44EA',
3712
3724
  disabledColor: '#949598',
3713
3725
  errorColor: '#E7323B',
3714
3726
  errorColorDarken: '#C51720',
@@ -3743,10 +3755,10 @@ const themeDark = {
3743
3755
  contrastHighColor: '#AFB0B3',
3744
3756
  contrastHighColorDarken: '#909195',
3745
3757
  contrastHighColorLighten: '#CECFD1',
3746
- hoverColor: 'rgba(126, 127, 130, 0.20)',
3747
- hoverColorDarken: '#606163',
3758
+ hoverColor: 'rgba(148, 149, 152, .18)',
3759
+ hoverColorDarken: '#75767A',
3748
3760
  activeColor: 'rgba(126, 127, 130, 0.20)',
3749
- focusColor: '#1E5BEB',
3761
+ focusColor: '#1A44EA',
3750
3762
  disabledColor: '#7E7F82',
3751
3763
  errorColor: '#CB3333',
3752
3764
  errorColorDarken: '#9A2727',
@@ -3791,13 +3803,10 @@ const addImportantToEachRule = (input) => {
3791
3803
  typeof value === 'object' ? addImportantToEachRule(value) : addImportantToRule(value)),
3792
3804
  result), {});
3793
3805
  };
3794
- const getHoverJssStyle = ({ theme } = { theme: 'light' }) => {
3795
- return {
3796
- transition: getTransition('color'),
3797
- '&:hover': {
3798
- color: getThemedColors(theme).hoverColor,
3799
- },
3800
- };
3806
+ // TODO: this is workaround, in order the colors to be bundled in the main bundle, we need to have at least one function here, which is used in project and which calls "getThemedColors"
3807
+ // TODO: This mechanism needs to be investigated as part of refactoring
3808
+ const doGetThemedColors = (theme = 'light') => {
3809
+ return getThemedColors(theme);
3801
3810
  };
3802
3811
  const getInsetJssStyle = (value = 0) => {
3803
3812
  value = value === 0 || value === 'auto' ? value : `${value}px`;
@@ -3808,6 +3817,14 @@ const getInsetJssStyle = (value = 0) => {
3808
3817
  bottom: value,
3809
3818
  };
3810
3819
  };
3820
+ // reset initial styles, e.g. in case link-pure is used with slotted anchor and nested within e.g. an accordion
3821
+ const getResetInitialStylesForSlottedAnchor = {
3822
+ margin: 0,
3823
+ padding: 0,
3824
+ outline: 0,
3825
+ borderRadius: 0,
3826
+ background: 'transparent',
3827
+ };
3811
3828
  const getFocusJssStyle = (opts) => {
3812
3829
  const { pseudo, offset: outlineOffset, color: outlineColor, } = Object.assign({ color: 'currentColor', offset: 2 }, opts);
3813
3830
  return pseudo
@@ -3926,14 +3943,14 @@ const buildResponsiveStyles = (rawValue, getJssStyle) => {
3926
3943
  [getMediaQueryMin(breakpointValue)]: getJssStyle(value[breakpointValue]) })), getJssStyle(value.base))
3927
3944
  : getJssStyle(value);
3928
3945
  };
3929
- const isObject$1 = (obj) => typeof obj === 'object' && !Array.isArray(obj);
3946
+ const isObject = (obj) => typeof obj === 'object' && !Array.isArray(obj);
3930
3947
  // NOTE: taken from https://stackoverflow.com/a/48218209
3931
3948
  const mergeDeep = (...objects) => {
3932
3949
  return objects.reduce((prev, obj) => {
3933
3950
  Object.keys(obj).forEach((key) => {
3934
3951
  const pVal = prev[key];
3935
3952
  const oVal = obj[key];
3936
- if (isObject$1(pVal) && isObject$1(oVal)) {
3953
+ if (isObject(pVal) && isObject(oVal)) {
3937
3954
  prev[key] = mergeDeep(pVal, oVal);
3938
3955
  }
3939
3956
  else {
@@ -3944,2063 +3961,191 @@ const mergeDeep = (...objects) => {
3944
3961
  }, {});
3945
3962
  };
3946
3963
 
3947
- [
3948
- { name: 'Model', id: 'model' },
3949
- { name: 'Interest', id: 'interest' },
3950
- { name: 'VIN', id: 'vin' },
3951
- { name: 'Purchase Intention', id: 'purchaseIntention' },
3952
- { name: 'Status', id: 'status' },
3953
- { name: 'Comment', id: 'comment' },
3954
- { name: 'Lead ID', id: 'leadId' },
3955
- { name: 'Action', id: 'action', hideLabel: true },
3956
- ].map((item, i) => ({
3957
- ...item,
3958
- ...(i > 0 &&
3959
- i < 7 &&
3960
- i !== 5 && {
3961
- active: i === 1,
3962
- direction: 'asc',
3963
- }),
3964
- }));
3965
-
3966
- [
3967
- { name: 'Column 1', id: 'col1' },
3968
- { name: 'Column 2', id: 'col2' },
3969
- { name: 'Column 3', id: 'col3' },
3970
- ].map((item, i) => ({
3971
- ...item,
3972
- active: i === 1,
3973
- direction: 'asc',
3974
- }));
3975
-
3976
- Array.from(Array(4)).map(() => ({
3977
- imageUrl: 'https://nav.porsche.com/00BC524/series-assets/1366/911@2x.jpg',
3978
- imageWidth: 80,
3979
- imageHeight: 48,
3980
- html: "<a href='#'>link</a>&nbsp;<b>bold</b>&nbsp;<i>italic</i>&nbsp;<strong>strong</strong>&nbsp;<em>emphasized</em>",
3981
- longText: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr',
3982
- shortText: 'Some text',
3983
- }));
3984
-
3985
- var now = Date.now();
3986
- var fnValuesNs = "fnValues" + now;
3987
- var fnRuleNs = "fnStyle" + ++now;
3988
-
3989
- var functionPlugin = function functionPlugin() {
3990
- return {
3991
- onCreateRule: function onCreateRule(name, decl, options) {
3992
- if (typeof decl !== 'function') return null;
3993
- var rule = createRule(name, {}, options);
3994
- rule[fnRuleNs] = decl;
3995
- return rule;
3996
- },
3997
- onProcessStyle: function onProcessStyle(style, rule) {
3998
- // We need to extract function values from the declaration, so that we can keep core unaware of them.
3999
- // We need to do that only once.
4000
- // We don't need to extract functions on each style update, since this can happen only once.
4001
- // We don't support function values inside of function rules.
4002
- if (fnValuesNs in rule || fnRuleNs in rule) return style;
4003
- var fnValues = {};
4004
-
4005
- for (var prop in style) {
4006
- var value = style[prop];
4007
- if (typeof value !== 'function') continue;
4008
- delete style[prop];
4009
- fnValues[prop] = value;
4010
- }
4011
-
4012
- rule[fnValuesNs] = fnValues;
4013
- return style;
4014
- },
4015
- onUpdate: function onUpdate(data, rule, sheet, options) {
4016
- var styleRule = rule;
4017
- var fnRule = styleRule[fnRuleNs]; // If we have a style function, the entire rule is dynamic and style object
4018
- // will be returned from that function.
4019
-
4020
- if (fnRule) {
4021
- // Empty object will remove all currently defined props
4022
- // in case function rule returns a falsy value.
4023
- styleRule.style = fnRule(data) || {};
4024
-
4025
- if (process.env.NODE_ENV === 'development') {
4026
- for (var prop in styleRule.style) {
4027
- if (typeof styleRule.style[prop] === 'function') {
4028
- process.env.NODE_ENV !== "production" ? warning(false, '[JSS] Function values inside function rules are not supported.') : void 0;
4029
- break;
4030
- }
4031
- }
4032
- }
4033
- }
4034
-
4035
- var fnValues = styleRule[fnValuesNs]; // If we have a fn values map, it is a rule with function values.
4036
-
4037
- if (fnValues) {
4038
- for (var _prop in fnValues) {
4039
- styleRule.prop(_prop, fnValues[_prop](data), options);
4040
- }
4041
- }
4042
- }
4043
- };
3964
+ const isThemeDark = (theme) => {
3965
+ return theme === 'dark';
4044
3966
  };
4045
3967
 
4046
- function symbolObservablePonyfill(root) {
4047
- var result;
4048
- var Symbol = root.Symbol;
4049
-
4050
- if (typeof Symbol === 'function') {
4051
- if (Symbol.observable) {
4052
- result = Symbol.observable;
4053
- } else {
4054
- result = Symbol('observable');
4055
- Symbol.observable = result;
4056
- }
4057
- } else {
4058
- result = '@@observable';
4059
- }
4060
-
4061
- return result;
4062
- }
4063
-
4064
- /* global window */
3968
+ const hasDocument = typeof document !== 'undefined';
4065
3969
 
4066
- var root;
3970
+ hasDocument && 'scrollBehavior' in document.documentElement.style;
4067
3971
 
4068
- if (typeof self !== 'undefined') {
4069
- root = self;
4070
- } else if (typeof window !== 'undefined') {
4071
- root = window;
4072
- } else if (typeof global !== 'undefined') {
4073
- root = global;
4074
- } else if (typeof module !== 'undefined') {
4075
- root = module;
4076
- } else {
4077
- root = Function('return this')();
4078
- }
3972
+ const formatObjectOutput = (value) => {
3973
+ return JSON.stringify(value)
3974
+ .replace(/"([a-zA-Z?]+)":/g, '$1:') // remove double quotes from keys
3975
+ .replace(/([,:{])/g, '$1 ') // add space after following: ,:{
3976
+ .replace(/(})/g, ' $1') // add space before following: }
3977
+ .replace(/^"(.+)"$/, '$1'); // remove wrapping double quotes
3978
+ };
3979
+ 'value, ' +
3980
+ formatObjectOutput(BREAKPOINTS.reduce((prev, key) => (Object.assign(Object.assign({}, prev), { [key + (key !== 'base' ? '?' : '')]: 'value' })), {})).replace(/"/g, '');
4079
3981
 
4080
- var result = symbolObservablePonyfill(root);
3982
+ const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
4081
3983
 
4082
- var isObservable = function isObservable(value) {
4083
- return value && value[result] && value === value[result]();
3984
+ const getComponentCss$W = (size, compact, open, theme) => {
3985
+ const { primaryColor, hoverColor, focusColor, contrastLowColor } = getThemedColors(theme);
3986
+ const border = `1px solid ${contrastLowColor}`;
3987
+ return getCss(Object.assign(Object.assign({ '@global': {
3988
+ ':host': addImportantToEachRule(Object.assign({ display: 'block' }, hostHiddenStyles)),
3989
+ button: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', position: 'relative', justifyContent: 'space-between', margin: '2px 0', width: '100%', textDecoration: 'none', border: 0, outline: 0, gap: '24px', background: 'transparent', cursor: 'pointer', textAlign: 'left', color: primaryColor }, textSmallStyle), { fontWeight: fontWeight.semiBold }), buildResponsiveStyles(size, (s) => ({
3990
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
3991
+ // @ts-ignore
3992
+ fontSize: fontSizeText[s],
3993
+ padding: compact ? '4px 0' : `${s === 'medium' ? '20px' : '12px'} 0`,
3994
+ }))), mergeDeep({
3995
+ '&::before': Object.assign({ content: '""', position: 'absolute', borderRadius: borderRadiusSmall, left: '-4px', right: '-4px' }, (compact
3996
+ ? {
3997
+ top: '2px',
3998
+ bottom: '2px',
3999
+ }
4000
+ : {
4001
+ top: '6px',
4002
+ bottom: '6px',
4003
+ })),
4004
+ }, hoverMediaQuery({
4005
+ '&::before': {
4006
+ transition: getTransition('background-color'),
4007
+ },
4008
+ '&:hover::before': {
4009
+ background: hoverColor,
4010
+ },
4011
+ }))), { '&:focus::before': {
4012
+ border: `${borderWidthBase} solid ${focusColor}`,
4013
+ }, '&:not(:focus-visible)::before': {
4014
+ border: 0,
4015
+ } }),
4016
+ } }, (!compact && {
4017
+ root: {
4018
+ borderBottom: border,
4019
+ },
4020
+ })), { heading: {
4021
+ margin: 0,
4022
+ padding: 0,
4023
+ }, icon: {
4024
+ width: fontLineHeight,
4025
+ height: fontLineHeight,
4026
+ transformOrigin: '50% 50%',
4027
+ transform: open ? 'rotate3d(0)' : 'rotate3d(0,0,1,90deg)',
4028
+ transition: getTransition('transform'),
4029
+ }, collapsible: Object.assign({ color: primaryColor, padding: 0, overflow: 'hidden' }, (open
4030
+ ? {
4031
+ height: 'auto',
4032
+ paddingBottom: compact ? spacingStaticSmall : '24px',
4033
+ visibility: 'visible',
4034
+ transition: getTransition('height') + `,visibility ${transitionDuration}`,
4035
+ animation: `$open ${transitionDuration} ease forwards`,
4036
+ }
4037
+ : {
4038
+ height: 0,
4039
+ visibility: 'hidden',
4040
+ transition: getTransition('height') + `,visibility ${transitionDuration} linear ${transitionDuration}`,
4041
+ })),
4042
+ // TODO: this doesn't get shortened and results in `keyframes-open` for some unknown reason
4043
+ '@keyframes open': {
4044
+ '0%,99%': {
4045
+ overflow: 'hidden',
4046
+ },
4047
+ '100%': {
4048
+ overflow: 'visible',
4049
+ },
4050
+ } }));
4084
4051
  };
4085
4052
 
4086
- var observablePlugin = function observablePlugin(updateOptions) {
4087
- return {
4088
- onCreateRule: function onCreateRule(name, decl, options) {
4089
- if (!isObservable(decl)) return null;
4090
- var style$ = decl;
4091
- var rule = createRule(name, {}, options); // TODO
4092
- // Call `stream.subscribe()` returns a subscription, which should be explicitly
4093
- // unsubscribed from when we know this sheet is no longer needed.
4094
-
4095
- style$.subscribe(function (style) {
4096
- for (var prop in style) {
4097
- rule.prop(prop, style[prop], updateOptions);
4053
+ const easeInQuad = 'cubic-bezier(0.45,0,0.55,1)';
4054
+ const easeOutQuad = 'cubic-bezier(0.5,1,0.89,1)';
4055
+ const ANIMATION_DURATION = 600;
4056
+ const getAnimationIn = (keyframesName, durationVar) => {
4057
+ const duration = durationVar ? `var(${durationVar},${ANIMATION_DURATION}ms)` : `${ANIMATION_DURATION}ms`;
4058
+ return {
4059
+ animation: `${duration} $${keyframesName} ${easeInQuad} forwards`,
4060
+ };
4061
+ };
4062
+ const getAnimationOut = (keyframesName) => ({
4063
+ animation: addImportantToRule(`${ANIMATION_DURATION}ms $${keyframesName} ${easeOutQuad} forwards`),
4064
+ });
4065
+ const getKeyframes = (direction, outsideStyle) => {
4066
+ const insideStyle = { opacity: 1, transform: 'translate3d(0,0,0)' };
4067
+ return direction === 'in'
4068
+ ? {
4069
+ from: outsideStyle,
4070
+ to: insideStyle,
4098
4071
  }
4099
- });
4100
- return rule;
4101
- },
4102
- onProcessRule: function onProcessRule(rule) {
4103
- if (rule && rule.type !== 'style') return;
4104
- var styleRule = rule;
4105
- var style = styleRule.style;
4106
-
4107
- var _loop = function _loop(prop) {
4108
- var value = style[prop];
4109
- if (!isObservable(value)) return "continue";
4110
- delete style[prop];
4111
- value.subscribe({
4112
- next: function next(nextValue) {
4113
- styleRule.prop(prop, nextValue, updateOptions);
4114
- }
4115
- });
4116
- };
4072
+ : {
4073
+ from: insideStyle,
4074
+ to: outsideStyle,
4075
+ };
4076
+ };
4077
+ const getKeyframesMobile = (direction, bottomVar) => getKeyframes(direction, {
4078
+ opacity: 0,
4079
+ transform: `translate3d(0,calc(var(${bottomVar}) + 100%),0)`, // space before and after "+" is crucial
4080
+ });
4117
4081
 
4118
- for (var prop in style) {
4119
- var _ret = _loop(prop);
4082
+ const TOAST_Z_INDEX = 999999;
4083
+ const MODAL_Z_INDEX = 99999;
4084
+ const POPOVER_Z_INDEX = 9999;
4085
+ const BANNER_Z_INDEX = 99;
4120
4086
 
4121
- if (_ret === "continue") continue;
4122
- }
4123
- }
4124
- };
4087
+ const cssVariableTop = '--p-banner-position-top';
4088
+ const cssVariableBottom = '--p-banner-position-bottom';
4089
+ const cssVariableAnimationDuration = '--p-animation-duration';
4090
+ const cssVariableZIndex = '--p-internal-banner-z-index';
4091
+ const mediaQueryBaseToS = getMediaQueryMinMax('base', 's');
4092
+ const mediaQueryS$1 = getMediaQueryMin('s');
4093
+ const mediaQueryXXL$1 = getMediaQueryMin('xxl');
4094
+ const getKeyframesDesktop = (direction, topVar) => getKeyframes(direction, {
4095
+ opacity: 0,
4096
+ transform: `translate3d(0,calc(-100% - var(${topVar})),0)`, // space before and after "-" is crucial
4097
+ });
4098
+ const getComponentCss$V = () => {
4099
+ return getCss({
4100
+ '@global': {
4101
+ ':host': Object.assign(Object.assign({ opacity: 0 }, addImportantToEachRule(Object.assign(Object.assign(Object.assign({ [cssVariableTop]: '56px', [cssVariableBottom]: '56px', position: 'fixed', top: 'auto', bottom: `var(${cssVariableBottom})`, left: gridExtendedOffsetBase, right: gridExtendedOffsetBase, margin: 0, padding: 0, width: 'auto', zIndex: `var(${cssVariableZIndex},${BANNER_Z_INDEX})`, willChange: 'opacity,transform' }, dropShadowHighStyle), { [mediaQueryS$1]: {
4102
+ top: `var(${cssVariableTop})`,
4103
+ bottom: 'auto',
4104
+ left: gridExtendedOffsetS,
4105
+ right: gridExtendedOffsetS,
4106
+ }, [mediaQueryXXL$1]: {
4107
+ left: gridExtendedOffsetXXL,
4108
+ right: gridExtendedOffsetXXL,
4109
+ } }), hostHiddenStyles))), { '&(.hydrated),&(.ssr)': {
4110
+ [mediaQueryBaseToS]: getAnimationIn('mobileIn', cssVariableAnimationDuration),
4111
+ [mediaQueryS$1]: getAnimationIn('desktopIn', cssVariableAnimationDuration),
4112
+ }, '&(.banner--close)': {
4113
+ [mediaQueryBaseToS]: getAnimationOut('mobileOut'),
4114
+ [mediaQueryS$1]: getAnimationOut('desktopOut'),
4115
+ } }),
4116
+ '@keyframes mobileIn': getKeyframesMobile('in', cssVariableBottom),
4117
+ '@keyframes mobileOut': getKeyframesMobile('out', cssVariableBottom),
4118
+ '@keyframes desktopIn': getKeyframesDesktop('in', cssVariableTop),
4119
+ '@keyframes desktopOut': getKeyframesDesktop('out', cssVariableTop),
4120
+ },
4121
+ });
4125
4122
  };
4126
4123
 
4127
- var semiWithNl = /;\n/;
4128
- /**
4129
- * Naive CSS parser.
4130
- * - Supports only rule body (no selectors)
4131
- * - Requires semicolon and new line after the value (except of last line)
4132
- * - No nested rules support
4133
- */
4124
+ const groupDirectionJssStyles = {
4125
+ column: {
4126
+ flexFlow: 'column nowrap',
4127
+ alignItems: 'stretch',
4128
+ },
4129
+ row: {
4130
+ flexFlow: 'row wrap',
4131
+ alignItems: 'center',
4132
+ },
4133
+ };
4134
+ const getGroupDirectionJssStyles = (direction) => {
4135
+ return groupDirectionJssStyles[direction];
4136
+ };
4134
4137
 
4135
- var parse = function parse(cssText) {
4136
- var style = {};
4137
- var split = cssText.split(semiWithNl);
4138
-
4139
- for (var i = 0; i < split.length; i++) {
4140
- var decl = (split[i] || '').trim();
4141
- if (!decl) continue;
4142
- var colonIndex = decl.indexOf(':');
4143
-
4144
- if (colonIndex === -1) {
4145
- process.env.NODE_ENV !== "production" ? warning(false, "[JSS] Malformed CSS string \"" + decl + "\"") : void 0;
4146
- continue;
4147
- }
4148
-
4149
- var prop = decl.substr(0, colonIndex).trim();
4150
- var value = decl.substr(colonIndex + 1).trim();
4151
- style[prop] = value;
4152
- }
4153
-
4154
- return style;
4155
- };
4156
-
4157
- var onProcessRule = function onProcessRule(rule) {
4158
- if (typeof rule.style === 'string') {
4159
- rule.style = parse(rule.style);
4160
- }
4161
- };
4162
-
4163
- function templatePlugin() {
4164
- return {
4165
- onProcessRule: onProcessRule
4166
- };
4167
- }
4168
-
4169
- var isObject = function isObject(obj) {
4170
- return obj && typeof obj === 'object' && !Array.isArray(obj);
4171
- };
4172
-
4173
- var valueNs = "extendCurrValue" + Date.now();
4174
-
4175
- function mergeExtend(style, rule, sheet, newStyle) {
4176
- var extendType = typeof style.extend; // Extend using a rule name.
4177
-
4178
- if (extendType === 'string') {
4179
- if (!sheet) return;
4180
- var refRule = sheet.getRule(style.extend);
4181
- if (!refRule) return;
4182
-
4183
- if (refRule === rule) {
4184
- process.env.NODE_ENV !== "production" ? warning(false, "[JSS] A rule tries to extend itself \n" + rule.toString()) : void 0;
4185
- return;
4186
- }
4187
-
4188
- var parent = refRule.options.parent;
4189
-
4190
- if (parent) {
4191
- var originalStyle = parent.rules.raw[style.extend];
4192
- extend(originalStyle, rule, sheet, newStyle);
4193
- }
4194
-
4195
- return;
4196
- } // Extend using an array.
4197
-
4198
-
4199
- if (Array.isArray(style.extend)) {
4200
- for (var index = 0; index < style.extend.length; index++) {
4201
- var singleExtend = style.extend[index];
4202
- var singleStyle = typeof singleExtend === 'string' ? _extends({}, style, {
4203
- extend: singleExtend
4204
- }) : style.extend[index];
4205
- extend(singleStyle, rule, sheet, newStyle);
4206
- }
4207
-
4208
- return;
4209
- } // Extend is a style object.
4210
-
4211
-
4212
- for (var prop in style.extend) {
4213
- if (prop === 'extend') {
4214
- extend(style.extend.extend, rule, sheet, newStyle);
4215
- continue;
4216
- }
4217
-
4218
- if (isObject(style.extend[prop])) {
4219
- if (!(prop in newStyle)) newStyle[prop] = {};
4220
- extend(style.extend[prop], rule, sheet, newStyle[prop]);
4221
- continue;
4222
- }
4223
-
4224
- newStyle[prop] = style.extend[prop];
4225
- }
4226
- }
4227
-
4228
- function mergeRest(style, rule, sheet, newStyle) {
4229
- // Copy base style.
4230
- for (var prop in style) {
4231
- if (prop === 'extend') continue;
4232
-
4233
- if (isObject(newStyle[prop]) && isObject(style[prop])) {
4234
- extend(style[prop], rule, sheet, newStyle[prop]);
4235
- continue;
4236
- }
4237
-
4238
- if (isObject(style[prop])) {
4239
- newStyle[prop] = extend(style[prop], rule, sheet);
4240
- continue;
4241
- }
4242
-
4243
- newStyle[prop] = style[prop];
4244
- }
4245
- }
4246
- /**
4247
- * Recursively extend styles.
4248
- */
4249
-
4250
-
4251
- function extend(style, rule, sheet, newStyle) {
4252
- if (newStyle === void 0) {
4253
- newStyle = {};
4254
- }
4255
-
4256
- mergeExtend(style, rule, sheet, newStyle);
4257
- mergeRest(style, rule, sheet, newStyle);
4258
- return newStyle;
4259
- }
4260
- /**
4261
- * Handle `extend` property.
4262
- */
4263
-
4264
-
4265
- function jssExtend() {
4266
- function onProcessStyle(style, rule, sheet) {
4267
- if ('extend' in style) return extend(style, rule, sheet);
4268
- return style;
4269
- }
4270
-
4271
- function onChangeValue(value, prop, rule) {
4272
- if (prop !== 'extend') return value; // Value is empty, remove properties set previously.
4273
-
4274
- if (value == null || value === false) {
4275
- for (var key in rule[valueNs]) {
4276
- rule.prop(key, null);
4277
- }
4278
-
4279
- rule[valueNs] = null;
4280
- return null;
4281
- }
4282
-
4283
- if (typeof value === 'object') {
4284
- for (var _key in value) {
4285
- rule.prop(_key, value[_key]);
4286
- }
4287
-
4288
- rule[valueNs] = value;
4289
- } // Make sure we don't set the value in the core.
4290
-
4291
-
4292
- return null;
4293
- }
4294
-
4295
- return {
4296
- onProcessStyle: onProcessStyle,
4297
- onChangeValue: onChangeValue
4298
- };
4299
- }
4300
-
4301
- /**
4302
- * Set selector.
4303
- *
4304
- * @param original rule
4305
- * @param className class string
4306
- * @return flag indicating function was successfull or not
4307
- */
4308
-
4309
- function registerClass(rule, className) {
4310
- // Skip falsy values
4311
- if (!className) return true; // Support array of class names `{composes: ['foo', 'bar']}`
4312
-
4313
- if (Array.isArray(className)) {
4314
- for (var index = 0; index < className.length; index++) {
4315
- var isSetted = registerClass(rule, className[index]);
4316
- if (!isSetted) return false;
4317
- }
4318
-
4319
- return true;
4320
- } // Support space separated class names `{composes: 'foo bar'}`
4321
-
4322
-
4323
- if (className.indexOf(' ') > -1) {
4324
- return registerClass(rule, className.split(' '));
4325
- }
4326
-
4327
- var parent = rule.options.parent; // It is a ref to a local rule.
4328
-
4329
- if (className[0] === '$') {
4330
- var refRule = parent.getRule(className.substr(1));
4331
-
4332
- if (!refRule) {
4333
- process.env.NODE_ENV !== "production" ? warning(false, "[JSS] Referenced rule is not defined. \n" + rule.toString()) : void 0;
4334
- return false;
4335
- }
4336
-
4337
- if (refRule === rule) {
4338
- process.env.NODE_ENV !== "production" ? warning(false, "[JSS] Cyclic composition detected. \n" + rule.toString()) : void 0;
4339
- return false;
4340
- }
4341
-
4342
- parent.classes[rule.key] += " " + parent.classes[refRule.key];
4343
- return true;
4344
- }
4345
-
4346
- parent.classes[rule.key] += " " + className;
4347
- return true;
4348
- }
4349
- /**
4350
- * Convert compose property to additional class, remove property from original styles.
4351
- */
4352
-
4353
-
4354
- function jssCompose() {
4355
- function onProcessStyle(style, rule) {
4356
- if (!('composes' in style)) return style;
4357
- registerClass(rule, style.composes); // Remove composes property to prevent infinite loop.
4358
-
4359
- delete style.composes;
4360
- return style;
4361
- }
4362
-
4363
- return {
4364
- onProcessStyle: onProcessStyle
4365
- };
4366
- }
4367
-
4368
- var px = hasCSSTOMSupport && CSS ? CSS.px : 'px';
4369
- var ms = hasCSSTOMSupport && CSS ? CSS.ms : 'ms';
4370
- var percent = hasCSSTOMSupport && CSS ? CSS.percent : '%';
4371
- /**
4372
- * Generated jss-plugin-default-unit CSS property units
4373
- */
4374
-
4375
- var defaultUnits = {
4376
- // Animation properties
4377
- 'animation-delay': ms,
4378
- 'animation-duration': ms,
4379
- // Background properties
4380
- 'background-position': px,
4381
- 'background-position-x': px,
4382
- 'background-position-y': px,
4383
- 'background-size': px,
4384
- // Border Properties
4385
- border: px,
4386
- 'border-bottom': px,
4387
- 'border-bottom-left-radius': px,
4388
- 'border-bottom-right-radius': px,
4389
- 'border-bottom-width': px,
4390
- 'border-left': px,
4391
- 'border-left-width': px,
4392
- 'border-radius': px,
4393
- 'border-right': px,
4394
- 'border-right-width': px,
4395
- 'border-top': px,
4396
- 'border-top-left-radius': px,
4397
- 'border-top-right-radius': px,
4398
- 'border-top-width': px,
4399
- 'border-width': px,
4400
- 'border-block': px,
4401
- 'border-block-end': px,
4402
- 'border-block-end-width': px,
4403
- 'border-block-start': px,
4404
- 'border-block-start-width': px,
4405
- 'border-block-width': px,
4406
- 'border-inline': px,
4407
- 'border-inline-end': px,
4408
- 'border-inline-end-width': px,
4409
- 'border-inline-start': px,
4410
- 'border-inline-start-width': px,
4411
- 'border-inline-width': px,
4412
- 'border-start-start-radius': px,
4413
- 'border-start-end-radius': px,
4414
- 'border-end-start-radius': px,
4415
- 'border-end-end-radius': px,
4416
- // Margin properties
4417
- margin: px,
4418
- 'margin-bottom': px,
4419
- 'margin-left': px,
4420
- 'margin-right': px,
4421
- 'margin-top': px,
4422
- 'margin-block': px,
4423
- 'margin-block-end': px,
4424
- 'margin-block-start': px,
4425
- 'margin-inline': px,
4426
- 'margin-inline-end': px,
4427
- 'margin-inline-start': px,
4428
- // Padding properties
4429
- padding: px,
4430
- 'padding-bottom': px,
4431
- 'padding-left': px,
4432
- 'padding-right': px,
4433
- 'padding-top': px,
4434
- 'padding-block': px,
4435
- 'padding-block-end': px,
4436
- 'padding-block-start': px,
4437
- 'padding-inline': px,
4438
- 'padding-inline-end': px,
4439
- 'padding-inline-start': px,
4440
- // Mask properties
4441
- 'mask-position-x': px,
4442
- 'mask-position-y': px,
4443
- 'mask-size': px,
4444
- // Width and height properties
4445
- height: px,
4446
- width: px,
4447
- 'min-height': px,
4448
- 'max-height': px,
4449
- 'min-width': px,
4450
- 'max-width': px,
4451
- // Position properties
4452
- bottom: px,
4453
- left: px,
4454
- top: px,
4455
- right: px,
4456
- inset: px,
4457
- 'inset-block': px,
4458
- 'inset-block-end': px,
4459
- 'inset-block-start': px,
4460
- 'inset-inline': px,
4461
- 'inset-inline-end': px,
4462
- 'inset-inline-start': px,
4463
- // Shadow properties
4464
- 'box-shadow': px,
4465
- 'text-shadow': px,
4466
- // Column properties
4467
- 'column-gap': px,
4468
- 'column-rule': px,
4469
- 'column-rule-width': px,
4470
- 'column-width': px,
4471
- // Font and text properties
4472
- 'font-size': px,
4473
- 'font-size-delta': px,
4474
- 'letter-spacing': px,
4475
- 'text-decoration-thickness': px,
4476
- 'text-indent': px,
4477
- 'text-stroke': px,
4478
- 'text-stroke-width': px,
4479
- 'word-spacing': px,
4480
- // Motion properties
4481
- motion: px,
4482
- 'motion-offset': px,
4483
- // Outline properties
4484
- outline: px,
4485
- 'outline-offset': px,
4486
- 'outline-width': px,
4487
- // Perspective properties
4488
- perspective: px,
4489
- 'perspective-origin-x': percent,
4490
- 'perspective-origin-y': percent,
4491
- // Transform properties
4492
- 'transform-origin': percent,
4493
- 'transform-origin-x': percent,
4494
- 'transform-origin-y': percent,
4495
- 'transform-origin-z': percent,
4496
- // Transition properties
4497
- 'transition-delay': ms,
4498
- 'transition-duration': ms,
4499
- // Alignment properties
4500
- 'vertical-align': px,
4501
- 'flex-basis': px,
4502
- // Some random properties
4503
- 'shape-margin': px,
4504
- size: px,
4505
- gap: px,
4506
- // Grid properties
4507
- grid: px,
4508
- 'grid-gap': px,
4509
- 'row-gap': px,
4510
- 'grid-row-gap': px,
4511
- 'grid-column-gap': px,
4512
- 'grid-template-rows': px,
4513
- 'grid-template-columns': px,
4514
- 'grid-auto-rows': px,
4515
- 'grid-auto-columns': px,
4516
- // Not existing properties.
4517
- // Used to avoid issues with jss-plugin-expand integration.
4518
- 'box-shadow-x': px,
4519
- 'box-shadow-y': px,
4520
- 'box-shadow-blur': px,
4521
- 'box-shadow-spread': px,
4522
- 'font-line-height': px,
4523
- 'text-shadow-x': px,
4524
- 'text-shadow-y': px,
4525
- 'text-shadow-blur': px
4526
- };
4527
-
4528
- /**
4529
- * Clones the object and adds a camel cased property version.
4530
- */
4531
-
4532
- function addCamelCasedVersion(obj) {
4533
- var regExp = /(-[a-z])/g;
4534
-
4535
- var replace = function replace(str) {
4536
- return str[1].toUpperCase();
4537
- };
4538
-
4539
- var newObj = {};
4540
-
4541
- for (var key in obj) {
4542
- newObj[key] = obj[key];
4543
- newObj[key.replace(regExp, replace)] = obj[key];
4544
- }
4545
-
4546
- return newObj;
4547
- }
4548
-
4549
- var units = addCamelCasedVersion(defaultUnits);
4550
- /**
4551
- * Recursive deep style passing function
4552
- */
4553
-
4554
- function iterate(prop, value, options) {
4555
- if (value == null) return value;
4556
-
4557
- if (Array.isArray(value)) {
4558
- for (var i = 0; i < value.length; i++) {
4559
- value[i] = iterate(prop, value[i], options);
4560
- }
4561
- } else if (typeof value === 'object') {
4562
- if (prop === 'fallbacks') {
4563
- for (var innerProp in value) {
4564
- value[innerProp] = iterate(innerProp, value[innerProp], options);
4565
- }
4566
- } else {
4567
- for (var _innerProp in value) {
4568
- value[_innerProp] = iterate(prop + "-" + _innerProp, value[_innerProp], options);
4569
- }
4570
- } // eslint-disable-next-line no-restricted-globals
4571
-
4572
- } else if (typeof value === 'number' && isNaN(value) === false) {
4573
- var unit = options[prop] || units[prop]; // Add the unit if available, except for the special case of 0px.
4574
-
4575
- if (unit && !(value === 0 && unit === px)) {
4576
- return typeof unit === 'function' ? unit(value).toString() : "" + value + unit;
4577
- }
4578
-
4579
- return value.toString();
4580
- }
4581
-
4582
- return value;
4583
- }
4584
- /**
4585
- * Add unit to numeric values.
4586
- */
4587
-
4588
-
4589
- function defaultUnit(options) {
4590
- if (options === void 0) {
4591
- options = {};
4592
- }
4593
-
4594
- var camelCasedOptions = addCamelCasedVersion(options);
4595
-
4596
- function onProcessStyle(style, rule) {
4597
- if (rule.type !== 'style') return style;
4598
-
4599
- for (var prop in style) {
4600
- style[prop] = iterate(prop, style[prop], camelCasedOptions);
4601
- }
4602
-
4603
- return style;
4604
- }
4605
-
4606
- function onChangeValue(value, prop) {
4607
- return iterate(prop, value, camelCasedOptions);
4608
- }
4609
-
4610
- return {
4611
- onProcessStyle: onProcessStyle,
4612
- onChangeValue: onChangeValue
4613
- };
4614
- }
4615
-
4616
- /**
4617
- * A scheme for converting properties from array to regular style.
4618
- * All properties listed below will be transformed to a string separated by space.
4619
- */
4620
- var propArray = {
4621
- 'background-size': true,
4622
- 'background-position': true,
4623
- border: true,
4624
- 'border-bottom': true,
4625
- 'border-left': true,
4626
- 'border-top': true,
4627
- 'border-right': true,
4628
- 'border-radius': true,
4629
- 'border-image': true,
4630
- 'border-width': true,
4631
- 'border-style': true,
4632
- 'border-color': true,
4633
- 'box-shadow': true,
4634
- flex: true,
4635
- margin: true,
4636
- padding: true,
4637
- outline: true,
4638
- 'transform-origin': true,
4639
- transform: true,
4640
- transition: true
4641
- /**
4642
- * A scheme for converting arrays to regular styles inside of objects.
4643
- * For e.g.: "{position: [0, 0]}" => "background-position: 0 0;".
4644
- */
4645
-
4646
- };
4647
- var propArrayInObj = {
4648
- position: true,
4649
- // background-position
4650
- size: true // background-size
4651
-
4652
- /**
4653
- * A scheme for parsing and building correct styles from passed objects.
4654
- */
4655
-
4656
- };
4657
- var propObj = {
4658
- padding: {
4659
- top: 0,
4660
- right: 0,
4661
- bottom: 0,
4662
- left: 0
4663
- },
4664
- margin: {
4665
- top: 0,
4666
- right: 0,
4667
- bottom: 0,
4668
- left: 0
4669
- },
4670
- background: {
4671
- attachment: null,
4672
- color: null,
4673
- image: null,
4674
- position: null,
4675
- repeat: null
4676
- },
4677
- border: {
4678
- width: null,
4679
- style: null,
4680
- color: null
4681
- },
4682
- 'border-top': {
4683
- width: null,
4684
- style: null,
4685
- color: null
4686
- },
4687
- 'border-right': {
4688
- width: null,
4689
- style: null,
4690
- color: null
4691
- },
4692
- 'border-bottom': {
4693
- width: null,
4694
- style: null,
4695
- color: null
4696
- },
4697
- 'border-left': {
4698
- width: null,
4699
- style: null,
4700
- color: null
4701
- },
4702
- outline: {
4703
- width: null,
4704
- style: null,
4705
- color: null
4706
- },
4707
- 'list-style': {
4708
- type: null,
4709
- position: null,
4710
- image: null
4711
- },
4712
- transition: {
4713
- property: null,
4714
- duration: null,
4715
- 'timing-function': null,
4716
- timingFunction: null,
4717
- // Needed for avoiding comilation issues with jss-plugin-camel-case
4718
- delay: null
4719
- },
4720
- animation: {
4721
- name: null,
4722
- duration: null,
4723
- 'timing-function': null,
4724
- timingFunction: null,
4725
- // Needed to avoid compilation issues with jss-plugin-camel-case
4726
- delay: null,
4727
- 'iteration-count': null,
4728
- iterationCount: null,
4729
- // Needed to avoid compilation issues with jss-plugin-camel-case
4730
- direction: null,
4731
- 'fill-mode': null,
4732
- fillMode: null,
4733
- // Needed to avoid compilation issues with jss-plugin-camel-case
4734
- 'play-state': null,
4735
- playState: null // Needed to avoid compilation issues with jss-plugin-camel-case
4736
-
4737
- },
4738
- 'box-shadow': {
4739
- x: 0,
4740
- y: 0,
4741
- blur: 0,
4742
- spread: 0,
4743
- color: null,
4744
- inset: null
4745
- },
4746
- 'text-shadow': {
4747
- x: 0,
4748
- y: 0,
4749
- blur: null,
4750
- color: null
4751
- }
4752
- /**
4753
- * A scheme for converting non-standart properties inside object.
4754
- * For e.g.: include 'border-radius' property inside 'border' object.
4755
- */
4756
-
4757
- };
4758
- var customPropObj = {
4759
- border: {
4760
- radius: 'border-radius',
4761
- image: 'border-image',
4762
- width: 'border-width',
4763
- style: 'border-style',
4764
- color: 'border-color'
4765
- },
4766
- 'border-bottom': {
4767
- width: 'border-bottom-width',
4768
- style: 'border-bottom-style',
4769
- color: 'border-bottom-color'
4770
- },
4771
- 'border-top': {
4772
- width: 'border-top-width',
4773
- style: 'border-top-style',
4774
- color: 'border-top-color'
4775
- },
4776
- 'border-left': {
4777
- width: 'border-left-width',
4778
- style: 'border-left-style',
4779
- color: 'border-left-color'
4780
- },
4781
- 'border-right': {
4782
- width: 'border-right-width',
4783
- style: 'border-right-style',
4784
- color: 'border-right-color'
4785
- },
4786
- background: {
4787
- size: 'background-size',
4788
- image: 'background-image'
4789
- },
4790
- font: {
4791
- style: 'font-style',
4792
- variant: 'font-variant',
4793
- weight: 'font-weight',
4794
- stretch: 'font-stretch',
4795
- size: 'font-size',
4796
- family: 'font-family',
4797
- lineHeight: 'line-height',
4798
- // Needed to avoid compilation issues with jss-plugin-camel-case
4799
- 'line-height': 'line-height'
4800
- },
4801
- flex: {
4802
- grow: 'flex-grow',
4803
- basis: 'flex-basis',
4804
- direction: 'flex-direction',
4805
- wrap: 'flex-wrap',
4806
- flow: 'flex-flow',
4807
- shrink: 'flex-shrink'
4808
- },
4809
- align: {
4810
- self: 'align-self',
4811
- items: 'align-items',
4812
- content: 'align-content'
4813
- },
4814
- grid: {
4815
- 'template-columns': 'grid-template-columns',
4816
- templateColumns: 'grid-template-columns',
4817
- 'template-rows': 'grid-template-rows',
4818
- templateRows: 'grid-template-rows',
4819
- 'template-areas': 'grid-template-areas',
4820
- templateAreas: 'grid-template-areas',
4821
- template: 'grid-template',
4822
- 'auto-columns': 'grid-auto-columns',
4823
- autoColumns: 'grid-auto-columns',
4824
- 'auto-rows': 'grid-auto-rows',
4825
- autoRows: 'grid-auto-rows',
4826
- 'auto-flow': 'grid-auto-flow',
4827
- autoFlow: 'grid-auto-flow',
4828
- row: 'grid-row',
4829
- column: 'grid-column',
4830
- 'row-start': 'grid-row-start',
4831
- rowStart: 'grid-row-start',
4832
- 'row-end': 'grid-row-end',
4833
- rowEnd: 'grid-row-end',
4834
- 'column-start': 'grid-column-start',
4835
- columnStart: 'grid-column-start',
4836
- 'column-end': 'grid-column-end',
4837
- columnEnd: 'grid-column-end',
4838
- area: 'grid-area',
4839
- gap: 'grid-gap',
4840
- 'row-gap': 'grid-row-gap',
4841
- rowGap: 'grid-row-gap',
4842
- 'column-gap': 'grid-column-gap',
4843
- columnGap: 'grid-column-gap'
4844
- }
4845
- };
4846
-
4847
- /* eslint-disable no-use-before-define */
4848
- /**
4849
- * Map values by given prop.
4850
- *
4851
- * @param {Array} array of values
4852
- * @param {String} original property
4853
- * @param {String} original rule
4854
- * @return {String} mapped values
4855
- */
4856
-
4857
- function mapValuesByProp(value, prop, rule) {
4858
- return value.map(function (item) {
4859
- return objectToArray(item, prop, rule, false, true);
4860
- });
4861
- }
4862
- /**
4863
- * Convert array to nested array, if needed
4864
- */
4865
-
4866
-
4867
- function processArray(value, prop, scheme, rule) {
4868
- if (scheme[prop] == null) return value;
4869
- if (value.length === 0) return [];
4870
- if (Array.isArray(value[0])) return processArray(value[0], prop, scheme, rule);
4871
-
4872
- if (typeof value[0] === 'object') {
4873
- return mapValuesByProp(value, prop, rule);
4874
- }
4875
-
4876
- return [value];
4877
- }
4878
- /**
4879
- * Convert object to array.
4880
- */
4881
-
4882
-
4883
- function objectToArray(value, prop, rule, isFallback, isInArray) {
4884
- if (!(propObj[prop] || customPropObj[prop])) return [];
4885
- var result = []; // Check if exists any non-standard property
4886
-
4887
- if (customPropObj[prop]) {
4888
- // eslint-disable-next-line no-param-reassign
4889
- value = customPropsToStyle(value, rule, customPropObj[prop], isFallback);
4890
- } // Pass throught all standart props
4891
-
4892
-
4893
- if (Object.keys(value).length) {
4894
- for (var baseProp in propObj[prop]) {
4895
- if (value[baseProp]) {
4896
- if (Array.isArray(value[baseProp])) {
4897
- result.push(propArrayInObj[baseProp] === null ? value[baseProp] : value[baseProp].join(' '));
4898
- } else result.push(value[baseProp]);
4899
-
4900
- continue;
4901
- } // Add default value from props config.
4902
-
4903
-
4904
- if (propObj[prop][baseProp] != null) {
4905
- result.push(propObj[prop][baseProp]);
4906
- }
4907
- }
4908
- }
4909
-
4910
- if (!result.length || isInArray) return result;
4911
- return [result];
4912
- }
4913
- /**
4914
- * Convert custom properties values to styles adding them to rule directly
4915
- */
4916
-
4917
-
4918
- function customPropsToStyle(value, rule, customProps, isFallback) {
4919
- for (var prop in customProps) {
4920
- var propName = customProps[prop]; // If current property doesn't exist already in rule - add new one
4921
-
4922
- if (typeof value[prop] !== 'undefined' && (isFallback || !rule.prop(propName))) {
4923
- var _styleDetector;
4924
-
4925
- var appendedValue = styleDetector((_styleDetector = {}, _styleDetector[propName] = value[prop], _styleDetector), rule)[propName]; // Add style directly in rule
4926
-
4927
- if (isFallback) rule.style.fallbacks[propName] = appendedValue;else rule.style[propName] = appendedValue;
4928
- } // Delete converted property to avoid double converting
4929
-
4930
-
4931
- delete value[prop];
4932
- }
4933
-
4934
- return value;
4935
- }
4936
- /**
4937
- * Detect if a style needs to be converted.
4938
- */
4939
-
4940
-
4941
- function styleDetector(style, rule, isFallback) {
4942
- for (var prop in style) {
4943
- var value = style[prop];
4944
-
4945
- if (Array.isArray(value)) {
4946
- // Check double arrays to avoid recursion.
4947
- if (!Array.isArray(value[0])) {
4948
- if (prop === 'fallbacks') {
4949
- for (var index = 0; index < style.fallbacks.length; index++) {
4950
- style.fallbacks[index] = styleDetector(style.fallbacks[index], rule, true);
4951
- }
4952
-
4953
- continue;
4954
- }
4955
-
4956
- style[prop] = processArray(value, prop, propArray, rule); // Avoid creating properties with empty values
4957
-
4958
- if (!style[prop].length) delete style[prop];
4959
- }
4960
- } else if (typeof value === 'object') {
4961
- if (prop === 'fallbacks') {
4962
- style.fallbacks = styleDetector(style.fallbacks, rule, true);
4963
- continue;
4964
- }
4965
-
4966
- style[prop] = objectToArray(value, prop, rule, isFallback); // Avoid creating properties with empty values
4967
-
4968
- if (!style[prop].length) delete style[prop];
4969
- } // Maybe a computed value resulting in an empty string
4970
- else if (style[prop] === '') delete style[prop];
4971
- }
4972
-
4973
- return style;
4974
- }
4975
- /**
4976
- * Adds possibility to write expanded styles.
4977
- */
4978
-
4979
-
4980
- function jssExpand() {
4981
- function onProcessStyle(style, rule) {
4982
- if (!style || rule.type !== 'style') return style;
4983
-
4984
- if (Array.isArray(style)) {
4985
- // Pass rules one by one and reformat them
4986
- for (var index = 0; index < style.length; index++) {
4987
- style[index] = styleDetector(style[index], rule);
4988
- }
4989
-
4990
- return style;
4991
- }
4992
-
4993
- return styleDetector(style, rule);
4994
- }
4995
-
4996
- return {
4997
- onProcessStyle: onProcessStyle
4998
- };
4999
- }
5000
-
5001
- var cssVendor_cjs = {};
5002
-
5003
- var require$$0 = /*@__PURE__*/getAugmentedNamespace(module$1);
5004
-
5005
- var toConsumableArrayExports = {};
5006
- var toConsumableArray = {
5007
- get exports(){ return toConsumableArrayExports; },
5008
- set exports(v){ toConsumableArrayExports = v; },
5009
- };
5010
-
5011
- var arrayWithoutHolesExports = {};
5012
- var arrayWithoutHoles = {
5013
- get exports(){ return arrayWithoutHolesExports; },
5014
- set exports(v){ arrayWithoutHolesExports = v; },
5015
- };
5016
-
5017
- var arrayLikeToArrayExports = {};
5018
- var arrayLikeToArray = {
5019
- get exports(){ return arrayLikeToArrayExports; },
5020
- set exports(v){ arrayLikeToArrayExports = v; },
5021
- };
5022
-
5023
- (function (module) {
5024
- function _arrayLikeToArray(arr, len) {
5025
- if (len == null || len > arr.length) len = arr.length;
5026
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
5027
- return arr2;
5028
- }
5029
- module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
5030
- } (arrayLikeToArray));
5031
-
5032
- (function (module) {
5033
- var arrayLikeToArray = arrayLikeToArrayExports;
5034
- function _arrayWithoutHoles(arr) {
5035
- if (Array.isArray(arr)) return arrayLikeToArray(arr);
5036
- }
5037
- module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
5038
- } (arrayWithoutHoles));
5039
-
5040
- var iterableToArrayExports = {};
5041
- var iterableToArray = {
5042
- get exports(){ return iterableToArrayExports; },
5043
- set exports(v){ iterableToArrayExports = v; },
5044
- };
5045
-
5046
- (function (module) {
5047
- function _iterableToArray(iter) {
5048
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
5049
- }
5050
- module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
5051
- } (iterableToArray));
5052
-
5053
- var unsupportedIterableToArrayExports = {};
5054
- var unsupportedIterableToArray = {
5055
- get exports(){ return unsupportedIterableToArrayExports; },
5056
- set exports(v){ unsupportedIterableToArrayExports = v; },
5057
- };
5058
-
5059
- (function (module) {
5060
- var arrayLikeToArray = arrayLikeToArrayExports;
5061
- function _unsupportedIterableToArray(o, minLen) {
5062
- if (!o) return;
5063
- if (typeof o === "string") return arrayLikeToArray(o, minLen);
5064
- var n = Object.prototype.toString.call(o).slice(8, -1);
5065
- if (n === "Object" && o.constructor) n = o.constructor.name;
5066
- if (n === "Map" || n === "Set") return Array.from(o);
5067
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
5068
- }
5069
- module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
5070
- } (unsupportedIterableToArray));
5071
-
5072
- var nonIterableSpreadExports = {};
5073
- var nonIterableSpread = {
5074
- get exports(){ return nonIterableSpreadExports; },
5075
- set exports(v){ nonIterableSpreadExports = v; },
5076
- };
5077
-
5078
- (function (module) {
5079
- function _nonIterableSpread() {
5080
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
5081
- }
5082
- module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
5083
- } (nonIterableSpread));
5084
-
5085
- (function (module) {
5086
- var arrayWithoutHoles = arrayWithoutHolesExports;
5087
- var iterableToArray = iterableToArrayExports;
5088
- var unsupportedIterableToArray = unsupportedIterableToArrayExports;
5089
- var nonIterableSpread = nonIterableSpreadExports;
5090
- function _toConsumableArray(arr) {
5091
- return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
5092
- }
5093
- module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
5094
- } (toConsumableArray));
5095
-
5096
- Object.defineProperty(cssVendor_cjs, '__esModule', { value: true });
5097
-
5098
- function _interopDefault$1 (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
5099
-
5100
- var isInBrowser = _interopDefault$1(require$$0);
5101
- var _toConsumableArray = _interopDefault$1(toConsumableArrayExports);
5102
-
5103
- // Export javascript style and css style vendor prefixes.
5104
- var js = '';
5105
- var css = '';
5106
- var vendor = '';
5107
- var browser = '';
5108
- var isTouch = isInBrowser && 'ontouchstart' in document.documentElement; // We should not do anything if required serverside.
5109
-
5110
- if (isInBrowser) {
5111
- // Order matters. We need to check Webkit the last one because
5112
- // other vendors use to add Webkit prefixes to some properties
5113
- var jsCssMap = {
5114
- Moz: '-moz-',
5115
- ms: '-ms-',
5116
- O: '-o-',
5117
- Webkit: '-webkit-'
5118
- };
5119
-
5120
- var _document$createEleme = document.createElement('p'),
5121
- style = _document$createEleme.style;
5122
-
5123
- var testProp = 'Transform';
5124
-
5125
- for (var key in jsCssMap) {
5126
- if (key + testProp in style) {
5127
- js = key;
5128
- css = jsCssMap[key];
5129
- break;
5130
- }
5131
- } // Correctly detect the Edge browser.
5132
-
5133
-
5134
- if (js === 'Webkit' && 'msHyphens' in style) {
5135
- js = 'ms';
5136
- css = jsCssMap.ms;
5137
- browser = 'edge';
5138
- } // Correctly detect the Safari browser.
5139
-
5140
-
5141
- if (js === 'Webkit' && '-apple-trailing-word' in style) {
5142
- vendor = 'apple';
5143
- }
5144
- }
5145
- /**
5146
- * Vendor prefix string for the current browser.
5147
- *
5148
- * @type {{js: String, css: String, vendor: String, browser: String}}
5149
- * @api public
5150
- */
5151
-
5152
-
5153
- var prefix = {
5154
- js: js,
5155
- css: css,
5156
- vendor: vendor,
5157
- browser: browser,
5158
- isTouch: isTouch
5159
- };
5160
-
5161
- /**
5162
- * Test if a keyframe at-rule should be prefixed or not
5163
- *
5164
- * @param {String} vendor prefix string for the current browser.
5165
- * @return {String}
5166
- * @api public
5167
- */
5168
-
5169
- function supportedKeyframes(key) {
5170
- // Keyframes is already prefixed. e.g. key = '@-webkit-keyframes a'
5171
- if (key[1] === '-') return key; // No need to prefix IE/Edge. Older browsers will ignore unsupported rules.
5172
- // https://caniuse.com/#search=keyframes
5173
-
5174
- if (prefix.js === 'ms') return key;
5175
- return "@" + prefix.css + "keyframes" + key.substr(10);
5176
- }
5177
-
5178
- // https://caniuse.com/#search=appearance
5179
-
5180
- var appearence = {
5181
- noPrefill: ['appearance'],
5182
- supportedProperty: function supportedProperty(prop) {
5183
- if (prop !== 'appearance') return false;
5184
- if (prefix.js === 'ms') return "-webkit-" + prop;
5185
- return prefix.css + prop;
5186
- }
5187
- };
5188
-
5189
- // https://caniuse.com/#search=color-adjust
5190
-
5191
- var colorAdjust = {
5192
- noPrefill: ['color-adjust'],
5193
- supportedProperty: function supportedProperty(prop) {
5194
- if (prop !== 'color-adjust') return false;
5195
- if (prefix.js === 'Webkit') return prefix.css + "print-" + prop;
5196
- return prop;
5197
- }
5198
- };
5199
-
5200
- var regExp = /[-\s]+(.)?/g;
5201
- /**
5202
- * Replaces the letter with the capital letter
5203
- *
5204
- * @param {String} match
5205
- * @param {String} c
5206
- * @return {String}
5207
- * @api private
5208
- */
5209
-
5210
- function toUpper(match, c) {
5211
- return c ? c.toUpperCase() : '';
5212
- }
5213
- /**
5214
- * Convert dash separated strings to camel-cased.
5215
- *
5216
- * @param {String} str
5217
- * @return {String}
5218
- * @api private
5219
- */
5220
-
5221
-
5222
- function camelize(str) {
5223
- return str.replace(regExp, toUpper);
5224
- }
5225
-
5226
- /**
5227
- * Convert dash separated strings to pascal cased.
5228
- *
5229
- * @param {String} str
5230
- * @return {String}
5231
- * @api private
5232
- */
5233
-
5234
- function pascalize(str) {
5235
- return camelize("-" + str);
5236
- }
5237
-
5238
- // but we can use a longhand property instead.
5239
- // https://caniuse.com/#search=mask
5240
-
5241
- var mask = {
5242
- noPrefill: ['mask'],
5243
- supportedProperty: function supportedProperty(prop, style) {
5244
- if (!/^mask/.test(prop)) return false;
5245
-
5246
- if (prefix.js === 'Webkit') {
5247
- var longhand = 'mask-image';
5248
-
5249
- if (camelize(longhand) in style) {
5250
- return prop;
5251
- }
5252
-
5253
- if (prefix.js + pascalize(longhand) in style) {
5254
- return prefix.css + prop;
5255
- }
5256
- }
5257
-
5258
- return prop;
5259
- }
5260
- };
5261
-
5262
- // https://caniuse.com/#search=text-orientation
5263
-
5264
- var textOrientation = {
5265
- noPrefill: ['text-orientation'],
5266
- supportedProperty: function supportedProperty(prop) {
5267
- if (prop !== 'text-orientation') return false;
5268
-
5269
- if (prefix.vendor === 'apple' && !prefix.isTouch) {
5270
- return prefix.css + prop;
5271
- }
5272
-
5273
- return prop;
5274
- }
5275
- };
5276
-
5277
- // https://caniuse.com/#search=transform
5278
-
5279
- var transform = {
5280
- noPrefill: ['transform'],
5281
- supportedProperty: function supportedProperty(prop, style, options) {
5282
- if (prop !== 'transform') return false;
5283
-
5284
- if (options.transform) {
5285
- return prop;
5286
- }
5287
-
5288
- return prefix.css + prop;
5289
- }
5290
- };
5291
-
5292
- // https://caniuse.com/#search=transition
5293
-
5294
- var transition = {
5295
- noPrefill: ['transition'],
5296
- supportedProperty: function supportedProperty(prop, style, options) {
5297
- if (prop !== 'transition') return false;
5298
-
5299
- if (options.transition) {
5300
- return prop;
5301
- }
5302
-
5303
- return prefix.css + prop;
5304
- }
5305
- };
5306
-
5307
- // https://caniuse.com/#search=writing-mode
5308
-
5309
- var writingMode = {
5310
- noPrefill: ['writing-mode'],
5311
- supportedProperty: function supportedProperty(prop) {
5312
- if (prop !== 'writing-mode') return false;
5313
-
5314
- if (prefix.js === 'Webkit' || prefix.js === 'ms' && prefix.browser !== 'edge') {
5315
- return prefix.css + prop;
5316
- }
5317
-
5318
- return prop;
5319
- }
5320
- };
5321
-
5322
- // https://caniuse.com/#search=user-select
5323
-
5324
- var userSelect = {
5325
- noPrefill: ['user-select'],
5326
- supportedProperty: function supportedProperty(prop) {
5327
- if (prop !== 'user-select') return false;
5328
-
5329
- if (prefix.js === 'Moz' || prefix.js === 'ms' || prefix.vendor === 'apple') {
5330
- return prefix.css + prop;
5331
- }
5332
-
5333
- return prop;
5334
- }
5335
- };
5336
-
5337
- // https://caniuse.com/#search=multicolumn
5338
- // https://github.com/postcss/autoprefixer/issues/491
5339
- // https://github.com/postcss/autoprefixer/issues/177
5340
-
5341
- var breakPropsOld = {
5342
- supportedProperty: function supportedProperty(prop, style) {
5343
- if (!/^break-/.test(prop)) return false;
5344
-
5345
- if (prefix.js === 'Webkit') {
5346
- var jsProp = "WebkitColumn" + pascalize(prop);
5347
- return jsProp in style ? prefix.css + "column-" + prop : false;
5348
- }
5349
-
5350
- if (prefix.js === 'Moz') {
5351
- var _jsProp = "page" + pascalize(prop);
5352
-
5353
- return _jsProp in style ? "page-" + prop : false;
5354
- }
5355
-
5356
- return false;
5357
- }
5358
- };
5359
-
5360
- // See https://github.com/postcss/autoprefixer/issues/324.
5361
-
5362
- var inlineLogicalOld = {
5363
- supportedProperty: function supportedProperty(prop, style) {
5364
- if (!/^(border|margin|padding)-inline/.test(prop)) return false;
5365
- if (prefix.js === 'Moz') return prop;
5366
- var newProp = prop.replace('-inline', '');
5367
- return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;
5368
- }
5369
- };
5370
-
5371
- // Camelization is required because we can't test using.
5372
- // CSS syntax for e.g. in FF.
5373
-
5374
- var unprefixed = {
5375
- supportedProperty: function supportedProperty(prop, style) {
5376
- return camelize(prop) in style ? prop : false;
5377
- }
5378
- };
5379
-
5380
- var prefixed = {
5381
- supportedProperty: function supportedProperty(prop, style) {
5382
- var pascalized = pascalize(prop); // Return custom CSS variable without prefixing.
5383
-
5384
- if (prop[0] === '-') return prop; // Return already prefixed value without prefixing.
5385
-
5386
- if (prop[0] === '-' && prop[1] === '-') return prop;
5387
- if (prefix.js + pascalized in style) return prefix.css + prop; // Try webkit fallback.
5388
-
5389
- if (prefix.js !== 'Webkit' && "Webkit" + pascalized in style) return "-webkit-" + prop;
5390
- return false;
5391
- }
5392
- };
5393
-
5394
- // https://caniuse.com/#search=scroll-snap
5395
-
5396
- var scrollSnap = {
5397
- supportedProperty: function supportedProperty(prop) {
5398
- if (prop.substring(0, 11) !== 'scroll-snap') return false;
5399
-
5400
- if (prefix.js === 'ms') {
5401
- return "" + prefix.css + prop;
5402
- }
5403
-
5404
- return prop;
5405
- }
5406
- };
5407
-
5408
- // https://caniuse.com/#search=overscroll-behavior
5409
-
5410
- var overscrollBehavior = {
5411
- supportedProperty: function supportedProperty(prop) {
5412
- if (prop !== 'overscroll-behavior') return false;
5413
-
5414
- if (prefix.js === 'ms') {
5415
- return prefix.css + "scroll-chaining";
5416
- }
5417
-
5418
- return prop;
5419
- }
5420
- };
5421
-
5422
- var propMap = {
5423
- 'flex-grow': 'flex-positive',
5424
- 'flex-shrink': 'flex-negative',
5425
- 'flex-basis': 'flex-preferred-size',
5426
- 'justify-content': 'flex-pack',
5427
- order: 'flex-order',
5428
- 'align-items': 'flex-align',
5429
- 'align-content': 'flex-line-pack' // 'align-self' is handled by 'align-self' plugin.
5430
-
5431
- }; // Support old flex spec from 2012.
5432
-
5433
- var flex2012 = {
5434
- supportedProperty: function supportedProperty(prop, style) {
5435
- var newProp = propMap[prop];
5436
- if (!newProp) return false;
5437
- return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;
5438
- }
5439
- };
5440
-
5441
- var propMap$1 = {
5442
- flex: 'box-flex',
5443
- 'flex-grow': 'box-flex',
5444
- 'flex-direction': ['box-orient', 'box-direction'],
5445
- order: 'box-ordinal-group',
5446
- 'align-items': 'box-align',
5447
- 'flex-flow': ['box-orient', 'box-direction'],
5448
- 'justify-content': 'box-pack'
5449
- };
5450
- var propKeys = Object.keys(propMap$1);
5451
-
5452
- var prefixCss = function prefixCss(p) {
5453
- return prefix.css + p;
5454
- }; // Support old flex spec from 2009.
5455
-
5456
-
5457
- var flex2009 = {
5458
- supportedProperty: function supportedProperty(prop, style, _ref) {
5459
- var multiple = _ref.multiple;
5460
-
5461
- if (propKeys.indexOf(prop) > -1) {
5462
- var newProp = propMap$1[prop];
5463
-
5464
- if (!Array.isArray(newProp)) {
5465
- return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;
5466
- }
5467
-
5468
- if (!multiple) return false;
5469
-
5470
- for (var i = 0; i < newProp.length; i++) {
5471
- if (!(prefix.js + pascalize(newProp[0]) in style)) {
5472
- return false;
5473
- }
5474
- }
5475
-
5476
- return newProp.map(prefixCss);
5477
- }
5478
-
5479
- return false;
5480
- }
5481
- };
5482
-
5483
- // plugins = [
5484
- // ...plugins,
5485
- // breakPropsOld,
5486
- // inlineLogicalOld,
5487
- // unprefixed,
5488
- // prefixed,
5489
- // scrollSnap,
5490
- // flex2012,
5491
- // flex2009
5492
- // ]
5493
- // Plugins without 'noPrefill' value, going last.
5494
- // 'flex-*' plugins should be at the bottom.
5495
- // 'flex2009' going after 'flex2012'.
5496
- // 'prefixed' going after 'unprefixed'
5497
-
5498
- var plugins = [appearence, colorAdjust, mask, textOrientation, transform, transition, writingMode, userSelect, breakPropsOld, inlineLogicalOld, unprefixed, prefixed, scrollSnap, overscrollBehavior, flex2012, flex2009];
5499
- var propertyDetectors = plugins.filter(function (p) {
5500
- return p.supportedProperty;
5501
- }).map(function (p) {
5502
- return p.supportedProperty;
5503
- });
5504
- var noPrefill = plugins.filter(function (p) {
5505
- return p.noPrefill;
5506
- }).reduce(function (a, p) {
5507
- a.push.apply(a, _toConsumableArray(p.noPrefill));
5508
- return a;
5509
- }, []);
5510
-
5511
- var el;
5512
- var cache = {};
5513
-
5514
- if (isInBrowser) {
5515
- el = document.createElement('p'); // We test every property on vendor prefix requirement.
5516
- // Once tested, result is cached. It gives us up to 70% perf boost.
5517
- // http://jsperf.com/element-style-object-access-vs-plain-object
5518
- //
5519
- // Prefill cache with known css properties to reduce amount of
5520
- // properties we need to feature test at runtime.
5521
- // http://davidwalsh.name/vendor-prefix
5522
-
5523
- var computed = window.getComputedStyle(document.documentElement, '');
5524
-
5525
- for (var key$1 in computed) {
5526
- // eslint-disable-next-line no-restricted-globals
5527
- if (!isNaN(key$1)) cache[computed[key$1]] = computed[key$1];
5528
- } // Properties that cannot be correctly detected using the
5529
- // cache prefill method.
5530
-
5531
-
5532
- noPrefill.forEach(function (x) {
5533
- return delete cache[x];
5534
- });
5535
- }
5536
- /**
5537
- * Test if a property is supported, returns supported property with vendor
5538
- * prefix if required. Returns `false` if not supported.
5539
- *
5540
- * @param {String} prop dash separated
5541
- * @param {Object} [options]
5542
- * @return {String|Boolean}
5543
- * @api public
5544
- */
5545
-
5546
-
5547
- function supportedProperty(prop, options) {
5548
- if (options === void 0) {
5549
- options = {};
5550
- }
5551
-
5552
- // For server-side rendering.
5553
- if (!el) return prop; // Remove cache for benchmark tests or return property from the cache.
5554
-
5555
- if (process.env.NODE_ENV !== 'benchmark' && cache[prop] != null) {
5556
- return cache[prop];
5557
- } // Check if 'transition' or 'transform' natively supported in browser.
5558
-
5559
-
5560
- if (prop === 'transition' || prop === 'transform') {
5561
- options[prop] = prop in el.style;
5562
- } // Find a plugin for current prefix property.
5563
-
5564
-
5565
- for (var i = 0; i < propertyDetectors.length; i++) {
5566
- cache[prop] = propertyDetectors[i](prop, el.style, options); // Break loop, if value found.
5567
-
5568
- if (cache[prop]) break;
5569
- } // Reset styles for current property.
5570
- // Firefox can even throw an error for invalid properties, e.g., "0".
5571
-
5572
-
5573
- try {
5574
- el.style[prop] = '';
5575
- } catch (err) {
5576
- return false;
5577
- }
5578
-
5579
- return cache[prop];
5580
- }
5581
-
5582
- var cache$1 = {};
5583
- var transitionProperties = {
5584
- transition: 1,
5585
- 'transition-property': 1,
5586
- '-webkit-transition': 1,
5587
- '-webkit-transition-property': 1
5588
- };
5589
- var transPropsRegExp = /(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;
5590
- var el$1;
5591
- /**
5592
- * Returns prefixed value transition/transform if needed.
5593
- *
5594
- * @param {String} match
5595
- * @param {String} p1
5596
- * @param {String} p2
5597
- * @return {String}
5598
- * @api private
5599
- */
5600
-
5601
- function prefixTransitionCallback(match, p1, p2) {
5602
- if (p1 === 'var') return 'var';
5603
- if (p1 === 'all') return 'all';
5604
- if (p2 === 'all') return ', all';
5605
- var prefixedValue = p1 ? supportedProperty(p1) : ", " + supportedProperty(p2);
5606
- if (!prefixedValue) return p1 || p2;
5607
- return prefixedValue;
5608
- }
5609
-
5610
- if (isInBrowser) el$1 = document.createElement('p');
5611
- /**
5612
- * Returns prefixed value if needed. Returns `false` if value is not supported.
5613
- *
5614
- * @param {String} property
5615
- * @param {String} value
5616
- * @return {String|Boolean}
5617
- * @api public
5618
- */
5619
-
5620
- function supportedValue(property, value) {
5621
- // For server-side rendering.
5622
- var prefixedValue = value;
5623
- if (!el$1 || property === 'content') return value; // It is a string or a number as a string like '1'.
5624
- // We want only prefixable values here.
5625
- // eslint-disable-next-line no-restricted-globals
5626
-
5627
- if (typeof prefixedValue !== 'string' || !isNaN(parseInt(prefixedValue, 10))) {
5628
- return prefixedValue;
5629
- } // Create cache key for current value.
5630
-
5631
-
5632
- var cacheKey = property + prefixedValue; // Remove cache for benchmark tests or return value from cache.
5633
-
5634
- if (process.env.NODE_ENV !== 'benchmark' && cache$1[cacheKey] != null) {
5635
- return cache$1[cacheKey];
5636
- } // IE can even throw an error in some cases, for e.g. style.content = 'bar'.
5637
-
5638
-
5639
- try {
5640
- // Test value as it is.
5641
- el$1.style[property] = prefixedValue;
5642
- } catch (err) {
5643
- // Return false if value not supported.
5644
- cache$1[cacheKey] = false;
5645
- return false;
5646
- } // If 'transition' or 'transition-property' property.
5647
-
5648
-
5649
- if (transitionProperties[property]) {
5650
- prefixedValue = prefixedValue.replace(transPropsRegExp, prefixTransitionCallback);
5651
- } else if (el$1.style[property] === '') {
5652
- // Value with a vendor prefix.
5653
- prefixedValue = prefix.css + prefixedValue; // Hardcode test to convert "flex" to "-ms-flexbox" for IE10.
5654
-
5655
- if (prefixedValue === '-ms-flex') el$1.style[property] = '-ms-flexbox'; // Test prefixed value.
5656
-
5657
- el$1.style[property] = prefixedValue; // Return false if value not supported.
5658
-
5659
- if (el$1.style[property] === '') {
5660
- cache$1[cacheKey] = false;
5661
- return false;
5662
- }
5663
- } // Reset styles for current property.
5664
-
5665
-
5666
- el$1.style[property] = ''; // Write current value to cache.
5667
-
5668
- cache$1[cacheKey] = prefixedValue;
5669
- return cache$1[cacheKey];
5670
- }
5671
-
5672
- cssVendor_cjs.prefix = prefix;
5673
- var supportedKeyframes_1 = cssVendor_cjs.supportedKeyframes = supportedKeyframes;
5674
- var supportedProperty_1 = cssVendor_cjs.supportedProperty = supportedProperty;
5675
- var supportedValue_1 = cssVendor_cjs.supportedValue = supportedValue;
5676
-
5677
- /**
5678
- * Add vendor prefix to a property name when needed.
5679
- */
5680
-
5681
- function jssVendorPrefixer() {
5682
- function onProcessRule(rule) {
5683
- if (rule.type === 'keyframes') {
5684
- var atRule = rule;
5685
- atRule.at = supportedKeyframes_1(atRule.at);
5686
- }
5687
- }
5688
-
5689
- function prefixStyle(style) {
5690
- for (var prop in style) {
5691
- var value = style[prop];
5692
-
5693
- if (prop === 'fallbacks' && Array.isArray(value)) {
5694
- style[prop] = value.map(prefixStyle);
5695
- continue;
5696
- }
5697
-
5698
- var changeProp = false;
5699
- var supportedProp = supportedProperty_1(prop);
5700
- if (supportedProp && supportedProp !== prop) changeProp = true;
5701
- var changeValue = false;
5702
- var supportedValue$1 = supportedValue_1(supportedProp, toCssValue(value));
5703
- if (supportedValue$1 && supportedValue$1 !== value) changeValue = true;
5704
-
5705
- if (changeProp || changeValue) {
5706
- if (changeProp) delete style[prop];
5707
- style[supportedProp || prop] = supportedValue$1 || value;
5708
- }
5709
- }
5710
-
5711
- return style;
5712
- }
5713
-
5714
- function onProcessStyle(style, rule) {
5715
- if (rule.type !== 'style') return style;
5716
- return prefixStyle(style);
5717
- }
5718
-
5719
- function onChangeValue(value, prop) {
5720
- return supportedValue_1(prop, toCssValue(value)) || value;
5721
- }
5722
-
5723
- return {
5724
- onProcessRule: onProcessRule,
5725
- onProcessStyle: onProcessStyle,
5726
- onChangeValue: onChangeValue
5727
- };
5728
- }
5729
-
5730
- /**
5731
- * Sort props by length.
5732
- */
5733
- function jssPropsSort() {
5734
- var sort = function sort(prop0, prop1) {
5735
- if (prop0.length === prop1.length) {
5736
- return prop0 > prop1 ? 1 : -1;
5737
- }
5738
-
5739
- return prop0.length - prop1.length;
5740
- };
5741
-
5742
- return {
5743
- onProcessStyle: function onProcessStyle(style, rule) {
5744
- if (rule.type !== 'style') return style;
5745
- var newStyle = {};
5746
- var props = Object.keys(style).sort(sort);
5747
-
5748
- for (var i = 0; i < props.length; i++) {
5749
- newStyle[props[i]] = style[props[i]];
5750
- }
5751
-
5752
- return newStyle;
5753
- }
5754
- };
5755
- }
5756
-
5757
- var create = function create(options) {
5758
- if (options === void 0) {
5759
- options = {};
5760
- }
5761
-
5762
- return {
5763
- plugins: [functionPlugin(), observablePlugin(options.observable), templatePlugin(), jssGlobal(), jssExtend(), jssNested(), jssCompose(), camelCase(), defaultUnit(options.defaultUnit), jssExpand(), jssVendorPrefixer(), jssPropsSort()]
5764
- };
5765
- };
5766
-
5767
- index.setup({
5768
- ...create(),
5769
- createGenerateId: () => (rule) => rule.key,
5770
- plugins: [...create().plugins, dist({ combineMediaQueries: true })],
5771
- });
5772
-
5773
- const hasDocument = typeof document !== 'undefined';
5774
-
5775
- hasDocument && 'scrollBehavior' in document.documentElement.style;
5776
- const win = typeof window !== 'undefined' ? window : {};
5777
- win.document || { head: {} };
5778
- (win.HTMLElement || class {
5779
- });
5780
-
5781
- const isThemeDark = (theme) => {
5782
- return theme === 'dark';
5783
- };
5784
-
5785
- const formatObjectOutput = (value) => {
5786
- return JSON.stringify(value)
5787
- .replace(/"([a-zA-Z?]+)":/g, '$1:') // remove double quotes from keys
5788
- .replace(/([,:{])/g, '$1 ') // add space after following: ,:{
5789
- .replace(/(})/g, ' $1') // add space before following: }
5790
- .replace(/^"(.+)"$/, '$1'); // remove wrapping double quotes
5791
- };
5792
- 'value, ' +
5793
- formatObjectOutput(BREAKPOINTS.reduce((prev, key) => (Object.assign(Object.assign({}, prev), { [key + (key !== 'base' ? '?' : '')]: 'value' })), {})).replace(/"/g, '');
5794
-
5795
- const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
5796
-
5797
- const getComponentCss$T = (size, compact, open, theme) => {
5798
- const { primaryColor, hoverColor, focusColor, contrastLowColor } = getThemedColors(theme);
5799
- const border = `1px solid ${contrastLowColor}`;
5800
- return getCss(Object.assign(Object.assign({ '@global': {
5801
- ':host': addImportantToEachRule(Object.assign({ display: 'block' }, hostHiddenStyles)),
5802
- button: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', position: 'relative', justifyContent: 'space-between', margin: '2px 0', width: '100%', textDecoration: 'none', border: 0, outline: 0, gap: '24px', background: 'transparent', cursor: 'pointer', textAlign: 'left', color: primaryColor }, textSmallStyle), { fontWeight: fontWeight.semiBold }), buildResponsiveStyles(size, (s) => ({
5803
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
5804
- // @ts-ignore
5805
- fontSize: fontSizeText[s],
5806
- padding: compact ? '4px 0' : `${s === 'medium' ? '20px' : '12px'} 0`,
5807
- }))), mergeDeep({
5808
- '&::before': Object.assign({ content: '""', position: 'absolute', borderRadius: borderRadiusSmall, left: '-4px', right: '-4px' }, (compact
5809
- ? {
5810
- top: '2px',
5811
- bottom: '2px',
5812
- }
5813
- : {
5814
- top: '6px',
5815
- bottom: '6px',
5816
- })),
5817
- }, hoverMediaQuery({
5818
- '&::before': {
5819
- transition: getTransition('background-color'),
5820
- },
5821
- '&:hover::before': {
5822
- background: hoverColor,
5823
- },
5824
- }))), { '&:focus::before': {
5825
- border: `${borderWidthBase} solid ${focusColor}`,
5826
- }, '&:not(:focus-visible)::before': {
5827
- border: 0,
5828
- } }),
5829
- } }, (!compact && {
5830
- root: {
5831
- borderBottom: border,
5832
- },
5833
- })), { heading: {
5834
- margin: 0,
5835
- padding: 0,
5836
- }, icon: {
5837
- width: fontLineHeight,
5838
- height: fontLineHeight,
5839
- transformOrigin: '50% 50%',
5840
- transform: open ? 'rotate3d(0)' : 'rotate3d(0,0,1,90deg)',
5841
- transition: getTransition('transform'),
5842
- }, collapsible: Object.assign({ padding: 0, overflow: 'hidden' }, (open
5843
- ? {
5844
- height: 'auto',
5845
- paddingBottom: compact ? spacingStaticSmall : '24px',
5846
- visibility: 'visible',
5847
- transition: getTransition('height') + `,visibility ${transitionDuration}`,
5848
- animation: `$open ${transitionDuration} ease forwards`,
5849
- }
5850
- : {
5851
- height: 0,
5852
- visibility: 'hidden',
5853
- transition: getTransition('height') + `,visibility ${transitionDuration} linear ${transitionDuration}`,
5854
- })),
5855
- // TODO: this doesn't get shortened and results in `keyframes-open` for some unknown reason
5856
- '@keyframes open': {
5857
- '0%,99%': {
5858
- overflow: 'hidden',
5859
- },
5860
- '100%': {
5861
- overflow: 'visible',
5862
- },
5863
- } }));
5864
- };
5865
-
5866
- const TOAST_Z_INDEX = 999999;
5867
- const MODAL_Z_INDEX = 99999;
5868
- const POPOVER_Z_INDEX = 9999;
5869
- const BANNER_Z_INDEX = 99;
5870
-
5871
- const oneColumnWidthS = `calc((100% - ${gridSafeZoneBase} * 2 - ${gridGap} * 13) / 14)`;
5872
- const oneColumnWidthXXL = `calc((min(100%, ${gridWidthMax}) - ${gridSafeZoneXXL} * 2 - ${gridGap} * 13) / 14)`;
5873
- const offsetHorizontalXXL = `max(0px, (100% - ${gridWidthMax}) / 2)`;
5874
- const widthMap$1 = {
5875
- narrow: {
5876
- padding: `0 ${gridSafeZoneBase}`,
5877
- [getMediaQueryMin('s')]: {
5878
- padding: `0 calc(${gridSafeZoneBase} + ${gridGap} * 3 + ${oneColumnWidthS} * 3)`,
5879
- },
5880
- [getMediaQueryMin('xxl')]: {
5881
- padding: `0 calc(${offsetHorizontalXXL} + ${gridSafeZoneXXL} + ${gridGap} * 3 + ${oneColumnWidthXXL} * 3)`,
5882
- },
5883
- },
5884
- basic: {
5885
- padding: `0 ${gridSafeZoneBase}`,
5886
- [getMediaQueryMin('s')]: {
5887
- padding: `0 calc(${gridSafeZoneBase} + ${gridGap} + ${oneColumnWidthS})`,
5888
- },
5889
- [getMediaQueryMin('xxl')]: {
5890
- padding: `0 calc(${offsetHorizontalXXL} + ${gridSafeZoneXXL} + ${gridGap} + ${oneColumnWidthXXL})`,
5891
- },
5892
- },
5893
- extended: {
5894
- padding: `0 ${gridSafeZoneBase}`,
5895
- [getMediaQueryMin('xxl')]: {
5896
- padding: `0 calc(${offsetHorizontalXXL} + ${gridSafeZoneXXL})`,
5897
- },
5898
- },
5899
- };
5900
- const getContentWrapperStyle = (width) => {
5901
- return Object.assign({ display: 'block', margin: 0, padding: `0 ${offsetHorizontalXXL}`, width: 'auto', minWidth: 0, maxWidth: gridWidthMax }, widthMap$1[width]);
5902
- };
5903
-
5904
- const easeInQuad = 'cubic-bezier(0.45,0,0.55,1)';
5905
- const easeOutQuad = 'cubic-bezier(0.5,1,0.89,1)';
5906
- const ANIMATION_DURATION = 600;
5907
- const getBoxShadow = () => ({
5908
- boxShadow: '0 2px 4px 0 rgba(0,0,0,0.05),0 15px 20px 0 rgba(0,0,0,0.2)',
5909
- });
5910
- const getAnimationIn = (keyframesName, durationVar) => {
5911
- const duration = durationVar ? `var(${durationVar},${ANIMATION_DURATION}ms)` : `${ANIMATION_DURATION}ms`;
5912
- return {
5913
- animation: `${duration} $${keyframesName} ${easeInQuad} forwards`,
5914
- };
5915
- };
5916
- const getAnimationOut = (keyframesName) => ({
5917
- animation: addImportantToRule(`${ANIMATION_DURATION}ms $${keyframesName} ${easeOutQuad} forwards`),
5918
- });
5919
- const getKeyframes = (direction, outsideStyle) => {
5920
- const insideStyle = { opacity: 1, transform: 'translate3d(0,0,0)' };
5921
- return direction === 'in'
5922
- ? {
5923
- from: outsideStyle,
5924
- to: insideStyle,
5925
- }
5926
- : {
5927
- from: insideStyle,
5928
- to: outsideStyle,
5929
- };
5930
- };
5931
- const getKeyframesMobile = (direction, bottomVar) => getKeyframes(direction, {
5932
- opacity: 0,
5933
- transform: `translate3d(0,calc(var(${bottomVar}) + 100%),0)`, // space before and after "+" is crucial
5934
- });
5935
-
5936
- const bannerPositionTypeVar = '--p-banner-position-type';
5937
- const bannerPositionTopVar = '--p-banner-position-top';
5938
- const bannerPositionBottomVar = '--p-banner-position-bottom';
5939
- const bannerZIndexVar = '--p-internal-banner-z-index';
5940
- const bannerAnimationDurationVar = '--p-animation-duration';
5941
- const bannerOffset = '56px';
5942
- const mediaQueryBase = getMediaQueryMinMax('base', 's');
5943
- const mediaQueryS$1 = getMediaQueryMin('s');
5944
- const getKeyframesDesktop = (direction, topVar) => getKeyframes(direction, {
5945
- opacity: 0,
5946
- transform: `translate3d(0,calc(-100% - var(${topVar})),0)`, // space before and after "-" is crucial
5947
- });
5948
- const widthMap = {
5949
- fluid: 'extended',
5950
- extended: 'extended',
5951
- basic: 'basic',
5952
- };
5953
- const getComponentCss$S = (width) => {
5954
- return getCss({
5955
- '@global': {
5956
- ':host': Object.assign(Object.assign({
5957
- // TODO: Why is nothing set as important here?
5958
- [bannerPositionTopVar]: bannerOffset, [bannerPositionBottomVar]: bannerOffset, position: `var(${bannerPositionTypeVar},fixed)`, zIndex: `var(${bannerZIndexVar},${BANNER_Z_INDEX})`, opacity: 0, left: 0, right: 0, willChange: 'opacity,transform' }, mergeDeep(addImportantToEachRule(Object.assign(Object.assign({}, getContentWrapperStyle(widthMap[width])), hostHiddenStyles)), {
5959
- [mediaQueryBase]: {
5960
- bottom: `var(${bannerPositionBottomVar})`,
5961
- },
5962
- [mediaQueryS$1]: {
5963
- top: `var(${bannerPositionTopVar})`,
5964
- },
5965
- })), { '&(.hydrated),&(.ssr)': {
5966
- [mediaQueryBase]: getAnimationIn('mobileIn', bannerAnimationDurationVar),
5967
- [mediaQueryS$1]: getAnimationIn('desktopIn', bannerAnimationDurationVar),
5968
- }, '&(.banner--close)': {
5969
- [mediaQueryBase]: getAnimationOut('mobileOut'),
5970
- [mediaQueryS$1]: getAnimationOut('desktopOut'),
5971
- } }),
5972
- '@keyframes mobileIn': getKeyframesMobile('in', bannerPositionBottomVar),
5973
- '@keyframes mobileOut': getKeyframesMobile('out', bannerPositionBottomVar),
5974
- '@keyframes desktopIn': getKeyframesDesktop('in', bannerPositionTopVar),
5975
- '@keyframes desktopOut': getKeyframesDesktop('out', bannerPositionTopVar),
5976
- },
5977
- root: getBoxShadow(),
5978
- });
5979
- };
5980
-
5981
- const getDirectionJssStyle = (direction) => {
5982
- const style = {
5983
- column: {
5984
- flexFlow: 'column nowrap',
5985
- alignItems: 'stretch',
5986
- },
5987
- row: {
5988
- flexFlow: 'row wrap',
5989
- alignItems: 'center',
5990
- },
5991
- };
5992
- return style[direction];
5993
- };
5994
- const getComponentCss$R = (direction) => {
4138
+ const getComponentCss$U = (direction) => {
5995
4139
  return getCss({
5996
4140
  '@global': {
5997
4141
  ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
5998
- div: Object.assign({ display: 'flex', gap: spacingFluidSmall }, buildResponsiveStyles(direction, getDirectionJssStyle)),
4142
+ div: Object.assign({ display: 'flex', gap: spacingFluidSmall }, buildResponsiveStyles(direction, getGroupDirectionJssStyles)),
5999
4143
  },
6000
4144
  });
6001
4145
  };
6002
4146
 
6003
4147
  const fontSizeTextMap = {
4148
+ 'xx-small': fontSizeTextXXSmall,
6004
4149
  'x-small': fontSizeTextXSmall,
6005
4150
  small: fontSizeTextSmall,
6006
4151
  medium: fontSizeTextMedium,
@@ -6015,7 +4160,7 @@ const getFontSizeText = (size) => {
6015
4160
  // 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.
6016
4161
  const getVisibilityJssStyle = (hideLabel) => {
6017
4162
  return hideLabel
6018
- ? Object.assign(Object.assign({ position: 'absolute' }, getInsetJssStyle(0)), { whiteSpace: 'nowrap', textIndent: '-999999px' }) : Object.assign(Object.assign({ position: 'relative' }, getInsetJssStyle('auto')), { whiteSpace: 'inherit', textIndent: 0 });
4163
+ ? Object.assign(Object.assign({ position: 'absolute' }, getInsetJssStyle()), { whiteSpace: 'nowrap', textIndent: '-999999px' }) : Object.assign(Object.assign({ position: 'relative' }, getInsetJssStyle('auto')), { whiteSpace: 'inherit', textIndent: 0 });
6019
4164
  };
6020
4165
  const offsetVertical = '-2px';
6021
4166
  const offsetHorizontal = '-4px';
@@ -6023,7 +4168,7 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
6023
4168
  const { primaryColor, disabledColor, hoverColor, focusColor } = getThemedColors(theme);
6024
4169
  const hasIcon = hasVisibleIcon(icon, iconSource);
6025
4170
  return Object.assign({ '@global': {
6026
- ':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' }, (!responsiveStretch && { verticalAlign: 'top' }))))),
4171
+ ':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' }))))),
6027
4172
  }, 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) => ({
6028
4173
  justifyContent: stretchValue ? 'space-between' : 'flex-start',
6029
4174
  alignItems: stretchValue ? 'center' : 'flex-start',
@@ -6042,42 +4187,147 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
6042
4187
  '&:not(:focus-visible)::before': {
6043
4188
  border: 0,
6044
4189
  },
6045
- })), label: {
6046
- position: 'relative', // needed for hover state when icon="none" is set
6047
- } }, (hasIcon && {
6048
- icon: {
6049
- position: 'relative',
6050
- flexShrink: '0',
6051
- width: fontLineHeight,
6052
- height: fontLineHeight,
4190
+ })), label: {
4191
+ position: 'relative', // needed for hover state when icon="none" is set
4192
+ } }, (hasIcon && {
4193
+ icon: {
4194
+ position: 'relative',
4195
+ flexShrink: '0',
4196
+ width: fontLineHeight,
4197
+ height: fontLineHeight,
4198
+ },
4199
+ label: mergeDeep(buildResponsiveStyles(hideLabel, getVisibilityJssStyle), buildResponsiveStyles(alignLabel, (alignLabelValue) => ({
4200
+ order: alignLabelValue === 'left' ? -1 : 0,
4201
+ }))),
4202
+ }));
4203
+ };
4204
+
4205
+ const getComponentCss$T = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, theme) => {
4206
+ const hasIcon = hasVisibleIcon(icon, iconSource);
4207
+ return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, false, theme), Object.assign({ root: {
4208
+ appearance: 'none',
4209
+ background: 'transparent',
4210
+ textAlign: 'left',
4211
+ border: 0,
4212
+ cursor: isDisabledOrLoading ? 'not-allowed' : 'pointer',
4213
+ } }, (!hasIcon &&
4214
+ isLoading && {
4215
+ label: {
4216
+ visibility: 'hidden',
4217
+ },
4218
+ icon: {
4219
+ position: 'absolute',
4220
+ top: 0,
4221
+ left: `calc(50% - ${fontLineHeight} / 2)`,
4222
+ width: fontLineHeight,
4223
+ height: fontLineHeight,
4224
+ },
4225
+ }))));
4226
+ };
4227
+
4228
+ const fontWeightMap = {
4229
+ regular: fontWeightRegular,
4230
+ 'semi-bold': fontWeightSemiBold,
4231
+ bold: fontWeightBold,
4232
+ };
4233
+ const getFontWeight = (weight) => {
4234
+ return fontWeightMap[weight];
4235
+ };
4236
+
4237
+ const getThemedTypographyColor = (theme, textColor) => {
4238
+ // TODO: don't destructure for better minification
4239
+ const { primaryColor, contrastHighColor, contrastMediumColor, contrastLowColor, successColor, errorColor, warningColor, infoColor, } = getThemedColors(theme);
4240
+ const colorMap = {
4241
+ primary: primaryColor,
4242
+ default: primaryColor,
4243
+ 'contrast-low': contrastLowColor,
4244
+ 'contrast-medium': contrastMediumColor,
4245
+ 'contrast-high': contrastHighColor,
4246
+ 'notification-success': successColor,
4247
+ 'notification-warning': warningColor,
4248
+ 'notification-error': errorColor,
4249
+ 'notification-info': infoColor,
4250
+ inherit: 'currentColor',
4251
+ };
4252
+ return colorMap[textColor];
4253
+ };
4254
+
4255
+ const aspectRatioPaddingMap = {
4256
+ '1:1': '100%',
4257
+ '4:3': '75%',
4258
+ '3:4': '133.33%',
4259
+ '16:9': '56.25%',
4260
+ '9:16': '177.75%',
4261
+ };
4262
+ const getTileBaseStyles = (aspectRatio, isDisabled) => {
4263
+ return {
4264
+ '@global': Object.assign({ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)) }, addImportantToEachRule({
4265
+ '::slotted': {
4266
+ '&(picture)': Object.assign({ position: 'absolute' }, getInsetJssStyle()),
4267
+ '&(img)': {
4268
+ height: '100%',
4269
+ width: '100%',
4270
+ objectFit: 'cover',
4271
+ },
4272
+ },
4273
+ })),
4274
+ root: Object.assign(Object.assign({ position: 'relative', height: 0, overflow: 'hidden', transform: 'translate3d(0,0,0)', borderRadius: borderRadiusMedium, color: getThemedTypographyColor('dark', 'primary') }, buildResponsiveStyles(aspectRatio, (ratio) => ({
4275
+ paddingTop: aspectRatioPaddingMap[ratio],
4276
+ }))), (!isDisabled &&
4277
+ hoverMediaQuery({
4278
+ '&:hover .image-container': {
4279
+ transform: 'scale3d(1.05,1.05,1.05)',
4280
+ },
4281
+ }))),
4282
+ 'image-container': Object.assign({ position: 'absolute', transition: getTransition('transform') }, getInsetJssStyle()),
4283
+ content: {
4284
+ position: 'absolute',
4285
+ left: 0,
4286
+ right: 0,
4287
+ display: 'flex',
4288
+ justifyItems: 'start',
4289
+ gap: spacingStaticMedium,
4290
+ borderRadius: borderRadiusMedium,
4291
+ '@media (forced-colors: active)': {
4292
+ background: 'rgba(0,0,0,0.7)',
4293
+ },
6053
4294
  },
6054
- label: mergeDeep(buildResponsiveStyles(hideLabel, getVisibilityJssStyle), buildResponsiveStyles(alignLabel, (alignLabelValue) => ({
6055
- order: alignLabelValue === 'left' ? -1 : 0,
4295
+ };
4296
+ };
4297
+
4298
+ const sizeMap$5 = {
4299
+ inherit: { fontSize: 'inherit' },
4300
+ default: { fontSize: fontSizeTextMedium },
4301
+ };
4302
+ const getButtonLinkTileStyles = (aspectRatio, size, weight, // to get deprecated semibold typed
4303
+ align, compact, hasGradient, isDisabled) => {
4304
+ const isTopAligned = align === 'top';
4305
+ return Object.assign({}, mergeDeep(getTileBaseStyles(aspectRatio, isDisabled), {
4306
+ '@global': {
4307
+ p: Object.assign(Object.assign({ maxWidth: pxToRemWithUnit(550), margin: 0 }, textLargeStyle), mergeDeep(buildResponsiveStyles(size, (s) => sizeMap$5[s]), buildResponsiveStyles(weight, (w) => ({
4308
+ fontWeight: getFontWeight(w === 'semibold' ? 'semi-bold' : w), // mapping of the deprecated weight semibold
4309
+ })))),
4310
+ },
4311
+ content: Object.assign(Object.assign(Object.assign({ display: 'grid' }, (isTopAligned ? { top: 0 } : { bottom: 0 })), { padding: isTopAligned
4312
+ ? `${spacingFluidMedium} ${spacingFluidMedium} ${spacingFluidLarge}`
4313
+ : `${spacingFluidLarge} ${spacingFluidMedium} ${spacingFluidMedium}` }), mergeDeep(hasGradient &&
4314
+ buildResponsiveStyles(compact, (isCompact) => isCompact && isTopAligned ? gradientToBottomStyle : gradientToTopStyle), buildResponsiveStyles(compact, (isCompact) => isCompact // TODO: use flex
4315
+ ? Object.assign({ alignItems: 'center', gridTemplateColumns: 'auto 24px', gridTemplateRows: 'auto' }, (isTopAligned ? { top: 0 } : { bottom: 0 })) : {
4316
+ gridTemplateRows: 'auto auto',
4317
+ gridTemplateColumns: 'auto',
4318
+ }))),
4319
+ 'link-or-button-pure': buildResponsiveStyles(compact, (isCompact) => ({
4320
+ display: isCompact ? 'inline-block' : 'none',
4321
+ })),
4322
+ 'link-or-button': Object.assign({ minHeight: '54px' }, buildResponsiveStyles(compact, (isCompact) => ({
4323
+ display: isCompact ? 'none' : 'inline-block',
6056
4324
  }))),
6057
4325
  }));
6058
4326
  };
6059
4327
 
6060
- const getComponentCss$Q = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, theme) => {
6061
- const hasIcon = hasVisibleIcon(icon, iconSource);
6062
- return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, false, theme), Object.assign({ root: {
6063
- appearance: 'none',
6064
- background: 'transparent',
6065
- textAlign: 'left',
6066
- border: 0,
6067
- cursor: isDisabledOrLoading ? 'not-allowed' : 'pointer',
6068
- } }, (!hasIcon &&
6069
- isLoading && {
6070
- label: {
6071
- visibility: 'hidden',
6072
- },
6073
- icon: {
6074
- position: 'absolute',
6075
- top: 0,
6076
- left: `calc(50% - ${fontLineHeight} / 2)`,
6077
- width: fontLineHeight,
6078
- height: fontLineHeight,
6079
- },
6080
- }))));
4328
+ const getComponentCss$S = (isDisabledOrLoading, ...args) => {
4329
+ const buttonLinkTileStyles = getButtonLinkTileStyles(...args);
4330
+ return getCss(Object.assign(Object.assign({}, buttonLinkTileStyles), { root: Object.assign(Object.assign({}, buttonLinkTileStyles.root), { cursor: isDisabledOrLoading ? 'not-allowed' : 'pointer' }) }));
6081
4331
  };
6082
4332
 
6083
4333
  const { primaryColor: darkThemePrimaryColor$1 } = getThemedColors('dark');
@@ -6108,7 +4358,7 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
6108
4358
  const { focusColor } = getThemedColors(theme);
6109
4359
  const hasIcon = hasVisibleIcon(icon, iconSource) || hideLabel;
6110
4360
  return Object.assign({ '@global': {
6111
- ':host': addImportantToEachRule(Object.assign({ display: 'inline-block', verticalAlign: 'top', outline: 0 }, hostHiddenStyles)),
4361
+ ':host': Object.assign({ display: 'inline-block' }, addImportantToEachRule(Object.assign({ verticalAlign: 'top', outline: 0 }, hostHiddenStyles))),
6112
4362
  }, 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)
6113
4363
  backgroundColor, color: textColor }, textSmallStyle), { transition: ['background-color', 'border-color', 'color'].map(getTransition).join() }), buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
6114
4364
  padding: hideLabelValue ? '13px' : hasIcon ? '13px 26px 13px 18px' : '13px 26px',
@@ -6155,7 +4405,7 @@ const getDisabledColors = (variant, loading, theme) => {
6155
4405
  };
6156
4406
  return colors[variant === 'tertiary' ? 'secondary' : variant];
6157
4407
  };
6158
- const getComponentCss$P = (icon, iconSource, variant, hideLabel, disabled, loading, theme) => {
4408
+ const getComponentCss$R = (icon, iconSource, variant, hideLabel, disabled, loading, theme) => {
6159
4409
  const disabledOrLoading = isDisabledOrLoading(disabled, loading);
6160
4410
  const { textColor, borderColor, backgroundColor } = getDisabledColors(variant, loading, theme);
6161
4411
  const isPrimary = variant === 'primary';
@@ -6190,33 +4440,15 @@ const mediaQueryXXL = getMediaQueryMin('xxl');
6190
4440
  const buttonSize$1 = `calc(${spacingStaticSmall} * 2 + ${fontLineHeight})`;
6191
4441
  // + 2px, compensates hover offset of button-pure
6192
4442
  const buttonGroupWidth = `calc(${buttonSize$1} * 2 + ${spacingStaticXSmall} + 2px)`;
6193
- // we don't need to abstract spacing definitions since component content-wrapper is deprecated and will be removed soon
6194
- const gridColumn1FrS = `calc((100% - ${gridSafeZoneBase} * 2 - ${gridGap} * 13) / 14)`;
6195
- const gridColumn1FrXXL = `calc((min(100%, ${gridWidthMax}) - ${gridSafeZoneXXL} * 2 - ${gridGap} * 13) / 14)`;
6196
4443
  const spacingMap = {
6197
- basic: {
6198
- padding: `0 ${gridSafeZoneBase}`,
6199
- [mediaQueryS]: {
6200
- padding: `0 calc(${gridSafeZoneBase} + ${gridGap} + ${gridColumn1FrS})`,
6201
- },
6202
- [mediaQueryXXL]: {
6203
- padding: `0 calc(${gridSafeZoneXXL} + ${gridGap} + ${gridColumn1FrXXL})`,
6204
- },
6205
- },
6206
- extended: {
6207
- padding: `0 ${gridSafeZoneBase}`,
6208
- [mediaQueryXXL]: {
6209
- padding: `0 ${gridSafeZoneXXL}`,
6210
- },
6211
- },
4444
+ basic: gridBasicOffset,
4445
+ extended: gridExtendedOffset,
6212
4446
  };
6213
- const getComponentCss$O = (width, disablePagination, alignHeader, theme) => {
4447
+ const getComponentCss$Q = (width, hasPagination, alignHeader, theme) => {
6214
4448
  const { primaryColor, contrastMediumColor } = getThemedColors(theme);
6215
4449
  const isHeaderAlignCenter = alignHeader === 'center';
6216
4450
  return getCss(Object.assign({ '@global': {
6217
- ':host': addImportantToEachRule(Object.assign({ display: 'flex', gap: spacingFluidMedium, flexDirection: 'column', maxWidth: gridWidthMax,
6218
- // relevant for viewport width > 2560px
6219
- paddingLeft: `calc(50% - ${gridWidthMax} / 2)`, paddingRight: `calc(50% - ${gridWidthMax} / 2)`, boxSizing: 'content-box' }, hostHiddenStyles)),
4451
+ ':host': addImportantToEachRule(Object.assign({ display: 'flex', gap: spacingFluidMedium, flexDirection: 'column', boxSizing: 'content-box' }, hostHiddenStyles)),
6220
4452
  [selectorHeading]: addImportantToEachRule(Object.assign(Object.assign({}, headingXLargeStyle), { maxWidth: '56.25rem', margin: 0 })),
6221
4453
  [selectorDescription]: addImportantToEachRule(Object.assign(Object.assign({}, textSmallStyle), { maxWidth: '34.375rem', margin: `${spacingFluidXSmall} 0 0` })),
6222
4454
  [`${selectorHeading},${selectorDescription}`]: addImportantToEachRule({
@@ -6230,11 +4462,16 @@ const getComponentCss$O = (width, disablePagination, alignHeader, theme) => {
6230
4462
  gridColumn: '1 / 3',
6231
4463
  },
6232
4464
  }),
6233
- }, header: Object.assign({ display: 'grid' }, mergeDeep(spacingMap[width], {
6234
- [mediaQueryS]: Object.assign({ fontFamily, fontSize: fontSizeTextSmall, columnGap: spacingStaticMedium, gridTemplateColumns: `${buttonGroupWidth} minmax(0px, 1fr) ${buttonGroupWidth}` }, (isHeaderAlignCenter && {
4465
+ }, header: {
4466
+ display: 'grid',
4467
+ padding: `0 ${spacingMap[width].base}`,
4468
+ [mediaQueryS]: Object.assign(Object.assign({ fontFamily, fontSize: fontSizeTextSmall, columnGap: spacingStaticMedium, gridTemplateColumns: `${buttonGroupWidth} minmax(0px, 1fr) ${buttonGroupWidth}` }, (isHeaderAlignCenter && {
6235
4469
  justifyItems: 'center', // relevant when max-width of heading or description is reached
6236
- })),
6237
- })), nav: {
4470
+ })), { padding: `0 ${spacingMap[width].s}` }),
4471
+ [mediaQueryXXL]: {
4472
+ padding: `0 ${spacingMap[width].xxl}`,
4473
+ },
4474
+ }, nav: {
6238
4475
  display: 'none',
6239
4476
  [mediaQueryS]: {
6240
4477
  display: 'flex',
@@ -6247,9 +4484,18 @@ const getComponentCss$O = (width, disablePagination, alignHeader, theme) => {
6247
4484
  }, splide: {
6248
4485
  overflow: 'hidden',
6249
4486
  // visibility: 'hidden',
6250
- '&__track': Object.assign(Object.assign({ cursor: 'grab' }, addImportantToEachRule(Object.assign(Object.assign({}, spacingMap[width]), { [getMediaQueryMax('xs')]: {
6251
- paddingRight: `calc(${gridSafeZoneBase} + ${gridGap})`, // we need to give cut off slides a bit more space on mobile views
6252
- } }))), { '&--draggable': {
4487
+ '&__track': Object.assign(Object.assign({ cursor: 'grab' }, addImportantToEachRule({
4488
+ padding: `0 ${spacingMap[width].base}`,
4489
+ [getMediaQueryMax('xs')]: {
4490
+ paddingRight: `calc(${gridBasicOffsetBase} + ${gridGap})`, // we need to give cut off slides a bit more space on mobile views
4491
+ },
4492
+ [mediaQueryS]: {
4493
+ padding: `0 ${spacingMap[width].s}`,
4494
+ },
4495
+ [mediaQueryXXL]: {
4496
+ padding: `0 ${spacingMap[width].xxl}`,
4497
+ },
4498
+ })), { '&--draggable': {
6253
4499
  userSelect: 'none',
6254
4500
  WebkitUserSelect: 'none',
6255
4501
  WebkitTouchCallout: 'none',
@@ -6257,9 +4503,9 @@ const getComponentCss$O = (width, disablePagination, alignHeader, theme) => {
6257
4503
  '&__list': Object.assign({ display: 'flex', height: '100%' }, getBackfaceVisibilityJssStyle()),
6258
4504
  '&__slide': Object.assign(Object.assign({ position: 'relative', flexShrink: 0 }, getBackfaceVisibilityJssStyle()), { transform: 'translateZ(0)' }),
6259
4505
  '&__sr': getScreenReaderOnlyJssStyle(), // appears in the DOM when sliding
6260
- } }, (!disablePagination && {
6261
- pagination: Object.assign(Object.assign({}, buildResponsiveStyles(disablePagination, (disablePaginationValue) => ({
6262
- display: disablePaginationValue ? 'none' : 'flex',
4506
+ } }, (hasPagination && {
4507
+ pagination: Object.assign(Object.assign({}, buildResponsiveStyles(hasPagination, (hasPaginationValue) => ({
4508
+ display: hasPaginationValue ? 'flex' : 'none',
6263
4509
  }))), { justifyContent: 'center', gap: spacingStaticSmall }),
6264
4510
  bullet: {
6265
4511
  borderRadius: borderRadiusSmall,
@@ -6352,7 +4598,7 @@ const getInlineSVGBackgroundImage = (path) => {
6352
4598
  return `url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">${path}</svg>')`;
6353
4599
  };
6354
4600
 
6355
- const getComponentCss$N = (hideLabel, state, isDisabled, theme) => {
4601
+ const getComponentCss$P = (hideLabel, state, isDisabled, theme) => {
6356
4602
  const checkedIconColor = getThemedColors(theme === 'light' ? 'dark' : 'light').primaryColor.replace(/#/g, '%23');
6357
4603
  const indeterminateIconColor = getThemedColors(theme).primaryColor.replace(/#/g, '%23');
6358
4604
  return getCss(mergeDeep(getCheckboxRadioJssStyle(hideLabel, state, isDisabled, theme), {
@@ -6372,39 +4618,34 @@ const getComponentCss$N = (hideLabel, state, isDisabled, theme) => {
6372
4618
  }));
6373
4619
  };
6374
4620
 
6375
- const getComponentCss$M = (width) => {
4621
+ const widthMap = {
4622
+ narrow: gridNarrowOffset,
4623
+ basic: gridBasicOffset,
4624
+ extended: gridExtendedOffset,
4625
+ };
4626
+ const getComponentCss$O = (width) => {
6376
4627
  return getCss({
6377
4628
  '@global': {
6378
4629
  ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
6379
4630
  },
6380
- root: getContentWrapperStyle(width),
4631
+ root: Object.assign({ minWidth: 0 }, (['full', 'fluid'].includes(width)
4632
+ ? {
4633
+ padding: `0 ${gridFullOffset}`,
4634
+ }
4635
+ : {
4636
+ padding: `0 ${widthMap[width].base}`,
4637
+ [getMediaQueryMin('s')]: {
4638
+ padding: `0 ${widthMap[width].s}`,
4639
+ },
4640
+ [getMediaQueryMin('xxl')]: {
4641
+ padding: `0 ${widthMap[width].xxl}`,
4642
+ },
4643
+ })),
6381
4644
  });
6382
4645
  };
6383
4646
 
6384
4647
  const DISPLAY_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
6385
4648
 
6386
- const getThemedTypographyColor = (theme, textColor) => {
6387
- const { primaryColor, contrastHighColor, contrastMediumColor, contrastLowColor, successColor, errorColor, warningColor, infoColor, } = getThemedColors(theme);
6388
- const colorMap = {
6389
- primary: primaryColor,
6390
- brand: primaryColor,
6391
- default: primaryColor,
6392
- 'contrast-low': contrastLowColor,
6393
- 'neutral-contrast-low': contrastLowColor,
6394
- 'contrast-medium': contrastMediumColor,
6395
- 'neutral-contrast-medium': contrastMediumColor,
6396
- 'contrast-high': contrastHighColor,
6397
- 'neutral-contrast-high': contrastHighColor,
6398
- 'notification-success': successColor,
6399
- 'notification-warning': warningColor,
6400
- 'notification-error': errorColor,
6401
- 'notification-info': infoColor,
6402
- 'notification-neutral': infoColor,
6403
- inherit: 'currentColor',
6404
- };
6405
- return colorMap[textColor];
6406
- };
6407
-
6408
4649
  const getTypographyRootJssStyle = (baseTextStyle, responsiveStyle, align, color, ellipsis, theme) => {
6409
4650
  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 && {
6410
4651
  maxWidth: '100%',
@@ -6433,11 +4674,12 @@ const getTypographySlottedJssStyle = () => {
6433
4674
  };
6434
4675
  };
6435
4676
 
6436
- const sizeMap$5 = {
4677
+ const sizeMap$4 = {
4678
+ small: fontSizeDisplaySmall,
6437
4679
  medium: fontSizeDisplayMedium,
6438
4680
  large: fontSizeDisplayLarge,
6439
4681
  };
6440
- const getComponentCss$L = (size, align, color, ellipsis, theme) => {
4682
+ const getComponentCss$N = (size, align, color, ellipsis, theme) => {
6441
4683
  return getCss({
6442
4684
  '@global': {
6443
4685
  ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
@@ -6446,17 +4688,14 @@ const getComponentCss$L = (size, align, color, ellipsis, theme) => {
6446
4688
  },
6447
4689
  },
6448
4690
  root: getTypographyRootJssStyle(displayLargeStyle, buildResponsiveStyles(size, (sizeValue) => ({
6449
- fontSize: sizeValue === 'inherit' ? sizeValue : sizeMap$5[sizeValue],
4691
+ fontSize: sizeValue === 'inherit' ? sizeValue : sizeMap$4[sizeValue],
6450
4692
  })), align, color, ellipsis, theme),
6451
4693
  });
6452
4694
  };
6453
4695
 
6454
- const getComponentCss$K = (color, orientation, theme) => {
4696
+ const getComponentCss$M = (color, orientation, theme) => {
6455
4697
  const { contrastLowColor, contrastMediumColor, contrastHighColor } = getThemedColors(theme);
6456
4698
  const colorMap = {
6457
- 'neutral-contrast-low': contrastLowColor,
6458
- 'neutral-contrast-medium': contrastMediumColor,
6459
- 'neutral-contrast-high': contrastHighColor,
6460
4699
  'contrast-low': contrastLowColor,
6461
4700
  'contrast-medium': contrastMediumColor,
6462
4701
  'contrast-high': contrastHighColor,
@@ -6469,7 +4708,21 @@ const getComponentCss$K = (color, orientation, theme) => {
6469
4708
  });
6470
4709
  };
6471
4710
 
6472
- const getComponentCss$J = (state, labelSize, hasLabel, theme) => {
4711
+ const getComponentCss$L = (state, labelSize, hasLabel, theme) => {
4712
+ return getCss(Object.assign(Object.assign({ '@global': Object.assign({ ':host': addImportantToEachRule(Object.assign({ display: 'block' }, hostHiddenStyles)), fieldset: {
4713
+ margin: 0,
4714
+ padding: 0,
4715
+ border: 'none',
4716
+ } }, (hasLabel && {
4717
+ legend: Object.assign({ margin: `0 0 ${spacingStaticMedium}`, padding: 0, color: getThemedColors(theme).primaryColor }, (labelSize === 'small' ? headingSmallStyle : headingMediumStyle)),
4718
+ })) }, getFunctionalComponentRequiredStyles()), mergeDeep(getFunctionalComponentStateMessageStyles(theme, state), {
4719
+ message: {
4720
+ marginTop: spacingStaticMedium,
4721
+ },
4722
+ })));
4723
+ };
4724
+
4725
+ const getComponentCss$K = (state, labelSize, hasLabel, theme) => {
6473
4726
  return getCss(Object.assign(Object.assign({ '@global': Object.assign({ ':host': addImportantToEachRule(Object.assign({ display: 'block' }, hostHiddenStyles)), fieldset: {
6474
4727
  margin: 0,
6475
4728
  padding: 0,
@@ -6493,7 +4746,7 @@ const flexItemWidths = {
6493
4746
  full: 100,
6494
4747
  auto: 'auto',
6495
4748
  };
6496
- const getComponentCss$I = (width, offset, alignSelf, grow, shrink, flex) => {
4749
+ const getComponentCss$J = (width, offset, alignSelf, grow, shrink, flex) => {
6497
4750
  return getCss({
6498
4751
  '@global': {
6499
4752
  ':host': addImportantToEachRule(Object.assign(Object.assign({ boxSizing: 'border-box' }, hostHiddenStyles), mergeDeep(buildResponsiveStyles(width, (widthResponsive) => ({
@@ -6511,7 +4764,7 @@ const getComponentCss$I = (width, offset, alignSelf, grow, shrink, flex) => {
6511
4764
  });
6512
4765
  };
6513
4766
 
6514
- const getComponentCss$H = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
4767
+ const getComponentCss$I = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
6515
4768
  return getCss({
6516
4769
  '@global': {
6517
4770
  ':host': addImportantToEachRule(mergeDeep(hostHiddenStyles, buildResponsiveStyles(inline, (inlineResponsive) => ({
@@ -6533,7 +4786,7 @@ const gutter$1 = `calc(${gridGap} / 2)`;
6533
4786
  const gridItemWidths = [
6534
4787
  0, 8.333333, 16.666667, 25, 33.333333, 41.666667, 50, 58.333333, 66.666667, 75, 83.333333, 91.666667, 100,
6535
4788
  ];
6536
- const getComponentCss$G = (size, offset) => {
4789
+ const getComponentCss$H = (size, offset) => {
6537
4790
  return getCss({
6538
4791
  '@global': {
6539
4792
  ':host': addImportantToEachRule(Object.assign(Object.assign({ paddingLeft: gutter$1, paddingRight: gutter$1, boxSizing: 'border-box' }, hostHiddenStyles), mergeDeep(buildResponsiveStyles(size, (sizeResponsive) => ({
@@ -6547,7 +4800,7 @@ const getComponentCss$G = (size, offset) => {
6547
4800
  };
6548
4801
 
6549
4802
  const gutter = `calc(${gridGap} / -2)`;
6550
- const getComponentCss$F = (direction, wrap) => {
4803
+ const getComponentCss$G = (direction, wrap) => {
6551
4804
  return getCss({
6552
4805
  '@global': {
6553
4806
  ':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 }))))),
@@ -6555,15 +4808,14 @@ const getComponentCss$F = (direction, wrap) => {
6555
4808
  });
6556
4809
  };
6557
4810
 
6558
- const sizeMap$4 = {
4811
+ const sizeMap$3 = {
6559
4812
  small: fontSizeHeadingSmall,
6560
4813
  medium: fontSizeHeadingMedium,
6561
4814
  large: fontSizeHeadingLarge,
6562
4815
  'x-large': fontSizeHeadingXLarge,
6563
4816
  'xx-large': fontSizeHeadingXXLarge,
6564
- 'xxx-large': fontSizeHeadingXXXLarge,
6565
4817
  };
6566
- const getComponentCss$E = (size, align, color, ellipsis, theme) => {
4818
+ const getComponentCss$F = (size, align, color, ellipsis, theme) => {
6567
4819
  return getCss({
6568
4820
  '@global': {
6569
4821
  ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
@@ -6572,7 +4824,7 @@ const getComponentCss$E = (size, align, color, ellipsis, theme) => {
6572
4824
  },
6573
4825
  },
6574
4826
  root: getTypographyRootJssStyle(headingXXLargeStyle, buildResponsiveStyles(size, (sizeValue) => ({
6575
- fontSize: sizeValue === 'inherit' ? sizeValue : sizeMap$4[sizeValue],
4827
+ fontSize: sizeValue === 'inherit' ? sizeValue : sizeMap$3[sizeValue],
6576
4828
  })), align, color, ellipsis, theme),
6577
4829
  });
6578
4830
  };
@@ -6605,6 +4857,7 @@ const getHeadlineVariantJssStyle = (variant) => {
6605
4857
  }));
6606
4858
  };
6607
4859
  const textSizeMap = {
4860
+ 'xx-small': fontSizeTextXXSmall,
6608
4861
  'x-small': fontSizeTextXSmall,
6609
4862
  small: fontSizeTextSmall,
6610
4863
  medium: fontSizeTextMedium,
@@ -6616,7 +4869,7 @@ const getTextSizeJssStyle = (textSize) => {
6616
4869
  fontSize: textSize === 'inherit' ? textSize : textSizeMap[textSize],
6617
4870
  };
6618
4871
  };
6619
- const getComponentCss$D = (variant, align, color, ellipsis, theme) => {
4872
+ const getComponentCss$E = (variant, align, color, ellipsis, theme) => {
6620
4873
  return getCss({
6621
4874
  '@global': {
6622
4875
  ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
@@ -6630,64 +4883,57 @@ const getComponentCss$D = (variant, align, color, ellipsis, theme) => {
6630
4883
  });
6631
4884
  };
6632
4885
 
6633
- const sizeMap$3 = {
4886
+ const toFilter = (values) => `invert(${values[0]}%) sepia(${values[1]}%) saturate(${values[2]}%) hue-rotate(${values[3]}deg) brightness(${values[4]}%) contrast(${values[5]}%)`;
4887
+
4888
+ const filterLightContrastLow = toFilter([93, 11, 36, 201, 89, 102]);
4889
+ const filterLightContrastMedium = toFilter([65, 6, 119, 187, 90, 92]);
4890
+ const filterLightContrastHigh = toFilter([40, 2, 686, 187, 80, 94]);
4891
+ const filterDarkContrastLow = toFilter([20, 7, 421, 202, 97, 82]);
4892
+ const filterDarkContrastMedium = toFilter([54, 4, 229, 187, 91, 84]);
4893
+ const filterDarkContrastHigh = toFilter([68, 6, 108, 187, 104, 88]);
4894
+
4895
+ const filterLightNotificationSuccess = toFilter([62, 61, 551, 86, 86, 80]);
4896
+ const filterLightNotificationWarning = toFilter([74, 91, 343, 348, 92, 86]);
4897
+ const filterLightNotificationError = toFilter([25, 62, 2003, 335, 100, 97]);
4898
+ const filterLightNotificationInfo = toFilter([44, 100, 492, 195, 86, 221]);
4899
+ const filterDarkNotificationSuccess = toFilter([59, 22, 1342, 86, 96, 88]);
4900
+ const filterDarkNotificationWarning = toFilter([72, 94, 303, 354, 89, 94]);
4901
+ const filterDarkNotificationError = toFilter([28, 34, 3133, 333, 95, 100]);
4902
+ const filterDarkNotificationInfo = toFilter([56, 77, 4175, 198, 104, 98]);
4903
+
4904
+ const filterLightPrimary = toFilter([3, 7, 2930, 188, 91, 103]);
4905
+ const filterDarkPrimary = toFilter([97, 55, 2840, 180, 114, 103]);
4906
+
4907
+ const sizeMap$2 = {
4908
+ 'xx-small': fontSizeTextXXSmall,
6634
4909
  'x-small': fontSizeTextXSmall,
6635
4910
  small: fontSizeTextSmall,
6636
4911
  medium: fontSizeTextMedium,
6637
4912
  large: fontSizeTextLarge,
6638
4913
  'x-large': fontSizeTextXLarge,
6639
4914
  };
6640
- // TODO, use Tuple to reduce chunk size
6641
- const filterLightPrimary$1 = 'invert(3%) sepia(7%) saturate(2930%) hue-rotate(188deg) brightness(91%) contrast(103%)';
6642
- const filterLightContrastLow$1 = 'invert(93%) sepia(11%) saturate(36%) hue-rotate(201deg) brightness(89%) contrast(102%)';
6643
- const filterLightContrastMedium$1 = 'invert(65%) sepia(6%) saturate(119%) hue-rotate(187deg) brightness(90%) contrast(92%)';
6644
- const filterLightContrastHigh$1 = 'invert(40%) sepia(2%) saturate(686%) hue-rotate(187deg) brightness(80%) contrast(94%)';
6645
- const filterLightNotificationSuccess = 'invert(62%) sepia(61%) saturate(551%) hue-rotate(86deg) brightness(86%) contrast(80%)';
6646
- const filterLightNotificationWarning = 'invert(74%) sepia(91%) saturate(343%) hue-rotate(348deg) brightness(92%) contrast(86%)';
6647
- const filterLightNotificationError = 'invert(25%) sepia(62%) saturate(2003%) hue-rotate(335deg) brightness(100%) contrast(97%)';
6648
- const filterLightNotificationInfo = 'invert(31%) sepia(32%) saturate(5493%) hue-rotate(216deg) brightness(90%) contrast(107%)';
6649
- const filterDarkPrimary$1 = 'invert(97%) sepia(55%) saturate(2840%) hue-rotate(180deg) brightness(114%) contrast(103%)';
6650
- const filterDarkContrastLow$1 = 'invert(20%) sepia(7%) saturate(421%) hue-rotate(202deg) brightness(97%) contrast(82%)';
6651
- const filterDarkContrastMedium$1 = 'invert(54%) sepia(4%) saturate(229%) hue-rotate(187deg) brightness(91%) contrast(84%)';
6652
- const filterDarkContrastHigh$1 = 'invert(68%) sepia(6%) saturate(108%) hue-rotate(187deg) brightness(104%) contrast(88%)';
6653
- const filterDarkNotificationSuccess = 'invert(59%) sepia(22%) saturate(1342%) hue-rotate(86deg) brightness(96%) contrast(88%)';
6654
- const filterDarkNotificationWarning = 'invert(72%) sepia(94%) saturate(303%) hue-rotate(354deg) brightness(89%) contrast(94%)';
6655
- const filterDarkNotificationError = 'invert(28%) sepia(34%) saturate(3133%) hue-rotate(333deg) brightness(95%) contrast(100%)';
6656
- const filterDarkNotificationInfo = 'invert(31%) sepia(32%) saturate(5493%) hue-rotate(216deg) brightness(90%) contrast(107%)';
6657
4915
  const filter = {
6658
4916
  light: {
6659
- primary: filterLightPrimary$1,
6660
- brand: filterLightPrimary$1,
6661
- default: filterLightPrimary$1,
6662
- disabled: filterLightContrastMedium$1,
6663
- 'contrast-low': filterLightContrastLow$1,
6664
- 'neutral-contrast-low': filterLightContrastLow$1,
6665
- 'contrast-medium': filterLightContrastMedium$1,
6666
- 'neutral-contrast-medium': filterLightContrastMedium$1,
6667
- 'contrast-high': filterLightContrastHigh$1,
6668
- 'neutral-contrast-high': filterLightContrastHigh$1,
4917
+ primary: filterLightPrimary,
4918
+ 'state-disabled': filterLightContrastMedium,
4919
+ 'contrast-low': filterLightContrastLow,
4920
+ 'contrast-medium': filterLightContrastMedium,
4921
+ 'contrast-high': filterLightContrastHigh,
6669
4922
  'notification-success': filterLightNotificationSuccess,
6670
4923
  'notification-warning': filterLightNotificationWarning,
6671
4924
  'notification-error': filterLightNotificationError,
6672
4925
  'notification-info': filterLightNotificationInfo,
6673
- 'notification-neutral': filterLightNotificationInfo, // deprecated
6674
4926
  },
6675
4927
  dark: {
6676
- primary: filterDarkPrimary$1,
6677
- brand: filterDarkPrimary$1,
6678
- default: filterDarkPrimary$1,
6679
- disabled: filterDarkContrastMedium$1,
6680
- 'contrast-low': filterDarkContrastLow$1,
6681
- 'neutral-contrast-low': filterDarkContrastLow$1,
6682
- 'contrast-medium': filterDarkContrastMedium$1,
6683
- 'neutral-contrast-medium': filterDarkContrastMedium$1,
6684
- 'contrast-high': filterDarkContrastHigh$1,
6685
- 'neutral-contrast-high': filterDarkContrastHigh$1,
4928
+ primary: filterDarkPrimary,
4929
+ 'state-disabled': filterDarkContrastMedium,
4930
+ 'contrast-low': filterDarkContrastLow,
4931
+ 'contrast-medium': filterDarkContrastMedium,
4932
+ 'contrast-high': filterDarkContrastHigh,
6686
4933
  'notification-success': filterDarkNotificationSuccess,
6687
4934
  'notification-warning': filterDarkNotificationWarning,
6688
4935
  'notification-error': filterDarkNotificationError,
6689
4936
  'notification-info': filterDarkNotificationInfo,
6690
- 'notification-neutral': filterDarkNotificationInfo, // deprecated
6691
4937
  },
6692
4938
  };
6693
4939
  const forceRerenderAnimationStyle = {
@@ -6700,13 +4946,14 @@ const forceRerenderAnimationStyle = {
6700
4946
  };
6701
4947
  const keyFramesLight = 'rerender-light';
6702
4948
  const keyFramesDark = 'rerender-dark';
6703
- const getComponentCss$C = (color, size, theme) => {
4949
+ const getComponentCss$D = (color, size, theme) => {
6704
4950
  const isColorInherit = color === 'inherit';
6705
4951
  const isSizeInherit = size === 'inherit';
4952
+ const isDark = isThemeDark(theme);
6706
4953
  return getCss({
6707
4954
  '@global': Object.assign({ ':host': Object.assign({ display: 'inline-block', verticalAlign: 'top' }, addImportantToEachRule(hostHiddenStyles)), img: Object.assign(Object.assign({ display: 'block', margin: 0, padding: 0 }, (!isColorInherit && {
6708
4955
  filter: filter[theme][color],
6709
- WebkitAnimation: `${theme === 'light' ? keyFramesLight : keyFramesDark} 1ms`, // needed to enforce repaint in Safari if theme is switched programmatically.
4956
+ WebkitAnimation: `${isDark ? keyFramesDark : keyFramesLight} 1ms`, // needed to enforce repaint in Safari if theme is switched programmatically.
6710
4957
  })), (isSizeInherit
6711
4958
  ? {
6712
4959
  width: size,
@@ -6715,9 +4962,9 @@ const getComponentCss$C = (color, size, theme) => {
6715
4962
  : {
6716
4963
  width: fontLineHeight,
6717
4964
  height: fontLineHeight,
6718
- font: `${sizeMap$3[size]} ${fontFamily}`,
4965
+ font: `${sizeMap$2[size]} ${fontFamily}`,
6719
4966
  })) }, (!isColorInherit && {
6720
- [`@keyframes ${isThemeDark(theme) ? keyFramesDark : keyFramesLight}`]: forceRerenderAnimationStyle,
4967
+ [`@keyframes ${isDark ? keyFramesDark : keyFramesLight}`]: forceRerenderAnimationStyle,
6721
4968
  })),
6722
4969
  });
6723
4970
  };
@@ -6766,7 +5013,7 @@ const getNotificationContentJssStyle = () => ({
6766
5013
  });
6767
5014
 
6768
5015
  const mediaQueryMaxS = getMediaQueryMax('s');
6769
- const getComponentCss$B = (state, hasAction, hasClose, theme) => {
5016
+ const getComponentCss$C = (state, hasAction, hasClose, theme) => {
6770
5017
  return getCss(Object.assign({ '@global': {
6771
5018
  ':host': addImportantToEachRule(Object.assign(Object.assign({}, getNotificationRootJssStyle(state, hasAction, hasClose, theme)), hostHiddenStyles)),
6772
5019
  h5: headingSmallStyle,
@@ -6784,18 +5031,13 @@ const getComponentCss$B = (state, hasAction, hasClose, theme) => {
6784
5031
  })));
6785
5032
  };
6786
5033
 
6787
- const getComponentCss$A = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme) => {
5034
+ const getComponentCss$B = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme) => {
6788
5035
  const { focusColor } = getThemedColors(theme);
6789
5036
  const hasIcon = hasVisibleIcon(icon, iconSource);
6790
5037
  return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, hideLabel, alignLabel, hasSlottedAnchor, theme), Object.assign(Object.assign({}, (hasSlottedAnchor && {
6791
5038
  '@global': addImportantToEachRule({
6792
5039
  '::slotted': {
6793
- '&(a)': {
6794
- outline: 0,
6795
- textDecoration: underline ? 'underline' : 'none',
6796
- font: 'inherit',
6797
- color: 'inherit',
6798
- },
5040
+ '&(a)': Object.assign(Object.assign({}, getResetInitialStylesForSlottedAnchor), { outline: 0, textDecoration: underline ? 'underline' : 'none', font: 'inherit', color: 'inherit' }),
6799
5041
  // The clickable area for Safari < ~15 (<= release date: 2021-10-28) is reduced to the slotted anchor itself,
6800
5042
  // since Safari prior to this major release does not support pseudo-elements in the slotted context
6801
5043
  // (https://bugs.webkit.org/show_bug.cgi?id=178237)
@@ -6816,17 +5058,12 @@ const getComponentCss$A = (icon, iconSource, active, stretch, size, hideLabel, a
6816
5058
  } })));
6817
5059
  };
6818
5060
 
6819
- const getComponentCss$z = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, theme) => {
5061
+ const getComponentCss$A = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, theme) => {
6820
5062
  const { focusColor } = getThemedColors(theme);
6821
5063
  return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, false, hasSlottedAnchor, theme), Object.assign({}, (hasSlottedAnchor && {
6822
5064
  '@global': addImportantToEachRule({
6823
5065
  '::slotted': {
6824
- '&(a)': {
6825
- outline: 0,
6826
- textDecoration: 'none',
6827
- font: 'inherit',
6828
- color: 'inherit',
6829
- },
5066
+ '&(a)': Object.assign(Object.assign({}, getResetInitialStylesForSlottedAnchor), { outline: 0, textDecoration: 'none', font: 'inherit', color: 'inherit' }),
6830
5067
  // The clickable area for Safari < ~15 (<= release date: 2021-10-28) is reduced to the slotted anchor itself,
6831
5068
  // since Safari prior to this major release does not support pseudo-elements in the slotted context
6832
5069
  // (https://bugs.webkit.org/show_bug.cgi?id=178237)
@@ -6846,91 +5083,27 @@ const getComponentCss$z = (icon, iconSource, variant, hideLabel, hasSlottedAncho
6846
5083
  }))));
6847
5084
  };
6848
5085
 
6849
- const fontWeightMap = {
6850
- thin: fontWeightRegular,
6851
- regular: fontWeightRegular,
6852
- semibold: fontWeightSemiBold$1,
6853
- 'semi-bold': fontWeightSemiBold$1,
6854
- bold: fontWeightBold,
6855
- };
6856
- const getFontWeight = (weight) => {
6857
- return fontWeightMap[weight];
6858
- };
5086
+ const LINK_TILE_MODEL_SIGNATURE_HEADING_TAGS = ['h2', 'h3', 'h4', 'h5', 'h6'];
6859
5087
 
6860
- const aspectRatioPaddingTop = {
6861
- '1:1': '100%',
6862
- '4:3': '75%',
6863
- '3:4': '133.33%',
6864
- '16:9': '56.25%',
6865
- '9:16': '177.75%',
6866
- };
6867
- const getGradientBackground = (isCompact, isTopAligned) => {
6868
- const gradient = 'rgba(31,31,31,0.9) 0%,' +
6869
- 'rgba(31,31,31,0.9) 20%,' +
6870
- 'rgba(31,31,31,0.852589) 26.67%,' +
6871
- 'rgba(32,32,32,0.768225) 33.33%,' +
6872
- 'rgba(33,33,33,0.668116) 40%,' +
6873
- 'rgba(34,34,34,0.557309) 46.67%,' +
6874
- 'rgba(35,35,35,0.442691) 53.33%,' +
6875
- 'rgba(36,36,36,0.331884) 60%,' +
6876
- 'rgba(37,37,37,0.231775) 66.67%,' +
6877
- 'rgba(38,38,38,0.147411) 73.33%,' +
6878
- 'rgba(39,39,39,0.0816599) 80%,' +
6879
- 'rgba(39,39,39,0.03551) 86.67%,' +
6880
- 'rgba(39,39,39,0.0086472) 93.33%,' +
6881
- 'rgba(39,39,39,0)';
6882
- return isCompact && isTopAligned
6883
- ? `linear-gradient(${gradient} 100%);`
6884
- : `linear-gradient(to top, ${gradient} 100%);`;
6885
- };
6886
- const sizeMap$2 = {
6887
- inherit: {
6888
- fontSize: 'inherit',
6889
- },
6890
- default: { fontSize: '1.25rem' },
5088
+ const getComponentCss$z = (aspectRatio, weight, direction, hasDescription) => {
5089
+ const tileBaseStyles = getTileBaseStyles(aspectRatio);
5090
+ 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(',')]: {
5091
+ margin: addImportantToRule(0),
5092
+ } }), content: Object.assign(Object.assign(Object.assign({}, tileBaseStyles.content), { flexDirection: 'column', bottom: 0, padding: `${spacingFluidLarge} ${spacingFluidMedium} ${spacingFluidMedium}` }), gradientToTopStyle), model: {
5093
+ position: 'absolute',
5094
+ top: spacingFluidMedium,
5095
+ left: spacingFluidMedium,
5096
+ }, heading: Object.assign(Object.assign({ margin: 0 }, textLargeStyle), buildResponsiveStyles(weight, (w) => ({ fontWeight: getFontWeight(w) }))) }), (hasDescription && {
5097
+ description: Object.assign({ margin: '-12px 0 0 ' }, textSmallStyle),
5098
+ })), { 'link-group': Object.assign({ display: 'flex', width: '100%', gap: spacingFluidSmall }, buildResponsiveStyles(direction, getGroupDirectionJssStyles)), 'link-overlay': Object.assign({
5099
+ // covers entire tile, used for expanded click-area only
5100
+ position: 'fixed' }, getInsetJssStyle()) }));
6891
5101
  };
6892
- const getComponentCss$y = (aspectRatio, size, weight, align, compact, hasGradient) => {
6893
- const isTopAligned = align === 'top';
6894
- const paddingSizeXS = pxToRemWithUnit(24);
6895
- const gradientPadding = pxToRemWithUnit(72);
6896
- return getCss({
6897
- '@global': Object.assign(Object.assign({ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(Object.assign({ height: 'fit-content' }, hostHiddenStyles))) }, addImportantToEachRule({
6898
- '::slotted(picture),::slotted(img)': Object.assign({ transition: getTransition('transform') }, getBackfaceVisibilityJssStyle()),
6899
- '::slotted(picture)': Object.assign({ position: 'absolute' }, getInsetJssStyle()),
6900
- '::slotted(img)': {
6901
- height: '100%',
6902
- width: '100%',
6903
- objectFit: 'cover',
6904
- },
6905
- })), { p: Object.assign(Object.assign(Object.assign({ color: getThemedTypographyColor('dark', 'primary') }, textSmallStyle), { maxWidth: pxToRemWithUnit(550), margin: 0 }), mergeDeep(buildResponsiveStyles(size, (s) => sizeMap$2[s]), buildResponsiveStyles(weight, (w) => ({ fontWeight: getFontWeight(w) })))) }),
6906
- root: Object.assign(Object.assign({ height: 0, position: 'relative', transform: 'translate3d(0,0,0)' }, hoverMediaQuery({
6907
- '&:hover': {
6908
- '& ::slotted(picture),::slotted(img)': addImportantToEachRule({
6909
- transform: 'scale3d(1.05, 1.05, 1.05)',
6910
- }),
6911
- },
6912
- })), buildResponsiveStyles(aspectRatio, (ratio) => ({
6913
- paddingTop: aspectRatioPaddingTop[ratio],
6914
- }))),
6915
- 'image-container': Object.assign(Object.assign({ position: 'absolute' }, getInsetJssStyle()), { overflow: 'hidden' }),
6916
- content: Object.assign(Object.assign(Object.assign({ position: 'absolute' }, (isTopAligned ? { top: 0 } : { bottom: 0 })), { left: 0, right: 0, display: 'grid', justifyItems: 'start', padding: align === 'bottom'
6917
- ? `${gradientPadding} ${paddingSizeXS} ${paddingSizeXS}`
6918
- : `${paddingSizeXS} ${paddingSizeXS} ${gradientPadding}`, gap: pxToRemWithUnit(24) }), mergeDeep({
6919
- [getMediaQueryMin('s')]: Object.assign({ paddingLeft: pxToRemWithUnit(32), paddingRight: pxToRemWithUnit(32) }, (align === 'bottom' ? { paddingBottom: pxToRemWithUnit(32) } : { paddingTop: pxToRemWithUnit(32) })),
6920
- }, hasGradient &&
6921
- buildResponsiveStyles(compact, (isCompact) => ({
6922
- background: getGradientBackground(isCompact, isTopAligned),
6923
- })), buildResponsiveStyles(compact, (isCompact) => isCompact
6924
- ? Object.assign({ alignItems: 'center', gridTemplateColumns: `auto ${pxToRemWithUnit(24)}`, gridTemplateRows: 'auto' }, (isTopAligned ? { top: 0 } : { bottom: 0 })) : { gridTemplateRows: 'auto auto', gridTemplateColumns: 'auto' }))),
6925
- 'link-pure': buildResponsiveStyles(compact, (isCompact) => ({
6926
- display: isCompact ? 'inline-block' : 'none',
6927
- })),
6928
- link: Object.assign({ minHeight: '3rem' }, buildResponsiveStyles(compact, (isCompact) => ({ display: isCompact ? 'none' : 'inline-flex' }))),
6929
- // Due to position absolut on .content, position fixed is used to expand the clickable area of the anchor onto the whole link-tile
6930
- anchor: {
6931
- '&::after': Object.assign({ content: '""', position: 'fixed' }, getInsetJssStyle()),
6932
- },
6933
- });
5102
+
5103
+ const getComponentCss$y = (...args) => {
5104
+ return getCss(Object.assign(Object.assign({}, getButtonLinkTileStyles(...args)), { 'link-overlay': Object.assign({
5105
+ // covers entire tile, used for expanded click-area only
5106
+ position: 'fixed' }, getInsetJssStyle()) }));
6934
5107
  };
6935
5108
 
6936
5109
  const baseSizes = {
@@ -6978,10 +5151,10 @@ const getFullscreenJssStyles = (fullscreen) => {
6978
5151
  borderRadius: 0,
6979
5152
  }
6980
5153
  : {
6981
- minWidth: pxToRemWithUnit(275.2),
6982
- maxWidth: pxToRemWithUnit(1536),
5154
+ minWidth: '276px',
5155
+ maxWidth: '1535.5px',
6983
5156
  minHeight: 'auto',
6984
- margin: `max(16px, 7vh) ${gridSafeZoneBase}`,
5157
+ margin: `clamp(16px, 7vh, 192px) ${gridExtendedOffsetBase}`,
6985
5158
  borderRadius: borderRadiusMedium,
6986
5159
  };
6987
5160
  };
@@ -6997,7 +5170,7 @@ const isFullscreenForXl = (fullscreen) => {
6997
5170
  return BREAKPOINTS.indexOf(lastTrueBreakpoint) > BREAKPOINTS.indexOf(lastFalseBreakpoint);
6998
5171
  }
6999
5172
  };
7000
- const getSlottedJssStyle = (marginValue, hasHeader, disableCloseButton) => {
5173
+ const getSlottedJssStyle = (marginValue, hasHeader, hasDismissButton) => {
7001
5174
  const marginPx = `${-marginValue}px`;
7002
5175
  const marginRem = pxToRemWithUnit(-marginValue);
7003
5176
  return Object.assign(Object.assign({ [`&(.${stretchToFullModalWidthClassName})`]: {
@@ -7005,13 +5178,13 @@ const getSlottedJssStyle = (marginValue, hasHeader, disableCloseButton) => {
7005
5178
  margin: `0 ${marginPx}`,
7006
5179
  } }, (!hasHeader && {
7007
5180
  [`&(.${stretchToFullModalWidthClassName}:first-child)`]: {
7008
- marginTop: !disableCloseButton ? marginRem : marginPx,
5181
+ marginTop: hasDismissButton ? marginRem : marginPx,
7009
5182
  },
7010
5183
  })), { [`&(.${stretchToFullModalWidthClassName}:last-child)`]: {
7011
5184
  marginBottom: marginPx,
7012
5185
  } });
7013
5186
  };
7014
- const getComponentCss$w = (open, fullscreen, disableCloseButton, hasHeader) => {
5187
+ const getComponentCss$w = (open, fullscreen, hasDismissButton, hasHeader) => {
7015
5188
  const isFullscreenForXlAndXxl = isFullscreenForXl(fullscreen);
7016
5189
  return getCss(Object.assign(Object.assign({ '@global': {
7017
5190
  ':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' }), (open
@@ -7024,8 +5197,8 @@ const getComponentCss$w = (open, fullscreen, disableCloseButton, hasHeader) => {
7024
5197
  visibility: 'hidden',
7025
5198
  })), hostHiddenStyles), {
7026
5199
  // workaround via pseudo element to fix stacking (black) background in safari
7027
- '&::before': Object.assign(Object.assign(Object.assign({ content: '""', position: 'fixed' }, getInsetJssStyle()), { background: themeDarkBackgroundShading }), frostedGlassStyle) }))), { overflowY: 'auto' }),
7028
- '::slotted': addImportantToEachRule(Object.assign({}, mergeDeep(getSlottedJssStyle(32, hasHeader, disableCloseButton), buildResponsiveStyles(fullscreen, (fullscreenValue) => ({
5200
+ '&::before': Object.assign(Object.assign(Object.assign(Object.assign({ content: '""', position: 'fixed' }, getInsetJssStyle()), { background: themeDarkBackgroundShading }), frostedGlassStyle), { pointerEvents: 'none' }) }))), { overflowY: 'auto' }),
5201
+ '::slotted': addImportantToEachRule(Object.assign({}, mergeDeep(getSlottedJssStyle(32, hasHeader, hasDismissButton), buildResponsiveStyles(fullscreen, (fullscreenValue) => ({
7029
5202
  [`&(.${stretchToFullModalWidthClassName}`]: {
7030
5203
  '&:first-child)': {
7031
5204
  borderRadius: fullscreenValue ? 0 : '8px 8px 0 0',
@@ -7041,44 +5214,30 @@ const getComponentCss$w = (open, fullscreen, disableCloseButton, hasHeader) => {
7041
5214
  boxSizing: 'border-box',
7042
5215
  transition: `transform .6s ${transitionTimingFunction}`,
7043
5216
  transform: open ? 'scale3d(1,1,1)' : 'scale3d(.9,.9,1)',
7044
- padding: !disableCloseButton ? `${pxToRemWithUnit(32)} 32px 32px 32px` : '32px',
7045
- backgroundColor,
5217
+ padding: hasDismissButton ? `${pxToRemWithUnit(32)} 32px 32px 32px` : '32px',
5218
+ background: backgroundColor,
7046
5219
  outline: 0,
7047
- '&:focus::before': Object.assign({ content: '""', position: 'fixed', border: `${borderWidthBase} solid` }, buildResponsiveStyles(fullscreen, (fullscreenValue) => (Object.assign({ borderRadius: fullscreenValue ? 0 : '12px', borderColor: fullscreenValue ? lightThemePrimaryColor : darkThemePrimaryColor }, getInsetJssStyle(fullscreenValue ? 0 : -4))))),
5220
+ '&:focus::before': Object.assign({ content: '""', position: 'fixed', border: `${borderWidthBase} solid`, pointerEvents: 'none' }, buildResponsiveStyles(fullscreen, (fullscreenValue) => (Object.assign({ borderRadius: fullscreenValue ? 0 : '12px', borderColor: fullscreenValue ? lightThemePrimaryColor : darkThemePrimaryColor }, getInsetJssStyle(fullscreenValue ? 0 : -4))))),
7048
5221
  '&:not(:focus-visible)::before': {
7049
5222
  border: 0,
7050
5223
  },
7051
5224
  [mediaQueryXl]: {
7052
- margin: isFullscreenForXlAndXxl ? 0 : `min(192px, 10vh) ${gridSafeZoneBase}`,
5225
+ margin: isFullscreenForXlAndXxl ? 0 : `min(192px, 10vh) ${gridExtendedOffsetBase}`,
7053
5226
  },
7054
5227
  }, buildResponsiveStyles(fullscreen, getFullscreenJssStyles)) }, (hasHeader && {
7055
5228
  header: {
7056
5229
  padding: '0 0 8px',
7057
5230
  },
7058
- })), { close: {
7059
- position: 'absolute',
7060
- top: '8px',
7061
- right: '8px',
7062
- border: `2px solid ${backgroundColor}`,
7063
- borderRadius: '4px',
7064
- backgroundColor,
5231
+ })), (hasDismissButton && {
5232
+ dismiss: Object.assign({ position: 'absolute', top: '8px', right: '8px', border: `2px solid ${backgroundColor}`, borderRadius: '4px', background: backgroundColor }, hoverMediaQuery({
7065
5233
  '&:hover': {
7066
- backgroundColor: 'transparent',
5234
+ background: 'transparent',
7067
5235
  borderColor: 'transparent',
7068
5236
  },
7069
- } }));
5237
+ })),
5238
+ })));
7070
5239
  };
7071
5240
 
7072
- const toFilter = (values) => `invert(${values[0]}%) sepia(${values[1]}%) saturate(${values[2]}%) hue-rotate(${values[3]}deg) brightness(${values[4]}%) contrast(${values[5]}%)`;
7073
- // copied from icon-styles
7074
- const filterLightPrimary = toFilter([3, 7, 2930, 188, 91, 103]);
7075
- const filterLightContrastLow = toFilter([93, 11, 36, 201, 89, 102]);
7076
- const filterLightContrastMedium = toFilter([65, 6, 119, 187, 90, 92]);
7077
- const filterLightContrastHigh = toFilter([40, 2, 686, 187, 80, 94]);
7078
- const filterDarkPrimary = toFilter([97, 55, 2840, 180, 114, 103]);
7079
- const filterDarkContrastLow = toFilter([20, 7, 421, 202, 97, 82]);
7080
- const filterDarkContrastMedium = toFilter([54, 4, 229, 187, 91, 84]);
7081
- const filterDarkContrastHigh = toFilter([68, 6, 108, 187, 104, 88]);
7082
5241
  const colorToFilterMap = {
7083
5242
  light: {
7084
5243
  primary: filterLightPrimary,
@@ -7297,12 +5456,12 @@ const getComponentCss$s = (hideLabel, state, isDisabled, theme) => {
7297
5456
 
7298
5457
  const gradientColorMap = {
7299
5458
  light: {
7300
- default: '255,255,255',
7301
- surface: '238,239,242',
5459
+ 'background-base': '255,255,255',
5460
+ 'background-surface': '238,239,242',
7302
5461
  },
7303
5462
  dark: {
7304
- default: '14,14,18',
7305
- surface: '33,34,37',
5463
+ 'background-base': '14,14,18',
5464
+ 'background-surface': '33,34,37',
7306
5465
  },
7307
5466
  };
7308
5467
  const getGradient = (theme, gradientColorTheme) => {
@@ -7312,17 +5471,17 @@ const getGradient = (theme, gradientColorTheme) => {
7312
5471
  `rgba(${gradientColor},0.3) 68%,` +
7313
5472
  `rgba(${gradientColor},0)`);
7314
5473
  };
7315
- const getComponentCss$r = (gradientColorTheme, isNextHidden, isPrevHidden, scrollIndicatorPosition, theme) => {
5474
+ const getComponentCss$r = (gradientColor, isNextHidden, isPrevHidden, scrollIndicatorPosition, hasScrollbar, theme) => {
7316
5475
  const { backgroundColor, backgroundSurfaceColor, focusColor, hoverColor } = getThemedColors(theme);
7317
5476
  const isDarkTheme = isThemeDark(theme);
7318
5477
  const backgroundColorMap = {
7319
5478
  dark: {
7320
- default: backgroundSurfaceColor,
7321
- surface: backgroundColor,
5479
+ 'background-base': backgroundSurfaceColor,
5480
+ 'background-surface': backgroundColor,
7322
5481
  },
7323
5482
  light: {
7324
- default: backgroundColor,
7325
- surface: backgroundSurfaceColor,
5483
+ 'background-base': backgroundColor,
5484
+ 'background-surface': backgroundSurfaceColor,
7326
5485
  },
7327
5486
  };
7328
5487
  const actionPrevNextStyles = {
@@ -7335,7 +5494,7 @@ const getComponentCss$r = (gradientColorTheme, isNextHidden, isPrevHidden, scrol
7335
5494
  return getCss({
7336
5495
  '@global': {
7337
5496
  ':host': addImportantToEachRule(Object.assign({ display: 'block', height: 'inherit' }, hostHiddenStyles)),
7338
- 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][gradientColorTheme], borderRadius: borderRadiusSmall }), frostedGlassStyle), { visibility: 'hidden' }), (!isDarkTheme && dropShadowLowStyle)), hoverMediaQuery({
5497
+ 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({
7339
5498
  transition: getTransition('background-color'),
7340
5499
  '&:hover': Object.assign(Object.assign({}, frostedGlassStyle), { background: hoverColor }),
7341
5500
  })),
@@ -7346,16 +5505,14 @@ const getComponentCss$r = (gradientColorTheme, isNextHidden, isPrevHidden, scrol
7346
5505
  margin: '0 -4px',
7347
5506
  height: 'inherit',
7348
5507
  },
7349
- 'scroll-area': {
7350
- gridArea: '1 / 1 / 1 / -1',
7351
- padding: '4px',
7352
- overflow: 'scroll hidden',
5508
+ 'scroll-area': Object.assign({ gridArea: '1 / 1 / 1 / -1', padding: '4px', overflow: 'auto hidden' }, (!hasScrollbar && {
5509
+ // If scrollbar is disabled - hide scrollbar
7353
5510
  msOverflowStyle: 'none' /* IE and Edge */,
7354
5511
  scrollbarWidth: 'none' /* Firefox */,
7355
5512
  '&::-webkit-scrollbar': {
7356
5513
  display: 'none',
7357
5514
  },
7358
- },
5515
+ })),
7359
5516
  // Extra wrapper needed to compensate different offset parent calculation depending on browser.
7360
5517
  // Needed for position of status bar.
7361
5518
  'scroll-wrapper': {
@@ -7386,10 +5543,10 @@ const getComponentCss$r = (gradientColorTheme, isNextHidden, isPrevHidden, scrol
7386
5543
  right: 0,
7387
5544
  },
7388
5545
  },
7389
- 'action-prev': Object.assign(Object.assign({}, actionPrevNextStyles), { marginLeft: '-1px', gridArea: '1 / 1 / 1 / 1', justifyContent: 'flex-start', background: `linear-gradient(to right, ${getGradient(theme, gradientColorTheme)} 100%)`, visibility: isPrevHidden ? 'hidden' : 'visible', '& button': Object.assign({ marginLeft: '8px' }, hoverMediaQuery({
5546
+ '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({
7390
5547
  visibility: isPrevHidden ? 'hidden' : 'visible',
7391
5548
  })) }),
7392
- 'action-next': Object.assign(Object.assign({}, actionPrevNextStyles), { marginRight: '-1px', gridArea: '1 / 3 / 1 / 3', justifyContent: 'flex-end', background: `linear-gradient(to left, ${getGradient(theme, gradientColorTheme)} 100%)`, visibility: isNextHidden ? 'hidden' : 'visible', '& button': Object.assign({ marginRight: '8px' }, hoverMediaQuery({
5549
+ '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({
7393
5550
  visibility: isNextHidden ? 'hidden' : 'visible',
7394
5551
  })) }),
7395
5552
  });
@@ -7452,7 +5609,9 @@ const getComponentCss$p = (maxWidth) => {
7452
5609
  const getBaseChildStyles = (child, state, theme, additionalDefaultJssStyle) => {
7453
5610
  const { primaryColor, contrastLowColor, contrastMediumColor, disabledColor } = getThemedColors(theme);
7454
5611
  const { formStateColor, formStateHoverColor } = getThemedFormStateColors(theme, state);
7455
- return Object.assign(Object.assign(Object.assign({ [`::slotted(${child})`]: Object.assign({ display: 'block', width: '100%', height: '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 + 10px'), textIndent: 0, color: primaryColor, transition: ['color', 'border-color', 'background-color'].map(getTransition).join() }, additionalDefaultJssStyle) }, hoverMediaQuery({
5612
+ return Object.assign(Object.assign(Object.assign({ [`::slotted(${child})`]: Object.assign({ display: 'block', width: '100%', height: child !== 'textarea'
5613
+ ? `calc(${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2)` // we need 10px additionally so input height becomes 54px
5614
+ : '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({
7456
5615
  // with the media query the selector has higher priority and overrides disabled styles
7457
5616
  [`::slotted(${child}:not(:disabled):not(:focus):not([readonly]):hover)`]: {
7458
5617
  borderColor: formStateHoverColor || primaryColor,
@@ -7594,6 +5753,7 @@ const getSVGPath = (stepCount, numberedCircleColors, isStateCurrent) => {
7594
5753
  const svgCirclePath = `<circle fill="${isStateCurrent ? primaryColor : 'none'}"${isStateCurrent ? '' : ` stroke="${fillColor}"`} stroke-width="1px" cx="12" cy="12" r="9"/>`;
7595
5754
  // Full SVG is provided by design (./numbers_raw.svg), created with illustrator and optimized with ImageOptim.
7596
5755
  // The optimized file can be found in ./numbers_optim.svg.
5756
+ // TODO: could certainly be optimized size wise by exporting icons larger and having less decimals
7597
5757
  const svgNumberedCirclePaths = [
7598
5758
  `${svgCirclePath}<path fill="${fillColor}" d="m12.33 8.67-2.43.91v-.94l2.6-1.03h.85v8.78h-1.02z"/>`,
7599
5759
  `${svgCirclePath}<path fill="${fillColor}" d="m9.46 15.58c0-1.35.73-2.07 1.7-2.72l.95-.63c.78-.52 1.57-1.05 1.57-2.24 0-1.12-.62-1.58-1.7-1.58s-1.68.48-1.78 1.97h-.96c.06-1.82.78-2.91 2.74-2.91s2.72.92 2.72 2.52-.92 2.23-1.79 2.8l-.95.63c-1.11.75-1.52 1.18-1.52 2.01v.16h4.17v.81h-5.15v-.81z"/>`,
@@ -7635,7 +5795,7 @@ const getComponentCss$l = (state, disabled, theme) => {
7635
5795
  height: fontLineHeight,
7636
5796
  width: fontLineHeight,
7637
5797
  },
7638
- })), { '&:focus::after': Object.assign(Object.assign({ content: '""', position: 'absolute' }, getInsetJssStyle(0)), { border: `${borderWidthBase} solid ${focusColor}`, borderRadius: borderRadiusSmall }), '&:focus:not(:focus-visible)::after': {
5798
+ })), { '&:focus::after': Object.assign(Object.assign({ content: '""', position: 'absolute' }, getInsetJssStyle()), { border: `${borderWidthBase} solid ${focusColor}`, borderRadius: borderRadiusSmall }), '&:focus:not(:focus-visible)::after': {
7639
5799
  borderColor: 'transparent',
7640
5800
  } }),
7641
5801
  } }, (!isStateCurrentOrUndefined && {
@@ -7677,7 +5837,7 @@ const getComponentCss$j = (alignLabel, hideLabel, stretch, checked, disabled, lo
7677
5837
  const { buttonBorderColor, buttonBorderColorHover, buttonBackgroundColor, buttonBackgroundColorHover, toggleBackgroundColor, toggleBackgroundColorHover, textColor, } = getColors$1(checked, disabled, loading, theme);
7678
5838
  const { focusColor } = getThemedColors(theme);
7679
5839
  return getCss(Object.assign(Object.assign({ '@global': {
7680
- ':host': addImportantToEachRule(Object.assign(Object.assign({ outline: 0 }, hostHiddenStyles), buildResponsiveStyles(stretch, (stretchValue) => (Object.assign({ display: stretchValue ? 'block' : 'inline-block' }, (!stretchValue && { verticalAlign: 'top' })))))),
5840
+ ':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' })))))),
7681
5841
  }, 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) => ({
7682
5842
  justifyContent: stretchValue ? 'space-between' : 'flex-start',
7683
5843
  }))), (!isDisabledOrLoading(disabled, loading) &&
@@ -7737,7 +5897,7 @@ const getComponentCss$i = () => {
7737
5897
  const getComponentCss$h = (multiline) => {
7738
5898
  return getCss({
7739
5899
  '@global': {
7740
- ':host': Object.assign(Object.assign({}, addImportantToEachRule(Object.assign({ display: 'table-cell', padding: pxToRemWithUnit(12), margin: 0, borderBottom: `1px solid ${getThemedColors('light').contrastLowColor}`, whiteSpace: multiline ? 'normal' : 'nowrap' }, hostHiddenStyles))), { verticalAlign: 'middle' }),
5900
+ ':host': Object.assign(Object.assign({}, addImportantToEachRule(Object.assign({ display: 'table-cell', padding: spacingFluidSmall, margin: 0, whiteSpace: multiline ? 'normal' : 'nowrap' }, hostHiddenStyles))), { verticalAlign: 'middle' }),
7741
5901
  },
7742
5902
  });
7743
5903
  };
@@ -7747,31 +5907,76 @@ const isSortable = (active, direction) => {
7747
5907
  return active !== undefined && direction !== undefined;
7748
5908
  };
7749
5909
 
7750
- const { contrastMediumColor, primaryColor: primaryColor$1 } = getThemedColors('light');
7751
- const { semiBold: fontWeightSemiBold } = fontWeight;
7752
- const getComponentCss$g = (active, direction, hideLabel, multiline) => {
5910
+ const cssVariableTableHoverColor = '--p-internal-table-hover-color';
5911
+ const cssVariableTableBorderColor = '--p-internal-table-border-color';
5912
+ const cssVariableTableHeadCellIconFilter = '--p-internal-table-head-cell-icon-filter';
5913
+ const getComponentCss$g = (theme) => {
5914
+ const { primaryColor, hoverColor, contrastLowColor } = doGetThemedColors(theme);
5915
+ return getCss({
5916
+ '@global': {
5917
+ ':host': addImportantToEachRule(Object.assign(Object.assign(Object.assign({ display: 'block' }, textSmallStyle), { color: primaryColor, textAlign: 'left' }), hostHiddenStyles)),
5918
+ '::slotted(*)': addImportantToEachRule({
5919
+ [cssVariableTableHoverColor]: hoverColor,
5920
+ [cssVariableTableBorderColor]: contrastLowColor,
5921
+ [cssVariableTableHeadCellIconFilter]: isThemeDark(theme) ? 'invert(100%)' : 'none',
5922
+ }),
5923
+ },
5924
+ caption: {
5925
+ marginBottom: spacingFluidMedium,
5926
+ },
5927
+ table: {
5928
+ display: 'table',
5929
+ borderCollapse: 'collapse',
5930
+ width: '100%',
5931
+ whiteSpace: 'nowrap', // shouldn't be inherited for caption, that's why it's defined here
5932
+ },
5933
+ });
5934
+ };
5935
+
5936
+ const { hoverColor, focusColor } = getThemedColors('light'); // hover color and focus color are the same for light and dark
5937
+ const buttonBeforeOffsetVertical = '-2px';
5938
+ const buttonBeforeOffsetHorizontal = '-4px';
5939
+ const getComponentCss$f = (active, direction, hideLabel, multiline) => {
7753
5940
  const sortable = isSortable(active, direction);
7754
- return getCss(Object.assign({ '@global': Object.assign({ ':host': addImportantToEachRule(Object.assign({ display: 'table-cell', padding: `${pxToRemWithUnit(2)} ${pxToRemWithUnit(12)} ${pxToRemWithUnit(8)}`, borderBottom: `1px solid ${contrastMediumColor}`, verticalAlign: 'bottom', fontWeight: fontWeightSemiBold, whiteSpace: multiline ? 'normal' : 'nowrap' }, hostHiddenStyles)) }, (sortable
5941
+ 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
7755
5942
  ? {
7756
- button: Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', alignItems: 'flex-end', padding: 0, boxSizing: 'border-box', appearance: 'none', border: 'none' }, textSmallStyle), { fontWeight: fontWeightSemiBold, color: primaryColor$1, textDecoration: 'none', textAlign: 'left', background: 'transparent', cursor: 'pointer' }), getFocusJssStyle({ offset: 1 })), hoverMediaQuery(Object.assign(Object.assign({}, getHoverJssStyle()), { '&:hover, &:focus': {
5943
+ 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': {
5944
+ content: '""',
5945
+ position: 'absolute',
5946
+ top: buttonBeforeOffsetVertical,
5947
+ bottom: buttonBeforeOffsetVertical,
5948
+ right: buttonBeforeOffsetHorizontal,
5949
+ left: buttonBeforeOffsetHorizontal,
5950
+ borderRadius: borderRadiusSmall,
5951
+ zIndex: -1,
5952
+ transition: getTransition('background-color'),
5953
+ } }, hoverMediaQuery({
5954
+ '&:hover, &:focus': {
7757
5955
  '& .icon': {
7758
5956
  opacity: 1,
7759
5957
  },
7760
- } }))),
5958
+ },
5959
+ '&:hover::before': Object.assign(Object.assign({}, frostedGlassStyle), { backgroundColor: hoverColor }),
5960
+ })), { '&:focus::before': {
5961
+ border: `${borderWidthBase} solid ${focusColor}`,
5962
+ }, '&:not(:focus-visible)::before': {
5963
+ border: 0,
5964
+ } }),
7761
5965
  }
7762
5966
  : hideLabel && {
7763
5967
  span: Object.assign(Object.assign({}, getTextHiddenJssStyle(true)), { display: 'block', border: 0 }),
7764
5968
  })) }, (sortable && {
7765
5969
  icon: {
7766
- marginLeft: spacingStaticXSmall,
5970
+ transition: getTransition('opacity'),
7767
5971
  opacity: active ? 1 : 0,
7768
5972
  transform: `rotate3d(0,0,1,${isDirectionAsc(direction) ? 0 : 180}deg)`,
7769
- transformOrigin: '50% 50%', // for iOS
5973
+ transformOrigin: '50% 50%',
5974
+ filter: `var(${cssVariableTableHeadCellIconFilter})`,
7770
5975
  },
7771
5976
  })));
7772
5977
  };
7773
5978
 
7774
- const getComponentCss$f = () => {
5979
+ const getComponentCss$e = () => {
7775
5980
  return getCss({
7776
5981
  '@global': {
7777
5982
  ':host': addImportantToEachRule(Object.assign({ display: 'table-row' }, hostHiddenStyles)),
@@ -7779,79 +5984,27 @@ const getComponentCss$f = () => {
7779
5984
  });
7780
5985
  };
7781
5986
 
7782
- const getComponentCss$e = () => {
5987
+ const getComponentCss$d = () => {
7783
5988
  return getCss({
7784
5989
  '@global': {
7785
- ':host': addImportantToEachRule(Object.assign({ display: 'table-header-group' }, hostHiddenStyles)),
5990
+ ':host': addImportantToEachRule(Object.assign({ display: 'table-header-group', fontSize: fontSizeTextXSmall, lineHeight: fontLineHeight, fontWeight: fontWeightSemiBold }, hostHiddenStyles)),
7786
5991
  },
7787
5992
  });
7788
5993
  };
7789
5994
 
7790
- const getComponentCss$d = () => {
5995
+ const getComponentCss$c = () => {
7791
5996
  return getCss({
7792
5997
  '@global': {
7793
- ':host': addImportantToEachRule(Object.assign(Object.assign({ display: 'table-row' }, hostHiddenStyles), hoverMediaQuery({
7794
- transition: getTransition('background-color'),
5998
+ ':host': addImportantToEachRule(Object.assign(Object.assign({ display: 'table-row', borderTop: `1px solid var(${cssVariableTableBorderColor})`, borderBottom: `1px solid var(${cssVariableTableBorderColor})`, transition: getTransition('background') }, hostHiddenStyles), hoverMediaQuery({
7795
5999
  '&(:hover)': {
7796
- backgroundColor: getThemedColors('light').backgroundSurfaceColor,
6000
+ // ...frostedGlassStyle, // will result in not smooth transition when applied
6001
+ background: `var(${cssVariableTableHoverColor})`,
7797
6002
  },
7798
6003
  }))),
7799
6004
  },
7800
6005
  });
7801
6006
  };
7802
6007
 
7803
- const { primaryColor } = getThemedColors('light');
7804
- const getComponentCss$c = () => {
7805
- return getCss({
7806
- '@global': {
7807
- ':host': addImportantToEachRule(Object.assign({ display: 'block' }, hostHiddenStyles)),
7808
- },
7809
- caption: {
7810
- marginBottom: spacingStaticSmall,
7811
- [getMediaQueryMin('m')]: {
7812
- marginBottom: spacingStaticMedium,
7813
- },
7814
- },
7815
- root: {
7816
- position: 'relative',
7817
- },
7818
- 'scroll-area': Object.assign({ overflow: 'auto visible' }, getFocusJssStyle({ offset: -1 })),
7819
- table: Object.assign(Object.assign({ position: 'relative', width: '100%', display: 'table' }, textSmallStyle), { textAlign: 'left', color: primaryColor, whiteSpace: 'nowrap' }),
7820
- 'scroll-trigger': {
7821
- position: 'absolute',
7822
- top: 0,
7823
- right: '1px',
7824
- width: '1px',
7825
- height: '1px',
7826
- visibility: 'hidden',
7827
- },
7828
- 'scroll-indicator': {
7829
- position: 'absolute',
7830
- top: 0,
7831
- right: 0,
7832
- bottom: 0,
7833
- paddingLeft: spacingStaticLarge,
7834
- pointerEvents: 'none',
7835
- display: 'flex',
7836
- alignItems: 'center',
7837
- background: 'linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%)',
7838
- '&::before': {
7839
- content: '""',
7840
- position: 'absolute',
7841
- top: 0,
7842
- right: 0,
7843
- bottom: 0,
7844
- width: pxToRemWithUnit(48),
7845
- pointerEvents: 'auto',
7846
- },
7847
- },
7848
- 'scroll-button': {
7849
- padding: pxToRemWithUnit(12),
7850
- pointerEvents: 'auto',
7851
- },
7852
- });
7853
- };
7854
-
7855
6008
  const tabsTransitionDuration = '.4s';
7856
6009
  const transformSelector = (selector) => ['a', 'button'].map((tag) => selector.replace(/\[role]/g, tag)).join();
7857
6010
  const getComponentCss$b = (size, weight, theme) => {
@@ -7862,35 +6015,9 @@ const getComponentCss$b = (size, weight, theme) => {
7862
6015
  transform: 'translate3d(0,0,0)' }, hostHiddenStyles))) }, addImportantToEachRule(Object.assign(Object.assign({
7863
6016
  // would be nice to use shared selector like '::slotted([role])'
7864
6017
  // but this doesn't work reliably when rendering in browser
7865
- [transformSelector('::slotted([role])')]: {
7866
- display: 'inline-block',
7867
- position: 'relative',
7868
- margin: '0 0 4px 0',
7869
- padding: 0,
7870
- verticalAlign: 'top',
7871
- fontFamily: 'inherit',
7872
- fontStyle: 'inherit',
7873
- fontVariant: 'inherit',
7874
- fontWeight: 'inherit',
7875
- fontSize: 'inherit',
7876
- lineHeight: 'inherit',
7877
- whiteSpace: 'nowrap',
7878
- boxSizing: 'border-box',
7879
- WebkitAppearance: 'none',
7880
- appearance: 'none',
7881
- outline: 0,
7882
- outlineOffset: '1px',
7883
- textDecoration: 'none',
7884
- textAlign: 'left',
7885
- border: 0,
7886
- background: 'transparent',
7887
- color: primaryColor,
7888
- cursor: 'pointer',
7889
- borderRadius: borderRadiusSmall,
7890
- '&::before': Object.assign({ content: '""', position: 'absolute', top: '-2px', bottom: '-2px', left: '-4px', right: '-4px', borderRadius: borderRadiusSmall, zIndex: '-1' }, hoverMediaQuery({
6018
+ [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({
7891
6019
  transition: getTransition('background'),
7892
- })),
7893
- } }, hoverMediaQuery({
6020
+ })) }) }, hoverMediaQuery({
7894
6021
  [transformSelector('::slotted([role]:hover)::before')]: Object.assign(Object.assign({}, frostedGlassStyle), { background: hoverColor }),
7895
6022
  })), {
7896
6023
  // TODO: combine link-social-styles with link-button-styles and tabs-bar-styles
@@ -7907,7 +6034,7 @@ const getComponentCss$b = (size, weight, theme) => {
7907
6034
  display: 'block',
7908
6035
  position: 'absolute',
7909
6036
  width: 0,
7910
- height: weight === 'semibold' ? '2px' : '1.5px',
6037
+ height: weight === 'semi-bold' ? '2px' : '1.5px',
7911
6038
  left: 0,
7912
6039
  bottom: '-4px',
7913
6040
  background: primaryColor,
@@ -7920,10 +6047,10 @@ const getComponentCss$b = (size, weight, theme) => {
7920
6047
  };
7921
6048
 
7922
6049
  const getComponentCss$a = (theme) => {
7923
- const { focusColor } = getThemedColors(theme);
6050
+ const { primaryColor, focusColor } = getThemedColors(theme);
7924
6051
  return getCss({
7925
6052
  '@global': {
7926
- ':host': addImportantToEachRule(Object.assign(Object.assign({ display: 'block', position: 'relative' }, hostHiddenStyles), { outline: 0, '&::before': Object.assign({ content: '""', position: 'absolute' }, getInsetJssStyle(-4)), '&(:focus)::before': {
6053
+ ':host': addImportantToEachRule(Object.assign(Object.assign({ display: 'block', position: 'relative', color: primaryColor }, hostHiddenStyles), { outline: 0, '&::before': Object.assign({ content: '""', position: 'absolute' }, getInsetJssStyle(-4)), '&(:focus)::before': {
7927
6054
  border: `${borderWidthBase} solid ${focusColor}`,
7928
6055
  borderRadius: borderRadiusSmall,
7929
6056
  }, '&(:focus:not(:focus-visible))::before': {
@@ -7954,16 +6081,13 @@ const getTagFocusJssStyle = (themedColors) => {
7954
6081
  };
7955
6082
  const getThemedBackgroundColor = (tagColor, themedColors) => {
7956
6083
  const colorMap = {
7957
- 'background-default': themedColors.backgroundColor,
7958
6084
  'background-base': themedColors.backgroundColor,
7959
6085
  'background-surface': themedColors.backgroundSurfaceColor,
7960
- 'neutral-contrast-high': themedColors.primaryColor,
7961
6086
  primary: themedColors.primaryColor,
7962
- 'notification-neutral': themedColors.infoSoftColor,
7963
- 'notification-info': themedColors.infoSoftColor,
7964
- 'notification-success': themedColors.successSoftColor,
7965
- 'notification-error': themedColors.errorSoftColor,
7966
- 'notification-warning': themedColors.warningSoftColor,
6087
+ 'notification-info-soft': themedColors.infoSoftColor,
6088
+ 'notification-warning-soft': themedColors.warningSoftColor,
6089
+ 'notification-success-soft': themedColors.successSoftColor,
6090
+ 'notification-error-soft': themedColors.errorSoftColor,
7967
6091
  };
7968
6092
  return colorMap[tagColor];
7969
6093
  };
@@ -7994,45 +6118,26 @@ const getComponentCss$8 = (color, hasLabel, theme) => {
7994
6118
  }, 'sr-only': getScreenReaderOnlyJssStyle() }));
7995
6119
  };
7996
6120
 
7997
- const hasInvertedThemeColor = (tagColor, theme) => {
7998
- const isDark = isThemeDark(theme);
7999
- return ((!isDark && (tagColor === 'neutral-contrast-high' || tagColor === 'primary')) || // 'neutral-contrast-high' is deprecated (replaced with 'primary')
8000
- (isDark &&
8001
- tagColor !== 'background-surface' &&
8002
- tagColor !== 'background-default' && // 'background-default' is deprecated (replaced with 'background-base')
8003
- tagColor !== 'background-base' &&
8004
- tagColor !== 'notification-neutral' && // 'notification-neutral' is deprecated (replaced with 'notification-info')
8005
- tagColor !== 'notification-info' &&
8006
- tagColor !== 'notification-warning' &&
8007
- tagColor !== 'notification-success' &&
8008
- tagColor !== 'notification-error'));
8009
- };
8010
6121
  const getThemedBackgroundHoverColor = (tagColor, themedColors, theme) => {
8011
6122
  const isDark = isThemeDark(theme);
8012
- const keySuffix = isDark ? 'ColorLighten' : 'ColorDarken';
8013
- const primaryColor = isDark ? themedColors.contrastHighColorLighten : themedColors.contrastHighColor;
6123
+ const keySuffix = isDark ? 'Lighten' : 'Darken';
8014
6124
  const colorMap = {
8015
- 'background-default': themedColors[`background${keySuffix}`],
8016
- 'background-base': themedColors[`background${keySuffix}`],
8017
- 'background-surface': themedColors[`backgroundSurface${keySuffix}`],
8018
- 'neutral-contrast-high': primaryColor,
8019
- primary: primaryColor,
8020
- 'notification-neutral': themedColors[`infoSoft${keySuffix}`],
8021
- 'notification-info': themedColors[`infoSoft${keySuffix}`],
8022
- 'notification-success': themedColors[`successSoft${keySuffix}`],
8023
- 'notification-error': themedColors[`errorSoft${keySuffix}`],
8024
- 'notification-warning': themedColors[`warningSoft${keySuffix}`],
6125
+ 'background-base': themedColors[`backgroundColor${keySuffix}`],
6126
+ 'background-surface': themedColors[`backgroundSurfaceColor${keySuffix}`],
6127
+ primary: isDark ? themedColors.contrastHighColorLighten : themedColors.contrastHighColor,
6128
+ 'notification-info-soft': themedColors[`infoSoftColor${keySuffix}`],
6129
+ 'notification-success-soft': themedColors[`successSoftColor${keySuffix}`],
6130
+ 'notification-error-soft': themedColors[`errorSoftColor${keySuffix}`],
6131
+ 'notification-warning-soft': themedColors[`warningSoftColor${keySuffix}`],
8025
6132
  };
8026
6133
  return colorMap[tagColor];
8027
6134
  };
8028
6135
 
8029
6136
  const getColors = (themedColors, tagColor, theme) => {
8030
- const hasInvertedTheme = hasInvertedThemeColor(tagColor, theme);
8031
- const { primaryColor } = hasInvertedTheme ? getInvertedThemedColors(theme) : themedColors;
8032
- const { focusColor } = themedColors;
6137
+ const { primaryColor } = tagColor === 'primary' ? getInvertedThemedColors(theme) : themedColors;
8033
6138
  return {
8034
6139
  primaryColor,
8035
- focusColor,
6140
+ focusColor: themedColors.focusColor,
8036
6141
  backgroundColor: getThemedBackgroundColor(tagColor, themedColors),
8037
6142
  backgroundHoverColor: getThemedBackgroundHoverColor(tagColor, themedColors, theme),
8038
6143
  };
@@ -8043,27 +6148,14 @@ const getComponentCss$7 = (tagColor, isFocusable, theme) => {
8043
6148
  return getCss({
8044
6149
  '@global': {
8045
6150
  ':host': Object.assign({ display: 'inline-flex', verticalAlign: 'top' }, addImportantToEachRule(hostHiddenStyles)),
8046
- span: Object.assign({ display: 'flex', gap: '2px', alignItems: 'center', position: 'relative', padding: '4px 9px', borderRadius: borderRadiusSmall, background: backgroundColor, color: primaryColor, font: textXSmallStyle.font, whiteSpace: 'nowrap' }, (isFocusable && Object.assign({}, hoverMediaQuery({
8047
- transition: getTransition('background-color'),
8048
- '&:hover': {
8049
- background: backgroundHoverColor,
8050
- },
8051
- })))),
8052
- '::slotted': addImportantToEachRule(Object.assign(Object.assign({ '&(a),&(button)': {
8053
- display: 'inline',
8054
- position: 'static',
8055
- textDecoration: 'underline',
8056
- cursor: 'pointer',
8057
- font: 'inherit',
8058
- outline: 0,
8059
- color: 'inherit',
8060
- appearance: 'none',
8061
- margin: 0,
8062
- padding: 0,
8063
- background: 0,
8064
- border: 0,
8065
- textAlign: 'left',
8066
- } }, Object.entries(getTagFocusJssStyle(themedColors)).reduce((result, [key, value]) => {
6151
+ span: Object.assign({ display: 'flex', gap: '2px', alignItems: 'center', position: 'relative', padding: '4px 9px', borderRadius: borderRadiusSmall, background: backgroundColor, color: primaryColor, font: textXSmallStyle.font, whiteSpace: 'nowrap' }, (isFocusable &&
6152
+ hoverMediaQuery({
6153
+ transition: getTransition('background-color'),
6154
+ '&:hover': {
6155
+ background: backgroundHoverColor,
6156
+ },
6157
+ }))),
6158
+ '::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]) => {
8067
6159
  result[key.replace(/^&([a-z:\-()]*)(::[a-z\-]+)$/, '&(a$1)$2, &(button$1)$2')] = value;
8068
6160
  return result;
8069
6161
  }, {})), { '&(br)': {
@@ -8077,6 +6169,17 @@ const getComponentCss$7 = (tagColor, isFocusable, theme) => {
8077
6169
  };
8078
6170
 
8079
6171
  const isType = (inputType, typeToValidate) => inputType === typeToValidate;
6172
+ // eslint-disable-next-line no-underscore-dangle
6173
+ const _hasShowPickerSupport = () => {
6174
+ return (hasDocument &&
6175
+ 'showPicker' in HTMLInputElement.prototype &&
6176
+ // TODO: it would be better to determinate support by checking for existence of "calendar-picker-indicator"
6177
+ !!window.navigator.userAgent.match(/chrome|chromium|crios|edg/i));
6178
+ };
6179
+ const hasShowPickerSupport = _hasShowPickerSupport();
6180
+ const showCustomCalendarOrTimeIndicator = (isCalendar, isTime) => {
6181
+ return hasShowPickerSupport && (isCalendar || isTime);
6182
+ };
8080
6183
 
8081
6184
  const cssVariableInputPaddingLeft = '--p-internal-text-field-input-padding-left';
8082
6185
  const cssVariableInputPaddingRight = '--p-internal-text-field-input-padding-right';
@@ -8101,18 +6204,21 @@ const getComponentCss$6 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter
8101
6204
  const isSearch = isType(inputType, 'search');
8102
6205
  const isPassword = isType(inputType, 'password');
8103
6206
  const isNumber = isType(inputType, 'number');
6207
+ const isCalendar = isType(inputType, 'date') || isType(inputType, 'week') || isType(inputType, 'month');
6208
+ const isTime = isType(inputType, 'time');
8104
6209
  const isSearchOrPassword = isSearch || isPassword;
8105
6210
  const isSearchWithoutForm = isSearch && !isWithinForm;
8106
6211
  const isSearchWithForm = isSearch && isWithinForm;
8107
- 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
6212
+ const isCalendarOrTimeWithCustomIndicator = showCustomCalendarOrTimeIndicator(isCalendar, isTime);
6213
+ 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
8108
6214
  ? getInputPaddingHorizontal(isSearchWithForm ? 2 : 1)
8109
- : spacingStaticMedium }, hostHiddenStyles))) }, addImportantToEachRule(Object.assign(Object.assign({}, getBaseChildStyles('input', state, theme, Object.assign({ padding: `8px var(${cssVariableInputPaddingRight}) 8px var(${cssVariableInputPaddingLeft})` }, (isNumber && {
6215
+ : spacingStaticMedium }, hostHiddenStyles))) }, addImportantToEachRule(Object.assign(Object.assign({}, getBaseChildStyles('input', state, theme, Object.assign({ padding: `${spacingStaticSmall} var(${cssVariableInputPaddingRight}) ${spacingStaticSmall} var(${cssVariableInputPaddingLeft})` }, (isNumber && {
8110
6216
  MozAppearance: 'textfield', // hides up/down spin button for Firefox
8111
6217
  })))), { '::slotted': {
8112
6218
  '&(input:-internal-autofill-selected),&(input:-internal-autofill-previewed),&(input:-webkit-autofill),&(input:-webkit-autofill:focus)': {
8113
6219
  WebkitBackgroundClip: 'padding-box', // reset webkit autofill styles
8114
6220
  },
8115
- } }))) }, (isSearchOrPassword && {
6221
+ } }))) }, ((isSearchOrPassword || isCalendarOrTimeWithCustomIndicator) && {
8116
6222
  button: Object.assign(Object.assign({}, baseButtonOrIconStyles), { right: getButtonOrIconOffsetHorizontal(1),
8117
6223
  // TODO: maybe we should render hidden button conditionally, needs to be checked if a11y compliant
8118
6224
  '&:not([hidden]) ~ .button': {
@@ -8138,8 +6244,9 @@ const getComponentCss$6 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter
8138
6244
  'sr-only': Object.assign(Object.assign({}, getScreenReaderOnlyJssStyle()), { padding: 0 }) }));
8139
6245
  };
8140
6246
 
8141
- const isListTypeOrdered = (listType) => listType === 'ordered';
8142
- const isOrderTypeNumbered = (orderType) => orderType === 'numbered';
6247
+ /** @deprecated */
6248
+ const isListTypeOrdered = (type) => type !== 'unordered';
6249
+ const isListTypeNumbered = (type) => type === 'numbered';
8143
6250
 
8144
6251
  const cssVariablePseudoSuffix = '--p-internal-text-list-pseudo-suffix';
8145
6252
  const cssVariablePaddingTop = '--p-internal-text-list-padding-top';
@@ -8148,8 +6255,8 @@ const cssVariableUnorderedPaddingLeft = '--p-internal-text-list-unordered-paddin
8148
6255
  const cssVariableOrderedPaddingLeft = '--p-internal-text-list-ordered-padding-left';
8149
6256
  const cssVariableListStyleType = '--p-internal-text-list-list-style-type';
8150
6257
  const counter = 'p-text-list-counter';
8151
- const getComponentCss$5 = (listType, orderType, theme) => {
8152
- const isOrderedList = isListTypeOrdered(listType);
6258
+ const getComponentCss$5 = (type, theme) => {
6259
+ const isOrderedList = isListTypeOrdered(type);
8153
6260
  return getCss({
8154
6261
  '@global': {
8155
6262
  ':host': Object.assign({ display: 'block' }, addImportantToEachRule(Object.assign({ counterReset: counter }, hostHiddenStyles))),
@@ -8162,7 +6269,7 @@ const getComponentCss$5 = (listType, orderType, theme) => {
8162
6269
  // TODO: in case it's last root list item with a nested list it would result in outer spacing which is not desired
8163
6270
  [cssVariablePaddingBottom]: spacingStaticMedium, [cssVariableOrderedPaddingLeft]: '2rem', [cssVariableUnorderedPaddingLeft]: '.625rem', [cssVariableListStyleType]: '"–"' }, (isOrderedList && {
8164
6271
  '&::before': {
8165
- content: `counters(${counter},'.',${isOrderTypeNumbered(orderType) ? 'decimal' : 'lower-latin'}) var(${cssVariablePseudoSuffix},'.')`,
6272
+ content: `counters(${counter},'.',${isListTypeNumbered(type) ? 'decimal' : 'lower-latin'}) var(${cssVariablePseudoSuffix},'.')`,
8166
6273
  counterIncrement: counter,
8167
6274
  position: 'absolute',
8168
6275
  top: 0,
@@ -8188,6 +6295,7 @@ const getComponentCss$4 = () => {
8188
6295
  const TEXT_TAGS = ['p', 'span', 'div', 'address', 'blockquote', 'figcaption', 'cite', 'time', 'legend'];
8189
6296
 
8190
6297
  const sizeMap = {
6298
+ 'xx-small': fontSizeTextXXSmall,
8191
6299
  'x-small': fontSizeTextXSmall,
8192
6300
  small: fontSizeTextSmall,
8193
6301
  medium: fontSizeTextMedium,
@@ -8234,54 +6342,57 @@ const getComponentCss$2 = (isDisabled, hideLabel, state, hasCounter, theme) => {
8234
6342
  })));
8235
6343
  };
8236
6344
 
8237
- const toastPositionBottomVarPublic = '--p-toast-position-bottom'; // CSS custom property exposed as public interface
8238
- const toastPositionBottomVarInternal = '--p-internal-toast-position-bottom';
6345
+ const cssVariablePositionBottom = '--p-toast-position-bottom'; // CSS custom property exposed as public interface
6346
+ const cssVariablePositionBottomInternal = '--p-internal-toast-position-bottom';
8239
6347
  const toastCloseClassName = 'close';
8240
6348
  const getComponentCss = () => {
8241
6349
  return getCss({
8242
6350
  '@global': {
8243
- ':host': addImportantToEachRule(Object.assign({ position: 'fixed', left: gridSafeZoneBase, right: gridSafeZoneBase,
6351
+ ':host': addImportantToEachRule(Object.assign({ position: 'fixed', left: gridExtendedOffsetBase, right: gridExtendedOffsetBase,
8244
6352
  // Needs a not overridable internal css variable to cover default position depending on viewport size and to handle animation properly.
8245
6353
  // In addition, a public css variable can be passed to overwrite the default position.
8246
- [toastPositionBottomVarInternal]: `var(${toastPositionBottomVarPublic}, 56px)`, bottom: `var(${toastPositionBottomVarInternal})`, maxWidth: '42rem', zIndex: TOAST_Z_INDEX, [getMediaQueryMin('s')]: {
6354
+ [cssVariablePositionBottomInternal]: `var(${cssVariablePositionBottom}, 56px)`, bottom: `var(${cssVariablePositionBottomInternal})`, maxWidth: '42rem', zIndex: TOAST_Z_INDEX, [getMediaQueryMin('s')]: {
8247
6355
  left: '64px',
8248
6356
  right: 'auto',
8249
- [toastPositionBottomVarInternal]: `var(${toastPositionBottomVarPublic}, 64px)`,
8250
- bottom: `var(${toastPositionBottomVarInternal})`,
6357
+ [cssVariablePositionBottomInternal]: `var(${cssVariablePositionBottom}, 64px)`,
6358
+ bottom: `var(${cssVariablePositionBottomInternal})`,
8251
6359
  } }, hostHiddenStyles)),
8252
- '@keyframes in': getKeyframesMobile('in', toastPositionBottomVarInternal),
8253
- '@keyframes out': getKeyframesMobile('out', toastPositionBottomVarInternal),
6360
+ '@keyframes in': getKeyframesMobile('in', cssVariablePositionBottomInternal),
6361
+ '@keyframes out': getKeyframesMobile('out', cssVariablePositionBottomInternal),
8254
6362
  },
8255
6363
  hydrated: getAnimationIn('in', "production" !== 'production' ),
8256
6364
  [toastCloseClassName]: getAnimationOut('out'),
8257
6365
  });
8258
6366
  };
8259
6367
 
8260
- exports.getAccordionCss = getComponentCss$T;
8261
- exports.getBannerCss = getComponentCss$S;
8262
- exports.getButtonCss = getComponentCss$P;
8263
- exports.getButtonGroupCss = getComponentCss$R;
8264
- exports.getButtonPureCss = getComponentCss$Q;
8265
- exports.getCarouselCss = getComponentCss$O;
8266
- exports.getCheckboxWrapperCss = getComponentCss$N;
8267
- exports.getContentWrapperCss = getComponentCss$M;
8268
- exports.getDisplayCss = getComponentCss$L;
8269
- exports.getDividerCss = getComponentCss$K;
8270
- exports.getFieldsetWrapperCss = getComponentCss$J;
8271
- exports.getFlexCss = getComponentCss$H;
8272
- exports.getFlexItemCss = getComponentCss$I;
6368
+ exports.getAccordionCss = getComponentCss$W;
6369
+ exports.getBannerCss = getComponentCss$V;
6370
+ exports.getButtonCss = getComponentCss$R;
6371
+ exports.getButtonGroupCss = getComponentCss$U;
6372
+ exports.getButtonPureCss = getComponentCss$T;
6373
+ exports.getButtonTileCss = getComponentCss$S;
6374
+ exports.getCarouselCss = getComponentCss$Q;
6375
+ exports.getCheckboxWrapperCss = getComponentCss$P;
6376
+ exports.getContentWrapperCss = getComponentCss$O;
6377
+ exports.getDisplayCss = getComponentCss$N;
6378
+ exports.getDividerCss = getComponentCss$M;
6379
+ exports.getFieldsetCss = getComponentCss$K;
6380
+ exports.getFieldsetWrapperCss = getComponentCss$L;
6381
+ exports.getFlexCss = getComponentCss$I;
6382
+ exports.getFlexItemCss = getComponentCss$J;
8273
6383
  exports.getFunctionalComponentRequiredStyles = getFunctionalComponentRequiredStyles;
8274
6384
  exports.getFunctionalComponentStateMessageStyles = getFunctionalComponentStateMessageStyles;
8275
- exports.getGridCss = getComponentCss$F;
8276
- exports.getGridItemCss = getComponentCss$G;
8277
- exports.getHeadingCss = getComponentCss$E;
8278
- exports.getHeadlineCss = getComponentCss$D;
8279
- exports.getIconCss = getComponentCss$C;
8280
- exports.getInlineNotificationCss = getComponentCss$B;
8281
- exports.getLinkCss = getComponentCss$z;
8282
- exports.getLinkPureCss = getComponentCss$A;
8283
- exports.getLinkSocialCss = getComponentCss$z;
6385
+ exports.getGridCss = getComponentCss$G;
6386
+ exports.getGridItemCss = getComponentCss$H;
6387
+ exports.getHeadingCss = getComponentCss$F;
6388
+ exports.getHeadlineCss = getComponentCss$E;
6389
+ exports.getIconCss = getComponentCss$D;
6390
+ exports.getInlineNotificationCss = getComponentCss$C;
6391
+ exports.getLinkCss = getComponentCss$A;
6392
+ exports.getLinkPureCss = getComponentCss$B;
6393
+ exports.getLinkSocialCss = getComponentCss$A;
8284
6394
  exports.getLinkTileCss = getComponentCss$y;
6395
+ exports.getLinkTileModelSignatureCss = getComponentCss$z;
8285
6396
  exports.getMarqueCss = getComponentCss$x;
8286
6397
  exports.getModalCss = getComponentCss$w;
8287
6398
  exports.getModelSignatureCss = getComponentCss$v;
@@ -8298,11 +6409,11 @@ exports.getStepperHorizontalItemCss = getComponentCss$l;
8298
6409
  exports.getSwitchCss = getComponentCss$j;
8299
6410
  exports.getTableBodyCss = getComponentCss$i;
8300
6411
  exports.getTableCellCss = getComponentCss$h;
8301
- exports.getTableCss = getComponentCss$c;
8302
- exports.getTableHeadCellCss = getComponentCss$g;
8303
- exports.getTableHeadCss = getComponentCss$e;
8304
- exports.getTableHeadRowCss = getComponentCss$f;
8305
- exports.getTableRowCss = getComponentCss$d;
6412
+ exports.getTableCss = getComponentCss$g;
6413
+ exports.getTableHeadCellCss = getComponentCss$f;
6414
+ exports.getTableHeadCss = getComponentCss$d;
6415
+ exports.getTableHeadRowCss = getComponentCss$e;
6416
+ exports.getTableRowCss = getComponentCss$c;
8306
6417
  exports.getTabsBarCss = getComponentCss$b;
8307
6418
  exports.getTabsCss = getComponentCss$9;
8308
6419
  exports.getTabsItemCss = getComponentCss$a;