@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
@@ -101,19 +101,19 @@ const fontStyleNormal = 'normal';
101
101
 
102
102
  const fontVariant = 'normal';
103
103
 
104
- const breakpointBase = '0px';
104
+ const breakpointBase = 0;
105
105
 
106
- const breakpointXS = '480px';
106
+ const breakpointXS = 480;
107
107
 
108
- const breakpointS = '760px';
108
+ const breakpointS = 760;
109
109
 
110
- const breakpointM = '1000px';
110
+ const breakpointM = 1000;
111
111
 
112
- const breakpointL = '1300px';
112
+ const breakpointL = 1300;
113
113
 
114
- const breakpointXL = '1760px';
114
+ const breakpointXL = 1760;
115
115
 
116
- const breakpointXXL = '1920px';
116
+ const breakpointXXL = 1920;
117
117
 
118
118
  const breakpoint = {
119
119
  base: breakpointBase,
@@ -126,83 +126,9 @@ const breakpoint = {
126
126
  };
127
127
 
128
128
  function getMediaQueryMin(min) {
129
- return `@media(min-width:${breakpoint[min]})`;
129
+ return `@media(min-width:${breakpoint[min]}px)`;
130
130
  }
131
131
 
132
- const spacingFluidMedium = 'clamp(16px, 1.25vw + 12px, 36px)';
133
-
134
- const gridGap = spacingFluidMedium;
135
-
136
- const gridWidthMin = '320px';
137
-
138
- const gridWidthMax = '2560px';
139
-
140
- // fluid sizing calculated by https://fluidtypography.com/#app-get-started
141
- // gridSafeZoneBase: Viewport Width Range = 320 - 1920px / Size Range = 22 - 192px
142
- const gridSafeZoneBase = 'clamp(22px, 10.625vw - 12px, 192px)';
143
-
144
- // fluid sizing calculated by https://fluidtypography.com/#app-get-started
145
- // gridSafeZoneXXL: Viewport Width Range = 1920 - 2560px / Size Range = 192 - 512px
146
- const gridSafeZoneXXL = 'clamp(192px, 50vw - 768px, 512px)';
147
-
148
- const gridFullColumnStart = 'full-start';
149
-
150
- const gridExtendedColumnStart = 'extended-start';
151
-
152
- const gridBasicColumnStart = 'basic-start';
153
-
154
- const gridNarrowColumnStart = 'narrow-start';
155
-
156
- const gridNarrowColumnEnd = 'narrow-end';
157
-
158
- const gridBasicColumnEnd = 'basic-end';
159
-
160
- const gridExtendedColumnEnd = 'extended-end';
161
-
162
- const gridFullColumnEnd = 'full-end';
163
-
164
- const _cssVariableGridExtendedSpanOneHalf = '--pds-grid-extended-span-one-half';
165
- const _cssVariableGridBasicSpanOneHalf = '--pds-grid-basic-span-one-half';
166
- const _cssVariableGridBasicSpanOneThird = '--pds-grid-basic-span-one-third';
167
- const _cssVariableGridBasicSpanTwoThirds = '--pds-grid-basic-span-two-thirds';
168
- const _cssVariableGridNarrowSpanOneHalf = '--pds-grid-narrow-span-one-half';
169
- const _cssVariableGridSafeZone = '--pds-internal-grid-safe-zone';
170
-
171
- const outerColumn = `minmax(0, calc(var(${_cssVariableGridSafeZone}) - ${gridGap}))`;
172
- const column = 'minmax(0, 1fr)';
173
- const getColumns = (repeat) => (repeat > 1 ? `repeat(${repeat}, ${column})` : column);
174
- const getColumnSpan = (span) => `span ${span}`;
175
- const getGridTemplateColumns = (layout) => layout === 'mobile'
176
- ? `[${gridFullColumnStart}] ${outerColumn} [${gridExtendedColumnStart} ${gridBasicColumnStart} ${gridNarrowColumnStart}] ${getColumns(6)} [${gridNarrowColumnEnd} ${gridBasicColumnEnd} ${gridExtendedColumnEnd}] ${outerColumn} [${gridFullColumnEnd}]`
177
- : `[${gridFullColumnStart}] ${outerColumn} [${gridExtendedColumnStart}] ${getColumns(1)} [${gridBasicColumnStart}] ${getColumns(2)} [${gridNarrowColumnStart}] ${getColumns(8)} [${gridNarrowColumnEnd}] ${getColumns(2)} [${gridBasicColumnEnd}] ${getColumns(1)} [${gridExtendedColumnEnd}] ${outerColumn} [${gridFullColumnEnd}]`;
178
- ({
179
- [_cssVariableGridSafeZone]: gridSafeZoneBase,
180
- [_cssVariableGridExtendedSpanOneHalf]: getColumnSpan(3),
181
- [_cssVariableGridBasicSpanOneHalf]: getColumnSpan(3),
182
- [_cssVariableGridBasicSpanOneThird]: getColumnSpan(2),
183
- [_cssVariableGridBasicSpanTwoThirds]: getColumnSpan(4),
184
- [_cssVariableGridNarrowSpanOneHalf]: getColumnSpan(3),
185
- display: 'grid',
186
- gridGap,
187
- gridTemplateColumns: getGridTemplateColumns('mobile'),
188
- minWidth: gridWidthMin,
189
- maxWidth: gridWidthMax,
190
- margin: 0,
191
- padding: `0 calc(50% - ${gridWidthMax} / 2)`,
192
- boxSizing: 'content-box',
193
- [getMediaQueryMin('s')]: {
194
- [_cssVariableGridExtendedSpanOneHalf]: getColumnSpan(7),
195
- [_cssVariableGridBasicSpanOneHalf]: getColumnSpan(6),
196
- [_cssVariableGridBasicSpanOneThird]: getColumnSpan(4),
197
- [_cssVariableGridBasicSpanTwoThirds]: getColumnSpan(8),
198
- [_cssVariableGridNarrowSpanOneHalf]: getColumnSpan(4),
199
- gridTemplateColumns: getGridTemplateColumns('desktop'),
200
- },
201
- [getMediaQueryMin('xxl')]: {
202
- [_cssVariableGridSafeZone]: gridSafeZoneXXL,
203
- },
204
- });
205
-
206
132
  const _textFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightRegular} `;
207
133
  const _textFontPartB = `/${fontLineHeight} ${fontFamily}`;
208
134
 
@@ -219,10 +145,10 @@ const textSmallStyle = {
219
145
  // TODO: we shouldn't exclude xxl breakpoint
220
146
  const mediaQueries = Object.entries(breakpoint)
221
147
  .filter(([key]) => key !== 'xxl')
222
- .map(([, val]) => `(min-width:${val})`);
148
+ .map(([, val]) => `(min-width:${val}px)`);
223
149
  hasWindow && window.matchMedia ? mediaQueries.map(window.matchMedia) : [];
224
150
 
225
- Object.entries(breakpoint).reduce((result, [key, val]) => (Object.assign(Object.assign({}, result), { [val]: key })), {});
151
+ Object.entries(breakpoint).reduce((result, [key, val]) => (Object.assign(Object.assign({}, result), { [`${val}px`]: key })), {});
226
152
 
227
153
  const hasVisibleIcon = (iconName, iconSource) => {
228
154
  return iconName !== 'none' || !!iconSource;
@@ -435,12 +361,6 @@ var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symb
435
361
 
436
362
  var isBrowser = (typeof window === "undefined" ? "undefined" : _typeof$1(window)) === "object" && (typeof document === "undefined" ? "undefined" : _typeof$1(document)) === 'object' && document.nodeType === 9;
437
363
 
438
- var module$1 = /*#__PURE__*/Object.freeze({
439
- __proto__: null,
440
- default: isBrowser,
441
- isBrowser: isBrowser
442
- });
443
-
444
364
  var isProduction = process.env.NODE_ENV === 'production';
445
365
  function warning(condition, message) {
446
366
  if (!isProduction) {
@@ -988,7 +908,7 @@ function () {
988
908
 
989
909
  return ConditionalRule;
990
910
  }();
991
- var keyRegExp = /@media|@supports\s+/;
911
+ var keyRegExp = /@container|@media|@supports\s+/;
992
912
  var pluginConditionalRule = {
993
913
  onCreateRule: function onCreateRule(key, styles, options) {
994
914
  return keyRegExp.test(key) ? new ConditionalRule(key, styles, options) : null;
@@ -1285,7 +1205,7 @@ var pluginSimpleRule = {
1285
1205
  }
1286
1206
  };
1287
1207
 
1288
- var plugins$1 = [pluginStyleRule, pluginConditionalRule, pluginKeyframesRule, pluginKeyframeRule, pluginFontFaceRule, pluginViewportRule, pluginSimpleRule];
1208
+ var plugins = [pluginStyleRule, pluginConditionalRule, pluginKeyframesRule, pluginKeyframeRule, pluginFontFaceRule, pluginViewportRule, pluginSimpleRule];
1289
1209
 
1290
1210
  var defaultUpdateOptions = {
1291
1211
  process: true
@@ -2552,7 +2472,7 @@ var Jss =
2552
2472
  function () {
2553
2473
  function Jss(options) {
2554
2474
  this.id = instanceCounter++;
2555
- this.version = "10.9.2";
2475
+ this.version = "10.10.0";
2556
2476
  this.plugins = new PluginsRegistry();
2557
2477
  this.options = {
2558
2478
  id: {
@@ -2566,8 +2486,8 @@ function () {
2566
2486
  minify: false
2567
2487
  });
2568
2488
 
2569
- for (var i = 0; i < plugins$1.length; i++) {
2570
- this.plugins.use(plugins$1[i], {
2489
+ for (var i = 0; i < plugins.length; i++) {
2490
+ this.plugins.use(plugins[i], {
2571
2491
  queue: 'internal'
2572
2492
  });
2573
2493
  }
@@ -2832,54 +2752,24 @@ var jss_esm = /*#__PURE__*/Object.freeze({
2832
2752
  toCssValue: toCssValue
2833
2753
  });
2834
2754
 
2835
- function getAugmentedNamespace(n) {
2836
- if (n.__esModule) return n;
2837
- var f = n.default;
2838
- if (typeof f == "function") {
2839
- var a = function a () {
2840
- if (this instanceof a) {
2841
- var args = [null];
2842
- args.push.apply(args, arguments);
2843
- var Ctor = Function.bind.apply(f, args);
2844
- return new Ctor();
2845
- }
2846
- return f.apply(this, arguments);
2847
- };
2848
- a.prototype = f.prototype;
2849
- } else a = {};
2850
- Object.defineProperty(a, '__esModule', {value: true});
2851
- Object.keys(n).forEach(function (k) {
2852
- var d = Object.getOwnPropertyDescriptor(n, k);
2853
- Object.defineProperty(a, k, d.get ? d : {
2854
- enumerable: true,
2855
- get: function () {
2856
- return n[k];
2857
- }
2858
- });
2859
- });
2860
- return a;
2861
- }
2862
-
2863
2755
  /* eslint-disable no-var, prefer-template */
2864
2756
  var uppercasePattern = /[A-Z]/g;
2865
2757
  var msPattern = /^ms-/;
2866
- var cache$2 = {};
2758
+ var cache = {};
2867
2759
 
2868
2760
  function toHyphenLower(match) {
2869
2761
  return '-' + match.toLowerCase()
2870
2762
  }
2871
2763
 
2872
2764
  function hyphenateStyleName(name) {
2873
- if (cache$2.hasOwnProperty(name)) {
2874
- return cache$2[name]
2765
+ if (cache.hasOwnProperty(name)) {
2766
+ return cache[name]
2875
2767
  }
2876
2768
 
2877
2769
  var hName = name.replace(uppercasePattern, toHyphenLower);
2878
- return (cache$2[name] = msPattern.test(hName) ? '-' + hName : hName)
2770
+ return (cache[name] = msPattern.test(hName) ? '-' + hName : hName)
2879
2771
  }
2880
2772
 
2881
- var index_cjs = hyphenateStyleName;
2882
-
2883
2773
  /**
2884
2774
  * Convert camel cased property names to dash separated.
2885
2775
  */
@@ -2888,7 +2778,7 @@ function convertCase(style) {
2888
2778
  var converted = {};
2889
2779
 
2890
2780
  for (var prop in style) {
2891
- var key = prop.indexOf('--') === 0 ? prop : index_cjs(prop);
2781
+ var key = prop.indexOf('--') === 0 ? prop : hyphenateStyleName(prop);
2892
2782
  converted[key] = style[prop];
2893
2783
  }
2894
2784
 
@@ -2922,7 +2812,7 @@ function camelCase() {
2922
2812
  return value;
2923
2813
  }
2924
2814
 
2925
- var hyphenatedProp = index_cjs(prop); // There was no camel case in place
2815
+ var hyphenatedProp = hyphenateStyleName(prop); // There was no camel case in place
2926
2816
 
2927
2817
  if (prop === hyphenatedProp) return value;
2928
2818
  rule.prop(hyphenatedProp, value); // Core will ignore that property value we set the proper one above.
@@ -3227,6 +3117,34 @@ function jssNested() {
3227
3117
  };
3228
3118
  }
3229
3119
 
3120
+ function getAugmentedNamespace(n) {
3121
+ if (n.__esModule) return n;
3122
+ var f = n.default;
3123
+ if (typeof f == "function") {
3124
+ var a = function a () {
3125
+ if (this instanceof a) {
3126
+ var args = [null];
3127
+ args.push.apply(args, arguments);
3128
+ var Ctor = Function.bind.apply(f, args);
3129
+ return new Ctor();
3130
+ }
3131
+ return f.apply(this, arguments);
3132
+ };
3133
+ a.prototype = f.prototype;
3134
+ } else a = {};
3135
+ Object.defineProperty(a, '__esModule', {value: true});
3136
+ Object.keys(n).forEach(function (k) {
3137
+ var d = Object.getOwnPropertyDescriptor(n, k);
3138
+ Object.defineProperty(a, k, d.get ? d : {
3139
+ enumerable: true,
3140
+ get: function () {
3141
+ return n[k];
3142
+ }
3143
+ });
3144
+ });
3145
+ return a;
3146
+ }
3147
+
3230
3148
  var _tslib$1 = {};
3231
3149
 
3232
3150
  (function (exports) {
@@ -3635,10 +3553,10 @@ const themeLight = {
3635
3553
  contrastHighColor: '#535457',
3636
3554
  contrastHighColorDarken: '#353638',
3637
3555
  contrastHighColorLighten: '#717276',
3638
- hoverColor: 'rgba(148, 149, 152, 0.20)',
3556
+ hoverColor: 'rgba(148, 149, 152, .18)',
3639
3557
  hoverColorDarken: '#75767A',
3640
3558
  activeColor: 'rgba(148, 149, 152, 0.20)',
3641
- focusColor: '#0A0AFF',
3559
+ focusColor: '#1A44EA',
3642
3560
  disabledColor: '#949598',
3643
3561
  errorColor: '#E7323B',
3644
3562
  errorColorDarken: '#C51720',
@@ -3673,10 +3591,10 @@ const themeDark = {
3673
3591
  contrastHighColor: '#AFB0B3',
3674
3592
  contrastHighColorDarken: '#909195',
3675
3593
  contrastHighColorLighten: '#CECFD1',
3676
- hoverColor: 'rgba(126, 127, 130, 0.20)',
3677
- hoverColorDarken: '#606163',
3594
+ hoverColor: 'rgba(148, 149, 152, .18)',
3595
+ hoverColorDarken: '#75767A',
3678
3596
  activeColor: 'rgba(126, 127, 130, 0.20)',
3679
- focusColor: '#1E5BEB',
3597
+ focusColor: '#1A44EA',
3680
3598
  disabledColor: '#7E7F82',
3681
3599
  errorColor: '#CB3333',
3682
3600
  errorColorDarken: '#9A2727',
@@ -3726,1938 +3644,116 @@ const supportsConstructableStylesheets = () => {
3726
3644
  };
3727
3645
  // determine it once
3728
3646
  supportsConstructableStylesheets();
3729
-
3730
- [
3731
- { name: 'Model', id: 'model' },
3732
- { name: 'Interest', id: 'interest' },
3733
- { name: 'VIN', id: 'vin' },
3734
- { name: 'Purchase Intention', id: 'purchaseIntention' },
3735
- { name: 'Status', id: 'status' },
3736
- { name: 'Comment', id: 'comment' },
3737
- { name: 'Lead ID', id: 'leadId' },
3738
- { name: 'Action', id: 'action', hideLabel: true },
3739
- ].map((item, i) => ({
3740
- ...item,
3741
- ...(i > 0 &&
3742
- i < 7 &&
3743
- i !== 5 && {
3744
- active: i === 1,
3745
- direction: 'asc',
3746
- }),
3747
- }));
3748
-
3749
- [
3750
- { name: 'Column 1', id: 'col1' },
3751
- { name: 'Column 2', id: 'col2' },
3752
- { name: 'Column 3', id: 'col3' },
3753
- ].map((item, i) => ({
3754
- ...item,
3755
- active: i === 1,
3756
- direction: 'asc',
3757
- }));
3758
-
3759
- Array.from(Array(4)).map(() => ({
3760
- imageUrl: 'https://nav.porsche.com/00BC524/series-assets/1366/911@2x.jpg',
3761
- imageWidth: 80,
3762
- imageHeight: 48,
3763
- html: "<a href='#'>link</a>&nbsp;<b>bold</b>&nbsp;<i>italic</i>&nbsp;<strong>strong</strong>&nbsp;<em>emphasized</em>",
3764
- longText: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr',
3765
- shortText: 'Some text',
3766
- }));
3767
-
3768
- var now = Date.now();
3769
- var fnValuesNs = "fnValues" + now;
3770
- var fnRuleNs = "fnStyle" + ++now;
3771
-
3772
- var functionPlugin = function functionPlugin() {
3773
- return {
3774
- onCreateRule: function onCreateRule(name, decl, options) {
3775
- if (typeof decl !== 'function') return null;
3776
- var rule = createRule(name, {}, options);
3777
- rule[fnRuleNs] = decl;
3778
- return rule;
3779
- },
3780
- onProcessStyle: function onProcessStyle(style, rule) {
3781
- // We need to extract function values from the declaration, so that we can keep core unaware of them.
3782
- // We need to do that only once.
3783
- // We don't need to extract functions on each style update, since this can happen only once.
3784
- // We don't support function values inside of function rules.
3785
- if (fnValuesNs in rule || fnRuleNs in rule) return style;
3786
- var fnValues = {};
3787
-
3788
- for (var prop in style) {
3789
- var value = style[prop];
3790
- if (typeof value !== 'function') continue;
3791
- delete style[prop];
3792
- fnValues[prop] = value;
3793
- }
3794
-
3795
- rule[fnValuesNs] = fnValues;
3796
- return style;
3797
- },
3798
- onUpdate: function onUpdate(data, rule, sheet, options) {
3799
- var styleRule = rule;
3800
- var fnRule = styleRule[fnRuleNs]; // If we have a style function, the entire rule is dynamic and style object
3801
- // will be returned from that function.
3802
-
3803
- if (fnRule) {
3804
- // Empty object will remove all currently defined props
3805
- // in case function rule returns a falsy value.
3806
- styleRule.style = fnRule(data) || {};
3807
-
3808
- if (process.env.NODE_ENV === 'development') {
3809
- for (var prop in styleRule.style) {
3810
- if (typeof styleRule.style[prop] === 'function') {
3811
- process.env.NODE_ENV !== "production" ? warning(false, '[JSS] Function values inside function rules are not supported.') : void 0;
3812
- break;
3813
- }
3814
- }
3815
- }
3816
- }
3817
-
3818
- var fnValues = styleRule[fnValuesNs]; // If we have a fn values map, it is a rule with function values.
3819
-
3820
- if (fnValues) {
3821
- for (var _prop in fnValues) {
3822
- styleRule.prop(_prop, fnValues[_prop](data), options);
3823
- }
3824
- }
3825
- }
3826
- };
3647
+ const isScrollable = (isPrevHidden, isNextHidden) => {
3648
+ return !(isPrevHidden && isNextHidden);
3827
3649
  };
3828
3650
 
3829
- function symbolObservablePonyfill(root) {
3830
- var result;
3831
- var Symbol = root.Symbol;
3832
-
3833
- if (typeof Symbol === 'function') {
3834
- if (Symbol.observable) {
3835
- result = Symbol.observable;
3836
- } else {
3837
- result = Symbol('observable');
3838
- Symbol.observable = result;
3839
- }
3840
- } else {
3841
- result = '@@observable';
3842
- }
3843
-
3844
- return result;
3845
- }
3846
-
3847
- /* global window */
3848
-
3849
- var root;
3850
-
3851
- if (typeof self !== 'undefined') {
3852
- root = self;
3853
- } else if (typeof window !== 'undefined') {
3854
- root = window;
3855
- } else if (typeof global !== 'undefined') {
3856
- root = global;
3857
- } else if (typeof module !== 'undefined') {
3858
- root = module;
3859
- } else {
3860
- root = Function('return this')();
3861
- }
3651
+ const hasDocument = typeof document !== 'undefined';
3862
3652
 
3863
- var result = symbolObservablePonyfill(root);
3653
+ hasDocument && 'scrollBehavior' in document.documentElement.style;
3654
+ const win = typeof window !== 'undefined' ? window : {};
3655
+ win.document || { head: {} };
3656
+ (win.HTMLElement || class {
3657
+ });
3864
3658
 
3865
- var isObservable = function isObservable(value) {
3866
- return value && value[result] && value === value[result]();
3659
+ const isThemeDark = (theme) => {
3660
+ return theme === 'dark';
3867
3661
  };
3868
3662
 
3869
- var observablePlugin = function observablePlugin(updateOptions) {
3870
- return {
3871
- onCreateRule: function onCreateRule(name, decl, options) {
3872
- if (!isObservable(decl)) return null;
3873
- var style$ = decl;
3874
- var rule = createRule(name, {}, options); // TODO
3875
- // Call `stream.subscribe()` returns a subscription, which should be explicitly
3876
- // unsubscribed from when we know this sheet is no longer needed.
3877
-
3878
- style$.subscribe(function (style) {
3879
- for (var prop in style) {
3880
- rule.prop(prop, style[prop], updateOptions);
3881
- }
3882
- });
3883
- return rule;
3884
- },
3885
- onProcessRule: function onProcessRule(rule) {
3886
- if (rule && rule.type !== 'style') return;
3887
- var styleRule = rule;
3888
- var style = styleRule.style;
3889
-
3890
- var _loop = function _loop(prop) {
3891
- var value = style[prop];
3892
- if (!isObservable(value)) return "continue";
3893
- delete style[prop];
3894
- value.subscribe({
3895
- next: function next(nextValue) {
3896
- styleRule.prop(prop, nextValue, updateOptions);
3897
- }
3898
- });
3899
- };
3900
-
3901
- for (var prop in style) {
3902
- var _ret = _loop(prop);
3903
-
3904
- if (_ret === "continue") continue;
3905
- }
3906
- }
3907
- };
3663
+ const formatObjectOutput = (value) => {
3664
+ return JSON.stringify(value)
3665
+ .replace(/"([a-zA-Z?]+)":/g, '$1:') // remove double quotes from keys
3666
+ .replace(/([,:{])/g, '$1 ') // add space after following: ,:{
3667
+ .replace(/(})/g, ' $1') // add space before following: }
3668
+ .replace(/^"(.+)"$/, '$1'); // remove wrapping double quotes
3908
3669
  };
3670
+ 'value, ' +
3671
+ formatObjectOutput(BREAKPOINTS.reduce((prev, key) => (Object.assign(Object.assign({}, prev), { [key + (key !== 'base' ? '?' : '')]: 'value' })), {})).replace(/"/g, '');
3909
3672
 
3910
- var semiWithNl = /;\n/;
3911
- /**
3912
- * Naive CSS parser.
3913
- * - Supports only rule body (no selectors)
3914
- * - Requires semicolon and new line after the value (except of last line)
3915
- * - No nested rules support
3916
- */
3917
-
3918
- var parse = function parse(cssText) {
3919
- var style = {};
3920
- var split = cssText.split(semiWithNl);
3921
-
3922
- for (var i = 0; i < split.length; i++) {
3923
- var decl = (split[i] || '').trim();
3924
- if (!decl) continue;
3925
- var colonIndex = decl.indexOf(':');
3926
-
3927
- if (colonIndex === -1) {
3928
- process.env.NODE_ENV !== "production" ? warning(false, "[JSS] Malformed CSS string \"" + decl + "\"") : void 0;
3929
- continue;
3930
- }
3931
-
3932
- var prop = decl.substr(0, colonIndex).trim();
3933
- var value = decl.substr(colonIndex + 1).trim();
3934
- style[prop] = value;
3935
- }
3673
+ const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
3936
3674
 
3937
- return style;
3675
+ const getLinkButtonThemeForIcon = (variant, theme) => variant === 'primary' ? (isThemeDark(theme) ? 'light' : 'dark') : theme;
3676
+ const resizeMap = new Map();
3677
+ const isResizeObserverDefined = () => hasWindow && 'ResizeObserver' in window;
3678
+ isResizeObserverDefined() &&
3679
+ new ResizeObserver((entries) => {
3680
+ entries.forEach((resizeEntry) => { var _a; return (_a = resizeMap.get(resizeEntry.target)) === null || _a === void 0 ? void 0 : _a(resizeEntry); });
3681
+ });
3682
+ const getButtonPureAriaAttributes = (isDisabled, isLoading, aria) => {
3683
+ return Object.assign(Object.assign({}, parseAndGetAriaAttributes(aria)), getButtonBaseAriaAttributes(isDisabled, isLoading));
3938
3684
  };
3939
3685
 
3940
- var onProcessRule = function onProcessRule(rule) {
3941
- if (typeof rule.style === 'string') {
3942
- rule.style = parse(rule.style);
3943
- }
3686
+ const getButtonAriaAttributes = (isDisabled, isLoading, aria) => {
3687
+ return Object.assign(Object.assign({}, parseAndGetAriaAttributes(aria)), getButtonBaseAriaAttributes(isDisabled, isLoading));
3944
3688
  };
3689
+ getMediaQueryMin('s');
3690
+ getMediaQueryMin('xxl');
3691
+ typeof HTMLElement !== 'undefined' && HTMLElement.prototype.hasOwnProperty('inert');
3945
3692
 
3946
- function templatePlugin() {
3947
- return {
3948
- onProcessRule: onProcessRule
3949
- };
3950
- }
3951
-
3952
- var isObject = function isObject(obj) {
3953
- return obj && typeof obj === 'object' && !Array.isArray(obj);
3693
+ const DISPLAY_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
3694
+ const displaySizeToTagMap = {
3695
+ small: 'h3',
3696
+ medium: 'h2',
3697
+ large: 'h1',
3698
+ inherit: 'h1',
3954
3699
  };
3955
-
3956
- var valueNs = "extendCurrValue" + Date.now();
3957
-
3958
- function mergeExtend(style, rule, sheet, newStyle) {
3959
- var extendType = typeof style.extend; // Extend using a rule name.
3960
-
3961
- if (extendType === 'string') {
3962
- if (!sheet) return;
3963
- var refRule = sheet.getRule(style.extend);
3964
- if (!refRule) return;
3965
-
3966
- if (refRule === rule) {
3967
- process.env.NODE_ENV !== "production" ? warning(false, "[JSS] A rule tries to extend itself \n" + rule.toString()) : void 0;
3968
- return;
3700
+ const getDisplayTagType = (host, size, tag) => {
3701
+ if (hasSpecificSlottedTag(host, DISPLAY_TAGS.join())) {
3702
+ return 'div';
3969
3703
  }
3970
-
3971
- var parent = refRule.options.parent;
3972
-
3973
- if (parent) {
3974
- var originalStyle = parent.rules.raw[style.extend];
3975
- extend(originalStyle, rule, sheet, newStyle);
3704
+ else if (tag) {
3705
+ return tag;
3976
3706
  }
3977
-
3978
- return;
3979
- } // Extend using an array.
3980
-
3981
-
3982
- if (Array.isArray(style.extend)) {
3983
- for (var index = 0; index < style.extend.length; index++) {
3984
- var singleExtend = style.extend[index];
3985
- var singleStyle = typeof singleExtend === 'string' ? _extends({}, style, {
3986
- extend: singleExtend
3987
- }) : style.extend[index];
3988
- extend(singleStyle, rule, sheet, newStyle);
3707
+ else {
3708
+ return displaySizeToTagMap[size] || 'h1';
3989
3709
  }
3990
-
3991
- return;
3992
- } // Extend is a style object.
3993
-
3994
-
3995
- for (var prop in style.extend) {
3996
- if (prop === 'extend') {
3997
- extend(style.extend.extend, rule, sheet, newStyle);
3998
- continue;
3710
+ };
3711
+ const headingSizeToTagMap = {
3712
+ small: 'h6',
3713
+ medium: 'h5',
3714
+ large: 'h4',
3715
+ 'x-large': 'h3',
3716
+ 'xx-large': 'h2',
3717
+ inherit: 'h2',
3718
+ };
3719
+ const getHeadingTagType = (host, size, tag) => {
3720
+ if (hasSpecificSlottedTag(host, HEADING_TAGS.join())) {
3721
+ return 'div';
3999
3722
  }
4000
-
4001
- if (isObject(style.extend[prop])) {
4002
- if (!(prop in newStyle)) newStyle[prop] = {};
4003
- extend(style.extend[prop], rule, sheet, newStyle[prop]);
4004
- continue;
3723
+ else if (tag) {
3724
+ return tag;
4005
3725
  }
4006
-
4007
- newStyle[prop] = style.extend[prop];
4008
- }
4009
- }
4010
-
4011
- function mergeRest(style, rule, sheet, newStyle) {
4012
- // Copy base style.
4013
- for (var prop in style) {
4014
- if (prop === 'extend') continue;
4015
-
4016
- if (isObject(newStyle[prop]) && isObject(style[prop])) {
4017
- extend(style[prop], rule, sheet, newStyle[prop]);
4018
- continue;
3726
+ else {
3727
+ return headingSizeToTagMap[size] || 'h2';
4019
3728
  }
4020
-
4021
- if (isObject(style[prop])) {
4022
- newStyle[prop] = extend(style[prop], rule, sheet);
4023
- continue;
3729
+ };
3730
+ const HEADLINE_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
3731
+ const variantToTagMap = {
3732
+ 'large-title': 'h1',
3733
+ 'headline-1': 'h1',
3734
+ 'headline-2': 'h2',
3735
+ 'headline-3': 'h3',
3736
+ 'headline-4': 'h4',
3737
+ 'headline-5': 'h5',
3738
+ };
3739
+ const getHeadlineTagType = (host, variant, tag) => {
3740
+ if (hasSpecificSlottedTag(host, HEADLINE_TAGS.join())) {
3741
+ return 'div';
4024
3742
  }
3743
+ else if (tag) {
3744
+ return tag;
3745
+ }
3746
+ else {
3747
+ return variantToTagMap[variant] || 'h1';
3748
+ }
3749
+ };
4025
3750
 
4026
- newStyle[prop] = style[prop];
4027
- }
4028
- }
4029
- /**
4030
- * Recursively extend styles.
4031
- */
4032
-
4033
-
4034
- function extend(style, rule, sheet, newStyle) {
4035
- if (newStyle === void 0) {
4036
- newStyle = {};
4037
- }
4038
-
4039
- mergeExtend(style, rule, sheet, newStyle);
4040
- mergeRest(style, rule, sheet, newStyle);
4041
- return newStyle;
4042
- }
4043
- /**
4044
- * Handle `extend` property.
4045
- */
4046
-
4047
-
4048
- function jssExtend() {
4049
- function onProcessStyle(style, rule, sheet) {
4050
- if ('extend' in style) return extend(style, rule, sheet);
4051
- return style;
4052
- }
4053
-
4054
- function onChangeValue(value, prop, rule) {
4055
- if (prop !== 'extend') return value; // Value is empty, remove properties set previously.
4056
-
4057
- if (value == null || value === false) {
4058
- for (var key in rule[valueNs]) {
4059
- rule.prop(key, null);
4060
- }
4061
-
4062
- rule[valueNs] = null;
4063
- return null;
4064
- }
4065
-
4066
- if (typeof value === 'object') {
4067
- for (var _key in value) {
4068
- rule.prop(_key, value[_key]);
4069
- }
4070
-
4071
- rule[valueNs] = value;
4072
- } // Make sure we don't set the value in the core.
4073
-
4074
-
4075
- return null;
4076
- }
4077
-
4078
- return {
4079
- onProcessStyle: onProcessStyle,
4080
- onChangeValue: onChangeValue
4081
- };
4082
- }
4083
-
4084
- /**
4085
- * Set selector.
4086
- *
4087
- * @param original rule
4088
- * @param className class string
4089
- * @return flag indicating function was successfull or not
4090
- */
4091
-
4092
- function registerClass(rule, className) {
4093
- // Skip falsy values
4094
- if (!className) return true; // Support array of class names `{composes: ['foo', 'bar']}`
4095
-
4096
- if (Array.isArray(className)) {
4097
- for (var index = 0; index < className.length; index++) {
4098
- var isSetted = registerClass(rule, className[index]);
4099
- if (!isSetted) return false;
4100
- }
4101
-
4102
- return true;
4103
- } // Support space separated class names `{composes: 'foo bar'}`
4104
-
4105
-
4106
- if (className.indexOf(' ') > -1) {
4107
- return registerClass(rule, className.split(' '));
4108
- }
4109
-
4110
- var parent = rule.options.parent; // It is a ref to a local rule.
4111
-
4112
- if (className[0] === '$') {
4113
- var refRule = parent.getRule(className.substr(1));
4114
-
4115
- if (!refRule) {
4116
- process.env.NODE_ENV !== "production" ? warning(false, "[JSS] Referenced rule is not defined. \n" + rule.toString()) : void 0;
4117
- return false;
4118
- }
4119
-
4120
- if (refRule === rule) {
4121
- process.env.NODE_ENV !== "production" ? warning(false, "[JSS] Cyclic composition detected. \n" + rule.toString()) : void 0;
4122
- return false;
4123
- }
4124
-
4125
- parent.classes[rule.key] += " " + parent.classes[refRule.key];
4126
- return true;
4127
- }
4128
-
4129
- parent.classes[rule.key] += " " + className;
4130
- return true;
4131
- }
4132
- /**
4133
- * Convert compose property to additional class, remove property from original styles.
4134
- */
4135
-
4136
-
4137
- function jssCompose() {
4138
- function onProcessStyle(style, rule) {
4139
- if (!('composes' in style)) return style;
4140
- registerClass(rule, style.composes); // Remove composes property to prevent infinite loop.
4141
-
4142
- delete style.composes;
4143
- return style;
4144
- }
4145
-
4146
- return {
4147
- onProcessStyle: onProcessStyle
4148
- };
4149
- }
4150
-
4151
- var px = hasCSSTOMSupport && CSS ? CSS.px : 'px';
4152
- var ms = hasCSSTOMSupport && CSS ? CSS.ms : 'ms';
4153
- var percent = hasCSSTOMSupport && CSS ? CSS.percent : '%';
4154
- /**
4155
- * Generated jss-plugin-default-unit CSS property units
4156
- */
4157
-
4158
- var defaultUnits = {
4159
- // Animation properties
4160
- 'animation-delay': ms,
4161
- 'animation-duration': ms,
4162
- // Background properties
4163
- 'background-position': px,
4164
- 'background-position-x': px,
4165
- 'background-position-y': px,
4166
- 'background-size': px,
4167
- // Border Properties
4168
- border: px,
4169
- 'border-bottom': px,
4170
- 'border-bottom-left-radius': px,
4171
- 'border-bottom-right-radius': px,
4172
- 'border-bottom-width': px,
4173
- 'border-left': px,
4174
- 'border-left-width': px,
4175
- 'border-radius': px,
4176
- 'border-right': px,
4177
- 'border-right-width': px,
4178
- 'border-top': px,
4179
- 'border-top-left-radius': px,
4180
- 'border-top-right-radius': px,
4181
- 'border-top-width': px,
4182
- 'border-width': px,
4183
- 'border-block': px,
4184
- 'border-block-end': px,
4185
- 'border-block-end-width': px,
4186
- 'border-block-start': px,
4187
- 'border-block-start-width': px,
4188
- 'border-block-width': px,
4189
- 'border-inline': px,
4190
- 'border-inline-end': px,
4191
- 'border-inline-end-width': px,
4192
- 'border-inline-start': px,
4193
- 'border-inline-start-width': px,
4194
- 'border-inline-width': px,
4195
- 'border-start-start-radius': px,
4196
- 'border-start-end-radius': px,
4197
- 'border-end-start-radius': px,
4198
- 'border-end-end-radius': px,
4199
- // Margin properties
4200
- margin: px,
4201
- 'margin-bottom': px,
4202
- 'margin-left': px,
4203
- 'margin-right': px,
4204
- 'margin-top': px,
4205
- 'margin-block': px,
4206
- 'margin-block-end': px,
4207
- 'margin-block-start': px,
4208
- 'margin-inline': px,
4209
- 'margin-inline-end': px,
4210
- 'margin-inline-start': px,
4211
- // Padding properties
4212
- padding: px,
4213
- 'padding-bottom': px,
4214
- 'padding-left': px,
4215
- 'padding-right': px,
4216
- 'padding-top': px,
4217
- 'padding-block': px,
4218
- 'padding-block-end': px,
4219
- 'padding-block-start': px,
4220
- 'padding-inline': px,
4221
- 'padding-inline-end': px,
4222
- 'padding-inline-start': px,
4223
- // Mask properties
4224
- 'mask-position-x': px,
4225
- 'mask-position-y': px,
4226
- 'mask-size': px,
4227
- // Width and height properties
4228
- height: px,
4229
- width: px,
4230
- 'min-height': px,
4231
- 'max-height': px,
4232
- 'min-width': px,
4233
- 'max-width': px,
4234
- // Position properties
4235
- bottom: px,
4236
- left: px,
4237
- top: px,
4238
- right: px,
4239
- inset: px,
4240
- 'inset-block': px,
4241
- 'inset-block-end': px,
4242
- 'inset-block-start': px,
4243
- 'inset-inline': px,
4244
- 'inset-inline-end': px,
4245
- 'inset-inline-start': px,
4246
- // Shadow properties
4247
- 'box-shadow': px,
4248
- 'text-shadow': px,
4249
- // Column properties
4250
- 'column-gap': px,
4251
- 'column-rule': px,
4252
- 'column-rule-width': px,
4253
- 'column-width': px,
4254
- // Font and text properties
4255
- 'font-size': px,
4256
- 'font-size-delta': px,
4257
- 'letter-spacing': px,
4258
- 'text-decoration-thickness': px,
4259
- 'text-indent': px,
4260
- 'text-stroke': px,
4261
- 'text-stroke-width': px,
4262
- 'word-spacing': px,
4263
- // Motion properties
4264
- motion: px,
4265
- 'motion-offset': px,
4266
- // Outline properties
4267
- outline: px,
4268
- 'outline-offset': px,
4269
- 'outline-width': px,
4270
- // Perspective properties
4271
- perspective: px,
4272
- 'perspective-origin-x': percent,
4273
- 'perspective-origin-y': percent,
4274
- // Transform properties
4275
- 'transform-origin': percent,
4276
- 'transform-origin-x': percent,
4277
- 'transform-origin-y': percent,
4278
- 'transform-origin-z': percent,
4279
- // Transition properties
4280
- 'transition-delay': ms,
4281
- 'transition-duration': ms,
4282
- // Alignment properties
4283
- 'vertical-align': px,
4284
- 'flex-basis': px,
4285
- // Some random properties
4286
- 'shape-margin': px,
4287
- size: px,
4288
- gap: px,
4289
- // Grid properties
4290
- grid: px,
4291
- 'grid-gap': px,
4292
- 'row-gap': px,
4293
- 'grid-row-gap': px,
4294
- 'grid-column-gap': px,
4295
- 'grid-template-rows': px,
4296
- 'grid-template-columns': px,
4297
- 'grid-auto-rows': px,
4298
- 'grid-auto-columns': px,
4299
- // Not existing properties.
4300
- // Used to avoid issues with jss-plugin-expand integration.
4301
- 'box-shadow-x': px,
4302
- 'box-shadow-y': px,
4303
- 'box-shadow-blur': px,
4304
- 'box-shadow-spread': px,
4305
- 'font-line-height': px,
4306
- 'text-shadow-x': px,
4307
- 'text-shadow-y': px,
4308
- 'text-shadow-blur': px
4309
- };
4310
-
4311
- /**
4312
- * Clones the object and adds a camel cased property version.
4313
- */
4314
-
4315
- function addCamelCasedVersion(obj) {
4316
- var regExp = /(-[a-z])/g;
4317
-
4318
- var replace = function replace(str) {
4319
- return str[1].toUpperCase();
4320
- };
4321
-
4322
- var newObj = {};
4323
-
4324
- for (var key in obj) {
4325
- newObj[key] = obj[key];
4326
- newObj[key.replace(regExp, replace)] = obj[key];
4327
- }
4328
-
4329
- return newObj;
4330
- }
4331
-
4332
- var units = addCamelCasedVersion(defaultUnits);
4333
- /**
4334
- * Recursive deep style passing function
4335
- */
4336
-
4337
- function iterate(prop, value, options) {
4338
- if (value == null) return value;
4339
-
4340
- if (Array.isArray(value)) {
4341
- for (var i = 0; i < value.length; i++) {
4342
- value[i] = iterate(prop, value[i], options);
4343
- }
4344
- } else if (typeof value === 'object') {
4345
- if (prop === 'fallbacks') {
4346
- for (var innerProp in value) {
4347
- value[innerProp] = iterate(innerProp, value[innerProp], options);
4348
- }
4349
- } else {
4350
- for (var _innerProp in value) {
4351
- value[_innerProp] = iterate(prop + "-" + _innerProp, value[_innerProp], options);
4352
- }
4353
- } // eslint-disable-next-line no-restricted-globals
4354
-
4355
- } else if (typeof value === 'number' && isNaN(value) === false) {
4356
- var unit = options[prop] || units[prop]; // Add the unit if available, except for the special case of 0px.
4357
-
4358
- if (unit && !(value === 0 && unit === px)) {
4359
- return typeof unit === 'function' ? unit(value).toString() : "" + value + unit;
4360
- }
4361
-
4362
- return value.toString();
4363
- }
4364
-
4365
- return value;
4366
- }
4367
- /**
4368
- * Add unit to numeric values.
4369
- */
4370
-
4371
-
4372
- function defaultUnit(options) {
4373
- if (options === void 0) {
4374
- options = {};
4375
- }
4376
-
4377
- var camelCasedOptions = addCamelCasedVersion(options);
4378
-
4379
- function onProcessStyle(style, rule) {
4380
- if (rule.type !== 'style') return style;
4381
-
4382
- for (var prop in style) {
4383
- style[prop] = iterate(prop, style[prop], camelCasedOptions);
4384
- }
4385
-
4386
- return style;
4387
- }
4388
-
4389
- function onChangeValue(value, prop) {
4390
- return iterate(prop, value, camelCasedOptions);
4391
- }
4392
-
4393
- return {
4394
- onProcessStyle: onProcessStyle,
4395
- onChangeValue: onChangeValue
4396
- };
4397
- }
4398
-
4399
- /**
4400
- * A scheme for converting properties from array to regular style.
4401
- * All properties listed below will be transformed to a string separated by space.
4402
- */
4403
- var propArray = {
4404
- 'background-size': true,
4405
- 'background-position': true,
4406
- border: true,
4407
- 'border-bottom': true,
4408
- 'border-left': true,
4409
- 'border-top': true,
4410
- 'border-right': true,
4411
- 'border-radius': true,
4412
- 'border-image': true,
4413
- 'border-width': true,
4414
- 'border-style': true,
4415
- 'border-color': true,
4416
- 'box-shadow': true,
4417
- flex: true,
4418
- margin: true,
4419
- padding: true,
4420
- outline: true,
4421
- 'transform-origin': true,
4422
- transform: true,
4423
- transition: true
4424
- /**
4425
- * A scheme for converting arrays to regular styles inside of objects.
4426
- * For e.g.: "{position: [0, 0]}" => "background-position: 0 0;".
4427
- */
4428
-
4429
- };
4430
- var propArrayInObj = {
4431
- position: true,
4432
- // background-position
4433
- size: true // background-size
4434
-
4435
- /**
4436
- * A scheme for parsing and building correct styles from passed objects.
4437
- */
4438
-
4439
- };
4440
- var propObj = {
4441
- padding: {
4442
- top: 0,
4443
- right: 0,
4444
- bottom: 0,
4445
- left: 0
4446
- },
4447
- margin: {
4448
- top: 0,
4449
- right: 0,
4450
- bottom: 0,
4451
- left: 0
4452
- },
4453
- background: {
4454
- attachment: null,
4455
- color: null,
4456
- image: null,
4457
- position: null,
4458
- repeat: null
4459
- },
4460
- border: {
4461
- width: null,
4462
- style: null,
4463
- color: null
4464
- },
4465
- 'border-top': {
4466
- width: null,
4467
- style: null,
4468
- color: null
4469
- },
4470
- 'border-right': {
4471
- width: null,
4472
- style: null,
4473
- color: null
4474
- },
4475
- 'border-bottom': {
4476
- width: null,
4477
- style: null,
4478
- color: null
4479
- },
4480
- 'border-left': {
4481
- width: null,
4482
- style: null,
4483
- color: null
4484
- },
4485
- outline: {
4486
- width: null,
4487
- style: null,
4488
- color: null
4489
- },
4490
- 'list-style': {
4491
- type: null,
4492
- position: null,
4493
- image: null
4494
- },
4495
- transition: {
4496
- property: null,
4497
- duration: null,
4498
- 'timing-function': null,
4499
- timingFunction: null,
4500
- // Needed for avoiding comilation issues with jss-plugin-camel-case
4501
- delay: null
4502
- },
4503
- animation: {
4504
- name: null,
4505
- duration: null,
4506
- 'timing-function': null,
4507
- timingFunction: null,
4508
- // Needed to avoid compilation issues with jss-plugin-camel-case
4509
- delay: null,
4510
- 'iteration-count': null,
4511
- iterationCount: null,
4512
- // Needed to avoid compilation issues with jss-plugin-camel-case
4513
- direction: null,
4514
- 'fill-mode': null,
4515
- fillMode: null,
4516
- // Needed to avoid compilation issues with jss-plugin-camel-case
4517
- 'play-state': null,
4518
- playState: null // Needed to avoid compilation issues with jss-plugin-camel-case
4519
-
4520
- },
4521
- 'box-shadow': {
4522
- x: 0,
4523
- y: 0,
4524
- blur: 0,
4525
- spread: 0,
4526
- color: null,
4527
- inset: null
4528
- },
4529
- 'text-shadow': {
4530
- x: 0,
4531
- y: 0,
4532
- blur: null,
4533
- color: null
4534
- }
4535
- /**
4536
- * A scheme for converting non-standart properties inside object.
4537
- * For e.g.: include 'border-radius' property inside 'border' object.
4538
- */
4539
-
4540
- };
4541
- var customPropObj = {
4542
- border: {
4543
- radius: 'border-radius',
4544
- image: 'border-image',
4545
- width: 'border-width',
4546
- style: 'border-style',
4547
- color: 'border-color'
4548
- },
4549
- 'border-bottom': {
4550
- width: 'border-bottom-width',
4551
- style: 'border-bottom-style',
4552
- color: 'border-bottom-color'
4553
- },
4554
- 'border-top': {
4555
- width: 'border-top-width',
4556
- style: 'border-top-style',
4557
- color: 'border-top-color'
4558
- },
4559
- 'border-left': {
4560
- width: 'border-left-width',
4561
- style: 'border-left-style',
4562
- color: 'border-left-color'
4563
- },
4564
- 'border-right': {
4565
- width: 'border-right-width',
4566
- style: 'border-right-style',
4567
- color: 'border-right-color'
4568
- },
4569
- background: {
4570
- size: 'background-size',
4571
- image: 'background-image'
4572
- },
4573
- font: {
4574
- style: 'font-style',
4575
- variant: 'font-variant',
4576
- weight: 'font-weight',
4577
- stretch: 'font-stretch',
4578
- size: 'font-size',
4579
- family: 'font-family',
4580
- lineHeight: 'line-height',
4581
- // Needed to avoid compilation issues with jss-plugin-camel-case
4582
- 'line-height': 'line-height'
4583
- },
4584
- flex: {
4585
- grow: 'flex-grow',
4586
- basis: 'flex-basis',
4587
- direction: 'flex-direction',
4588
- wrap: 'flex-wrap',
4589
- flow: 'flex-flow',
4590
- shrink: 'flex-shrink'
4591
- },
4592
- align: {
4593
- self: 'align-self',
4594
- items: 'align-items',
4595
- content: 'align-content'
4596
- },
4597
- grid: {
4598
- 'template-columns': 'grid-template-columns',
4599
- templateColumns: 'grid-template-columns',
4600
- 'template-rows': 'grid-template-rows',
4601
- templateRows: 'grid-template-rows',
4602
- 'template-areas': 'grid-template-areas',
4603
- templateAreas: 'grid-template-areas',
4604
- template: 'grid-template',
4605
- 'auto-columns': 'grid-auto-columns',
4606
- autoColumns: 'grid-auto-columns',
4607
- 'auto-rows': 'grid-auto-rows',
4608
- autoRows: 'grid-auto-rows',
4609
- 'auto-flow': 'grid-auto-flow',
4610
- autoFlow: 'grid-auto-flow',
4611
- row: 'grid-row',
4612
- column: 'grid-column',
4613
- 'row-start': 'grid-row-start',
4614
- rowStart: 'grid-row-start',
4615
- 'row-end': 'grid-row-end',
4616
- rowEnd: 'grid-row-end',
4617
- 'column-start': 'grid-column-start',
4618
- columnStart: 'grid-column-start',
4619
- 'column-end': 'grid-column-end',
4620
- columnEnd: 'grid-column-end',
4621
- area: 'grid-area',
4622
- gap: 'grid-gap',
4623
- 'row-gap': 'grid-row-gap',
4624
- rowGap: 'grid-row-gap',
4625
- 'column-gap': 'grid-column-gap',
4626
- columnGap: 'grid-column-gap'
4627
- }
4628
- };
4629
-
4630
- /* eslint-disable no-use-before-define */
4631
- /**
4632
- * Map values by given prop.
4633
- *
4634
- * @param {Array} array of values
4635
- * @param {String} original property
4636
- * @param {String} original rule
4637
- * @return {String} mapped values
4638
- */
4639
-
4640
- function mapValuesByProp(value, prop, rule) {
4641
- return value.map(function (item) {
4642
- return objectToArray(item, prop, rule, false, true);
4643
- });
4644
- }
4645
- /**
4646
- * Convert array to nested array, if needed
4647
- */
4648
-
4649
-
4650
- function processArray(value, prop, scheme, rule) {
4651
- if (scheme[prop] == null) return value;
4652
- if (value.length === 0) return [];
4653
- if (Array.isArray(value[0])) return processArray(value[0], prop, scheme, rule);
4654
-
4655
- if (typeof value[0] === 'object') {
4656
- return mapValuesByProp(value, prop, rule);
4657
- }
4658
-
4659
- return [value];
4660
- }
4661
- /**
4662
- * Convert object to array.
4663
- */
4664
-
4665
-
4666
- function objectToArray(value, prop, rule, isFallback, isInArray) {
4667
- if (!(propObj[prop] || customPropObj[prop])) return [];
4668
- var result = []; // Check if exists any non-standard property
4669
-
4670
- if (customPropObj[prop]) {
4671
- // eslint-disable-next-line no-param-reassign
4672
- value = customPropsToStyle(value, rule, customPropObj[prop], isFallback);
4673
- } // Pass throught all standart props
4674
-
4675
-
4676
- if (Object.keys(value).length) {
4677
- for (var baseProp in propObj[prop]) {
4678
- if (value[baseProp]) {
4679
- if (Array.isArray(value[baseProp])) {
4680
- result.push(propArrayInObj[baseProp] === null ? value[baseProp] : value[baseProp].join(' '));
4681
- } else result.push(value[baseProp]);
4682
-
4683
- continue;
4684
- } // Add default value from props config.
4685
-
4686
-
4687
- if (propObj[prop][baseProp] != null) {
4688
- result.push(propObj[prop][baseProp]);
4689
- }
4690
- }
4691
- }
4692
-
4693
- if (!result.length || isInArray) return result;
4694
- return [result];
4695
- }
4696
- /**
4697
- * Convert custom properties values to styles adding them to rule directly
4698
- */
4699
-
4700
-
4701
- function customPropsToStyle(value, rule, customProps, isFallback) {
4702
- for (var prop in customProps) {
4703
- var propName = customProps[prop]; // If current property doesn't exist already in rule - add new one
4704
-
4705
- if (typeof value[prop] !== 'undefined' && (isFallback || !rule.prop(propName))) {
4706
- var _styleDetector;
4707
-
4708
- var appendedValue = styleDetector((_styleDetector = {}, _styleDetector[propName] = value[prop], _styleDetector), rule)[propName]; // Add style directly in rule
4709
-
4710
- if (isFallback) rule.style.fallbacks[propName] = appendedValue;else rule.style[propName] = appendedValue;
4711
- } // Delete converted property to avoid double converting
4712
-
4713
-
4714
- delete value[prop];
4715
- }
4716
-
4717
- return value;
4718
- }
4719
- /**
4720
- * Detect if a style needs to be converted.
4721
- */
4722
-
4723
-
4724
- function styleDetector(style, rule, isFallback) {
4725
- for (var prop in style) {
4726
- var value = style[prop];
4727
-
4728
- if (Array.isArray(value)) {
4729
- // Check double arrays to avoid recursion.
4730
- if (!Array.isArray(value[0])) {
4731
- if (prop === 'fallbacks') {
4732
- for (var index = 0; index < style.fallbacks.length; index++) {
4733
- style.fallbacks[index] = styleDetector(style.fallbacks[index], rule, true);
4734
- }
4735
-
4736
- continue;
4737
- }
4738
-
4739
- style[prop] = processArray(value, prop, propArray, rule); // Avoid creating properties with empty values
4740
-
4741
- if (!style[prop].length) delete style[prop];
4742
- }
4743
- } else if (typeof value === 'object') {
4744
- if (prop === 'fallbacks') {
4745
- style.fallbacks = styleDetector(style.fallbacks, rule, true);
4746
- continue;
4747
- }
4748
-
4749
- style[prop] = objectToArray(value, prop, rule, isFallback); // Avoid creating properties with empty values
4750
-
4751
- if (!style[prop].length) delete style[prop];
4752
- } // Maybe a computed value resulting in an empty string
4753
- else if (style[prop] === '') delete style[prop];
4754
- }
4755
-
4756
- return style;
4757
- }
4758
- /**
4759
- * Adds possibility to write expanded styles.
4760
- */
4761
-
4762
-
4763
- function jssExpand() {
4764
- function onProcessStyle(style, rule) {
4765
- if (!style || rule.type !== 'style') return style;
4766
-
4767
- if (Array.isArray(style)) {
4768
- // Pass rules one by one and reformat them
4769
- for (var index = 0; index < style.length; index++) {
4770
- style[index] = styleDetector(style[index], rule);
4771
- }
4772
-
4773
- return style;
4774
- }
4775
-
4776
- return styleDetector(style, rule);
4777
- }
4778
-
4779
- return {
4780
- onProcessStyle: onProcessStyle
4781
- };
4782
- }
4783
-
4784
- var cssVendor_cjs = {};
4785
-
4786
- var require$$0 = /*@__PURE__*/getAugmentedNamespace(module$1);
4787
-
4788
- var toConsumableArrayExports = {};
4789
- var toConsumableArray = {
4790
- get exports(){ return toConsumableArrayExports; },
4791
- set exports(v){ toConsumableArrayExports = v; },
4792
- };
4793
-
4794
- var arrayWithoutHolesExports = {};
4795
- var arrayWithoutHoles = {
4796
- get exports(){ return arrayWithoutHolesExports; },
4797
- set exports(v){ arrayWithoutHolesExports = v; },
4798
- };
4799
-
4800
- var arrayLikeToArrayExports = {};
4801
- var arrayLikeToArray = {
4802
- get exports(){ return arrayLikeToArrayExports; },
4803
- set exports(v){ arrayLikeToArrayExports = v; },
4804
- };
4805
-
4806
- (function (module) {
4807
- function _arrayLikeToArray(arr, len) {
4808
- if (len == null || len > arr.length) len = arr.length;
4809
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
4810
- return arr2;
4811
- }
4812
- module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
4813
- } (arrayLikeToArray));
4814
-
4815
- (function (module) {
4816
- var arrayLikeToArray = arrayLikeToArrayExports;
4817
- function _arrayWithoutHoles(arr) {
4818
- if (Array.isArray(arr)) return arrayLikeToArray(arr);
4819
- }
4820
- module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
4821
- } (arrayWithoutHoles));
4822
-
4823
- var iterableToArrayExports = {};
4824
- var iterableToArray = {
4825
- get exports(){ return iterableToArrayExports; },
4826
- set exports(v){ iterableToArrayExports = v; },
4827
- };
4828
-
4829
- (function (module) {
4830
- function _iterableToArray(iter) {
4831
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
4832
- }
4833
- module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
4834
- } (iterableToArray));
4835
-
4836
- var unsupportedIterableToArrayExports = {};
4837
- var unsupportedIterableToArray = {
4838
- get exports(){ return unsupportedIterableToArrayExports; },
4839
- set exports(v){ unsupportedIterableToArrayExports = v; },
4840
- };
4841
-
4842
- (function (module) {
4843
- var arrayLikeToArray = arrayLikeToArrayExports;
4844
- function _unsupportedIterableToArray(o, minLen) {
4845
- if (!o) return;
4846
- if (typeof o === "string") return arrayLikeToArray(o, minLen);
4847
- var n = Object.prototype.toString.call(o).slice(8, -1);
4848
- if (n === "Object" && o.constructor) n = o.constructor.name;
4849
- if (n === "Map" || n === "Set") return Array.from(o);
4850
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
4851
- }
4852
- module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
4853
- } (unsupportedIterableToArray));
4854
-
4855
- var nonIterableSpreadExports = {};
4856
- var nonIterableSpread = {
4857
- get exports(){ return nonIterableSpreadExports; },
4858
- set exports(v){ nonIterableSpreadExports = v; },
4859
- };
4860
-
4861
- (function (module) {
4862
- function _nonIterableSpread() {
4863
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4864
- }
4865
- module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
4866
- } (nonIterableSpread));
4867
-
4868
- (function (module) {
4869
- var arrayWithoutHoles = arrayWithoutHolesExports;
4870
- var iterableToArray = iterableToArrayExports;
4871
- var unsupportedIterableToArray = unsupportedIterableToArrayExports;
4872
- var nonIterableSpread = nonIterableSpreadExports;
4873
- function _toConsumableArray(arr) {
4874
- return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
4875
- }
4876
- module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
4877
- } (toConsumableArray));
4878
-
4879
- Object.defineProperty(cssVendor_cjs, '__esModule', { value: true });
4880
-
4881
- function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4882
-
4883
- var isInBrowser = _interopDefault(require$$0);
4884
- var _toConsumableArray = _interopDefault(toConsumableArrayExports);
4885
-
4886
- // Export javascript style and css style vendor prefixes.
4887
- var js = '';
4888
- var css = '';
4889
- var vendor = '';
4890
- var browser = '';
4891
- var isTouch = isInBrowser && 'ontouchstart' in document.documentElement; // We should not do anything if required serverside.
4892
-
4893
- if (isInBrowser) {
4894
- // Order matters. We need to check Webkit the last one because
4895
- // other vendors use to add Webkit prefixes to some properties
4896
- var jsCssMap = {
4897
- Moz: '-moz-',
4898
- ms: '-ms-',
4899
- O: '-o-',
4900
- Webkit: '-webkit-'
4901
- };
4902
-
4903
- var _document$createEleme = document.createElement('p'),
4904
- style = _document$createEleme.style;
4905
-
4906
- var testProp = 'Transform';
4907
-
4908
- for (var key in jsCssMap) {
4909
- if (key + testProp in style) {
4910
- js = key;
4911
- css = jsCssMap[key];
4912
- break;
4913
- }
4914
- } // Correctly detect the Edge browser.
4915
-
4916
-
4917
- if (js === 'Webkit' && 'msHyphens' in style) {
4918
- js = 'ms';
4919
- css = jsCssMap.ms;
4920
- browser = 'edge';
4921
- } // Correctly detect the Safari browser.
4922
-
4923
-
4924
- if (js === 'Webkit' && '-apple-trailing-word' in style) {
4925
- vendor = 'apple';
4926
- }
4927
- }
4928
- /**
4929
- * Vendor prefix string for the current browser.
4930
- *
4931
- * @type {{js: String, css: String, vendor: String, browser: String}}
4932
- * @api public
4933
- */
4934
-
4935
-
4936
- var prefix = {
4937
- js: js,
4938
- css: css,
4939
- vendor: vendor,
4940
- browser: browser,
4941
- isTouch: isTouch
4942
- };
4943
-
4944
- /**
4945
- * Test if a keyframe at-rule should be prefixed or not
4946
- *
4947
- * @param {String} vendor prefix string for the current browser.
4948
- * @return {String}
4949
- * @api public
4950
- */
4951
-
4952
- function supportedKeyframes(key) {
4953
- // Keyframes is already prefixed. e.g. key = '@-webkit-keyframes a'
4954
- if (key[1] === '-') return key; // No need to prefix IE/Edge. Older browsers will ignore unsupported rules.
4955
- // https://caniuse.com/#search=keyframes
4956
-
4957
- if (prefix.js === 'ms') return key;
4958
- return "@" + prefix.css + "keyframes" + key.substr(10);
4959
- }
4960
-
4961
- // https://caniuse.com/#search=appearance
4962
-
4963
- var appearence = {
4964
- noPrefill: ['appearance'],
4965
- supportedProperty: function supportedProperty(prop) {
4966
- if (prop !== 'appearance') return false;
4967
- if (prefix.js === 'ms') return "-webkit-" + prop;
4968
- return prefix.css + prop;
4969
- }
4970
- };
4971
-
4972
- // https://caniuse.com/#search=color-adjust
4973
-
4974
- var colorAdjust = {
4975
- noPrefill: ['color-adjust'],
4976
- supportedProperty: function supportedProperty(prop) {
4977
- if (prop !== 'color-adjust') return false;
4978
- if (prefix.js === 'Webkit') return prefix.css + "print-" + prop;
4979
- return prop;
4980
- }
4981
- };
4982
-
4983
- var regExp = /[-\s]+(.)?/g;
4984
- /**
4985
- * Replaces the letter with the capital letter
4986
- *
4987
- * @param {String} match
4988
- * @param {String} c
4989
- * @return {String}
4990
- * @api private
4991
- */
4992
-
4993
- function toUpper(match, c) {
4994
- return c ? c.toUpperCase() : '';
4995
- }
4996
- /**
4997
- * Convert dash separated strings to camel-cased.
4998
- *
4999
- * @param {String} str
5000
- * @return {String}
5001
- * @api private
5002
- */
5003
-
5004
-
5005
- function camelize(str) {
5006
- return str.replace(regExp, toUpper);
5007
- }
5008
-
5009
- /**
5010
- * Convert dash separated strings to pascal cased.
5011
- *
5012
- * @param {String} str
5013
- * @return {String}
5014
- * @api private
5015
- */
5016
-
5017
- function pascalize(str) {
5018
- return camelize("-" + str);
5019
- }
5020
-
5021
- // but we can use a longhand property instead.
5022
- // https://caniuse.com/#search=mask
5023
-
5024
- var mask = {
5025
- noPrefill: ['mask'],
5026
- supportedProperty: function supportedProperty(prop, style) {
5027
- if (!/^mask/.test(prop)) return false;
5028
-
5029
- if (prefix.js === 'Webkit') {
5030
- var longhand = 'mask-image';
5031
-
5032
- if (camelize(longhand) in style) {
5033
- return prop;
5034
- }
5035
-
5036
- if (prefix.js + pascalize(longhand) in style) {
5037
- return prefix.css + prop;
5038
- }
5039
- }
5040
-
5041
- return prop;
5042
- }
5043
- };
5044
-
5045
- // https://caniuse.com/#search=text-orientation
5046
-
5047
- var textOrientation = {
5048
- noPrefill: ['text-orientation'],
5049
- supportedProperty: function supportedProperty(prop) {
5050
- if (prop !== 'text-orientation') return false;
5051
-
5052
- if (prefix.vendor === 'apple' && !prefix.isTouch) {
5053
- return prefix.css + prop;
5054
- }
5055
-
5056
- return prop;
5057
- }
5058
- };
5059
-
5060
- // https://caniuse.com/#search=transform
5061
-
5062
- var transform = {
5063
- noPrefill: ['transform'],
5064
- supportedProperty: function supportedProperty(prop, style, options) {
5065
- if (prop !== 'transform') return false;
5066
-
5067
- if (options.transform) {
5068
- return prop;
5069
- }
5070
-
5071
- return prefix.css + prop;
5072
- }
5073
- };
5074
-
5075
- // https://caniuse.com/#search=transition
5076
-
5077
- var transition = {
5078
- noPrefill: ['transition'],
5079
- supportedProperty: function supportedProperty(prop, style, options) {
5080
- if (prop !== 'transition') return false;
5081
-
5082
- if (options.transition) {
5083
- return prop;
5084
- }
5085
-
5086
- return prefix.css + prop;
5087
- }
5088
- };
5089
-
5090
- // https://caniuse.com/#search=writing-mode
5091
-
5092
- var writingMode = {
5093
- noPrefill: ['writing-mode'],
5094
- supportedProperty: function supportedProperty(prop) {
5095
- if (prop !== 'writing-mode') return false;
5096
-
5097
- if (prefix.js === 'Webkit' || prefix.js === 'ms' && prefix.browser !== 'edge') {
5098
- return prefix.css + prop;
5099
- }
5100
-
5101
- return prop;
5102
- }
5103
- };
5104
-
5105
- // https://caniuse.com/#search=user-select
5106
-
5107
- var userSelect = {
5108
- noPrefill: ['user-select'],
5109
- supportedProperty: function supportedProperty(prop) {
5110
- if (prop !== 'user-select') return false;
5111
-
5112
- if (prefix.js === 'Moz' || prefix.js === 'ms' || prefix.vendor === 'apple') {
5113
- return prefix.css + prop;
5114
- }
5115
-
5116
- return prop;
5117
- }
5118
- };
5119
-
5120
- // https://caniuse.com/#search=multicolumn
5121
- // https://github.com/postcss/autoprefixer/issues/491
5122
- // https://github.com/postcss/autoprefixer/issues/177
5123
-
5124
- var breakPropsOld = {
5125
- supportedProperty: function supportedProperty(prop, style) {
5126
- if (!/^break-/.test(prop)) return false;
5127
-
5128
- if (prefix.js === 'Webkit') {
5129
- var jsProp = "WebkitColumn" + pascalize(prop);
5130
- return jsProp in style ? prefix.css + "column-" + prop : false;
5131
- }
5132
-
5133
- if (prefix.js === 'Moz') {
5134
- var _jsProp = "page" + pascalize(prop);
5135
-
5136
- return _jsProp in style ? "page-" + prop : false;
5137
- }
5138
-
5139
- return false;
5140
- }
5141
- };
5142
-
5143
- // See https://github.com/postcss/autoprefixer/issues/324.
5144
-
5145
- var inlineLogicalOld = {
5146
- supportedProperty: function supportedProperty(prop, style) {
5147
- if (!/^(border|margin|padding)-inline/.test(prop)) return false;
5148
- if (prefix.js === 'Moz') return prop;
5149
- var newProp = prop.replace('-inline', '');
5150
- return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;
5151
- }
5152
- };
5153
-
5154
- // Camelization is required because we can't test using.
5155
- // CSS syntax for e.g. in FF.
5156
-
5157
- var unprefixed = {
5158
- supportedProperty: function supportedProperty(prop, style) {
5159
- return camelize(prop) in style ? prop : false;
5160
- }
5161
- };
5162
-
5163
- var prefixed = {
5164
- supportedProperty: function supportedProperty(prop, style) {
5165
- var pascalized = pascalize(prop); // Return custom CSS variable without prefixing.
5166
-
5167
- if (prop[0] === '-') return prop; // Return already prefixed value without prefixing.
5168
-
5169
- if (prop[0] === '-' && prop[1] === '-') return prop;
5170
- if (prefix.js + pascalized in style) return prefix.css + prop; // Try webkit fallback.
5171
-
5172
- if (prefix.js !== 'Webkit' && "Webkit" + pascalized in style) return "-webkit-" + prop;
5173
- return false;
5174
- }
5175
- };
5176
-
5177
- // https://caniuse.com/#search=scroll-snap
5178
-
5179
- var scrollSnap = {
5180
- supportedProperty: function supportedProperty(prop) {
5181
- if (prop.substring(0, 11) !== 'scroll-snap') return false;
5182
-
5183
- if (prefix.js === 'ms') {
5184
- return "" + prefix.css + prop;
5185
- }
5186
-
5187
- return prop;
5188
- }
5189
- };
5190
-
5191
- // https://caniuse.com/#search=overscroll-behavior
5192
-
5193
- var overscrollBehavior = {
5194
- supportedProperty: function supportedProperty(prop) {
5195
- if (prop !== 'overscroll-behavior') return false;
5196
-
5197
- if (prefix.js === 'ms') {
5198
- return prefix.css + "scroll-chaining";
5199
- }
5200
-
5201
- return prop;
5202
- }
5203
- };
5204
-
5205
- var propMap = {
5206
- 'flex-grow': 'flex-positive',
5207
- 'flex-shrink': 'flex-negative',
5208
- 'flex-basis': 'flex-preferred-size',
5209
- 'justify-content': 'flex-pack',
5210
- order: 'flex-order',
5211
- 'align-items': 'flex-align',
5212
- 'align-content': 'flex-line-pack' // 'align-self' is handled by 'align-self' plugin.
5213
-
5214
- }; // Support old flex spec from 2012.
5215
-
5216
- var flex2012 = {
5217
- supportedProperty: function supportedProperty(prop, style) {
5218
- var newProp = propMap[prop];
5219
- if (!newProp) return false;
5220
- return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;
5221
- }
5222
- };
5223
-
5224
- var propMap$1 = {
5225
- flex: 'box-flex',
5226
- 'flex-grow': 'box-flex',
5227
- 'flex-direction': ['box-orient', 'box-direction'],
5228
- order: 'box-ordinal-group',
5229
- 'align-items': 'box-align',
5230
- 'flex-flow': ['box-orient', 'box-direction'],
5231
- 'justify-content': 'box-pack'
5232
- };
5233
- var propKeys = Object.keys(propMap$1);
5234
-
5235
- var prefixCss = function prefixCss(p) {
5236
- return prefix.css + p;
5237
- }; // Support old flex spec from 2009.
5238
-
5239
-
5240
- var flex2009 = {
5241
- supportedProperty: function supportedProperty(prop, style, _ref) {
5242
- var multiple = _ref.multiple;
5243
-
5244
- if (propKeys.indexOf(prop) > -1) {
5245
- var newProp = propMap$1[prop];
5246
-
5247
- if (!Array.isArray(newProp)) {
5248
- return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;
5249
- }
5250
-
5251
- if (!multiple) return false;
5252
-
5253
- for (var i = 0; i < newProp.length; i++) {
5254
- if (!(prefix.js + pascalize(newProp[0]) in style)) {
5255
- return false;
5256
- }
5257
- }
5258
-
5259
- return newProp.map(prefixCss);
5260
- }
5261
-
5262
- return false;
5263
- }
5264
- };
5265
-
5266
- // plugins = [
5267
- // ...plugins,
5268
- // breakPropsOld,
5269
- // inlineLogicalOld,
5270
- // unprefixed,
5271
- // prefixed,
5272
- // scrollSnap,
5273
- // flex2012,
5274
- // flex2009
5275
- // ]
5276
- // Plugins without 'noPrefill' value, going last.
5277
- // 'flex-*' plugins should be at the bottom.
5278
- // 'flex2009' going after 'flex2012'.
5279
- // 'prefixed' going after 'unprefixed'
5280
-
5281
- var plugins = [appearence, colorAdjust, mask, textOrientation, transform, transition, writingMode, userSelect, breakPropsOld, inlineLogicalOld, unprefixed, prefixed, scrollSnap, overscrollBehavior, flex2012, flex2009];
5282
- var propertyDetectors = plugins.filter(function (p) {
5283
- return p.supportedProperty;
5284
- }).map(function (p) {
5285
- return p.supportedProperty;
5286
- });
5287
- var noPrefill = plugins.filter(function (p) {
5288
- return p.noPrefill;
5289
- }).reduce(function (a, p) {
5290
- a.push.apply(a, _toConsumableArray(p.noPrefill));
5291
- return a;
5292
- }, []);
5293
-
5294
- var el;
5295
- var cache = {};
5296
-
5297
- if (isInBrowser) {
5298
- el = document.createElement('p'); // We test every property on vendor prefix requirement.
5299
- // Once tested, result is cached. It gives us up to 70% perf boost.
5300
- // http://jsperf.com/element-style-object-access-vs-plain-object
5301
- //
5302
- // Prefill cache with known css properties to reduce amount of
5303
- // properties we need to feature test at runtime.
5304
- // http://davidwalsh.name/vendor-prefix
5305
-
5306
- var computed = window.getComputedStyle(document.documentElement, '');
5307
-
5308
- for (var key$1 in computed) {
5309
- // eslint-disable-next-line no-restricted-globals
5310
- if (!isNaN(key$1)) cache[computed[key$1]] = computed[key$1];
5311
- } // Properties that cannot be correctly detected using the
5312
- // cache prefill method.
5313
-
5314
-
5315
- noPrefill.forEach(function (x) {
5316
- return delete cache[x];
5317
- });
5318
- }
5319
- /**
5320
- * Test if a property is supported, returns supported property with vendor
5321
- * prefix if required. Returns `false` if not supported.
5322
- *
5323
- * @param {String} prop dash separated
5324
- * @param {Object} [options]
5325
- * @return {String|Boolean}
5326
- * @api public
5327
- */
5328
-
5329
-
5330
- function supportedProperty(prop, options) {
5331
- if (options === void 0) {
5332
- options = {};
5333
- }
5334
-
5335
- // For server-side rendering.
5336
- if (!el) return prop; // Remove cache for benchmark tests or return property from the cache.
5337
-
5338
- if (process.env.NODE_ENV !== 'benchmark' && cache[prop] != null) {
5339
- return cache[prop];
5340
- } // Check if 'transition' or 'transform' natively supported in browser.
5341
-
5342
-
5343
- if (prop === 'transition' || prop === 'transform') {
5344
- options[prop] = prop in el.style;
5345
- } // Find a plugin for current prefix property.
5346
-
5347
-
5348
- for (var i = 0; i < propertyDetectors.length; i++) {
5349
- cache[prop] = propertyDetectors[i](prop, el.style, options); // Break loop, if value found.
5350
-
5351
- if (cache[prop]) break;
5352
- } // Reset styles for current property.
5353
- // Firefox can even throw an error for invalid properties, e.g., "0".
5354
-
5355
-
5356
- try {
5357
- el.style[prop] = '';
5358
- } catch (err) {
5359
- return false;
5360
- }
5361
-
5362
- return cache[prop];
5363
- }
5364
-
5365
- var cache$1 = {};
5366
- var transitionProperties = {
5367
- transition: 1,
5368
- 'transition-property': 1,
5369
- '-webkit-transition': 1,
5370
- '-webkit-transition-property': 1
5371
- };
5372
- var transPropsRegExp = /(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;
5373
- var el$1;
5374
- /**
5375
- * Returns prefixed value transition/transform if needed.
5376
- *
5377
- * @param {String} match
5378
- * @param {String} p1
5379
- * @param {String} p2
5380
- * @return {String}
5381
- * @api private
5382
- */
5383
-
5384
- function prefixTransitionCallback(match, p1, p2) {
5385
- if (p1 === 'var') return 'var';
5386
- if (p1 === 'all') return 'all';
5387
- if (p2 === 'all') return ', all';
5388
- var prefixedValue = p1 ? supportedProperty(p1) : ", " + supportedProperty(p2);
5389
- if (!prefixedValue) return p1 || p2;
5390
- return prefixedValue;
5391
- }
5392
-
5393
- if (isInBrowser) el$1 = document.createElement('p');
5394
- /**
5395
- * Returns prefixed value if needed. Returns `false` if value is not supported.
5396
- *
5397
- * @param {String} property
5398
- * @param {String} value
5399
- * @return {String|Boolean}
5400
- * @api public
5401
- */
5402
-
5403
- function supportedValue(property, value) {
5404
- // For server-side rendering.
5405
- var prefixedValue = value;
5406
- if (!el$1 || property === 'content') return value; // It is a string or a number as a string like '1'.
5407
- // We want only prefixable values here.
5408
- // eslint-disable-next-line no-restricted-globals
5409
-
5410
- if (typeof prefixedValue !== 'string' || !isNaN(parseInt(prefixedValue, 10))) {
5411
- return prefixedValue;
5412
- } // Create cache key for current value.
5413
-
5414
-
5415
- var cacheKey = property + prefixedValue; // Remove cache for benchmark tests or return value from cache.
5416
-
5417
- if (process.env.NODE_ENV !== 'benchmark' && cache$1[cacheKey] != null) {
5418
- return cache$1[cacheKey];
5419
- } // IE can even throw an error in some cases, for e.g. style.content = 'bar'.
5420
-
5421
-
5422
- try {
5423
- // Test value as it is.
5424
- el$1.style[property] = prefixedValue;
5425
- } catch (err) {
5426
- // Return false if value not supported.
5427
- cache$1[cacheKey] = false;
5428
- return false;
5429
- } // If 'transition' or 'transition-property' property.
5430
-
5431
-
5432
- if (transitionProperties[property]) {
5433
- prefixedValue = prefixedValue.replace(transPropsRegExp, prefixTransitionCallback);
5434
- } else if (el$1.style[property] === '') {
5435
- // Value with a vendor prefix.
5436
- prefixedValue = prefix.css + prefixedValue; // Hardcode test to convert "flex" to "-ms-flexbox" for IE10.
5437
-
5438
- if (prefixedValue === '-ms-flex') el$1.style[property] = '-ms-flexbox'; // Test prefixed value.
5439
-
5440
- el$1.style[property] = prefixedValue; // Return false if value not supported.
5441
-
5442
- if (el$1.style[property] === '') {
5443
- cache$1[cacheKey] = false;
5444
- return false;
5445
- }
5446
- } // Reset styles for current property.
5447
-
5448
-
5449
- el$1.style[property] = ''; // Write current value to cache.
5450
-
5451
- cache$1[cacheKey] = prefixedValue;
5452
- return cache$1[cacheKey];
5453
- }
5454
-
5455
- cssVendor_cjs.prefix = prefix;
5456
- var supportedKeyframes_1 = cssVendor_cjs.supportedKeyframes = supportedKeyframes;
5457
- var supportedProperty_1 = cssVendor_cjs.supportedProperty = supportedProperty;
5458
- var supportedValue_1 = cssVendor_cjs.supportedValue = supportedValue;
5459
-
5460
- /**
5461
- * Add vendor prefix to a property name when needed.
5462
- */
5463
-
5464
- function jssVendorPrefixer() {
5465
- function onProcessRule(rule) {
5466
- if (rule.type === 'keyframes') {
5467
- var atRule = rule;
5468
- atRule.at = supportedKeyframes_1(atRule.at);
5469
- }
5470
- }
5471
-
5472
- function prefixStyle(style) {
5473
- for (var prop in style) {
5474
- var value = style[prop];
5475
-
5476
- if (prop === 'fallbacks' && Array.isArray(value)) {
5477
- style[prop] = value.map(prefixStyle);
5478
- continue;
5479
- }
5480
-
5481
- var changeProp = false;
5482
- var supportedProp = supportedProperty_1(prop);
5483
- if (supportedProp && supportedProp !== prop) changeProp = true;
5484
- var changeValue = false;
5485
- var supportedValue$1 = supportedValue_1(supportedProp, toCssValue(value));
5486
- if (supportedValue$1 && supportedValue$1 !== value) changeValue = true;
5487
-
5488
- if (changeProp || changeValue) {
5489
- if (changeProp) delete style[prop];
5490
- style[supportedProp || prop] = supportedValue$1 || value;
5491
- }
5492
- }
5493
-
5494
- return style;
5495
- }
5496
-
5497
- function onProcessStyle(style, rule) {
5498
- if (rule.type !== 'style') return style;
5499
- return prefixStyle(style);
5500
- }
5501
-
5502
- function onChangeValue(value, prop) {
5503
- return supportedValue_1(prop, toCssValue(value)) || value;
5504
- }
5505
-
5506
- return {
5507
- onProcessRule: onProcessRule,
5508
- onProcessStyle: onProcessStyle,
5509
- onChangeValue: onChangeValue
5510
- };
5511
- }
5512
-
5513
- /**
5514
- * Sort props by length.
5515
- */
5516
- function jssPropsSort() {
5517
- var sort = function sort(prop0, prop1) {
5518
- if (prop0.length === prop1.length) {
5519
- return prop0 > prop1 ? 1 : -1;
5520
- }
5521
-
5522
- return prop0.length - prop1.length;
5523
- };
5524
-
5525
- return {
5526
- onProcessStyle: function onProcessStyle(style, rule) {
5527
- if (rule.type !== 'style') return style;
5528
- var newStyle = {};
5529
- var props = Object.keys(style).sort(sort);
5530
-
5531
- for (var i = 0; i < props.length; i++) {
5532
- newStyle[props[i]] = style[props[i]];
5533
- }
5534
-
5535
- return newStyle;
5536
- }
5537
- };
5538
- }
5539
-
5540
- var create = function create(options) {
5541
- if (options === void 0) {
5542
- options = {};
5543
- }
5544
-
5545
- return {
5546
- plugins: [functionPlugin(), observablePlugin(options.observable), templatePlugin(), jssGlobal(), jssExtend(), jssNested(), jssCompose(), camelCase(), defaultUnit(options.defaultUnit), jssExpand(), jssVendorPrefixer(), jssPropsSort()]
5547
- };
5548
- };
5549
-
5550
- index.setup({
5551
- ...create(),
5552
- createGenerateId: () => (rule) => rule.key,
5553
- plugins: [...create().plugins, dist({ combineMediaQueries: true })],
5554
- });
5555
- const isScrollable = (isPrevHidden, isNextHidden) => {
5556
- return !(isPrevHidden && isNextHidden);
5557
- };
5558
-
5559
- const hasDocument = typeof document !== 'undefined';
5560
-
5561
- hasDocument && 'scrollBehavior' in document.documentElement.style;
5562
- const win = typeof window !== 'undefined' ? window : {};
5563
- win.document || { head: {} };
5564
- (win.HTMLElement || class {
5565
- });
5566
-
5567
- const formatObjectOutput = (value) => {
5568
- return JSON.stringify(value)
5569
- .replace(/"([a-zA-Z?]+)":/g, '$1:') // remove double quotes from keys
5570
- .replace(/([,:{])/g, '$1 ') // add space after following: ,:{
5571
- .replace(/(})/g, ' $1') // add space before following: }
5572
- .replace(/^"(.+)"$/, '$1'); // remove wrapping double quotes
5573
- };
5574
- 'value, ' +
5575
- formatObjectOutput(BREAKPOINTS.reduce((prev, key) => (Object.assign(Object.assign({}, prev), { [key + (key !== 'base' ? '?' : '')]: 'value' })), {})).replace(/"/g, '');
5576
-
5577
- const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
5578
-
5579
- const getLinkButtonThemeForIcon = (variant, theme) => variant === 'primary' ? (theme === 'light' ? 'dark' : 'light') : theme;
5580
- const resizeMap = new Map();
5581
- const isResizeObserverDefined = () => hasWindow && 'ResizeObserver' in window;
5582
- isResizeObserverDefined() &&
5583
- new ResizeObserver((entries) => {
5584
- entries.forEach((resizeEntry) => { var _a; return (_a = resizeMap.get(resizeEntry.target)) === null || _a === void 0 ? void 0 : _a(resizeEntry); });
5585
- });
5586
- const getButtonPureAriaAttributes = (isDisabled, isLoading, aria) => {
5587
- return Object.assign(Object.assign({}, parseAndGetAriaAttributes(aria)), getButtonBaseAriaAttributes(isDisabled, isLoading));
5588
- };
5589
-
5590
- const getButtonAriaAttributes = (isDisabled, isLoading, aria) => {
5591
- return Object.assign(Object.assign({}, parseAndGetAriaAttributes(aria)), getButtonBaseAriaAttributes(isDisabled, isLoading));
5592
- };
5593
- getMediaQueryMin('s');
5594
- getMediaQueryMin('xl');
5595
- typeof HTMLElement !== 'undefined' && HTMLElement.prototype.hasOwnProperty('inert');
5596
-
5597
- const DISPLAY_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
5598
- const displaySizeToTagMap = {
5599
- medium: 'h2',
5600
- large: 'h1',
5601
- inherit: 'h1',
5602
- };
5603
- const getDisplayTagType = (host, size, tag) => {
5604
- if (hasSpecificSlottedTag(host, DISPLAY_TAGS.join())) {
5605
- return 'div';
5606
- }
5607
- else if (tag) {
5608
- return tag;
5609
- }
5610
- else {
5611
- return displaySizeToTagMap[size] || 'h1';
5612
- }
5613
- };
5614
- const headingSizeToTagMap = {
5615
- small: 'h6',
5616
- medium: 'h5',
5617
- large: 'h4',
5618
- 'x-large': 'h3',
5619
- 'xx-large': 'h2',
5620
- 'xxx-large': 'h1',
5621
- inherit: 'h1',
5622
- };
5623
- const getHeadingTagType = (host, size, tag) => {
5624
- if (hasSpecificSlottedTag(host, HEADING_TAGS.join())) {
5625
- return 'div';
5626
- }
5627
- else if (tag) {
5628
- return tag;
5629
- }
5630
- else {
5631
- return headingSizeToTagMap[size] || 'h2';
5632
- }
5633
- };
5634
- const HEADLINE_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
5635
- const variantToTagMap = {
5636
- 'large-title': 'h1',
5637
- 'headline-1': 'h1',
5638
- 'headline-2': 'h2',
5639
- 'headline-3': 'h3',
5640
- 'headline-4': 'h4',
5641
- 'headline-5': 'h5',
5642
- };
5643
- const getHeadlineTagType = (host, variant, tag) => {
5644
- if (hasSpecificSlottedTag(host, HEADLINE_TAGS.join())) {
5645
- return 'div';
5646
- }
5647
- else if (tag) {
5648
- return tag;
5649
- }
5650
- else {
5651
- return variantToTagMap[variant] || 'h1';
5652
- }
5653
- };
5654
-
5655
- const CDN_BASE_URL$1 = (typeof window !== 'undefined' && window.PORSCHE_DESIGN_SYSTEM_CDN === 'cn' ? 'https://cdn.ui.porsche.cn' : 'https://cdn.ui.porsche.com') + '/porsche-design-system/icons';
3751
+ const CDN_BASE_URL$2 = (typeof window !== 'undefined' && window.PORSCHE_DESIGN_SYSTEM_CDN === 'cn' ? 'https://cdn.ui.porsche.cn' : 'https://cdn.ui.porsche.com') + '/porsche-design-system/icons';
5656
3752
  const ICONS_MANIFEST = { "360": "360.min.5f2fcac02969bc425484fe8d80e5a1c9.svg", "accessibility": "accessibility.min.295a9d53a11c42212b8cce594982dfd2.svg", "active-cabin-ventilation": "active-cabin-ventilation.min.030c46def7a7397091d920b65bc0da3c.svg", "add": "add.min.8578a2d10c79a78e398e963b506b6cb5.svg", "adjust": "adjust.min.cdb89f5c161a4c82328fe60e72a88c59.svg", "arrow-double-down": "arrow-double-down.min.3b17923187ef2114d1f17da042fc97ca.svg", "arrow-double-left": "arrow-double-left.min.bba22e26f025c439b600bf74f0566465.svg", "arrow-double-right": "arrow-double-right.min.14f743d4adb5467fc0e95ac7f6426e1f.svg", "arrow-double-up": "arrow-double-up.min.8e3b3e31d227366f916c91dcb6e1b466.svg", "arrow-down": "arrow-down.min.84e69acc6554637cc373b8a4f50ba991.svg", "arrow-first": "arrow-first.min.bc51317ecf4953a664870ebab5059775.svg", "arrow-head-down": "arrow-head-down.min.454c189f4914925447670d0ae9bd2043.svg", "arrow-head-left": "arrow-head-left.min.aa2da7b4dbbb8a28c046592290054e94.svg", "arrow-head-right": "arrow-head-right.min.fb602ae5cb51970770570a70287e77e9.svg", "arrow-head-up": "arrow-head-up.min.2c282619214e4f998e1ac64a61b5545b.svg", "arrow-last": "arrow-last.min.72553c4284717d4961f8bcf8d51e0303.svg", "arrow-left": "arrow-left.min.24e8467ef0f8f206f228a3d8d443d70b.svg", "arrow-right": "arrow-right.min.8fb7b42d2d08d60f918602aa28475c0b.svg", "arrow-up": "arrow-up.min.0bc737f7f2cc56ef65c5d33472e014b0.svg", "augmented-reality": "augmented-reality.min.290ff033e35774fd093e1ab8ed07e10f.svg", "battery-empty": "battery-empty.min.8594e37d3e67a95b85eb9935f02e69cf.svg", "battery-full": "battery-full.min.4c75acb5a64a6dd3116ede7b1859a6d6.svg", "bell": "bell.min.d69dc9a220dec323e758ccbff756b5b5.svg", "bookmark": "bookmark.min.0cb177c79674593133f6d3d384c5df4b.svg", "broadcast": "broadcast.min.edbfac03d4afdc964d350f54df79c6f3.svg", "calculator": "calculator.min.2518729352d3709e488e71dcbf449247.svg", "calendar": "calendar.min.588fabe880634ece974291f5adfee50d.svg", "camera": "camera.min.10af3a4fac8c289775390534a50606d0.svg", "car": "car.min.4eeec04c87a14bb5d3d316eeeee0185b.svg", "car-battery": "car-battery.min.2a619bbd456ad531c922bf8f51b70977.svg", "card": "card.min.06394222c7ca5d6c7e783d6f86f030a6.svg", "charging-active": "charging-active.min.915410d626a52a3a76b6bf498491c255.svg", "charging-state": "charging-state.min.c5cb87ef2808f824f352a6ebd9b9d4a9.svg", "charging-station": "charging-station.min.211fcf0f9a9bb50b6e83482ee588dda9.svg", "chart": "chart.min.267e23c07f47784c186c5119b870df76.svg", "chat": "chat.min.a8a52d1b8b463ee0e5a3b0d812c9a40c.svg", "check": "check.min.0cb26d9a5ee1d217e5054f1ad60ae3b4.svg", "city": "city.min.a99b88b51adda8244a2c72953a2f4ab4.svg", "climate": "climate.min.5d52b2880552275d9032afc0fa2b7296.svg", "climate-control": "climate-control.min.152235d2bf2b7ec6e1a3c40e6971c446.svg", "clock": "clock.min.bcea9f182e1fe861ea6e765650f79b38.svg", "close": "close.min.eefab6ef191882058f9ed548bd5a467e.svg", "closed-caption": "closed-caption.min.b93ac43c07223fda14249d2279823f6a.svg", "co2-emission": "co2-emission.min.788590454baa0f6c52dfc99a55fe0b85.svg", "compare": "compare.min.657a924ca48bf93d200d2e6539fa8050.svg", "configurate": "configurate.min.2d137bc6f43ee03587188b571c97aacd.svg", "country-road": "country-road.min.3ee2c1be9d063f5d7c5772fcc7ae2568.svg", "cubic-capacity": "cubic-capacity.min.b5df863671bdf059bce19eddc2990698.svg", "delete": "delete.min.fd9788c3a0842a7bb1d737c6de1969d1.svg", "disable": "disable.min.c3d85d4ed9738c077d19e524775dbd56.svg", "document": "document.min.d2db26d7049ab2180361c7ce40f52d57.svg", "download": "download.min.d7c63bcbadf4dd5b14c3c79a438d93f3.svg", "duration": "duration.min.9405be759f64c8253076f7e55c80c336.svg", "edit": "edit.min.06bde2175fafb58233fa1ce6d3d00f83.svg", "email": "email.min.eb8ff02812a48c5098d3c40614e8d9d7.svg", "error-filled": "error-filled.min.35d7da7cb866bcfd3a25859f8cd2246b.svg", "exclamation": "exclamation.min.6ca46945978bd4eb2a40dc29766b1882.svg", "external": "external.min.b804bef35446f6b3cb379c121de3f13d.svg", "filter": "filter.min.60f168332c7550dfdf714ed0507877b0.svg", "flash": "flash.min.e5a6de1239300a6104076ee67aec42ca.svg", "fuel-station": "fuel-station.min.0155159076984cccdbfe854eb4da3720.svg", "garage": "garage.min.463577e6a1ffac592b5aa7bec9a82d39.svg", "gift": "gift.min.eeb1a5871a4008bcafd9495fe11ec9bc.svg", "globe": "globe.min.50fd2c886a822673902bd106efc73c3f.svg", "grid": "grid.min.c36c5015115005dcb9c948f07af0be80.svg", "highway": "highway.min.ea773dcf33a43fa8e82beae96c1222b7.svg", "home": "home.min.2bdc01bb7c9b39fa5ef5a81c8c3f9f49.svg", "horn": "horn.min.77105eb430a033a3ffdf21f9fecd32de.svg", "image": "image.min.851c64681e1950312a934a723ca04a85.svg", "increase": "increase.min.45bfe421e86192da37c8cca4917c10c2.svg", "information": "information.min.d387e44cc786ca3df3702f429518a1d9.svg", "information-filled": "information-filled.min.1055e842bb7d89c061ff1b5f47ed6169.svg", "key": "key.min.37b5e8ff9fda430f855f4b82bfd03485.svg", "leaf": "leaf.min.ea91b1d04ade4c49640e89ade35c9d90.svg", "leather": "leather.min.ef9e664d2fc3c28171fbd3d93b079503.svg", "light": "light.min.5fa3dd77ee9c63e28614c4c7c4a6d39c.svg", "list": "list.min.ecaeee96ec6cf2f8c9028ea404113a9e.svg", "locate": "locate.min.c28bdf292bbf297eb8109a272e2ffb91.svg", "lock": "lock.min.d258c21c7217cd1342307c45ecd5176e.svg", "lock-open": "lock-open.min.2ef427e273635e3aab7601b0fe92e86e.svg", "logo-baidu": "logo-baidu.min.a8eb57b32e616b21820d86882835fe20.svg", "logo-delicious": "logo-delicious.min.fc2927d4979ffaed1f23160091e0975e.svg", "logo-digg": "logo-digg.min.d7340b3f22cf4a22a8ac3b472c16e0e2.svg", "logo-facebook": "logo-facebook.min.0c2e020d0b61d37e76e6bab67e4d149e.svg", "logo-foursquare": "logo-foursquare.min.b2699d993d9d731892ba01874c0e023d.svg", "logo-gmail": "logo-gmail.min.0c14069d86c2ba0a42c726d96f0cae9c.svg", "logo-google": "logo-google.min.c1f3931d74e40e5cdc875236b7e674a1.svg", "logo-hatena": "logo-hatena.min.021834899da6e6f6a9dd963f4fc3337c.svg", "logo-instagram": "logo-instagram.min.2f8c578e2472dc13b2f0ec8d1b936442.svg", "logo-kaixin": "logo-kaixin.min.8fb995689a3442669df37b5f375922fc.svg", "logo-kakaotalk": "logo-kakaotalk.min.988146b4cd8bced103fd8b5a9be064d8.svg", "logo-linkedin": "logo-linkedin.min.e4848fd4b74404e504fd1a4d5a25b960.svg", "logo-naver": "logo-naver.min.13f97e4c3ad4898d169904caa609f2d0.svg", "logo-pinterest": "logo-pinterest.min.101284bac1d7cf468719fccf416069df.svg", "logo-qq": "logo-qq.min.5d89ab35e4e00e81deadaa2fe0d51a5d.svg", "logo-qq-share": "logo-qq-share.min.01da8f9d6665f4529f349f88b4fb0cfc.svg", "logo-reddit": "logo-reddit.min.40dd42ee1368dbc74611afee4d3c9850.svg", "logo-skyrock": "logo-skyrock.min.9440a0e4a088cdfbfcc99bc91010768a.svg", "logo-sohu": "logo-sohu.min.d7a030336d712a2b44982e65071cd2bc.svg", "logo-tecent": "logo-tecent.min.fd1ec329327f4cbf5706c393df66af9d.svg", "logo-telegram": "logo-telegram.min.624fca36dd6f6c5b64bce6e617372d77.svg", "logo-tiktok": "logo-tiktok.min.9c5ffad4c76353afaa99feca9e4f2f0a.svg", "logo-tumblr": "logo-tumblr.min.9b77d06b659cee9d5f45015c33c23967.svg", "logo-twitter": "logo-twitter.min.ac4d6b189cd2a47e4fac75bedb76b5bd.svg", "logo-viber": "logo-viber.min.330fbae7d2683b7910d828cbe864f738.svg", "logo-vk": "logo-vk.min.727ba204a194c8cf1b7fc389ac1db14b.svg", "logo-wechat": "logo-wechat.min.0392ff30f188aa9f52480e965142474a.svg", "logo-weibo": "logo-weibo.min.3ded49004baea42d85fa6fcb9d79ccb1.svg", "logo-whatsapp": "logo-whatsapp.min.02c83d3cbde89763eee8fc3bcab02257.svg", "logo-xing": "logo-xing.min.6a5f5fde119a841823d0ef05293b3454.svg", "logo-yahoo": "logo-yahoo.min.622e886e777c08cf80c31dc99ca13f1a.svg", "logo-youku": "logo-youku.min.d35a5283c6d3094748f565c729f56d9f.svg", "logo-youtube": "logo-youtube.min.59c939904cbec0c7793289eb5e68cb99.svg", "logout": "logout.min.aa54756e3aec12f347fdec0a2905a232.svg", "map": "map.min.643551801bfc27a93438c30ebe1d1387.svg", "menu-dots-horizontal": "menu-dots-horizontal.min.94e0804e3a5a30a577cab6296ad8d15d.svg", "menu-dots-vertical": "menu-dots-vertical.min.7ec3f5be33dd3459d7a9bed9fdbe22d3.svg", "menu-lines": "menu-lines.min.30ff09f6e2ce846286dd136279636097.svg", "minus": "minus.min.00cca11ec9ce4bd913abba2059c3f10b.svg", "mobile": "mobile.min.71d3c0d7fb4349383562cc233478f7fb.svg", "moon": "moon.min.5c447b4013210e7c7723ca4b6fdbfa9f.svg", "oil-can": "oil-can.min.31978141ee5529f97833027b1e03294a.svg", "parking-brake": "parking-brake.min.f03105e84898f1db02c6fcbdd008bfcf.svg", "parking-light": "parking-light.min.968af68684df1220b15cff6616e8376e.svg", "pause": "pause.min.dd29b256b73311abf1549ed16fe7a47b.svg", "phone": "phone.min.e1a58c454ffe074b30a5bb16c75ff23f.svg", "pin": "pin.min.c6ce5ea394fd9cf9dca80a592e2aeae4.svg", "play": "play.min.703fb2dbebac16ea91a6524914626ae2.svg", "plug": "plug.min.02d79b2702ac5c41020b54bd9eedf523.svg", "plus": "plus.min.dd34f71292a547080b9247a72c1adda2.svg", "preheating": "preheating.min.96ccdd3d24b0634ca820dc894894a34d.svg", "printer": "printer.min.bcd50214772a8fcc1d0f0ae1205610bf.svg", "purchase": "purchase.min.70535cff1a085154ab49ab958fe91aae.svg", "question": "question.min.df469b72598d2dbfb458c46430c0690a.svg", "racing-flag": "racing-flag.min.1aee1d177d44aaaca113a8b7a81db573.svg", "refresh": "refresh.min.36ced59c8e8d06980d6ac20cca8a9057.svg", "replay": "replay.min.d4f212bf3d5f8fe166d78dba57eeacde.svg", "reset": "reset.min.e1ce71f684b6e83b9ed8182389bd407f.svg", "route": "route.min.49f1935d2a563b150bb382eb56a04972.svg", "rss": "rss.min.eaf3873673fcbff72833e7a77f9510f8.svg", "save": "save.min.6506e50ad89aee223e85fe52242c232e.svg", "screen": "screen.min.c17978f44a7bf9f7d80f178fd2b7d116.svg", "search": "search.min.f2755d61c24b6ad037f51d65588be308.svg", "send": "send.min.544f2b90e562b8582808f735846b1351.svg", "share": "share.min.b7b59aa7085cc865735acfd940480234.svg", "shopping-bag": "shopping-bag.min.9d99682e614f5bbb9760c1a0272bd1e0.svg", "shopping-cart": "shopping-cart.min.05a6c651afb21246daba2e941e8366cc.svg", "sidelights": "sidelights.min.996d591ee87247eae32968bf0b588d1e.svg", "snowflake": "snowflake.min.cf85d1b3c62e223ffb80d8c838d4f0b8.svg", "sort": "sort.min.d90a6657569305b9b09b0c6997b5b915.svg", "stack": "stack.min.d36295767f8e2540bbbf60278114ca09.svg", "star": "star.min.d7445429f599f915661e6c57841ae339.svg", "steering-wheel": "steering-wheel.min.c632bf7d06f41d68f0a95d76615f3981.svg", "stopwatch": "stopwatch.min.c90f1fde0961349fe79c0b077f7b0d41.svg", "subtract": "subtract.min.bb9f2dcb0c81ac7f216f6fe2ba916c09.svg", "success": "success.min.4401a4715549bd7dfaaa4f54684b2088.svg", "success-filled": "success-filled.min.c9cb3c66aebf9c4f40b897064f901335.svg", "sun": "sun.min.a68eb6225965558e4498d3d38c33d52a.svg", "switch": "switch.min.ab6c8b55ab119d9bd5170a1893a75ed2.svg", "tablet": "tablet.min.60e7c4ef821bf610d2b2d5b06c7e88b7.svg", "tachometer": "tachometer.min.348f8c5eed7c61993a864ebcffee98bd.svg", "truck": "truck.min.43f91b0320003695d8804cf6a8a86da4.svg", "upload": "upload.min.cf3aaf8fb27e339d26133cbd6a5332ca.svg", "user": "user.min.0f8dcfbe34322e7968b4b23e11d963f0.svg", "user-group": "user-group.min.87f6ca16e7174b9a8d1894283a8ff1d4.svg", "user-manual": "user-manual.min.0b87e500e3d747e67be964c47a3ae312.svg", "video": "video.min.107dfd64c6fd7398dd48b94d61b2fe11.svg", "view": "view.min.cd78cae7309f44d941e9264047e3efa0.svg", "view-off": "view-off.min.e27746517bdb4c2c9ae5f025c7e74991.svg", "volume-off": "volume-off.min.711d24824df04d61c3129bbdcdbfa083.svg", "volume-up": "volume-up.min.0a2ebc984c6b9d2f53c747f9ba2028f1.svg", "warning": "warning.min.04529c502dddce98f0ae2eec0bfb3432.svg", "warning-filled": "warning-filled.min.ee8effcdc653f660043f909b6f0c938b.svg", "weight": "weight.min.47ef0b98ca8ed590dd7d6e6c3f1bcd46.svg", "wifi": "wifi.min.14540859e9241374bd9d0c89eb85667b.svg", "work": "work.min.d17986d8fcff6a5fcd5e9925e838fade.svg", "wrench": "wrench.min.90e402dc170fe83de23e2c11588ba037.svg", "wrenches": "wrenches.min.990b074555825a218e86fd35397fc88c.svg", "zoom-in": "zoom-in.min.22fa9d7ee8748debc801fe910f2d3d01.svg", "zoom-out": "zoom-out.min.9408a4dc5786ed5a783a729e58ab3d6d.svg" };
5657
3753
  const isUrl = (str) => (str === null || str === void 0 ? void 0 : str.length) > 0 && /(\/)/.test(str);
5658
3754
  const DEFAULT_ICON_NAME = 'arrow-right';
5659
3755
  const buildIconUrl = (iconNameOrSource = DEFAULT_ICON_NAME) => {
5660
- const cdnBaseUrl = CDN_BASE_URL$1 ;
3756
+ const cdnBaseUrl = CDN_BASE_URL$2 ;
5661
3757
  if (iconNameOrSource === null) {
5662
3758
  return buildIconUrl(DEFAULT_ICON_NAME);
5663
3759
  }
@@ -5689,15 +3785,24 @@ const getContentAriaAttributes = (state, labelId, descriptionId) => {
5689
3785
  };
5690
3786
  };
5691
3787
 
5692
- const CDN_BASE_URL = (typeof window !== 'undefined' && window.PORSCHE_DESIGN_SYSTEM_CDN === 'cn' ? 'https://cdn.ui.porsche.cn' : 'https://cdn.ui.porsche.com') + '/porsche-design-system/marque';
3788
+ const CDN_BASE_URL$1 = (typeof window !== 'undefined' && window.PORSCHE_DESIGN_SYSTEM_CDN === 'cn' ? 'https://cdn.ui.porsche.cn' : 'https://cdn.ui.porsche.com') + '/porsche-design-system/marque';
5693
3789
  const MARQUES_MANIFEST = { "porscheMarqueTrademark": { "medium": { "1x": { "png": "porsche-marque-trademark.medium.min.da075315857e239ff46bf4c150648ff0@1x.png", "webp": "porsche-marque-trademark.medium.min.5c6af9aa7946fea34f60c8f8c95d0188@1x.webp" }, "2x": { "png": "porsche-marque-trademark.medium.min.aa801f42028b1c385a5e26ae115da598@2x.png", "webp": "porsche-marque-trademark.medium.min.fff6e9b91481cc5b1fc6c9b62987ccaf@2x.webp" }, "3x": { "png": "porsche-marque-trademark.medium.min.824818d15eaf445f50e0a2391613f214@3x.png", "webp": "porsche-marque-trademark.medium.min.f67092ff6b5f4ecb4add73d6ae153db0@3x.webp" } }, "small": { "1x": { "png": "porsche-marque-trademark.small.min.020244b41a29323e2a7932a264514cdf@1x.png", "webp": "porsche-marque-trademark.small.min.783639706bead66b2d56e3b8b64bd61f@1x.webp" }, "2x": { "png": "porsche-marque-trademark.small.min.92184fae44511ceda8320443c17110b1@2x.png", "webp": "porsche-marque-trademark.small.min.760a57efa93d4e7e16e26128ec7ead46@2x.webp" }, "3x": { "png": "porsche-marque-trademark.small.min.fd545cea4298f5d797246d5805711646@3x.png", "webp": "porsche-marque-trademark.small.min.1726036a7829347e1e24d1eb54fc0d64@3x.webp" } } }, "porscheMarque": { "medium": { "1x": { "png": "porsche-marque.medium.min.a98627440b05154565f9f9dfc1ad6187@1x.png", "webp": "porsche-marque.medium.min.fa908e4dfdc5536b0e933e1670d20e1f@1x.webp" }, "2x": { "png": "porsche-marque.medium.min.089d6dd560fff7a2bf613ae6d528990e@2x.png", "webp": "porsche-marque.medium.min.7f0893dc57f2607a2cb0b817d96cb985@2x.webp" }, "3x": { "png": "porsche-marque.medium.min.2cb874345ef290831c929f6caabfeef8@3x.png", "webp": "porsche-marque.medium.min.3534cf066b4e2e737dca62de495f9616@3x.webp" } }, "small": { "1x": { "png": "porsche-marque.small.min.ac2042736af5512cf547c89fa7924c4f@1x.png", "webp": "porsche-marque.small.min.005debed5bf72cf0a9a791b1521f5e1d@1x.webp" }, "2x": { "png": "porsche-marque.small.min.22f1e9dc90399d9a5287eda689b60dba@2x.png", "webp": "porsche-marque.small.min.df4317325d04ffef28c7839aa6d499a0@2x.webp" }, "3x": { "png": "porsche-marque.small.min.49209245f04eadef8817b9bbae80d3e1@3x.png", "webp": "porsche-marque.small.min.cfd6149aaa3bc5b3b522538e5f650890@3x.webp" } } } };
5694
- const cdnBaseUrl = CDN_BASE_URL ;
3790
+
3791
+ const cdnBaseUrl = CDN_BASE_URL$1 ;
5695
3792
  const getInnerManifest = (trademark) => MARQUES_MANIFEST[`porscheMarque${trademark ? 'Trademark' : ''}`];
5696
3793
  const buildSrcSet = (innerManifest, size, format) =>
5697
3794
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
5698
3795
  Object.entries(innerManifest[size])
5699
3796
  .map(([resolution, fileName]) => `${cdnBaseUrl}/${fileName[format]} ${resolution}`)
5700
3797
  .join();
3798
+
3799
+ const CDN_BASE_URL = (typeof window !== 'undefined' && window.PORSCHE_DESIGN_SYSTEM_CDN === 'cn' ? 'https://cdn.ui.porsche.cn' : 'https://cdn.ui.porsche.com') + '/porsche-design-system/model-signatures';
3800
+ const MODEL_SIGNATURES_MANIFEST = { "718": "718.min.64611f93dc2fc9e234e25b88cca12593.svg", "911": "911.min.5c462658f9d472e90a139173414e8fdd.svg", "boxster": "boxster.min.5e7b22a1fa25004a4f97807d57f32b21.svg", "cayenne": "cayenne.min.4026ba6b335cc98e10592f900cf731e1.svg", "cayman": "cayman.min.c634f6f3de1d67610b2e4230e60337fb.svg", "macan": "macan.min.e38fbf34ed4f00066620901babd99af0.svg", "panamera": "panamera.min.d35913b252657f7c5cfcae74cfd61b26.svg", "taycan": "taycan.min.ba4e7c3cb86a78d626d4463b81be0f23.svg", "turbo-s": "turbo-s.min.8201d60c1b5e00daf9e23784fd199111.svg", "turbo": "turbo.min.cfde5de85fdc84be597dfad4402c5f6f.svg" };
3801
+ const getSvgUrl = (model) => {
3802
+ const cdnBaseUrl = CDN_BASE_URL
3803
+ ;
3804
+ return `${cdnBaseUrl}/${MODEL_SIGNATURES_MANIFEST[model]}`;
3805
+ };
5701
3806
  // TODO: create enum
5702
3807
  const itemTypes = {
5703
3808
  PAGE: 'PAGE',
@@ -5929,11 +4034,23 @@ const isSortable = (active, direction) => {
5929
4034
  };
5930
4035
 
5931
4036
  const getThemeForIcon = (color, theme) => {
5932
- return ['neutral-contrast-high', 'primary'].includes(color) ? (theme === 'light' ? 'dark' : 'light') : theme;
4037
+ return color === 'neutral-contrast-high' || color === 'primary' ? (isThemeDark(theme) ? 'light' : 'dark') : theme;
5933
4038
  };
5934
4039
  const isType = (inputType, typeToValidate) => inputType === typeToValidate;
5935
4040
  const isWithinForm = (host) => !!getClosestHTMLElement(host, 'form');
5936
4041
  const hasLocateAction = (icon) => icon === 'locate';
4042
+ // eslint-disable-next-line no-underscore-dangle
4043
+ const _hasShowPickerSupport = () => {
4044
+ return (hasDocument &&
4045
+ 'showPicker' in HTMLInputElement.prototype &&
4046
+ // TODO: it would be better to determinate support by checking for existence of "calendar-picker-indicator"
4047
+ !!window.navigator.userAgent.match(/chrome|chromium|crios|edg/i));
4048
+ };
4049
+ const hasShowPickerSupport = _hasShowPickerSupport();
4050
+ const showCustomCalendarOrTimeIndicator = (isCalendar, isTime) => {
4051
+ return hasShowPickerSupport && (isCalendar || isTime);
4052
+ };
4053
+ const isListTypeOrdered = (type) => type !== 'unordered';
5937
4054
 
5938
4055
  const TEXT_TAGS = ['p', 'span', 'div', 'address', 'blockquote', 'figcaption', 'cite', 'time', 'legend'];
5939
4056
  const getTextTagType = (host, tag) => {
@@ -5945,4 +4062,4 @@ const getTextTagType = (host, tag) => {
5945
4062
  }
5946
4063
  };
5947
4064
 
5948
- export { BREAKPOINTS, DISPLAY_TAGS, HEADING_TAGS, HEADLINE_TAGS, TEXT_TAGS, attributeMutationMap, buildIconUrl, buildSrcSet, cdnBaseUrl, childrenMutationMap, createPaginationModel, createRange, displaySizeToTagMap, getButtonAriaAttributes, getButtonAttributes, getButtonBaseAriaAttributes, getButtonPureAriaAttributes, getClosestHTMLElement, getContentAriaAttributes, getCurrentActivePage, getDirectChildHTMLElement, getDisplayTagType, getHTMLElement, getHeadingTagType, getHeadlineTagType, getIconColor, getInlineNotificationIconName, getInnerManifest, getLinkButtonThemeForIcon, getRole, getStepperHorizontalIconName, getSwitchButtonAriaAttributes, getTextTagType, getThemeForIcon, getTotalPages, hasDocument, hasLocateAction, hasSpecificSlottedTag, hasVisibleIcon, hasWindow, isDisabledOrLoading, isResizeObserverDefined, isScrollable, isSortable, isStateCompleteOrWarning, isType, isUrl, isWithinForm, itemTypes, parseAndGetAriaAttributes, parseJSONAttribute, resizeMap, supportsConstructableStylesheets, tempDiv, tempIcon, tempLabel };
4065
+ export { BREAKPOINTS, DISPLAY_TAGS, HEADING_TAGS, HEADLINE_TAGS, TEXT_TAGS, _hasShowPickerSupport, attributeMutationMap, buildIconUrl, buildSrcSet, cdnBaseUrl, childrenMutationMap, createPaginationModel, createRange, displaySizeToTagMap, getButtonAriaAttributes, getButtonAttributes, getButtonBaseAriaAttributes, getButtonPureAriaAttributes, getClosestHTMLElement, getContentAriaAttributes, getCurrentActivePage, getDirectChildHTMLElement, getDisplayTagType, getHTMLElement, getHeadingTagType, getHeadlineTagType, getIconColor, getInlineNotificationIconName, getInnerManifest, getLinkButtonThemeForIcon, getRole, getStepperHorizontalIconName, getSvgUrl, getSwitchButtonAriaAttributes, getTextTagType, getThemeForIcon, getTotalPages, hasDocument, hasLocateAction, hasSpecificSlottedTag, hasVisibleIcon, hasWindow, isDisabledOrLoading, isListTypeOrdered, isResizeObserverDefined, isScrollable, isSortable, isStateCompleteOrWarning, isThemeDark, isType, isUrl, isWithinForm, itemTypes, parseAndGetAriaAttributes, parseJSONAttribute, resizeMap, showCustomCalendarOrTimeIndicator, supportsConstructableStylesheets, tempDiv, tempIcon, tempLabel };