@telefonica/mistica 14.48.0 → 15.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/accordion.css-mistica.js +5 -5
  3. package/dist/accordion.d.ts +2 -6
  4. package/dist/avatar.css-mistica.js +3 -3
  5. package/dist/badge.css-mistica.js +6 -6
  6. package/dist/boxed.css-mistica.js +3 -3
  7. package/dist/button-group.css-mistica.js +1 -1
  8. package/dist/button-layout.css-mistica.js +9 -9
  9. package/dist/button.css-mistica.js +27 -27
  10. package/dist/button.d.ts +12 -4
  11. package/dist/button.js +68 -63
  12. package/dist/callout.css-mistica.js +2 -2
  13. package/dist/callout.d.ts +1 -0
  14. package/dist/callout.js +11 -11
  15. package/dist/card.css-mistica.js +13 -13
  16. package/dist/card.d.ts +6 -0
  17. package/dist/card.js +301 -293
  18. package/dist/carousel.css-mistica.js +19 -19
  19. package/dist/checkbox.css-mistica.js +9 -9
  20. package/dist/chip.css-mistica.js +10 -10
  21. package/dist/circle.css-mistica.js +2 -2
  22. package/dist/community/advanced-data-card.css-mistica.js +12 -12
  23. package/dist/community/blocks.css-mistica.js +1 -1
  24. package/dist/counter.css-mistica.js +4 -4
  25. package/dist/credit-card-number-field.css-mistica.js +5 -5
  26. package/dist/cvv-field.js +30 -29
  27. package/dist/dialog.css-mistica.js +6 -6
  28. package/dist/double-field.css-mistica.js +2 -2
  29. package/dist/empty-state-card.css-mistica.js +3 -3
  30. package/dist/empty-state-card.d.ts +1 -0
  31. package/dist/empty-state-card.js +10 -9
  32. package/dist/empty-state.css-mistica.js +4 -4
  33. package/dist/empty-state.d.ts +1 -0
  34. package/dist/empty-state.js +14 -14
  35. package/dist/feedback.css-mistica.js +5 -5
  36. package/dist/feedback.js +61 -79
  37. package/dist/fixed-footer-layout.css-mistica.js +2 -2
  38. package/dist/header.css-mistica.js +1 -1
  39. package/dist/header.d.ts +2 -0
  40. package/dist/header.js +46 -47
  41. package/dist/hero.css-mistica.js +2 -2
  42. package/dist/hero.d.ts +1 -0
  43. package/dist/hero.js +29 -29
  44. package/dist/highlighted-card.css-mistica.js +7 -7
  45. package/dist/highlighted-card.d.ts +1 -2
  46. package/dist/highlighted-card.js +9 -9
  47. package/dist/horizontal-scroll.css-mistica.js +1 -1
  48. package/dist/icon-button.css-mistica.js +14 -17
  49. package/dist/icon-button.css.d.ts +1 -1
  50. package/dist/icon-button.d.ts +0 -14
  51. package/dist/icon-button.js +84 -87
  52. package/dist/icons/icon-error.js +5 -5
  53. package/dist/icons/icon-info.js +5 -5
  54. package/dist/icons/icon-success.js +6 -7
  55. package/dist/image.css-mistica.js +3 -3
  56. package/dist/image.js +36 -32
  57. package/dist/index.d.ts +5 -12
  58. package/dist/index.js +10 -17
  59. package/dist/inline.js +8 -7
  60. package/dist/list.css-mistica.js +12 -12
  61. package/dist/list.d.ts +1 -4
  62. package/dist/list.js +143 -138
  63. package/dist/loading-bar.css-mistica.js +4 -4
  64. package/dist/loading-screen.css-mistica.js +3 -3
  65. package/dist/logo.d.ts +1 -0
  66. package/dist/logo.js +155 -137
  67. package/dist/maybe-dismissable.css-mistica.js +1 -1
  68. package/dist/maybe-dismissable.js +3 -4
  69. package/dist/menu.css-mistica.js +1 -1
  70. package/dist/navigation-bar.css-mistica.js +22 -22
  71. package/dist/navigation-bar.d.ts +2 -1
  72. package/dist/navigation-bar.js +53 -52
  73. package/dist/navigation-breadcrumbs.css-mistica.js +3 -3
  74. package/dist/package-version.js +1 -1
  75. package/dist/pin-field.css-mistica.js +4 -4
  76. package/dist/popover.d.ts +0 -4
  77. package/dist/popover.js +10 -11
  78. package/dist/progress-bar.css-mistica.js +3 -3
  79. package/dist/radio-button.css-mistica.js +8 -8
  80. package/dist/responsive-layout.css-mistica.js +5 -5
  81. package/dist/screen-reader-only.css-mistica.js +1 -1
  82. package/dist/select.css-mistica.js +10 -10
  83. package/dist/select.d.ts +1 -0
  84. package/dist/select.js +65 -65
  85. package/dist/sheet.css-mistica.js +8 -8
  86. package/dist/skeletons.css-mistica.js +5 -5
  87. package/dist/skins/blau.js +5 -3
  88. package/dist/skins/constants.d.ts +1 -2
  89. package/dist/skins/constants.js +7 -10
  90. package/dist/skins/movistar.d.ts +1 -0
  91. package/dist/skins/movistar.js +6 -3
  92. package/dist/skins/o2-new.d.ts +50 -0
  93. package/dist/skins/o2-new.js +397 -0
  94. package/dist/skins/o2.d.ts +1 -0
  95. package/dist/skins/o2.js +6 -3
  96. package/dist/skins/skin-contract.css-mistica.js +138 -136
  97. package/dist/skins/skin-contract.css.d.ts +2 -0
  98. package/dist/skins/telefonica.d.ts +1 -0
  99. package/dist/skins/telefonica.js +6 -3
  100. package/dist/skins/tu.d.ts +1 -0
  101. package/dist/skins/tu.js +6 -3
  102. package/dist/skins/types/colors.d.ts +1 -0
  103. package/dist/skins/types/index.d.ts +1 -1
  104. package/dist/skins/utils.js +7 -7
  105. package/dist/skins/vivo-new.js +5 -3
  106. package/dist/skins/vivo.js +5 -3
  107. package/dist/slider.css-mistica.js +7 -7
  108. package/dist/slider.d.ts +0 -8
  109. package/dist/slider.js +95 -97
  110. package/dist/snackbar.css-mistica.js +12 -12
  111. package/dist/spinner.css-mistica.js +5 -5
  112. package/dist/sprinkles.css-mistica.js +792 -786
  113. package/dist/stacking-group.css-mistica.js +2 -2
  114. package/dist/stepper.css-mistica.js +9 -9
  115. package/dist/switch-component.css-mistica.js +26 -23
  116. package/dist/switch-component.css.d.ts +1 -0
  117. package/dist/switch-component.js +11 -10
  118. package/dist/tabs.css-mistica.js +9 -9
  119. package/dist/tag.css-mistica.js +1 -1
  120. package/dist/tag.js +34 -39
  121. package/dist/text-field-base.css-mistica.js +5 -5
  122. package/dist/text-field-components.css-mistica.js +11 -11
  123. package/dist/text-link.css-mistica.js +3 -3
  124. package/dist/text-link.d.ts +5 -0
  125. package/dist/tooltip.css-mistica.js +2 -2
  126. package/dist/tooltip.d.ts +0 -16
  127. package/dist/tooltip.js +78 -80
  128. package/dist/touchable.css-mistica.js +5 -5
  129. package/dist/touchable.d.ts +33 -19
  130. package/dist/touchable.js +54 -51
  131. package/dist/utils/aspect-ratio-support.css-mistica.js +5 -5
  132. package/dist/utils/browser.d.ts +1 -0
  133. package/dist/utils/browser.js +14 -0
  134. package/dist/video.css-mistica.js +1 -1
  135. package/dist-es/accordion.css-mistica.js +3 -3
  136. package/dist-es/avatar.css-mistica.js +2 -2
  137. package/dist-es/badge.css-mistica.js +2 -2
  138. package/dist-es/boxed.css-mistica.js +2 -2
  139. package/dist-es/button-group.css-mistica.js +1 -1
  140. package/dist-es/button-layout.css-mistica.js +6 -6
  141. package/dist-es/button.css-mistica.js +16 -16
  142. package/dist-es/button.js +89 -84
  143. package/dist-es/callout.css-mistica.js +2 -2
  144. package/dist-es/callout.js +37 -37
  145. package/dist-es/card.css-mistica.js +2 -2
  146. package/dist-es/card.js +442 -434
  147. package/dist-es/carousel.css-mistica.js +2 -2
  148. package/dist-es/checkbox.css-mistica.js +6 -6
  149. package/dist-es/chip.css-mistica.js +7 -7
  150. package/dist-es/circle.css-mistica.js +2 -2
  151. package/dist-es/community/advanced-data-card.css-mistica.js +3 -3
  152. package/dist-es/community/blocks.css-mistica.js +1 -1
  153. package/dist-es/counter.css-mistica.js +2 -2
  154. package/dist-es/credit-card-number-field.css-mistica.js +4 -4
  155. package/dist-es/cvv-field.js +55 -54
  156. package/dist-es/dialog.css-mistica.js +5 -5
  157. package/dist-es/double-field.css-mistica.js +2 -2
  158. package/dist-es/empty-state-card.css-mistica.js +2 -2
  159. package/dist-es/empty-state-card.js +30 -29
  160. package/dist-es/empty-state.css-mistica.js +3 -3
  161. package/dist-es/empty-state.js +34 -34
  162. package/dist-es/feedback.css-mistica.js +2 -2
  163. package/dist-es/feedback.js +102 -120
  164. package/dist-es/fixed-footer-layout.css-mistica.js +2 -2
  165. package/dist-es/header.css-mistica.js +1 -1
  166. package/dist-es/header.js +69 -70
  167. package/dist-es/hero.css-mistica.js +2 -2
  168. package/dist-es/hero.js +56 -56
  169. package/dist-es/highlighted-card.css-mistica.js +5 -5
  170. package/dist-es/highlighted-card.js +26 -26
  171. package/dist-es/horizontal-scroll.css-mistica.js +1 -1
  172. package/dist-es/icon-button.css-mistica.js +9 -12
  173. package/dist-es/icon-button.js +94 -97
  174. package/dist-es/icons/icon-error.js +6 -6
  175. package/dist-es/icons/icon-info.js +6 -6
  176. package/dist-es/icons/icon-success.js +9 -10
  177. package/dist-es/image.css-mistica.js +2 -2
  178. package/dist-es/image.js +38 -34
  179. package/dist-es/index.js +1762 -1763
  180. package/dist-es/inline.js +13 -12
  181. package/dist-es/list.css-mistica.js +2 -2
  182. package/dist-es/list.js +184 -179
  183. package/dist-es/loading-bar.css-mistica.js +2 -2
  184. package/dist-es/loading-screen.css-mistica.js +2 -2
  185. package/dist-es/logo.js +172 -157
  186. package/dist-es/maybe-dismissable.css-mistica.js +1 -1
  187. package/dist-es/maybe-dismissable.js +7 -8
  188. package/dist-es/menu.css-mistica.js +1 -1
  189. package/dist-es/navigation-bar.css-mistica.js +9 -9
  190. package/dist-es/navigation-bar.js +72 -71
  191. package/dist-es/navigation-breadcrumbs.css-mistica.js +2 -2
  192. package/dist-es/package-version.js +1 -1
  193. package/dist-es/pin-field.css-mistica.js +2 -2
  194. package/dist-es/popover.js +27 -28
  195. package/dist-es/progress-bar.css-mistica.js +2 -2
  196. package/dist-es/radio-button.css-mistica.js +5 -5
  197. package/dist-es/responsive-layout.css-mistica.js +4 -4
  198. package/dist-es/screen-reader-only.css-mistica.js +1 -1
  199. package/dist-es/select.css-mistica.js +9 -9
  200. package/dist-es/select.js +97 -97
  201. package/dist-es/sheet.css-mistica.js +2 -2
  202. package/dist-es/skeletons.css-mistica.js +2 -2
  203. package/dist-es/skins/blau.js +5 -3
  204. package/dist-es/skins/constants.js +2 -2
  205. package/dist-es/skins/movistar.js +8 -5
  206. package/dist-es/skins/o2-new.js +380 -0
  207. package/dist-es/skins/o2.js +6 -3
  208. package/dist-es/skins/skin-contract.css-mistica.js +138 -136
  209. package/dist-es/skins/telefonica.js +6 -3
  210. package/dist-es/skins/tu.js +6 -3
  211. package/dist-es/skins/utils.js +11 -11
  212. package/dist-es/skins/vivo-new.js +5 -3
  213. package/dist-es/skins/vivo.js +5 -3
  214. package/dist-es/slider.css-mistica.js +2 -2
  215. package/dist-es/slider.js +117 -119
  216. package/dist-es/snackbar.css-mistica.js +5 -5
  217. package/dist-es/spinner.css-mistica.js +2 -2
  218. package/dist-es/sprinkles.css-mistica.js +792 -786
  219. package/dist-es/stacking-group.css-mistica.js +2 -2
  220. package/dist-es/stepper.css-mistica.js +2 -2
  221. package/dist-es/style.css +1 -1
  222. package/dist-es/switch-component.css-mistica.js +19 -19
  223. package/dist-es/switch-component.js +24 -23
  224. package/dist-es/tabs.css-mistica.js +6 -6
  225. package/dist-es/tag.css-mistica.js +1 -1
  226. package/dist-es/tag.js +52 -57
  227. package/dist-es/text-field-base.css-mistica.js +2 -2
  228. package/dist-es/text-field-components.css-mistica.js +2 -2
  229. package/dist-es/text-link.css-mistica.js +3 -3
  230. package/dist-es/tooltip.css-mistica.js +2 -2
  231. package/dist-es/tooltip.js +83 -85
  232. package/dist-es/touchable.css-mistica.js +2 -2
  233. package/dist-es/touchable.js +68 -65
  234. package/dist-es/utils/aspect-ratio-support.css-mistica.js +3 -3
  235. package/dist-es/utils/browser.js +5 -0
  236. package/dist-es/video.css-mistica.js +1 -1
  237. package/package.json +2 -2
  238. package/dist/skins/movistar-legacy.d.ts +0 -47
  239. package/dist/skins/movistar-legacy.js +0 -392
  240. package/dist/skins/o2-classic.d.ts +0 -56
  241. package/dist/skins/o2-classic.js +0 -324
  242. package/dist-es/skins/movistar-legacy.js +0 -375
  243. package/dist-es/skins/o2-classic.js +0 -307
package/dist-es/header.js CHANGED
@@ -80,180 +80,179 @@ function _object_without_properties_loose(source, excluded) {
80
80
  }
81
81
  import { jsxs as i, jsx as r } from "react/jsx-runtime";
82
82
  import f from "./box.js";
83
- import a from "./stack.js";
84
- import { useIsInverseVariant as L } from "./theme-variant-context.js";
83
+ import d from "./stack.js";
84
+ import { useIsInverseVariant as S } from "./theme-variant-context.js";
85
85
  import b from "./responsive-layout.js";
86
86
  import y from "./grid-layout.js";
87
87
  import { useSetOverscrollColor as v } from "./overscroll-color-context.js";
88
- import { Text2 as S, Text3 as k, Text8 as C, Text7 as A, Text6 as M } from "./text.js";
89
- import N from "./button-group.js";
90
- import { vars as l } from "./skins/skin-contract.css-mistica.js";
91
- import { hideOnTabletOrSmaller as R, hideOnDesktop as j, breadcrumbs as G } from "./header.css-mistica.js";
92
- import { getPrefixedDataAttributes as O } from "./utils/dom.js";
93
- import { Title2 as P, Title3 as V } from "./title.js";
94
- const $ = (param)=>{
95
- let { pretitle: o, title: e, description: t, dataAttributes: d, small: m = !1, preamount: s, amount: p, button: n, subtitle: c, isErrorAmount: h, secondaryButton: x } = param;
96
- const B = L(), g = (u, T)=>{
88
+ import { Text2 as C, Text3 as k, Text8 as M, Text7 as N, Text6 as R } from "./text.js";
89
+ import j from "./button-group.js";
90
+ import { vars as c } from "./skins/skin-contract.css-mistica.js";
91
+ import { hideOnTabletOrSmaller as A, hideOnDesktop as G, breadcrumbs as O } from "./header.css-mistica.js";
92
+ import { getPrefixedDataAttributes as P } from "./utils/dom.js";
93
+ import { Title2 as V, Title3 as q } from "./title.js";
94
+ const E = (param)=>{
95
+ let { pretitle: o, title: e, titleAs: t = "h2", description: l, dataAttributes: p, small: h = !1, preamount: m, amount: a, button: n, subtitle: s, isErrorAmount: B, secondaryButton: x } = param;
96
+ const H = S(), g = (u, T)=>{
97
97
  if (typeof u == "string") return /* @__PURE__ */ r(k, _object_spread_props(_object_spread({
98
98
  regular: !0
99
99
  }, T), {
100
100
  children: u
101
101
  }));
102
- const { text: q } = u, H = _object_without_properties(u, [
102
+ const { text: w } = u, L = _object_without_properties(u, [
103
103
  "text"
104
104
  ]);
105
105
  return /* @__PURE__ */ r(k, _object_spread_props(_object_spread({
106
106
  regular: !0
107
- }, T, H), {
107
+ }, T, L), {
108
108
  children: u.text
109
109
  }));
110
110
  };
111
- return /* @__PURE__ */ i(a, {
111
+ return /* @__PURE__ */ i(d, {
112
112
  space: {
113
113
  mobile: 24,
114
114
  desktop: 32
115
115
  },
116
- dataAttributes: d,
116
+ dataAttributes: p,
117
117
  children: [
118
- (e || o || t) && /* @__PURE__ */ r(f, {
118
+ (e || o || l) && /* @__PURE__ */ r(f, {
119
119
  paddingRight: 16,
120
- children: /* @__PURE__ */ i(a, {
120
+ children: /* @__PURE__ */ i(d, {
121
121
  space: 8,
122
122
  children: [
123
123
  o && g(o, {
124
- color: l.colors.textPrimary
124
+ color: c.colors.textPrimary
125
125
  }),
126
- e && (m ? /* @__PURE__ */ r(P, {
127
- as: "h2",
126
+ e && (h ? /* @__PURE__ */ r(V, {
127
+ as: t,
128
128
  children: e
129
- }) : /* @__PURE__ */ r(V, {
130
- as: "h2",
129
+ }) : /* @__PURE__ */ r(q, {
130
+ as: t,
131
131
  children: e
132
132
  })),
133
- t && (m ? /* @__PURE__ */ r(S, {
133
+ l && (h ? /* @__PURE__ */ r(C, {
134
134
  regular: !0,
135
- color: l.colors.textSecondary,
136
- children: t
135
+ color: c.colors.textSecondary,
136
+ children: l
137
137
  }) : /* @__PURE__ */ r(k, {
138
138
  regular: !0,
139
- color: l.colors.textSecondary,
140
- children: t
139
+ color: c.colors.textSecondary,
140
+ children: l
141
141
  }))
142
142
  ]
143
143
  })
144
144
  }),
145
- (s || p || n || c) && /* @__PURE__ */ i(a, {
145
+ (m || a || n || s) && /* @__PURE__ */ i(d, {
146
146
  space: 16,
147
147
  children: [
148
- (s || p) && /* @__PURE__ */ i(a, {
148
+ (m || a) && /* @__PURE__ */ i(d, {
149
149
  space: 8,
150
150
  children: [
151
- s && g(s, {
152
- color: l.colors.textPrimary
151
+ m && g(m, {
152
+ color: c.colors.textPrimary
153
153
  }),
154
- /* @__PURE__ */ r(C, {
155
- color: h && !B ? l.colors.highlight : l.colors.textPrimary,
156
- children: p
154
+ /* @__PURE__ */ r(M, {
155
+ color: B && !H ? c.colors.highlight : c.colors.textPrimary,
156
+ children: a
157
157
  })
158
158
  ]
159
159
  }),
160
- (n || x) && /* @__PURE__ */ r(N, {
160
+ (n || x) && /* @__PURE__ */ r(j, {
161
161
  primaryButton: n,
162
162
  secondaryButton: x
163
163
  }),
164
- c && g(c, {})
164
+ s && g(s, {})
165
165
  ]
166
166
  })
167
167
  ]
168
168
  });
169
- }, E = (param)=>{
170
- let { title: o, description: e, button: t } = param;
171
- return /* @__PURE__ */ i(a, {
169
+ }, Y = (param)=>{
170
+ let { title: o, titleAs: e = "h1", description: t, button: l } = param;
171
+ return /* @__PURE__ */ i(d, {
172
172
  space: 32,
173
173
  children: [
174
- /* @__PURE__ */ i(a, {
174
+ /* @__PURE__ */ i(d, {
175
175
  space: {
176
176
  mobile: 12,
177
177
  desktop: 16
178
178
  },
179
179
  children: [
180
- o && /* @__PURE__ */ r(A, {
181
- role: "heading",
182
- "aria-level": 1,
180
+ o && /* @__PURE__ */ r(N, {
181
+ as: e,
183
182
  children: o
184
183
  }),
185
- e && /* @__PURE__ */ r(M, {
186
- children: e
184
+ t && /* @__PURE__ */ r(R, {
185
+ children: t
187
186
  })
188
187
  ]
189
188
  }),
190
- t
189
+ l
191
190
  ]
192
191
  });
193
- }, Y = (param)=>{
194
- let { isInverse: o = !0, breadcrumbs: e, header: t, extra: d, sideBySideExtraOnDesktop: m = !1, dataAttributes: s, bleed: p = !1, noPaddingY: n = !1 } = param;
195
- const c = p && o && d, h = /* @__PURE__ */ i("div", {
192
+ }, rr = (param)=>{
193
+ let { isInverse: o = !0, breadcrumbs: e, header: t, extra: l, sideBySideExtraOnDesktop: p = !1, dataAttributes: h, bleed: m = !1, noPaddingY: a = !1 } = param;
194
+ const n = m && o && l, s = /* @__PURE__ */ i("div", {
196
195
  children: [
197
196
  e && /* @__PURE__ */ r("div", {
198
- className: G,
197
+ className: O,
199
198
  children: e
200
199
  }),
201
200
  t
202
201
  ]
203
202
  });
204
203
  return v(o ? {
205
- topColor: l.colors.backgroundBrandTop
206
- } : {}), /* @__PURE__ */ i("div", _object_spread_props(_object_spread({}, O(_object_spread({
204
+ topColor: c.colors.backgroundBrandTop
205
+ } : {}), /* @__PURE__ */ i("div", _object_spread_props(_object_spread({}, P(_object_spread({
207
206
  "component-name": "HeaderLayout"
208
- }, s))), {
207
+ }, h))), {
209
208
  children: [
210
209
  /* @__PURE__ */ r(b, {
211
210
  isInverse: o,
212
211
  children: /* @__PURE__ */ r(f, {
213
- paddingTop: n ? 0 : {
212
+ paddingTop: a ? 0 : {
214
213
  mobile: t ? 32 : 0,
215
214
  desktop: e ? 16 : 48
216
215
  },
217
216
  paddingBottom: {
218
- mobile: n && !c ? 0 : 24,
219
- desktop: c && !m ? 32 : n ? 0 : 48
217
+ mobile: a && !n ? 0 : 24,
218
+ desktop: n && !p ? 32 : a ? 0 : 48
220
219
  },
221
- children: m ? /* @__PURE__ */ r(y, {
220
+ children: p ? /* @__PURE__ */ r(y, {
222
221
  template: "6+6",
223
- left: h,
222
+ left: s,
224
223
  right: /* @__PURE__ */ r("div", {
225
- className: c ? R : "",
224
+ className: n ? A : "",
226
225
  children: /* @__PURE__ */ r(f, {
227
226
  paddingTop: {
228
227
  mobile: t ? 24 : 0,
229
228
  desktop: 0
230
229
  },
231
- children: d
230
+ children: l
232
231
  })
233
232
  })
234
- }) : /* @__PURE__ */ i(a, {
233
+ }) : /* @__PURE__ */ i(d, {
235
234
  space: t ? {
236
235
  mobile: 24,
237
236
  desktop: 32
238
237
  } : 0,
239
238
  children: [
240
- h,
241
- !c && d
239
+ s,
240
+ !n && l
242
241
  ]
243
242
  })
244
243
  })
245
244
  }),
246
- c && /* @__PURE__ */ r(b, {
247
- className: m ? j : "",
248
- backgroundColor: `linear-gradient(to bottom, ${l.colors.backgroundBrand} 40px, ${l.colors.background} 0%)`,
249
- children: d
245
+ n && /* @__PURE__ */ r(b, {
246
+ className: p ? G : "",
247
+ backgroundColor: `linear-gradient(to bottom, ${c.colors.backgroundBrand} 40px, ${c.colors.background} 0%)`,
248
+ children: l
250
249
  })
251
250
  ]
252
251
  }));
253
- }, rr = (param)=>{
252
+ }, or = (param)=>{
254
253
  let { isInverse: o = !0, children: e, dataAttributes: t } = param;
255
254
  return v(o ? {
256
- topColor: l.colors.backgroundBrandTop
255
+ topColor: c.colors.backgroundBrandTop
257
256
  } : {}), /* @__PURE__ */ r(b, {
258
257
  isInverse: o,
259
258
  dataAttributes: _object_spread({
@@ -276,4 +275,4 @@ const $ = (param)=>{
276
275
  })
277
276
  });
278
277
  };
279
- export { $ as Header, Y as HeaderLayout, E as MainSectionHeader, rr as MainSectionHeaderLayout };
278
+ export { E as Header, rr as HeaderLayout, Y as MainSectionHeader, or as MainSectionHeaderLayout };
@@ -1,7 +1,7 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./responsive-layout.css.ts.vanilla.css-mistica.js";
3
3
  import "./hero.css.ts.vanilla.css-mistica.js";
4
- var t = "_16rbpto6 _1y2v1nfh8 _1y2v1nfhu _1y2v1nfho", v = "_16rbpto2 _1y2v1nfh8", a = "_1y2v1nfhn _1y2v1nfic", _ = "_1y2v1nfhe", i = "_16rbpto7", p = {
4
+ var t = "_16rbpto6 _1y2v1nfha _1y2v1nfhw _1y2v1nfhq", v = "_16rbpto2 _1y2v1nfha", n = "_1y2v1nfhp _1y2v1nfie", _ = "_1y2v1nfhg", i = "_16rbpto7", p = {
5
5
  height: "var(--_16rbpto0)"
6
6
  };
7
- export { t as actions, v as container, a as containerDesktop, _ as containerMobile, i as layout, p as vars };
7
+ export { t as actions, v as container, n as containerDesktop, _ as containerMobile, i as layout, p as vars };
package/dist-es/hero.js CHANGED
@@ -78,23 +78,23 @@ function _object_without_properties_loose(source, excluded) {
78
78
  }
79
79
  return target;
80
80
  }
81
- import { jsx as r, jsxs as c } from "react/jsx-runtime";
81
+ import { jsx as r, jsxs as m } from "react/jsx-runtime";
82
82
  import * as I from "react";
83
- import h from "classnames";
83
+ import u from "classnames";
84
84
  import { useScreenSize as T } from "./hooks.js";
85
85
  import { Text3 as y, Text8 as D } from "./text.js";
86
86
  import O from "./grid-layout.js";
87
- import s from "./box.js";
87
+ import d from "./box.js";
88
88
  import x from "./stack.js";
89
89
  import j from "./button-group.js";
90
- import { vars as t } from "./skins/skin-contract.css-mistica.js";
91
- import { container as u, containerMobile as G, containerDesktop as b, layout as L, actions as $, vars as B } from "./hero.css-mistica.js";
90
+ import { vars as a } from "./skins/skin-contract.css-mistica.js";
91
+ import { container as g, containerMobile as G, containerDesktop as b, layout as L, actions as $, vars as B } from "./hero.css-mistica.js";
92
92
  import { vars as N } from "./image.css-mistica.js";
93
93
  import { useIsInsideSlideshowContext as A } from "./carousel.js";
94
94
  import { getPrefixedDataAttributes as S } from "./utils/dom.js";
95
95
  import { sprinkles as k } from "./sprinkles.css-mistica.js";
96
96
  import { ThemeVariant as V } from "./theme-variant-context.js";
97
- import { applyCssVars as p } from "./utils/css.js";
97
+ import { applyCssVars as f } from "./utils/css.js";
98
98
  const C = (param)=>{
99
99
  let { children: e, isInverse: o } = param;
100
100
  return /* @__PURE__ */ r(V, {
@@ -104,9 +104,9 @@ const C = (param)=>{
104
104
  children: e
105
105
  })
106
106
  });
107
- }, g = (param)=>{
108
- let { headline: e, title: o, pretitle: a, description: n, descriptionLinesMax: d, extra: i, button: l, secondaryButton: f, buttonLink: m } = param;
109
- return /* @__PURE__ */ c("section", {
107
+ }, v = (param)=>{
108
+ let { headline: e, title: o, titleAs: i = "h1", pretitle: t, description: n, descriptionLinesMax: l, extra: s, button: p, secondaryButton: h, buttonLink: c } = param;
109
+ return /* @__PURE__ */ m("section", {
110
110
  className: k({
111
111
  height: "100%",
112
112
  display: "flex",
@@ -114,22 +114,22 @@ const C = (param)=>{
114
114
  flexDirection: "column"
115
115
  }),
116
116
  children: [
117
- /* @__PURE__ */ c("div", {
117
+ /* @__PURE__ */ m("div", {
118
118
  children: [
119
- /* @__PURE__ */ c(x, {
119
+ /* @__PURE__ */ m(x, {
120
120
  space: 16,
121
121
  children: [
122
122
  e && e,
123
- /* @__PURE__ */ c(x, {
123
+ /* @__PURE__ */ m(x, {
124
124
  space: 8,
125
125
  children: [
126
- a && /* @__PURE__ */ r(y, {
126
+ t && /* @__PURE__ */ r(y, {
127
127
  as: "p",
128
128
  regular: !0,
129
- children: a
129
+ children: t
130
130
  }),
131
131
  o && /* @__PURE__ */ r(D, {
132
- as: "h1",
132
+ as: i,
133
133
  children: o
134
134
  })
135
135
  ]
@@ -137,90 +137,90 @@ const C = (param)=>{
137
137
  n && /* @__PURE__ */ r(y, {
138
138
  as: "p",
139
139
  regular: !0,
140
- color: t.colors.textSecondary,
141
- truncate: d,
140
+ color: a.colors.textSecondary,
141
+ truncate: l,
142
142
  children: n
143
143
  })
144
144
  ]
145
145
  }),
146
- i && /* @__PURE__ */ r("div", {
147
- children: i
146
+ s && /* @__PURE__ */ r("div", {
147
+ children: s
148
148
  })
149
149
  ]
150
150
  }),
151
- (l || m) && /* @__PURE__ */ r("div", {
151
+ (p || c) && /* @__PURE__ */ r("div", {
152
152
  className: $,
153
153
  children: /* @__PURE__ */ r(j, {
154
- primaryButton: l,
155
- secondaryButton: f,
156
- link: m
154
+ primaryButton: p,
155
+ secondaryButton: h,
156
+ link: c
157
157
  })
158
158
  })
159
159
  ]
160
160
  });
161
161
  }, R = {
162
- default: t.colors.background,
163
- alternative: t.colors.backgroundAlternative,
164
- brand: t.colors.backgroundBrand,
165
- "brand-secondary": t.colors.backgroundBrandSecondary
166
- }, Y = /*#__PURE__*/ I.forwardRef((_param, l)=>{
167
- var { height: e, background: o = "default", media: a, desktopMediaPosition: n = "left", dataAttributes: d } = _param, i = _object_without_properties(_param, [
162
+ default: a.colors.background,
163
+ alternative: a.colors.backgroundAlternative,
164
+ brand: a.colors.backgroundBrand,
165
+ "brand-secondary": a.colors.backgroundBrandSecondary
166
+ }, Y = /*#__PURE__*/ I.forwardRef((_param, s)=>{
167
+ var { height: e, background: o = "default", media: i, desktopMediaPosition: t = "left", dataAttributes: n } = _param, l = _object_without_properties(_param, [
168
168
  "height",
169
169
  "background",
170
170
  "media",
171
171
  "desktopMediaPosition",
172
172
  "dataAttributes"
173
173
  ]);
174
- const { isTabletOrSmaller: f } = T(), m = A(), v = o === "brand" || o === "brand-secondary";
175
- if (f) return /* @__PURE__ */ r("div", {
176
- style: p({
174
+ const { isTabletOrSmaller: p } = T(), h = A(), c = o === "brand" || o === "brand-secondary";
175
+ if (p) return /* @__PURE__ */ r("div", {
176
+ style: f({
177
177
  [N.mediaBorderRadius]: "0px"
178
178
  }),
179
- children: /* @__PURE__ */ c("div", _object_spread_props(_object_spread({}, S(_object_spread({
179
+ children: /* @__PURE__ */ m("div", _object_spread_props(_object_spread({}, S(_object_spread({
180
180
  "component-name": "Hero"
181
- }, d))), {
182
- ref: l,
181
+ }, n))), {
182
+ ref: s,
183
183
  style: _object_spread({
184
184
  backgroundColor: R[o]
185
185
  }, e === "100vh" ? {
186
186
  maxHeight: "-webkit-fill-available"
187
- } : {}, p({
187
+ } : {}, f({
188
188
  [B.height]: e !== null && e !== void 0 ? e : "100%"
189
189
  })),
190
- className: h(u, G),
190
+ className: u(g, G),
191
191
  children: [
192
- a,
192
+ i,
193
193
  /* @__PURE__ */ r(C, {
194
- isInverse: v,
195
- children: /* @__PURE__ */ r(s, {
194
+ isInverse: c,
195
+ children: /* @__PURE__ */ r(d, {
196
196
  paddingTop: 24,
197
- paddingBottom: m ? 48 : 24,
198
- children: /* @__PURE__ */ r(g, _object_spread({}, i))
197
+ paddingBottom: h ? 48 : 24,
198
+ children: /* @__PURE__ */ r(v, _object_spread({}, l))
199
199
  })
200
200
  })
201
201
  ]
202
202
  }))
203
203
  });
204
- const H = n === "left" ? a : /* @__PURE__ */ r(s, {
204
+ const H = t === "left" ? i : /* @__PURE__ */ r(d, {
205
205
  paddingRight: 24,
206
- children: /* @__PURE__ */ r(g, _object_spread({}, i))
207
- }), w = n === "right" ? a : /* @__PURE__ */ r(s, {
206
+ children: /* @__PURE__ */ r(v, _object_spread({}, l))
207
+ }), w = t === "right" ? i : /* @__PURE__ */ r(d, {
208
208
  paddingLeft: 24,
209
- children: /* @__PURE__ */ r(g, _object_spread({}, i))
209
+ children: /* @__PURE__ */ r(v, _object_spread({}, l))
210
210
  });
211
211
  return /* @__PURE__ */ r("div", {
212
- style: p({
213
- [N.mediaBorderRadius]: t.borderRadii.container
212
+ style: f({
213
+ [N.mediaBorderRadius]: a.borderRadii.container
214
214
  }),
215
215
  children: /* @__PURE__ */ r("div", _object_spread_props(_object_spread({}, S(_object_spread({
216
216
  "component-name": "Hero"
217
- }, d))), {
218
- ref: l,
217
+ }, n))), {
218
+ ref: s,
219
219
  style: _object_spread({
220
220
  backgroundColor: R[o]
221
221
  }, e === "100vh" ? {
222
222
  maxHeight: "-webkit-fill-available"
223
- } : {}, p({
223
+ } : {}, f({
224
224
  [B.height]: e !== null && e !== void 0 ? e : "100%"
225
225
  })),
226
226
  className: k({
@@ -229,17 +229,17 @@ const C = (param)=>{
229
229
  alignItems: "center"
230
230
  }),
231
231
  children: /* @__PURE__ */ r(C, {
232
- isInverse: v,
232
+ isInverse: c,
233
233
  children: /* @__PURE__ */ r(O, {
234
234
  template: "6+6",
235
- left: /* @__PURE__ */ r(s, {
235
+ left: /* @__PURE__ */ r(d, {
236
236
  paddingY: 56,
237
- className: h(u, b),
237
+ className: u(g, b),
238
238
  children: H
239
239
  }),
240
- right: /* @__PURE__ */ r(s, {
240
+ right: /* @__PURE__ */ r(d, {
241
241
  paddingY: 56,
242
- className: h(u, b),
242
+ className: u(g, b),
243
243
  children: w
244
244
  })
245
245
  })
@@ -1,7 +1,7 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./highlighted-card.css.ts.vanilla.css-mistica.js";
3
- var y = "wrb8722 _1y2v1nfh8 _1y2v1nfhd _1y2v1nfhk _1y2v1nfhq", f = "wrb8725 _1y2v1nfh8", _ = {
4
- withImage: "wrb8728 wrb8727 _1y2v1nfh8 _1y2v1nfhe _1y2v1nfhm _1y2v1nf7m _1y2v1nf8v _1y2v1nf9y",
5
- withoutImage: "wrb8729 wrb8727 _1y2v1nfh8 _1y2v1nfhe _1y2v1nfhm _1y2v1nf7m _1y2v1nf8v _1y2v1nf9y"
6
- }, h = "_1y2v1nf71 _1y2v1nf8a _1y2v1nf9j _1y2v1nfas _1y2v1nfh8 _1y2v1nfhq _1y2v1nfjq _1y2v1nfhv _1y2v1nf70";
7
- export { y as container, f as imageContent, _ as textContainerVariant, h as touchableContainer };
3
+ var f = "wrb8722 _1y2v1nfha _1y2v1nfhf _1y2v1nfhm _1y2v1nfhs", y = "wrb8725 _1y2v1nfha", _ = {
4
+ withImage: "wrb8728 wrb8727 _1y2v1nfha _1y2v1nfhg _1y2v1nfho _1y2v1nf7o _1y2v1nf8x _1y2v1nfa0",
5
+ withoutImage: "wrb8729 wrb8727 _1y2v1nfha _1y2v1nfhg _1y2v1nfho _1y2v1nf7o _1y2v1nf8x _1y2v1nfa0"
6
+ }, a = "_1y2v1nf73 _1y2v1nf8c _1y2v1nf9l _1y2v1nfau _1y2v1nfha _1y2v1nfhs _1y2v1nfjs _1y2v1nfhx _1y2v1nf72";
7
+ export { f as container, y as imageContent, _ as textContainerVariant, a as touchableContainer };
@@ -78,23 +78,23 @@ function _object_without_properties_loose(source, excluded) {
78
78
  }
79
79
  return target;
80
80
  }
81
- import { jsxs as l, jsx as i, Fragment as v } from "react/jsx-runtime";
81
+ import { jsxs as l, jsx as i, Fragment as w } from "react/jsx-runtime";
82
82
  import * as h from "react";
83
83
  import { useIsInverseVariant as g } from "./theme-variant-context.js";
84
- import w from "./stack.js";
84
+ import x from "./stack.js";
85
85
  import { BaseTouchable as c } from "./touchable.js";
86
- import { Text as x, Text2 as k } from "./text.js";
87
- import { Boxed as I } from "./boxed.js";
88
- import C, { useIsDismissable as H } from "./maybe-dismissable.js";
89
- import { container as P, textContainerVariant as T, imageContent as y, touchableContainer as m } from "./highlighted-card.css-mistica.js";
90
- import { vars as E } from "./skins/skin-contract.css-mistica.js";
91
- import { useTheme as N } from "./hooks.js";
92
- const O = /*#__PURE__*/ h.forwardRef((e, t)=>{
86
+ import { Text as k, Text2 as I } from "./text.js";
87
+ import { Boxed as C } from "./boxed.js";
88
+ import H, { useIsDismissable as P } from "./maybe-dismissable.js";
89
+ import { container as T, textContainerVariant as y, imageContent as E, touchableContainer as m } from "./highlighted-card.css-mistica.js";
90
+ import { vars as N } from "./skins/skin-contract.css-mistica.js";
91
+ import { useTheme as O } from "./hooks.js";
92
+ const S = /*#__PURE__*/ h.forwardRef((e, t)=>{
93
93
  var _e_isInverse;
94
- const { title: s, description: n, imageUrl: a, imageFit: r } = e, u = g(), f = (_e_isInverse = e.isInverse) !== null && _e_isInverse !== void 0 ? _e_isInverse : u, d = H(), { textPresets: b } = N(), o = /* @__PURE__ */ l(I, {
94
+ const { title: s, description: n, imageUrl: a, imageFit: r, titleAs: u = "h3" } = e, f = g(), b = (_e_isInverse = e.isInverse) !== null && _e_isInverse !== void 0 ? _e_isInverse : f, d = P(), { textPresets: v } = O(), o = /* @__PURE__ */ l(C, {
95
95
  ref: t,
96
- isInverse: f,
97
- className: P,
96
+ isInverse: b,
97
+ className: T,
98
98
  dataAttributes: _object_spread({
99
99
  "component-name": "HighlightedCard"
100
100
  }, e.dataAttributes),
@@ -103,26 +103,26 @@ const O = /*#__PURE__*/ h.forwardRef((e, t)=>{
103
103
  children: [
104
104
  /* @__PURE__ */ l("div", {
105
105
  role: d ? void 0 : "region",
106
- className: T[a ? "withImage" : "withoutImage"],
106
+ className: y[a ? "withImage" : "withoutImage"],
107
107
  "aria-label": d ? void 0 : e["aria-label"],
108
108
  children: [
109
- /* @__PURE__ */ l(w, {
109
+ /* @__PURE__ */ l(x, {
110
110
  space: 8,
111
111
  children: [
112
- !!s && /* @__PURE__ */ i(x, {
112
+ !!s && /* @__PURE__ */ i(k, {
113
113
  mobileSize: 18,
114
114
  mobileLineHeight: "24px",
115
115
  desktopSize: 20,
116
116
  desktopLineHeight: "28px",
117
117
  truncate: e.titleLinesMax,
118
- weight: b.cardTitle.weight,
119
- as: "h3",
118
+ weight: v.cardTitle.weight,
119
+ as: u,
120
120
  hyphens: "auto",
121
121
  children: s
122
122
  }),
123
- !!n && /* @__PURE__ */ i(k, {
123
+ !!n && /* @__PURE__ */ i(I, {
124
124
  regular: !0,
125
- color: E.colors.textSecondary,
125
+ color: N.colors.textSecondary,
126
126
  truncate: e.descriptionLinesMax,
127
127
  as: "p",
128
128
  hyphens: "auto",
@@ -130,7 +130,7 @@ const O = /*#__PURE__*/ h.forwardRef((e, t)=>{
130
130
  })
131
131
  ]
132
132
  }),
133
- e.button && /* @__PURE__ */ l(v, {
133
+ e.button && /* @__PURE__ */ l(w, {
134
134
  children: [
135
135
  /* @__PURE__ */ i("div", {
136
136
  style: {
@@ -144,7 +144,7 @@ const O = /*#__PURE__*/ h.forwardRef((e, t)=>{
144
144
  ]
145
145
  }),
146
146
  a && /* @__PURE__ */ i("div", {
147
- className: y,
147
+ className: E,
148
148
  style: {
149
149
  backgroundImage: `url(${a})`,
150
150
  backgroundRepeat: "no-repeat",
@@ -172,22 +172,22 @@ const O = /*#__PURE__*/ h.forwardRef((e, t)=>{
172
172
  className: m,
173
173
  children: o
174
174
  }) : o;
175
- }), S = /*#__PURE__*/ h.forwardRef((_param, s)=>{
175
+ }), L = /*#__PURE__*/ h.forwardRef((_param, s)=>{
176
176
  var { "aria-label": e } = _param, t = _object_without_properties(_param, [
177
177
  "aria-label"
178
178
  ]);
179
179
  var _t_isInverse;
180
180
  const n = e || t.title || t.description, a = g(), r = (_t_isInverse = t.isInverse) !== null && _t_isInverse !== void 0 ? _t_isInverse : a;
181
- return /* @__PURE__ */ i(C, {
181
+ return /* @__PURE__ */ i(H, {
182
182
  onClose: t.onClose,
183
183
  "aria-label": n,
184
184
  width: t.width,
185
185
  isOverMedia: !!t.imageUrl,
186
186
  isInverse: r,
187
- children: /* @__PURE__ */ i(O, _object_spread_props(_object_spread({}, t), {
187
+ children: /* @__PURE__ */ i(S, _object_spread_props(_object_spread({}, t), {
188
188
  "aria-label": n,
189
189
  ref: s
190
190
  }))
191
191
  });
192
- }), F = S;
193
- export { F as default };
192
+ }), U = L;
193
+ export { U as default };
@@ -1,5 +1,5 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./responsive-layout.css.ts.vanilla.css-mistica.js";
3
3
  import "./horizontal-scroll.css.ts.vanilla.css-mistica.js";
4
- var m = "_1gl3gmv2", v = "_1gl3gmv1 _1y2v1nfh8";
4
+ var m = "_1gl3gmv2", v = "_1gl3gmv1 _1y2v1nfha";
5
5
  export { m as noScrollbar, v as scroll };