@porsche-design-system/components-react 3.0.0-alpha.1 → 3.0.0-alpha.3

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 (295) hide show
  1. package/CHANGELOG.md +351 -3
  2. package/OSS_NOTICE +65234 -2280
  3. package/esm/lib/components/accordion.wrapper.js +2 -1
  4. package/esm/lib/components/banner.wrapper.js +3 -3
  5. package/esm/lib/components/carousel.wrapper.js +4 -3
  6. package/esm/lib/components/content-wrapper.wrapper.js +1 -1
  7. package/esm/lib/components/divider.wrapper.js +3 -3
  8. package/esm/lib/components/link-social.wrapper.js +1 -1
  9. package/esm/lib/components/link-tile.wrapper.js +1 -1
  10. package/esm/lib/components/modal.wrapper.js +4 -3
  11. package/esm/lib/components/model-signature.wrapper.js +22 -0
  12. package/esm/lib/components/pagination.wrapper.js +4 -3
  13. package/esm/lib/components/scroller.wrapper.js +3 -3
  14. package/esm/lib/components/segmented-control.wrapper.js +2 -1
  15. package/esm/lib/components/stepper-horizontal.wrapper.js +2 -1
  16. package/esm/lib/components/switch.wrapper.js +2 -1
  17. package/esm/lib/components/table.wrapper.js +2 -1
  18. package/esm/lib/components/tabs-bar.wrapper.js +4 -3
  19. package/esm/lib/components/tabs.wrapper.js +4 -3
  20. package/esm/lib/components/text-field-wrapper.wrapper.js +3 -3
  21. package/esm/lib/components/text-list.wrapper.js +3 -3
  22. package/esm/lib/components/textarea-wrapper.wrapper.js +3 -3
  23. package/esm/public-api.js +1 -0
  24. package/lib/components/accordion.wrapper.d.ts +12 -4
  25. package/lib/components/accordion.wrapper.js +2 -1
  26. package/lib/components/banner.wrapper.d.ts +18 -2
  27. package/lib/components/banner.wrapper.js +3 -3
  28. package/lib/components/button-group.wrapper.d.ts +2 -2
  29. package/lib/components/button-pure.wrapper.d.ts +15 -15
  30. package/lib/components/button.wrapper.d.ts +5 -5
  31. package/lib/components/carousel.wrapper.d.ts +43 -9
  32. package/lib/components/carousel.wrapper.js +4 -3
  33. package/lib/components/checkbox-wrapper.wrapper.d.ts +5 -5
  34. package/lib/components/content-wrapper.wrapper.d.ts +2 -2
  35. package/lib/components/content-wrapper.wrapper.js +1 -1
  36. package/lib/components/display.wrapper.d.ts +2 -2
  37. package/lib/components/divider.wrapper.d.ts +13 -5
  38. package/lib/components/divider.wrapper.js +3 -3
  39. package/lib/components/fieldset-wrapper.wrapper.d.ts +5 -5
  40. package/lib/components/flex-item.wrapper.d.ts +2 -2
  41. package/lib/components/flex.wrapper.d.ts +2 -2
  42. package/lib/components/grid-item.wrapper.d.ts +2 -2
  43. package/lib/components/grid.wrapper.d.ts +2 -2
  44. package/lib/components/heading.wrapper.d.ts +2 -2
  45. package/lib/components/headline.wrapper.d.ts +2 -2
  46. package/lib/components/icon.wrapper.d.ts +2 -2
  47. package/lib/components/index.d.ts +1 -0
  48. package/lib/components/inline-notification.wrapper.d.ts +5 -5
  49. package/lib/components/link-pure.wrapper.d.ts +15 -15
  50. package/lib/components/link-social.wrapper.d.ts +8 -8
  51. package/lib/components/link-social.wrapper.js +1 -1
  52. package/lib/components/link-tile.wrapper.d.ts +7 -7
  53. package/lib/components/link-tile.wrapper.js +1 -1
  54. package/lib/components/link.wrapper.d.ts +5 -5
  55. package/lib/components/marque.wrapper.d.ts +5 -5
  56. package/lib/components/modal.wrapper.d.ts +22 -6
  57. package/lib/components/modal.wrapper.js +4 -3
  58. package/lib/components/model-signature.wrapper.d.ts +38 -0
  59. package/lib/components/model-signature.wrapper.js +24 -0
  60. package/lib/components/pagination.wrapper.d.ts +31 -15
  61. package/lib/components/pagination.wrapper.js +4 -3
  62. package/lib/components/popover.wrapper.d.ts +5 -5
  63. package/lib/components/radio-button-wrapper.wrapper.d.ts +5 -5
  64. package/lib/components/scroller.wrapper.d.ts +27 -11
  65. package/lib/components/scroller.wrapper.js +3 -3
  66. package/lib/components/segmented-control-item.wrapper.d.ts +5 -5
  67. package/lib/components/segmented-control.wrapper.d.ts +12 -4
  68. package/lib/components/segmented-control.wrapper.js +2 -1
  69. package/lib/components/select-wrapper.wrapper.d.ts +7 -7
  70. package/lib/components/spinner.wrapper.d.ts +2 -2
  71. package/lib/components/stepper-horizontal-item.wrapper.d.ts +5 -5
  72. package/lib/components/stepper-horizontal.wrapper.d.ts +13 -5
  73. package/lib/components/stepper-horizontal.wrapper.js +2 -1
  74. package/lib/components/switch.wrapper.d.ts +13 -5
  75. package/lib/components/switch.wrapper.js +2 -1
  76. package/lib/components/table-body.wrapper.d.ts +2 -2
  77. package/lib/components/table-cell.wrapper.d.ts +2 -2
  78. package/lib/components/table-head-cell.wrapper.d.ts +2 -2
  79. package/lib/components/table-head-row.wrapper.d.ts +2 -2
  80. package/lib/components/table-head.wrapper.d.ts +2 -2
  81. package/lib/components/table-row.wrapper.d.ts +2 -2
  82. package/lib/components/table.wrapper.d.ts +13 -5
  83. package/lib/components/table.wrapper.js +2 -1
  84. package/lib/components/tabs-bar.wrapper.d.ts +27 -11
  85. package/lib/components/tabs-bar.wrapper.js +4 -3
  86. package/lib/components/tabs-item.wrapper.d.ts +2 -2
  87. package/lib/components/tabs.wrapper.d.ts +27 -11
  88. package/lib/components/tabs.wrapper.js +4 -3
  89. package/lib/components/tag-dismissible.wrapper.d.ts +2 -2
  90. package/lib/components/tag.wrapper.d.ts +5 -5
  91. package/lib/components/text-field-wrapper.wrapper.d.ts +17 -9
  92. package/lib/components/text-field-wrapper.wrapper.js +3 -3
  93. package/lib/components/text-list-item.wrapper.d.ts +2 -2
  94. package/lib/components/text-list.wrapper.d.ts +21 -13
  95. package/lib/components/text-list.wrapper.js +3 -3
  96. package/lib/components/text.wrapper.d.ts +2 -2
  97. package/lib/components/textarea-wrapper.wrapper.d.ts +15 -7
  98. package/lib/components/textarea-wrapper.wrapper.js +3 -3
  99. package/lib/components/toast.wrapper.d.ts +2 -2
  100. package/lib/types.d.ts +164 -60
  101. package/package.json +2 -2
  102. package/public-api.js +2 -0
  103. package/ssr/components/dist/styles/esm/styles-entry.js +563 -2449
  104. package/ssr/components/dist/utils/esm/utils-entry.js +167 -2045
  105. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/accordion.wrapper.js +2 -1
  106. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.js +4 -4
  107. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.js +5 -4
  108. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/content-wrapper.wrapper.js +1 -1
  109. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/divider.wrapper.js +4 -4
  110. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/link-social.wrapper.js +1 -1
  111. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile.wrapper.js +1 -1
  112. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/modal.wrapper.js +5 -4
  113. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/model-signature.wrapper.js +37 -0
  114. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/pagination.wrapper.js +5 -4
  115. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/scroller.wrapper.js +4 -4
  116. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control.wrapper.js +2 -1
  117. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal.wrapper.js +2 -1
  118. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/switch.wrapper.js +2 -1
  119. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/table.wrapper.js +2 -1
  120. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.js +5 -4
  121. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.js +5 -4
  122. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/text-field-wrapper.wrapper.js +4 -4
  123. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/text-list-item.wrapper.js +2 -4
  124. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/text-list.wrapper.js +4 -4
  125. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/textarea-wrapper.wrapper.js +4 -4
  126. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +1 -0
  127. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +3 -1
  128. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.js +2 -1
  129. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +2 -1
  130. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js +9 -2
  131. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.js +1 -1
  132. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.js +6 -1
  133. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.js +1 -1
  134. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.js +1 -1
  135. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.js +9 -2
  136. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.js +1 -0
  137. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.js +1 -0
  138. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js +2 -1
  139. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js +8 -12
  140. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.js +1 -0
  141. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.js +1 -1
  142. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.js +7 -2
  143. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.js +17 -0
  144. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.js +15 -4
  145. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.js +1 -0
  146. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +8 -3
  147. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.js +1 -0
  148. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +2 -1
  149. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.js +1 -0
  150. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.js +2 -1
  151. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +1 -0
  152. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.js +1 -0
  153. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.js +1 -0
  154. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.js +1 -0
  155. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +6 -2
  156. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +2 -1
  157. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.js +5 -1
  158. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.js +10 -1
  159. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +14 -7
  160. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.js +1 -3
  161. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.js +5 -7
  162. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.js +14 -2
  163. package/ssr/components-react/projects/react-ssr-wrapper/src/public-api.js +2 -0
  164. package/ssr/esm/components/dist/styles/esm/styles-entry.js +536 -2423
  165. package/ssr/esm/components/dist/utils/esm/utils-entry.js +163 -2046
  166. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/accordion.wrapper.js +2 -1
  167. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.js +4 -4
  168. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.js +5 -4
  169. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/content-wrapper.wrapper.js +1 -1
  170. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/divider.wrapper.js +4 -4
  171. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-social.wrapper.js +1 -1
  172. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile.wrapper.js +1 -1
  173. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/modal.wrapper.js +5 -4
  174. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/model-signature.wrapper.js +35 -0
  175. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/pagination.wrapper.js +5 -4
  176. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/scroller.wrapper.js +4 -4
  177. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control.wrapper.js +2 -1
  178. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal.wrapper.js +2 -1
  179. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/switch.wrapper.js +2 -1
  180. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table.wrapper.js +2 -1
  181. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.js +5 -4
  182. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.js +5 -4
  183. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text-field-wrapper.wrapper.js +4 -4
  184. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text-list-item.wrapper.js +2 -4
  185. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text-list.wrapper.js +4 -4
  186. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/textarea-wrapper.wrapper.js +4 -4
  187. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +3 -2
  188. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +5 -3
  189. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.js +2 -2
  190. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.js +4 -3
  191. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +4 -3
  192. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js +10 -3
  193. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.js +2 -2
  194. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.js +2 -2
  195. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.js +3 -3
  196. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.js +7 -2
  197. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.js +2 -2
  198. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.js +2 -2
  199. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.js +2 -2
  200. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.js +2 -2
  201. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.js +2 -2
  202. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.js +3 -3
  203. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.js +3 -3
  204. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.js +10 -3
  205. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.js +3 -2
  206. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.js +3 -2
  207. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js +4 -3
  208. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js +10 -14
  209. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.js +3 -2
  210. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.js +3 -3
  211. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.js +8 -3
  212. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.js +15 -0
  213. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.js +15 -4
  214. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.js +1 -0
  215. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +8 -3
  216. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.js +1 -0
  217. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +2 -1
  218. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.js +1 -0
  219. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.js +2 -1
  220. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +1 -0
  221. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.js +1 -0
  222. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.js +1 -0
  223. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.js +1 -0
  224. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +6 -2
  225. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +2 -1
  226. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.js +5 -1
  227. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.js +10 -1
  228. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +15 -8
  229. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.js +2 -4
  230. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.js +6 -8
  231. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.js +14 -2
  232. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.js +1 -0
  233. package/ssr/lib/components/accordion.wrapper.d.ts +12 -4
  234. package/ssr/lib/components/banner.wrapper.d.ts +18 -2
  235. package/ssr/lib/components/button-group.wrapper.d.ts +2 -2
  236. package/ssr/lib/components/button-pure.wrapper.d.ts +15 -15
  237. package/ssr/lib/components/button.wrapper.d.ts +5 -5
  238. package/ssr/lib/components/carousel.wrapper.d.ts +43 -9
  239. package/ssr/lib/components/checkbox-wrapper.wrapper.d.ts +5 -5
  240. package/ssr/lib/components/content-wrapper.wrapper.d.ts +2 -2
  241. package/ssr/lib/components/display.wrapper.d.ts +2 -2
  242. package/ssr/lib/components/divider.wrapper.d.ts +13 -5
  243. package/ssr/lib/components/fieldset-wrapper.wrapper.d.ts +5 -5
  244. package/ssr/lib/components/flex-item.wrapper.d.ts +2 -2
  245. package/ssr/lib/components/flex.wrapper.d.ts +2 -2
  246. package/ssr/lib/components/grid-item.wrapper.d.ts +2 -2
  247. package/ssr/lib/components/grid.wrapper.d.ts +2 -2
  248. package/ssr/lib/components/heading.wrapper.d.ts +2 -2
  249. package/ssr/lib/components/headline.wrapper.d.ts +2 -2
  250. package/ssr/lib/components/icon.wrapper.d.ts +2 -2
  251. package/ssr/lib/components/index.d.ts +1 -0
  252. package/ssr/lib/components/inline-notification.wrapper.d.ts +5 -5
  253. package/ssr/lib/components/link-pure.wrapper.d.ts +15 -15
  254. package/ssr/lib/components/link-social.wrapper.d.ts +8 -8
  255. package/ssr/lib/components/link-tile.wrapper.d.ts +7 -7
  256. package/ssr/lib/components/link.wrapper.d.ts +5 -5
  257. package/ssr/lib/components/marque.wrapper.d.ts +5 -5
  258. package/ssr/lib/components/modal.wrapper.d.ts +22 -6
  259. package/ssr/lib/components/model-signature.wrapper.d.ts +38 -0
  260. package/ssr/lib/components/pagination.wrapper.d.ts +31 -15
  261. package/ssr/lib/components/popover.wrapper.d.ts +5 -5
  262. package/ssr/lib/components/radio-button-wrapper.wrapper.d.ts +5 -5
  263. package/ssr/lib/components/scroller.wrapper.d.ts +27 -11
  264. package/ssr/lib/components/segmented-control-item.wrapper.d.ts +5 -5
  265. package/ssr/lib/components/segmented-control.wrapper.d.ts +12 -4
  266. package/ssr/lib/components/select-wrapper.wrapper.d.ts +7 -7
  267. package/ssr/lib/components/spinner.wrapper.d.ts +2 -2
  268. package/ssr/lib/components/stepper-horizontal-item.wrapper.d.ts +5 -5
  269. package/ssr/lib/components/stepper-horizontal.wrapper.d.ts +13 -5
  270. package/ssr/lib/components/switch.wrapper.d.ts +13 -5
  271. package/ssr/lib/components/table-body.wrapper.d.ts +2 -2
  272. package/ssr/lib/components/table-cell.wrapper.d.ts +2 -2
  273. package/ssr/lib/components/table-head-cell.wrapper.d.ts +2 -2
  274. package/ssr/lib/components/table-head-row.wrapper.d.ts +2 -2
  275. package/ssr/lib/components/table-head.wrapper.d.ts +2 -2
  276. package/ssr/lib/components/table-row.wrapper.d.ts +2 -2
  277. package/ssr/lib/components/table.wrapper.d.ts +13 -5
  278. package/ssr/lib/components/tabs-bar.wrapper.d.ts +27 -11
  279. package/ssr/lib/components/tabs-item.wrapper.d.ts +2 -2
  280. package/ssr/lib/components/tabs.wrapper.d.ts +27 -11
  281. package/ssr/lib/components/tag-dismissible.wrapper.d.ts +2 -2
  282. package/ssr/lib/components/tag.wrapper.d.ts +5 -5
  283. package/ssr/lib/components/text-field-wrapper.wrapper.d.ts +17 -9
  284. package/ssr/lib/components/text-list-item.wrapper.d.ts +2 -2
  285. package/ssr/lib/components/text-list.wrapper.d.ts +21 -13
  286. package/ssr/lib/components/text.wrapper.d.ts +2 -2
  287. package/ssr/lib/components/textarea-wrapper.wrapper.d.ts +15 -7
  288. package/ssr/lib/components/toast.wrapper.d.ts +2 -2
  289. package/ssr/lib/dsr-components/carousel.d.ts +1 -1
  290. package/ssr/lib/dsr-components/link-social.d.ts +1 -1
  291. package/ssr/lib/dsr-components/modal.d.ts +2 -1
  292. package/ssr/lib/dsr-components/model-signature.d.ts +5 -0
  293. package/ssr/lib/dsr-components/text-field-wrapper.d.ts +2 -0
  294. package/ssr/lib/dsr-components/text-list-item.d.ts +1 -2
  295. package/ssr/lib/types.d.ts +164 -60
@@ -60,6 +60,8 @@ const fontHyphenationStyle = {
60
60
 
61
61
  const fontLineHeight = 'calc(6px + 2.125ex)';
62
62
 
63
+ const fontSizeTextXXSmall = '.75rem';
64
+
63
65
  const fontSizeTextXSmall = 'clamp(0.81rem, 0.23vw + 0.77rem, 0.88rem)';
64
66
 
65
67
  const fontSizeTextSmall = '1rem';
@@ -71,6 +73,7 @@ const fontSizeTextLarge = 'clamp(1.27rem, 0.51vw + 1.16rem, 1.78rem)';
71
73
  const fontSizeTextXLarge = 'clamp(1.42rem, 0.94vw + 1.23rem, 2.37rem)';
72
74
 
73
75
  const fontSizeText = {
76
+ xxSmall: fontSizeTextXXSmall,
74
77
  xSmall: fontSizeTextXSmall,
75
78
  small: fontSizeTextSmall,
76
79
  medium: fontSizeTextMedium,
@@ -88,7 +91,7 @@ const fontSizeHeadingXLarge = fontSizeTextXLarge;
88
91
 
89
92
  const fontSizeHeadingXXLarge = 'clamp(1.6rem, 1.56vw + 1.29rem, 3.16rem)';
90
93
 
91
- const fontSizeHeadingXXXLarge = 'clamp(1.8rem, 2.41vw + 1.32rem, 4.21rem)';
94
+ const fontSizeDisplaySmall = 'clamp(1.8rem, 2.41vw + 1.32rem, 4.21rem)';
92
95
 
93
96
  const fontSizeDisplayMedium = 'clamp(2.03rem, 3.58vw + 1.31rem, 5.61rem)';
94
97
 
@@ -108,8 +111,6 @@ const fontWeight = {
108
111
 
109
112
  const fontStyleNormal = 'normal';
110
113
 
111
- const fontStyleItalic = 'italic';
112
-
113
114
  const fontVariant = 'normal';
114
115
 
115
116
  const backdropFilter = 'blur(32px)';
@@ -118,19 +119,42 @@ const frostedGlassStyle = {
118
119
  backdropFilter,
119
120
  };
120
121
 
121
- const breakpointBase = '0px';
122
+ const _gradient = 'rgba(31,31,31,0.9) 0%,' +
123
+ 'rgba(31,31,31,0.9) 20%,' +
124
+ 'rgba(31,31,31,0.852589) 26.67%,' +
125
+ 'rgba(32,32,32,0.768225) 33.33%,' +
126
+ 'rgba(33,33,33,0.668116) 40%,' +
127
+ 'rgba(34,34,34,0.557309) 46.67%,' +
128
+ 'rgba(35,35,35,0.442691) 53.33%,' +
129
+ 'rgba(36,36,36,0.331884) 60%,' +
130
+ 'rgba(37,37,37,0.231775) 66.67%,' +
131
+ 'rgba(38,38,38,0.147411) 73.33%,' +
132
+ 'rgba(39,39,39,0.0816599) 80%,' +
133
+ 'rgba(39,39,39,0.03551) 86.67%,' +
134
+ 'rgba(39,39,39,0.0086472) 93.33%,' +
135
+ 'rgba(39,39,39,0)';
136
+
137
+ const gradientToBottomStyle = {
138
+ background: `linear-gradient(to bottom, ${_gradient} 100%);`,
139
+ };
140
+
141
+ const gradientToTopStyle = {
142
+ background: `linear-gradient(to top, ${_gradient} 100%);`,
143
+ };
144
+
145
+ const breakpointBase = 0;
122
146
 
123
- const breakpointXS = '480px';
147
+ const breakpointXS = 480;
124
148
 
125
- const breakpointS = '760px';
149
+ const breakpointS = 760;
126
150
 
127
- const breakpointM = '1000px';
151
+ const breakpointM = 1000;
128
152
 
129
- const breakpointL = '1300px';
153
+ const breakpointL = 1300;
130
154
 
131
- const breakpointXL = '1760px';
155
+ const breakpointXL = 1760;
132
156
 
133
- const breakpointXXL = '1920px';
157
+ const breakpointXXL = 1920;
134
158
 
135
159
  const breakpoint = {
136
160
  base: breakpointBase,
@@ -143,15 +167,13 @@ const breakpoint = {
143
167
  };
144
168
 
145
169
  function getMediaQueryMin(min) {
146
- return `@media(min-width:${breakpoint[min]})`;
170
+ return `@media(min-width:${breakpoint[min]}px)`;
147
171
  }
148
172
 
149
173
  const spacingFluidMedium = 'clamp(16px, 1.25vw + 12px, 36px)';
150
174
 
151
175
  const gridGap = spacingFluidMedium;
152
176
 
153
- const gridWidthMin = '320px';
154
-
155
177
  const gridWidthMax = '2560px';
156
178
 
157
179
  // fluid sizing calculated by https://fluidtypography.com/#app-get-started
@@ -162,70 +184,12 @@ const gridSafeZoneBase = 'clamp(22px, 10.625vw - 12px, 192px)';
162
184
  // gridSafeZoneXXL: Viewport Width Range = 1920 - 2560px / Size Range = 192 - 512px
163
185
  const gridSafeZoneXXL = 'clamp(192px, 50vw - 768px, 512px)';
164
186
 
165
- const gridFullColumnStart = 'full-start';
166
-
167
- const gridExtendedColumnStart = 'extended-start';
168
-
169
- const gridBasicColumnStart = 'basic-start';
170
-
171
- const gridNarrowColumnStart = 'narrow-start';
172
-
173
- const gridNarrowColumnEnd = 'narrow-end';
174
-
175
- const gridBasicColumnEnd = 'basic-end';
176
-
177
- const gridExtendedColumnEnd = 'extended-end';
178
-
179
- const gridFullColumnEnd = 'full-end';
180
-
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';
187
-
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
- });
222
-
223
187
  function getMediaQueryMax(max) {
224
- return `@media(max-width:${breakpoint[max].slice(0, -2) - 1}px)`;
188
+ return `@media(max-width:${breakpoint[max] - 1}px)`;
225
189
  }
226
190
 
227
191
  function getMediaQueryMinMax(min, max) {
228
- return `@media(min-width:${breakpoint[min]}) and (max-width:${breakpoint[max].slice(0, -2) - 1}px)`;
192
+ return `@media(min-width:${breakpoint[min]}px) and (max-width:${breakpoint[max] - 1}px)`;
229
193
  }
230
194
 
231
195
  const spacingStaticXSmall = '4px';
@@ -238,9 +202,13 @@ const spacingStaticLarge = '32px';
238
202
 
239
203
  const spacingFluidXSmall = 'clamp(4px, 0.25vw + 3px, 8px)';
240
204
 
205
+ const spacingFluidSmall = 'clamp(8px, 0.5vw + 6px, 16px)';
206
+
207
+ const spacingFluidLarge = 'clamp(32px, 2.75vw + 23px, 76px)';
208
+
241
209
  const themeDarkBackgroundShading = 'rgba(1, 2, 5, 0.67)';
242
210
 
243
- const _displayFontPartA = `${fontStyleItalic} ${fontVariant} ${fontWeightSemiBold$1} `;
211
+ const _displayFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightRegular} `;
244
212
  const _displayFontPartB = `/${fontLineHeight} ${fontFamily}`;
245
213
 
246
214
  const displayMediumStyle = {
@@ -266,6 +234,10 @@ const headingLargeStyle = {
266
234
  font: `${_headingFontPartA}${fontSizeHeadingLarge}${_headingFontPartB}`,
267
235
  };
268
236
 
237
+ const headingXLargeStyle = {
238
+ font: `${_headingFontPartA}${fontSizeHeadingXLarge}${_headingFontPartB}`,
239
+ };
240
+
269
241
  const headingXXLargeStyle = {
270
242
  font: `${_headingFontPartA}${fontSizeHeadingXXLarge}${_headingFontPartB}`,
271
243
  };
@@ -283,13 +255,18 @@ const textSmallStyle = {
283
255
  ...fontHyphenationStyle,
284
256
  };
285
257
 
258
+ const textLargeStyle = {
259
+ font: `${_textFontPartA}${fontSizeTextLarge}${_textFontPartB}`,
260
+ ...fontHyphenationStyle,
261
+ };
262
+
286
263
  // TODO: we shouldn't exclude xxl breakpoint
287
264
  const mediaQueries = Object.entries(breakpoint)
288
265
  .filter(([key]) => key !== 'xxl')
289
- .map(([, val]) => `(min-width:${val})`);
266
+ .map(([, val]) => `(min-width:${val}px)`);
290
267
  hasWindow && window.matchMedia ? mediaQueries.map(window.matchMedia) : [];
291
268
 
292
- Object.entries(breakpoint).reduce((result, [key, val]) => (Object.assign(Object.assign({}, result), { [val]: key })), {});
269
+ Object.entries(breakpoint).reduce((result, [key, val]) => (Object.assign(Object.assign({}, result), { [`${val}px`]: key })), {});
293
270
 
294
271
  const hasVisibleIcon = (iconName, iconSource) => {
295
272
  return iconName !== 'none' || !!iconSource;
@@ -499,12 +476,6 @@ var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symb
499
476
 
500
477
  var isBrowser = (typeof window === "undefined" ? "undefined" : _typeof$1(window)) === "object" && (typeof document === "undefined" ? "undefined" : _typeof$1(document)) === 'object' && document.nodeType === 9;
501
478
 
502
- var module$1 = /*#__PURE__*/Object.freeze({
503
- __proto__: null,
504
- default: isBrowser,
505
- isBrowser: isBrowser
506
- });
507
-
508
479
  var isProduction = process.env.NODE_ENV === 'production';
509
480
  function warning(condition, message) {
510
481
  if (!isProduction) {
@@ -1052,7 +1023,7 @@ function () {
1052
1023
 
1053
1024
  return ConditionalRule;
1054
1025
  }();
1055
- var keyRegExp = /@media|@supports\s+/;
1026
+ var keyRegExp = /@container|@media|@supports\s+/;
1056
1027
  var pluginConditionalRule = {
1057
1028
  onCreateRule: function onCreateRule(key, styles, options) {
1058
1029
  return keyRegExp.test(key) ? new ConditionalRule(key, styles, options) : null;
@@ -1349,7 +1320,7 @@ var pluginSimpleRule = {
1349
1320
  }
1350
1321
  };
1351
1322
 
1352
- var plugins$1 = [pluginStyleRule, pluginConditionalRule, pluginKeyframesRule, pluginKeyframeRule, pluginFontFaceRule, pluginViewportRule, pluginSimpleRule];
1323
+ var plugins = [pluginStyleRule, pluginConditionalRule, pluginKeyframesRule, pluginKeyframeRule, pluginFontFaceRule, pluginViewportRule, pluginSimpleRule];
1353
1324
 
1354
1325
  var defaultUpdateOptions = {
1355
1326
  process: true
@@ -2616,7 +2587,7 @@ var Jss =
2616
2587
  function () {
2617
2588
  function Jss(options) {
2618
2589
  this.id = instanceCounter++;
2619
- this.version = "10.9.2";
2590
+ this.version = "10.10.0";
2620
2591
  this.plugins = new PluginsRegistry();
2621
2592
  this.options = {
2622
2593
  id: {
@@ -2630,8 +2601,8 @@ function () {
2630
2601
  minify: false
2631
2602
  });
2632
2603
 
2633
- for (var i = 0; i < plugins$1.length; i++) {
2634
- this.plugins.use(plugins$1[i], {
2604
+ for (var i = 0; i < plugins.length; i++) {
2605
+ this.plugins.use(plugins[i], {
2635
2606
  queue: 'internal'
2636
2607
  });
2637
2608
  }
@@ -2896,54 +2867,24 @@ var jss_esm = /*#__PURE__*/Object.freeze({
2896
2867
  toCssValue: toCssValue
2897
2868
  });
2898
2869
 
2899
- function getAugmentedNamespace(n) {
2900
- if (n.__esModule) return n;
2901
- var f = n.default;
2902
- if (typeof f == "function") {
2903
- var a = function a () {
2904
- if (this instanceof a) {
2905
- var args = [null];
2906
- args.push.apply(args, arguments);
2907
- var Ctor = Function.bind.apply(f, args);
2908
- return new Ctor();
2909
- }
2910
- return f.apply(this, arguments);
2911
- };
2912
- a.prototype = f.prototype;
2913
- } else a = {};
2914
- Object.defineProperty(a, '__esModule', {value: true});
2915
- Object.keys(n).forEach(function (k) {
2916
- var d = Object.getOwnPropertyDescriptor(n, k);
2917
- Object.defineProperty(a, k, d.get ? d : {
2918
- enumerable: true,
2919
- get: function () {
2920
- return n[k];
2921
- }
2922
- });
2923
- });
2924
- return a;
2925
- }
2926
-
2927
2870
  /* eslint-disable no-var, prefer-template */
2928
2871
  var uppercasePattern = /[A-Z]/g;
2929
2872
  var msPattern = /^ms-/;
2930
- var cache$2 = {};
2873
+ var cache = {};
2931
2874
 
2932
2875
  function toHyphenLower(match) {
2933
2876
  return '-' + match.toLowerCase()
2934
2877
  }
2935
2878
 
2936
2879
  function hyphenateStyleName(name) {
2937
- if (cache$2.hasOwnProperty(name)) {
2938
- return cache$2[name]
2880
+ if (cache.hasOwnProperty(name)) {
2881
+ return cache[name]
2939
2882
  }
2940
2883
 
2941
2884
  var hName = name.replace(uppercasePattern, toHyphenLower);
2942
- return (cache$2[name] = msPattern.test(hName) ? '-' + hName : hName)
2885
+ return (cache[name] = msPattern.test(hName) ? '-' + hName : hName)
2943
2886
  }
2944
2887
 
2945
- var index_cjs = hyphenateStyleName;
2946
-
2947
2888
  /**
2948
2889
  * Convert camel cased property names to dash separated.
2949
2890
  */
@@ -2952,7 +2893,7 @@ function convertCase(style) {
2952
2893
  var converted = {};
2953
2894
 
2954
2895
  for (var prop in style) {
2955
- var key = prop.indexOf('--') === 0 ? prop : index_cjs(prop);
2896
+ var key = prop.indexOf('--') === 0 ? prop : hyphenateStyleName(prop);
2956
2897
  converted[key] = style[prop];
2957
2898
  }
2958
2899
 
@@ -2986,7 +2927,7 @@ function camelCase() {
2986
2927
  return value;
2987
2928
  }
2988
2929
 
2989
- var hyphenatedProp = index_cjs(prop); // There was no camel case in place
2930
+ var hyphenatedProp = hyphenateStyleName(prop); // There was no camel case in place
2990
2931
 
2991
2932
  if (prop === hyphenatedProp) return value;
2992
2933
  rule.prop(hyphenatedProp, value); // Core will ignore that property value we set the proper one above.
@@ -3291,6 +3232,34 @@ function jssNested() {
3291
3232
  };
3292
3233
  }
3293
3234
 
3235
+ function getAugmentedNamespace(n) {
3236
+ if (n.__esModule) return n;
3237
+ var f = n.default;
3238
+ if (typeof f == "function") {
3239
+ var a = function a () {
3240
+ if (this instanceof a) {
3241
+ var args = [null];
3242
+ args.push.apply(args, arguments);
3243
+ var Ctor = Function.bind.apply(f, args);
3244
+ return new Ctor();
3245
+ }
3246
+ return f.apply(this, arguments);
3247
+ };
3248
+ a.prototype = f.prototype;
3249
+ } else a = {};
3250
+ Object.defineProperty(a, '__esModule', {value: true});
3251
+ Object.keys(n).forEach(function (k) {
3252
+ var d = Object.getOwnPropertyDescriptor(n, k);
3253
+ Object.defineProperty(a, k, d.get ? d : {
3254
+ enumerable: true,
3255
+ get: function () {
3256
+ return n[k];
3257
+ }
3258
+ });
3259
+ });
3260
+ return a;
3261
+ }
3262
+
3294
3263
  var _tslib$1 = {};
3295
3264
 
3296
3265
  (function (exports) {
@@ -3699,10 +3668,10 @@ const themeLight = {
3699
3668
  contrastHighColor: '#535457',
3700
3669
  contrastHighColorDarken: '#353638',
3701
3670
  contrastHighColorLighten: '#717276',
3702
- hoverColor: 'rgba(148, 149, 152, 0.20)',
3671
+ hoverColor: 'rgba(148, 149, 152, .18)',
3703
3672
  hoverColorDarken: '#75767A',
3704
3673
  activeColor: 'rgba(148, 149, 152, 0.20)',
3705
- focusColor: '#0A0AFF',
3674
+ focusColor: '#1A44EA',
3706
3675
  disabledColor: '#949598',
3707
3676
  errorColor: '#E7323B',
3708
3677
  errorColorDarken: '#C51720',
@@ -3737,10 +3706,10 @@ const themeDark = {
3737
3706
  contrastHighColor: '#AFB0B3',
3738
3707
  contrastHighColorDarken: '#909195',
3739
3708
  contrastHighColorLighten: '#CECFD1',
3740
- hoverColor: 'rgba(126, 127, 130, 0.20)',
3741
- hoverColorDarken: '#606163',
3709
+ hoverColor: 'rgba(148, 149, 152, .18)',
3710
+ hoverColorDarken: '#75767A',
3742
3711
  activeColor: 'rgba(126, 127, 130, 0.20)',
3743
- focusColor: '#1E5BEB',
3712
+ focusColor: '#1A44EA',
3744
3713
  disabledColor: '#7E7F82',
3745
3714
  errorColor: '#CB3333',
3746
3715
  errorColorDarken: '#9A2727',
@@ -3802,6 +3771,14 @@ const getInsetJssStyle = (value = 0) => {
3802
3771
  bottom: value,
3803
3772
  };
3804
3773
  };
3774
+ // reset initial styles, e.g. in case link-pure is used with slotted anchor and nested within e.g. an accordion
3775
+ const getResetInitialStylesForSlottedAnchor = {
3776
+ margin: 0,
3777
+ padding: 0,
3778
+ outline: 0,
3779
+ borderRadius: 0,
3780
+ background: 'transparent',
3781
+ };
3805
3782
  const getFocusJssStyle = (opts) => {
3806
3783
  const { pseudo, offset: outlineOffset, color: outlineColor, } = Object.assign({ color: 'currentColor', offset: 2 }, opts);
3807
3784
  return pseudo
@@ -3920,14 +3897,14 @@ const buildResponsiveStyles = (rawValue, getJssStyle) => {
3920
3897
  [getMediaQueryMin(breakpointValue)]: getJssStyle(value[breakpointValue]) })), getJssStyle(value.base))
3921
3898
  : getJssStyle(value);
3922
3899
  };
3923
- const isObject$1 = (obj) => typeof obj === 'object' && !Array.isArray(obj);
3900
+ const isObject = (obj) => typeof obj === 'object' && !Array.isArray(obj);
3924
3901
  // NOTE: taken from https://stackoverflow.com/a/48218209
3925
3902
  const mergeDeep = (...objects) => {
3926
3903
  return objects.reduce((prev, obj) => {
3927
3904
  Object.keys(obj).forEach((key) => {
3928
3905
  const pVal = prev[key];
3929
3906
  const oVal = obj[key];
3930
- if (isObject$1(pVal) && isObject$1(oVal)) {
3907
+ if (isObject(pVal) && isObject(oVal)) {
3931
3908
  prev[key] = mergeDeep(pVal, oVal);
3932
3909
  }
3933
3910
  else {
@@ -3938,1961 +3915,131 @@ const mergeDeep = (...objects) => {
3938
3915
  }, {});
3939
3916
  };
3940
3917
 
3941
- [
3942
- { name: 'Model', id: 'model' },
3943
- { name: 'Interest', id: 'interest' },
3944
- { name: 'VIN', id: 'vin' },
3945
- { name: 'Purchase Intention', id: 'purchaseIntention' },
3946
- { name: 'Status', id: 'status' },
3947
- { name: 'Comment', id: 'comment' },
3948
- { name: 'Lead ID', id: 'leadId' },
3949
- { name: 'Action', id: 'action', hideLabel: true },
3950
- ].map((item, i) => ({
3951
- ...item,
3952
- ...(i > 0 &&
3953
- i < 7 &&
3954
- i !== 5 && {
3955
- active: i === 1,
3956
- direction: 'asc',
3957
- }),
3958
- }));
3959
-
3960
- [
3961
- { name: 'Column 1', id: 'col1' },
3962
- { name: 'Column 2', id: 'col2' },
3963
- { name: 'Column 3', id: 'col3' },
3964
- ].map((item, i) => ({
3965
- ...item,
3966
- active: i === 1,
3967
- direction: 'asc',
3968
- }));
3969
-
3970
- Array.from(Array(4)).map(() => ({
3971
- imageUrl: 'https://nav.porsche.com/00BC524/series-assets/1366/911@2x.jpg',
3972
- imageWidth: 80,
3973
- imageHeight: 48,
3974
- html: "<a href='#'>link</a>&nbsp;<b>bold</b>&nbsp;<i>italic</i>&nbsp;<strong>strong</strong>&nbsp;<em>emphasized</em>",
3975
- longText: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr',
3976
- shortText: 'Some text',
3977
- }));
3978
-
3979
- var now = Date.now();
3980
- var fnValuesNs = "fnValues" + now;
3981
- var fnRuleNs = "fnStyle" + ++now;
3982
-
3983
- var functionPlugin = function functionPlugin() {
3984
- return {
3985
- onCreateRule: function onCreateRule(name, decl, options) {
3986
- if (typeof decl !== 'function') return null;
3987
- var rule = createRule(name, {}, options);
3988
- rule[fnRuleNs] = decl;
3989
- return rule;
3990
- },
3991
- onProcessStyle: function onProcessStyle(style, rule) {
3992
- // We need to extract function values from the declaration, so that we can keep core unaware of them.
3993
- // We need to do that only once.
3994
- // We don't need to extract functions on each style update, since this can happen only once.
3995
- // We don't support function values inside of function rules.
3996
- if (fnValuesNs in rule || fnRuleNs in rule) return style;
3997
- var fnValues = {};
3998
-
3999
- for (var prop in style) {
4000
- var value = style[prop];
4001
- if (typeof value !== 'function') continue;
4002
- delete style[prop];
4003
- fnValues[prop] = value;
4004
- }
4005
-
4006
- rule[fnValuesNs] = fnValues;
4007
- return style;
4008
- },
4009
- onUpdate: function onUpdate(data, rule, sheet, options) {
4010
- var styleRule = rule;
4011
- var fnRule = styleRule[fnRuleNs]; // If we have a style function, the entire rule is dynamic and style object
4012
- // will be returned from that function.
4013
-
4014
- if (fnRule) {
4015
- // Empty object will remove all currently defined props
4016
- // in case function rule returns a falsy value.
4017
- styleRule.style = fnRule(data) || {};
4018
-
4019
- if (process.env.NODE_ENV === 'development') {
4020
- for (var prop in styleRule.style) {
4021
- if (typeof styleRule.style[prop] === 'function') {
4022
- process.env.NODE_ENV !== "production" ? warning(false, '[JSS] Function values inside function rules are not supported.') : void 0;
4023
- break;
4024
- }
4025
- }
4026
- }
4027
- }
3918
+ const hasDocument = typeof document !== 'undefined';
4028
3919
 
4029
- var fnValues = styleRule[fnValuesNs]; // If we have a fn values map, it is a rule with function values.
3920
+ hasDocument && 'scrollBehavior' in document.documentElement.style;
4030
3921
 
4031
- if (fnValues) {
4032
- for (var _prop in fnValues) {
4033
- styleRule.prop(_prop, fnValues[_prop](data), options);
4034
- }
4035
- }
4036
- }
4037
- };
3922
+ const isThemeDark = (theme) => {
3923
+ return theme === 'dark';
4038
3924
  };
4039
3925
 
4040
- function symbolObservablePonyfill(root) {
4041
- var result;
4042
- var Symbol = root.Symbol;
4043
-
4044
- if (typeof Symbol === 'function') {
4045
- if (Symbol.observable) {
4046
- result = Symbol.observable;
4047
- } else {
4048
- result = Symbol('observable');
4049
- Symbol.observable = result;
4050
- }
4051
- } else {
4052
- result = '@@observable';
4053
- }
4054
-
4055
- return result;
4056
- }
4057
-
4058
- /* global window */
4059
-
4060
- var root;
4061
-
4062
- if (typeof self !== 'undefined') {
4063
- root = self;
4064
- } else if (typeof window !== 'undefined') {
4065
- root = window;
4066
- } else if (typeof global !== 'undefined') {
4067
- root = global;
4068
- } else if (typeof module !== 'undefined') {
4069
- root = module;
4070
- } else {
4071
- root = Function('return this')();
4072
- }
4073
-
4074
- var result = symbolObservablePonyfill(root);
4075
-
4076
- var isObservable = function isObservable(value) {
4077
- return value && value[result] && value === value[result]();
3926
+ const formatObjectOutput = (value) => {
3927
+ return JSON.stringify(value)
3928
+ .replace(/"([a-zA-Z?]+)":/g, '$1:') // remove double quotes from keys
3929
+ .replace(/([,:{])/g, '$1 ') // add space after following: ,:{
3930
+ .replace(/(})/g, ' $1') // add space before following: }
3931
+ .replace(/^"(.+)"$/, '$1'); // remove wrapping double quotes
4078
3932
  };
3933
+ 'value, ' +
3934
+ formatObjectOutput(BREAKPOINTS.reduce((prev, key) => (Object.assign(Object.assign({}, prev), { [key + (key !== 'base' ? '?' : '')]: 'value' })), {})).replace(/"/g, '');
4079
3935
 
4080
- var observablePlugin = function observablePlugin(updateOptions) {
4081
- return {
4082
- onCreateRule: function onCreateRule(name, decl, options) {
4083
- if (!isObservable(decl)) return null;
4084
- var style$ = decl;
4085
- var rule = createRule(name, {}, options); // TODO
4086
- // Call `stream.subscribe()` returns a subscription, which should be explicitly
4087
- // unsubscribed from when we know this sheet is no longer needed.
4088
-
4089
- style$.subscribe(function (style) {
4090
- for (var prop in style) {
4091
- rule.prop(prop, style[prop], updateOptions);
4092
- }
4093
- });
4094
- return rule;
4095
- },
4096
- onProcessRule: function onProcessRule(rule) {
4097
- if (rule && rule.type !== 'style') return;
4098
- var styleRule = rule;
4099
- var style = styleRule.style;
4100
-
4101
- var _loop = function _loop(prop) {
4102
- var value = style[prop];
4103
- if (!isObservable(value)) return "continue";
4104
- delete style[prop];
4105
- value.subscribe({
4106
- next: function next(nextValue) {
4107
- styleRule.prop(prop, nextValue, updateOptions);
4108
- }
4109
- });
4110
- };
4111
-
4112
- for (var prop in style) {
4113
- var _ret = _loop(prop);
3936
+ const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
4114
3937
 
4115
- if (_ret === "continue") continue;
4116
- }
4117
- }
4118
- };
3938
+ const getComponentCss$T = (size, compact, open, theme) => {
3939
+ const { primaryColor, hoverColor, focusColor, contrastLowColor } = getThemedColors(theme);
3940
+ const border = `1px solid ${contrastLowColor}`;
3941
+ return getCss(Object.assign(Object.assign({ '@global': {
3942
+ ':host': addImportantToEachRule(Object.assign({ display: 'block' }, hostHiddenStyles)),
3943
+ 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) => ({
3944
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
3945
+ // @ts-ignore
3946
+ fontSize: fontSizeText[s],
3947
+ padding: compact ? '4px 0' : `${s === 'medium' ? '20px' : '12px'} 0`,
3948
+ }))), mergeDeep({
3949
+ '&::before': Object.assign({ content: '""', position: 'absolute', borderRadius: borderRadiusSmall, left: '-4px', right: '-4px' }, (compact
3950
+ ? {
3951
+ top: '2px',
3952
+ bottom: '2px',
3953
+ }
3954
+ : {
3955
+ top: '6px',
3956
+ bottom: '6px',
3957
+ })),
3958
+ }, hoverMediaQuery({
3959
+ '&::before': {
3960
+ transition: getTransition('background-color'),
3961
+ },
3962
+ '&:hover::before': {
3963
+ background: hoverColor,
3964
+ },
3965
+ }))), { '&:focus::before': {
3966
+ border: `${borderWidthBase} solid ${focusColor}`,
3967
+ }, '&:not(:focus-visible)::before': {
3968
+ border: 0,
3969
+ } }),
3970
+ } }, (!compact && {
3971
+ root: {
3972
+ borderBottom: border,
3973
+ },
3974
+ })), { heading: {
3975
+ margin: 0,
3976
+ padding: 0,
3977
+ }, icon: {
3978
+ width: fontLineHeight,
3979
+ height: fontLineHeight,
3980
+ transformOrigin: '50% 50%',
3981
+ transform: open ? 'rotate3d(0)' : 'rotate3d(0,0,1,90deg)',
3982
+ transition: getTransition('transform'),
3983
+ }, collapsible: Object.assign({ color: primaryColor, padding: 0, overflow: 'hidden' }, (open
3984
+ ? {
3985
+ height: 'auto',
3986
+ paddingBottom: compact ? spacingStaticSmall : '24px',
3987
+ visibility: 'visible',
3988
+ transition: getTransition('height') + `,visibility ${transitionDuration}`,
3989
+ animation: `$open ${transitionDuration} ease forwards`,
3990
+ }
3991
+ : {
3992
+ height: 0,
3993
+ visibility: 'hidden',
3994
+ transition: getTransition('height') + `,visibility ${transitionDuration} linear ${transitionDuration}`,
3995
+ })),
3996
+ // TODO: this doesn't get shortened and results in `keyframes-open` for some unknown reason
3997
+ '@keyframes open': {
3998
+ '0%,99%': {
3999
+ overflow: 'hidden',
4000
+ },
4001
+ '100%': {
4002
+ overflow: 'visible',
4003
+ },
4004
+ } }));
4119
4005
  };
4120
4006
 
4121
- var semiWithNl = /;\n/;
4122
- /**
4123
- * Naive CSS parser.
4124
- * - Supports only rule body (no selectors)
4125
- * - Requires semicolon and new line after the value (except of last line)
4126
- * - No nested rules support
4127
- */
4128
-
4129
- var parse = function parse(cssText) {
4130
- var style = {};
4131
- var split = cssText.split(semiWithNl);
4132
-
4133
- for (var i = 0; i < split.length; i++) {
4134
- var decl = (split[i] || '').trim();
4135
- if (!decl) continue;
4136
- var colonIndex = decl.indexOf(':');
4137
-
4138
- if (colonIndex === -1) {
4139
- process.env.NODE_ENV !== "production" ? warning(false, "[JSS] Malformed CSS string \"" + decl + "\"") : void 0;
4140
- continue;
4141
- }
4142
-
4143
- var prop = decl.substr(0, colonIndex).trim();
4144
- var value = decl.substr(colonIndex + 1).trim();
4145
- style[prop] = value;
4146
- }
4007
+ const TOAST_Z_INDEX = 999999;
4008
+ const MODAL_Z_INDEX = 99999;
4009
+ const POPOVER_Z_INDEX = 9999;
4010
+ const BANNER_Z_INDEX = 99;
4147
4011
 
4148
- return style;
4012
+ const oneColumnWidthS = `calc((100% - ${gridSafeZoneBase} * 2 - ${gridGap} * 13) / 14)`;
4013
+ const oneColumnWidthXXL = `calc((min(100%, ${gridWidthMax}) - ${gridSafeZoneXXL} * 2 - ${gridGap} * 13) / 14)`;
4014
+ const offsetHorizontalXXL = `max(0px, (100% - ${gridWidthMax}) / 2)`;
4015
+ const widthMap$1 = {
4016
+ narrow: {
4017
+ padding: `0 ${gridSafeZoneBase}`,
4018
+ [getMediaQueryMin('s')]: {
4019
+ padding: `0 calc(${gridSafeZoneBase} + ${gridGap} * 3 + ${oneColumnWidthS} * 3)`,
4020
+ },
4021
+ [getMediaQueryMin('xxl')]: {
4022
+ padding: `0 calc(${offsetHorizontalXXL} + ${gridSafeZoneXXL} + ${gridGap} * 3 + ${oneColumnWidthXXL} * 3)`,
4023
+ },
4024
+ },
4025
+ basic: {
4026
+ padding: `0 ${gridSafeZoneBase}`,
4027
+ [getMediaQueryMin('s')]: {
4028
+ padding: `0 calc(${gridSafeZoneBase} + ${gridGap} + ${oneColumnWidthS})`,
4029
+ },
4030
+ [getMediaQueryMin('xxl')]: {
4031
+ padding: `0 calc(${offsetHorizontalXXL} + ${gridSafeZoneXXL} + ${gridGap} + ${oneColumnWidthXXL})`,
4032
+ },
4033
+ },
4034
+ extended: {
4035
+ padding: `0 ${gridSafeZoneBase}`,
4036
+ [getMediaQueryMin('xxl')]: {
4037
+ padding: `0 calc(${offsetHorizontalXXL} + ${gridSafeZoneXXL})`,
4038
+ },
4039
+ },
4149
4040
  };
4150
-
4151
- var onProcessRule = function onProcessRule(rule) {
4152
- if (typeof rule.style === 'string') {
4153
- rule.style = parse(rule.style);
4154
- }
4155
- };
4156
-
4157
- function templatePlugin() {
4158
- return {
4159
- onProcessRule: onProcessRule
4160
- };
4161
- }
4162
-
4163
- var isObject = function isObject(obj) {
4164
- return obj && typeof obj === 'object' && !Array.isArray(obj);
4165
- };
4166
-
4167
- var valueNs = "extendCurrValue" + Date.now();
4168
-
4169
- function mergeExtend(style, rule, sheet, newStyle) {
4170
- var extendType = typeof style.extend; // Extend using a rule name.
4171
-
4172
- if (extendType === 'string') {
4173
- if (!sheet) return;
4174
- var refRule = sheet.getRule(style.extend);
4175
- if (!refRule) return;
4176
-
4177
- if (refRule === rule) {
4178
- process.env.NODE_ENV !== "production" ? warning(false, "[JSS] A rule tries to extend itself \n" + rule.toString()) : void 0;
4179
- return;
4180
- }
4181
-
4182
- var parent = refRule.options.parent;
4183
-
4184
- if (parent) {
4185
- var originalStyle = parent.rules.raw[style.extend];
4186
- extend(originalStyle, rule, sheet, newStyle);
4187
- }
4188
-
4189
- return;
4190
- } // Extend using an array.
4191
-
4192
-
4193
- if (Array.isArray(style.extend)) {
4194
- for (var index = 0; index < style.extend.length; index++) {
4195
- var singleExtend = style.extend[index];
4196
- var singleStyle = typeof singleExtend === 'string' ? _extends({}, style, {
4197
- extend: singleExtend
4198
- }) : style.extend[index];
4199
- extend(singleStyle, rule, sheet, newStyle);
4200
- }
4201
-
4202
- return;
4203
- } // Extend is a style object.
4204
-
4205
-
4206
- for (var prop in style.extend) {
4207
- if (prop === 'extend') {
4208
- extend(style.extend.extend, rule, sheet, newStyle);
4209
- continue;
4210
- }
4211
-
4212
- if (isObject(style.extend[prop])) {
4213
- if (!(prop in newStyle)) newStyle[prop] = {};
4214
- extend(style.extend[prop], rule, sheet, newStyle[prop]);
4215
- continue;
4216
- }
4217
-
4218
- newStyle[prop] = style.extend[prop];
4219
- }
4220
- }
4221
-
4222
- function mergeRest(style, rule, sheet, newStyle) {
4223
- // Copy base style.
4224
- for (var prop in style) {
4225
- if (prop === 'extend') continue;
4226
-
4227
- if (isObject(newStyle[prop]) && isObject(style[prop])) {
4228
- extend(style[prop], rule, sheet, newStyle[prop]);
4229
- continue;
4230
- }
4231
-
4232
- if (isObject(style[prop])) {
4233
- newStyle[prop] = extend(style[prop], rule, sheet);
4234
- continue;
4235
- }
4236
-
4237
- newStyle[prop] = style[prop];
4238
- }
4239
- }
4240
- /**
4241
- * Recursively extend styles.
4242
- */
4243
-
4244
-
4245
- function extend(style, rule, sheet, newStyle) {
4246
- if (newStyle === void 0) {
4247
- newStyle = {};
4248
- }
4249
-
4250
- mergeExtend(style, rule, sheet, newStyle);
4251
- mergeRest(style, rule, sheet, newStyle);
4252
- return newStyle;
4253
- }
4254
- /**
4255
- * Handle `extend` property.
4256
- */
4257
-
4258
-
4259
- function jssExtend() {
4260
- function onProcessStyle(style, rule, sheet) {
4261
- if ('extend' in style) return extend(style, rule, sheet);
4262
- return style;
4263
- }
4264
-
4265
- function onChangeValue(value, prop, rule) {
4266
- if (prop !== 'extend') return value; // Value is empty, remove properties set previously.
4267
-
4268
- if (value == null || value === false) {
4269
- for (var key in rule[valueNs]) {
4270
- rule.prop(key, null);
4271
- }
4272
-
4273
- rule[valueNs] = null;
4274
- return null;
4275
- }
4276
-
4277
- if (typeof value === 'object') {
4278
- for (var _key in value) {
4279
- rule.prop(_key, value[_key]);
4280
- }
4281
-
4282
- rule[valueNs] = value;
4283
- } // Make sure we don't set the value in the core.
4284
-
4285
-
4286
- return null;
4287
- }
4288
-
4289
- return {
4290
- onProcessStyle: onProcessStyle,
4291
- onChangeValue: onChangeValue
4292
- };
4293
- }
4294
-
4295
- /**
4296
- * Set selector.
4297
- *
4298
- * @param original rule
4299
- * @param className class string
4300
- * @return flag indicating function was successfull or not
4301
- */
4302
-
4303
- function registerClass(rule, className) {
4304
- // Skip falsy values
4305
- if (!className) return true; // Support array of class names `{composes: ['foo', 'bar']}`
4306
-
4307
- if (Array.isArray(className)) {
4308
- for (var index = 0; index < className.length; index++) {
4309
- var isSetted = registerClass(rule, className[index]);
4310
- if (!isSetted) return false;
4311
- }
4312
-
4313
- return true;
4314
- } // Support space separated class names `{composes: 'foo bar'}`
4315
-
4316
-
4317
- if (className.indexOf(' ') > -1) {
4318
- return registerClass(rule, className.split(' '));
4319
- }
4320
-
4321
- var parent = rule.options.parent; // It is a ref to a local rule.
4322
-
4323
- if (className[0] === '$') {
4324
- var refRule = parent.getRule(className.substr(1));
4325
-
4326
- if (!refRule) {
4327
- process.env.NODE_ENV !== "production" ? warning(false, "[JSS] Referenced rule is not defined. \n" + rule.toString()) : void 0;
4328
- return false;
4329
- }
4330
-
4331
- if (refRule === rule) {
4332
- process.env.NODE_ENV !== "production" ? warning(false, "[JSS] Cyclic composition detected. \n" + rule.toString()) : void 0;
4333
- return false;
4334
- }
4335
-
4336
- parent.classes[rule.key] += " " + parent.classes[refRule.key];
4337
- return true;
4338
- }
4339
-
4340
- parent.classes[rule.key] += " " + className;
4341
- return true;
4342
- }
4343
- /**
4344
- * Convert compose property to additional class, remove property from original styles.
4345
- */
4346
-
4347
-
4348
- function jssCompose() {
4349
- function onProcessStyle(style, rule) {
4350
- if (!('composes' in style)) return style;
4351
- registerClass(rule, style.composes); // Remove composes property to prevent infinite loop.
4352
-
4353
- delete style.composes;
4354
- return style;
4355
- }
4356
-
4357
- return {
4358
- onProcessStyle: onProcessStyle
4359
- };
4360
- }
4361
-
4362
- var px = hasCSSTOMSupport && CSS ? CSS.px : 'px';
4363
- var ms = hasCSSTOMSupport && CSS ? CSS.ms : 'ms';
4364
- var percent = hasCSSTOMSupport && CSS ? CSS.percent : '%';
4365
- /**
4366
- * Generated jss-plugin-default-unit CSS property units
4367
- */
4368
-
4369
- var defaultUnits = {
4370
- // Animation properties
4371
- 'animation-delay': ms,
4372
- 'animation-duration': ms,
4373
- // Background properties
4374
- 'background-position': px,
4375
- 'background-position-x': px,
4376
- 'background-position-y': px,
4377
- 'background-size': px,
4378
- // Border Properties
4379
- border: px,
4380
- 'border-bottom': px,
4381
- 'border-bottom-left-radius': px,
4382
- 'border-bottom-right-radius': px,
4383
- 'border-bottom-width': px,
4384
- 'border-left': px,
4385
- 'border-left-width': px,
4386
- 'border-radius': px,
4387
- 'border-right': px,
4388
- 'border-right-width': px,
4389
- 'border-top': px,
4390
- 'border-top-left-radius': px,
4391
- 'border-top-right-radius': px,
4392
- 'border-top-width': px,
4393
- 'border-width': px,
4394
- 'border-block': px,
4395
- 'border-block-end': px,
4396
- 'border-block-end-width': px,
4397
- 'border-block-start': px,
4398
- 'border-block-start-width': px,
4399
- 'border-block-width': px,
4400
- 'border-inline': px,
4401
- 'border-inline-end': px,
4402
- 'border-inline-end-width': px,
4403
- 'border-inline-start': px,
4404
- 'border-inline-start-width': px,
4405
- 'border-inline-width': px,
4406
- 'border-start-start-radius': px,
4407
- 'border-start-end-radius': px,
4408
- 'border-end-start-radius': px,
4409
- 'border-end-end-radius': px,
4410
- // Margin properties
4411
- margin: px,
4412
- 'margin-bottom': px,
4413
- 'margin-left': px,
4414
- 'margin-right': px,
4415
- 'margin-top': px,
4416
- 'margin-block': px,
4417
- 'margin-block-end': px,
4418
- 'margin-block-start': px,
4419
- 'margin-inline': px,
4420
- 'margin-inline-end': px,
4421
- 'margin-inline-start': px,
4422
- // Padding properties
4423
- padding: px,
4424
- 'padding-bottom': px,
4425
- 'padding-left': px,
4426
- 'padding-right': px,
4427
- 'padding-top': px,
4428
- 'padding-block': px,
4429
- 'padding-block-end': px,
4430
- 'padding-block-start': px,
4431
- 'padding-inline': px,
4432
- 'padding-inline-end': px,
4433
- 'padding-inline-start': px,
4434
- // Mask properties
4435
- 'mask-position-x': px,
4436
- 'mask-position-y': px,
4437
- 'mask-size': px,
4438
- // Width and height properties
4439
- height: px,
4440
- width: px,
4441
- 'min-height': px,
4442
- 'max-height': px,
4443
- 'min-width': px,
4444
- 'max-width': px,
4445
- // Position properties
4446
- bottom: px,
4447
- left: px,
4448
- top: px,
4449
- right: px,
4450
- inset: px,
4451
- 'inset-block': px,
4452
- 'inset-block-end': px,
4453
- 'inset-block-start': px,
4454
- 'inset-inline': px,
4455
- 'inset-inline-end': px,
4456
- 'inset-inline-start': px,
4457
- // Shadow properties
4458
- 'box-shadow': px,
4459
- 'text-shadow': px,
4460
- // Column properties
4461
- 'column-gap': px,
4462
- 'column-rule': px,
4463
- 'column-rule-width': px,
4464
- 'column-width': px,
4465
- // Font and text properties
4466
- 'font-size': px,
4467
- 'font-size-delta': px,
4468
- 'letter-spacing': px,
4469
- 'text-decoration-thickness': px,
4470
- 'text-indent': px,
4471
- 'text-stroke': px,
4472
- 'text-stroke-width': px,
4473
- 'word-spacing': px,
4474
- // Motion properties
4475
- motion: px,
4476
- 'motion-offset': px,
4477
- // Outline properties
4478
- outline: px,
4479
- 'outline-offset': px,
4480
- 'outline-width': px,
4481
- // Perspective properties
4482
- perspective: px,
4483
- 'perspective-origin-x': percent,
4484
- 'perspective-origin-y': percent,
4485
- // Transform properties
4486
- 'transform-origin': percent,
4487
- 'transform-origin-x': percent,
4488
- 'transform-origin-y': percent,
4489
- 'transform-origin-z': percent,
4490
- // Transition properties
4491
- 'transition-delay': ms,
4492
- 'transition-duration': ms,
4493
- // Alignment properties
4494
- 'vertical-align': px,
4495
- 'flex-basis': px,
4496
- // Some random properties
4497
- 'shape-margin': px,
4498
- size: px,
4499
- gap: px,
4500
- // Grid properties
4501
- grid: px,
4502
- 'grid-gap': px,
4503
- 'row-gap': px,
4504
- 'grid-row-gap': px,
4505
- 'grid-column-gap': px,
4506
- 'grid-template-rows': px,
4507
- 'grid-template-columns': px,
4508
- 'grid-auto-rows': px,
4509
- 'grid-auto-columns': px,
4510
- // Not existing properties.
4511
- // Used to avoid issues with jss-plugin-expand integration.
4512
- 'box-shadow-x': px,
4513
- 'box-shadow-y': px,
4514
- 'box-shadow-blur': px,
4515
- 'box-shadow-spread': px,
4516
- 'font-line-height': px,
4517
- 'text-shadow-x': px,
4518
- 'text-shadow-y': px,
4519
- 'text-shadow-blur': px
4520
- };
4521
-
4522
- /**
4523
- * Clones the object and adds a camel cased property version.
4524
- */
4525
-
4526
- function addCamelCasedVersion(obj) {
4527
- var regExp = /(-[a-z])/g;
4528
-
4529
- var replace = function replace(str) {
4530
- return str[1].toUpperCase();
4531
- };
4532
-
4533
- var newObj = {};
4534
-
4535
- for (var key in obj) {
4536
- newObj[key] = obj[key];
4537
- newObj[key.replace(regExp, replace)] = obj[key];
4538
- }
4539
-
4540
- return newObj;
4541
- }
4542
-
4543
- var units = addCamelCasedVersion(defaultUnits);
4544
- /**
4545
- * Recursive deep style passing function
4546
- */
4547
-
4548
- function iterate(prop, value, options) {
4549
- if (value == null) return value;
4550
-
4551
- if (Array.isArray(value)) {
4552
- for (var i = 0; i < value.length; i++) {
4553
- value[i] = iterate(prop, value[i], options);
4554
- }
4555
- } else if (typeof value === 'object') {
4556
- if (prop === 'fallbacks') {
4557
- for (var innerProp in value) {
4558
- value[innerProp] = iterate(innerProp, value[innerProp], options);
4559
- }
4560
- } else {
4561
- for (var _innerProp in value) {
4562
- value[_innerProp] = iterate(prop + "-" + _innerProp, value[_innerProp], options);
4563
- }
4564
- } // eslint-disable-next-line no-restricted-globals
4565
-
4566
- } else if (typeof value === 'number' && isNaN(value) === false) {
4567
- var unit = options[prop] || units[prop]; // Add the unit if available, except for the special case of 0px.
4568
-
4569
- if (unit && !(value === 0 && unit === px)) {
4570
- return typeof unit === 'function' ? unit(value).toString() : "" + value + unit;
4571
- }
4572
-
4573
- return value.toString();
4574
- }
4575
-
4576
- return value;
4577
- }
4578
- /**
4579
- * Add unit to numeric values.
4580
- */
4581
-
4582
-
4583
- function defaultUnit(options) {
4584
- if (options === void 0) {
4585
- options = {};
4586
- }
4587
-
4588
- var camelCasedOptions = addCamelCasedVersion(options);
4589
-
4590
- function onProcessStyle(style, rule) {
4591
- if (rule.type !== 'style') return style;
4592
-
4593
- for (var prop in style) {
4594
- style[prop] = iterate(prop, style[prop], camelCasedOptions);
4595
- }
4596
-
4597
- return style;
4598
- }
4599
-
4600
- function onChangeValue(value, prop) {
4601
- return iterate(prop, value, camelCasedOptions);
4602
- }
4603
-
4604
- return {
4605
- onProcessStyle: onProcessStyle,
4606
- onChangeValue: onChangeValue
4607
- };
4608
- }
4609
-
4610
- /**
4611
- * A scheme for converting properties from array to regular style.
4612
- * All properties listed below will be transformed to a string separated by space.
4613
- */
4614
- var propArray = {
4615
- 'background-size': true,
4616
- 'background-position': true,
4617
- border: true,
4618
- 'border-bottom': true,
4619
- 'border-left': true,
4620
- 'border-top': true,
4621
- 'border-right': true,
4622
- 'border-radius': true,
4623
- 'border-image': true,
4624
- 'border-width': true,
4625
- 'border-style': true,
4626
- 'border-color': true,
4627
- 'box-shadow': true,
4628
- flex: true,
4629
- margin: true,
4630
- padding: true,
4631
- outline: true,
4632
- 'transform-origin': true,
4633
- transform: true,
4634
- transition: true
4635
- /**
4636
- * A scheme for converting arrays to regular styles inside of objects.
4637
- * For e.g.: "{position: [0, 0]}" => "background-position: 0 0;".
4638
- */
4639
-
4640
- };
4641
- var propArrayInObj = {
4642
- position: true,
4643
- // background-position
4644
- size: true // background-size
4645
-
4646
- /**
4647
- * A scheme for parsing and building correct styles from passed objects.
4648
- */
4649
-
4650
- };
4651
- var propObj = {
4652
- padding: {
4653
- top: 0,
4654
- right: 0,
4655
- bottom: 0,
4656
- left: 0
4657
- },
4658
- margin: {
4659
- top: 0,
4660
- right: 0,
4661
- bottom: 0,
4662
- left: 0
4663
- },
4664
- background: {
4665
- attachment: null,
4666
- color: null,
4667
- image: null,
4668
- position: null,
4669
- repeat: null
4670
- },
4671
- border: {
4672
- width: null,
4673
- style: null,
4674
- color: null
4675
- },
4676
- 'border-top': {
4677
- width: null,
4678
- style: null,
4679
- color: null
4680
- },
4681
- 'border-right': {
4682
- width: null,
4683
- style: null,
4684
- color: null
4685
- },
4686
- 'border-bottom': {
4687
- width: null,
4688
- style: null,
4689
- color: null
4690
- },
4691
- 'border-left': {
4692
- width: null,
4693
- style: null,
4694
- color: null
4695
- },
4696
- outline: {
4697
- width: null,
4698
- style: null,
4699
- color: null
4700
- },
4701
- 'list-style': {
4702
- type: null,
4703
- position: null,
4704
- image: null
4705
- },
4706
- transition: {
4707
- property: null,
4708
- duration: null,
4709
- 'timing-function': null,
4710
- timingFunction: null,
4711
- // Needed for avoiding comilation issues with jss-plugin-camel-case
4712
- delay: null
4713
- },
4714
- animation: {
4715
- name: null,
4716
- duration: null,
4717
- 'timing-function': null,
4718
- timingFunction: null,
4719
- // Needed to avoid compilation issues with jss-plugin-camel-case
4720
- delay: null,
4721
- 'iteration-count': null,
4722
- iterationCount: null,
4723
- // Needed to avoid compilation issues with jss-plugin-camel-case
4724
- direction: null,
4725
- 'fill-mode': null,
4726
- fillMode: null,
4727
- // Needed to avoid compilation issues with jss-plugin-camel-case
4728
- 'play-state': null,
4729
- playState: null // Needed to avoid compilation issues with jss-plugin-camel-case
4730
-
4731
- },
4732
- 'box-shadow': {
4733
- x: 0,
4734
- y: 0,
4735
- blur: 0,
4736
- spread: 0,
4737
- color: null,
4738
- inset: null
4739
- },
4740
- 'text-shadow': {
4741
- x: 0,
4742
- y: 0,
4743
- blur: null,
4744
- color: null
4745
- }
4746
- /**
4747
- * A scheme for converting non-standart properties inside object.
4748
- * For e.g.: include 'border-radius' property inside 'border' object.
4749
- */
4750
-
4751
- };
4752
- var customPropObj = {
4753
- border: {
4754
- radius: 'border-radius',
4755
- image: 'border-image',
4756
- width: 'border-width',
4757
- style: 'border-style',
4758
- color: 'border-color'
4759
- },
4760
- 'border-bottom': {
4761
- width: 'border-bottom-width',
4762
- style: 'border-bottom-style',
4763
- color: 'border-bottom-color'
4764
- },
4765
- 'border-top': {
4766
- width: 'border-top-width',
4767
- style: 'border-top-style',
4768
- color: 'border-top-color'
4769
- },
4770
- 'border-left': {
4771
- width: 'border-left-width',
4772
- style: 'border-left-style',
4773
- color: 'border-left-color'
4774
- },
4775
- 'border-right': {
4776
- width: 'border-right-width',
4777
- style: 'border-right-style',
4778
- color: 'border-right-color'
4779
- },
4780
- background: {
4781
- size: 'background-size',
4782
- image: 'background-image'
4783
- },
4784
- font: {
4785
- style: 'font-style',
4786
- variant: 'font-variant',
4787
- weight: 'font-weight',
4788
- stretch: 'font-stretch',
4789
- size: 'font-size',
4790
- family: 'font-family',
4791
- lineHeight: 'line-height',
4792
- // Needed to avoid compilation issues with jss-plugin-camel-case
4793
- 'line-height': 'line-height'
4794
- },
4795
- flex: {
4796
- grow: 'flex-grow',
4797
- basis: 'flex-basis',
4798
- direction: 'flex-direction',
4799
- wrap: 'flex-wrap',
4800
- flow: 'flex-flow',
4801
- shrink: 'flex-shrink'
4802
- },
4803
- align: {
4804
- self: 'align-self',
4805
- items: 'align-items',
4806
- content: 'align-content'
4807
- },
4808
- grid: {
4809
- 'template-columns': 'grid-template-columns',
4810
- templateColumns: 'grid-template-columns',
4811
- 'template-rows': 'grid-template-rows',
4812
- templateRows: 'grid-template-rows',
4813
- 'template-areas': 'grid-template-areas',
4814
- templateAreas: 'grid-template-areas',
4815
- template: 'grid-template',
4816
- 'auto-columns': 'grid-auto-columns',
4817
- autoColumns: 'grid-auto-columns',
4818
- 'auto-rows': 'grid-auto-rows',
4819
- autoRows: 'grid-auto-rows',
4820
- 'auto-flow': 'grid-auto-flow',
4821
- autoFlow: 'grid-auto-flow',
4822
- row: 'grid-row',
4823
- column: 'grid-column',
4824
- 'row-start': 'grid-row-start',
4825
- rowStart: 'grid-row-start',
4826
- 'row-end': 'grid-row-end',
4827
- rowEnd: 'grid-row-end',
4828
- 'column-start': 'grid-column-start',
4829
- columnStart: 'grid-column-start',
4830
- 'column-end': 'grid-column-end',
4831
- columnEnd: 'grid-column-end',
4832
- area: 'grid-area',
4833
- gap: 'grid-gap',
4834
- 'row-gap': 'grid-row-gap',
4835
- rowGap: 'grid-row-gap',
4836
- 'column-gap': 'grid-column-gap',
4837
- columnGap: 'grid-column-gap'
4838
- }
4839
- };
4840
-
4841
- /* eslint-disable no-use-before-define */
4842
- /**
4843
- * Map values by given prop.
4844
- *
4845
- * @param {Array} array of values
4846
- * @param {String} original property
4847
- * @param {String} original rule
4848
- * @return {String} mapped values
4849
- */
4850
-
4851
- function mapValuesByProp(value, prop, rule) {
4852
- return value.map(function (item) {
4853
- return objectToArray(item, prop, rule, false, true);
4854
- });
4855
- }
4856
- /**
4857
- * Convert array to nested array, if needed
4858
- */
4859
-
4860
-
4861
- function processArray(value, prop, scheme, rule) {
4862
- if (scheme[prop] == null) return value;
4863
- if (value.length === 0) return [];
4864
- if (Array.isArray(value[0])) return processArray(value[0], prop, scheme, rule);
4865
-
4866
- if (typeof value[0] === 'object') {
4867
- return mapValuesByProp(value, prop, rule);
4868
- }
4869
-
4870
- return [value];
4871
- }
4872
- /**
4873
- * Convert object to array.
4874
- */
4875
-
4876
-
4877
- function objectToArray(value, prop, rule, isFallback, isInArray) {
4878
- if (!(propObj[prop] || customPropObj[prop])) return [];
4879
- var result = []; // Check if exists any non-standard property
4880
-
4881
- if (customPropObj[prop]) {
4882
- // eslint-disable-next-line no-param-reassign
4883
- value = customPropsToStyle(value, rule, customPropObj[prop], isFallback);
4884
- } // Pass throught all standart props
4885
-
4886
-
4887
- if (Object.keys(value).length) {
4888
- for (var baseProp in propObj[prop]) {
4889
- if (value[baseProp]) {
4890
- if (Array.isArray(value[baseProp])) {
4891
- result.push(propArrayInObj[baseProp] === null ? value[baseProp] : value[baseProp].join(' '));
4892
- } else result.push(value[baseProp]);
4893
-
4894
- continue;
4895
- } // Add default value from props config.
4896
-
4897
-
4898
- if (propObj[prop][baseProp] != null) {
4899
- result.push(propObj[prop][baseProp]);
4900
- }
4901
- }
4902
- }
4903
-
4904
- if (!result.length || isInArray) return result;
4905
- return [result];
4906
- }
4907
- /**
4908
- * Convert custom properties values to styles adding them to rule directly
4909
- */
4910
-
4911
-
4912
- function customPropsToStyle(value, rule, customProps, isFallback) {
4913
- for (var prop in customProps) {
4914
- var propName = customProps[prop]; // If current property doesn't exist already in rule - add new one
4915
-
4916
- if (typeof value[prop] !== 'undefined' && (isFallback || !rule.prop(propName))) {
4917
- var _styleDetector;
4918
-
4919
- var appendedValue = styleDetector((_styleDetector = {}, _styleDetector[propName] = value[prop], _styleDetector), rule)[propName]; // Add style directly in rule
4920
-
4921
- if (isFallback) rule.style.fallbacks[propName] = appendedValue;else rule.style[propName] = appendedValue;
4922
- } // Delete converted property to avoid double converting
4923
-
4924
-
4925
- delete value[prop];
4926
- }
4927
-
4928
- return value;
4929
- }
4930
- /**
4931
- * Detect if a style needs to be converted.
4932
- */
4933
-
4934
-
4935
- function styleDetector(style, rule, isFallback) {
4936
- for (var prop in style) {
4937
- var value = style[prop];
4938
-
4939
- if (Array.isArray(value)) {
4940
- // Check double arrays to avoid recursion.
4941
- if (!Array.isArray(value[0])) {
4942
- if (prop === 'fallbacks') {
4943
- for (var index = 0; index < style.fallbacks.length; index++) {
4944
- style.fallbacks[index] = styleDetector(style.fallbacks[index], rule, true);
4945
- }
4946
-
4947
- continue;
4948
- }
4949
-
4950
- style[prop] = processArray(value, prop, propArray, rule); // Avoid creating properties with empty values
4951
-
4952
- if (!style[prop].length) delete style[prop];
4953
- }
4954
- } else if (typeof value === 'object') {
4955
- if (prop === 'fallbacks') {
4956
- style.fallbacks = styleDetector(style.fallbacks, rule, true);
4957
- continue;
4958
- }
4959
-
4960
- style[prop] = objectToArray(value, prop, rule, isFallback); // Avoid creating properties with empty values
4961
-
4962
- if (!style[prop].length) delete style[prop];
4963
- } // Maybe a computed value resulting in an empty string
4964
- else if (style[prop] === '') delete style[prop];
4965
- }
4966
-
4967
- return style;
4968
- }
4969
- /**
4970
- * Adds possibility to write expanded styles.
4971
- */
4972
-
4973
-
4974
- function jssExpand() {
4975
- function onProcessStyle(style, rule) {
4976
- if (!style || rule.type !== 'style') return style;
4977
-
4978
- if (Array.isArray(style)) {
4979
- // Pass rules one by one and reformat them
4980
- for (var index = 0; index < style.length; index++) {
4981
- style[index] = styleDetector(style[index], rule);
4982
- }
4983
-
4984
- return style;
4985
- }
4986
-
4987
- return styleDetector(style, rule);
4988
- }
4989
-
4990
- return {
4991
- onProcessStyle: onProcessStyle
4992
- };
4993
- }
4994
-
4995
- var cssVendor_cjs = {};
4996
-
4997
- var require$$0 = /*@__PURE__*/getAugmentedNamespace(module$1);
4998
-
4999
- var toConsumableArrayExports = {};
5000
- var toConsumableArray = {
5001
- get exports(){ return toConsumableArrayExports; },
5002
- set exports(v){ toConsumableArrayExports = v; },
5003
- };
5004
-
5005
- var arrayWithoutHolesExports = {};
5006
- var arrayWithoutHoles = {
5007
- get exports(){ return arrayWithoutHolesExports; },
5008
- set exports(v){ arrayWithoutHolesExports = v; },
5009
- };
5010
-
5011
- var arrayLikeToArrayExports = {};
5012
- var arrayLikeToArray = {
5013
- get exports(){ return arrayLikeToArrayExports; },
5014
- set exports(v){ arrayLikeToArrayExports = v; },
5015
- };
5016
-
5017
- (function (module) {
5018
- function _arrayLikeToArray(arr, len) {
5019
- if (len == null || len > arr.length) len = arr.length;
5020
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
5021
- return arr2;
5022
- }
5023
- module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
5024
- } (arrayLikeToArray));
5025
-
5026
- (function (module) {
5027
- var arrayLikeToArray = arrayLikeToArrayExports;
5028
- function _arrayWithoutHoles(arr) {
5029
- if (Array.isArray(arr)) return arrayLikeToArray(arr);
5030
- }
5031
- module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
5032
- } (arrayWithoutHoles));
5033
-
5034
- var iterableToArrayExports = {};
5035
- var iterableToArray = {
5036
- get exports(){ return iterableToArrayExports; },
5037
- set exports(v){ iterableToArrayExports = v; },
5038
- };
5039
-
5040
- (function (module) {
5041
- function _iterableToArray(iter) {
5042
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
5043
- }
5044
- module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
5045
- } (iterableToArray));
5046
-
5047
- var unsupportedIterableToArrayExports = {};
5048
- var unsupportedIterableToArray = {
5049
- get exports(){ return unsupportedIterableToArrayExports; },
5050
- set exports(v){ unsupportedIterableToArrayExports = v; },
5051
- };
5052
-
5053
- (function (module) {
5054
- var arrayLikeToArray = arrayLikeToArrayExports;
5055
- function _unsupportedIterableToArray(o, minLen) {
5056
- if (!o) return;
5057
- if (typeof o === "string") return arrayLikeToArray(o, minLen);
5058
- var n = Object.prototype.toString.call(o).slice(8, -1);
5059
- if (n === "Object" && o.constructor) n = o.constructor.name;
5060
- if (n === "Map" || n === "Set") return Array.from(o);
5061
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
5062
- }
5063
- module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
5064
- } (unsupportedIterableToArray));
5065
-
5066
- var nonIterableSpreadExports = {};
5067
- var nonIterableSpread = {
5068
- get exports(){ return nonIterableSpreadExports; },
5069
- set exports(v){ nonIterableSpreadExports = v; },
5070
- };
5071
-
5072
- (function (module) {
5073
- function _nonIterableSpread() {
5074
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
5075
- }
5076
- module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
5077
- } (nonIterableSpread));
5078
-
5079
- (function (module) {
5080
- var arrayWithoutHoles = arrayWithoutHolesExports;
5081
- var iterableToArray = iterableToArrayExports;
5082
- var unsupportedIterableToArray = unsupportedIterableToArrayExports;
5083
- var nonIterableSpread = nonIterableSpreadExports;
5084
- function _toConsumableArray(arr) {
5085
- return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
5086
- }
5087
- module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
5088
- } (toConsumableArray));
5089
-
5090
- Object.defineProperty(cssVendor_cjs, '__esModule', { value: true });
5091
-
5092
- function _interopDefault$1 (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
5093
-
5094
- var isInBrowser = _interopDefault$1(require$$0);
5095
- var _toConsumableArray = _interopDefault$1(toConsumableArrayExports);
5096
-
5097
- // Export javascript style and css style vendor prefixes.
5098
- var js = '';
5099
- var css = '';
5100
- var vendor = '';
5101
- var browser = '';
5102
- var isTouch = isInBrowser && 'ontouchstart' in document.documentElement; // We should not do anything if required serverside.
5103
-
5104
- if (isInBrowser) {
5105
- // Order matters. We need to check Webkit the last one because
5106
- // other vendors use to add Webkit prefixes to some properties
5107
- var jsCssMap = {
5108
- Moz: '-moz-',
5109
- ms: '-ms-',
5110
- O: '-o-',
5111
- Webkit: '-webkit-'
5112
- };
5113
-
5114
- var _document$createEleme = document.createElement('p'),
5115
- style = _document$createEleme.style;
5116
-
5117
- var testProp = 'Transform';
5118
-
5119
- for (var key in jsCssMap) {
5120
- if (key + testProp in style) {
5121
- js = key;
5122
- css = jsCssMap[key];
5123
- break;
5124
- }
5125
- } // Correctly detect the Edge browser.
5126
-
5127
-
5128
- if (js === 'Webkit' && 'msHyphens' in style) {
5129
- js = 'ms';
5130
- css = jsCssMap.ms;
5131
- browser = 'edge';
5132
- } // Correctly detect the Safari browser.
5133
-
5134
-
5135
- if (js === 'Webkit' && '-apple-trailing-word' in style) {
5136
- vendor = 'apple';
5137
- }
5138
- }
5139
- /**
5140
- * Vendor prefix string for the current browser.
5141
- *
5142
- * @type {{js: String, css: String, vendor: String, browser: String}}
5143
- * @api public
5144
- */
5145
-
5146
-
5147
- var prefix = {
5148
- js: js,
5149
- css: css,
5150
- vendor: vendor,
5151
- browser: browser,
5152
- isTouch: isTouch
5153
- };
5154
-
5155
- /**
5156
- * Test if a keyframe at-rule should be prefixed or not
5157
- *
5158
- * @param {String} vendor prefix string for the current browser.
5159
- * @return {String}
5160
- * @api public
5161
- */
5162
-
5163
- function supportedKeyframes(key) {
5164
- // Keyframes is already prefixed. e.g. key = '@-webkit-keyframes a'
5165
- if (key[1] === '-') return key; // No need to prefix IE/Edge. Older browsers will ignore unsupported rules.
5166
- // https://caniuse.com/#search=keyframes
5167
-
5168
- if (prefix.js === 'ms') return key;
5169
- return "@" + prefix.css + "keyframes" + key.substr(10);
5170
- }
5171
-
5172
- // https://caniuse.com/#search=appearance
5173
-
5174
- var appearence = {
5175
- noPrefill: ['appearance'],
5176
- supportedProperty: function supportedProperty(prop) {
5177
- if (prop !== 'appearance') return false;
5178
- if (prefix.js === 'ms') return "-webkit-" + prop;
5179
- return prefix.css + prop;
5180
- }
5181
- };
5182
-
5183
- // https://caniuse.com/#search=color-adjust
5184
-
5185
- var colorAdjust = {
5186
- noPrefill: ['color-adjust'],
5187
- supportedProperty: function supportedProperty(prop) {
5188
- if (prop !== 'color-adjust') return false;
5189
- if (prefix.js === 'Webkit') return prefix.css + "print-" + prop;
5190
- return prop;
5191
- }
5192
- };
5193
-
5194
- var regExp = /[-\s]+(.)?/g;
5195
- /**
5196
- * Replaces the letter with the capital letter
5197
- *
5198
- * @param {String} match
5199
- * @param {String} c
5200
- * @return {String}
5201
- * @api private
5202
- */
5203
-
5204
- function toUpper(match, c) {
5205
- return c ? c.toUpperCase() : '';
5206
- }
5207
- /**
5208
- * Convert dash separated strings to camel-cased.
5209
- *
5210
- * @param {String} str
5211
- * @return {String}
5212
- * @api private
5213
- */
5214
-
5215
-
5216
- function camelize(str) {
5217
- return str.replace(regExp, toUpper);
5218
- }
5219
-
5220
- /**
5221
- * Convert dash separated strings to pascal cased.
5222
- *
5223
- * @param {String} str
5224
- * @return {String}
5225
- * @api private
5226
- */
5227
-
5228
- function pascalize(str) {
5229
- return camelize("-" + str);
5230
- }
5231
-
5232
- // but we can use a longhand property instead.
5233
- // https://caniuse.com/#search=mask
5234
-
5235
- var mask = {
5236
- noPrefill: ['mask'],
5237
- supportedProperty: function supportedProperty(prop, style) {
5238
- if (!/^mask/.test(prop)) return false;
5239
-
5240
- if (prefix.js === 'Webkit') {
5241
- var longhand = 'mask-image';
5242
-
5243
- if (camelize(longhand) in style) {
5244
- return prop;
5245
- }
5246
-
5247
- if (prefix.js + pascalize(longhand) in style) {
5248
- return prefix.css + prop;
5249
- }
5250
- }
5251
-
5252
- return prop;
5253
- }
5254
- };
5255
-
5256
- // https://caniuse.com/#search=text-orientation
5257
-
5258
- var textOrientation = {
5259
- noPrefill: ['text-orientation'],
5260
- supportedProperty: function supportedProperty(prop) {
5261
- if (prop !== 'text-orientation') return false;
5262
-
5263
- if (prefix.vendor === 'apple' && !prefix.isTouch) {
5264
- return prefix.css + prop;
5265
- }
5266
-
5267
- return prop;
5268
- }
5269
- };
5270
-
5271
- // https://caniuse.com/#search=transform
5272
-
5273
- var transform = {
5274
- noPrefill: ['transform'],
5275
- supportedProperty: function supportedProperty(prop, style, options) {
5276
- if (prop !== 'transform') return false;
5277
-
5278
- if (options.transform) {
5279
- return prop;
5280
- }
5281
-
5282
- return prefix.css + prop;
5283
- }
5284
- };
5285
-
5286
- // https://caniuse.com/#search=transition
5287
-
5288
- var transition = {
5289
- noPrefill: ['transition'],
5290
- supportedProperty: function supportedProperty(prop, style, options) {
5291
- if (prop !== 'transition') return false;
5292
-
5293
- if (options.transition) {
5294
- return prop;
5295
- }
5296
-
5297
- return prefix.css + prop;
5298
- }
5299
- };
5300
-
5301
- // https://caniuse.com/#search=writing-mode
5302
-
5303
- var writingMode = {
5304
- noPrefill: ['writing-mode'],
5305
- supportedProperty: function supportedProperty(prop) {
5306
- if (prop !== 'writing-mode') return false;
5307
-
5308
- if (prefix.js === 'Webkit' || prefix.js === 'ms' && prefix.browser !== 'edge') {
5309
- return prefix.css + prop;
5310
- }
5311
-
5312
- return prop;
5313
- }
5314
- };
5315
-
5316
- // https://caniuse.com/#search=user-select
5317
-
5318
- var userSelect = {
5319
- noPrefill: ['user-select'],
5320
- supportedProperty: function supportedProperty(prop) {
5321
- if (prop !== 'user-select') return false;
5322
-
5323
- if (prefix.js === 'Moz' || prefix.js === 'ms' || prefix.vendor === 'apple') {
5324
- return prefix.css + prop;
5325
- }
5326
-
5327
- return prop;
5328
- }
5329
- };
5330
-
5331
- // https://caniuse.com/#search=multicolumn
5332
- // https://github.com/postcss/autoprefixer/issues/491
5333
- // https://github.com/postcss/autoprefixer/issues/177
5334
-
5335
- var breakPropsOld = {
5336
- supportedProperty: function supportedProperty(prop, style) {
5337
- if (!/^break-/.test(prop)) return false;
5338
-
5339
- if (prefix.js === 'Webkit') {
5340
- var jsProp = "WebkitColumn" + pascalize(prop);
5341
- return jsProp in style ? prefix.css + "column-" + prop : false;
5342
- }
5343
-
5344
- if (prefix.js === 'Moz') {
5345
- var _jsProp = "page" + pascalize(prop);
5346
-
5347
- return _jsProp in style ? "page-" + prop : false;
5348
- }
5349
-
5350
- return false;
5351
- }
5352
- };
5353
-
5354
- // See https://github.com/postcss/autoprefixer/issues/324.
5355
-
5356
- var inlineLogicalOld = {
5357
- supportedProperty: function supportedProperty(prop, style) {
5358
- if (!/^(border|margin|padding)-inline/.test(prop)) return false;
5359
- if (prefix.js === 'Moz') return prop;
5360
- var newProp = prop.replace('-inline', '');
5361
- return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;
5362
- }
5363
- };
5364
-
5365
- // Camelization is required because we can't test using.
5366
- // CSS syntax for e.g. in FF.
5367
-
5368
- var unprefixed = {
5369
- supportedProperty: function supportedProperty(prop, style) {
5370
- return camelize(prop) in style ? prop : false;
5371
- }
5372
- };
5373
-
5374
- var prefixed = {
5375
- supportedProperty: function supportedProperty(prop, style) {
5376
- var pascalized = pascalize(prop); // Return custom CSS variable without prefixing.
5377
-
5378
- if (prop[0] === '-') return prop; // Return already prefixed value without prefixing.
5379
-
5380
- if (prop[0] === '-' && prop[1] === '-') return prop;
5381
- if (prefix.js + pascalized in style) return prefix.css + prop; // Try webkit fallback.
5382
-
5383
- if (prefix.js !== 'Webkit' && "Webkit" + pascalized in style) return "-webkit-" + prop;
5384
- return false;
5385
- }
5386
- };
5387
-
5388
- // https://caniuse.com/#search=scroll-snap
5389
-
5390
- var scrollSnap = {
5391
- supportedProperty: function supportedProperty(prop) {
5392
- if (prop.substring(0, 11) !== 'scroll-snap') return false;
5393
-
5394
- if (prefix.js === 'ms') {
5395
- return "" + prefix.css + prop;
5396
- }
5397
-
5398
- return prop;
5399
- }
5400
- };
5401
-
5402
- // https://caniuse.com/#search=overscroll-behavior
5403
-
5404
- var overscrollBehavior = {
5405
- supportedProperty: function supportedProperty(prop) {
5406
- if (prop !== 'overscroll-behavior') return false;
5407
-
5408
- if (prefix.js === 'ms') {
5409
- return prefix.css + "scroll-chaining";
5410
- }
5411
-
5412
- return prop;
5413
- }
5414
- };
5415
-
5416
- var propMap = {
5417
- 'flex-grow': 'flex-positive',
5418
- 'flex-shrink': 'flex-negative',
5419
- 'flex-basis': 'flex-preferred-size',
5420
- 'justify-content': 'flex-pack',
5421
- order: 'flex-order',
5422
- 'align-items': 'flex-align',
5423
- 'align-content': 'flex-line-pack' // 'align-self' is handled by 'align-self' plugin.
5424
-
5425
- }; // Support old flex spec from 2012.
5426
-
5427
- var flex2012 = {
5428
- supportedProperty: function supportedProperty(prop, style) {
5429
- var newProp = propMap[prop];
5430
- if (!newProp) return false;
5431
- return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;
5432
- }
5433
- };
5434
-
5435
- var propMap$1 = {
5436
- flex: 'box-flex',
5437
- 'flex-grow': 'box-flex',
5438
- 'flex-direction': ['box-orient', 'box-direction'],
5439
- order: 'box-ordinal-group',
5440
- 'align-items': 'box-align',
5441
- 'flex-flow': ['box-orient', 'box-direction'],
5442
- 'justify-content': 'box-pack'
5443
- };
5444
- var propKeys = Object.keys(propMap$1);
5445
-
5446
- var prefixCss = function prefixCss(p) {
5447
- return prefix.css + p;
5448
- }; // Support old flex spec from 2009.
5449
-
5450
-
5451
- var flex2009 = {
5452
- supportedProperty: function supportedProperty(prop, style, _ref) {
5453
- var multiple = _ref.multiple;
5454
-
5455
- if (propKeys.indexOf(prop) > -1) {
5456
- var newProp = propMap$1[prop];
5457
-
5458
- if (!Array.isArray(newProp)) {
5459
- return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;
5460
- }
5461
-
5462
- if (!multiple) return false;
5463
-
5464
- for (var i = 0; i < newProp.length; i++) {
5465
- if (!(prefix.js + pascalize(newProp[0]) in style)) {
5466
- return false;
5467
- }
5468
- }
5469
-
5470
- return newProp.map(prefixCss);
5471
- }
5472
-
5473
- return false;
5474
- }
5475
- };
5476
-
5477
- // plugins = [
5478
- // ...plugins,
5479
- // breakPropsOld,
5480
- // inlineLogicalOld,
5481
- // unprefixed,
5482
- // prefixed,
5483
- // scrollSnap,
5484
- // flex2012,
5485
- // flex2009
5486
- // ]
5487
- // Plugins without 'noPrefill' value, going last.
5488
- // 'flex-*' plugins should be at the bottom.
5489
- // 'flex2009' going after 'flex2012'.
5490
- // 'prefixed' going after 'unprefixed'
5491
-
5492
- var plugins = [appearence, colorAdjust, mask, textOrientation, transform, transition, writingMode, userSelect, breakPropsOld, inlineLogicalOld, unprefixed, prefixed, scrollSnap, overscrollBehavior, flex2012, flex2009];
5493
- var propertyDetectors = plugins.filter(function (p) {
5494
- return p.supportedProperty;
5495
- }).map(function (p) {
5496
- return p.supportedProperty;
5497
- });
5498
- var noPrefill = plugins.filter(function (p) {
5499
- return p.noPrefill;
5500
- }).reduce(function (a, p) {
5501
- a.push.apply(a, _toConsumableArray(p.noPrefill));
5502
- return a;
5503
- }, []);
5504
-
5505
- var el;
5506
- var cache = {};
5507
-
5508
- if (isInBrowser) {
5509
- el = document.createElement('p'); // We test every property on vendor prefix requirement.
5510
- // Once tested, result is cached. It gives us up to 70% perf boost.
5511
- // http://jsperf.com/element-style-object-access-vs-plain-object
5512
- //
5513
- // Prefill cache with known css properties to reduce amount of
5514
- // properties we need to feature test at runtime.
5515
- // http://davidwalsh.name/vendor-prefix
5516
-
5517
- var computed = window.getComputedStyle(document.documentElement, '');
5518
-
5519
- for (var key$1 in computed) {
5520
- // eslint-disable-next-line no-restricted-globals
5521
- if (!isNaN(key$1)) cache[computed[key$1]] = computed[key$1];
5522
- } // Properties that cannot be correctly detected using the
5523
- // cache prefill method.
5524
-
5525
-
5526
- noPrefill.forEach(function (x) {
5527
- return delete cache[x];
5528
- });
5529
- }
5530
- /**
5531
- * Test if a property is supported, returns supported property with vendor
5532
- * prefix if required. Returns `false` if not supported.
5533
- *
5534
- * @param {String} prop dash separated
5535
- * @param {Object} [options]
5536
- * @return {String|Boolean}
5537
- * @api public
5538
- */
5539
-
5540
-
5541
- function supportedProperty(prop, options) {
5542
- if (options === void 0) {
5543
- options = {};
5544
- }
5545
-
5546
- // For server-side rendering.
5547
- if (!el) return prop; // Remove cache for benchmark tests or return property from the cache.
5548
-
5549
- if (process.env.NODE_ENV !== 'benchmark' && cache[prop] != null) {
5550
- return cache[prop];
5551
- } // Check if 'transition' or 'transform' natively supported in browser.
5552
-
5553
-
5554
- if (prop === 'transition' || prop === 'transform') {
5555
- options[prop] = prop in el.style;
5556
- } // Find a plugin for current prefix property.
5557
-
5558
-
5559
- for (var i = 0; i < propertyDetectors.length; i++) {
5560
- cache[prop] = propertyDetectors[i](prop, el.style, options); // Break loop, if value found.
5561
-
5562
- if (cache[prop]) break;
5563
- } // Reset styles for current property.
5564
- // Firefox can even throw an error for invalid properties, e.g., "0".
5565
-
5566
-
5567
- try {
5568
- el.style[prop] = '';
5569
- } catch (err) {
5570
- return false;
5571
- }
5572
-
5573
- return cache[prop];
5574
- }
5575
-
5576
- var cache$1 = {};
5577
- var transitionProperties = {
5578
- transition: 1,
5579
- 'transition-property': 1,
5580
- '-webkit-transition': 1,
5581
- '-webkit-transition-property': 1
5582
- };
5583
- var transPropsRegExp = /(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;
5584
- var el$1;
5585
- /**
5586
- * Returns prefixed value transition/transform if needed.
5587
- *
5588
- * @param {String} match
5589
- * @param {String} p1
5590
- * @param {String} p2
5591
- * @return {String}
5592
- * @api private
5593
- */
5594
-
5595
- function prefixTransitionCallback(match, p1, p2) {
5596
- if (p1 === 'var') return 'var';
5597
- if (p1 === 'all') return 'all';
5598
- if (p2 === 'all') return ', all';
5599
- var prefixedValue = p1 ? supportedProperty(p1) : ", " + supportedProperty(p2);
5600
- if (!prefixedValue) return p1 || p2;
5601
- return prefixedValue;
5602
- }
5603
-
5604
- if (isInBrowser) el$1 = document.createElement('p');
5605
- /**
5606
- * Returns prefixed value if needed. Returns `false` if value is not supported.
5607
- *
5608
- * @param {String} property
5609
- * @param {String} value
5610
- * @return {String|Boolean}
5611
- * @api public
5612
- */
5613
-
5614
- function supportedValue(property, value) {
5615
- // For server-side rendering.
5616
- var prefixedValue = value;
5617
- if (!el$1 || property === 'content') return value; // It is a string or a number as a string like '1'.
5618
- // We want only prefixable values here.
5619
- // eslint-disable-next-line no-restricted-globals
5620
-
5621
- if (typeof prefixedValue !== 'string' || !isNaN(parseInt(prefixedValue, 10))) {
5622
- return prefixedValue;
5623
- } // Create cache key for current value.
5624
-
5625
-
5626
- var cacheKey = property + prefixedValue; // Remove cache for benchmark tests or return value from cache.
5627
-
5628
- if (process.env.NODE_ENV !== 'benchmark' && cache$1[cacheKey] != null) {
5629
- return cache$1[cacheKey];
5630
- } // IE can even throw an error in some cases, for e.g. style.content = 'bar'.
5631
-
5632
-
5633
- try {
5634
- // Test value as it is.
5635
- el$1.style[property] = prefixedValue;
5636
- } catch (err) {
5637
- // Return false if value not supported.
5638
- cache$1[cacheKey] = false;
5639
- return false;
5640
- } // If 'transition' or 'transition-property' property.
5641
-
5642
-
5643
- if (transitionProperties[property]) {
5644
- prefixedValue = prefixedValue.replace(transPropsRegExp, prefixTransitionCallback);
5645
- } else if (el$1.style[property] === '') {
5646
- // Value with a vendor prefix.
5647
- prefixedValue = prefix.css + prefixedValue; // Hardcode test to convert "flex" to "-ms-flexbox" for IE10.
5648
-
5649
- if (prefixedValue === '-ms-flex') el$1.style[property] = '-ms-flexbox'; // Test prefixed value.
5650
-
5651
- el$1.style[property] = prefixedValue; // Return false if value not supported.
5652
-
5653
- if (el$1.style[property] === '') {
5654
- cache$1[cacheKey] = false;
5655
- return false;
5656
- }
5657
- } // Reset styles for current property.
5658
-
5659
-
5660
- el$1.style[property] = ''; // Write current value to cache.
5661
-
5662
- cache$1[cacheKey] = prefixedValue;
5663
- return cache$1[cacheKey];
5664
- }
5665
-
5666
- cssVendor_cjs.prefix = prefix;
5667
- var supportedKeyframes_1 = cssVendor_cjs.supportedKeyframes = supportedKeyframes;
5668
- var supportedProperty_1 = cssVendor_cjs.supportedProperty = supportedProperty;
5669
- var supportedValue_1 = cssVendor_cjs.supportedValue = supportedValue;
5670
-
5671
- /**
5672
- * Add vendor prefix to a property name when needed.
5673
- */
5674
-
5675
- function jssVendorPrefixer() {
5676
- function onProcessRule(rule) {
5677
- if (rule.type === 'keyframes') {
5678
- var atRule = rule;
5679
- atRule.at = supportedKeyframes_1(atRule.at);
5680
- }
5681
- }
5682
-
5683
- function prefixStyle(style) {
5684
- for (var prop in style) {
5685
- var value = style[prop];
5686
-
5687
- if (prop === 'fallbacks' && Array.isArray(value)) {
5688
- style[prop] = value.map(prefixStyle);
5689
- continue;
5690
- }
5691
-
5692
- var changeProp = false;
5693
- var supportedProp = supportedProperty_1(prop);
5694
- if (supportedProp && supportedProp !== prop) changeProp = true;
5695
- var changeValue = false;
5696
- var supportedValue$1 = supportedValue_1(supportedProp, toCssValue(value));
5697
- if (supportedValue$1 && supportedValue$1 !== value) changeValue = true;
5698
-
5699
- if (changeProp || changeValue) {
5700
- if (changeProp) delete style[prop];
5701
- style[supportedProp || prop] = supportedValue$1 || value;
5702
- }
5703
- }
5704
-
5705
- return style;
5706
- }
5707
-
5708
- function onProcessStyle(style, rule) {
5709
- if (rule.type !== 'style') return style;
5710
- return prefixStyle(style);
5711
- }
5712
-
5713
- function onChangeValue(value, prop) {
5714
- return supportedValue_1(prop, toCssValue(value)) || value;
5715
- }
5716
-
5717
- return {
5718
- onProcessRule: onProcessRule,
5719
- onProcessStyle: onProcessStyle,
5720
- onChangeValue: onChangeValue
5721
- };
5722
- }
5723
-
5724
- /**
5725
- * Sort props by length.
5726
- */
5727
- function jssPropsSort() {
5728
- var sort = function sort(prop0, prop1) {
5729
- if (prop0.length === prop1.length) {
5730
- return prop0 > prop1 ? 1 : -1;
5731
- }
5732
-
5733
- return prop0.length - prop1.length;
5734
- };
5735
-
5736
- return {
5737
- onProcessStyle: function onProcessStyle(style, rule) {
5738
- if (rule.type !== 'style') return style;
5739
- var newStyle = {};
5740
- var props = Object.keys(style).sort(sort);
5741
-
5742
- for (var i = 0; i < props.length; i++) {
5743
- newStyle[props[i]] = style[props[i]];
5744
- }
5745
-
5746
- return newStyle;
5747
- }
5748
- };
5749
- }
5750
-
5751
- var create = function create(options) {
5752
- if (options === void 0) {
5753
- options = {};
5754
- }
5755
-
5756
- return {
5757
- plugins: [functionPlugin(), observablePlugin(options.observable), templatePlugin(), jssGlobal(), jssExtend(), jssNested(), jssCompose(), camelCase(), defaultUnit(options.defaultUnit), jssExpand(), jssVendorPrefixer(), jssPropsSort()]
5758
- };
5759
- };
5760
-
5761
- index.setup({
5762
- ...create(),
5763
- createGenerateId: () => (rule) => rule.key,
5764
- plugins: [...create().plugins, dist({ combineMediaQueries: true })],
5765
- });
5766
-
5767
- const hasDocument = typeof document !== 'undefined';
5768
-
5769
- hasDocument && 'scrollBehavior' in document.documentElement.style;
5770
- const win = typeof window !== 'undefined' ? window : {};
5771
- win.document || { head: {} };
5772
- (win.HTMLElement || class {
5773
- });
5774
-
5775
- const isThemeDark = (theme) => {
5776
- return theme === 'dark';
5777
- };
5778
-
5779
- const formatObjectOutput = (value) => {
5780
- return JSON.stringify(value)
5781
- .replace(/"([a-zA-Z?]+)":/g, '$1:') // remove double quotes from keys
5782
- .replace(/([,:{])/g, '$1 ') // add space after following: ,:{
5783
- .replace(/(})/g, ' $1') // add space before following: }
5784
- .replace(/^"(.+)"$/, '$1'); // remove wrapping double quotes
5785
- };
5786
- 'value, ' +
5787
- formatObjectOutput(BREAKPOINTS.reduce((prev, key) => (Object.assign(Object.assign({}, prev), { [key + (key !== 'base' ? '?' : '')]: 'value' })), {})).replace(/"/g, '');
5788
-
5789
- const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
5790
-
5791
- const getComponentCss$S = (size, compact, open, theme) => {
5792
- const { primaryColor, hoverColor, focusColor, contrastLowColor } = getThemedColors(theme);
5793
- const border = `1px solid ${contrastLowColor}`;
5794
- return getCss(Object.assign(Object.assign({ '@global': {
5795
- ':host': addImportantToEachRule(Object.assign({ display: 'block' }, hostHiddenStyles)),
5796
- 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) => ({
5797
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
5798
- // @ts-ignore
5799
- fontSize: fontSizeText[s],
5800
- padding: compact ? '4px 0' : `${s === 'medium' ? '20px' : '12px'} 0`,
5801
- }))), mergeDeep({
5802
- '&::before': Object.assign({ content: '""', position: 'absolute', borderRadius: borderRadiusSmall, left: '-4px', right: '-4px' }, (compact
5803
- ? {
5804
- top: '2px',
5805
- bottom: '2px',
5806
- }
5807
- : {
5808
- top: '6px',
5809
- bottom: '6px',
5810
- })),
5811
- }, hoverMediaQuery({
5812
- '&::before': {
5813
- transition: getTransition('background-color'),
5814
- },
5815
- '&:hover::before': {
5816
- background: hoverColor,
5817
- },
5818
- }))), { '&:focus::before': {
5819
- border: `${borderWidthBase} solid ${focusColor}`,
5820
- }, '&:not(:focus-visible)::before': {
5821
- border: 0,
5822
- } }),
5823
- } }, (!compact && {
5824
- root: {
5825
- borderBottom: border,
5826
- },
5827
- })), { heading: {
5828
- margin: 0,
5829
- padding: 0,
5830
- }, icon: {
5831
- width: fontLineHeight,
5832
- height: fontLineHeight,
5833
- transformOrigin: '50% 50%',
5834
- transform: open ? 'rotate3d(0)' : 'rotate3d(0,0,1,90deg)',
5835
- transition: getTransition('transform'),
5836
- }, collapsible: Object.assign({ padding: 0, overflow: 'hidden' }, (open
5837
- ? {
5838
- height: 'auto',
5839
- paddingBottom: compact ? spacingStaticSmall : '24px',
5840
- visibility: 'visible',
5841
- transition: getTransition('height') + `,visibility ${transitionDuration}`,
5842
- animation: `$open ${transitionDuration} ease forwards`,
5843
- }
5844
- : {
5845
- height: 0,
5846
- visibility: 'hidden',
5847
- transition: getTransition('height') + `,visibility ${transitionDuration} linear ${transitionDuration}`,
5848
- })),
5849
- // TODO: this doesn't get shortened and results in `keyframes-open` for some unknown reason
5850
- '@keyframes open': {
5851
- '0%,99%': {
5852
- overflow: 'hidden',
5853
- },
5854
- '100%': {
5855
- overflow: 'visible',
5856
- },
5857
- } }));
5858
- };
5859
-
5860
- const TOAST_Z_INDEX = 999999;
5861
- const MODAL_Z_INDEX = 99999;
5862
- const POPOVER_Z_INDEX = 9999;
5863
- const BANNER_Z_INDEX = 99;
5864
-
5865
- const oneColumnWidthS = `calc((100% - ${gridSafeZoneBase} * 2 - ${gridGap} * 13) / 14)`;
5866
- const oneColumnWidthXXL = `calc((min(100%, ${gridWidthMax}) - ${gridSafeZoneXXL} * 2 - ${gridGap} * 13) / 14)`;
5867
- const offsetHorizontalXXL = `max(0px, (100% - ${gridWidthMax}) / 2)`;
5868
- const widthMap$1 = {
5869
- narrow: {
5870
- padding: `0 ${gridSafeZoneBase}`,
5871
- [getMediaQueryMin('s')]: {
5872
- padding: `0 calc(${gridSafeZoneBase} + ${gridGap} * 3 + ${oneColumnWidthS} * 3)`,
5873
- },
5874
- [getMediaQueryMin('xxl')]: {
5875
- padding: `0 calc(${offsetHorizontalXXL} + ${gridSafeZoneXXL} + ${gridGap} * 3 + ${oneColumnWidthXXL} * 3)`,
5876
- },
5877
- },
5878
- basic: {
5879
- padding: `0 ${gridSafeZoneBase}`,
5880
- [getMediaQueryMin('s')]: {
5881
- padding: `0 calc(${gridSafeZoneBase} + ${gridGap} + ${oneColumnWidthS})`,
5882
- },
5883
- [getMediaQueryMin('xxl')]: {
5884
- padding: `0 calc(${offsetHorizontalXXL} + ${gridSafeZoneXXL} + ${gridGap} + ${oneColumnWidthXXL})`,
5885
- },
5886
- },
5887
- extended: {
5888
- padding: `0 ${gridSafeZoneBase}`,
5889
- [getMediaQueryMin('xxl')]: {
5890
- padding: `0 calc(${offsetHorizontalXXL} + ${gridSafeZoneXXL})`,
5891
- },
5892
- },
5893
- };
5894
- const getContentWrapperStyle = (width) => {
5895
- return Object.assign({ display: 'block', margin: 0, padding: `0 ${offsetHorizontalXXL}`, width: 'auto', minWidth: 0, maxWidth: gridWidthMax }, widthMap$1[width]);
4041
+ const getContentWrapperStyle = (width) => {
4042
+ return Object.assign({ display: 'block', margin: 0, padding: `0 ${offsetHorizontalXXL}`, width: 'auto', minWidth: 0, maxWidth: gridWidthMax }, widthMap$1[width]);
5896
4043
  };
5897
4044
 
5898
4045
  const easeInQuad = 'cubic-bezier(0.45,0,0.55,1)';
@@ -5944,12 +4091,12 @@ const widthMap = {
5944
4091
  extended: 'extended',
5945
4092
  basic: 'basic',
5946
4093
  };
5947
- const getComponentCss$R = (width) => {
4094
+ const getComponentCss$S = (width) => {
5948
4095
  return getCss({
5949
4096
  '@global': {
5950
4097
  ':host': Object.assign(Object.assign({
5951
4098
  // TODO: Why is nothing set as important here?
5952
- [bannerPositionTopVar]: bannerOffset, [bannerPositionBottomVar]: bannerOffset, display: 'block', 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)), {
4099
+ [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)), {
5953
4100
  [mediaQueryBase]: {
5954
4101
  bottom: `var(${bannerPositionBottomVar})`,
5955
4102
  },
@@ -5977,42 +4124,25 @@ const getDirectionJssStyle = (direction) => {
5977
4124
  column: {
5978
4125
  flexFlow: 'column nowrap',
5979
4126
  alignItems: 'stretch',
5980
- marginRight: 0,
5981
- marginLeft: 0,
5982
4127
  },
5983
4128
  row: {
5984
4129
  flexFlow: 'row wrap',
5985
4130
  alignItems: 'center',
5986
- marginRight: `-${spacingStaticSmall}`,
5987
- marginLeft: `-${spacingStaticSmall}`,
5988
- },
5989
- };
5990
- return style[direction];
5991
- };
5992
- const getDirectionSlottedJssStyle = (direction) => {
5993
- const style = {
5994
- column: {
5995
- marginRight: 0,
5996
- marginLeft: 0,
5997
- },
5998
- row: {
5999
- marginRight: spacingStaticSmall,
6000
- marginLeft: spacingStaticSmall,
6001
4131
  },
6002
4132
  };
6003
4133
  return style[direction];
6004
4134
  };
6005
- const getComponentCss$Q = (direction) => {
4135
+ const getComponentCss$R = (direction) => {
6006
4136
  return getCss({
6007
4137
  '@global': {
6008
4138
  ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
6009
- div: Object.assign({ display: 'flex', marginTop: `-${spacingStaticMedium}` }, buildResponsiveStyles(direction, getDirectionJssStyle)),
6010
- '::slotted(*)': addImportantToEachRule(Object.assign({ marginTop: spacingStaticMedium }, buildResponsiveStyles(direction, getDirectionSlottedJssStyle))),
4139
+ div: Object.assign({ display: 'flex', gap: spacingFluidSmall }, buildResponsiveStyles(direction, getDirectionJssStyle)),
6011
4140
  },
6012
4141
  });
6013
4142
  };
6014
4143
 
6015
4144
  const fontSizeTextMap = {
4145
+ 'xx-small': fontSizeTextXXSmall,
6016
4146
  'x-small': fontSizeTextXSmall,
6017
4147
  small: fontSizeTextSmall,
6018
4148
  medium: fontSizeTextMedium,
@@ -6035,13 +4165,13 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
6035
4165
  const { primaryColor, disabledColor, hoverColor, focusColor } = getThemedColors(theme);
6036
4166
  const hasIcon = hasVisibleIcon(icon, iconSource);
6037
4167
  return Object.assign({ '@global': {
6038
- ':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' }))))),
4168
+ ':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' }))))),
6039
4169
  }, 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) => ({
6040
4170
  justifyContent: stretchValue ? 'space-between' : 'flex-start',
6041
4171
  alignItems: stretchValue ? 'center' : 'flex-start',
6042
4172
  })), buildResponsiveStyles(size, (sizeValue) => ({
6043
4173
  fontSize: getFontSizeText(sizeValue),
6044
- })))), { '&::before': Object.assign(Object.assign(Object.assign({ content: '""', position: 'fixed', top: offsetVertical, bottom: offsetVertical }, buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
4174
+ })))), { '&::before': Object.assign(Object.assign(Object.assign({ content: '""', position: 'absolute', top: offsetVertical, bottom: offsetVertical }, buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
6045
4175
  right: hideLabelValue ? offsetVertical : offsetHorizontal,
6046
4176
  left: hideLabelValue || hasIcon ? offsetVertical : offsetHorizontal,
6047
4177
  }))), { borderRadius: borderRadiusSmall, transition: getTransition('background-color') }), (active && Object.assign(Object.assign({}, frostedGlassStyle), { backgroundColor: hoverColor }))) }), (!isDisabledOrLoading &&
@@ -6069,7 +4199,7 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
6069
4199
  }));
6070
4200
  };
6071
4201
 
6072
- const getComponentCss$P = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, theme) => {
4202
+ const getComponentCss$Q = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, theme) => {
6073
4203
  const hasIcon = hasVisibleIcon(icon, iconSource);
6074
4204
  return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, false, theme), Object.assign({ root: {
6075
4205
  appearance: 'none',
@@ -6120,7 +4250,7 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
6120
4250
  const { focusColor } = getThemedColors(theme);
6121
4251
  const hasIcon = hasVisibleIcon(icon, iconSource) || hideLabel;
6122
4252
  return Object.assign({ '@global': {
6123
- ':host': addImportantToEachRule(Object.assign({ display: 'inline-block', verticalAlign: 'top', outline: 0 }, hostHiddenStyles)),
4253
+ ':host': Object.assign({ display: 'inline-block' }, addImportantToEachRule(Object.assign({ verticalAlign: 'top', outline: 0 }, hostHiddenStyles))),
6124
4254
  }, 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)
6125
4255
  backgroundColor, color: textColor }, textSmallStyle), { transition: ['background-color', 'border-color', 'color'].map(getTransition).join() }), buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
6126
4256
  padding: hideLabelValue ? '13px' : hasIcon ? '13px 26px 13px 18px' : '13px 26px',
@@ -6167,7 +4297,7 @@ const getDisabledColors = (variant, loading, theme) => {
6167
4297
  };
6168
4298
  return colors[variant === 'tertiary' ? 'secondary' : variant];
6169
4299
  };
6170
- const getComponentCss$O = (icon, iconSource, variant, hideLabel, disabled, loading, theme) => {
4300
+ const getComponentCss$P = (icon, iconSource, variant, hideLabel, disabled, loading, theme) => {
6171
4301
  const disabledOrLoading = isDisabledOrLoading(disabled, loading);
6172
4302
  const { textColor, borderColor, backgroundColor } = getDisabledColors(variant, loading, theme);
6173
4303
  const isPrimary = variant === 'primary';
@@ -6192,28 +4322,76 @@ const getComponentCss$O = (icon, iconSource, variant, hideLabel, disabled, loadi
6192
4322
  })) })));
6193
4323
  };
6194
4324
 
4325
+ const carouselTransitionDuration = 400;
6195
4326
  const bulletActiveClass = 'bullet--active';
4327
+ const selectorHeading = 'h2,::slotted([slot=heading])';
4328
+ const selectorDescription = 'p,::slotted([slot=description])';
6196
4329
  const mediaQueryS = getMediaQueryMin('s');
6197
- const mediaQueryXl$1 = getMediaQueryMin('xl');
6198
- const getComponentCss$N = (wrapContent, disablePagination, theme) => {
6199
- const { primaryColor, disabledColor } = getThemedColors(theme);
4330
+ const mediaQueryXXL = getMediaQueryMin('xxl');
4331
+ // we need an explicit grid template, therefor we need to calculate the button group width
4332
+ const buttonSize$1 = `calc(${spacingStaticSmall} * 2 + ${fontLineHeight})`;
4333
+ // + 2px, compensates hover offset of button-pure
4334
+ const buttonGroupWidth = `calc(${buttonSize$1} * 2 + ${spacingStaticXSmall} + 2px)`;
4335
+ // we don't need to abstract spacing definitions since component content-wrapper is deprecated and will be removed soon
4336
+ const gridColumn1FrS = `calc((100% - ${gridSafeZoneBase} * 2 - ${gridGap} * 13) / 14)`;
4337
+ const gridColumn1FrXXL = `calc((min(100%, ${gridWidthMax}) - ${gridSafeZoneXXL} * 2 - ${gridGap} * 13) / 14)`;
4338
+ const spacingMap = {
4339
+ basic: {
4340
+ padding: `0 ${gridSafeZoneBase}`,
4341
+ [mediaQueryS]: {
4342
+ padding: `0 calc(${gridSafeZoneBase} + ${gridGap} + ${gridColumn1FrS})`,
4343
+ },
4344
+ [mediaQueryXXL]: {
4345
+ padding: `0 calc(${gridSafeZoneXXL} + ${gridGap} + ${gridColumn1FrXXL})`,
4346
+ },
4347
+ },
4348
+ extended: {
4349
+ padding: `0 ${gridSafeZoneBase}`,
4350
+ [mediaQueryXXL]: {
4351
+ padding: `0 ${gridSafeZoneXXL}`,
4352
+ },
4353
+ },
4354
+ };
4355
+ const getComponentCss$O = (width, hasPagination, alignHeader, theme) => {
4356
+ const { primaryColor, contrastMediumColor } = getThemedColors(theme);
4357
+ const isHeaderAlignCenter = alignHeader === 'center';
6200
4358
  return getCss(Object.assign({ '@global': {
6201
- ':host': addImportantToEachRule(Object.assign({ display: 'grid', maxWidth: gridWidthMax, marginLeft: 'auto', marginRight: 'auto', gap: pxToRemWithUnit(24), gridAutoFlow: 'row', [mediaQueryXl$1]: {
6202
- gap: pxToRemWithUnit(32),
6203
- } }, hostHiddenStyles)),
6204
- 'h2,::slotted([slot=heading])': addImportantToEachRule(Object.assign(Object.assign({}, headingMediumStyle), { margin: 0, color: primaryColor, maxWidth: pxToRemWithUnit(900) })),
6205
- 'p,::slotted([slot=description])': addImportantToEachRule(Object.assign(Object.assign({}, textSmallStyle), { margin: 0, color: primaryColor, maxWidth: pxToRemWithUnit(550), gridColumn: 1 })),
4359
+ ':host': addImportantToEachRule(Object.assign({ display: 'flex', gap: spacingFluidMedium, flexDirection: 'column', maxWidth: gridWidthMax,
4360
+ // relevant for viewport width > 2560px
4361
+ paddingLeft: `calc(50% - ${gridWidthMax} / 2)`, paddingRight: `calc(50% - ${gridWidthMax} / 2)`, boxSizing: 'content-box' }, hostHiddenStyles)),
4362
+ [selectorHeading]: addImportantToEachRule(Object.assign(Object.assign({}, headingXLargeStyle), { maxWidth: '56.25rem', margin: 0 })),
4363
+ [selectorDescription]: addImportantToEachRule(Object.assign(Object.assign({}, textSmallStyle), { maxWidth: '34.375rem', margin: `${spacingFluidXSmall} 0 0` })),
4364
+ [`${selectorHeading},${selectorDescription}`]: addImportantToEachRule({
4365
+ color: primaryColor,
4366
+ [mediaQueryS]: isHeaderAlignCenter
4367
+ ? {
4368
+ gridColumn: 2,
4369
+ textAlign: 'center', // relevant when text becomes multiline
4370
+ }
4371
+ : {
4372
+ gridColumn: '1 / 3',
4373
+ },
4374
+ }),
4375
+ }, header: Object.assign({ display: 'grid' }, mergeDeep(spacingMap[width], {
4376
+ [mediaQueryS]: Object.assign({ fontFamily, fontSize: fontSizeTextSmall, columnGap: spacingStaticMedium, gridTemplateColumns: `${buttonGroupWidth} minmax(0px, 1fr) ${buttonGroupWidth}` }, (isHeaderAlignCenter && {
4377
+ justifyItems: 'center', // relevant when max-width of heading or description is reached
4378
+ })),
4379
+ })), nav: {
4380
+ display: 'none',
4381
+ [mediaQueryS]: {
4382
+ display: 'flex',
4383
+ gap: spacingStaticXSmall,
4384
+ gridArea: '1 / 3 / 3 / auto',
4385
+ alignItems: 'end',
4386
+ },
4387
+ }, btn: {
4388
+ padding: spacingStaticSmall,
6206
4389
  }, splide: {
6207
4390
  overflow: 'hidden',
6208
4391
  // visibility: 'hidden',
6209
- '&__track': Object.assign(Object.assign({ cursor: 'grab' }, (wrapContent &&
6210
- addImportantToEachRule({
6211
- // TODO: 0 calc(${gridSafeZoneBase} + ${gridGap})
6212
- padding: `0 calc(${gridSafeZoneBase} + 7%) 0 ${gridSafeZoneBase}`,
6213
- [mediaQueryXl$1]: {
6214
- padding: `0 calc(${gridSafeZoneBase} + 7%) 0 ${gridSafeZoneBase}`,
6215
- },
6216
- }))), { '&--draggable': {
4392
+ '&__track': Object.assign(Object.assign({ cursor: 'grab' }, addImportantToEachRule(Object.assign(Object.assign({}, spacingMap[width]), { [getMediaQueryMax('xs')]: {
4393
+ paddingRight: `calc(${gridSafeZoneBase} + ${gridGap})`, // we need to give cut off slides a bit more space on mobile views
4394
+ } }))), { '&--draggable': {
6217
4395
  userSelect: 'none',
6218
4396
  WebkitUserSelect: 'none',
6219
4397
  WebkitTouchCallout: 'none',
@@ -6221,42 +4399,21 @@ const getComponentCss$N = (wrapContent, disablePagination, theme) => {
6221
4399
  '&__list': Object.assign({ display: 'flex', height: '100%' }, getBackfaceVisibilityJssStyle()),
6222
4400
  '&__slide': Object.assign(Object.assign({ position: 'relative', flexShrink: 0 }, getBackfaceVisibilityJssStyle()), { transform: 'translateZ(0)' }),
6223
4401
  '&__sr': getScreenReaderOnlyJssStyle(), // appears in the DOM when sliding
6224
- },
6225
- // .splide.is-initialized,
6226
- // .splide.is-rendered {
6227
- // visibility: visible,
6228
- // }
6229
- // .splide.is-initialized:not(.is-active) .splide__list {
6230
- // display: block,
6231
- // }
6232
- header: {
6233
- display: 'grid',
6234
- gap: gridGap,
6235
- padding: wrapContent ? `0 ${gridSafeZoneBase}` : null,
6236
- [mediaQueryS]: {
6237
- gridTemplateColumns: `minmax(0px, 1fr) ${pxToRemWithUnit(80)}`,
6238
- position: 'relative',
6239
- minHeight: pxToRemWithUnit(40), // actual height of prev/next buttons
6240
- },
6241
- }, nav: {
6242
- display: 'none',
6243
- [mediaQueryS]: {
6244
- display: 'grid',
6245
- gridAutoFlow: 'column',
6246
- position: 'absolute',
6247
- right: wrapContent ? gridSafeZoneBase : 0,
6248
- bottom: 0,
6249
- },
6250
- }, btn: {
6251
- padding: pxToRemWithUnit(8),
6252
- } }, (disablePagination !== true && {
6253
- pagination: Object.assign(Object.assign({}, buildResponsiveStyles(disablePagination, (value) => ({ display: value ? 'none' : 'grid' }))), { gridAutoColumns: pxToRemWithUnit(8), gridAutoFlow: 'column', justifyContent: 'center', gap: pxToRemWithUnit(8), height: pxToRemWithUnit(8) }),
4402
+ } }, (hasPagination && {
4403
+ pagination: Object.assign(Object.assign({}, buildResponsiveStyles(hasPagination, (hasPaginationValue) => ({
4404
+ display: hasPaginationValue ? 'flex' : 'none',
4405
+ }))), { justifyContent: 'center', gap: spacingStaticSmall }),
6254
4406
  bullet: {
6255
- borderRadius: pxToRemWithUnit(4),
6256
- background: disabledColor,
4407
+ borderRadius: borderRadiusSmall,
4408
+ background: contrastMediumColor,
4409
+ // set transition to have the same speed as switching slides in splide
4410
+ transition: `background-color ${carouselTransitionDuration}ms, width ${carouselTransitionDuration}ms`,
4411
+ width: '8px',
4412
+ height: '8px',
6257
4413
  },
6258
4414
  [bulletActiveClass]: {
6259
4415
  background: primaryColor,
4416
+ width: '20px',
6260
4417
  },
6261
4418
  })));
6262
4419
  };
@@ -6337,7 +4494,7 @@ const getInlineSVGBackgroundImage = (path) => {
6337
4494
  return `url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">${path}</svg>')`;
6338
4495
  };
6339
4496
 
6340
- const getComponentCss$M = (hideLabel, state, isDisabled, theme) => {
4497
+ const getComponentCss$N = (hideLabel, state, isDisabled, theme) => {
6341
4498
  const checkedIconColor = getThemedColors(theme === 'light' ? 'dark' : 'light').primaryColor.replace(/#/g, '%23');
6342
4499
  const indeterminateIconColor = getThemedColors(theme).primaryColor.replace(/#/g, '%23');
6343
4500
  return getCss(mergeDeep(getCheckboxRadioJssStyle(hideLabel, state, isDisabled, theme), {
@@ -6357,7 +4514,7 @@ const getComponentCss$M = (hideLabel, state, isDisabled, theme) => {
6357
4514
  }));
6358
4515
  };
6359
4516
 
6360
- const getComponentCss$L = (width) => {
4517
+ const getComponentCss$M = (width) => {
6361
4518
  return getCss({
6362
4519
  '@global': {
6363
4520
  ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
@@ -6372,19 +4529,14 @@ const getThemedTypographyColor = (theme, textColor) => {
6372
4529
  const { primaryColor, contrastHighColor, contrastMediumColor, contrastLowColor, successColor, errorColor, warningColor, infoColor, } = getThemedColors(theme);
6373
4530
  const colorMap = {
6374
4531
  primary: primaryColor,
6375
- brand: primaryColor,
6376
4532
  default: primaryColor,
6377
4533
  'contrast-low': contrastLowColor,
6378
- 'neutral-contrast-low': contrastLowColor,
6379
4534
  'contrast-medium': contrastMediumColor,
6380
- 'neutral-contrast-medium': contrastMediumColor,
6381
4535
  'contrast-high': contrastHighColor,
6382
- 'neutral-contrast-high': contrastHighColor,
6383
4536
  'notification-success': successColor,
6384
4537
  'notification-warning': warningColor,
6385
4538
  'notification-error': errorColor,
6386
4539
  'notification-info': infoColor,
6387
- 'notification-neutral': infoColor,
6388
4540
  inherit: 'currentColor',
6389
4541
  };
6390
4542
  return colorMap[textColor];
@@ -6419,10 +4571,11 @@ const getTypographySlottedJssStyle = () => {
6419
4571
  };
6420
4572
 
6421
4573
  const sizeMap$5 = {
4574
+ small: fontSizeDisplaySmall,
6422
4575
  medium: fontSizeDisplayMedium,
6423
4576
  large: fontSizeDisplayLarge,
6424
4577
  };
6425
- const getComponentCss$K = (size, align, color, ellipsis, theme) => {
4578
+ const getComponentCss$L = (size, align, color, ellipsis, theme) => {
6426
4579
  return getCss({
6427
4580
  '@global': {
6428
4581
  ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
@@ -6436,12 +4589,12 @@ const getComponentCss$K = (size, align, color, ellipsis, theme) => {
6436
4589
  });
6437
4590
  };
6438
4591
 
6439
- const getComponentCss$J = (color, orientation, theme) => {
4592
+ const getComponentCss$K = (color, orientation, theme) => {
6440
4593
  const { contrastLowColor, contrastMediumColor, contrastHighColor } = getThemedColors(theme);
6441
4594
  const colorMap = {
6442
- 'neutral-contrast-low': contrastLowColor,
6443
- 'neutral-contrast-medium': contrastMediumColor,
6444
- 'neutral-contrast-high': contrastHighColor,
4595
+ 'contrast-low': contrastLowColor,
4596
+ 'contrast-medium': contrastMediumColor,
4597
+ 'contrast-high': contrastHighColor,
6445
4598
  };
6446
4599
  return getCss({
6447
4600
  '@global': {
@@ -6451,7 +4604,7 @@ const getComponentCss$J = (color, orientation, theme) => {
6451
4604
  });
6452
4605
  };
6453
4606
 
6454
- const getComponentCss$I = (state, labelSize, hasLabel, theme) => {
4607
+ const getComponentCss$J = (state, labelSize, hasLabel, theme) => {
6455
4608
  return getCss(Object.assign(Object.assign({ '@global': Object.assign({ ':host': addImportantToEachRule(Object.assign({ display: 'block' }, hostHiddenStyles)), fieldset: {
6456
4609
  margin: 0,
6457
4610
  padding: 0,
@@ -6475,7 +4628,7 @@ const flexItemWidths = {
6475
4628
  full: 100,
6476
4629
  auto: 'auto',
6477
4630
  };
6478
- const getComponentCss$H = (width, offset, alignSelf, grow, shrink, flex) => {
4631
+ const getComponentCss$I = (width, offset, alignSelf, grow, shrink, flex) => {
6479
4632
  return getCss({
6480
4633
  '@global': {
6481
4634
  ':host': addImportantToEachRule(Object.assign(Object.assign({ boxSizing: 'border-box' }, hostHiddenStyles), mergeDeep(buildResponsiveStyles(width, (widthResponsive) => ({
@@ -6493,7 +4646,7 @@ const getComponentCss$H = (width, offset, alignSelf, grow, shrink, flex) => {
6493
4646
  });
6494
4647
  };
6495
4648
 
6496
- const getComponentCss$G = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
4649
+ const getComponentCss$H = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
6497
4650
  return getCss({
6498
4651
  '@global': {
6499
4652
  ':host': addImportantToEachRule(mergeDeep(hostHiddenStyles, buildResponsiveStyles(inline, (inlineResponsive) => ({
@@ -6515,7 +4668,7 @@ const gutter$1 = `calc(${gridGap} / 2)`;
6515
4668
  const gridItemWidths = [
6516
4669
  0, 8.333333, 16.666667, 25, 33.333333, 41.666667, 50, 58.333333, 66.666667, 75, 83.333333, 91.666667, 100,
6517
4670
  ];
6518
- const getComponentCss$F = (size, offset) => {
4671
+ const getComponentCss$G = (size, offset) => {
6519
4672
  return getCss({
6520
4673
  '@global': {
6521
4674
  ':host': addImportantToEachRule(Object.assign(Object.assign({ paddingLeft: gutter$1, paddingRight: gutter$1, boxSizing: 'border-box' }, hostHiddenStyles), mergeDeep(buildResponsiveStyles(size, (sizeResponsive) => ({
@@ -6529,7 +4682,7 @@ const getComponentCss$F = (size, offset) => {
6529
4682
  };
6530
4683
 
6531
4684
  const gutter = `calc(${gridGap} / -2)`;
6532
- const getComponentCss$E = (direction, wrap) => {
4685
+ const getComponentCss$F = (direction, wrap) => {
6533
4686
  return getCss({
6534
4687
  '@global': {
6535
4688
  ':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 }))))),
@@ -6543,9 +4696,8 @@ const sizeMap$4 = {
6543
4696
  large: fontSizeHeadingLarge,
6544
4697
  'x-large': fontSizeHeadingXLarge,
6545
4698
  'xx-large': fontSizeHeadingXXLarge,
6546
- 'xxx-large': fontSizeHeadingXXXLarge,
6547
4699
  };
6548
- const getComponentCss$D = (size, align, color, ellipsis, theme) => {
4700
+ const getComponentCss$E = (size, align, color, ellipsis, theme) => {
6549
4701
  return getCss({
6550
4702
  '@global': {
6551
4703
  ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
@@ -6587,6 +4739,7 @@ const getHeadlineVariantJssStyle = (variant) => {
6587
4739
  }));
6588
4740
  };
6589
4741
  const textSizeMap = {
4742
+ 'xx-small': fontSizeTextXXSmall,
6590
4743
  'x-small': fontSizeTextXSmall,
6591
4744
  small: fontSizeTextSmall,
6592
4745
  medium: fontSizeTextMedium,
@@ -6598,7 +4751,7 @@ const getTextSizeJssStyle = (textSize) => {
6598
4751
  fontSize: textSize === 'inherit' ? textSize : textSizeMap[textSize],
6599
4752
  };
6600
4753
  };
6601
- const getComponentCss$C = (variant, align, color, ellipsis, theme) => {
4754
+ const getComponentCss$D = (variant, align, color, ellipsis, theme) => {
6602
4755
  return getCss({
6603
4756
  '@global': {
6604
4757
  ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
@@ -6612,64 +4765,57 @@ const getComponentCss$C = (variant, align, color, ellipsis, theme) => {
6612
4765
  });
6613
4766
  };
6614
4767
 
4768
+ const toFilter = (values) => `invert(${values[0]}%) sepia(${values[1]}%) saturate(${values[2]}%) hue-rotate(${values[3]}deg) brightness(${values[4]}%) contrast(${values[5]}%)`;
4769
+
4770
+ const filterLightContrastLow = toFilter([93, 11, 36, 201, 89, 102]);
4771
+ const filterLightContrastMedium = toFilter([65, 6, 119, 187, 90, 92]);
4772
+ const filterLightContrastHigh = toFilter([40, 2, 686, 187, 80, 94]);
4773
+ const filterDarkContrastLow = toFilter([20, 7, 421, 202, 97, 82]);
4774
+ const filterDarkContrastMedium = toFilter([54, 4, 229, 187, 91, 84]);
4775
+ const filterDarkContrastHigh = toFilter([68, 6, 108, 187, 104, 88]);
4776
+
4777
+ const filterLightNotificationSuccess = toFilter([62, 61, 551, 86, 86, 80]);
4778
+ const filterLightNotificationWarning = toFilter([74, 91, 343, 348, 92, 86]);
4779
+ const filterLightNotificationError = toFilter([25, 62, 2003, 335, 100, 97]);
4780
+ const filterLightNotificationInfo = toFilter([31, 32, 5493, 216, 90, 107]);
4781
+ const filterDarkNotificationSuccess = toFilter([59, 22, 1342, 86, 96, 88]);
4782
+ const filterDarkNotificationWarning = toFilter([72, 94, 303, 354, 89, 94]);
4783
+ const filterDarkNotificationError = toFilter([28, 34, 3133, 333, 95, 100]);
4784
+ const filterDarkNotificationInfo = toFilter([31, 32, 5493, 216, 90, 107]);
4785
+
4786
+ const filterLightPrimary = toFilter([3, 7, 2930, 188, 91, 103]);
4787
+ const filterDarkPrimary = toFilter([97, 55, 2840, 180, 114, 103]);
4788
+
6615
4789
  const sizeMap$3 = {
4790
+ 'xx-small': fontSizeTextXXSmall,
6616
4791
  'x-small': fontSizeTextXSmall,
6617
4792
  small: fontSizeTextSmall,
6618
4793
  medium: fontSizeTextMedium,
6619
4794
  large: fontSizeTextLarge,
6620
4795
  'x-large': fontSizeTextXLarge,
6621
4796
  };
6622
- // TODO, use Tuple to reduce chunk size
6623
- const filterLightPrimary = 'invert(3%) sepia(7%) saturate(2930%) hue-rotate(188deg) brightness(91%) contrast(103%)';
6624
- const filterLightContrastLow = 'invert(93%) sepia(11%) saturate(36%) hue-rotate(201deg) brightness(89%) contrast(102%)';
6625
- const filterLightContrastMedium = 'invert(65%) sepia(6%) saturate(119%) hue-rotate(187deg) brightness(90%) contrast(92%)';
6626
- const filterLightContrastHigh = 'invert(40%) sepia(2%) saturate(686%) hue-rotate(187deg) brightness(80%) contrast(94%)';
6627
- const filterLightNotificationSuccess = 'invert(62%) sepia(61%) saturate(551%) hue-rotate(86deg) brightness(86%) contrast(80%)';
6628
- const filterLightNotificationWarning = 'invert(74%) sepia(91%) saturate(343%) hue-rotate(348deg) brightness(92%) contrast(86%)';
6629
- const filterLightNotificationError = 'invert(25%) sepia(62%) saturate(2003%) hue-rotate(335deg) brightness(100%) contrast(97%)';
6630
- const filterLightNotificationInfo = 'invert(31%) sepia(32%) saturate(5493%) hue-rotate(216deg) brightness(90%) contrast(107%)';
6631
- const filterDarkPrimary = 'invert(97%) sepia(55%) saturate(2840%) hue-rotate(180deg) brightness(114%) contrast(103%)';
6632
- const filterDarkContrastLow = 'invert(20%) sepia(7%) saturate(421%) hue-rotate(202deg) brightness(97%) contrast(82%)';
6633
- const filterDarkContrastMedium = 'invert(54%) sepia(4%) saturate(229%) hue-rotate(187deg) brightness(91%) contrast(84%)';
6634
- const filterDarkContrastHigh = 'invert(68%) sepia(6%) saturate(108%) hue-rotate(187deg) brightness(104%) contrast(88%)';
6635
- const filterDarkNotificationSuccess = 'invert(59%) sepia(22%) saturate(1342%) hue-rotate(86deg) brightness(96%) contrast(88%)';
6636
- const filterDarkNotificationWarning = 'invert(72%) sepia(94%) saturate(303%) hue-rotate(354deg) brightness(89%) contrast(94%)';
6637
- const filterDarkNotificationError = 'invert(28%) sepia(34%) saturate(3133%) hue-rotate(333deg) brightness(95%) contrast(100%)';
6638
- const filterDarkNotificationInfo = 'invert(31%) sepia(32%) saturate(5493%) hue-rotate(216deg) brightness(90%) contrast(107%)';
6639
4797
  const filter = {
6640
4798
  light: {
6641
4799
  primary: filterLightPrimary,
6642
- brand: filterLightPrimary,
6643
- default: filterLightPrimary,
6644
- disabled: filterLightContrastMedium,
4800
+ 'state-disabled': filterLightContrastMedium,
6645
4801
  'contrast-low': filterLightContrastLow,
6646
- 'neutral-contrast-low': filterLightContrastLow,
6647
4802
  'contrast-medium': filterLightContrastMedium,
6648
- 'neutral-contrast-medium': filterLightContrastMedium,
6649
4803
  'contrast-high': filterLightContrastHigh,
6650
- 'neutral-contrast-high': filterLightContrastHigh,
6651
4804
  'notification-success': filterLightNotificationSuccess,
6652
4805
  'notification-warning': filterLightNotificationWarning,
6653
4806
  'notification-error': filterLightNotificationError,
6654
4807
  'notification-info': filterLightNotificationInfo,
6655
- 'notification-neutral': filterLightNotificationInfo, // deprecated
6656
4808
  },
6657
4809
  dark: {
6658
4810
  primary: filterDarkPrimary,
6659
- brand: filterDarkPrimary,
6660
- default: filterDarkPrimary,
6661
- disabled: filterDarkContrastMedium,
4811
+ 'state-disabled': filterDarkContrastMedium,
6662
4812
  'contrast-low': filterDarkContrastLow,
6663
- 'neutral-contrast-low': filterDarkContrastLow,
6664
4813
  'contrast-medium': filterDarkContrastMedium,
6665
- 'neutral-contrast-medium': filterDarkContrastMedium,
6666
4814
  'contrast-high': filterDarkContrastHigh,
6667
- 'neutral-contrast-high': filterDarkContrastHigh,
6668
4815
  'notification-success': filterDarkNotificationSuccess,
6669
4816
  'notification-warning': filterDarkNotificationWarning,
6670
4817
  'notification-error': filterDarkNotificationError,
6671
4818
  'notification-info': filterDarkNotificationInfo,
6672
- 'notification-neutral': filterDarkNotificationInfo, // deprecated
6673
4819
  },
6674
4820
  };
6675
4821
  const forceRerenderAnimationStyle = {
@@ -6682,13 +4828,14 @@ const forceRerenderAnimationStyle = {
6682
4828
  };
6683
4829
  const keyFramesLight = 'rerender-light';
6684
4830
  const keyFramesDark = 'rerender-dark';
6685
- const getComponentCss$B = (color, size, theme) => {
4831
+ const getComponentCss$C = (color, size, theme) => {
6686
4832
  const isColorInherit = color === 'inherit';
6687
4833
  const isSizeInherit = size === 'inherit';
4834
+ const isDark = isThemeDark(theme);
6688
4835
  return getCss({
6689
4836
  '@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 && {
6690
4837
  filter: filter[theme][color],
6691
- WebkitAnimation: `${theme === 'light' ? keyFramesLight : keyFramesDark} 1ms`, // needed to enforce repaint in Safari if theme is switched programmatically.
4838
+ WebkitAnimation: `${isDark ? keyFramesDark : keyFramesLight} 1ms`, // needed to enforce repaint in Safari if theme is switched programmatically.
6692
4839
  })), (isSizeInherit
6693
4840
  ? {
6694
4841
  width: size,
@@ -6699,7 +4846,7 @@ const getComponentCss$B = (color, size, theme) => {
6699
4846
  height: fontLineHeight,
6700
4847
  font: `${sizeMap$3[size]} ${fontFamily}`,
6701
4848
  })) }, (!isColorInherit && {
6702
- [`@keyframes ${isThemeDark(theme) ? keyFramesDark : keyFramesLight}`]: forceRerenderAnimationStyle,
4849
+ [`@keyframes ${isDark ? keyFramesDark : keyFramesLight}`]: forceRerenderAnimationStyle,
6703
4850
  })),
6704
4851
  });
6705
4852
  };
@@ -6748,7 +4895,7 @@ const getNotificationContentJssStyle = () => ({
6748
4895
  });
6749
4896
 
6750
4897
  const mediaQueryMaxS = getMediaQueryMax('s');
6751
- const getComponentCss$A = (state, hasAction, hasClose, theme) => {
4898
+ const getComponentCss$B = (state, hasAction, hasClose, theme) => {
6752
4899
  return getCss(Object.assign({ '@global': {
6753
4900
  ':host': addImportantToEachRule(Object.assign(Object.assign({}, getNotificationRootJssStyle(state, hasAction, hasClose, theme)), hostHiddenStyles)),
6754
4901
  h5: headingSmallStyle,
@@ -6766,18 +4913,13 @@ const getComponentCss$A = (state, hasAction, hasClose, theme) => {
6766
4913
  })));
6767
4914
  };
6768
4915
 
6769
- const getComponentCss$z = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme) => {
4916
+ const getComponentCss$A = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme) => {
6770
4917
  const { focusColor } = getThemedColors(theme);
6771
4918
  const hasIcon = hasVisibleIcon(icon, iconSource);
6772
4919
  return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, hideLabel, alignLabel, hasSlottedAnchor, theme), Object.assign(Object.assign({}, (hasSlottedAnchor && {
6773
4920
  '@global': addImportantToEachRule({
6774
4921
  '::slotted': {
6775
- '&(a)': {
6776
- outline: 0,
6777
- textDecoration: underline ? 'underline' : 'none',
6778
- font: 'inherit',
6779
- color: 'inherit',
6780
- },
4922
+ '&(a)': Object.assign(Object.assign({}, getResetInitialStylesForSlottedAnchor), { outline: 0, textDecoration: underline ? 'underline' : 'none', font: 'inherit', color: 'inherit' }),
6781
4923
  // The clickable area for Safari < ~15 (<= release date: 2021-10-28) is reduced to the slotted anchor itself,
6782
4924
  // since Safari prior to this major release does not support pseudo-elements in the slotted context
6783
4925
  // (https://bugs.webkit.org/show_bug.cgi?id=178237)
@@ -6798,17 +4940,12 @@ const getComponentCss$z = (icon, iconSource, active, stretch, size, hideLabel, a
6798
4940
  } })));
6799
4941
  };
6800
4942
 
6801
- const getComponentCss$y = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, theme) => {
4943
+ const getComponentCss$z = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, theme) => {
6802
4944
  const { focusColor } = getThemedColors(theme);
6803
4945
  return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, false, hasSlottedAnchor, theme), Object.assign({}, (hasSlottedAnchor && {
6804
4946
  '@global': addImportantToEachRule({
6805
4947
  '::slotted': {
6806
- '&(a)': {
6807
- outline: 0,
6808
- textDecoration: 'none',
6809
- font: 'inherit',
6810
- color: 'inherit',
6811
- },
4948
+ '&(a)': Object.assign(Object.assign({}, getResetInitialStylesForSlottedAnchor), { outline: 0, textDecoration: 'none', font: 'inherit', color: 'inherit' }),
6812
4949
  // The clickable area for Safari < ~15 (<= release date: 2021-10-28) is reduced to the slotted anchor itself,
6813
4950
  // since Safari prior to this major release does not support pseudo-elements in the slotted context
6814
4951
  // (https://bugs.webkit.org/show_bug.cgi?id=178237)
@@ -6829,9 +4966,7 @@ const getComponentCss$y = (icon, iconSource, variant, hideLabel, hasSlottedAncho
6829
4966
  };
6830
4967
 
6831
4968
  const fontWeightMap = {
6832
- thin: fontWeightRegular,
6833
4969
  regular: fontWeightRegular,
6834
- semibold: fontWeightSemiBold$1,
6835
4970
  'semi-bold': fontWeightSemiBold$1,
6836
4971
  bold: fontWeightBold,
6837
4972
  };
@@ -6847,44 +4982,26 @@ const aspectRatioPaddingTop = {
6847
4982
  '9:16': '177.75%',
6848
4983
  };
6849
4984
  const getGradientBackground = (isCompact, isTopAligned) => {
6850
- const gradient = 'rgba(31,31,31,0.9) 0%,' +
6851
- 'rgba(31,31,31,0.9) 20%,' +
6852
- 'rgba(31,31,31,0.852589) 26.67%,' +
6853
- 'rgba(32,32,32,0.768225) 33.33%,' +
6854
- 'rgba(33,33,33,0.668116) 40%,' +
6855
- 'rgba(34,34,34,0.557309) 46.67%,' +
6856
- 'rgba(35,35,35,0.442691) 53.33%,' +
6857
- 'rgba(36,36,36,0.331884) 60%,' +
6858
- 'rgba(37,37,37,0.231775) 66.67%,' +
6859
- 'rgba(38,38,38,0.147411) 73.33%,' +
6860
- 'rgba(39,39,39,0.0816599) 80%,' +
6861
- 'rgba(39,39,39,0.03551) 86.67%,' +
6862
- 'rgba(39,39,39,0.0086472) 93.33%,' +
6863
- 'rgba(39,39,39,0)';
6864
- return isCompact && isTopAligned
6865
- ? `linear-gradient(${gradient} 100%);`
6866
- : `linear-gradient(to top, ${gradient} 100%);`;
4985
+ return isCompact && isTopAligned ? gradientToBottomStyle : gradientToTopStyle;
6867
4986
  };
6868
4987
  const sizeMap$2 = {
6869
- inherit: {
6870
- fontSize: 'inherit',
6871
- },
6872
- default: { fontSize: '1.25rem' },
4988
+ inherit: { fontSize: 'inherit' },
4989
+ default: { fontSize: fontSizeTextMedium },
6873
4990
  };
6874
- const getComponentCss$x = (aspectRatio, size, weight, align, compact, hasGradient) => {
4991
+ const getComponentCss$y = (aspectRatio, size, weight, align, compact, hasGradient) => {
6875
4992
  const isTopAligned = align === 'top';
6876
- const paddingSizeXS = pxToRemWithUnit(24);
6877
- const gradientPadding = pxToRemWithUnit(72);
6878
4993
  return getCss({
6879
- '@global': Object.assign(Object.assign({ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(Object.assign({ height: 'fit-content' }, hostHiddenStyles))) }, addImportantToEachRule({
4994
+ '@global': Object.assign(Object.assign({ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)) }, addImportantToEachRule({
6880
4995
  '::slotted(picture),::slotted(img)': Object.assign({ transition: getTransition('transform') }, getBackfaceVisibilityJssStyle()),
6881
- '::slotted(picture)': Object.assign({ position: 'absolute' }, getInsetJssStyle()),
4996
+ '::slotted(picture)': Object.assign({ position: 'absolute' }, getInsetJssStyle(0)),
6882
4997
  '::slotted(img)': {
6883
4998
  height: '100%',
6884
4999
  width: '100%',
6885
5000
  objectFit: 'cover',
6886
5001
  },
6887
- })), { 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) })))) }),
5002
+ })), { p: Object.assign(Object.assign({ color: getThemedTypographyColor('dark', 'primary'), maxWidth: pxToRemWithUnit(550), margin: 0 }, textLargeStyle), mergeDeep(buildResponsiveStyles(size, (s) => sizeMap$2[s]), buildResponsiveStyles(weight, (w) => ({
5003
+ fontWeight: getFontWeight(w === 'semibold' ? 'semi-bold' : w),
5004
+ })))) }),
6888
5005
  root: Object.assign(Object.assign({ height: 0, position: 'relative', transform: 'translate3d(0,0,0)' }, hoverMediaQuery({
6889
5006
  '&:hover': {
6890
5007
  '& ::slotted(picture),::slotted(img)': addImportantToEachRule({
@@ -6894,24 +5011,20 @@ const getComponentCss$x = (aspectRatio, size, weight, align, compact, hasGradien
6894
5011
  })), buildResponsiveStyles(aspectRatio, (ratio) => ({
6895
5012
  paddingTop: aspectRatioPaddingTop[ratio],
6896
5013
  }))),
6897
- 'image-container': Object.assign(Object.assign({ position: 'absolute' }, getInsetJssStyle()), { overflow: 'hidden' }),
6898
- 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'
6899
- ? `${gradientPadding} ${paddingSizeXS} ${paddingSizeXS}`
6900
- : `${paddingSizeXS} ${paddingSizeXS} ${gradientPadding}`, gap: pxToRemWithUnit(24) }), mergeDeep({
6901
- [getMediaQueryMin('s')]: Object.assign({ paddingLeft: pxToRemWithUnit(32), paddingRight: pxToRemWithUnit(32) }, (align === 'bottom' ? { paddingBottom: pxToRemWithUnit(32) } : { paddingTop: pxToRemWithUnit(32) })),
6902
- }, hasGradient &&
6903
- buildResponsiveStyles(compact, (isCompact) => ({
6904
- background: getGradientBackground(isCompact, isTopAligned),
6905
- })), buildResponsiveStyles(compact, (isCompact) => isCompact
6906
- ? Object.assign({ alignItems: 'center', gridTemplateColumns: `auto ${pxToRemWithUnit(24)}`, gridTemplateRows: 'auto' }, (isTopAligned ? { top: 0 } : { bottom: 0 })) : { gridTemplateRows: 'auto auto', gridTemplateColumns: 'auto' }))),
5014
+ 'image-container': Object.assign({ position: 'absolute', overflow: 'hidden', borderRadius: borderRadiusMedium }, getInsetJssStyle(0)),
5015
+ content: Object.assign(Object.assign(Object.assign(Object.assign({ position: 'absolute' }, (isTopAligned ? { top: 0 } : { bottom: 0 })), { left: 0, right: 0, display: 'grid', justifyItems: 'start', borderRadius: borderRadiusMedium, padding: align === 'bottom'
5016
+ ? `${spacingFluidLarge} ${spacingFluidMedium} ${spacingFluidMedium}`
5017
+ : `${spacingFluidMedium} ${spacingFluidMedium} ${spacingFluidLarge}`, gap: spacingStaticMedium }), mergeDeep(hasGradient &&
5018
+ buildResponsiveStyles(compact, (isCompact) => getGradientBackground(isCompact, isTopAligned)), buildResponsiveStyles(compact, (isCompact) => isCompact
5019
+ ? Object.assign({ alignItems: 'center', gridTemplateColumns: 'auto 24px', gridTemplateRows: 'auto' }, (isTopAligned ? { top: 0 } : { bottom: 0 })) : { gridTemplateRows: 'auto auto', gridTemplateColumns: 'auto' }))), { '@media (forced-colors: active)': {
5020
+ background: 'rgba(0,0,0,0.7)',
5021
+ } }),
6907
5022
  'link-pure': buildResponsiveStyles(compact, (isCompact) => ({
6908
5023
  display: isCompact ? 'inline-block' : 'none',
6909
5024
  })),
6910
- link: Object.assign({ minHeight: '3rem' }, buildResponsiveStyles(compact, (isCompact) => ({ display: isCompact ? 'none' : 'inline-flex' }))),
6911
- // Due to position absolut on .content, position fixed is used to expand the clickable area of the anchor onto the whole link-tile
6912
- anchor: {
6913
- '&::after': Object.assign({ content: '""', position: 'fixed' }, getInsetJssStyle()),
6914
- },
5025
+ link: Object.assign({ minHeight: '54px' }, buildResponsiveStyles(compact, (isCompact) => ({ display: isCompact ? 'none' : 'inline-block' }))),
5026
+ // is used for expanded click-area only
5027
+ 'link-overlay': Object.assign(Object.assign({ position: 'fixed' }, getInsetJssStyle(0)), { outline: 0 }),
6915
5028
  });
6916
5029
  };
6917
5030
 
@@ -6925,7 +5038,7 @@ const baseSizes = {
6925
5038
  height: '72px',
6926
5039
  },
6927
5040
  };
6928
- const getComponentCss$w = (size) => {
5041
+ const getComponentCss$x = (size) => {
6929
5042
  return getCss({
6930
5043
  '@global': {
6931
5044
  ':host': Object.assign({ position: 'relative', display: 'inline-flex', verticalAlign: 'top' }, addImportantToEachRule(Object.assign({ outline: 0 }, hostHiddenStyles))),
@@ -6963,7 +5076,7 @@ const getFullscreenJssStyles = (fullscreen) => {
6963
5076
  minWidth: pxToRemWithUnit(275.2),
6964
5077
  maxWidth: pxToRemWithUnit(1536),
6965
5078
  minHeight: 'auto',
6966
- margin: `max(16px, 7vh) ${gridSafeZoneBase}`,
5079
+ margin: `clamp(16px, 7vh, 192px) ${gridSafeZoneBase}`,
6967
5080
  borderRadius: borderRadiusMedium,
6968
5081
  };
6969
5082
  };
@@ -6979,7 +5092,7 @@ const isFullscreenForXl = (fullscreen) => {
6979
5092
  return BREAKPOINTS.indexOf(lastTrueBreakpoint) > BREAKPOINTS.indexOf(lastFalseBreakpoint);
6980
5093
  }
6981
5094
  };
6982
- const getSlottedJssStyle = (marginValue, hasHeader, disableCloseButton) => {
5095
+ const getSlottedJssStyle = (marginValue, hasHeader, hasDismissButton) => {
6983
5096
  const marginPx = `${-marginValue}px`;
6984
5097
  const marginRem = pxToRemWithUnit(-marginValue);
6985
5098
  return Object.assign(Object.assign({ [`&(.${stretchToFullModalWidthClassName})`]: {
@@ -6987,13 +5100,13 @@ const getSlottedJssStyle = (marginValue, hasHeader, disableCloseButton) => {
6987
5100
  margin: `0 ${marginPx}`,
6988
5101
  } }, (!hasHeader && {
6989
5102
  [`&(.${stretchToFullModalWidthClassName}:first-child)`]: {
6990
- marginTop: !disableCloseButton ? marginRem : marginPx,
5103
+ marginTop: hasDismissButton ? marginRem : marginPx,
6991
5104
  },
6992
5105
  })), { [`&(.${stretchToFullModalWidthClassName}:last-child)`]: {
6993
5106
  marginBottom: marginPx,
6994
5107
  } });
6995
5108
  };
6996
- const getComponentCss$v = (open, fullscreen, disableCloseButton, hasHeader) => {
5109
+ const getComponentCss$w = (open, fullscreen, hasDismissButton, hasHeader) => {
6997
5110
  const isFullscreenForXlAndXxl = isFullscreenForXl(fullscreen);
6998
5111
  return getCss(Object.assign(Object.assign({ '@global': {
6999
5112
  ':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
@@ -7006,8 +5119,8 @@ const getComponentCss$v = (open, fullscreen, disableCloseButton, hasHeader) => {
7006
5119
  visibility: 'hidden',
7007
5120
  })), hostHiddenStyles), {
7008
5121
  // workaround via pseudo element to fix stacking (black) background in safari
7009
- '&::before': Object.assign(Object.assign(Object.assign({ content: '""', position: 'fixed' }, getInsetJssStyle()), { background: themeDarkBackgroundShading }), frostedGlassStyle) }))), { overflowY: 'auto' }),
7010
- '::slotted': addImportantToEachRule(Object.assign({}, mergeDeep(getSlottedJssStyle(32, hasHeader, disableCloseButton), buildResponsiveStyles(fullscreen, (fullscreenValue) => ({
5122
+ '&::before': Object.assign(Object.assign(Object.assign(Object.assign({ content: '""', position: 'fixed' }, getInsetJssStyle()), { background: themeDarkBackgroundShading }), frostedGlassStyle), { pointerEvents: 'none' }) }))), { overflowY: 'auto' }),
5123
+ '::slotted': addImportantToEachRule(Object.assign({}, mergeDeep(getSlottedJssStyle(32, hasHeader, hasDismissButton), buildResponsiveStyles(fullscreen, (fullscreenValue) => ({
7011
5124
  [`&(.${stretchToFullModalWidthClassName}`]: {
7012
5125
  '&:first-child)': {
7013
5126
  borderRadius: fullscreenValue ? 0 : '8px 8px 0 0',
@@ -7023,10 +5136,10 @@ const getComponentCss$v = (open, fullscreen, disableCloseButton, hasHeader) => {
7023
5136
  boxSizing: 'border-box',
7024
5137
  transition: `transform .6s ${transitionTimingFunction}`,
7025
5138
  transform: open ? 'scale3d(1,1,1)' : 'scale3d(.9,.9,1)',
7026
- padding: !disableCloseButton ? `${pxToRemWithUnit(32)} 32px 32px 32px` : '32px',
7027
- backgroundColor,
5139
+ padding: hasDismissButton ? `${pxToRemWithUnit(32)} 32px 32px 32px` : '32px',
5140
+ background: backgroundColor,
7028
5141
  outline: 0,
7029
- '&: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))))),
5142
+ '&: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))))),
7030
5143
  '&:not(:focus-visible)::before': {
7031
5144
  border: 0,
7032
5145
  },
@@ -7037,18 +5150,39 @@ const getComponentCss$v = (open, fullscreen, disableCloseButton, hasHeader) => {
7037
5150
  header: {
7038
5151
  padding: '0 0 8px',
7039
5152
  },
7040
- })), { close: {
7041
- position: 'absolute',
7042
- top: '8px',
7043
- right: '8px',
7044
- border: `2px solid ${backgroundColor}`,
7045
- borderRadius: '4px',
7046
- backgroundColor,
5153
+ })), (hasDismissButton && {
5154
+ dismiss: Object.assign({ position: 'absolute', top: '8px', right: '8px', border: `2px solid ${backgroundColor}`, borderRadius: '4px', background: backgroundColor }, hoverMediaQuery({
7047
5155
  '&:hover': {
7048
- backgroundColor: 'transparent',
5156
+ background: 'transparent',
7049
5157
  borderColor: 'transparent',
7050
5158
  },
7051
- } }));
5159
+ })),
5160
+ })));
5161
+ };
5162
+
5163
+ const colorToFilterMap = {
5164
+ light: {
5165
+ primary: filterLightPrimary,
5166
+ 'contrast-low': filterLightContrastLow,
5167
+ 'contrast-medium': filterLightContrastMedium,
5168
+ 'contrast-high': filterLightContrastHigh,
5169
+ },
5170
+ dark: {
5171
+ primary: filterDarkPrimary,
5172
+ 'contrast-low': filterDarkContrastLow,
5173
+ 'contrast-medium': filterDarkContrastMedium,
5174
+ 'contrast-high': filterDarkContrastHigh,
5175
+ },
5176
+ };
5177
+ const getComponentCss$v = (size, color, theme) => {
5178
+ const isSizeInherit = size === 'inherit';
5179
+ const isColorInherit = color === 'inherit';
5180
+ return getCss({
5181
+ '@global': {
5182
+ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
5183
+ img: Object.assign(Object.assign({ display: 'block', pointerEvents: 'none' }, (!isColorInherit && { filter: colorToFilterMap[theme][color] })), (isSizeInherit && { height: size })),
5184
+ },
5185
+ });
7052
5186
  };
7053
5187
 
7054
5188
  const mediaQueryMinS = getMediaQueryMin('s');
@@ -7244,27 +5378,34 @@ const getComponentCss$s = (hideLabel, state, isDisabled, theme) => {
7244
5378
 
7245
5379
  const gradientColorMap = {
7246
5380
  light: {
7247
- default: '255,255,255',
7248
- surface: '238,239,242',
5381
+ 'background-base': '255,255,255',
5382
+ 'background-surface': '238,239,242',
7249
5383
  },
7250
5384
  dark: {
7251
- default: '14,14,18',
7252
- surface: '33,34,37',
5385
+ 'background-base': '14,14,18',
5386
+ 'background-surface': '33,34,37',
7253
5387
  },
7254
5388
  };
7255
5389
  const getGradient = (theme, gradientColorTheme) => {
7256
5390
  const gradientColor = gradientColorMap[theme][gradientColorTheme];
7257
- return (`rgba(${gradientColor},1) 0%,` +
7258
- `rgba(${gradientColor},0.9) 10%,` +
7259
- `rgba(${gradientColor},0.668116) 40%,` +
7260
- `rgba(${gradientColor},0.331884) 60%,` +
7261
- `rgba(${gradientColor},0.0816599) 80%,` +
5391
+ return (`rgba(${gradientColor},1) 20%,` +
5392
+ `rgba(${gradientColor},0.6) 48%,` +
5393
+ `rgba(${gradientColor},0.3) 68%,` +
7262
5394
  `rgba(${gradientColor},0)`);
7263
5395
  };
7264
- const getComponentCss$r = (gradientColorTheme, isNextHidden, isPrevHidden, scrollIndicatorPosition, theme) => {
7265
- const { backgroundColor, backgroundSurfaceColor, focusColor } = getThemedColors('light');
7266
- const { hoverColor } = getThemedColors(theme);
5396
+ const getComponentCss$r = (gradientColor, isNextHidden, isPrevHidden, scrollIndicatorPosition, theme) => {
5397
+ const { backgroundColor, backgroundSurfaceColor, focusColor, hoverColor } = getThemedColors(theme);
7267
5398
  const isDarkTheme = isThemeDark(theme);
5399
+ const backgroundColorMap = {
5400
+ dark: {
5401
+ 'background-base': backgroundSurfaceColor,
5402
+ 'background-surface': backgroundColor,
5403
+ },
5404
+ light: {
5405
+ 'background-base': backgroundColor,
5406
+ 'background-surface': backgroundSurfaceColor,
5407
+ },
5408
+ };
7268
5409
  const actionPrevNextStyles = {
7269
5410
  position: 'relative',
7270
5411
  padding: '4px 0',
@@ -7275,19 +5416,17 @@ const getComponentCss$r = (gradientColorTheme, isNextHidden, isPrevHidden, scrol
7275
5416
  return getCss({
7276
5417
  '@global': {
7277
5418
  ':host': addImportantToEachRule(Object.assign({ display: 'block', height: 'inherit' }, hostHiddenStyles)),
7278
- 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: gradientColorTheme === 'surface' ? backgroundSurfaceColor : backgroundColor, borderRadius: borderRadiusSmall }), frostedGlassStyle), { visibility: 'hidden' }), (!isDarkTheme && dropShadowLowStyle)), hoverMediaQuery({
5419
+ 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({
7279
5420
  transition: getTransition('background-color'),
7280
- '&:hover': Object.assign({ background: hoverColor }, (isDarkTheme && {
7281
- '& > .icon': {
7282
- filter: 'invert(97%) sepia(55%) saturate(2840%) hue-rotate(180deg) brightness(114%) contrast(103%)', // TODO: this is not shared from icon?
7283
- },
7284
- })),
5421
+ '&:hover': Object.assign(Object.assign({}, frostedGlassStyle), { background: hoverColor }),
7285
5422
  })),
7286
5423
  },
7287
- root: Object.assign(Object.assign({ display: 'grid', gridTemplateColumns: '48px minmax(0, 1fr) 48px' }, hoverMediaQuery({
7288
- // distinguish gradient width on mobile and desktop
7289
- gridTemplateColumns: '64px minmax(0, 1fr) 64px',
7290
- })), { margin: '0 -4px', height: 'inherit' }),
5424
+ root: {
5425
+ display: 'grid',
5426
+ gridTemplateColumns: `calc(${fontLineHeight} + 24px) minmax(0, 1fr) calc(${fontLineHeight} + 24px)`,
5427
+ margin: '0 -4px',
5428
+ height: 'inherit',
5429
+ },
7291
5430
  'scroll-area': {
7292
5431
  gridArea: '1 / 1 / 1 / -1',
7293
5432
  padding: '4px',
@@ -7328,10 +5467,10 @@ const getComponentCss$r = (gradientColorTheme, isNextHidden, isPrevHidden, scrol
7328
5467
  right: 0,
7329
5468
  },
7330
5469
  },
7331
- '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({
5470
+ '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({
7332
5471
  visibility: isPrevHidden ? 'hidden' : 'visible',
7333
5472
  })) }),
7334
- '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({
5473
+ '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({
7335
5474
  visibility: isNextHidden ? 'hidden' : 'visible',
7336
5475
  })) }),
7337
5476
  });
@@ -7394,7 +5533,9 @@ const getComponentCss$p = (maxWidth) => {
7394
5533
  const getBaseChildStyles = (child, state, theme, additionalDefaultJssStyle) => {
7395
5534
  const { primaryColor, contrastLowColor, contrastMediumColor, disabledColor } = getThemedColors(theme);
7396
5535
  const { formStateColor, formStateHoverColor } = getThemedFormStateColors(theme, state);
7397
- 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({
5536
+ return Object.assign(Object.assign(Object.assign({ [`::slotted(${child})`]: Object.assign({ display: 'block', width: '100%', height: child !== 'textarea'
5537
+ ? `calc(${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2)` // we need 10px additionally so input height becomes 54px
5538
+ : '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({
7398
5539
  // with the media query the selector has higher priority and overrides disabled styles
7399
5540
  [`::slotted(${child}:not(:disabled):not(:focus):not([readonly]):hover)`]: {
7400
5541
  borderColor: formStateHoverColor || primaryColor,
@@ -7536,6 +5677,7 @@ const getSVGPath = (stepCount, numberedCircleColors, isStateCurrent) => {
7536
5677
  const svgCirclePath = `<circle fill="${isStateCurrent ? primaryColor : 'none'}"${isStateCurrent ? '' : ` stroke="${fillColor}"`} stroke-width="1px" cx="12" cy="12" r="9"/>`;
7537
5678
  // Full SVG is provided by design (./numbers_raw.svg), created with illustrator and optimized with ImageOptim.
7538
5679
  // The optimized file can be found in ./numbers_optim.svg.
5680
+ // TODO: could certainly be optimized size wise by exporting icons larger and having less decimals
7539
5681
  const svgNumberedCirclePaths = [
7540
5682
  `${svgCirclePath}<path fill="${fillColor}" d="m12.33 8.67-2.43.91v-.94l2.6-1.03h.85v8.78h-1.02z"/>`,
7541
5683
  `${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"/>`,
@@ -7619,7 +5761,7 @@ const getComponentCss$j = (alignLabel, hideLabel, stretch, checked, disabled, lo
7619
5761
  const { buttonBorderColor, buttonBorderColorHover, buttonBackgroundColor, buttonBackgroundColorHover, toggleBackgroundColor, toggleBackgroundColorHover, textColor, } = getColors$1(checked, disabled, loading, theme);
7620
5762
  const { focusColor } = getThemedColors(theme);
7621
5763
  return getCss(Object.assign(Object.assign({ '@global': {
7622
- ':host': addImportantToEachRule(Object.assign(Object.assign({ outline: 0 }, hostHiddenStyles), buildResponsiveStyles(stretch, (stretchValue) => (Object.assign({ display: stretchValue ? 'block' : 'inline-block' }, (!stretchValue && { verticalAlign: 'top' })))))),
5764
+ ':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' })))))),
7623
5765
  }, 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) => ({
7624
5766
  justifyContent: stretchValue ? 'space-between' : 'flex-start',
7625
5767
  }))), (!isDisabledOrLoading(disabled, loading) &&
@@ -7799,38 +5941,14 @@ const transformSelector = (selector) => ['a', 'button'].map((tag) => selector.re
7799
5941
  const getComponentCss$b = (size, weight, theme) => {
7800
5942
  const { primaryColor, hoverColor, focusColor } = getThemedColors(theme);
7801
5943
  return getCss({
7802
- '@global': Object.assign({ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(Object.assign({ position: 'relative', transform: 'translate3d(0,0,0)' }, hostHiddenStyles))) }, addImportantToEachRule(Object.assign(Object.assign({
5944
+ '@global': Object.assign({ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(Object.assign({ position: 'relative',
5945
+ // TODO: probably not needed because there is no style with position: fixed
5946
+ transform: 'translate3d(0,0,0)' }, hostHiddenStyles))) }, addImportantToEachRule(Object.assign(Object.assign({
7803
5947
  // would be nice to use shared selector like '::slotted([role])'
7804
5948
  // but this doesn't work reliably when rendering in browser
7805
- [transformSelector('::slotted([role])')]: {
7806
- display: 'inline-block',
7807
- position: 'relative',
7808
- margin: '0 0 4px 0',
7809
- padding: 0,
7810
- verticalAlign: 'top',
7811
- fontFamily: 'inherit',
7812
- fontStyle: 'inherit',
7813
- fontVariant: 'inherit',
7814
- fontWeight: 'inherit',
7815
- fontSize: 'inherit',
7816
- lineHeight: 'inherit',
7817
- whiteSpace: 'nowrap',
7818
- boxSizing: 'border-box',
7819
- WebkitAppearance: 'none',
7820
- appearance: 'none',
7821
- outline: 0,
7822
- outlineOffset: '1px',
7823
- textDecoration: 'none',
7824
- textAlign: 'left',
7825
- border: 0,
7826
- background: 'transparent',
7827
- color: primaryColor,
7828
- cursor: 'pointer',
7829
- borderRadius: borderRadiusSmall,
7830
- '&::before': Object.assign({ content: '""', position: 'absolute', top: '-2px', bottom: '-2px', left: '-4px', right: '-4px', borderRadius: borderRadiusSmall, zIndex: '-1' }, hoverMediaQuery({
5949
+ [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({
7831
5950
  transition: getTransition('background'),
7832
- })),
7833
- } }, hoverMediaQuery({
5951
+ })) }) }, hoverMediaQuery({
7834
5952
  [transformSelector('::slotted([role]:hover)::before')]: Object.assign(Object.assign({}, frostedGlassStyle), { background: hoverColor }),
7835
5953
  })), {
7836
5954
  // TODO: combine link-social-styles with link-button-styles and tabs-bar-styles
@@ -7847,7 +5965,7 @@ const getComponentCss$b = (size, weight, theme) => {
7847
5965
  display: 'block',
7848
5966
  position: 'absolute',
7849
5967
  width: 0,
7850
- height: weight === 'semibold' ? '2px' : '1.5px',
5968
+ height: weight === 'semi-bold' ? '2px' : '1.5px',
7851
5969
  left: 0,
7852
5970
  bottom: '-4px',
7853
5971
  background: primaryColor,
@@ -7860,10 +5978,10 @@ const getComponentCss$b = (size, weight, theme) => {
7860
5978
  };
7861
5979
 
7862
5980
  const getComponentCss$a = (theme) => {
7863
- const { focusColor } = getThemedColors(theme);
5981
+ const { primaryColor, focusColor } = getThemedColors(theme);
7864
5982
  return getCss({
7865
5983
  '@global': {
7866
- ':host': addImportantToEachRule(Object.assign(Object.assign({ display: 'block', position: 'relative' }, hostHiddenStyles), { outline: 0, '&::before': Object.assign({ content: '""', position: 'absolute' }, getInsetJssStyle(-4)), '&(:focus)::before': {
5984
+ ':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': {
7867
5985
  border: `${borderWidthBase} solid ${focusColor}`,
7868
5986
  borderRadius: borderRadiusSmall,
7869
5987
  }, '&(:focus:not(:focus-visible))::before': {
@@ -7894,16 +6012,13 @@ const getTagFocusJssStyle = (themedColors) => {
7894
6012
  };
7895
6013
  const getThemedBackgroundColor = (tagColor, themedColors) => {
7896
6014
  const colorMap = {
7897
- 'background-default': themedColors.backgroundColor,
7898
6015
  'background-base': themedColors.backgroundColor,
7899
6016
  'background-surface': themedColors.backgroundSurfaceColor,
7900
- 'neutral-contrast-high': themedColors.primaryColor,
7901
6017
  primary: themedColors.primaryColor,
7902
- 'notification-neutral': themedColors.infoSoftColor,
7903
- 'notification-info': themedColors.infoSoftColor,
7904
- 'notification-success': themedColors.successSoftColor,
7905
- 'notification-error': themedColors.errorSoftColor,
7906
- 'notification-warning': themedColors.warningSoftColor,
6018
+ 'notification-info-soft': themedColors.infoSoftColor,
6019
+ 'notification-warning-soft': themedColors.warningSoftColor,
6020
+ 'notification-success-soft': themedColors.successSoftColor,
6021
+ 'notification-error-soft': themedColors.errorSoftColor,
7907
6022
  };
7908
6023
  return colorMap[tagColor];
7909
6024
  };
@@ -7934,45 +6049,26 @@ const getComponentCss$8 = (color, hasLabel, theme) => {
7934
6049
  }, 'sr-only': getScreenReaderOnlyJssStyle() }));
7935
6050
  };
7936
6051
 
7937
- const hasInvertedThemeColor = (tagColor, theme) => {
7938
- const isDark = isThemeDark(theme);
7939
- return ((!isDark && (tagColor === 'neutral-contrast-high' || tagColor === 'primary')) || // 'neutral-contrast-high' is deprecated (replaced with 'primary')
7940
- (isDark &&
7941
- tagColor !== 'background-surface' &&
7942
- tagColor !== 'background-default' && // 'background-default' is deprecated (replaced with 'background-base')
7943
- tagColor !== 'background-base' &&
7944
- tagColor !== 'notification-neutral' && // 'notification-neutral' is deprecated (replaced with 'notification-info')
7945
- tagColor !== 'notification-info' &&
7946
- tagColor !== 'notification-warning' &&
7947
- tagColor !== 'notification-success' &&
7948
- tagColor !== 'notification-error'));
7949
- };
7950
6052
  const getThemedBackgroundHoverColor = (tagColor, themedColors, theme) => {
7951
6053
  const isDark = isThemeDark(theme);
7952
- const keySuffix = isDark ? 'ColorLighten' : 'ColorDarken';
7953
- const primaryColor = isDark ? themedColors.contrastHighColorLighten : themedColors.contrastHighColor;
6054
+ const keySuffix = isDark ? 'Lighten' : 'Darken';
7954
6055
  const colorMap = {
7955
- 'background-default': themedColors[`background${keySuffix}`],
7956
- 'background-base': themedColors[`background${keySuffix}`],
7957
- 'background-surface': themedColors[`backgroundSurface${keySuffix}`],
7958
- 'neutral-contrast-high': primaryColor,
7959
- primary: primaryColor,
7960
- 'notification-neutral': themedColors[`infoSoft${keySuffix}`],
7961
- 'notification-info': themedColors[`infoSoft${keySuffix}`],
7962
- 'notification-success': themedColors[`successSoft${keySuffix}`],
7963
- 'notification-error': themedColors[`errorSoft${keySuffix}`],
7964
- 'notification-warning': themedColors[`warningSoft${keySuffix}`],
6056
+ 'background-base': themedColors[`backgroundColor${keySuffix}`],
6057
+ 'background-surface': themedColors[`backgroundSurfaceColor${keySuffix}`],
6058
+ primary: isDark ? themedColors.contrastHighColorLighten : themedColors.contrastHighColor,
6059
+ 'notification-info-soft': themedColors[`infoSoftColor${keySuffix}`],
6060
+ 'notification-success-soft': themedColors[`successSoftColor${keySuffix}`],
6061
+ 'notification-error-soft': themedColors[`errorSoftColor${keySuffix}`],
6062
+ 'notification-warning-soft': themedColors[`warningSoftColor${keySuffix}`],
7965
6063
  };
7966
6064
  return colorMap[tagColor];
7967
6065
  };
7968
6066
 
7969
6067
  const getColors = (themedColors, tagColor, theme) => {
7970
- const hasInvertedTheme = hasInvertedThemeColor(tagColor, theme);
7971
- const { primaryColor } = hasInvertedTheme ? getInvertedThemedColors(theme) : themedColors;
7972
- const { focusColor } = themedColors;
6068
+ const { primaryColor } = tagColor === 'primary' ? getInvertedThemedColors(theme) : themedColors;
7973
6069
  return {
7974
6070
  primaryColor,
7975
- focusColor,
6071
+ focusColor: themedColors.focusColor,
7976
6072
  backgroundColor: getThemedBackgroundColor(tagColor, themedColors),
7977
6073
  backgroundHoverColor: getThemedBackgroundHoverColor(tagColor, themedColors, theme),
7978
6074
  };
@@ -7983,27 +6079,14 @@ const getComponentCss$7 = (tagColor, isFocusable, theme) => {
7983
6079
  return getCss({
7984
6080
  '@global': {
7985
6081
  ':host': Object.assign({ display: 'inline-flex', verticalAlign: 'top' }, addImportantToEachRule(hostHiddenStyles)),
7986
- 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({
7987
- transition: getTransition('background-color'),
7988
- '&:hover': {
7989
- background: backgroundHoverColor,
7990
- },
7991
- })))),
7992
- '::slotted': addImportantToEachRule(Object.assign(Object.assign({ '&(a),&(button)': {
7993
- display: 'inline',
7994
- position: 'static',
7995
- textDecoration: 'underline',
7996
- cursor: 'pointer',
7997
- font: 'inherit',
7998
- outline: 0,
7999
- color: 'inherit',
8000
- appearance: 'none',
8001
- margin: 0,
8002
- padding: 0,
8003
- background: 0,
8004
- border: 0,
8005
- textAlign: 'left',
8006
- } }, Object.entries(getTagFocusJssStyle(themedColors)).reduce((result, [key, value]) => {
6082
+ 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 &&
6083
+ hoverMediaQuery({
6084
+ transition: getTransition('background-color'),
6085
+ '&:hover': {
6086
+ background: backgroundHoverColor,
6087
+ },
6088
+ }))),
6089
+ '::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]) => {
8007
6090
  result[key.replace(/^&([a-z:\-()]*)(::[a-z\-]+)$/, '&(a$1)$2, &(button$1)$2')] = value;
8008
6091
  return result;
8009
6092
  }, {})), { '&(br)': {
@@ -8017,6 +6100,17 @@ const getComponentCss$7 = (tagColor, isFocusable, theme) => {
8017
6100
  };
8018
6101
 
8019
6102
  const isType = (inputType, typeToValidate) => inputType === typeToValidate;
6103
+ // eslint-disable-next-line no-underscore-dangle
6104
+ const _hasShowPickerSupport = () => {
6105
+ return (hasDocument &&
6106
+ 'showPicker' in HTMLInputElement.prototype &&
6107
+ // TODO: it would be better to determinate support by checking for existence of "calendar-picker-indicator"
6108
+ !!window.navigator.userAgent.match(/chrome|chromium|crios|edg/i));
6109
+ };
6110
+ const hasShowPickerSupport = _hasShowPickerSupport();
6111
+ const showCustomCalendarOrTimeIndicator = (isCalendar, isTime) => {
6112
+ return hasShowPickerSupport && (isCalendar || isTime);
6113
+ };
8020
6114
 
8021
6115
  const cssVariableInputPaddingLeft = '--p-internal-text-field-input-padding-left';
8022
6116
  const cssVariableInputPaddingRight = '--p-internal-text-field-input-padding-right';
@@ -8041,18 +6135,21 @@ const getComponentCss$6 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter
8041
6135
  const isSearch = isType(inputType, 'search');
8042
6136
  const isPassword = isType(inputType, 'password');
8043
6137
  const isNumber = isType(inputType, 'number');
6138
+ const isCalendar = isType(inputType, 'date') || isType(inputType, 'week') || isType(inputType, 'month');
6139
+ const isTime = isType(inputType, 'time');
8044
6140
  const isSearchOrPassword = isSearch || isPassword;
8045
6141
  const isSearchWithoutForm = isSearch && !isWithinForm;
8046
6142
  const isSearchWithForm = isSearch && isWithinForm;
8047
- 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
6143
+ const isCalendarOrTimeWithCustomIndicator = showCustomCalendarOrTimeIndicator(isCalendar, isTime);
6144
+ 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
8048
6145
  ? getInputPaddingHorizontal(isSearchWithForm ? 2 : 1)
8049
- : spacingStaticMedium }, hostHiddenStyles))) }, addImportantToEachRule(Object.assign(Object.assign({}, getBaseChildStyles('input', state, theme, Object.assign({ padding: `8px var(${cssVariableInputPaddingRight}) 8px var(${cssVariableInputPaddingLeft})` }, (isNumber && {
6146
+ : spacingStaticMedium }, hostHiddenStyles))) }, addImportantToEachRule(Object.assign(Object.assign({}, getBaseChildStyles('input', state, theme, Object.assign({ padding: `${spacingStaticSmall} var(${cssVariableInputPaddingRight}) ${spacingStaticSmall} var(${cssVariableInputPaddingLeft})` }, (isNumber && {
8050
6147
  MozAppearance: 'textfield', // hides up/down spin button for Firefox
8051
6148
  })))), { '::slotted': {
8052
6149
  '&(input:-internal-autofill-selected),&(input:-internal-autofill-previewed),&(input:-webkit-autofill),&(input:-webkit-autofill:focus)': {
8053
6150
  WebkitBackgroundClip: 'padding-box', // reset webkit autofill styles
8054
6151
  },
8055
- } }))) }, (isSearchOrPassword && {
6152
+ } }))) }, ((isSearchOrPassword || isCalendarOrTimeWithCustomIndicator) && {
8056
6153
  button: Object.assign(Object.assign({}, baseButtonOrIconStyles), { right: getButtonOrIconOffsetHorizontal(1),
8057
6154
  // TODO: maybe we should render hidden button conditionally, needs to be checked if a11y compliant
8058
6155
  '&:not([hidden]) ~ .button': {
@@ -8078,42 +6175,58 @@ const getComponentCss$6 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter
8078
6175
  'sr-only': Object.assign(Object.assign({}, getScreenReaderOnlyJssStyle()), { padding: 0 }) }));
8079
6176
  };
8080
6177
 
8081
- const cssVariableOrderedSuffix = '--p-internal-text-list-item-ordered-suffix';
8082
- const cssVariableUnorderedWidth = '--p-internal-text-list-item-unordered-width';
8083
- const cssVariableUnorderedHeight = '--p-internal-text-list-item-unordered-height';
8084
- const cssVariableUnorderedTop = '--p-internal-text-list-item-unordered-top';
8085
- const getComponentCss$5 = (listType, orderType) => {
8086
- const isOrdered = listType === 'ordered';
8087
- const beforeJssStyles = {
8088
- position: 'absolute',
8089
- left: 0,
8090
- };
6178
+ /** @deprecated */
6179
+ const isListTypeOrdered = (type) => type !== 'unordered';
6180
+ const isListTypeNumbered = (type) => type === 'numbered';
6181
+
6182
+ const cssVariablePseudoSuffix = '--p-internal-text-list-pseudo-suffix';
6183
+ const cssVariablePaddingTop = '--p-internal-text-list-padding-top';
6184
+ const cssVariablePaddingBottom = '--p-internal-text-list-padding-bottom';
6185
+ const cssVariableUnorderedPaddingLeft = '--p-internal-text-list-unordered-padding-left';
6186
+ const cssVariableOrderedPaddingLeft = '--p-internal-text-list-ordered-padding-left';
6187
+ const cssVariableListStyleType = '--p-internal-text-list-list-style-type';
6188
+ const counter = 'p-text-list-counter';
6189
+ const getComponentCss$5 = (type, theme) => {
6190
+ const isOrderedList = isListTypeOrdered(type);
8091
6191
  return getCss({
8092
6192
  '@global': {
8093
- ':host': addImportantToEachRule(Object.assign(Object.assign({ position: 'relative', display: 'list-item', color: 'inherit', listStyleType: 'none', paddingLeft: pxToRemWithUnit(isOrdered ? 40 : 24) }, hostHiddenStyles), { '&:before': isOrdered
8094
- ? Object.assign(Object.assign(Object.assign({}, beforeJssStyles), { content: `counters(section,".",${orderType === 'numbered' ? 'decimal' : 'lower-latin'}) var(${cssVariableOrderedSuffix},".")`, top: 0, width: pxToRemWithUnit(24), height: 'auto', counterIncrement: 'section', textAlign: 'right', backgroundColor: 'transparent' }), textSmallStyle) : Object.assign(Object.assign({}, beforeJssStyles), { content: '""', width: `var(${cssVariableUnorderedWidth},${pxToRemWithUnit(4)})`, height: `var(${cssVariableUnorderedHeight},${pxToRemWithUnit(4)})`, top: `var(${cssVariableUnorderedTop},calc(1.5em / 2 - 0.125em))`, backgroundColor: 'currentColor' }) })),
8095
- '::slotted(*)': {
8096
- [cssVariableOrderedSuffix]: '""',
8097
- [cssVariableUnorderedWidth]: pxToRemWithUnit(8),
8098
- [cssVariableUnorderedHeight]: '1px',
8099
- [cssVariableUnorderedTop]: 'calc(1.5em / 2)',
8100
- },
6193
+ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(Object.assign({ counterReset: counter }, hostHiddenStyles))),
6194
+ 'ol,ul': Object.assign(Object.assign({}, textSmallStyle), { color: getThemedColors(theme).primaryColor, margin: 0, padding: `var(${cssVariablePaddingTop},0) 0 var(${cssVariablePaddingBottom},0) ${isOrderedList
6195
+ ? `var(${cssVariableOrderedPaddingLeft},1.5rem)` // reserves space for ::before (root ordered list)
6196
+ : `var(${cssVariableUnorderedPaddingLeft},.375rem)` // reserves space for ::marker "" (root unordered list)
6197
+ }`, listStyleType: isOrderedList ? 'none' : `var(${cssVariableListStyleType},'•')` }),
6198
+ // css selector for text-list-item
6199
+ '::slotted(*)': addImportantToEachRule(Object.assign({ [cssVariablePaddingTop]: spacingStaticXSmall,
6200
+ // TODO: in case it's last root list item with a nested list it would result in outer spacing which is not desired
6201
+ [cssVariablePaddingBottom]: spacingStaticMedium, [cssVariableOrderedPaddingLeft]: '2rem', [cssVariableUnorderedPaddingLeft]: '.625rem', [cssVariableListStyleType]: '"–"' }, (isOrderedList && {
6202
+ '&::before': {
6203
+ content: `counters(${counter},'.',${isListTypeNumbered(type) ? 'decimal' : 'lower-latin'}) var(${cssVariablePseudoSuffix},'.')`,
6204
+ counterIncrement: counter,
6205
+ position: 'absolute',
6206
+ top: 0,
6207
+ left: 0,
6208
+ transform: 'translate(-100%,0)',
6209
+ },
6210
+ }))),
8101
6211
  },
8102
6212
  });
8103
6213
  };
8104
6214
 
8105
- const getComponentCss$4 = (theme) => {
6215
+ const getComponentCss$4 = () => {
8106
6216
  return getCss({
8107
- '@global': {
8108
- ':host': Object.assign({ display: 'block' }, addImportantToEachRule(Object.assign({ counterReset: 'section' }, hostHiddenStyles))),
8109
- '[role]': Object.assign({ display: 'block', padding: 0, margin: 0, color: getThemedColors(theme).primaryColor }, textSmallStyle),
8110
- },
6217
+ '@global': addImportantToEachRule({
6218
+ ':host': Object.assign({ display: 'list-item', position: 'relative', font: 'inherit', color: 'inherit', listStyleType: 'inherit', paddingLeft: spacingStaticMedium }, hostHiddenStyles),
6219
+ '::slotted(*)': {
6220
+ [cssVariablePseudoSuffix]: '""', // don't show suffix "." for nested ordered list
6221
+ },
6222
+ }),
8111
6223
  });
8112
6224
  };
8113
6225
 
8114
6226
  const TEXT_TAGS = ['p', 'span', 'div', 'address', 'blockquote', 'figcaption', 'cite', 'time', 'legend'];
8115
6227
 
8116
6228
  const sizeMap = {
6229
+ 'xx-small': fontSizeTextXXSmall,
8117
6230
  'x-small': fontSizeTextXSmall,
8118
6231
  small: fontSizeTextSmall,
8119
6232
  medium: fontSizeTextMedium,
@@ -8183,33 +6296,34 @@ const getComponentCss = () => {
8183
6296
  });
8184
6297
  };
8185
6298
 
8186
- exports.getAccordionCss = getComponentCss$S;
8187
- exports.getBannerCss = getComponentCss$R;
8188
- exports.getButtonCss = getComponentCss$O;
8189
- exports.getButtonGroupCss = getComponentCss$Q;
8190
- exports.getButtonPureCss = getComponentCss$P;
8191
- exports.getCarouselCss = getComponentCss$N;
8192
- exports.getCheckboxWrapperCss = getComponentCss$M;
8193
- exports.getContentWrapperCss = getComponentCss$L;
8194
- exports.getDisplayCss = getComponentCss$K;
8195
- exports.getDividerCss = getComponentCss$J;
8196
- exports.getFieldsetWrapperCss = getComponentCss$I;
8197
- exports.getFlexCss = getComponentCss$G;
8198
- exports.getFlexItemCss = getComponentCss$H;
6299
+ exports.getAccordionCss = getComponentCss$T;
6300
+ exports.getBannerCss = getComponentCss$S;
6301
+ exports.getButtonCss = getComponentCss$P;
6302
+ exports.getButtonGroupCss = getComponentCss$R;
6303
+ exports.getButtonPureCss = getComponentCss$Q;
6304
+ exports.getCarouselCss = getComponentCss$O;
6305
+ exports.getCheckboxWrapperCss = getComponentCss$N;
6306
+ exports.getContentWrapperCss = getComponentCss$M;
6307
+ exports.getDisplayCss = getComponentCss$L;
6308
+ exports.getDividerCss = getComponentCss$K;
6309
+ exports.getFieldsetWrapperCss = getComponentCss$J;
6310
+ exports.getFlexCss = getComponentCss$H;
6311
+ exports.getFlexItemCss = getComponentCss$I;
8199
6312
  exports.getFunctionalComponentRequiredStyles = getFunctionalComponentRequiredStyles;
8200
6313
  exports.getFunctionalComponentStateMessageStyles = getFunctionalComponentStateMessageStyles;
8201
- exports.getGridCss = getComponentCss$E;
8202
- exports.getGridItemCss = getComponentCss$F;
8203
- exports.getHeadingCss = getComponentCss$D;
8204
- exports.getHeadlineCss = getComponentCss$C;
8205
- exports.getIconCss = getComponentCss$B;
8206
- exports.getInlineNotificationCss = getComponentCss$A;
8207
- exports.getLinkCss = getComponentCss$y;
8208
- exports.getLinkPureCss = getComponentCss$z;
8209
- exports.getLinkSocialCss = getComponentCss$y;
8210
- exports.getLinkTileCss = getComponentCss$x;
8211
- exports.getMarqueCss = getComponentCss$w;
8212
- exports.getModalCss = getComponentCss$v;
6314
+ exports.getGridCss = getComponentCss$F;
6315
+ exports.getGridItemCss = getComponentCss$G;
6316
+ exports.getHeadingCss = getComponentCss$E;
6317
+ exports.getHeadlineCss = getComponentCss$D;
6318
+ exports.getIconCss = getComponentCss$C;
6319
+ exports.getInlineNotificationCss = getComponentCss$B;
6320
+ exports.getLinkCss = getComponentCss$z;
6321
+ exports.getLinkPureCss = getComponentCss$A;
6322
+ exports.getLinkSocialCss = getComponentCss$z;
6323
+ exports.getLinkTileCss = getComponentCss$y;
6324
+ exports.getMarqueCss = getComponentCss$x;
6325
+ exports.getModalCss = getComponentCss$w;
6326
+ exports.getModelSignatureCss = getComponentCss$v;
8213
6327
  exports.getPaginationCss = getComponentCss$u;
8214
6328
  exports.getPopoverCss = getComponentCss$t;
8215
6329
  exports.getRadioButtonWrapperCss = getComponentCss$s;
@@ -8235,7 +6349,7 @@ exports.getTagCss = getComponentCss$7;
8235
6349
  exports.getTagDismissibleCss = getComponentCss$8;
8236
6350
  exports.getTextCss = getComponentCss$3;
8237
6351
  exports.getTextFieldWrapperCss = getComponentCss$6;
8238
- exports.getTextListCss = getComponentCss$4;
8239
- exports.getTextListItemCss = getComponentCss$5;
6352
+ exports.getTextListCss = getComponentCss$5;
6353
+ exports.getTextListItemCss = getComponentCss$4;
8240
6354
  exports.getTextareaWrapperCss = getComponentCss$2;
8241
6355
  exports.getToastCss = getComponentCss;