@porsche-design-system/components-react 3.0.0-alpha.2 → 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 (242) hide show
  1. package/CHANGELOG.md +302 -0
  2. package/esm/lib/components/accordion.wrapper.js +2 -1
  3. package/esm/lib/components/banner.wrapper.js +3 -3
  4. package/esm/lib/components/carousel.wrapper.js +4 -3
  5. package/esm/lib/components/divider.wrapper.js +3 -3
  6. package/esm/lib/components/link-social.wrapper.js +1 -1
  7. package/esm/lib/components/link-tile.wrapper.js +1 -1
  8. package/esm/lib/components/modal.wrapper.js +4 -3
  9. package/esm/lib/components/pagination.wrapper.js +4 -3
  10. package/esm/lib/components/scroller.wrapper.js +3 -3
  11. package/esm/lib/components/segmented-control.wrapper.js +2 -1
  12. package/esm/lib/components/stepper-horizontal.wrapper.js +2 -1
  13. package/esm/lib/components/switch.wrapper.js +2 -1
  14. package/esm/lib/components/table.wrapper.js +2 -1
  15. package/esm/lib/components/tabs-bar.wrapper.js +4 -3
  16. package/esm/lib/components/tabs.wrapper.js +4 -3
  17. package/esm/lib/components/text-field-wrapper.wrapper.js +3 -3
  18. package/esm/lib/components/text-list.wrapper.js +3 -3
  19. package/esm/lib/components/textarea-wrapper.wrapper.js +3 -3
  20. package/lib/components/accordion.wrapper.d.ts +12 -4
  21. package/lib/components/accordion.wrapper.js +2 -1
  22. package/lib/components/banner.wrapper.d.ts +18 -2
  23. package/lib/components/banner.wrapper.js +3 -3
  24. package/lib/components/button-group.wrapper.d.ts +2 -2
  25. package/lib/components/button-pure.wrapper.d.ts +15 -15
  26. package/lib/components/button.wrapper.d.ts +5 -5
  27. package/lib/components/carousel.wrapper.d.ts +22 -6
  28. package/lib/components/carousel.wrapper.js +4 -3
  29. package/lib/components/checkbox-wrapper.wrapper.d.ts +5 -5
  30. package/lib/components/content-wrapper.wrapper.d.ts +2 -2
  31. package/lib/components/display.wrapper.d.ts +2 -2
  32. package/lib/components/divider.wrapper.d.ts +13 -5
  33. package/lib/components/divider.wrapper.js +3 -3
  34. package/lib/components/fieldset-wrapper.wrapper.d.ts +5 -5
  35. package/lib/components/flex-item.wrapper.d.ts +2 -2
  36. package/lib/components/flex.wrapper.d.ts +2 -2
  37. package/lib/components/grid-item.wrapper.d.ts +2 -2
  38. package/lib/components/grid.wrapper.d.ts +2 -2
  39. package/lib/components/heading.wrapper.d.ts +2 -2
  40. package/lib/components/headline.wrapper.d.ts +2 -2
  41. package/lib/components/icon.wrapper.d.ts +2 -2
  42. package/lib/components/inline-notification.wrapper.d.ts +5 -5
  43. package/lib/components/link-pure.wrapper.d.ts +15 -15
  44. package/lib/components/link-social.wrapper.d.ts +8 -8
  45. package/lib/components/link-social.wrapper.js +1 -1
  46. package/lib/components/link-tile.wrapper.d.ts +7 -7
  47. package/lib/components/link-tile.wrapper.js +1 -1
  48. package/lib/components/link.wrapper.d.ts +5 -5
  49. package/lib/components/marque.wrapper.d.ts +5 -5
  50. package/lib/components/modal.wrapper.d.ts +22 -6
  51. package/lib/components/modal.wrapper.js +4 -3
  52. package/lib/components/model-signature.wrapper.d.ts +2 -2
  53. package/lib/components/pagination.wrapper.d.ts +31 -15
  54. package/lib/components/pagination.wrapper.js +4 -3
  55. package/lib/components/popover.wrapper.d.ts +5 -5
  56. package/lib/components/radio-button-wrapper.wrapper.d.ts +5 -5
  57. package/lib/components/scroller.wrapper.d.ts +27 -11
  58. package/lib/components/scroller.wrapper.js +3 -3
  59. package/lib/components/segmented-control-item.wrapper.d.ts +5 -5
  60. package/lib/components/segmented-control.wrapper.d.ts +12 -4
  61. package/lib/components/segmented-control.wrapper.js +2 -1
  62. package/lib/components/select-wrapper.wrapper.d.ts +7 -7
  63. package/lib/components/spinner.wrapper.d.ts +2 -2
  64. package/lib/components/stepper-horizontal-item.wrapper.d.ts +5 -5
  65. package/lib/components/stepper-horizontal.wrapper.d.ts +13 -5
  66. package/lib/components/stepper-horizontal.wrapper.js +2 -1
  67. package/lib/components/switch.wrapper.d.ts +13 -5
  68. package/lib/components/switch.wrapper.js +2 -1
  69. package/lib/components/table-body.wrapper.d.ts +2 -2
  70. package/lib/components/table-cell.wrapper.d.ts +2 -2
  71. package/lib/components/table-head-cell.wrapper.d.ts +2 -2
  72. package/lib/components/table-head-row.wrapper.d.ts +2 -2
  73. package/lib/components/table-head.wrapper.d.ts +2 -2
  74. package/lib/components/table-row.wrapper.d.ts +2 -2
  75. package/lib/components/table.wrapper.d.ts +13 -5
  76. package/lib/components/table.wrapper.js +2 -1
  77. package/lib/components/tabs-bar.wrapper.d.ts +27 -11
  78. package/lib/components/tabs-bar.wrapper.js +4 -3
  79. package/lib/components/tabs-item.wrapper.d.ts +2 -2
  80. package/lib/components/tabs.wrapper.d.ts +27 -11
  81. package/lib/components/tabs.wrapper.js +4 -3
  82. package/lib/components/tag-dismissible.wrapper.d.ts +2 -2
  83. package/lib/components/tag.wrapper.d.ts +5 -5
  84. package/lib/components/text-field-wrapper.wrapper.d.ts +17 -9
  85. package/lib/components/text-field-wrapper.wrapper.js +3 -3
  86. package/lib/components/text-list-item.wrapper.d.ts +2 -2
  87. package/lib/components/text-list.wrapper.d.ts +19 -11
  88. package/lib/components/text-list.wrapper.js +3 -3
  89. package/lib/components/text.wrapper.d.ts +2 -2
  90. package/lib/components/textarea-wrapper.wrapper.d.ts +15 -7
  91. package/lib/components/textarea-wrapper.wrapper.js +3 -3
  92. package/lib/components/toast.wrapper.d.ts +2 -2
  93. package/lib/types.d.ts +95 -30
  94. package/package.json +2 -2
  95. package/ssr/components/dist/styles/esm/styles-entry.js +362 -2323
  96. package/ssr/components/dist/utils/esm/utils-entry.js +151 -2046
  97. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/accordion.wrapper.js +2 -1
  98. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.js +4 -4
  99. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.js +5 -4
  100. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/divider.wrapper.js +4 -4
  101. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/link-social.wrapper.js +1 -1
  102. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile.wrapper.js +1 -1
  103. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/modal.wrapper.js +5 -4
  104. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/pagination.wrapper.js +5 -4
  105. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/scroller.wrapper.js +4 -4
  106. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control.wrapper.js +2 -1
  107. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal.wrapper.js +2 -1
  108. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/switch.wrapper.js +2 -1
  109. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/table.wrapper.js +2 -1
  110. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.js +5 -4
  111. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.js +5 -4
  112. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/text-field-wrapper.wrapper.js +4 -4
  113. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/text-list.wrapper.js +4 -4
  114. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/textarea-wrapper.wrapper.js +4 -4
  115. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +2 -1
  116. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.js +1 -1
  117. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +1 -1
  118. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js +8 -2
  119. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.js +1 -1
  120. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.js +6 -1
  121. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.js +1 -1
  122. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.js +1 -1
  123. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.js +9 -2
  124. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js +1 -1
  125. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js +7 -12
  126. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.js +1 -1
  127. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.js +6 -2
  128. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.js +14 -4
  129. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +6 -2
  130. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +1 -1
  131. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.js +1 -1
  132. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +5 -2
  133. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +1 -1
  134. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.js +4 -1
  135. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.js +9 -1
  136. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +13 -7
  137. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.js +3 -3
  138. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.js +14 -2
  139. package/ssr/esm/components/dist/styles/esm/styles-entry.js +362 -2323
  140. package/ssr/esm/components/dist/utils/esm/utils-entry.js +150 -2047
  141. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/accordion.wrapper.js +2 -1
  142. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.js +4 -4
  143. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.js +5 -4
  144. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/divider.wrapper.js +4 -4
  145. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-social.wrapper.js +1 -1
  146. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile.wrapper.js +1 -1
  147. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/modal.wrapper.js +5 -4
  148. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/pagination.wrapper.js +5 -4
  149. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/scroller.wrapper.js +4 -4
  150. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control.wrapper.js +2 -1
  151. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal.wrapper.js +2 -1
  152. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/switch.wrapper.js +2 -1
  153. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table.wrapper.js +2 -1
  154. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.js +5 -4
  155. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.js +5 -4
  156. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text-field-wrapper.wrapper.js +4 -4
  157. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text-list.wrapper.js +4 -4
  158. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/textarea-wrapper.wrapper.js +4 -4
  159. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +2 -1
  160. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.js +1 -1
  161. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +1 -1
  162. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js +8 -2
  163. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.js +1 -1
  164. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.js +6 -1
  165. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.js +1 -1
  166. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.js +1 -1
  167. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.js +9 -2
  168. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js +1 -1
  169. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js +8 -13
  170. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.js +1 -1
  171. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.js +6 -2
  172. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.js +14 -4
  173. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +6 -2
  174. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +1 -1
  175. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.js +1 -1
  176. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +5 -2
  177. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +1 -1
  178. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.js +4 -1
  179. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.js +9 -1
  180. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +14 -8
  181. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.js +3 -3
  182. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.js +14 -2
  183. package/ssr/lib/components/accordion.wrapper.d.ts +12 -4
  184. package/ssr/lib/components/banner.wrapper.d.ts +18 -2
  185. package/ssr/lib/components/button-group.wrapper.d.ts +2 -2
  186. package/ssr/lib/components/button-pure.wrapper.d.ts +15 -15
  187. package/ssr/lib/components/button.wrapper.d.ts +5 -5
  188. package/ssr/lib/components/carousel.wrapper.d.ts +22 -6
  189. package/ssr/lib/components/checkbox-wrapper.wrapper.d.ts +5 -5
  190. package/ssr/lib/components/content-wrapper.wrapper.d.ts +2 -2
  191. package/ssr/lib/components/display.wrapper.d.ts +2 -2
  192. package/ssr/lib/components/divider.wrapper.d.ts +13 -5
  193. package/ssr/lib/components/fieldset-wrapper.wrapper.d.ts +5 -5
  194. package/ssr/lib/components/flex-item.wrapper.d.ts +2 -2
  195. package/ssr/lib/components/flex.wrapper.d.ts +2 -2
  196. package/ssr/lib/components/grid-item.wrapper.d.ts +2 -2
  197. package/ssr/lib/components/grid.wrapper.d.ts +2 -2
  198. package/ssr/lib/components/heading.wrapper.d.ts +2 -2
  199. package/ssr/lib/components/headline.wrapper.d.ts +2 -2
  200. package/ssr/lib/components/icon.wrapper.d.ts +2 -2
  201. package/ssr/lib/components/inline-notification.wrapper.d.ts +5 -5
  202. package/ssr/lib/components/link-pure.wrapper.d.ts +15 -15
  203. package/ssr/lib/components/link-social.wrapper.d.ts +8 -8
  204. package/ssr/lib/components/link-tile.wrapper.d.ts +7 -7
  205. package/ssr/lib/components/link.wrapper.d.ts +5 -5
  206. package/ssr/lib/components/marque.wrapper.d.ts +5 -5
  207. package/ssr/lib/components/modal.wrapper.d.ts +22 -6
  208. package/ssr/lib/components/model-signature.wrapper.d.ts +2 -2
  209. package/ssr/lib/components/pagination.wrapper.d.ts +31 -15
  210. package/ssr/lib/components/popover.wrapper.d.ts +5 -5
  211. package/ssr/lib/components/radio-button-wrapper.wrapper.d.ts +5 -5
  212. package/ssr/lib/components/scroller.wrapper.d.ts +27 -11
  213. package/ssr/lib/components/segmented-control-item.wrapper.d.ts +5 -5
  214. package/ssr/lib/components/segmented-control.wrapper.d.ts +12 -4
  215. package/ssr/lib/components/select-wrapper.wrapper.d.ts +7 -7
  216. package/ssr/lib/components/spinner.wrapper.d.ts +2 -2
  217. package/ssr/lib/components/stepper-horizontal-item.wrapper.d.ts +5 -5
  218. package/ssr/lib/components/stepper-horizontal.wrapper.d.ts +13 -5
  219. package/ssr/lib/components/switch.wrapper.d.ts +13 -5
  220. package/ssr/lib/components/table-body.wrapper.d.ts +2 -2
  221. package/ssr/lib/components/table-cell.wrapper.d.ts +2 -2
  222. package/ssr/lib/components/table-head-cell.wrapper.d.ts +2 -2
  223. package/ssr/lib/components/table-head-row.wrapper.d.ts +2 -2
  224. package/ssr/lib/components/table-head.wrapper.d.ts +2 -2
  225. package/ssr/lib/components/table-row.wrapper.d.ts +2 -2
  226. package/ssr/lib/components/table.wrapper.d.ts +13 -5
  227. package/ssr/lib/components/tabs-bar.wrapper.d.ts +27 -11
  228. package/ssr/lib/components/tabs-item.wrapper.d.ts +2 -2
  229. package/ssr/lib/components/tabs.wrapper.d.ts +27 -11
  230. package/ssr/lib/components/tag-dismissible.wrapper.d.ts +2 -2
  231. package/ssr/lib/components/tag.wrapper.d.ts +5 -5
  232. package/ssr/lib/components/text-field-wrapper.wrapper.d.ts +17 -9
  233. package/ssr/lib/components/text-list-item.wrapper.d.ts +2 -2
  234. package/ssr/lib/components/text-list.wrapper.d.ts +19 -11
  235. package/ssr/lib/components/text.wrapper.d.ts +2 -2
  236. package/ssr/lib/components/textarea-wrapper.wrapper.d.ts +15 -7
  237. package/ssr/lib/components/toast.wrapper.d.ts +2 -2
  238. package/ssr/lib/dsr-components/carousel.d.ts +1 -1
  239. package/ssr/lib/dsr-components/link-social.d.ts +1 -1
  240. package/ssr/lib/dsr-components/modal.d.ts +2 -1
  241. package/ssr/lib/dsr-components/text-field-wrapper.d.ts +2 -0
  242. package/ssr/lib/types.d.ts +95 -30
@@ -58,6 +58,8 @@ const fontHyphenationStyle = {
58
58
 
59
59
  const fontLineHeight = 'calc(6px + 2.125ex)';
60
60
 
61
+ const fontSizeTextXXSmall = '.75rem';
62
+
61
63
  const fontSizeTextXSmall = 'clamp(0.81rem, 0.23vw + 0.77rem, 0.88rem)';
62
64
 
63
65
  const fontSizeTextSmall = '1rem';
@@ -69,6 +71,7 @@ const fontSizeTextLarge = 'clamp(1.27rem, 0.51vw + 1.16rem, 1.78rem)';
69
71
  const fontSizeTextXLarge = 'clamp(1.42rem, 0.94vw + 1.23rem, 2.37rem)';
70
72
 
71
73
  const fontSizeText = {
74
+ xxSmall: fontSizeTextXXSmall,
72
75
  xSmall: fontSizeTextXSmall,
73
76
  small: fontSizeTextSmall,
74
77
  medium: fontSizeTextMedium,
@@ -86,7 +89,7 @@ const fontSizeHeadingXLarge = fontSizeTextXLarge;
86
89
 
87
90
  const fontSizeHeadingXXLarge = 'clamp(1.6rem, 1.56vw + 1.29rem, 3.16rem)';
88
91
 
89
- const fontSizeHeadingXXXLarge = 'clamp(1.8rem, 2.41vw + 1.32rem, 4.21rem)';
92
+ const fontSizeDisplaySmall = 'clamp(1.8rem, 2.41vw + 1.32rem, 4.21rem)';
90
93
 
91
94
  const fontSizeDisplayMedium = 'clamp(2.03rem, 3.58vw + 1.31rem, 5.61rem)';
92
95
 
@@ -106,8 +109,6 @@ const fontWeight = {
106
109
 
107
110
  const fontStyleNormal = 'normal';
108
111
 
109
- const fontStyleItalic = 'italic';
110
-
111
112
  const fontVariant = 'normal';
112
113
 
113
114
  const backdropFilter = 'blur(32px)';
@@ -116,19 +117,42 @@ const frostedGlassStyle = {
116
117
  backdropFilter,
117
118
  };
118
119
 
119
- const breakpointBase = '0px';
120
+ const _gradient = 'rgba(31,31,31,0.9) 0%,' +
121
+ 'rgba(31,31,31,0.9) 20%,' +
122
+ 'rgba(31,31,31,0.852589) 26.67%,' +
123
+ 'rgba(32,32,32,0.768225) 33.33%,' +
124
+ 'rgba(33,33,33,0.668116) 40%,' +
125
+ 'rgba(34,34,34,0.557309) 46.67%,' +
126
+ 'rgba(35,35,35,0.442691) 53.33%,' +
127
+ 'rgba(36,36,36,0.331884) 60%,' +
128
+ 'rgba(37,37,37,0.231775) 66.67%,' +
129
+ 'rgba(38,38,38,0.147411) 73.33%,' +
130
+ 'rgba(39,39,39,0.0816599) 80%,' +
131
+ 'rgba(39,39,39,0.03551) 86.67%,' +
132
+ 'rgba(39,39,39,0.0086472) 93.33%,' +
133
+ 'rgba(39,39,39,0)';
134
+
135
+ const gradientToBottomStyle = {
136
+ background: `linear-gradient(to bottom, ${_gradient} 100%);`,
137
+ };
138
+
139
+ const gradientToTopStyle = {
140
+ background: `linear-gradient(to top, ${_gradient} 100%);`,
141
+ };
142
+
143
+ const breakpointBase = 0;
120
144
 
121
- const breakpointXS = '480px';
145
+ const breakpointXS = 480;
122
146
 
123
- const breakpointS = '760px';
147
+ const breakpointS = 760;
124
148
 
125
- const breakpointM = '1000px';
149
+ const breakpointM = 1000;
126
150
 
127
- const breakpointL = '1300px';
151
+ const breakpointL = 1300;
128
152
 
129
- const breakpointXL = '1760px';
153
+ const breakpointXL = 1760;
130
154
 
131
- const breakpointXXL = '1920px';
155
+ const breakpointXXL = 1920;
132
156
 
133
157
  const breakpoint = {
134
158
  base: breakpointBase,
@@ -141,15 +165,13 @@ const breakpoint = {
141
165
  };
142
166
 
143
167
  function getMediaQueryMin(min) {
144
- return `@media(min-width:${breakpoint[min]})`;
168
+ return `@media(min-width:${breakpoint[min]}px)`;
145
169
  }
146
170
 
147
171
  const spacingFluidMedium = 'clamp(16px, 1.25vw + 12px, 36px)';
148
172
 
149
173
  const gridGap = spacingFluidMedium;
150
174
 
151
- const gridWidthMin = '320px';
152
-
153
175
  const gridWidthMax = '2560px';
154
176
 
155
177
  // fluid sizing calculated by https://fluidtypography.com/#app-get-started
@@ -160,70 +182,12 @@ const gridSafeZoneBase = 'clamp(22px, 10.625vw - 12px, 192px)';
160
182
  // gridSafeZoneXXL: Viewport Width Range = 1920 - 2560px / Size Range = 192 - 512px
161
183
  const gridSafeZoneXXL = 'clamp(192px, 50vw - 768px, 512px)';
162
184
 
163
- const gridFullColumnStart = 'full-start';
164
-
165
- const gridExtendedColumnStart = 'extended-start';
166
-
167
- const gridBasicColumnStart = 'basic-start';
168
-
169
- const gridNarrowColumnStart = 'narrow-start';
170
-
171
- const gridNarrowColumnEnd = 'narrow-end';
172
-
173
- const gridBasicColumnEnd = 'basic-end';
174
-
175
- const gridExtendedColumnEnd = 'extended-end';
176
-
177
- const gridFullColumnEnd = 'full-end';
178
-
179
- const _cssVariableGridExtendedSpanOneHalf = '--pds-grid-extended-span-one-half';
180
- const _cssVariableGridBasicSpanOneHalf = '--pds-grid-basic-span-one-half';
181
- const _cssVariableGridBasicSpanOneThird = '--pds-grid-basic-span-one-third';
182
- const _cssVariableGridBasicSpanTwoThirds = '--pds-grid-basic-span-two-thirds';
183
- const _cssVariableGridNarrowSpanOneHalf = '--pds-grid-narrow-span-one-half';
184
- const _cssVariableGridSafeZone = '--pds-internal-grid-safe-zone';
185
-
186
- const outerColumn = `minmax(0, calc(var(${_cssVariableGridSafeZone}) - ${gridGap}))`;
187
- const column = 'minmax(0, 1fr)';
188
- const getColumns = (repeat) => (repeat > 1 ? `repeat(${repeat}, ${column})` : column);
189
- const getColumnSpan = (span) => `span ${span}`;
190
- const getGridTemplateColumns = (layout) => layout === 'mobile'
191
- ? `[${gridFullColumnStart}] ${outerColumn} [${gridExtendedColumnStart} ${gridBasicColumnStart} ${gridNarrowColumnStart}] ${getColumns(6)} [${gridNarrowColumnEnd} ${gridBasicColumnEnd} ${gridExtendedColumnEnd}] ${outerColumn} [${gridFullColumnEnd}]`
192
- : `[${gridFullColumnStart}] ${outerColumn} [${gridExtendedColumnStart}] ${getColumns(1)} [${gridBasicColumnStart}] ${getColumns(2)} [${gridNarrowColumnStart}] ${getColumns(8)} [${gridNarrowColumnEnd}] ${getColumns(2)} [${gridBasicColumnEnd}] ${getColumns(1)} [${gridExtendedColumnEnd}] ${outerColumn} [${gridFullColumnEnd}]`;
193
- ({
194
- [_cssVariableGridSafeZone]: gridSafeZoneBase,
195
- [_cssVariableGridExtendedSpanOneHalf]: getColumnSpan(3),
196
- [_cssVariableGridBasicSpanOneHalf]: getColumnSpan(3),
197
- [_cssVariableGridBasicSpanOneThird]: getColumnSpan(2),
198
- [_cssVariableGridBasicSpanTwoThirds]: getColumnSpan(4),
199
- [_cssVariableGridNarrowSpanOneHalf]: getColumnSpan(3),
200
- display: 'grid',
201
- gridGap,
202
- gridTemplateColumns: getGridTemplateColumns('mobile'),
203
- minWidth: gridWidthMin,
204
- maxWidth: gridWidthMax,
205
- margin: 0,
206
- padding: `0 calc(50% - ${gridWidthMax} / 2)`,
207
- boxSizing: 'content-box',
208
- [getMediaQueryMin('s')]: {
209
- [_cssVariableGridExtendedSpanOneHalf]: getColumnSpan(7),
210
- [_cssVariableGridBasicSpanOneHalf]: getColumnSpan(6),
211
- [_cssVariableGridBasicSpanOneThird]: getColumnSpan(4),
212
- [_cssVariableGridBasicSpanTwoThirds]: getColumnSpan(8),
213
- [_cssVariableGridNarrowSpanOneHalf]: getColumnSpan(4),
214
- gridTemplateColumns: getGridTemplateColumns('desktop'),
215
- },
216
- [getMediaQueryMin('xxl')]: {
217
- [_cssVariableGridSafeZone]: gridSafeZoneXXL,
218
- },
219
- });
220
-
221
185
  function getMediaQueryMax(max) {
222
- return `@media(max-width:${breakpoint[max].slice(0, -2) - 1}px)`;
186
+ return `@media(max-width:${breakpoint[max] - 1}px)`;
223
187
  }
224
188
 
225
189
  function getMediaQueryMinMax(min, max) {
226
- return `@media(min-width:${breakpoint[min]}) and (max-width:${breakpoint[max].slice(0, -2) - 1}px)`;
190
+ return `@media(min-width:${breakpoint[min]}px) and (max-width:${breakpoint[max] - 1}px)`;
227
191
  }
228
192
 
229
193
  const spacingStaticXSmall = '4px';
@@ -238,9 +202,11 @@ const spacingFluidXSmall = 'clamp(4px, 0.25vw + 3px, 8px)';
238
202
 
239
203
  const spacingFluidSmall = 'clamp(8px, 0.5vw + 6px, 16px)';
240
204
 
205
+ const spacingFluidLarge = 'clamp(32px, 2.75vw + 23px, 76px)';
206
+
241
207
  const themeDarkBackgroundShading = 'rgba(1, 2, 5, 0.67)';
242
208
 
243
- const _displayFontPartA = `${fontStyleItalic} ${fontVariant} ${fontWeightSemiBold$1} `;
209
+ const _displayFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightRegular} `;
244
210
  const _displayFontPartB = `/${fontLineHeight} ${fontFamily}`;
245
211
 
246
212
  const displayMediumStyle = {
@@ -287,13 +253,18 @@ const textSmallStyle = {
287
253
  ...fontHyphenationStyle,
288
254
  };
289
255
 
256
+ const textLargeStyle = {
257
+ font: `${_textFontPartA}${fontSizeTextLarge}${_textFontPartB}`,
258
+ ...fontHyphenationStyle,
259
+ };
260
+
290
261
  // TODO: we shouldn't exclude xxl breakpoint
291
262
  const mediaQueries = Object.entries(breakpoint)
292
263
  .filter(([key]) => key !== 'xxl')
293
- .map(([, val]) => `(min-width:${val})`);
264
+ .map(([, val]) => `(min-width:${val}px)`);
294
265
  hasWindow && window.matchMedia ? mediaQueries.map(window.matchMedia) : [];
295
266
 
296
- Object.entries(breakpoint).reduce((result, [key, val]) => (Object.assign(Object.assign({}, result), { [val]: key })), {});
267
+ Object.entries(breakpoint).reduce((result, [key, val]) => (Object.assign(Object.assign({}, result), { [`${val}px`]: key })), {});
297
268
 
298
269
  const hasVisibleIcon = (iconName, iconSource) => {
299
270
  return iconName !== 'none' || !!iconSource;
@@ -503,12 +474,6 @@ var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symb
503
474
 
504
475
  var isBrowser = (typeof window === "undefined" ? "undefined" : _typeof$1(window)) === "object" && (typeof document === "undefined" ? "undefined" : _typeof$1(document)) === 'object' && document.nodeType === 9;
505
476
 
506
- var module$1 = /*#__PURE__*/Object.freeze({
507
- __proto__: null,
508
- default: isBrowser,
509
- isBrowser: isBrowser
510
- });
511
-
512
477
  var isProduction = process.env.NODE_ENV === 'production';
513
478
  function warning(condition, message) {
514
479
  if (!isProduction) {
@@ -1056,7 +1021,7 @@ function () {
1056
1021
 
1057
1022
  return ConditionalRule;
1058
1023
  }();
1059
- var keyRegExp = /@media|@supports\s+/;
1024
+ var keyRegExp = /@container|@media|@supports\s+/;
1060
1025
  var pluginConditionalRule = {
1061
1026
  onCreateRule: function onCreateRule(key, styles, options) {
1062
1027
  return keyRegExp.test(key) ? new ConditionalRule(key, styles, options) : null;
@@ -1353,7 +1318,7 @@ var pluginSimpleRule = {
1353
1318
  }
1354
1319
  };
1355
1320
 
1356
- var plugins$1 = [pluginStyleRule, pluginConditionalRule, pluginKeyframesRule, pluginKeyframeRule, pluginFontFaceRule, pluginViewportRule, pluginSimpleRule];
1321
+ var plugins = [pluginStyleRule, pluginConditionalRule, pluginKeyframesRule, pluginKeyframeRule, pluginFontFaceRule, pluginViewportRule, pluginSimpleRule];
1357
1322
 
1358
1323
  var defaultUpdateOptions = {
1359
1324
  process: true
@@ -2620,7 +2585,7 @@ var Jss =
2620
2585
  function () {
2621
2586
  function Jss(options) {
2622
2587
  this.id = instanceCounter++;
2623
- this.version = "10.9.2";
2588
+ this.version = "10.10.0";
2624
2589
  this.plugins = new PluginsRegistry();
2625
2590
  this.options = {
2626
2591
  id: {
@@ -2634,8 +2599,8 @@ function () {
2634
2599
  minify: false
2635
2600
  });
2636
2601
 
2637
- for (var i = 0; i < plugins$1.length; i++) {
2638
- this.plugins.use(plugins$1[i], {
2602
+ for (var i = 0; i < plugins.length; i++) {
2603
+ this.plugins.use(plugins[i], {
2639
2604
  queue: 'internal'
2640
2605
  });
2641
2606
  }
@@ -2900,54 +2865,24 @@ var jss_esm = /*#__PURE__*/Object.freeze({
2900
2865
  toCssValue: toCssValue
2901
2866
  });
2902
2867
 
2903
- function getAugmentedNamespace(n) {
2904
- if (n.__esModule) return n;
2905
- var f = n.default;
2906
- if (typeof f == "function") {
2907
- var a = function a () {
2908
- if (this instanceof a) {
2909
- var args = [null];
2910
- args.push.apply(args, arguments);
2911
- var Ctor = Function.bind.apply(f, args);
2912
- return new Ctor();
2913
- }
2914
- return f.apply(this, arguments);
2915
- };
2916
- a.prototype = f.prototype;
2917
- } else a = {};
2918
- Object.defineProperty(a, '__esModule', {value: true});
2919
- Object.keys(n).forEach(function (k) {
2920
- var d = Object.getOwnPropertyDescriptor(n, k);
2921
- Object.defineProperty(a, k, d.get ? d : {
2922
- enumerable: true,
2923
- get: function () {
2924
- return n[k];
2925
- }
2926
- });
2927
- });
2928
- return a;
2929
- }
2930
-
2931
2868
  /* eslint-disable no-var, prefer-template */
2932
2869
  var uppercasePattern = /[A-Z]/g;
2933
2870
  var msPattern = /^ms-/;
2934
- var cache$2 = {};
2871
+ var cache = {};
2935
2872
 
2936
2873
  function toHyphenLower(match) {
2937
2874
  return '-' + match.toLowerCase()
2938
2875
  }
2939
2876
 
2940
2877
  function hyphenateStyleName(name) {
2941
- if (cache$2.hasOwnProperty(name)) {
2942
- return cache$2[name]
2878
+ if (cache.hasOwnProperty(name)) {
2879
+ return cache[name]
2943
2880
  }
2944
2881
 
2945
2882
  var hName = name.replace(uppercasePattern, toHyphenLower);
2946
- return (cache$2[name] = msPattern.test(hName) ? '-' + hName : hName)
2883
+ return (cache[name] = msPattern.test(hName) ? '-' + hName : hName)
2947
2884
  }
2948
2885
 
2949
- var index_cjs = hyphenateStyleName;
2950
-
2951
2886
  /**
2952
2887
  * Convert camel cased property names to dash separated.
2953
2888
  */
@@ -2956,7 +2891,7 @@ function convertCase(style) {
2956
2891
  var converted = {};
2957
2892
 
2958
2893
  for (var prop in style) {
2959
- var key = prop.indexOf('--') === 0 ? prop : index_cjs(prop);
2894
+ var key = prop.indexOf('--') === 0 ? prop : hyphenateStyleName(prop);
2960
2895
  converted[key] = style[prop];
2961
2896
  }
2962
2897
 
@@ -2990,7 +2925,7 @@ function camelCase() {
2990
2925
  return value;
2991
2926
  }
2992
2927
 
2993
- var hyphenatedProp = index_cjs(prop); // There was no camel case in place
2928
+ var hyphenatedProp = hyphenateStyleName(prop); // There was no camel case in place
2994
2929
 
2995
2930
  if (prop === hyphenatedProp) return value;
2996
2931
  rule.prop(hyphenatedProp, value); // Core will ignore that property value we set the proper one above.
@@ -3295,6 +3230,34 @@ function jssNested() {
3295
3230
  };
3296
3231
  }
3297
3232
 
3233
+ function getAugmentedNamespace(n) {
3234
+ if (n.__esModule) return n;
3235
+ var f = n.default;
3236
+ if (typeof f == "function") {
3237
+ var a = function a () {
3238
+ if (this instanceof a) {
3239
+ var args = [null];
3240
+ args.push.apply(args, arguments);
3241
+ var Ctor = Function.bind.apply(f, args);
3242
+ return new Ctor();
3243
+ }
3244
+ return f.apply(this, arguments);
3245
+ };
3246
+ a.prototype = f.prototype;
3247
+ } else a = {};
3248
+ Object.defineProperty(a, '__esModule', {value: true});
3249
+ Object.keys(n).forEach(function (k) {
3250
+ var d = Object.getOwnPropertyDescriptor(n, k);
3251
+ Object.defineProperty(a, k, d.get ? d : {
3252
+ enumerable: true,
3253
+ get: function () {
3254
+ return n[k];
3255
+ }
3256
+ });
3257
+ });
3258
+ return a;
3259
+ }
3260
+
3298
3261
  var _tslib$1 = {};
3299
3262
 
3300
3263
  (function (exports) {
@@ -3703,10 +3666,10 @@ const themeLight = {
3703
3666
  contrastHighColor: '#535457',
3704
3667
  contrastHighColorDarken: '#353638',
3705
3668
  contrastHighColorLighten: '#717276',
3706
- hoverColor: 'rgba(148, 149, 152, 0.20)',
3669
+ hoverColor: 'rgba(148, 149, 152, .18)',
3707
3670
  hoverColorDarken: '#75767A',
3708
3671
  activeColor: 'rgba(148, 149, 152, 0.20)',
3709
- focusColor: '#0A0AFF',
3672
+ focusColor: '#1A44EA',
3710
3673
  disabledColor: '#949598',
3711
3674
  errorColor: '#E7323B',
3712
3675
  errorColorDarken: '#C51720',
@@ -3741,10 +3704,10 @@ const themeDark = {
3741
3704
  contrastHighColor: '#AFB0B3',
3742
3705
  contrastHighColorDarken: '#909195',
3743
3706
  contrastHighColorLighten: '#CECFD1',
3744
- hoverColor: 'rgba(126, 127, 130, 0.20)',
3745
- hoverColorDarken: '#606163',
3707
+ hoverColor: 'rgba(148, 149, 152, .18)',
3708
+ hoverColorDarken: '#75767A',
3746
3709
  activeColor: 'rgba(126, 127, 130, 0.20)',
3747
- focusColor: '#1E5BEB',
3710
+ focusColor: '#1A44EA',
3748
3711
  disabledColor: '#7E7F82',
3749
3712
  errorColor: '#CB3333',
3750
3713
  errorColorDarken: '#9A2727',
@@ -3806,6 +3769,14 @@ const getInsetJssStyle = (value = 0) => {
3806
3769
  bottom: value,
3807
3770
  };
3808
3771
  };
3772
+ // reset initial styles, e.g. in case link-pure is used with slotted anchor and nested within e.g. an accordion
3773
+ const getResetInitialStylesForSlottedAnchor = {
3774
+ margin: 0,
3775
+ padding: 0,
3776
+ outline: 0,
3777
+ borderRadius: 0,
3778
+ background: 'transparent',
3779
+ };
3809
3780
  const getFocusJssStyle = (opts) => {
3810
3781
  const { pseudo, offset: outlineOffset, color: outlineColor, } = Object.assign({ color: 'currentColor', offset: 2 }, opts);
3811
3782
  return pseudo
@@ -3924,14 +3895,14 @@ const buildResponsiveStyles = (rawValue, getJssStyle) => {
3924
3895
  [getMediaQueryMin(breakpointValue)]: getJssStyle(value[breakpointValue]) })), getJssStyle(value.base))
3925
3896
  : getJssStyle(value);
3926
3897
  };
3927
- const isObject$1 = (obj) => typeof obj === 'object' && !Array.isArray(obj);
3898
+ const isObject = (obj) => typeof obj === 'object' && !Array.isArray(obj);
3928
3899
  // NOTE: taken from https://stackoverflow.com/a/48218209
3929
3900
  const mergeDeep = (...objects) => {
3930
3901
  return objects.reduce((prev, obj) => {
3931
3902
  Object.keys(obj).forEach((key) => {
3932
3903
  const pVal = prev[key];
3933
3904
  const oVal = obj[key];
3934
- if (isObject$1(pVal) && isObject$1(oVal)) {
3905
+ if (isObject(pVal) && isObject(oVal)) {
3935
3906
  prev[key] = mergeDeep(pVal, oVal);
3936
3907
  }
3937
3908
  else {
@@ -3942,1961 +3913,131 @@ const mergeDeep = (...objects) => {
3942
3913
  }, {});
3943
3914
  };
3944
3915
 
3945
- [
3946
- { name: 'Model', id: 'model' },
3947
- { name: 'Interest', id: 'interest' },
3948
- { name: 'VIN', id: 'vin' },
3949
- { name: 'Purchase Intention', id: 'purchaseIntention' },
3950
- { name: 'Status', id: 'status' },
3951
- { name: 'Comment', id: 'comment' },
3952
- { name: 'Lead ID', id: 'leadId' },
3953
- { name: 'Action', id: 'action', hideLabel: true },
3954
- ].map((item, i) => ({
3955
- ...item,
3956
- ...(i > 0 &&
3957
- i < 7 &&
3958
- i !== 5 && {
3959
- active: i === 1,
3960
- direction: 'asc',
3961
- }),
3962
- }));
3963
-
3964
- [
3965
- { name: 'Column 1', id: 'col1' },
3966
- { name: 'Column 2', id: 'col2' },
3967
- { name: 'Column 3', id: 'col3' },
3968
- ].map((item, i) => ({
3969
- ...item,
3970
- active: i === 1,
3971
- direction: 'asc',
3972
- }));
3973
-
3974
- Array.from(Array(4)).map(() => ({
3975
- imageUrl: 'https://nav.porsche.com/00BC524/series-assets/1366/911@2x.jpg',
3976
- imageWidth: 80,
3977
- imageHeight: 48,
3978
- html: "<a href='#'>link</a>&nbsp;<b>bold</b>&nbsp;<i>italic</i>&nbsp;<strong>strong</strong>&nbsp;<em>emphasized</em>",
3979
- longText: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr',
3980
- shortText: 'Some text',
3981
- }));
3982
-
3983
- var now = Date.now();
3984
- var fnValuesNs = "fnValues" + now;
3985
- var fnRuleNs = "fnStyle" + ++now;
3986
-
3987
- var functionPlugin = function functionPlugin() {
3988
- return {
3989
- onCreateRule: function onCreateRule(name, decl, options) {
3990
- if (typeof decl !== 'function') return null;
3991
- var rule = createRule(name, {}, options);
3992
- rule[fnRuleNs] = decl;
3993
- return rule;
3994
- },
3995
- onProcessStyle: function onProcessStyle(style, rule) {
3996
- // We need to extract function values from the declaration, so that we can keep core unaware of them.
3997
- // We need to do that only once.
3998
- // We don't need to extract functions on each style update, since this can happen only once.
3999
- // We don't support function values inside of function rules.
4000
- if (fnValuesNs in rule || fnRuleNs in rule) return style;
4001
- var fnValues = {};
4002
-
4003
- for (var prop in style) {
4004
- var value = style[prop];
4005
- if (typeof value !== 'function') continue;
4006
- delete style[prop];
4007
- fnValues[prop] = value;
4008
- }
4009
-
4010
- rule[fnValuesNs] = fnValues;
4011
- return style;
4012
- },
4013
- onUpdate: function onUpdate(data, rule, sheet, options) {
4014
- var styleRule = rule;
4015
- var fnRule = styleRule[fnRuleNs]; // If we have a style function, the entire rule is dynamic and style object
4016
- // will be returned from that function.
4017
-
4018
- if (fnRule) {
4019
- // Empty object will remove all currently defined props
4020
- // in case function rule returns a falsy value.
4021
- styleRule.style = fnRule(data) || {};
4022
-
4023
- if (process.env.NODE_ENV === 'development') {
4024
- for (var prop in styleRule.style) {
4025
- if (typeof styleRule.style[prop] === 'function') {
4026
- process.env.NODE_ENV !== "production" ? warning(false, '[JSS] Function values inside function rules are not supported.') : void 0;
4027
- break;
4028
- }
4029
- }
4030
- }
4031
- }
3916
+ const hasDocument = typeof document !== 'undefined';
4032
3917
 
4033
- var fnValues = styleRule[fnValuesNs]; // If we have a fn values map, it is a rule with function values.
3918
+ hasDocument && 'scrollBehavior' in document.documentElement.style;
4034
3919
 
4035
- if (fnValues) {
4036
- for (var _prop in fnValues) {
4037
- styleRule.prop(_prop, fnValues[_prop](data), options);
4038
- }
4039
- }
4040
- }
4041
- };
3920
+ const isThemeDark = (theme) => {
3921
+ return theme === 'dark';
4042
3922
  };
4043
3923
 
4044
- function symbolObservablePonyfill(root) {
4045
- var result;
4046
- var Symbol = root.Symbol;
4047
-
4048
- if (typeof Symbol === 'function') {
4049
- if (Symbol.observable) {
4050
- result = Symbol.observable;
4051
- } else {
4052
- result = Symbol('observable');
4053
- Symbol.observable = result;
4054
- }
4055
- } else {
4056
- result = '@@observable';
4057
- }
4058
-
4059
- return result;
4060
- }
4061
-
4062
- /* global window */
4063
-
4064
- var root;
4065
-
4066
- if (typeof self !== 'undefined') {
4067
- root = self;
4068
- } else if (typeof window !== 'undefined') {
4069
- root = window;
4070
- } else if (typeof global !== 'undefined') {
4071
- root = global;
4072
- } else if (typeof module !== 'undefined') {
4073
- root = module;
4074
- } else {
4075
- root = Function('return this')();
4076
- }
4077
-
4078
- var result = symbolObservablePonyfill(root);
4079
-
4080
- var isObservable = function isObservable(value) {
4081
- return value && value[result] && value === value[result]();
3924
+ const formatObjectOutput = (value) => {
3925
+ return JSON.stringify(value)
3926
+ .replace(/"([a-zA-Z?]+)":/g, '$1:') // remove double quotes from keys
3927
+ .replace(/([,:{])/g, '$1 ') // add space after following: ,:{
3928
+ .replace(/(})/g, ' $1') // add space before following: }
3929
+ .replace(/^"(.+)"$/, '$1'); // remove wrapping double quotes
4082
3930
  };
3931
+ 'value, ' +
3932
+ formatObjectOutput(BREAKPOINTS.reduce((prev, key) => (Object.assign(Object.assign({}, prev), { [key + (key !== 'base' ? '?' : '')]: 'value' })), {})).replace(/"/g, '');
4083
3933
 
4084
- var observablePlugin = function observablePlugin(updateOptions) {
4085
- return {
4086
- onCreateRule: function onCreateRule(name, decl, options) {
4087
- if (!isObservable(decl)) return null;
4088
- var style$ = decl;
4089
- var rule = createRule(name, {}, options); // TODO
4090
- // Call `stream.subscribe()` returns a subscription, which should be explicitly
4091
- // unsubscribed from when we know this sheet is no longer needed.
4092
-
4093
- style$.subscribe(function (style) {
4094
- for (var prop in style) {
4095
- rule.prop(prop, style[prop], updateOptions);
4096
- }
4097
- });
4098
- return rule;
4099
- },
4100
- onProcessRule: function onProcessRule(rule) {
4101
- if (rule && rule.type !== 'style') return;
4102
- var styleRule = rule;
4103
- var style = styleRule.style;
4104
-
4105
- var _loop = function _loop(prop) {
4106
- var value = style[prop];
4107
- if (!isObservable(value)) return "continue";
4108
- delete style[prop];
4109
- value.subscribe({
4110
- next: function next(nextValue) {
4111
- styleRule.prop(prop, nextValue, updateOptions);
4112
- }
4113
- });
4114
- };
4115
-
4116
- for (var prop in style) {
4117
- var _ret = _loop(prop);
3934
+ const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
4118
3935
 
4119
- if (_ret === "continue") continue;
4120
- }
4121
- }
4122
- };
3936
+ const getComponentCss$T = (size, compact, open, theme) => {
3937
+ const { primaryColor, hoverColor, focusColor, contrastLowColor } = getThemedColors(theme);
3938
+ const border = `1px solid ${contrastLowColor}`;
3939
+ return getCss(Object.assign(Object.assign({ '@global': {
3940
+ ':host': addImportantToEachRule(Object.assign({ display: 'block' }, hostHiddenStyles)),
3941
+ button: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', position: 'relative', justifyContent: 'space-between', margin: '2px 0', width: '100%', textDecoration: 'none', border: 0, outline: 0, gap: '24px', background: 'transparent', cursor: 'pointer', textAlign: 'left', color: primaryColor }, textSmallStyle), { fontWeight: fontWeight.semiBold }), buildResponsiveStyles(size, (s) => ({
3942
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
3943
+ // @ts-ignore
3944
+ fontSize: fontSizeText[s],
3945
+ padding: compact ? '4px 0' : `${s === 'medium' ? '20px' : '12px'} 0`,
3946
+ }))), mergeDeep({
3947
+ '&::before': Object.assign({ content: '""', position: 'absolute', borderRadius: borderRadiusSmall, left: '-4px', right: '-4px' }, (compact
3948
+ ? {
3949
+ top: '2px',
3950
+ bottom: '2px',
3951
+ }
3952
+ : {
3953
+ top: '6px',
3954
+ bottom: '6px',
3955
+ })),
3956
+ }, hoverMediaQuery({
3957
+ '&::before': {
3958
+ transition: getTransition('background-color'),
3959
+ },
3960
+ '&:hover::before': {
3961
+ background: hoverColor,
3962
+ },
3963
+ }))), { '&:focus::before': {
3964
+ border: `${borderWidthBase} solid ${focusColor}`,
3965
+ }, '&:not(:focus-visible)::before': {
3966
+ border: 0,
3967
+ } }),
3968
+ } }, (!compact && {
3969
+ root: {
3970
+ borderBottom: border,
3971
+ },
3972
+ })), { heading: {
3973
+ margin: 0,
3974
+ padding: 0,
3975
+ }, icon: {
3976
+ width: fontLineHeight,
3977
+ height: fontLineHeight,
3978
+ transformOrigin: '50% 50%',
3979
+ transform: open ? 'rotate3d(0)' : 'rotate3d(0,0,1,90deg)',
3980
+ transition: getTransition('transform'),
3981
+ }, collapsible: Object.assign({ color: primaryColor, padding: 0, overflow: 'hidden' }, (open
3982
+ ? {
3983
+ height: 'auto',
3984
+ paddingBottom: compact ? spacingStaticSmall : '24px',
3985
+ visibility: 'visible',
3986
+ transition: getTransition('height') + `,visibility ${transitionDuration}`,
3987
+ animation: `$open ${transitionDuration} ease forwards`,
3988
+ }
3989
+ : {
3990
+ height: 0,
3991
+ visibility: 'hidden',
3992
+ transition: getTransition('height') + `,visibility ${transitionDuration} linear ${transitionDuration}`,
3993
+ })),
3994
+ // TODO: this doesn't get shortened and results in `keyframes-open` for some unknown reason
3995
+ '@keyframes open': {
3996
+ '0%,99%': {
3997
+ overflow: 'hidden',
3998
+ },
3999
+ '100%': {
4000
+ overflow: 'visible',
4001
+ },
4002
+ } }));
4123
4003
  };
4124
4004
 
4125
- var semiWithNl = /;\n/;
4126
- /**
4127
- * Naive CSS parser.
4128
- * - Supports only rule body (no selectors)
4129
- * - Requires semicolon and new line after the value (except of last line)
4130
- * - No nested rules support
4131
- */
4132
-
4133
- var parse = function parse(cssText) {
4134
- var style = {};
4135
- var split = cssText.split(semiWithNl);
4136
-
4137
- for (var i = 0; i < split.length; i++) {
4138
- var decl = (split[i] || '').trim();
4139
- if (!decl) continue;
4140
- var colonIndex = decl.indexOf(':');
4141
-
4142
- if (colonIndex === -1) {
4143
- process.env.NODE_ENV !== "production" ? warning(false, "[JSS] Malformed CSS string \"" + decl + "\"") : void 0;
4144
- continue;
4145
- }
4146
-
4147
- var prop = decl.substr(0, colonIndex).trim();
4148
- var value = decl.substr(colonIndex + 1).trim();
4149
- style[prop] = value;
4150
- }
4005
+ const TOAST_Z_INDEX = 999999;
4006
+ const MODAL_Z_INDEX = 99999;
4007
+ const POPOVER_Z_INDEX = 9999;
4008
+ const BANNER_Z_INDEX = 99;
4151
4009
 
4152
- return style;
4010
+ const oneColumnWidthS = `calc((100% - ${gridSafeZoneBase} * 2 - ${gridGap} * 13) / 14)`;
4011
+ const oneColumnWidthXXL = `calc((min(100%, ${gridWidthMax}) - ${gridSafeZoneXXL} * 2 - ${gridGap} * 13) / 14)`;
4012
+ const offsetHorizontalXXL = `max(0px, (100% - ${gridWidthMax}) / 2)`;
4013
+ const widthMap$1 = {
4014
+ narrow: {
4015
+ padding: `0 ${gridSafeZoneBase}`,
4016
+ [getMediaQueryMin('s')]: {
4017
+ padding: `0 calc(${gridSafeZoneBase} + ${gridGap} * 3 + ${oneColumnWidthS} * 3)`,
4018
+ },
4019
+ [getMediaQueryMin('xxl')]: {
4020
+ padding: `0 calc(${offsetHorizontalXXL} + ${gridSafeZoneXXL} + ${gridGap} * 3 + ${oneColumnWidthXXL} * 3)`,
4021
+ },
4022
+ },
4023
+ basic: {
4024
+ padding: `0 ${gridSafeZoneBase}`,
4025
+ [getMediaQueryMin('s')]: {
4026
+ padding: `0 calc(${gridSafeZoneBase} + ${gridGap} + ${oneColumnWidthS})`,
4027
+ },
4028
+ [getMediaQueryMin('xxl')]: {
4029
+ padding: `0 calc(${offsetHorizontalXXL} + ${gridSafeZoneXXL} + ${gridGap} + ${oneColumnWidthXXL})`,
4030
+ },
4031
+ },
4032
+ extended: {
4033
+ padding: `0 ${gridSafeZoneBase}`,
4034
+ [getMediaQueryMin('xxl')]: {
4035
+ padding: `0 calc(${offsetHorizontalXXL} + ${gridSafeZoneXXL})`,
4036
+ },
4037
+ },
4153
4038
  };
4154
-
4155
- var onProcessRule = function onProcessRule(rule) {
4156
- if (typeof rule.style === 'string') {
4157
- rule.style = parse(rule.style);
4158
- }
4159
- };
4160
-
4161
- function templatePlugin() {
4162
- return {
4163
- onProcessRule: onProcessRule
4164
- };
4165
- }
4166
-
4167
- var isObject = function isObject(obj) {
4168
- return obj && typeof obj === 'object' && !Array.isArray(obj);
4169
- };
4170
-
4171
- var valueNs = "extendCurrValue" + Date.now();
4172
-
4173
- function mergeExtend(style, rule, sheet, newStyle) {
4174
- var extendType = typeof style.extend; // Extend using a rule name.
4175
-
4176
- if (extendType === 'string') {
4177
- if (!sheet) return;
4178
- var refRule = sheet.getRule(style.extend);
4179
- if (!refRule) return;
4180
-
4181
- if (refRule === rule) {
4182
- process.env.NODE_ENV !== "production" ? warning(false, "[JSS] A rule tries to extend itself \n" + rule.toString()) : void 0;
4183
- return;
4184
- }
4185
-
4186
- var parent = refRule.options.parent;
4187
-
4188
- if (parent) {
4189
- var originalStyle = parent.rules.raw[style.extend];
4190
- extend(originalStyle, rule, sheet, newStyle);
4191
- }
4192
-
4193
- return;
4194
- } // Extend using an array.
4195
-
4196
-
4197
- if (Array.isArray(style.extend)) {
4198
- for (var index = 0; index < style.extend.length; index++) {
4199
- var singleExtend = style.extend[index];
4200
- var singleStyle = typeof singleExtend === 'string' ? _extends({}, style, {
4201
- extend: singleExtend
4202
- }) : style.extend[index];
4203
- extend(singleStyle, rule, sheet, newStyle);
4204
- }
4205
-
4206
- return;
4207
- } // Extend is a style object.
4208
-
4209
-
4210
- for (var prop in style.extend) {
4211
- if (prop === 'extend') {
4212
- extend(style.extend.extend, rule, sheet, newStyle);
4213
- continue;
4214
- }
4215
-
4216
- if (isObject(style.extend[prop])) {
4217
- if (!(prop in newStyle)) newStyle[prop] = {};
4218
- extend(style.extend[prop], rule, sheet, newStyle[prop]);
4219
- continue;
4220
- }
4221
-
4222
- newStyle[prop] = style.extend[prop];
4223
- }
4224
- }
4225
-
4226
- function mergeRest(style, rule, sheet, newStyle) {
4227
- // Copy base style.
4228
- for (var prop in style) {
4229
- if (prop === 'extend') continue;
4230
-
4231
- if (isObject(newStyle[prop]) && isObject(style[prop])) {
4232
- extend(style[prop], rule, sheet, newStyle[prop]);
4233
- continue;
4234
- }
4235
-
4236
- if (isObject(style[prop])) {
4237
- newStyle[prop] = extend(style[prop], rule, sheet);
4238
- continue;
4239
- }
4240
-
4241
- newStyle[prop] = style[prop];
4242
- }
4243
- }
4244
- /**
4245
- * Recursively extend styles.
4246
- */
4247
-
4248
-
4249
- function extend(style, rule, sheet, newStyle) {
4250
- if (newStyle === void 0) {
4251
- newStyle = {};
4252
- }
4253
-
4254
- mergeExtend(style, rule, sheet, newStyle);
4255
- mergeRest(style, rule, sheet, newStyle);
4256
- return newStyle;
4257
- }
4258
- /**
4259
- * Handle `extend` property.
4260
- */
4261
-
4262
-
4263
- function jssExtend() {
4264
- function onProcessStyle(style, rule, sheet) {
4265
- if ('extend' in style) return extend(style, rule, sheet);
4266
- return style;
4267
- }
4268
-
4269
- function onChangeValue(value, prop, rule) {
4270
- if (prop !== 'extend') return value; // Value is empty, remove properties set previously.
4271
-
4272
- if (value == null || value === false) {
4273
- for (var key in rule[valueNs]) {
4274
- rule.prop(key, null);
4275
- }
4276
-
4277
- rule[valueNs] = null;
4278
- return null;
4279
- }
4280
-
4281
- if (typeof value === 'object') {
4282
- for (var _key in value) {
4283
- rule.prop(_key, value[_key]);
4284
- }
4285
-
4286
- rule[valueNs] = value;
4287
- } // Make sure we don't set the value in the core.
4288
-
4289
-
4290
- return null;
4291
- }
4292
-
4293
- return {
4294
- onProcessStyle: onProcessStyle,
4295
- onChangeValue: onChangeValue
4296
- };
4297
- }
4298
-
4299
- /**
4300
- * Set selector.
4301
- *
4302
- * @param original rule
4303
- * @param className class string
4304
- * @return flag indicating function was successfull or not
4305
- */
4306
-
4307
- function registerClass(rule, className) {
4308
- // Skip falsy values
4309
- if (!className) return true; // Support array of class names `{composes: ['foo', 'bar']}`
4310
-
4311
- if (Array.isArray(className)) {
4312
- for (var index = 0; index < className.length; index++) {
4313
- var isSetted = registerClass(rule, className[index]);
4314
- if (!isSetted) return false;
4315
- }
4316
-
4317
- return true;
4318
- } // Support space separated class names `{composes: 'foo bar'}`
4319
-
4320
-
4321
- if (className.indexOf(' ') > -1) {
4322
- return registerClass(rule, className.split(' '));
4323
- }
4324
-
4325
- var parent = rule.options.parent; // It is a ref to a local rule.
4326
-
4327
- if (className[0] === '$') {
4328
- var refRule = parent.getRule(className.substr(1));
4329
-
4330
- if (!refRule) {
4331
- process.env.NODE_ENV !== "production" ? warning(false, "[JSS] Referenced rule is not defined. \n" + rule.toString()) : void 0;
4332
- return false;
4333
- }
4334
-
4335
- if (refRule === rule) {
4336
- process.env.NODE_ENV !== "production" ? warning(false, "[JSS] Cyclic composition detected. \n" + rule.toString()) : void 0;
4337
- return false;
4338
- }
4339
-
4340
- parent.classes[rule.key] += " " + parent.classes[refRule.key];
4341
- return true;
4342
- }
4343
-
4344
- parent.classes[rule.key] += " " + className;
4345
- return true;
4346
- }
4347
- /**
4348
- * Convert compose property to additional class, remove property from original styles.
4349
- */
4350
-
4351
-
4352
- function jssCompose() {
4353
- function onProcessStyle(style, rule) {
4354
- if (!('composes' in style)) return style;
4355
- registerClass(rule, style.composes); // Remove composes property to prevent infinite loop.
4356
-
4357
- delete style.composes;
4358
- return style;
4359
- }
4360
-
4361
- return {
4362
- onProcessStyle: onProcessStyle
4363
- };
4364
- }
4365
-
4366
- var px = hasCSSTOMSupport && CSS ? CSS.px : 'px';
4367
- var ms = hasCSSTOMSupport && CSS ? CSS.ms : 'ms';
4368
- var percent = hasCSSTOMSupport && CSS ? CSS.percent : '%';
4369
- /**
4370
- * Generated jss-plugin-default-unit CSS property units
4371
- */
4372
-
4373
- var defaultUnits = {
4374
- // Animation properties
4375
- 'animation-delay': ms,
4376
- 'animation-duration': ms,
4377
- // Background properties
4378
- 'background-position': px,
4379
- 'background-position-x': px,
4380
- 'background-position-y': px,
4381
- 'background-size': px,
4382
- // Border Properties
4383
- border: px,
4384
- 'border-bottom': px,
4385
- 'border-bottom-left-radius': px,
4386
- 'border-bottom-right-radius': px,
4387
- 'border-bottom-width': px,
4388
- 'border-left': px,
4389
- 'border-left-width': px,
4390
- 'border-radius': px,
4391
- 'border-right': px,
4392
- 'border-right-width': px,
4393
- 'border-top': px,
4394
- 'border-top-left-radius': px,
4395
- 'border-top-right-radius': px,
4396
- 'border-top-width': px,
4397
- 'border-width': px,
4398
- 'border-block': px,
4399
- 'border-block-end': px,
4400
- 'border-block-end-width': px,
4401
- 'border-block-start': px,
4402
- 'border-block-start-width': px,
4403
- 'border-block-width': px,
4404
- 'border-inline': px,
4405
- 'border-inline-end': px,
4406
- 'border-inline-end-width': px,
4407
- 'border-inline-start': px,
4408
- 'border-inline-start-width': px,
4409
- 'border-inline-width': px,
4410
- 'border-start-start-radius': px,
4411
- 'border-start-end-radius': px,
4412
- 'border-end-start-radius': px,
4413
- 'border-end-end-radius': px,
4414
- // Margin properties
4415
- margin: px,
4416
- 'margin-bottom': px,
4417
- 'margin-left': px,
4418
- 'margin-right': px,
4419
- 'margin-top': px,
4420
- 'margin-block': px,
4421
- 'margin-block-end': px,
4422
- 'margin-block-start': px,
4423
- 'margin-inline': px,
4424
- 'margin-inline-end': px,
4425
- 'margin-inline-start': px,
4426
- // Padding properties
4427
- padding: px,
4428
- 'padding-bottom': px,
4429
- 'padding-left': px,
4430
- 'padding-right': px,
4431
- 'padding-top': px,
4432
- 'padding-block': px,
4433
- 'padding-block-end': px,
4434
- 'padding-block-start': px,
4435
- 'padding-inline': px,
4436
- 'padding-inline-end': px,
4437
- 'padding-inline-start': px,
4438
- // Mask properties
4439
- 'mask-position-x': px,
4440
- 'mask-position-y': px,
4441
- 'mask-size': px,
4442
- // Width and height properties
4443
- height: px,
4444
- width: px,
4445
- 'min-height': px,
4446
- 'max-height': px,
4447
- 'min-width': px,
4448
- 'max-width': px,
4449
- // Position properties
4450
- bottom: px,
4451
- left: px,
4452
- top: px,
4453
- right: px,
4454
- inset: px,
4455
- 'inset-block': px,
4456
- 'inset-block-end': px,
4457
- 'inset-block-start': px,
4458
- 'inset-inline': px,
4459
- 'inset-inline-end': px,
4460
- 'inset-inline-start': px,
4461
- // Shadow properties
4462
- 'box-shadow': px,
4463
- 'text-shadow': px,
4464
- // Column properties
4465
- 'column-gap': px,
4466
- 'column-rule': px,
4467
- 'column-rule-width': px,
4468
- 'column-width': px,
4469
- // Font and text properties
4470
- 'font-size': px,
4471
- 'font-size-delta': px,
4472
- 'letter-spacing': px,
4473
- 'text-decoration-thickness': px,
4474
- 'text-indent': px,
4475
- 'text-stroke': px,
4476
- 'text-stroke-width': px,
4477
- 'word-spacing': px,
4478
- // Motion properties
4479
- motion: px,
4480
- 'motion-offset': px,
4481
- // Outline properties
4482
- outline: px,
4483
- 'outline-offset': px,
4484
- 'outline-width': px,
4485
- // Perspective properties
4486
- perspective: px,
4487
- 'perspective-origin-x': percent,
4488
- 'perspective-origin-y': percent,
4489
- // Transform properties
4490
- 'transform-origin': percent,
4491
- 'transform-origin-x': percent,
4492
- 'transform-origin-y': percent,
4493
- 'transform-origin-z': percent,
4494
- // Transition properties
4495
- 'transition-delay': ms,
4496
- 'transition-duration': ms,
4497
- // Alignment properties
4498
- 'vertical-align': px,
4499
- 'flex-basis': px,
4500
- // Some random properties
4501
- 'shape-margin': px,
4502
- size: px,
4503
- gap: px,
4504
- // Grid properties
4505
- grid: px,
4506
- 'grid-gap': px,
4507
- 'row-gap': px,
4508
- 'grid-row-gap': px,
4509
- 'grid-column-gap': px,
4510
- 'grid-template-rows': px,
4511
- 'grid-template-columns': px,
4512
- 'grid-auto-rows': px,
4513
- 'grid-auto-columns': px,
4514
- // Not existing properties.
4515
- // Used to avoid issues with jss-plugin-expand integration.
4516
- 'box-shadow-x': px,
4517
- 'box-shadow-y': px,
4518
- 'box-shadow-blur': px,
4519
- 'box-shadow-spread': px,
4520
- 'font-line-height': px,
4521
- 'text-shadow-x': px,
4522
- 'text-shadow-y': px,
4523
- 'text-shadow-blur': px
4524
- };
4525
-
4526
- /**
4527
- * Clones the object and adds a camel cased property version.
4528
- */
4529
-
4530
- function addCamelCasedVersion(obj) {
4531
- var regExp = /(-[a-z])/g;
4532
-
4533
- var replace = function replace(str) {
4534
- return str[1].toUpperCase();
4535
- };
4536
-
4537
- var newObj = {};
4538
-
4539
- for (var key in obj) {
4540
- newObj[key] = obj[key];
4541
- newObj[key.replace(regExp, replace)] = obj[key];
4542
- }
4543
-
4544
- return newObj;
4545
- }
4546
-
4547
- var units = addCamelCasedVersion(defaultUnits);
4548
- /**
4549
- * Recursive deep style passing function
4550
- */
4551
-
4552
- function iterate(prop, value, options) {
4553
- if (value == null) return value;
4554
-
4555
- if (Array.isArray(value)) {
4556
- for (var i = 0; i < value.length; i++) {
4557
- value[i] = iterate(prop, value[i], options);
4558
- }
4559
- } else if (typeof value === 'object') {
4560
- if (prop === 'fallbacks') {
4561
- for (var innerProp in value) {
4562
- value[innerProp] = iterate(innerProp, value[innerProp], options);
4563
- }
4564
- } else {
4565
- for (var _innerProp in value) {
4566
- value[_innerProp] = iterate(prop + "-" + _innerProp, value[_innerProp], options);
4567
- }
4568
- } // eslint-disable-next-line no-restricted-globals
4569
-
4570
- } else if (typeof value === 'number' && isNaN(value) === false) {
4571
- var unit = options[prop] || units[prop]; // Add the unit if available, except for the special case of 0px.
4572
-
4573
- if (unit && !(value === 0 && unit === px)) {
4574
- return typeof unit === 'function' ? unit(value).toString() : "" + value + unit;
4575
- }
4576
-
4577
- return value.toString();
4578
- }
4579
-
4580
- return value;
4581
- }
4582
- /**
4583
- * Add unit to numeric values.
4584
- */
4585
-
4586
-
4587
- function defaultUnit(options) {
4588
- if (options === void 0) {
4589
- options = {};
4590
- }
4591
-
4592
- var camelCasedOptions = addCamelCasedVersion(options);
4593
-
4594
- function onProcessStyle(style, rule) {
4595
- if (rule.type !== 'style') return style;
4596
-
4597
- for (var prop in style) {
4598
- style[prop] = iterate(prop, style[prop], camelCasedOptions);
4599
- }
4600
-
4601
- return style;
4602
- }
4603
-
4604
- function onChangeValue(value, prop) {
4605
- return iterate(prop, value, camelCasedOptions);
4606
- }
4607
-
4608
- return {
4609
- onProcessStyle: onProcessStyle,
4610
- onChangeValue: onChangeValue
4611
- };
4612
- }
4613
-
4614
- /**
4615
- * A scheme for converting properties from array to regular style.
4616
- * All properties listed below will be transformed to a string separated by space.
4617
- */
4618
- var propArray = {
4619
- 'background-size': true,
4620
- 'background-position': true,
4621
- border: true,
4622
- 'border-bottom': true,
4623
- 'border-left': true,
4624
- 'border-top': true,
4625
- 'border-right': true,
4626
- 'border-radius': true,
4627
- 'border-image': true,
4628
- 'border-width': true,
4629
- 'border-style': true,
4630
- 'border-color': true,
4631
- 'box-shadow': true,
4632
- flex: true,
4633
- margin: true,
4634
- padding: true,
4635
- outline: true,
4636
- 'transform-origin': true,
4637
- transform: true,
4638
- transition: true
4639
- /**
4640
- * A scheme for converting arrays to regular styles inside of objects.
4641
- * For e.g.: "{position: [0, 0]}" => "background-position: 0 0;".
4642
- */
4643
-
4644
- };
4645
- var propArrayInObj = {
4646
- position: true,
4647
- // background-position
4648
- size: true // background-size
4649
-
4650
- /**
4651
- * A scheme for parsing and building correct styles from passed objects.
4652
- */
4653
-
4654
- };
4655
- var propObj = {
4656
- padding: {
4657
- top: 0,
4658
- right: 0,
4659
- bottom: 0,
4660
- left: 0
4661
- },
4662
- margin: {
4663
- top: 0,
4664
- right: 0,
4665
- bottom: 0,
4666
- left: 0
4667
- },
4668
- background: {
4669
- attachment: null,
4670
- color: null,
4671
- image: null,
4672
- position: null,
4673
- repeat: null
4674
- },
4675
- border: {
4676
- width: null,
4677
- style: null,
4678
- color: null
4679
- },
4680
- 'border-top': {
4681
- width: null,
4682
- style: null,
4683
- color: null
4684
- },
4685
- 'border-right': {
4686
- width: null,
4687
- style: null,
4688
- color: null
4689
- },
4690
- 'border-bottom': {
4691
- width: null,
4692
- style: null,
4693
- color: null
4694
- },
4695
- 'border-left': {
4696
- width: null,
4697
- style: null,
4698
- color: null
4699
- },
4700
- outline: {
4701
- width: null,
4702
- style: null,
4703
- color: null
4704
- },
4705
- 'list-style': {
4706
- type: null,
4707
- position: null,
4708
- image: null
4709
- },
4710
- transition: {
4711
- property: null,
4712
- duration: null,
4713
- 'timing-function': null,
4714
- timingFunction: null,
4715
- // Needed for avoiding comilation issues with jss-plugin-camel-case
4716
- delay: null
4717
- },
4718
- animation: {
4719
- name: null,
4720
- duration: null,
4721
- 'timing-function': null,
4722
- timingFunction: null,
4723
- // Needed to avoid compilation issues with jss-plugin-camel-case
4724
- delay: null,
4725
- 'iteration-count': null,
4726
- iterationCount: null,
4727
- // Needed to avoid compilation issues with jss-plugin-camel-case
4728
- direction: null,
4729
- 'fill-mode': null,
4730
- fillMode: null,
4731
- // Needed to avoid compilation issues with jss-plugin-camel-case
4732
- 'play-state': null,
4733
- playState: null // Needed to avoid compilation issues with jss-plugin-camel-case
4734
-
4735
- },
4736
- 'box-shadow': {
4737
- x: 0,
4738
- y: 0,
4739
- blur: 0,
4740
- spread: 0,
4741
- color: null,
4742
- inset: null
4743
- },
4744
- 'text-shadow': {
4745
- x: 0,
4746
- y: 0,
4747
- blur: null,
4748
- color: null
4749
- }
4750
- /**
4751
- * A scheme for converting non-standart properties inside object.
4752
- * For e.g.: include 'border-radius' property inside 'border' object.
4753
- */
4754
-
4755
- };
4756
- var customPropObj = {
4757
- border: {
4758
- radius: 'border-radius',
4759
- image: 'border-image',
4760
- width: 'border-width',
4761
- style: 'border-style',
4762
- color: 'border-color'
4763
- },
4764
- 'border-bottom': {
4765
- width: 'border-bottom-width',
4766
- style: 'border-bottom-style',
4767
- color: 'border-bottom-color'
4768
- },
4769
- 'border-top': {
4770
- width: 'border-top-width',
4771
- style: 'border-top-style',
4772
- color: 'border-top-color'
4773
- },
4774
- 'border-left': {
4775
- width: 'border-left-width',
4776
- style: 'border-left-style',
4777
- color: 'border-left-color'
4778
- },
4779
- 'border-right': {
4780
- width: 'border-right-width',
4781
- style: 'border-right-style',
4782
- color: 'border-right-color'
4783
- },
4784
- background: {
4785
- size: 'background-size',
4786
- image: 'background-image'
4787
- },
4788
- font: {
4789
- style: 'font-style',
4790
- variant: 'font-variant',
4791
- weight: 'font-weight',
4792
- stretch: 'font-stretch',
4793
- size: 'font-size',
4794
- family: 'font-family',
4795
- lineHeight: 'line-height',
4796
- // Needed to avoid compilation issues with jss-plugin-camel-case
4797
- 'line-height': 'line-height'
4798
- },
4799
- flex: {
4800
- grow: 'flex-grow',
4801
- basis: 'flex-basis',
4802
- direction: 'flex-direction',
4803
- wrap: 'flex-wrap',
4804
- flow: 'flex-flow',
4805
- shrink: 'flex-shrink'
4806
- },
4807
- align: {
4808
- self: 'align-self',
4809
- items: 'align-items',
4810
- content: 'align-content'
4811
- },
4812
- grid: {
4813
- 'template-columns': 'grid-template-columns',
4814
- templateColumns: 'grid-template-columns',
4815
- 'template-rows': 'grid-template-rows',
4816
- templateRows: 'grid-template-rows',
4817
- 'template-areas': 'grid-template-areas',
4818
- templateAreas: 'grid-template-areas',
4819
- template: 'grid-template',
4820
- 'auto-columns': 'grid-auto-columns',
4821
- autoColumns: 'grid-auto-columns',
4822
- 'auto-rows': 'grid-auto-rows',
4823
- autoRows: 'grid-auto-rows',
4824
- 'auto-flow': 'grid-auto-flow',
4825
- autoFlow: 'grid-auto-flow',
4826
- row: 'grid-row',
4827
- column: 'grid-column',
4828
- 'row-start': 'grid-row-start',
4829
- rowStart: 'grid-row-start',
4830
- 'row-end': 'grid-row-end',
4831
- rowEnd: 'grid-row-end',
4832
- 'column-start': 'grid-column-start',
4833
- columnStart: 'grid-column-start',
4834
- 'column-end': 'grid-column-end',
4835
- columnEnd: 'grid-column-end',
4836
- area: 'grid-area',
4837
- gap: 'grid-gap',
4838
- 'row-gap': 'grid-row-gap',
4839
- rowGap: 'grid-row-gap',
4840
- 'column-gap': 'grid-column-gap',
4841
- columnGap: 'grid-column-gap'
4842
- }
4843
- };
4844
-
4845
- /* eslint-disable no-use-before-define */
4846
- /**
4847
- * Map values by given prop.
4848
- *
4849
- * @param {Array} array of values
4850
- * @param {String} original property
4851
- * @param {String} original rule
4852
- * @return {String} mapped values
4853
- */
4854
-
4855
- function mapValuesByProp(value, prop, rule) {
4856
- return value.map(function (item) {
4857
- return objectToArray(item, prop, rule, false, true);
4858
- });
4859
- }
4860
- /**
4861
- * Convert array to nested array, if needed
4862
- */
4863
-
4864
-
4865
- function processArray(value, prop, scheme, rule) {
4866
- if (scheme[prop] == null) return value;
4867
- if (value.length === 0) return [];
4868
- if (Array.isArray(value[0])) return processArray(value[0], prop, scheme, rule);
4869
-
4870
- if (typeof value[0] === 'object') {
4871
- return mapValuesByProp(value, prop, rule);
4872
- }
4873
-
4874
- return [value];
4875
- }
4876
- /**
4877
- * Convert object to array.
4878
- */
4879
-
4880
-
4881
- function objectToArray(value, prop, rule, isFallback, isInArray) {
4882
- if (!(propObj[prop] || customPropObj[prop])) return [];
4883
- var result = []; // Check if exists any non-standard property
4884
-
4885
- if (customPropObj[prop]) {
4886
- // eslint-disable-next-line no-param-reassign
4887
- value = customPropsToStyle(value, rule, customPropObj[prop], isFallback);
4888
- } // Pass throught all standart props
4889
-
4890
-
4891
- if (Object.keys(value).length) {
4892
- for (var baseProp in propObj[prop]) {
4893
- if (value[baseProp]) {
4894
- if (Array.isArray(value[baseProp])) {
4895
- result.push(propArrayInObj[baseProp] === null ? value[baseProp] : value[baseProp].join(' '));
4896
- } else result.push(value[baseProp]);
4897
-
4898
- continue;
4899
- } // Add default value from props config.
4900
-
4901
-
4902
- if (propObj[prop][baseProp] != null) {
4903
- result.push(propObj[prop][baseProp]);
4904
- }
4905
- }
4906
- }
4907
-
4908
- if (!result.length || isInArray) return result;
4909
- return [result];
4910
- }
4911
- /**
4912
- * Convert custom properties values to styles adding them to rule directly
4913
- */
4914
-
4915
-
4916
- function customPropsToStyle(value, rule, customProps, isFallback) {
4917
- for (var prop in customProps) {
4918
- var propName = customProps[prop]; // If current property doesn't exist already in rule - add new one
4919
-
4920
- if (typeof value[prop] !== 'undefined' && (isFallback || !rule.prop(propName))) {
4921
- var _styleDetector;
4922
-
4923
- var appendedValue = styleDetector((_styleDetector = {}, _styleDetector[propName] = value[prop], _styleDetector), rule)[propName]; // Add style directly in rule
4924
-
4925
- if (isFallback) rule.style.fallbacks[propName] = appendedValue;else rule.style[propName] = appendedValue;
4926
- } // Delete converted property to avoid double converting
4927
-
4928
-
4929
- delete value[prop];
4930
- }
4931
-
4932
- return value;
4933
- }
4934
- /**
4935
- * Detect if a style needs to be converted.
4936
- */
4937
-
4938
-
4939
- function styleDetector(style, rule, isFallback) {
4940
- for (var prop in style) {
4941
- var value = style[prop];
4942
-
4943
- if (Array.isArray(value)) {
4944
- // Check double arrays to avoid recursion.
4945
- if (!Array.isArray(value[0])) {
4946
- if (prop === 'fallbacks') {
4947
- for (var index = 0; index < style.fallbacks.length; index++) {
4948
- style.fallbacks[index] = styleDetector(style.fallbacks[index], rule, true);
4949
- }
4950
-
4951
- continue;
4952
- }
4953
-
4954
- style[prop] = processArray(value, prop, propArray, rule); // Avoid creating properties with empty values
4955
-
4956
- if (!style[prop].length) delete style[prop];
4957
- }
4958
- } else if (typeof value === 'object') {
4959
- if (prop === 'fallbacks') {
4960
- style.fallbacks = styleDetector(style.fallbacks, rule, true);
4961
- continue;
4962
- }
4963
-
4964
- style[prop] = objectToArray(value, prop, rule, isFallback); // Avoid creating properties with empty values
4965
-
4966
- if (!style[prop].length) delete style[prop];
4967
- } // Maybe a computed value resulting in an empty string
4968
- else if (style[prop] === '') delete style[prop];
4969
- }
4970
-
4971
- return style;
4972
- }
4973
- /**
4974
- * Adds possibility to write expanded styles.
4975
- */
4976
-
4977
-
4978
- function jssExpand() {
4979
- function onProcessStyle(style, rule) {
4980
- if (!style || rule.type !== 'style') return style;
4981
-
4982
- if (Array.isArray(style)) {
4983
- // Pass rules one by one and reformat them
4984
- for (var index = 0; index < style.length; index++) {
4985
- style[index] = styleDetector(style[index], rule);
4986
- }
4987
-
4988
- return style;
4989
- }
4990
-
4991
- return styleDetector(style, rule);
4992
- }
4993
-
4994
- return {
4995
- onProcessStyle: onProcessStyle
4996
- };
4997
- }
4998
-
4999
- var cssVendor_cjs = {};
5000
-
5001
- var require$$0 = /*@__PURE__*/getAugmentedNamespace(module$1);
5002
-
5003
- var toConsumableArrayExports = {};
5004
- var toConsumableArray = {
5005
- get exports(){ return toConsumableArrayExports; },
5006
- set exports(v){ toConsumableArrayExports = v; },
5007
- };
5008
-
5009
- var arrayWithoutHolesExports = {};
5010
- var arrayWithoutHoles = {
5011
- get exports(){ return arrayWithoutHolesExports; },
5012
- set exports(v){ arrayWithoutHolesExports = v; },
5013
- };
5014
-
5015
- var arrayLikeToArrayExports = {};
5016
- var arrayLikeToArray = {
5017
- get exports(){ return arrayLikeToArrayExports; },
5018
- set exports(v){ arrayLikeToArrayExports = v; },
5019
- };
5020
-
5021
- (function (module) {
5022
- function _arrayLikeToArray(arr, len) {
5023
- if (len == null || len > arr.length) len = arr.length;
5024
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
5025
- return arr2;
5026
- }
5027
- module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
5028
- } (arrayLikeToArray));
5029
-
5030
- (function (module) {
5031
- var arrayLikeToArray = arrayLikeToArrayExports;
5032
- function _arrayWithoutHoles(arr) {
5033
- if (Array.isArray(arr)) return arrayLikeToArray(arr);
5034
- }
5035
- module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
5036
- } (arrayWithoutHoles));
5037
-
5038
- var iterableToArrayExports = {};
5039
- var iterableToArray = {
5040
- get exports(){ return iterableToArrayExports; },
5041
- set exports(v){ iterableToArrayExports = v; },
5042
- };
5043
-
5044
- (function (module) {
5045
- function _iterableToArray(iter) {
5046
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
5047
- }
5048
- module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
5049
- } (iterableToArray));
5050
-
5051
- var unsupportedIterableToArrayExports = {};
5052
- var unsupportedIterableToArray = {
5053
- get exports(){ return unsupportedIterableToArrayExports; },
5054
- set exports(v){ unsupportedIterableToArrayExports = v; },
5055
- };
5056
-
5057
- (function (module) {
5058
- var arrayLikeToArray = arrayLikeToArrayExports;
5059
- function _unsupportedIterableToArray(o, minLen) {
5060
- if (!o) return;
5061
- if (typeof o === "string") return arrayLikeToArray(o, minLen);
5062
- var n = Object.prototype.toString.call(o).slice(8, -1);
5063
- if (n === "Object" && o.constructor) n = o.constructor.name;
5064
- if (n === "Map" || n === "Set") return Array.from(o);
5065
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
5066
- }
5067
- module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
5068
- } (unsupportedIterableToArray));
5069
-
5070
- var nonIterableSpreadExports = {};
5071
- var nonIterableSpread = {
5072
- get exports(){ return nonIterableSpreadExports; },
5073
- set exports(v){ nonIterableSpreadExports = v; },
5074
- };
5075
-
5076
- (function (module) {
5077
- function _nonIterableSpread() {
5078
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
5079
- }
5080
- module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
5081
- } (nonIterableSpread));
5082
-
5083
- (function (module) {
5084
- var arrayWithoutHoles = arrayWithoutHolesExports;
5085
- var iterableToArray = iterableToArrayExports;
5086
- var unsupportedIterableToArray = unsupportedIterableToArrayExports;
5087
- var nonIterableSpread = nonIterableSpreadExports;
5088
- function _toConsumableArray(arr) {
5089
- return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
5090
- }
5091
- module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
5092
- } (toConsumableArray));
5093
-
5094
- Object.defineProperty(cssVendor_cjs, '__esModule', { value: true });
5095
-
5096
- function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
5097
-
5098
- var isInBrowser = _interopDefault(require$$0);
5099
- var _toConsumableArray = _interopDefault(toConsumableArrayExports);
5100
-
5101
- // Export javascript style and css style vendor prefixes.
5102
- var js = '';
5103
- var css = '';
5104
- var vendor = '';
5105
- var browser = '';
5106
- var isTouch = isInBrowser && 'ontouchstart' in document.documentElement; // We should not do anything if required serverside.
5107
-
5108
- if (isInBrowser) {
5109
- // Order matters. We need to check Webkit the last one because
5110
- // other vendors use to add Webkit prefixes to some properties
5111
- var jsCssMap = {
5112
- Moz: '-moz-',
5113
- ms: '-ms-',
5114
- O: '-o-',
5115
- Webkit: '-webkit-'
5116
- };
5117
-
5118
- var _document$createEleme = document.createElement('p'),
5119
- style = _document$createEleme.style;
5120
-
5121
- var testProp = 'Transform';
5122
-
5123
- for (var key in jsCssMap) {
5124
- if (key + testProp in style) {
5125
- js = key;
5126
- css = jsCssMap[key];
5127
- break;
5128
- }
5129
- } // Correctly detect the Edge browser.
5130
-
5131
-
5132
- if (js === 'Webkit' && 'msHyphens' in style) {
5133
- js = 'ms';
5134
- css = jsCssMap.ms;
5135
- browser = 'edge';
5136
- } // Correctly detect the Safari browser.
5137
-
5138
-
5139
- if (js === 'Webkit' && '-apple-trailing-word' in style) {
5140
- vendor = 'apple';
5141
- }
5142
- }
5143
- /**
5144
- * Vendor prefix string for the current browser.
5145
- *
5146
- * @type {{js: String, css: String, vendor: String, browser: String}}
5147
- * @api public
5148
- */
5149
-
5150
-
5151
- var prefix = {
5152
- js: js,
5153
- css: css,
5154
- vendor: vendor,
5155
- browser: browser,
5156
- isTouch: isTouch
5157
- };
5158
-
5159
- /**
5160
- * Test if a keyframe at-rule should be prefixed or not
5161
- *
5162
- * @param {String} vendor prefix string for the current browser.
5163
- * @return {String}
5164
- * @api public
5165
- */
5166
-
5167
- function supportedKeyframes(key) {
5168
- // Keyframes is already prefixed. e.g. key = '@-webkit-keyframes a'
5169
- if (key[1] === '-') return key; // No need to prefix IE/Edge. Older browsers will ignore unsupported rules.
5170
- // https://caniuse.com/#search=keyframes
5171
-
5172
- if (prefix.js === 'ms') return key;
5173
- return "@" + prefix.css + "keyframes" + key.substr(10);
5174
- }
5175
-
5176
- // https://caniuse.com/#search=appearance
5177
-
5178
- var appearence = {
5179
- noPrefill: ['appearance'],
5180
- supportedProperty: function supportedProperty(prop) {
5181
- if (prop !== 'appearance') return false;
5182
- if (prefix.js === 'ms') return "-webkit-" + prop;
5183
- return prefix.css + prop;
5184
- }
5185
- };
5186
-
5187
- // https://caniuse.com/#search=color-adjust
5188
-
5189
- var colorAdjust = {
5190
- noPrefill: ['color-adjust'],
5191
- supportedProperty: function supportedProperty(prop) {
5192
- if (prop !== 'color-adjust') return false;
5193
- if (prefix.js === 'Webkit') return prefix.css + "print-" + prop;
5194
- return prop;
5195
- }
5196
- };
5197
-
5198
- var regExp = /[-\s]+(.)?/g;
5199
- /**
5200
- * Replaces the letter with the capital letter
5201
- *
5202
- * @param {String} match
5203
- * @param {String} c
5204
- * @return {String}
5205
- * @api private
5206
- */
5207
-
5208
- function toUpper(match, c) {
5209
- return c ? c.toUpperCase() : '';
5210
- }
5211
- /**
5212
- * Convert dash separated strings to camel-cased.
5213
- *
5214
- * @param {String} str
5215
- * @return {String}
5216
- * @api private
5217
- */
5218
-
5219
-
5220
- function camelize(str) {
5221
- return str.replace(regExp, toUpper);
5222
- }
5223
-
5224
- /**
5225
- * Convert dash separated strings to pascal cased.
5226
- *
5227
- * @param {String} str
5228
- * @return {String}
5229
- * @api private
5230
- */
5231
-
5232
- function pascalize(str) {
5233
- return camelize("-" + str);
5234
- }
5235
-
5236
- // but we can use a longhand property instead.
5237
- // https://caniuse.com/#search=mask
5238
-
5239
- var mask = {
5240
- noPrefill: ['mask'],
5241
- supportedProperty: function supportedProperty(prop, style) {
5242
- if (!/^mask/.test(prop)) return false;
5243
-
5244
- if (prefix.js === 'Webkit') {
5245
- var longhand = 'mask-image';
5246
-
5247
- if (camelize(longhand) in style) {
5248
- return prop;
5249
- }
5250
-
5251
- if (prefix.js + pascalize(longhand) in style) {
5252
- return prefix.css + prop;
5253
- }
5254
- }
5255
-
5256
- return prop;
5257
- }
5258
- };
5259
-
5260
- // https://caniuse.com/#search=text-orientation
5261
-
5262
- var textOrientation = {
5263
- noPrefill: ['text-orientation'],
5264
- supportedProperty: function supportedProperty(prop) {
5265
- if (prop !== 'text-orientation') return false;
5266
-
5267
- if (prefix.vendor === 'apple' && !prefix.isTouch) {
5268
- return prefix.css + prop;
5269
- }
5270
-
5271
- return prop;
5272
- }
5273
- };
5274
-
5275
- // https://caniuse.com/#search=transform
5276
-
5277
- var transform = {
5278
- noPrefill: ['transform'],
5279
- supportedProperty: function supportedProperty(prop, style, options) {
5280
- if (prop !== 'transform') return false;
5281
-
5282
- if (options.transform) {
5283
- return prop;
5284
- }
5285
-
5286
- return prefix.css + prop;
5287
- }
5288
- };
5289
-
5290
- // https://caniuse.com/#search=transition
5291
-
5292
- var transition = {
5293
- noPrefill: ['transition'],
5294
- supportedProperty: function supportedProperty(prop, style, options) {
5295
- if (prop !== 'transition') return false;
5296
-
5297
- if (options.transition) {
5298
- return prop;
5299
- }
5300
-
5301
- return prefix.css + prop;
5302
- }
5303
- };
5304
-
5305
- // https://caniuse.com/#search=writing-mode
5306
-
5307
- var writingMode = {
5308
- noPrefill: ['writing-mode'],
5309
- supportedProperty: function supportedProperty(prop) {
5310
- if (prop !== 'writing-mode') return false;
5311
-
5312
- if (prefix.js === 'Webkit' || prefix.js === 'ms' && prefix.browser !== 'edge') {
5313
- return prefix.css + prop;
5314
- }
5315
-
5316
- return prop;
5317
- }
5318
- };
5319
-
5320
- // https://caniuse.com/#search=user-select
5321
-
5322
- var userSelect = {
5323
- noPrefill: ['user-select'],
5324
- supportedProperty: function supportedProperty(prop) {
5325
- if (prop !== 'user-select') return false;
5326
-
5327
- if (prefix.js === 'Moz' || prefix.js === 'ms' || prefix.vendor === 'apple') {
5328
- return prefix.css + prop;
5329
- }
5330
-
5331
- return prop;
5332
- }
5333
- };
5334
-
5335
- // https://caniuse.com/#search=multicolumn
5336
- // https://github.com/postcss/autoprefixer/issues/491
5337
- // https://github.com/postcss/autoprefixer/issues/177
5338
-
5339
- var breakPropsOld = {
5340
- supportedProperty: function supportedProperty(prop, style) {
5341
- if (!/^break-/.test(prop)) return false;
5342
-
5343
- if (prefix.js === 'Webkit') {
5344
- var jsProp = "WebkitColumn" + pascalize(prop);
5345
- return jsProp in style ? prefix.css + "column-" + prop : false;
5346
- }
5347
-
5348
- if (prefix.js === 'Moz') {
5349
- var _jsProp = "page" + pascalize(prop);
5350
-
5351
- return _jsProp in style ? "page-" + prop : false;
5352
- }
5353
-
5354
- return false;
5355
- }
5356
- };
5357
-
5358
- // See https://github.com/postcss/autoprefixer/issues/324.
5359
-
5360
- var inlineLogicalOld = {
5361
- supportedProperty: function supportedProperty(prop, style) {
5362
- if (!/^(border|margin|padding)-inline/.test(prop)) return false;
5363
- if (prefix.js === 'Moz') return prop;
5364
- var newProp = prop.replace('-inline', '');
5365
- return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;
5366
- }
5367
- };
5368
-
5369
- // Camelization is required because we can't test using.
5370
- // CSS syntax for e.g. in FF.
5371
-
5372
- var unprefixed = {
5373
- supportedProperty: function supportedProperty(prop, style) {
5374
- return camelize(prop) in style ? prop : false;
5375
- }
5376
- };
5377
-
5378
- var prefixed = {
5379
- supportedProperty: function supportedProperty(prop, style) {
5380
- var pascalized = pascalize(prop); // Return custom CSS variable without prefixing.
5381
-
5382
- if (prop[0] === '-') return prop; // Return already prefixed value without prefixing.
5383
-
5384
- if (prop[0] === '-' && prop[1] === '-') return prop;
5385
- if (prefix.js + pascalized in style) return prefix.css + prop; // Try webkit fallback.
5386
-
5387
- if (prefix.js !== 'Webkit' && "Webkit" + pascalized in style) return "-webkit-" + prop;
5388
- return false;
5389
- }
5390
- };
5391
-
5392
- // https://caniuse.com/#search=scroll-snap
5393
-
5394
- var scrollSnap = {
5395
- supportedProperty: function supportedProperty(prop) {
5396
- if (prop.substring(0, 11) !== 'scroll-snap') return false;
5397
-
5398
- if (prefix.js === 'ms') {
5399
- return "" + prefix.css + prop;
5400
- }
5401
-
5402
- return prop;
5403
- }
5404
- };
5405
-
5406
- // https://caniuse.com/#search=overscroll-behavior
5407
-
5408
- var overscrollBehavior = {
5409
- supportedProperty: function supportedProperty(prop) {
5410
- if (prop !== 'overscroll-behavior') return false;
5411
-
5412
- if (prefix.js === 'ms') {
5413
- return prefix.css + "scroll-chaining";
5414
- }
5415
-
5416
- return prop;
5417
- }
5418
- };
5419
-
5420
- var propMap = {
5421
- 'flex-grow': 'flex-positive',
5422
- 'flex-shrink': 'flex-negative',
5423
- 'flex-basis': 'flex-preferred-size',
5424
- 'justify-content': 'flex-pack',
5425
- order: 'flex-order',
5426
- 'align-items': 'flex-align',
5427
- 'align-content': 'flex-line-pack' // 'align-self' is handled by 'align-self' plugin.
5428
-
5429
- }; // Support old flex spec from 2012.
5430
-
5431
- var flex2012 = {
5432
- supportedProperty: function supportedProperty(prop, style) {
5433
- var newProp = propMap[prop];
5434
- if (!newProp) return false;
5435
- return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;
5436
- }
5437
- };
5438
-
5439
- var propMap$1 = {
5440
- flex: 'box-flex',
5441
- 'flex-grow': 'box-flex',
5442
- 'flex-direction': ['box-orient', 'box-direction'],
5443
- order: 'box-ordinal-group',
5444
- 'align-items': 'box-align',
5445
- 'flex-flow': ['box-orient', 'box-direction'],
5446
- 'justify-content': 'box-pack'
5447
- };
5448
- var propKeys = Object.keys(propMap$1);
5449
-
5450
- var prefixCss = function prefixCss(p) {
5451
- return prefix.css + p;
5452
- }; // Support old flex spec from 2009.
5453
-
5454
-
5455
- var flex2009 = {
5456
- supportedProperty: function supportedProperty(prop, style, _ref) {
5457
- var multiple = _ref.multiple;
5458
-
5459
- if (propKeys.indexOf(prop) > -1) {
5460
- var newProp = propMap$1[prop];
5461
-
5462
- if (!Array.isArray(newProp)) {
5463
- return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;
5464
- }
5465
-
5466
- if (!multiple) return false;
5467
-
5468
- for (var i = 0; i < newProp.length; i++) {
5469
- if (!(prefix.js + pascalize(newProp[0]) in style)) {
5470
- return false;
5471
- }
5472
- }
5473
-
5474
- return newProp.map(prefixCss);
5475
- }
5476
-
5477
- return false;
5478
- }
5479
- };
5480
-
5481
- // plugins = [
5482
- // ...plugins,
5483
- // breakPropsOld,
5484
- // inlineLogicalOld,
5485
- // unprefixed,
5486
- // prefixed,
5487
- // scrollSnap,
5488
- // flex2012,
5489
- // flex2009
5490
- // ]
5491
- // Plugins without 'noPrefill' value, going last.
5492
- // 'flex-*' plugins should be at the bottom.
5493
- // 'flex2009' going after 'flex2012'.
5494
- // 'prefixed' going after 'unprefixed'
5495
-
5496
- var plugins = [appearence, colorAdjust, mask, textOrientation, transform, transition, writingMode, userSelect, breakPropsOld, inlineLogicalOld, unprefixed, prefixed, scrollSnap, overscrollBehavior, flex2012, flex2009];
5497
- var propertyDetectors = plugins.filter(function (p) {
5498
- return p.supportedProperty;
5499
- }).map(function (p) {
5500
- return p.supportedProperty;
5501
- });
5502
- var noPrefill = plugins.filter(function (p) {
5503
- return p.noPrefill;
5504
- }).reduce(function (a, p) {
5505
- a.push.apply(a, _toConsumableArray(p.noPrefill));
5506
- return a;
5507
- }, []);
5508
-
5509
- var el;
5510
- var cache = {};
5511
-
5512
- if (isInBrowser) {
5513
- el = document.createElement('p'); // We test every property on vendor prefix requirement.
5514
- // Once tested, result is cached. It gives us up to 70% perf boost.
5515
- // http://jsperf.com/element-style-object-access-vs-plain-object
5516
- //
5517
- // Prefill cache with known css properties to reduce amount of
5518
- // properties we need to feature test at runtime.
5519
- // http://davidwalsh.name/vendor-prefix
5520
-
5521
- var computed = window.getComputedStyle(document.documentElement, '');
5522
-
5523
- for (var key$1 in computed) {
5524
- // eslint-disable-next-line no-restricted-globals
5525
- if (!isNaN(key$1)) cache[computed[key$1]] = computed[key$1];
5526
- } // Properties that cannot be correctly detected using the
5527
- // cache prefill method.
5528
-
5529
-
5530
- noPrefill.forEach(function (x) {
5531
- return delete cache[x];
5532
- });
5533
- }
5534
- /**
5535
- * Test if a property is supported, returns supported property with vendor
5536
- * prefix if required. Returns `false` if not supported.
5537
- *
5538
- * @param {String} prop dash separated
5539
- * @param {Object} [options]
5540
- * @return {String|Boolean}
5541
- * @api public
5542
- */
5543
-
5544
-
5545
- function supportedProperty(prop, options) {
5546
- if (options === void 0) {
5547
- options = {};
5548
- }
5549
-
5550
- // For server-side rendering.
5551
- if (!el) return prop; // Remove cache for benchmark tests or return property from the cache.
5552
-
5553
- if (process.env.NODE_ENV !== 'benchmark' && cache[prop] != null) {
5554
- return cache[prop];
5555
- } // Check if 'transition' or 'transform' natively supported in browser.
5556
-
5557
-
5558
- if (prop === 'transition' || prop === 'transform') {
5559
- options[prop] = prop in el.style;
5560
- } // Find a plugin for current prefix property.
5561
-
5562
-
5563
- for (var i = 0; i < propertyDetectors.length; i++) {
5564
- cache[prop] = propertyDetectors[i](prop, el.style, options); // Break loop, if value found.
5565
-
5566
- if (cache[prop]) break;
5567
- } // Reset styles for current property.
5568
- // Firefox can even throw an error for invalid properties, e.g., "0".
5569
-
5570
-
5571
- try {
5572
- el.style[prop] = '';
5573
- } catch (err) {
5574
- return false;
5575
- }
5576
-
5577
- return cache[prop];
5578
- }
5579
-
5580
- var cache$1 = {};
5581
- var transitionProperties = {
5582
- transition: 1,
5583
- 'transition-property': 1,
5584
- '-webkit-transition': 1,
5585
- '-webkit-transition-property': 1
5586
- };
5587
- var transPropsRegExp = /(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;
5588
- var el$1;
5589
- /**
5590
- * Returns prefixed value transition/transform if needed.
5591
- *
5592
- * @param {String} match
5593
- * @param {String} p1
5594
- * @param {String} p2
5595
- * @return {String}
5596
- * @api private
5597
- */
5598
-
5599
- function prefixTransitionCallback(match, p1, p2) {
5600
- if (p1 === 'var') return 'var';
5601
- if (p1 === 'all') return 'all';
5602
- if (p2 === 'all') return ', all';
5603
- var prefixedValue = p1 ? supportedProperty(p1) : ", " + supportedProperty(p2);
5604
- if (!prefixedValue) return p1 || p2;
5605
- return prefixedValue;
5606
- }
5607
-
5608
- if (isInBrowser) el$1 = document.createElement('p');
5609
- /**
5610
- * Returns prefixed value if needed. Returns `false` if value is not supported.
5611
- *
5612
- * @param {String} property
5613
- * @param {String} value
5614
- * @return {String|Boolean}
5615
- * @api public
5616
- */
5617
-
5618
- function supportedValue(property, value) {
5619
- // For server-side rendering.
5620
- var prefixedValue = value;
5621
- if (!el$1 || property === 'content') return value; // It is a string or a number as a string like '1'.
5622
- // We want only prefixable values here.
5623
- // eslint-disable-next-line no-restricted-globals
5624
-
5625
- if (typeof prefixedValue !== 'string' || !isNaN(parseInt(prefixedValue, 10))) {
5626
- return prefixedValue;
5627
- } // Create cache key for current value.
5628
-
5629
-
5630
- var cacheKey = property + prefixedValue; // Remove cache for benchmark tests or return value from cache.
5631
-
5632
- if (process.env.NODE_ENV !== 'benchmark' && cache$1[cacheKey] != null) {
5633
- return cache$1[cacheKey];
5634
- } // IE can even throw an error in some cases, for e.g. style.content = 'bar'.
5635
-
5636
-
5637
- try {
5638
- // Test value as it is.
5639
- el$1.style[property] = prefixedValue;
5640
- } catch (err) {
5641
- // Return false if value not supported.
5642
- cache$1[cacheKey] = false;
5643
- return false;
5644
- } // If 'transition' or 'transition-property' property.
5645
-
5646
-
5647
- if (transitionProperties[property]) {
5648
- prefixedValue = prefixedValue.replace(transPropsRegExp, prefixTransitionCallback);
5649
- } else if (el$1.style[property] === '') {
5650
- // Value with a vendor prefix.
5651
- prefixedValue = prefix.css + prefixedValue; // Hardcode test to convert "flex" to "-ms-flexbox" for IE10.
5652
-
5653
- if (prefixedValue === '-ms-flex') el$1.style[property] = '-ms-flexbox'; // Test prefixed value.
5654
-
5655
- el$1.style[property] = prefixedValue; // Return false if value not supported.
5656
-
5657
- if (el$1.style[property] === '') {
5658
- cache$1[cacheKey] = false;
5659
- return false;
5660
- }
5661
- } // Reset styles for current property.
5662
-
5663
-
5664
- el$1.style[property] = ''; // Write current value to cache.
5665
-
5666
- cache$1[cacheKey] = prefixedValue;
5667
- return cache$1[cacheKey];
5668
- }
5669
-
5670
- cssVendor_cjs.prefix = prefix;
5671
- var supportedKeyframes_1 = cssVendor_cjs.supportedKeyframes = supportedKeyframes;
5672
- var supportedProperty_1 = cssVendor_cjs.supportedProperty = supportedProperty;
5673
- var supportedValue_1 = cssVendor_cjs.supportedValue = supportedValue;
5674
-
5675
- /**
5676
- * Add vendor prefix to a property name when needed.
5677
- */
5678
-
5679
- function jssVendorPrefixer() {
5680
- function onProcessRule(rule) {
5681
- if (rule.type === 'keyframes') {
5682
- var atRule = rule;
5683
- atRule.at = supportedKeyframes_1(atRule.at);
5684
- }
5685
- }
5686
-
5687
- function prefixStyle(style) {
5688
- for (var prop in style) {
5689
- var value = style[prop];
5690
-
5691
- if (prop === 'fallbacks' && Array.isArray(value)) {
5692
- style[prop] = value.map(prefixStyle);
5693
- continue;
5694
- }
5695
-
5696
- var changeProp = false;
5697
- var supportedProp = supportedProperty_1(prop);
5698
- if (supportedProp && supportedProp !== prop) changeProp = true;
5699
- var changeValue = false;
5700
- var supportedValue$1 = supportedValue_1(supportedProp, toCssValue(value));
5701
- if (supportedValue$1 && supportedValue$1 !== value) changeValue = true;
5702
-
5703
- if (changeProp || changeValue) {
5704
- if (changeProp) delete style[prop];
5705
- style[supportedProp || prop] = supportedValue$1 || value;
5706
- }
5707
- }
5708
-
5709
- return style;
5710
- }
5711
-
5712
- function onProcessStyle(style, rule) {
5713
- if (rule.type !== 'style') return style;
5714
- return prefixStyle(style);
5715
- }
5716
-
5717
- function onChangeValue(value, prop) {
5718
- return supportedValue_1(prop, toCssValue(value)) || value;
5719
- }
5720
-
5721
- return {
5722
- onProcessRule: onProcessRule,
5723
- onProcessStyle: onProcessStyle,
5724
- onChangeValue: onChangeValue
5725
- };
5726
- }
5727
-
5728
- /**
5729
- * Sort props by length.
5730
- */
5731
- function jssPropsSort() {
5732
- var sort = function sort(prop0, prop1) {
5733
- if (prop0.length === prop1.length) {
5734
- return prop0 > prop1 ? 1 : -1;
5735
- }
5736
-
5737
- return prop0.length - prop1.length;
5738
- };
5739
-
5740
- return {
5741
- onProcessStyle: function onProcessStyle(style, rule) {
5742
- if (rule.type !== 'style') return style;
5743
- var newStyle = {};
5744
- var props = Object.keys(style).sort(sort);
5745
-
5746
- for (var i = 0; i < props.length; i++) {
5747
- newStyle[props[i]] = style[props[i]];
5748
- }
5749
-
5750
- return newStyle;
5751
- }
5752
- };
5753
- }
5754
-
5755
- var create = function create(options) {
5756
- if (options === void 0) {
5757
- options = {};
5758
- }
5759
-
5760
- return {
5761
- plugins: [functionPlugin(), observablePlugin(options.observable), templatePlugin(), jssGlobal(), jssExtend(), jssNested(), jssCompose(), camelCase(), defaultUnit(options.defaultUnit), jssExpand(), jssVendorPrefixer(), jssPropsSort()]
5762
- };
5763
- };
5764
-
5765
- index.setup({
5766
- ...create(),
5767
- createGenerateId: () => (rule) => rule.key,
5768
- plugins: [...create().plugins, dist({ combineMediaQueries: true })],
5769
- });
5770
-
5771
- const hasDocument = typeof document !== 'undefined';
5772
-
5773
- hasDocument && 'scrollBehavior' in document.documentElement.style;
5774
- const win = typeof window !== 'undefined' ? window : {};
5775
- win.document || { head: {} };
5776
- (win.HTMLElement || class {
5777
- });
5778
-
5779
- const isThemeDark = (theme) => {
5780
- return theme === 'dark';
5781
- };
5782
-
5783
- const formatObjectOutput = (value) => {
5784
- return JSON.stringify(value)
5785
- .replace(/"([a-zA-Z?]+)":/g, '$1:') // remove double quotes from keys
5786
- .replace(/([,:{])/g, '$1 ') // add space after following: ,:{
5787
- .replace(/(})/g, ' $1') // add space before following: }
5788
- .replace(/^"(.+)"$/, '$1'); // remove wrapping double quotes
5789
- };
5790
- 'value, ' +
5791
- formatObjectOutput(BREAKPOINTS.reduce((prev, key) => (Object.assign(Object.assign({}, prev), { [key + (key !== 'base' ? '?' : '')]: 'value' })), {})).replace(/"/g, '');
5792
-
5793
- const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
5794
-
5795
- const getComponentCss$T = (size, compact, open, theme) => {
5796
- const { primaryColor, hoverColor, focusColor, contrastLowColor } = getThemedColors(theme);
5797
- const border = `1px solid ${contrastLowColor}`;
5798
- return getCss(Object.assign(Object.assign({ '@global': {
5799
- ':host': addImportantToEachRule(Object.assign({ display: 'block' }, hostHiddenStyles)),
5800
- button: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', position: 'relative', justifyContent: 'space-between', margin: '2px 0', width: '100%', textDecoration: 'none', border: 0, outline: 0, gap: '24px', background: 'transparent', cursor: 'pointer', textAlign: 'left', color: primaryColor }, textSmallStyle), { fontWeight: fontWeight.semiBold }), buildResponsiveStyles(size, (s) => ({
5801
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
5802
- // @ts-ignore
5803
- fontSize: fontSizeText[s],
5804
- padding: compact ? '4px 0' : `${s === 'medium' ? '20px' : '12px'} 0`,
5805
- }))), mergeDeep({
5806
- '&::before': Object.assign({ content: '""', position: 'absolute', borderRadius: borderRadiusSmall, left: '-4px', right: '-4px' }, (compact
5807
- ? {
5808
- top: '2px',
5809
- bottom: '2px',
5810
- }
5811
- : {
5812
- top: '6px',
5813
- bottom: '6px',
5814
- })),
5815
- }, hoverMediaQuery({
5816
- '&::before': {
5817
- transition: getTransition('background-color'),
5818
- },
5819
- '&:hover::before': {
5820
- background: hoverColor,
5821
- },
5822
- }))), { '&:focus::before': {
5823
- border: `${borderWidthBase} solid ${focusColor}`,
5824
- }, '&:not(:focus-visible)::before': {
5825
- border: 0,
5826
- } }),
5827
- } }, (!compact && {
5828
- root: {
5829
- borderBottom: border,
5830
- },
5831
- })), { heading: {
5832
- margin: 0,
5833
- padding: 0,
5834
- }, icon: {
5835
- width: fontLineHeight,
5836
- height: fontLineHeight,
5837
- transformOrigin: '50% 50%',
5838
- transform: open ? 'rotate3d(0)' : 'rotate3d(0,0,1,90deg)',
5839
- transition: getTransition('transform'),
5840
- }, collapsible: Object.assign({ padding: 0, overflow: 'hidden' }, (open
5841
- ? {
5842
- height: 'auto',
5843
- paddingBottom: compact ? spacingStaticSmall : '24px',
5844
- visibility: 'visible',
5845
- transition: getTransition('height') + `,visibility ${transitionDuration}`,
5846
- animation: `$open ${transitionDuration} ease forwards`,
5847
- }
5848
- : {
5849
- height: 0,
5850
- visibility: 'hidden',
5851
- transition: getTransition('height') + `,visibility ${transitionDuration} linear ${transitionDuration}`,
5852
- })),
5853
- // TODO: this doesn't get shortened and results in `keyframes-open` for some unknown reason
5854
- '@keyframes open': {
5855
- '0%,99%': {
5856
- overflow: 'hidden',
5857
- },
5858
- '100%': {
5859
- overflow: 'visible',
5860
- },
5861
- } }));
5862
- };
5863
-
5864
- const TOAST_Z_INDEX = 999999;
5865
- const MODAL_Z_INDEX = 99999;
5866
- const POPOVER_Z_INDEX = 9999;
5867
- const BANNER_Z_INDEX = 99;
5868
-
5869
- const oneColumnWidthS = `calc((100% - ${gridSafeZoneBase} * 2 - ${gridGap} * 13) / 14)`;
5870
- const oneColumnWidthXXL = `calc((min(100%, ${gridWidthMax}) - ${gridSafeZoneXXL} * 2 - ${gridGap} * 13) / 14)`;
5871
- const offsetHorizontalXXL = `max(0px, (100% - ${gridWidthMax}) / 2)`;
5872
- const widthMap$1 = {
5873
- narrow: {
5874
- padding: `0 ${gridSafeZoneBase}`,
5875
- [getMediaQueryMin('s')]: {
5876
- padding: `0 calc(${gridSafeZoneBase} + ${gridGap} * 3 + ${oneColumnWidthS} * 3)`,
5877
- },
5878
- [getMediaQueryMin('xxl')]: {
5879
- padding: `0 calc(${offsetHorizontalXXL} + ${gridSafeZoneXXL} + ${gridGap} * 3 + ${oneColumnWidthXXL} * 3)`,
5880
- },
5881
- },
5882
- basic: {
5883
- padding: `0 ${gridSafeZoneBase}`,
5884
- [getMediaQueryMin('s')]: {
5885
- padding: `0 calc(${gridSafeZoneBase} + ${gridGap} + ${oneColumnWidthS})`,
5886
- },
5887
- [getMediaQueryMin('xxl')]: {
5888
- padding: `0 calc(${offsetHorizontalXXL} + ${gridSafeZoneXXL} + ${gridGap} + ${oneColumnWidthXXL})`,
5889
- },
5890
- },
5891
- extended: {
5892
- padding: `0 ${gridSafeZoneBase}`,
5893
- [getMediaQueryMin('xxl')]: {
5894
- padding: `0 calc(${offsetHorizontalXXL} + ${gridSafeZoneXXL})`,
5895
- },
5896
- },
5897
- };
5898
- const getContentWrapperStyle = (width) => {
5899
- return Object.assign({ display: 'block', margin: 0, padding: `0 ${offsetHorizontalXXL}`, width: 'auto', minWidth: 0, maxWidth: gridWidthMax }, widthMap$1[width]);
4039
+ const getContentWrapperStyle = (width) => {
4040
+ return Object.assign({ display: 'block', margin: 0, padding: `0 ${offsetHorizontalXXL}`, width: 'auto', minWidth: 0, maxWidth: gridWidthMax }, widthMap$1[width]);
5900
4041
  };
5901
4042
 
5902
4043
  const easeInQuad = 'cubic-bezier(0.45,0,0.55,1)';
@@ -5999,6 +4140,7 @@ const getComponentCss$R = (direction) => {
5999
4140
  };
6000
4141
 
6001
4142
  const fontSizeTextMap = {
4143
+ 'xx-small': fontSizeTextXXSmall,
6002
4144
  'x-small': fontSizeTextXSmall,
6003
4145
  small: fontSizeTextSmall,
6004
4146
  medium: fontSizeTextMedium,
@@ -6021,7 +4163,7 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
6021
4163
  const { primaryColor, disabledColor, hoverColor, focusColor } = getThemedColors(theme);
6022
4164
  const hasIcon = hasVisibleIcon(icon, iconSource);
6023
4165
  return Object.assign({ '@global': {
6024
- ':host': Object.assign(Object.assign({}, addImportantToEachRule(Object.assign({ transform: 'translate3d(0,0,0)', outline: 0 }, hostHiddenStyles))), buildResponsiveStyles(stretch, (responsiveStretch) => (Object.assign({ display: responsiveStretch ? 'block' : 'inline-block' }, (!responsiveStretch && { verticalAlign: 'top' }))))),
4166
+ ':host': Object.assign(Object.assign({}, addImportantToEachRule(Object.assign({ transform: 'translate3d(0,0,0)', outline: 0 }, hostHiddenStyles))), buildResponsiveStyles(stretch, (responsiveStretch) => (Object.assign({ display: responsiveStretch ? 'block' : 'inline-block', width: responsiveStretch ? '100%' : 'auto' }, (!responsiveStretch && { verticalAlign: 'top' }))))),
6025
4167
  }, root: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', gap: spacingStaticXSmall, width: '100%', margin: 0, padding: 0, color: isDisabledOrLoading ? disabledColor : primaryColor, outline: 0 }, textSmallStyle), mergeDeep(buildResponsiveStyles(stretch, (stretchValue) => ({
6026
4168
  justifyContent: stretchValue ? 'space-between' : 'flex-start',
6027
4169
  alignItems: stretchValue ? 'center' : 'flex-start',
@@ -6106,7 +4248,7 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
6106
4248
  const { focusColor } = getThemedColors(theme);
6107
4249
  const hasIcon = hasVisibleIcon(icon, iconSource) || hideLabel;
6108
4250
  return Object.assign({ '@global': {
6109
- ':host': addImportantToEachRule(Object.assign({ display: 'inline-block', verticalAlign: 'top', outline: 0 }, hostHiddenStyles)),
4251
+ ':host': Object.assign({ display: 'inline-block' }, addImportantToEachRule(Object.assign({ verticalAlign: 'top', outline: 0 }, hostHiddenStyles))),
6110
4252
  }, root: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', alignItems: 'flex-start', justifyContent: 'center', width: '100%', minWidth: '54px', minHeight: '54px', boxSizing: 'border-box', outline: 0, textAlign: 'left', appearance: 'none', textDecoration: 'none', border: `2px solid ${borderColor}`, borderRadius: borderRadiusSmall, transform: 'translate3d(0,0,0)', // creates new stacking context (for slotted anchor + focus)
6111
4253
  backgroundColor, color: textColor }, textSmallStyle), { transition: ['background-color', 'border-color', 'color'].map(getTransition).join() }), buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
6112
4254
  padding: hideLabelValue ? '13px' : hasIcon ? '13px 26px 13px 18px' : '13px 26px',
@@ -6208,7 +4350,7 @@ const spacingMap = {
6208
4350
  },
6209
4351
  },
6210
4352
  };
6211
- const getComponentCss$O = (width, disablePagination, alignHeader, theme) => {
4353
+ const getComponentCss$O = (width, hasPagination, alignHeader, theme) => {
6212
4354
  const { primaryColor, contrastMediumColor } = getThemedColors(theme);
6213
4355
  const isHeaderAlignCenter = alignHeader === 'center';
6214
4356
  return getCss(Object.assign({ '@global': {
@@ -6255,9 +4397,9 @@ const getComponentCss$O = (width, disablePagination, alignHeader, theme) => {
6255
4397
  '&__list': Object.assign({ display: 'flex', height: '100%' }, getBackfaceVisibilityJssStyle()),
6256
4398
  '&__slide': Object.assign(Object.assign({ position: 'relative', flexShrink: 0 }, getBackfaceVisibilityJssStyle()), { transform: 'translateZ(0)' }),
6257
4399
  '&__sr': getScreenReaderOnlyJssStyle(), // appears in the DOM when sliding
6258
- } }, (!disablePagination && {
6259
- pagination: Object.assign(Object.assign({}, buildResponsiveStyles(disablePagination, (disablePaginationValue) => ({
6260
- display: disablePaginationValue ? 'none' : 'flex',
4400
+ } }, (hasPagination && {
4401
+ pagination: Object.assign(Object.assign({}, buildResponsiveStyles(hasPagination, (hasPaginationValue) => ({
4402
+ display: hasPaginationValue ? 'flex' : 'none',
6261
4403
  }))), { justifyContent: 'center', gap: spacingStaticSmall }),
6262
4404
  bullet: {
6263
4405
  borderRadius: borderRadiusSmall,
@@ -6385,19 +4527,14 @@ const getThemedTypographyColor = (theme, textColor) => {
6385
4527
  const { primaryColor, contrastHighColor, contrastMediumColor, contrastLowColor, successColor, errorColor, warningColor, infoColor, } = getThemedColors(theme);
6386
4528
  const colorMap = {
6387
4529
  primary: primaryColor,
6388
- brand: primaryColor,
6389
4530
  default: primaryColor,
6390
4531
  'contrast-low': contrastLowColor,
6391
- 'neutral-contrast-low': contrastLowColor,
6392
4532
  'contrast-medium': contrastMediumColor,
6393
- 'neutral-contrast-medium': contrastMediumColor,
6394
4533
  'contrast-high': contrastHighColor,
6395
- 'neutral-contrast-high': contrastHighColor,
6396
4534
  'notification-success': successColor,
6397
4535
  'notification-warning': warningColor,
6398
4536
  'notification-error': errorColor,
6399
4537
  'notification-info': infoColor,
6400
- 'notification-neutral': infoColor,
6401
4538
  inherit: 'currentColor',
6402
4539
  };
6403
4540
  return colorMap[textColor];
@@ -6432,6 +4569,7 @@ const getTypographySlottedJssStyle = () => {
6432
4569
  };
6433
4570
 
6434
4571
  const sizeMap$5 = {
4572
+ small: fontSizeDisplaySmall,
6435
4573
  medium: fontSizeDisplayMedium,
6436
4574
  large: fontSizeDisplayLarge,
6437
4575
  };
@@ -6452,9 +4590,6 @@ const getComponentCss$L = (size, align, color, ellipsis, theme) => {
6452
4590
  const getComponentCss$K = (color, orientation, theme) => {
6453
4591
  const { contrastLowColor, contrastMediumColor, contrastHighColor } = getThemedColors(theme);
6454
4592
  const colorMap = {
6455
- 'neutral-contrast-low': contrastLowColor,
6456
- 'neutral-contrast-medium': contrastMediumColor,
6457
- 'neutral-contrast-high': contrastHighColor,
6458
4593
  'contrast-low': contrastLowColor,
6459
4594
  'contrast-medium': contrastMediumColor,
6460
4595
  'contrast-high': contrastHighColor,
@@ -6559,7 +4694,6 @@ const sizeMap$4 = {
6559
4694
  large: fontSizeHeadingLarge,
6560
4695
  'x-large': fontSizeHeadingXLarge,
6561
4696
  'xx-large': fontSizeHeadingXXLarge,
6562
- 'xxx-large': fontSizeHeadingXXXLarge,
6563
4697
  };
6564
4698
  const getComponentCss$E = (size, align, color, ellipsis, theme) => {
6565
4699
  return getCss({
@@ -6603,6 +4737,7 @@ const getHeadlineVariantJssStyle = (variant) => {
6603
4737
  }));
6604
4738
  };
6605
4739
  const textSizeMap = {
4740
+ 'xx-small': fontSizeTextXXSmall,
6606
4741
  'x-small': fontSizeTextXSmall,
6607
4742
  small: fontSizeTextSmall,
6608
4743
  medium: fontSizeTextMedium,
@@ -6628,64 +4763,57 @@ const getComponentCss$D = (variant, align, color, ellipsis, theme) => {
6628
4763
  });
6629
4764
  };
6630
4765
 
4766
+ const toFilter = (values) => `invert(${values[0]}%) sepia(${values[1]}%) saturate(${values[2]}%) hue-rotate(${values[3]}deg) brightness(${values[4]}%) contrast(${values[5]}%)`;
4767
+
4768
+ const filterLightContrastLow = toFilter([93, 11, 36, 201, 89, 102]);
4769
+ const filterLightContrastMedium = toFilter([65, 6, 119, 187, 90, 92]);
4770
+ const filterLightContrastHigh = toFilter([40, 2, 686, 187, 80, 94]);
4771
+ const filterDarkContrastLow = toFilter([20, 7, 421, 202, 97, 82]);
4772
+ const filterDarkContrastMedium = toFilter([54, 4, 229, 187, 91, 84]);
4773
+ const filterDarkContrastHigh = toFilter([68, 6, 108, 187, 104, 88]);
4774
+
4775
+ const filterLightNotificationSuccess = toFilter([62, 61, 551, 86, 86, 80]);
4776
+ const filterLightNotificationWarning = toFilter([74, 91, 343, 348, 92, 86]);
4777
+ const filterLightNotificationError = toFilter([25, 62, 2003, 335, 100, 97]);
4778
+ const filterLightNotificationInfo = toFilter([31, 32, 5493, 216, 90, 107]);
4779
+ const filterDarkNotificationSuccess = toFilter([59, 22, 1342, 86, 96, 88]);
4780
+ const filterDarkNotificationWarning = toFilter([72, 94, 303, 354, 89, 94]);
4781
+ const filterDarkNotificationError = toFilter([28, 34, 3133, 333, 95, 100]);
4782
+ const filterDarkNotificationInfo = toFilter([31, 32, 5493, 216, 90, 107]);
4783
+
4784
+ const filterLightPrimary = toFilter([3, 7, 2930, 188, 91, 103]);
4785
+ const filterDarkPrimary = toFilter([97, 55, 2840, 180, 114, 103]);
4786
+
6631
4787
  const sizeMap$3 = {
4788
+ 'xx-small': fontSizeTextXXSmall,
6632
4789
  'x-small': fontSizeTextXSmall,
6633
4790
  small: fontSizeTextSmall,
6634
4791
  medium: fontSizeTextMedium,
6635
4792
  large: fontSizeTextLarge,
6636
4793
  'x-large': fontSizeTextXLarge,
6637
4794
  };
6638
- // TODO, use Tuple to reduce chunk size
6639
- const filterLightPrimary$1 = 'invert(3%) sepia(7%) saturate(2930%) hue-rotate(188deg) brightness(91%) contrast(103%)';
6640
- const filterLightContrastLow$1 = 'invert(93%) sepia(11%) saturate(36%) hue-rotate(201deg) brightness(89%) contrast(102%)';
6641
- const filterLightContrastMedium$1 = 'invert(65%) sepia(6%) saturate(119%) hue-rotate(187deg) brightness(90%) contrast(92%)';
6642
- const filterLightContrastHigh$1 = 'invert(40%) sepia(2%) saturate(686%) hue-rotate(187deg) brightness(80%) contrast(94%)';
6643
- const filterLightNotificationSuccess = 'invert(62%) sepia(61%) saturate(551%) hue-rotate(86deg) brightness(86%) contrast(80%)';
6644
- const filterLightNotificationWarning = 'invert(74%) sepia(91%) saturate(343%) hue-rotate(348deg) brightness(92%) contrast(86%)';
6645
- const filterLightNotificationError = 'invert(25%) sepia(62%) saturate(2003%) hue-rotate(335deg) brightness(100%) contrast(97%)';
6646
- const filterLightNotificationInfo = 'invert(31%) sepia(32%) saturate(5493%) hue-rotate(216deg) brightness(90%) contrast(107%)';
6647
- const filterDarkPrimary$1 = 'invert(97%) sepia(55%) saturate(2840%) hue-rotate(180deg) brightness(114%) contrast(103%)';
6648
- const filterDarkContrastLow$1 = 'invert(20%) sepia(7%) saturate(421%) hue-rotate(202deg) brightness(97%) contrast(82%)';
6649
- const filterDarkContrastMedium$1 = 'invert(54%) sepia(4%) saturate(229%) hue-rotate(187deg) brightness(91%) contrast(84%)';
6650
- const filterDarkContrastHigh$1 = 'invert(68%) sepia(6%) saturate(108%) hue-rotate(187deg) brightness(104%) contrast(88%)';
6651
- const filterDarkNotificationSuccess = 'invert(59%) sepia(22%) saturate(1342%) hue-rotate(86deg) brightness(96%) contrast(88%)';
6652
- const filterDarkNotificationWarning = 'invert(72%) sepia(94%) saturate(303%) hue-rotate(354deg) brightness(89%) contrast(94%)';
6653
- const filterDarkNotificationError = 'invert(28%) sepia(34%) saturate(3133%) hue-rotate(333deg) brightness(95%) contrast(100%)';
6654
- const filterDarkNotificationInfo = 'invert(31%) sepia(32%) saturate(5493%) hue-rotate(216deg) brightness(90%) contrast(107%)';
6655
4795
  const filter = {
6656
4796
  light: {
6657
- primary: filterLightPrimary$1,
6658
- brand: filterLightPrimary$1,
6659
- default: filterLightPrimary$1,
6660
- disabled: filterLightContrastMedium$1,
6661
- 'contrast-low': filterLightContrastLow$1,
6662
- 'neutral-contrast-low': filterLightContrastLow$1,
6663
- 'contrast-medium': filterLightContrastMedium$1,
6664
- 'neutral-contrast-medium': filterLightContrastMedium$1,
6665
- 'contrast-high': filterLightContrastHigh$1,
6666
- 'neutral-contrast-high': filterLightContrastHigh$1,
4797
+ primary: filterLightPrimary,
4798
+ 'state-disabled': filterLightContrastMedium,
4799
+ 'contrast-low': filterLightContrastLow,
4800
+ 'contrast-medium': filterLightContrastMedium,
4801
+ 'contrast-high': filterLightContrastHigh,
6667
4802
  'notification-success': filterLightNotificationSuccess,
6668
4803
  'notification-warning': filterLightNotificationWarning,
6669
4804
  'notification-error': filterLightNotificationError,
6670
4805
  'notification-info': filterLightNotificationInfo,
6671
- 'notification-neutral': filterLightNotificationInfo, // deprecated
6672
4806
  },
6673
4807
  dark: {
6674
- primary: filterDarkPrimary$1,
6675
- brand: filterDarkPrimary$1,
6676
- default: filterDarkPrimary$1,
6677
- disabled: filterDarkContrastMedium$1,
6678
- 'contrast-low': filterDarkContrastLow$1,
6679
- 'neutral-contrast-low': filterDarkContrastLow$1,
6680
- 'contrast-medium': filterDarkContrastMedium$1,
6681
- 'neutral-contrast-medium': filterDarkContrastMedium$1,
6682
- 'contrast-high': filterDarkContrastHigh$1,
6683
- 'neutral-contrast-high': filterDarkContrastHigh$1,
4808
+ primary: filterDarkPrimary,
4809
+ 'state-disabled': filterDarkContrastMedium,
4810
+ 'contrast-low': filterDarkContrastLow,
4811
+ 'contrast-medium': filterDarkContrastMedium,
4812
+ 'contrast-high': filterDarkContrastHigh,
6684
4813
  'notification-success': filterDarkNotificationSuccess,
6685
4814
  'notification-warning': filterDarkNotificationWarning,
6686
4815
  'notification-error': filterDarkNotificationError,
6687
4816
  'notification-info': filterDarkNotificationInfo,
6688
- 'notification-neutral': filterDarkNotificationInfo, // deprecated
6689
4817
  },
6690
4818
  };
6691
4819
  const forceRerenderAnimationStyle = {
@@ -6701,10 +4829,11 @@ const keyFramesDark = 'rerender-dark';
6701
4829
  const getComponentCss$C = (color, size, theme) => {
6702
4830
  const isColorInherit = color === 'inherit';
6703
4831
  const isSizeInherit = size === 'inherit';
4832
+ const isDark = isThemeDark(theme);
6704
4833
  return getCss({
6705
4834
  '@global': Object.assign({ ':host': Object.assign({ display: 'inline-block', verticalAlign: 'top' }, addImportantToEachRule(hostHiddenStyles)), img: Object.assign(Object.assign({ display: 'block', margin: 0, padding: 0 }, (!isColorInherit && {
6706
4835
  filter: filter[theme][color],
6707
- WebkitAnimation: `${theme === 'light' ? keyFramesLight : keyFramesDark} 1ms`, // needed to enforce repaint in Safari if theme is switched programmatically.
4836
+ WebkitAnimation: `${isDark ? keyFramesDark : keyFramesLight} 1ms`, // needed to enforce repaint in Safari if theme is switched programmatically.
6708
4837
  })), (isSizeInherit
6709
4838
  ? {
6710
4839
  width: size,
@@ -6715,7 +4844,7 @@ const getComponentCss$C = (color, size, theme) => {
6715
4844
  height: fontLineHeight,
6716
4845
  font: `${sizeMap$3[size]} ${fontFamily}`,
6717
4846
  })) }, (!isColorInherit && {
6718
- [`@keyframes ${isThemeDark(theme) ? keyFramesDark : keyFramesLight}`]: forceRerenderAnimationStyle,
4847
+ [`@keyframes ${isDark ? keyFramesDark : keyFramesLight}`]: forceRerenderAnimationStyle,
6719
4848
  })),
6720
4849
  });
6721
4850
  };
@@ -6788,12 +4917,7 @@ const getComponentCss$A = (icon, iconSource, active, stretch, size, hideLabel, a
6788
4917
  return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, hideLabel, alignLabel, hasSlottedAnchor, theme), Object.assign(Object.assign({}, (hasSlottedAnchor && {
6789
4918
  '@global': addImportantToEachRule({
6790
4919
  '::slotted': {
6791
- '&(a)': {
6792
- outline: 0,
6793
- textDecoration: underline ? 'underline' : 'none',
6794
- font: 'inherit',
6795
- color: 'inherit',
6796
- },
4920
+ '&(a)': Object.assign(Object.assign({}, getResetInitialStylesForSlottedAnchor), { outline: 0, textDecoration: underline ? 'underline' : 'none', font: 'inherit', color: 'inherit' }),
6797
4921
  // The clickable area for Safari < ~15 (<= release date: 2021-10-28) is reduced to the slotted anchor itself,
6798
4922
  // since Safari prior to this major release does not support pseudo-elements in the slotted context
6799
4923
  // (https://bugs.webkit.org/show_bug.cgi?id=178237)
@@ -6819,12 +4943,7 @@ const getComponentCss$z = (icon, iconSource, variant, hideLabel, hasSlottedAncho
6819
4943
  return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, false, hasSlottedAnchor, theme), Object.assign({}, (hasSlottedAnchor && {
6820
4944
  '@global': addImportantToEachRule({
6821
4945
  '::slotted': {
6822
- '&(a)': {
6823
- outline: 0,
6824
- textDecoration: 'none',
6825
- font: 'inherit',
6826
- color: 'inherit',
6827
- },
4946
+ '&(a)': Object.assign(Object.assign({}, getResetInitialStylesForSlottedAnchor), { outline: 0, textDecoration: 'none', font: 'inherit', color: 'inherit' }),
6828
4947
  // The clickable area for Safari < ~15 (<= release date: 2021-10-28) is reduced to the slotted anchor itself,
6829
4948
  // since Safari prior to this major release does not support pseudo-elements in the slotted context
6830
4949
  // (https://bugs.webkit.org/show_bug.cgi?id=178237)
@@ -6845,9 +4964,7 @@ const getComponentCss$z = (icon, iconSource, variant, hideLabel, hasSlottedAncho
6845
4964
  };
6846
4965
 
6847
4966
  const fontWeightMap = {
6848
- thin: fontWeightRegular,
6849
4967
  regular: fontWeightRegular,
6850
- semibold: fontWeightSemiBold$1,
6851
4968
  'semi-bold': fontWeightSemiBold$1,
6852
4969
  bold: fontWeightBold,
6853
4970
  };
@@ -6863,44 +4980,26 @@ const aspectRatioPaddingTop = {
6863
4980
  '9:16': '177.75%',
6864
4981
  };
6865
4982
  const getGradientBackground = (isCompact, isTopAligned) => {
6866
- const gradient = 'rgba(31,31,31,0.9) 0%,' +
6867
- 'rgba(31,31,31,0.9) 20%,' +
6868
- 'rgba(31,31,31,0.852589) 26.67%,' +
6869
- 'rgba(32,32,32,0.768225) 33.33%,' +
6870
- 'rgba(33,33,33,0.668116) 40%,' +
6871
- 'rgba(34,34,34,0.557309) 46.67%,' +
6872
- 'rgba(35,35,35,0.442691) 53.33%,' +
6873
- 'rgba(36,36,36,0.331884) 60%,' +
6874
- 'rgba(37,37,37,0.231775) 66.67%,' +
6875
- 'rgba(38,38,38,0.147411) 73.33%,' +
6876
- 'rgba(39,39,39,0.0816599) 80%,' +
6877
- 'rgba(39,39,39,0.03551) 86.67%,' +
6878
- 'rgba(39,39,39,0.0086472) 93.33%,' +
6879
- 'rgba(39,39,39,0)';
6880
- return isCompact && isTopAligned
6881
- ? `linear-gradient(${gradient} 100%);`
6882
- : `linear-gradient(to top, ${gradient} 100%);`;
4983
+ return isCompact && isTopAligned ? gradientToBottomStyle : gradientToTopStyle;
6883
4984
  };
6884
4985
  const sizeMap$2 = {
6885
- inherit: {
6886
- fontSize: 'inherit',
6887
- },
6888
- default: { fontSize: '1.25rem' },
4986
+ inherit: { fontSize: 'inherit' },
4987
+ default: { fontSize: fontSizeTextMedium },
6889
4988
  };
6890
4989
  const getComponentCss$y = (aspectRatio, size, weight, align, compact, hasGradient) => {
6891
4990
  const isTopAligned = align === 'top';
6892
- const paddingSizeXS = pxToRemWithUnit(24);
6893
- const gradientPadding = pxToRemWithUnit(72);
6894
4991
  return getCss({
6895
- '@global': Object.assign(Object.assign({ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(Object.assign({ height: 'fit-content' }, hostHiddenStyles))) }, addImportantToEachRule({
4992
+ '@global': Object.assign(Object.assign({ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)) }, addImportantToEachRule({
6896
4993
  '::slotted(picture),::slotted(img)': Object.assign({ transition: getTransition('transform') }, getBackfaceVisibilityJssStyle()),
6897
- '::slotted(picture)': Object.assign({ position: 'absolute' }, getInsetJssStyle()),
4994
+ '::slotted(picture)': Object.assign({ position: 'absolute' }, getInsetJssStyle(0)),
6898
4995
  '::slotted(img)': {
6899
4996
  height: '100%',
6900
4997
  width: '100%',
6901
4998
  objectFit: 'cover',
6902
4999
  },
6903
- })), { p: Object.assign(Object.assign(Object.assign({ color: getThemedTypographyColor('dark', 'primary') }, textSmallStyle), { maxWidth: pxToRemWithUnit(550), margin: 0 }), mergeDeep(buildResponsiveStyles(size, (s) => sizeMap$2[s]), buildResponsiveStyles(weight, (w) => ({ fontWeight: getFontWeight(w) })))) }),
5000
+ })), { p: Object.assign(Object.assign({ color: getThemedTypographyColor('dark', 'primary'), maxWidth: pxToRemWithUnit(550), margin: 0 }, textLargeStyle), mergeDeep(buildResponsiveStyles(size, (s) => sizeMap$2[s]), buildResponsiveStyles(weight, (w) => ({
5001
+ fontWeight: getFontWeight(w === 'semibold' ? 'semi-bold' : w),
5002
+ })))) }),
6904
5003
  root: Object.assign(Object.assign({ height: 0, position: 'relative', transform: 'translate3d(0,0,0)' }, hoverMediaQuery({
6905
5004
  '&:hover': {
6906
5005
  '& ::slotted(picture),::slotted(img)': addImportantToEachRule({
@@ -6910,24 +5009,20 @@ const getComponentCss$y = (aspectRatio, size, weight, align, compact, hasGradien
6910
5009
  })), buildResponsiveStyles(aspectRatio, (ratio) => ({
6911
5010
  paddingTop: aspectRatioPaddingTop[ratio],
6912
5011
  }))),
6913
- 'image-container': Object.assign(Object.assign({ position: 'absolute' }, getInsetJssStyle()), { overflow: 'hidden' }),
6914
- content: Object.assign(Object.assign(Object.assign({ position: 'absolute' }, (isTopAligned ? { top: 0 } : { bottom: 0 })), { left: 0, right: 0, display: 'grid', justifyItems: 'start', padding: align === 'bottom'
6915
- ? `${gradientPadding} ${paddingSizeXS} ${paddingSizeXS}`
6916
- : `${paddingSizeXS} ${paddingSizeXS} ${gradientPadding}`, gap: pxToRemWithUnit(24) }), mergeDeep({
6917
- [getMediaQueryMin('s')]: Object.assign({ paddingLeft: pxToRemWithUnit(32), paddingRight: pxToRemWithUnit(32) }, (align === 'bottom' ? { paddingBottom: pxToRemWithUnit(32) } : { paddingTop: pxToRemWithUnit(32) })),
6918
- }, hasGradient &&
6919
- buildResponsiveStyles(compact, (isCompact) => ({
6920
- background: getGradientBackground(isCompact, isTopAligned),
6921
- })), buildResponsiveStyles(compact, (isCompact) => isCompact
6922
- ? Object.assign({ alignItems: 'center', gridTemplateColumns: `auto ${pxToRemWithUnit(24)}`, gridTemplateRows: 'auto' }, (isTopAligned ? { top: 0 } : { bottom: 0 })) : { gridTemplateRows: 'auto auto', gridTemplateColumns: 'auto' }))),
5012
+ 'image-container': Object.assign({ position: 'absolute', overflow: 'hidden', borderRadius: borderRadiusMedium }, getInsetJssStyle(0)),
5013
+ content: Object.assign(Object.assign(Object.assign(Object.assign({ position: 'absolute' }, (isTopAligned ? { top: 0 } : { bottom: 0 })), { left: 0, right: 0, display: 'grid', justifyItems: 'start', borderRadius: borderRadiusMedium, padding: align === 'bottom'
5014
+ ? `${spacingFluidLarge} ${spacingFluidMedium} ${spacingFluidMedium}`
5015
+ : `${spacingFluidMedium} ${spacingFluidMedium} ${spacingFluidLarge}`, gap: spacingStaticMedium }), mergeDeep(hasGradient &&
5016
+ buildResponsiveStyles(compact, (isCompact) => getGradientBackground(isCompact, isTopAligned)), buildResponsiveStyles(compact, (isCompact) => isCompact
5017
+ ? Object.assign({ alignItems: 'center', gridTemplateColumns: 'auto 24px', gridTemplateRows: 'auto' }, (isTopAligned ? { top: 0 } : { bottom: 0 })) : { gridTemplateRows: 'auto auto', gridTemplateColumns: 'auto' }))), { '@media (forced-colors: active)': {
5018
+ background: 'rgba(0,0,0,0.7)',
5019
+ } }),
6923
5020
  'link-pure': buildResponsiveStyles(compact, (isCompact) => ({
6924
5021
  display: isCompact ? 'inline-block' : 'none',
6925
5022
  })),
6926
- link: Object.assign({ minHeight: '3rem' }, buildResponsiveStyles(compact, (isCompact) => ({ display: isCompact ? 'none' : 'inline-flex' }))),
6927
- // Due to position absolut on .content, position fixed is used to expand the clickable area of the anchor onto the whole link-tile
6928
- anchor: {
6929
- '&::after': Object.assign({ content: '""', position: 'fixed' }, getInsetJssStyle()),
6930
- },
5023
+ link: Object.assign({ minHeight: '54px' }, buildResponsiveStyles(compact, (isCompact) => ({ display: isCompact ? 'none' : 'inline-block' }))),
5024
+ // is used for expanded click-area only
5025
+ 'link-overlay': Object.assign(Object.assign({ position: 'fixed' }, getInsetJssStyle(0)), { outline: 0 }),
6931
5026
  });
6932
5027
  };
6933
5028
 
@@ -6979,7 +5074,7 @@ const getFullscreenJssStyles = (fullscreen) => {
6979
5074
  minWidth: pxToRemWithUnit(275.2),
6980
5075
  maxWidth: pxToRemWithUnit(1536),
6981
5076
  minHeight: 'auto',
6982
- margin: `max(16px, 7vh) ${gridSafeZoneBase}`,
5077
+ margin: `clamp(16px, 7vh, 192px) ${gridSafeZoneBase}`,
6983
5078
  borderRadius: borderRadiusMedium,
6984
5079
  };
6985
5080
  };
@@ -6995,7 +5090,7 @@ const isFullscreenForXl = (fullscreen) => {
6995
5090
  return BREAKPOINTS.indexOf(lastTrueBreakpoint) > BREAKPOINTS.indexOf(lastFalseBreakpoint);
6996
5091
  }
6997
5092
  };
6998
- const getSlottedJssStyle = (marginValue, hasHeader, disableCloseButton) => {
5093
+ const getSlottedJssStyle = (marginValue, hasHeader, hasDismissButton) => {
6999
5094
  const marginPx = `${-marginValue}px`;
7000
5095
  const marginRem = pxToRemWithUnit(-marginValue);
7001
5096
  return Object.assign(Object.assign({ [`&(.${stretchToFullModalWidthClassName})`]: {
@@ -7003,13 +5098,13 @@ const getSlottedJssStyle = (marginValue, hasHeader, disableCloseButton) => {
7003
5098
  margin: `0 ${marginPx}`,
7004
5099
  } }, (!hasHeader && {
7005
5100
  [`&(.${stretchToFullModalWidthClassName}:first-child)`]: {
7006
- marginTop: !disableCloseButton ? marginRem : marginPx,
5101
+ marginTop: hasDismissButton ? marginRem : marginPx,
7007
5102
  },
7008
5103
  })), { [`&(.${stretchToFullModalWidthClassName}:last-child)`]: {
7009
5104
  marginBottom: marginPx,
7010
5105
  } });
7011
5106
  };
7012
- const getComponentCss$w = (open, fullscreen, disableCloseButton, hasHeader) => {
5107
+ const getComponentCss$w = (open, fullscreen, hasDismissButton, hasHeader) => {
7013
5108
  const isFullscreenForXlAndXxl = isFullscreenForXl(fullscreen);
7014
5109
  return getCss(Object.assign(Object.assign({ '@global': {
7015
5110
  ':host': Object.assign(Object.assign({}, addImportantToEachRule(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ position: 'fixed' }, getInsetJssStyle()), { zIndex: MODAL_Z_INDEX, display: 'flex', alignItems: 'center', justifyContent: 'center', flexWrap: 'wrap' }), (open
@@ -7022,8 +5117,8 @@ const getComponentCss$w = (open, fullscreen, disableCloseButton, hasHeader) => {
7022
5117
  visibility: 'hidden',
7023
5118
  })), hostHiddenStyles), {
7024
5119
  // workaround via pseudo element to fix stacking (black) background in safari
7025
- '&::before': Object.assign(Object.assign(Object.assign({ content: '""', position: 'fixed' }, getInsetJssStyle()), { background: themeDarkBackgroundShading }), frostedGlassStyle) }))), { overflowY: 'auto' }),
7026
- '::slotted': addImportantToEachRule(Object.assign({}, mergeDeep(getSlottedJssStyle(32, hasHeader, disableCloseButton), buildResponsiveStyles(fullscreen, (fullscreenValue) => ({
5120
+ '&::before': Object.assign(Object.assign(Object.assign(Object.assign({ content: '""', position: 'fixed' }, getInsetJssStyle()), { background: themeDarkBackgroundShading }), frostedGlassStyle), { pointerEvents: 'none' }) }))), { overflowY: 'auto' }),
5121
+ '::slotted': addImportantToEachRule(Object.assign({}, mergeDeep(getSlottedJssStyle(32, hasHeader, hasDismissButton), buildResponsiveStyles(fullscreen, (fullscreenValue) => ({
7027
5122
  [`&(.${stretchToFullModalWidthClassName}`]: {
7028
5123
  '&:first-child)': {
7029
5124
  borderRadius: fullscreenValue ? 0 : '8px 8px 0 0',
@@ -7039,10 +5134,10 @@ const getComponentCss$w = (open, fullscreen, disableCloseButton, hasHeader) => {
7039
5134
  boxSizing: 'border-box',
7040
5135
  transition: `transform .6s ${transitionTimingFunction}`,
7041
5136
  transform: open ? 'scale3d(1,1,1)' : 'scale3d(.9,.9,1)',
7042
- padding: !disableCloseButton ? `${pxToRemWithUnit(32)} 32px 32px 32px` : '32px',
7043
- backgroundColor,
5137
+ padding: hasDismissButton ? `${pxToRemWithUnit(32)} 32px 32px 32px` : '32px',
5138
+ background: backgroundColor,
7044
5139
  outline: 0,
7045
- '&:focus::before': Object.assign({ content: '""', position: 'fixed', border: `${borderWidthBase} solid` }, buildResponsiveStyles(fullscreen, (fullscreenValue) => (Object.assign({ borderRadius: fullscreenValue ? 0 : '12px', borderColor: fullscreenValue ? lightThemePrimaryColor : darkThemePrimaryColor }, getInsetJssStyle(fullscreenValue ? 0 : -4))))),
5140
+ '&:focus::before': Object.assign({ content: '""', position: 'fixed', border: `${borderWidthBase} solid`, pointerEvents: 'none' }, buildResponsiveStyles(fullscreen, (fullscreenValue) => (Object.assign({ borderRadius: fullscreenValue ? 0 : '12px', borderColor: fullscreenValue ? lightThemePrimaryColor : darkThemePrimaryColor }, getInsetJssStyle(fullscreenValue ? 0 : -4))))),
7046
5141
  '&:not(:focus-visible)::before': {
7047
5142
  border: 0,
7048
5143
  },
@@ -7053,30 +5148,16 @@ const getComponentCss$w = (open, fullscreen, disableCloseButton, hasHeader) => {
7053
5148
  header: {
7054
5149
  padding: '0 0 8px',
7055
5150
  },
7056
- })), { close: {
7057
- position: 'absolute',
7058
- top: '8px',
7059
- right: '8px',
7060
- border: `2px solid ${backgroundColor}`,
7061
- borderRadius: '4px',
7062
- backgroundColor,
5151
+ })), (hasDismissButton && {
5152
+ dismiss: Object.assign({ position: 'absolute', top: '8px', right: '8px', border: `2px solid ${backgroundColor}`, borderRadius: '4px', background: backgroundColor }, hoverMediaQuery({
7063
5153
  '&:hover': {
7064
- backgroundColor: 'transparent',
5154
+ background: 'transparent',
7065
5155
  borderColor: 'transparent',
7066
5156
  },
7067
- } }));
5157
+ })),
5158
+ })));
7068
5159
  };
7069
5160
 
7070
- const toFilter = (values) => `invert(${values[0]}%) sepia(${values[1]}%) saturate(${values[2]}%) hue-rotate(${values[3]}deg) brightness(${values[4]}%) contrast(${values[5]}%)`;
7071
- // copied from icon-styles
7072
- const filterLightPrimary = toFilter([3, 7, 2930, 188, 91, 103]);
7073
- const filterLightContrastLow = toFilter([93, 11, 36, 201, 89, 102]);
7074
- const filterLightContrastMedium = toFilter([65, 6, 119, 187, 90, 92]);
7075
- const filterLightContrastHigh = toFilter([40, 2, 686, 187, 80, 94]);
7076
- const filterDarkPrimary = toFilter([97, 55, 2840, 180, 114, 103]);
7077
- const filterDarkContrastLow = toFilter([20, 7, 421, 202, 97, 82]);
7078
- const filterDarkContrastMedium = toFilter([54, 4, 229, 187, 91, 84]);
7079
- const filterDarkContrastHigh = toFilter([68, 6, 108, 187, 104, 88]);
7080
5161
  const colorToFilterMap = {
7081
5162
  light: {
7082
5163
  primary: filterLightPrimary,
@@ -7295,12 +5376,12 @@ const getComponentCss$s = (hideLabel, state, isDisabled, theme) => {
7295
5376
 
7296
5377
  const gradientColorMap = {
7297
5378
  light: {
7298
- default: '255,255,255',
7299
- surface: '238,239,242',
5379
+ 'background-base': '255,255,255',
5380
+ 'background-surface': '238,239,242',
7300
5381
  },
7301
5382
  dark: {
7302
- default: '14,14,18',
7303
- surface: '33,34,37',
5383
+ 'background-base': '14,14,18',
5384
+ 'background-surface': '33,34,37',
7304
5385
  },
7305
5386
  };
7306
5387
  const getGradient = (theme, gradientColorTheme) => {
@@ -7310,17 +5391,17 @@ const getGradient = (theme, gradientColorTheme) => {
7310
5391
  `rgba(${gradientColor},0.3) 68%,` +
7311
5392
  `rgba(${gradientColor},0)`);
7312
5393
  };
7313
- const getComponentCss$r = (gradientColorTheme, isNextHidden, isPrevHidden, scrollIndicatorPosition, theme) => {
5394
+ const getComponentCss$r = (gradientColor, isNextHidden, isPrevHidden, scrollIndicatorPosition, theme) => {
7314
5395
  const { backgroundColor, backgroundSurfaceColor, focusColor, hoverColor } = getThemedColors(theme);
7315
5396
  const isDarkTheme = isThemeDark(theme);
7316
5397
  const backgroundColorMap = {
7317
5398
  dark: {
7318
- default: backgroundSurfaceColor,
7319
- surface: backgroundColor,
5399
+ 'background-base': backgroundSurfaceColor,
5400
+ 'background-surface': backgroundColor,
7320
5401
  },
7321
5402
  light: {
7322
- default: backgroundColor,
7323
- surface: backgroundSurfaceColor,
5403
+ 'background-base': backgroundColor,
5404
+ 'background-surface': backgroundSurfaceColor,
7324
5405
  },
7325
5406
  };
7326
5407
  const actionPrevNextStyles = {
@@ -7333,7 +5414,7 @@ const getComponentCss$r = (gradientColorTheme, isNextHidden, isPrevHidden, scrol
7333
5414
  return getCss({
7334
5415
  '@global': {
7335
5416
  ':host': addImportantToEachRule(Object.assign({ display: 'block', height: 'inherit' }, hostHiddenStyles)),
7336
- button: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', pointerEvents: 'auto', alignItems: 'center', justifyContent: 'center' }, textSmallStyle), { height: `calc(${fontLineHeight} + 4px)`, width: `calc(${fontLineHeight} + 4px)`, border: 0, outline: 0, cursor: 'pointer', background: backgroundColorMap[theme][gradientColorTheme], borderRadius: borderRadiusSmall }), frostedGlassStyle), { visibility: 'hidden' }), (!isDarkTheme && dropShadowLowStyle)), hoverMediaQuery({
5417
+ button: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', pointerEvents: 'auto', alignItems: 'center', justifyContent: 'center' }, textSmallStyle), { height: `calc(${fontLineHeight} + 4px)`, width: `calc(${fontLineHeight} + 4px)`, border: 0, outline: 0, cursor: 'pointer', background: backgroundColorMap[theme][gradientColor], borderRadius: borderRadiusSmall }), frostedGlassStyle), { visibility: 'hidden' }), (!isDarkTheme && dropShadowLowStyle)), hoverMediaQuery({
7337
5418
  transition: getTransition('background-color'),
7338
5419
  '&:hover': Object.assign(Object.assign({}, frostedGlassStyle), { background: hoverColor }),
7339
5420
  })),
@@ -7384,10 +5465,10 @@ const getComponentCss$r = (gradientColorTheme, isNextHidden, isPrevHidden, scrol
7384
5465
  right: 0,
7385
5466
  },
7386
5467
  },
7387
- 'action-prev': Object.assign(Object.assign({}, actionPrevNextStyles), { marginLeft: '-1px', gridArea: '1 / 1 / 1 / 1', justifyContent: 'flex-start', background: `linear-gradient(to right, ${getGradient(theme, gradientColorTheme)} 100%)`, visibility: isPrevHidden ? 'hidden' : 'visible', '& button': Object.assign({ marginLeft: '8px' }, hoverMediaQuery({
5468
+ 'action-prev': Object.assign(Object.assign({}, actionPrevNextStyles), { marginLeft: '-1px', gridArea: '1 / 1 / 1 / 1', justifyContent: 'flex-start', background: `linear-gradient(to right, ${getGradient(theme, gradientColor)} 100%)`, visibility: isPrevHidden ? 'hidden' : 'visible', '& button': Object.assign({ marginLeft: '8px' }, hoverMediaQuery({
7388
5469
  visibility: isPrevHidden ? 'hidden' : 'visible',
7389
5470
  })) }),
7390
- 'action-next': Object.assign(Object.assign({}, actionPrevNextStyles), { marginRight: '-1px', gridArea: '1 / 3 / 1 / 3', justifyContent: 'flex-end', background: `linear-gradient(to left, ${getGradient(theme, gradientColorTheme)} 100%)`, visibility: isNextHidden ? 'hidden' : 'visible', '& button': Object.assign({ marginRight: '8px' }, hoverMediaQuery({
5471
+ 'action-next': Object.assign(Object.assign({}, actionPrevNextStyles), { marginRight: '-1px', gridArea: '1 / 3 / 1 / 3', justifyContent: 'flex-end', background: `linear-gradient(to left, ${getGradient(theme, gradientColor)} 100%)`, visibility: isNextHidden ? 'hidden' : 'visible', '& button': Object.assign({ marginRight: '8px' }, hoverMediaQuery({
7391
5472
  visibility: isNextHidden ? 'hidden' : 'visible',
7392
5473
  })) }),
7393
5474
  });
@@ -7450,7 +5531,9 @@ const getComponentCss$p = (maxWidth) => {
7450
5531
  const getBaseChildStyles = (child, state, theme, additionalDefaultJssStyle) => {
7451
5532
  const { primaryColor, contrastLowColor, contrastMediumColor, disabledColor } = getThemedColors(theme);
7452
5533
  const { formStateColor, formStateHoverColor } = getThemedFormStateColors(theme, state);
7453
- return Object.assign(Object.assign(Object.assign({ [`::slotted(${child})`]: Object.assign({ display: 'block', width: '100%', height: 'auto', margin: 0, outline: 0, WebkitAppearance: 'none', appearance: 'none', boxSizing: 'border-box', border: `${borderWidthBase} solid ${formStateColor || contrastMediumColor}`, borderRadius: borderRadiusSmall, background: 'transparent', font: textSmallStyle.font.replace('ex', 'ex + 10px'), textIndent: 0, color: primaryColor, transition: ['color', 'border-color', 'background-color'].map(getTransition).join() }, additionalDefaultJssStyle) }, hoverMediaQuery({
5534
+ return Object.assign(Object.assign(Object.assign({ [`::slotted(${child})`]: Object.assign({ display: 'block', width: '100%', height: child !== 'textarea'
5535
+ ? `calc(${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2)` // we need 10px additionally so input height becomes 54px
5536
+ : 'auto', margin: 0, outline: 0, WebkitAppearance: 'none', appearance: 'none', boxSizing: 'border-box', border: `${borderWidthBase} solid ${formStateColor || contrastMediumColor}`, borderRadius: borderRadiusSmall, background: 'transparent', font: textSmallStyle.font.replace('ex', 'ex + 6px'), textIndent: 0, color: primaryColor, transition: ['color', 'border-color', 'background-color'].map(getTransition).join() }, additionalDefaultJssStyle) }, hoverMediaQuery({
7454
5537
  // with the media query the selector has higher priority and overrides disabled styles
7455
5538
  [`::slotted(${child}:not(:disabled):not(:focus):not([readonly]):hover)`]: {
7456
5539
  borderColor: formStateHoverColor || primaryColor,
@@ -7592,6 +5675,7 @@ const getSVGPath = (stepCount, numberedCircleColors, isStateCurrent) => {
7592
5675
  const svgCirclePath = `<circle fill="${isStateCurrent ? primaryColor : 'none'}"${isStateCurrent ? '' : ` stroke="${fillColor}"`} stroke-width="1px" cx="12" cy="12" r="9"/>`;
7593
5676
  // Full SVG is provided by design (./numbers_raw.svg), created with illustrator and optimized with ImageOptim.
7594
5677
  // The optimized file can be found in ./numbers_optim.svg.
5678
+ // TODO: could certainly be optimized size wise by exporting icons larger and having less decimals
7595
5679
  const svgNumberedCirclePaths = [
7596
5680
  `${svgCirclePath}<path fill="${fillColor}" d="m12.33 8.67-2.43.91v-.94l2.6-1.03h.85v8.78h-1.02z"/>`,
7597
5681
  `${svgCirclePath}<path fill="${fillColor}" d="m9.46 15.58c0-1.35.73-2.07 1.7-2.72l.95-.63c.78-.52 1.57-1.05 1.57-2.24 0-1.12-.62-1.58-1.7-1.58s-1.68.48-1.78 1.97h-.96c.06-1.82.78-2.91 2.74-2.91s2.72.92 2.72 2.52-.92 2.23-1.79 2.8l-.95.63c-1.11.75-1.52 1.18-1.52 2.01v.16h4.17v.81h-5.15v-.81z"/>`,
@@ -7675,7 +5759,7 @@ const getComponentCss$j = (alignLabel, hideLabel, stretch, checked, disabled, lo
7675
5759
  const { buttonBorderColor, buttonBorderColorHover, buttonBackgroundColor, buttonBackgroundColorHover, toggleBackgroundColor, toggleBackgroundColorHover, textColor, } = getColors$1(checked, disabled, loading, theme);
7676
5760
  const { focusColor } = getThemedColors(theme);
7677
5761
  return getCss(Object.assign(Object.assign({ '@global': {
7678
- ':host': addImportantToEachRule(Object.assign(Object.assign({ outline: 0 }, hostHiddenStyles), buildResponsiveStyles(stretch, (stretchValue) => (Object.assign({ display: stretchValue ? 'block' : 'inline-block' }, (!stretchValue && { verticalAlign: 'top' })))))),
5762
+ ':host': addImportantToEachRule(Object.assign(Object.assign({ outline: 0 }, hostHiddenStyles), buildResponsiveStyles(stretch, (stretchValue) => (Object.assign({ display: stretchValue ? 'block' : 'inline-block', width: stretchValue ? '100%' : 'auto' }, (!stretchValue && { verticalAlign: 'top' })))))),
7679
5763
  }, root: Object.assign(Object.assign(Object.assign({ display: 'flex', alignItems: 'flex-start', gap: spacingStaticSmall, width: '100%', padding: 0, outline: 0, border: 0, textAlign: 'left', background: 'transparent', appearance: 'none', cursor: isDisabledOrLoading(disabled, loading) ? 'auto' : 'pointer' }, buildResponsiveStyles(stretch, (stretchValue) => ({
7680
5764
  justifyContent: stretchValue ? 'space-between' : 'flex-start',
7681
5765
  }))), (!isDisabledOrLoading(disabled, loading) &&
@@ -7860,35 +5944,9 @@ const getComponentCss$b = (size, weight, theme) => {
7860
5944
  transform: 'translate3d(0,0,0)' }, hostHiddenStyles))) }, addImportantToEachRule(Object.assign(Object.assign({
7861
5945
  // would be nice to use shared selector like '::slotted([role])'
7862
5946
  // but this doesn't work reliably when rendering in browser
7863
- [transformSelector('::slotted([role])')]: {
7864
- display: 'inline-block',
7865
- position: 'relative',
7866
- margin: '0 0 4px 0',
7867
- padding: 0,
7868
- verticalAlign: 'top',
7869
- fontFamily: 'inherit',
7870
- fontStyle: 'inherit',
7871
- fontVariant: 'inherit',
7872
- fontWeight: 'inherit',
7873
- fontSize: 'inherit',
7874
- lineHeight: 'inherit',
7875
- whiteSpace: 'nowrap',
7876
- boxSizing: 'border-box',
7877
- WebkitAppearance: 'none',
7878
- appearance: 'none',
7879
- outline: 0,
7880
- outlineOffset: '1px',
7881
- textDecoration: 'none',
7882
- textAlign: 'left',
7883
- border: 0,
7884
- background: 'transparent',
7885
- color: primaryColor,
7886
- cursor: 'pointer',
7887
- borderRadius: borderRadiusSmall,
7888
- '&::before': Object.assign({ content: '""', position: 'absolute', top: '-2px', bottom: '-2px', left: '-4px', right: '-4px', borderRadius: borderRadiusSmall, zIndex: '-1' }, hoverMediaQuery({
5947
+ [transformSelector('::slotted([role])')]: Object.assign(Object.assign({}, getResetInitialStylesForSlottedAnchor), { display: 'inline-block', position: 'relative', margin: '0 0 4px 0', padding: 0, verticalAlign: 'top', fontFamily: 'inherit', fontStyle: 'inherit', fontVariant: 'inherit', fontWeight: 'inherit', fontSize: 'inherit', lineHeight: 'inherit', whiteSpace: 'nowrap', boxSizing: 'border-box', WebkitAppearance: 'none', appearance: 'none', outline: 0, outlineOffset: '1px', textDecoration: 'none', textAlign: 'left', border: 0, background: 'transparent', color: primaryColor, cursor: 'pointer', borderRadius: borderRadiusSmall, '&::before': Object.assign({ content: '""', position: 'absolute', top: '-2px', bottom: '-2px', left: '-4px', right: '-4px', borderRadius: borderRadiusSmall, zIndex: '-1' }, hoverMediaQuery({
7889
5948
  transition: getTransition('background'),
7890
- })),
7891
- } }, hoverMediaQuery({
5949
+ })) }) }, hoverMediaQuery({
7892
5950
  [transformSelector('::slotted([role]:hover)::before')]: Object.assign(Object.assign({}, frostedGlassStyle), { background: hoverColor }),
7893
5951
  })), {
7894
5952
  // TODO: combine link-social-styles with link-button-styles and tabs-bar-styles
@@ -7905,7 +5963,7 @@ const getComponentCss$b = (size, weight, theme) => {
7905
5963
  display: 'block',
7906
5964
  position: 'absolute',
7907
5965
  width: 0,
7908
- height: weight === 'semibold' ? '2px' : '1.5px',
5966
+ height: weight === 'semi-bold' ? '2px' : '1.5px',
7909
5967
  left: 0,
7910
5968
  bottom: '-4px',
7911
5969
  background: primaryColor,
@@ -7918,10 +5976,10 @@ const getComponentCss$b = (size, weight, theme) => {
7918
5976
  };
7919
5977
 
7920
5978
  const getComponentCss$a = (theme) => {
7921
- const { focusColor } = getThemedColors(theme);
5979
+ const { primaryColor, focusColor } = getThemedColors(theme);
7922
5980
  return getCss({
7923
5981
  '@global': {
7924
- ':host': addImportantToEachRule(Object.assign(Object.assign({ display: 'block', position: 'relative' }, hostHiddenStyles), { outline: 0, '&::before': Object.assign({ content: '""', position: 'absolute' }, getInsetJssStyle(-4)), '&(:focus)::before': {
5982
+ ':host': addImportantToEachRule(Object.assign(Object.assign({ display: 'block', position: 'relative', color: primaryColor }, hostHiddenStyles), { outline: 0, '&::before': Object.assign({ content: '""', position: 'absolute' }, getInsetJssStyle(-4)), '&(:focus)::before': {
7925
5983
  border: `${borderWidthBase} solid ${focusColor}`,
7926
5984
  borderRadius: borderRadiusSmall,
7927
5985
  }, '&(:focus:not(:focus-visible))::before': {
@@ -7952,16 +6010,13 @@ const getTagFocusJssStyle = (themedColors) => {
7952
6010
  };
7953
6011
  const getThemedBackgroundColor = (tagColor, themedColors) => {
7954
6012
  const colorMap = {
7955
- 'background-default': themedColors.backgroundColor,
7956
6013
  'background-base': themedColors.backgroundColor,
7957
6014
  'background-surface': themedColors.backgroundSurfaceColor,
7958
- 'neutral-contrast-high': themedColors.primaryColor,
7959
6015
  primary: themedColors.primaryColor,
7960
- 'notification-neutral': themedColors.infoSoftColor,
7961
- 'notification-info': themedColors.infoSoftColor,
7962
- 'notification-success': themedColors.successSoftColor,
7963
- 'notification-error': themedColors.errorSoftColor,
7964
- 'notification-warning': themedColors.warningSoftColor,
6016
+ 'notification-info-soft': themedColors.infoSoftColor,
6017
+ 'notification-warning-soft': themedColors.warningSoftColor,
6018
+ 'notification-success-soft': themedColors.successSoftColor,
6019
+ 'notification-error-soft': themedColors.errorSoftColor,
7965
6020
  };
7966
6021
  return colorMap[tagColor];
7967
6022
  };
@@ -7992,45 +6047,26 @@ const getComponentCss$8 = (color, hasLabel, theme) => {
7992
6047
  }, 'sr-only': getScreenReaderOnlyJssStyle() }));
7993
6048
  };
7994
6049
 
7995
- const hasInvertedThemeColor = (tagColor, theme) => {
7996
- const isDark = isThemeDark(theme);
7997
- return ((!isDark && (tagColor === 'neutral-contrast-high' || tagColor === 'primary')) || // 'neutral-contrast-high' is deprecated (replaced with 'primary')
7998
- (isDark &&
7999
- tagColor !== 'background-surface' &&
8000
- tagColor !== 'background-default' && // 'background-default' is deprecated (replaced with 'background-base')
8001
- tagColor !== 'background-base' &&
8002
- tagColor !== 'notification-neutral' && // 'notification-neutral' is deprecated (replaced with 'notification-info')
8003
- tagColor !== 'notification-info' &&
8004
- tagColor !== 'notification-warning' &&
8005
- tagColor !== 'notification-success' &&
8006
- tagColor !== 'notification-error'));
8007
- };
8008
6050
  const getThemedBackgroundHoverColor = (tagColor, themedColors, theme) => {
8009
6051
  const isDark = isThemeDark(theme);
8010
- const keySuffix = isDark ? 'ColorLighten' : 'ColorDarken';
8011
- const primaryColor = isDark ? themedColors.contrastHighColorLighten : themedColors.contrastHighColor;
6052
+ const keySuffix = isDark ? 'Lighten' : 'Darken';
8012
6053
  const colorMap = {
8013
- 'background-default': themedColors[`background${keySuffix}`],
8014
- 'background-base': themedColors[`background${keySuffix}`],
8015
- 'background-surface': themedColors[`backgroundSurface${keySuffix}`],
8016
- 'neutral-contrast-high': primaryColor,
8017
- primary: primaryColor,
8018
- 'notification-neutral': themedColors[`infoSoft${keySuffix}`],
8019
- 'notification-info': themedColors[`infoSoft${keySuffix}`],
8020
- 'notification-success': themedColors[`successSoft${keySuffix}`],
8021
- 'notification-error': themedColors[`errorSoft${keySuffix}`],
8022
- 'notification-warning': themedColors[`warningSoft${keySuffix}`],
6054
+ 'background-base': themedColors[`backgroundColor${keySuffix}`],
6055
+ 'background-surface': themedColors[`backgroundSurfaceColor${keySuffix}`],
6056
+ primary: isDark ? themedColors.contrastHighColorLighten : themedColors.contrastHighColor,
6057
+ 'notification-info-soft': themedColors[`infoSoftColor${keySuffix}`],
6058
+ 'notification-success-soft': themedColors[`successSoftColor${keySuffix}`],
6059
+ 'notification-error-soft': themedColors[`errorSoftColor${keySuffix}`],
6060
+ 'notification-warning-soft': themedColors[`warningSoftColor${keySuffix}`],
8023
6061
  };
8024
6062
  return colorMap[tagColor];
8025
6063
  };
8026
6064
 
8027
6065
  const getColors = (themedColors, tagColor, theme) => {
8028
- const hasInvertedTheme = hasInvertedThemeColor(tagColor, theme);
8029
- const { primaryColor } = hasInvertedTheme ? getInvertedThemedColors(theme) : themedColors;
8030
- const { focusColor } = themedColors;
6066
+ const { primaryColor } = tagColor === 'primary' ? getInvertedThemedColors(theme) : themedColors;
8031
6067
  return {
8032
6068
  primaryColor,
8033
- focusColor,
6069
+ focusColor: themedColors.focusColor,
8034
6070
  backgroundColor: getThemedBackgroundColor(tagColor, themedColors),
8035
6071
  backgroundHoverColor: getThemedBackgroundHoverColor(tagColor, themedColors, theme),
8036
6072
  };
@@ -8041,27 +6077,14 @@ const getComponentCss$7 = (tagColor, isFocusable, theme) => {
8041
6077
  return getCss({
8042
6078
  '@global': {
8043
6079
  ':host': Object.assign({ display: 'inline-flex', verticalAlign: 'top' }, addImportantToEachRule(hostHiddenStyles)),
8044
- span: Object.assign({ display: 'flex', gap: '2px', alignItems: 'center', position: 'relative', padding: '4px 9px', borderRadius: borderRadiusSmall, background: backgroundColor, color: primaryColor, font: textXSmallStyle.font, whiteSpace: 'nowrap' }, (isFocusable && Object.assign({}, hoverMediaQuery({
8045
- transition: getTransition('background-color'),
8046
- '&:hover': {
8047
- background: backgroundHoverColor,
8048
- },
8049
- })))),
8050
- '::slotted': addImportantToEachRule(Object.assign(Object.assign({ '&(a),&(button)': {
8051
- display: 'inline',
8052
- position: 'static',
8053
- textDecoration: 'underline',
8054
- cursor: 'pointer',
8055
- font: 'inherit',
8056
- outline: 0,
8057
- color: 'inherit',
8058
- appearance: 'none',
8059
- margin: 0,
8060
- padding: 0,
8061
- background: 0,
8062
- border: 0,
8063
- textAlign: 'left',
8064
- } }, Object.entries(getTagFocusJssStyle(themedColors)).reduce((result, [key, value]) => {
6080
+ span: Object.assign({ display: 'flex', gap: '2px', alignItems: 'center', position: 'relative', padding: '4px 9px', borderRadius: borderRadiusSmall, background: backgroundColor, color: primaryColor, font: textXSmallStyle.font, whiteSpace: 'nowrap' }, (isFocusable &&
6081
+ hoverMediaQuery({
6082
+ transition: getTransition('background-color'),
6083
+ '&:hover': {
6084
+ background: backgroundHoverColor,
6085
+ },
6086
+ }))),
6087
+ '::slotted': addImportantToEachRule(Object.assign(Object.assign({ '&(a),&(button)': Object.assign(Object.assign({}, getResetInitialStylesForSlottedAnchor), { display: 'inline', position: 'static', textDecoration: 'underline', cursor: 'pointer', font: 'inherit', outline: 0, color: 'inherit', appearance: 'none', margin: 0, padding: 0, background: 0, border: 0, textAlign: 'left' }) }, Object.entries(getTagFocusJssStyle(themedColors)).reduce((result, [key, value]) => {
8065
6088
  result[key.replace(/^&([a-z:\-()]*)(::[a-z\-]+)$/, '&(a$1)$2, &(button$1)$2')] = value;
8066
6089
  return result;
8067
6090
  }, {})), { '&(br)': {
@@ -8075,6 +6098,17 @@ const getComponentCss$7 = (tagColor, isFocusable, theme) => {
8075
6098
  };
8076
6099
 
8077
6100
  const isType = (inputType, typeToValidate) => inputType === typeToValidate;
6101
+ // eslint-disable-next-line no-underscore-dangle
6102
+ const _hasShowPickerSupport = () => {
6103
+ return (hasDocument &&
6104
+ 'showPicker' in HTMLInputElement.prototype &&
6105
+ // TODO: it would be better to determinate support by checking for existence of "calendar-picker-indicator"
6106
+ !!window.navigator.userAgent.match(/chrome|chromium|crios|edg/i));
6107
+ };
6108
+ const hasShowPickerSupport = _hasShowPickerSupport();
6109
+ const showCustomCalendarOrTimeIndicator = (isCalendar, isTime) => {
6110
+ return hasShowPickerSupport && (isCalendar || isTime);
6111
+ };
8078
6112
 
8079
6113
  const cssVariableInputPaddingLeft = '--p-internal-text-field-input-padding-left';
8080
6114
  const cssVariableInputPaddingRight = '--p-internal-text-field-input-padding-right';
@@ -8099,18 +6133,21 @@ const getComponentCss$6 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter
8099
6133
  const isSearch = isType(inputType, 'search');
8100
6134
  const isPassword = isType(inputType, 'password');
8101
6135
  const isNumber = isType(inputType, 'number');
6136
+ const isCalendar = isType(inputType, 'date') || isType(inputType, 'week') || isType(inputType, 'month');
6137
+ const isTime = isType(inputType, 'time');
8102
6138
  const isSearchOrPassword = isSearch || isPassword;
8103
6139
  const isSearchWithoutForm = isSearch && !isWithinForm;
8104
6140
  const isSearchWithForm = isSearch && isWithinForm;
8105
- return getCss(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ '@global': Object.assign({ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(Object.assign({ [cssVariableInputPaddingLeft]: isSearchWithoutForm ? getInputPaddingHorizontal(1) : spacingStaticMedium, [cssVariableInputPaddingRight]: isSearchOrPassword
6141
+ const isCalendarOrTimeWithCustomIndicator = showCustomCalendarOrTimeIndicator(isCalendar, isTime);
6142
+ return getCss(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ '@global': Object.assign({ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(Object.assign({ [cssVariableInputPaddingLeft]: isSearchWithoutForm ? getInputPaddingHorizontal(1) : spacingStaticMedium, [cssVariableInputPaddingRight]: isSearchOrPassword || isCalendarOrTimeWithCustomIndicator
8106
6143
  ? getInputPaddingHorizontal(isSearchWithForm ? 2 : 1)
8107
- : spacingStaticMedium }, hostHiddenStyles))) }, addImportantToEachRule(Object.assign(Object.assign({}, getBaseChildStyles('input', state, theme, Object.assign({ padding: `8px var(${cssVariableInputPaddingRight}) 8px var(${cssVariableInputPaddingLeft})` }, (isNumber && {
6144
+ : spacingStaticMedium }, hostHiddenStyles))) }, addImportantToEachRule(Object.assign(Object.assign({}, getBaseChildStyles('input', state, theme, Object.assign({ padding: `${spacingStaticSmall} var(${cssVariableInputPaddingRight}) ${spacingStaticSmall} var(${cssVariableInputPaddingLeft})` }, (isNumber && {
8108
6145
  MozAppearance: 'textfield', // hides up/down spin button for Firefox
8109
6146
  })))), { '::slotted': {
8110
6147
  '&(input:-internal-autofill-selected),&(input:-internal-autofill-previewed),&(input:-webkit-autofill),&(input:-webkit-autofill:focus)': {
8111
6148
  WebkitBackgroundClip: 'padding-box', // reset webkit autofill styles
8112
6149
  },
8113
- } }))) }, (isSearchOrPassword && {
6150
+ } }))) }, ((isSearchOrPassword || isCalendarOrTimeWithCustomIndicator) && {
8114
6151
  button: Object.assign(Object.assign({}, baseButtonOrIconStyles), { right: getButtonOrIconOffsetHorizontal(1),
8115
6152
  // TODO: maybe we should render hidden button conditionally, needs to be checked if a11y compliant
8116
6153
  '&:not([hidden]) ~ .button': {
@@ -8136,8 +6173,9 @@ const getComponentCss$6 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter
8136
6173
  'sr-only': Object.assign(Object.assign({}, getScreenReaderOnlyJssStyle()), { padding: 0 }) }));
8137
6174
  };
8138
6175
 
8139
- const isListTypeOrdered = (listType) => listType === 'ordered';
8140
- const isOrderTypeNumbered = (orderType) => orderType === 'numbered';
6176
+ /** @deprecated */
6177
+ const isListTypeOrdered = (type) => type !== 'unordered';
6178
+ const isListTypeNumbered = (type) => type === 'numbered';
8141
6179
 
8142
6180
  const cssVariablePseudoSuffix = '--p-internal-text-list-pseudo-suffix';
8143
6181
  const cssVariablePaddingTop = '--p-internal-text-list-padding-top';
@@ -8146,8 +6184,8 @@ const cssVariableUnorderedPaddingLeft = '--p-internal-text-list-unordered-paddin
8146
6184
  const cssVariableOrderedPaddingLeft = '--p-internal-text-list-ordered-padding-left';
8147
6185
  const cssVariableListStyleType = '--p-internal-text-list-list-style-type';
8148
6186
  const counter = 'p-text-list-counter';
8149
- const getComponentCss$5 = (listType, orderType, theme) => {
8150
- const isOrderedList = isListTypeOrdered(listType);
6187
+ const getComponentCss$5 = (type, theme) => {
6188
+ const isOrderedList = isListTypeOrdered(type);
8151
6189
  return getCss({
8152
6190
  '@global': {
8153
6191
  ':host': Object.assign({ display: 'block' }, addImportantToEachRule(Object.assign({ counterReset: counter }, hostHiddenStyles))),
@@ -8160,7 +6198,7 @@ const getComponentCss$5 = (listType, orderType, theme) => {
8160
6198
  // TODO: in case it's last root list item with a nested list it would result in outer spacing which is not desired
8161
6199
  [cssVariablePaddingBottom]: spacingStaticMedium, [cssVariableOrderedPaddingLeft]: '2rem', [cssVariableUnorderedPaddingLeft]: '.625rem', [cssVariableListStyleType]: '"–"' }, (isOrderedList && {
8162
6200
  '&::before': {
8163
- content: `counters(${counter},'.',${isOrderTypeNumbered(orderType) ? 'decimal' : 'lower-latin'}) var(${cssVariablePseudoSuffix},'.')`,
6201
+ content: `counters(${counter},'.',${isListTypeNumbered(type) ? 'decimal' : 'lower-latin'}) var(${cssVariablePseudoSuffix},'.')`,
8164
6202
  counterIncrement: counter,
8165
6203
  position: 'absolute',
8166
6204
  top: 0,
@@ -8186,6 +6224,7 @@ const getComponentCss$4 = () => {
8186
6224
  const TEXT_TAGS = ['p', 'span', 'div', 'address', 'blockquote', 'figcaption', 'cite', 'time', 'legend'];
8187
6225
 
8188
6226
  const sizeMap = {
6227
+ 'xx-small': fontSizeTextXXSmall,
8189
6228
  'x-small': fontSizeTextXSmall,
8190
6229
  small: fontSizeTextSmall,
8191
6230
  medium: fontSizeTextMedium,