@telefonica/mistica 15.9.0 → 15.11.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 (114) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/boxed.css-mistica.js +35 -2
  3. package/dist/boxed.css.d.ts +29 -0
  4. package/dist/boxed.d.ts +6 -4
  5. package/dist/boxed.js +30 -24
  6. package/dist/button-group.css-mistica.js +14 -5
  7. package/dist/button-group.css.d.ts +3 -0
  8. package/dist/button-group.d.ts +2 -1
  9. package/dist/button-group.js +29 -16
  10. package/dist/button-layout.css-mistica.js +7 -7
  11. package/dist/button-layout.css.d.ts +1 -1
  12. package/dist/button-layout.js +9 -9
  13. package/dist/button.d.ts +4 -24
  14. package/dist/button.js +6 -4
  15. package/dist/card.d.ts +8 -1
  16. package/dist/card.js +567 -501
  17. package/dist/carousel.css-mistica.js +19 -16
  18. package/dist/carousel.css.d.ts +1 -0
  19. package/dist/carousel.js +41 -39
  20. package/dist/chip.js +37 -44
  21. package/dist/circle.d.ts +11 -4
  22. package/dist/circle.js +10 -11
  23. package/dist/community/advanced-data-card.css-mistica.js +24 -21
  24. package/dist/community/advanced-data-card.css.d.ts +1 -0
  25. package/dist/community/advanced-data-card.d.ts +1 -0
  26. package/dist/community/advanced-data-card.js +20 -17
  27. package/dist/counter.js +26 -22
  28. package/dist/cover-hero-media.d.ts +12 -0
  29. package/dist/cover-hero-media.js +44 -0
  30. package/dist/cover-hero.css-mistica.js +56 -0
  31. package/dist/cover-hero.css.d.ts +14 -0
  32. package/dist/cover-hero.css.ts.vanilla.css-mistica.js +11 -0
  33. package/dist/cover-hero.d.ts +38 -0
  34. package/dist/cover-hero.js +296 -0
  35. package/dist/empty-state.js +6 -6
  36. package/dist/grid-layout.css-mistica.js +11 -8
  37. package/dist/grid-layout.css.d.ts +1 -0
  38. package/dist/grid-layout.d.ts +12 -22
  39. package/dist/grid-layout.js +63 -49
  40. package/dist/header.js +18 -18
  41. package/dist/highlighted-card.d.ts +1 -0
  42. package/dist/highlighted-card.js +22 -18
  43. package/dist/icon-button.d.ts +7 -6
  44. package/dist/image.js +69 -48
  45. package/dist/index.d.ts +4 -1
  46. package/dist/index.js +15 -0
  47. package/dist/list.d.ts +1 -0
  48. package/dist/navigation-bar.d.ts +1 -1
  49. package/dist/navigation-bar.js +1 -1
  50. package/dist/package-version.js +1 -1
  51. package/dist/select.js +16 -12
  52. package/dist/skins/movistar.d.ts +13 -0
  53. package/dist/skins/movistar.js +112 -99
  54. package/dist/spinner.js +19 -18
  55. package/dist/table.css-mistica.js +58 -0
  56. package/dist/table.css.d.ts +13 -0
  57. package/dist/table.css.ts.vanilla.css-mistica.js +11 -0
  58. package/dist/table.d.ts +39 -0
  59. package/dist/table.js +269 -0
  60. package/dist/text.d.ts +1 -1
  61. package/dist/theme.d.ts +20 -0
  62. package/dist/theme.js +80 -20
  63. package/dist/timer.css-mistica.js +39 -0
  64. package/dist/timer.css.d.ts +8 -0
  65. package/dist/timer.css.ts.vanilla.css-mistica.js +11 -0
  66. package/dist/timer.d.ts +27 -0
  67. package/dist/timer.js +370 -0
  68. package/dist/tooltip.js +13 -13
  69. package/dist/touchable.d.ts +2 -0
  70. package/dist/touchable.js +35 -31
  71. package/dist/utils/helpers.js +32 -32
  72. package/dist-es/boxed.css-mistica.js +29 -2
  73. package/dist-es/boxed.js +37 -31
  74. package/dist-es/button-group.css-mistica.js +2 -2
  75. package/dist-es/button-group.js +37 -24
  76. package/dist-es/button-layout.css-mistica.js +2 -2
  77. package/dist-es/button-layout.js +16 -16
  78. package/dist-es/button.js +24 -22
  79. package/dist-es/card.js +681 -618
  80. package/dist-es/carousel.css-mistica.js +7 -7
  81. package/dist-es/carousel.js +75 -73
  82. package/dist-es/chip.js +57 -64
  83. package/dist-es/circle.js +15 -16
  84. package/dist-es/community/advanced-data-card.css-mistica.js +4 -4
  85. package/dist-es/community/advanced-data-card.js +59 -56
  86. package/dist-es/counter.js +62 -58
  87. package/dist-es/cover-hero-media.js +30 -0
  88. package/dist-es/cover-hero.css-mistica.js +9 -0
  89. package/dist-es/cover-hero.css.ts.vanilla.css-mistica.js +2 -0
  90. package/dist-es/cover-hero.js +241 -0
  91. package/dist-es/empty-state.js +13 -13
  92. package/dist-es/grid-layout.css-mistica.js +3 -3
  93. package/dist-es/grid-layout.js +80 -66
  94. package/dist-es/header.js +37 -37
  95. package/dist-es/highlighted-card.js +35 -31
  96. package/dist-es/image.js +88 -67
  97. package/dist-es/index.js +1817 -1814
  98. package/dist-es/navigation-bar.js +1 -1
  99. package/dist-es/package-version.js +1 -1
  100. package/dist-es/select.js +23 -18
  101. package/dist-es/skins/movistar.js +112 -99
  102. package/dist-es/spinner.js +38 -37
  103. package/dist-es/style.css +1 -1
  104. package/dist-es/table.css-mistica.js +14 -0
  105. package/dist-es/table.css.ts.vanilla.css-mistica.js +2 -0
  106. package/dist-es/table.js +214 -0
  107. package/dist-es/theme.js +77 -17
  108. package/dist-es/timer.css-mistica.js +4 -0
  109. package/dist-es/timer.css.ts.vanilla.css-mistica.js +2 -0
  110. package/dist-es/timer.js +307 -0
  111. package/dist-es/tooltip.js +16 -16
  112. package/dist-es/touchable.js +47 -43
  113. package/dist-es/utils/helpers.js +31 -31
  114. package/package.json +1 -1
@@ -78,23 +78,23 @@ function _object_without_properties_loose(source, excluded) {
78
78
  }
79
79
  return target;
80
80
  }
81
- import { jsx as e, jsxs as t, Fragment as k } from "react/jsx-runtime";
81
+ import { jsx as e, jsxs as t, Fragment as j } from "react/jsx-runtime";
82
82
  import * as X from "react";
83
83
  import { Boxed as Y } from "../boxed.js";
84
84
  import { sprinkles as b } from "../sprinkles.css-mistica.js";
85
- import z from "../stack.js";
86
- import { dataCard as $, touchableContainer as q, touchableCardOverlay as J, cardContentStyle as K, minHeight as Q, topActionsWithoutIcon as U, zindex as Z, paddingX as _, touchableArea as ee, divider as re, actions as te, actionsVariants as ae, marginRightButton as ie, buttonMobile as j, footerDirection as oe, marginRightAuto as se, footerText as ne, adjustButtonLink as de, button as ce, vars as le } from "./advanced-data-card.css-mistica.js";
87
- import { vars as me } from "../image.css-mistica.js";
88
- import H from "../divider.js";
89
- import { Text2 as v, Text as he } from "../text.js";
90
- import { vars as y } from "../skins/skin-contract.css-mistica.js";
91
- import N from "../box.js";
92
- import pe from "../touchable.js";
85
+ import k from "../stack.js";
86
+ import { dataCard as _, MIN_HEIGHT as $, touchableContainer as q, touchableCardOverlay as J, cardContentStyle as K, minHeight as Q, topActionsWithoutIcon as U, zindex as Z, paddingX as ee, touchableArea as re, divider as te, actions as ae, actionsVariants as ie, marginRightButton as oe, buttonMobile as F, footerDirection as se, marginRightAuto as ne, footerText as de, adjustButtonLink as ce, button as le, vars as me } from "./advanced-data-card.css-mistica.js";
87
+ import { vars as he } from "../image.css-mistica.js";
88
+ import z from "../divider.js";
89
+ import { Text2 as v, Text as pe } from "../text.js";
90
+ import { vars as N } from "../skins/skin-contract.css-mistica.js";
91
+ import y from "../box.js";
92
+ import ue from "../touchable.js";
93
93
  import h from "classnames";
94
- import { CardActionsGroup as ue } from "../card.js";
95
- import { useTheme as ge } from "../hooks.js";
96
- import { getPrefixedDataAttributes as fe } from "../utils/dom.js";
97
- import ve from "../inline.js";
94
+ import { CardActionsGroup as ge } from "../card.js";
95
+ import { useTheme as fe } from "../hooks.js";
96
+ import { getPrefixedDataAttributes as ve } from "../utils/dom.js";
97
+ import Ne from "../inline.js";
98
98
  import { applyCssVars as P } from "../utils/css.js";
99
99
  const ye = (_param)=>{
100
100
  var { headline: a, pretitle: i, pretitleAs: n = "p", pretitleLinesMax: p, title: d, titleAs: c = "h3", titleLinesMax: l, subtitle: m, subtitleLinesMax: o, description: r, descriptionLinesMax: u, ariaLabel: x } = _param, s = _object_without_properties(_param, [
@@ -111,28 +111,28 @@ const ye = (_param)=>{
111
111
  "descriptionLinesMax",
112
112
  "ariaLabel"
113
113
  ]);
114
- const { textPresets: C } = ge();
115
- return /* @__PURE__ */ t(z, {
114
+ const { textPresets: C } = fe();
115
+ return /* @__PURE__ */ t(k, {
116
116
  space: 4,
117
117
  children: [
118
118
  a,
119
- /* @__PURE__ */ e(pe, _object_spread_props(_object_spread({
119
+ /* @__PURE__ */ e(ue, _object_spread_props(_object_spread({
120
120
  tabIndex: 0,
121
121
  maybe: !0,
122
- className: h(ee)
122
+ className: h(re)
123
123
  }, s), {
124
124
  "aria-label": x,
125
- children: /* @__PURE__ */ e(k, {})
125
+ children: /* @__PURE__ */ e(j, {})
126
126
  })),
127
127
  i && /* @__PURE__ */ e(v, {
128
- color: y.colors.textPrimary,
128
+ color: N.colors.textPrimary,
129
129
  truncate: p,
130
130
  as: n,
131
131
  regular: !0,
132
132
  hyphens: "auto",
133
133
  children: i
134
134
  }),
135
- /* @__PURE__ */ e(he, {
135
+ /* @__PURE__ */ e(pe, {
136
136
  mobileSize: 18,
137
137
  mobileLineHeight: "24px",
138
138
  desktopSize: 20,
@@ -144,7 +144,7 @@ const ye = (_param)=>{
144
144
  children: d
145
145
  }),
146
146
  /* @__PURE__ */ e(v, {
147
- color: y.colors.textPrimary,
147
+ color: N.colors.textPrimary,
148
148
  truncate: o,
149
149
  as: "p",
150
150
  regular: !0,
@@ -155,34 +155,34 @@ const ye = (_param)=>{
155
155
  truncate: u,
156
156
  as: "p",
157
157
  regular: !0,
158
- color: y.colors.textSecondary,
158
+ color: N.colors.textSecondary,
159
159
  hyphens: "auto",
160
160
  children: r
161
161
  })
162
162
  ]
163
163
  });
164
- }, Ne = (param)=>{
164
+ }, xe = (param)=>{
165
165
  let { button: a, footerImage: i, footerText: n, footerTextLinesMax: p, buttonLink: d } = param;
166
166
  const c = !!a, l = !!i, m = !!n, o = !!d, r = c && (l || m) && o, u = o && !r ? "178px" : "";
167
- return /* @__PURE__ */ t(k, {
167
+ return /* @__PURE__ */ t(j, {
168
168
  children: [
169
169
  /* @__PURE__ */ e("div", {
170
- className: re,
171
- children: /* @__PURE__ */ e(H, {})
170
+ className: te,
171
+ children: /* @__PURE__ */ e(z, {})
172
172
  }),
173
173
  /* @__PURE__ */ t("div", {
174
- className: h(te, ae[r ? "mobile" : "default"]),
174
+ className: h(ae, ie[r ? "mobile" : "default"]),
175
175
  children: [
176
176
  c && /* @__PURE__ */ e("div", {
177
- className: h(ie, j),
177
+ className: h(oe, F),
178
178
  children: a
179
179
  }),
180
180
  /* @__PURE__ */ t("div", {
181
- className: h(oe, r ? se : b({
181
+ className: h(se, r ? ne : b({
182
182
  paddingTop: 16
183
183
  })),
184
184
  children: [
185
- l && /* @__PURE__ */ e(N, {
185
+ l && /* @__PURE__ */ e(y, {
186
186
  paddingRight: 16,
187
187
  className: b({
188
188
  alignItems: "center",
@@ -190,7 +190,7 @@ const ye = (_param)=>{
190
190
  }),
191
191
  children: /* @__PURE__ */ e("div", {
192
192
  style: P({
193
- [me.mediaBorderRadius]: y.borderRadii.mediaSmall
193
+ [he.mediaBorderRadius]: N.borderRadii.mediaSmall
194
194
  }),
195
195
  children: i
196
196
  })
@@ -199,7 +199,7 @@ const ye = (_param)=>{
199
199
  style: {
200
200
  maxWidth: u
201
201
  },
202
- className: ne,
202
+ className: de,
203
203
  children: /* @__PURE__ */ e(v, {
204
204
  truncate: p,
205
205
  regular: !0,
@@ -209,15 +209,15 @@ const ye = (_param)=>{
209
209
  ]
210
210
  }),
211
211
  o && /* @__PURE__ */ e("div", {
212
- className: h(de, r ? ce : j),
212
+ className: h(ce, r ? le : F),
213
213
  children: d
214
214
  })
215
215
  ]
216
216
  })
217
217
  ]
218
218
  });
219
- }, xe = /*#__PURE__*/ X.forwardRef((_param, E)=>{
220
- var { stackingGroup: a, headline: i, pretitle: n, pretitleAs: p, pretitleLinesMax: d, title: c, titleAs: l, titleLinesMax: m, subtitle: o, subtitleLinesMax: r, description: u, descriptionLinesMax: x, extra: s, extraDividerPadding: C = 24, button: A, footerImage: T, footerText: B, footerTextLinesMax: V, buttonLink: R, dataAttributes: W, actions: g, "aria-label": S, onClose: D } = _param, f = _object_without_properties(_param, [
219
+ }, Ce = /*#__PURE__*/ X.forwardRef((_param, M)=>{
220
+ var { stackingGroup: a, headline: i, pretitle: n, pretitleAs: p, pretitleLinesMax: d, title: c, titleAs: l, titleLinesMax: m, subtitle: o, subtitleLinesMax: r, description: u, descriptionLinesMax: x, extra: s, extraDividerPadding: C = 24, button: A, footerImage: T, footerText: B, footerTextLinesMax: E, buttonLink: R, dataAttributes: G, actions: g, "aria-label": S, onClose: w } = _param, f = _object_without_properties(_param, [
221
221
  "stackingGroup",
222
222
  "headline",
223
223
  "pretitle",
@@ -242,38 +242,41 @@ const ye = (_param)=>{
242
242
  "aria-label",
243
243
  "onClose"
244
244
  ]);
245
- const G = !!f.href || !!f.onPress || !!f.to, L = {
245
+ const V = !!f.href || !!f.onPress || !!f.to, W = {
246
246
  button: A,
247
247
  footerImage: T,
248
248
  footerText: B,
249
- footerTextLinesMax: V,
249
+ footerTextLinesMax: E,
250
250
  buttonLink: R
251
- }, w = !!A || !!T || !!B || !!R, F = !!(s != null && s.length), M = ((g == null ? void 0 : g.length) || 0) + (D ? 1 : 0);
251
+ }, D = !!A || !!T || !!B || !!R, H = !!(s != null && s.length), L = ((g == null ? void 0 : g.length) || 0) + (w ? 1 : 0);
252
252
  return /* @__PURE__ */ e("section", _object_spread_props(_object_spread({
253
253
  className: b({
254
254
  position: "relative",
255
255
  height: "100%"
256
256
  })
257
- }, fe(W, "AdvancedDataCard")), {
258
- ref: E,
257
+ }, ve(G, "AdvancedDataCard")), {
258
+ ref: M,
259
259
  "aria-label": S,
260
260
  children: /* @__PURE__ */ t(Y, {
261
- className: $,
261
+ className: _,
262
+ width: "100%",
263
+ height: "100%",
264
+ minHeight: $,
262
265
  children: [
263
266
  /* @__PURE__ */ t("div", {
264
267
  className: q,
265
268
  children: [
266
- G && /* @__PURE__ */ e("div", {
269
+ V && /* @__PURE__ */ e("div", {
267
270
  className: J
268
271
  }),
269
272
  /* @__PURE__ */ e("div", {
270
- className: h(K, !w && !F ? Q : ""),
271
- children: /* @__PURE__ */ e(N, {
273
+ className: h(K, !D && !H ? Q : ""),
274
+ children: /* @__PURE__ */ e(y, {
272
275
  paddingTop: 8,
273
- children: /* @__PURE__ */ t(ve, {
276
+ children: /* @__PURE__ */ t(Ne, {
274
277
  space: 0,
275
278
  children: [
276
- /* @__PURE__ */ t(z, {
279
+ /* @__PURE__ */ t(k, {
277
280
  space: 8,
278
281
  children: [
279
282
  a,
@@ -295,7 +298,7 @@ const ye = (_param)=>{
295
298
  }),
296
299
  !a && /* @__PURE__ */ e("div", {
297
300
  style: P({
298
- [le.topActionsCount]: String(M)
301
+ [me.topActionsCount]: String(L)
299
302
  }),
300
303
  className: U
301
304
  })
@@ -308,7 +311,7 @@ const ye = (_param)=>{
308
311
  flexGrow: 1
309
312
  }
310
313
  }),
311
- F && /* @__PURE__ */ e(N, {
314
+ H && /* @__PURE__ */ e(y, {
312
315
  paddingTop: 16,
313
316
  paddingBottom: 24,
314
317
  width: "100%",
@@ -316,26 +319,26 @@ const ye = (_param)=>{
316
319
  children: s.map((O, I)=>/* @__PURE__ */ t("div", {
317
320
  children: [
318
321
  /* @__PURE__ */ e("div", {
319
- className: _,
322
+ className: ee,
320
323
  children: O
321
324
  }),
322
- I + 1 !== s.length && /* @__PURE__ */ e(N, {
325
+ I + 1 !== s.length && /* @__PURE__ */ e(y, {
323
326
  paddingY: C,
324
- children: /* @__PURE__ */ e(H, {})
327
+ children: /* @__PURE__ */ e(z, {})
325
328
  })
326
329
  ]
327
330
  }, I))
328
331
  }),
329
- /* @__PURE__ */ e(ue, {
332
+ /* @__PURE__ */ e(ge, {
330
333
  actions: g,
331
- onClose: D,
334
+ onClose: w,
332
335
  padding: 15
333
336
  })
334
337
  ]
335
338
  }),
336
- w && /* @__PURE__ */ e(Ne, _object_spread({}, L))
339
+ D && /* @__PURE__ */ e(xe, _object_spread({}, W))
337
340
  ]
338
341
  })
339
342
  }));
340
- }), We = xe;
341
- export { xe as AdvancedDataCard, We as default };
343
+ }), Me = Ce;
344
+ export { Ce as AdvancedDataCard, Me as default };
@@ -52,81 +52,82 @@ function _object_spread_props(target, source) {
52
52
  return target;
53
53
  }
54
54
  import { jsx as r, jsxs as I } from "react/jsx-runtime";
55
- import * as V from "react";
56
- import { getPrefixedDataAttributes as L } from "./utils/dom.js";
57
- import { counter as R, disabled as g, buttonContainer as B, hasTrashIcon as j, isButtonDisabled as M, button as y, buttonBackground as S, decreaseButtonIcon as E, trashButtonIcon as O, valueContainer as Q, defaultButtonIcon as Z } from "./counter.css-mistica.js";
58
- import { useThemeVariant as _, ThemeVariant as q } from "./theme-variant-context.js";
55
+ import * as B from "react";
56
+ import { getPrefixedDataAttributes as R } from "./utils/dom.js";
57
+ import { counter as j, disabled as N, buttonContainer as M, hasTrashIcon as E, isButtonDisabled as y, button as S, buttonBackground as A, decreaseButtonIcon as O, trashButtonIcon as Q, valueContainer as Z, defaultButtonIcon as _ } from "./counter.css-mistica.js";
58
+ import { useThemeVariant as q, ThemeVariant as w } from "./theme-variant-context.js";
59
59
  import { vars as c } from "./skins/skin-contract.css-mistica.js";
60
- import w from "./inline.js";
61
- import { Text3 as F } from "./text.js";
60
+ import F from "./inline.js";
61
+ import { Text3 as G } from "./text.js";
62
62
  import { BaseTouchable as P } from "./touchable.js";
63
- import G from "./generated/mistica-icons/icon-subtract-regular.js";
64
- import H from "./generated/mistica-icons/icon-add-more-regular.js";
65
- import J from "./generated/mistica-icons/icon-trash-can-regular.js";
66
- import { useTheme as K } from "./hooks.js";
67
- import N from "classnames";
68
- import U from "./screen-reader-only.js";
69
- const x = 20, W = (param)=>{
63
+ import H from "./generated/mistica-icons/icon-subtract-regular.js";
64
+ import J from "./generated/mistica-icons/icon-add-more-regular.js";
65
+ import K from "./generated/mistica-icons/icon-trash-can-regular.js";
66
+ import { useAriaId as U, useTheme as W } from "./hooks.js";
67
+ import x from "classnames";
68
+ import X from "./screen-reader-only.js";
69
+ const C = 20, Y = (param)=>{
70
70
  let { value: h, defaultValue: b, min: m, max: s, onChangeValue: a } = param;
71
- const i = h !== void 0, f = V.useCallback((n)=>n === void 0 ? m : Math.max(m, Math.min(s, n)), [
71
+ const i = h !== void 0, p = B.useCallback((n)=>n === void 0 ? m : Math.max(m, Math.min(s, n)), [
72
72
  m,
73
73
  s
74
- ]), [e, p] = V.useState(f(b)), v = (n)=>{
75
- i || p(n), a == null || a(n);
74
+ ]), [e, v] = B.useState(p(b)), f = (n)=>{
75
+ i || v(n), a == null || a(n);
76
76
  };
77
77
  return [
78
- i ? f(h) : e,
79
- v
78
+ i ? p(h) : e,
79
+ f
80
80
  ];
81
- }, X = (param)=>{
82
- let { value: h, defaultValue: b, onChangeValue: m, onRemove: s, min: a, max: i, dataAttributes: f, disabled: e, removeLabel: p, increaseLabel: v, decreaseLabel: n, valueLabel: C } = param;
83
- const A = _(), { texts: u } = K(), l = a === void 0 ? 0 : a, d = Math.max(l, i === void 0 ? 999 : i), [t, T] = W({
81
+ }, rr = (param)=>{
82
+ let { value: h, defaultValue: b, onChangeValue: m, onRemove: s, min: a, max: i, dataAttributes: p, disabled: e, removeLabel: v, increaseLabel: f, decreaseLabel: n, valueLabel: T } = param;
83
+ const D = q(), g = U(), { texts: u } = W(), l = a === void 0 ? 0 : a, d = Math.max(l, i === void 0 ? 999 : i), [t, V] = Y({
84
84
  value: h,
85
85
  defaultValue: b,
86
86
  min: l,
87
87
  max: d,
88
88
  onChangeValue: m
89
- }), o = !!s && t === l, D = ()=>p === void 0 ? u.counterRemoveLabel : p, $ = ()=>v === void 0 ? u.counterIncreaseLabel : v, k = ()=>n === void 0 ? u.counterDecreaseLabel : n, z = ()=>`${t}, ${C === void 0 ? u.counterQuantity : C}${a !== void 0 ? `, ${u.counterMinValue} ${a}` : ""}${i !== void 0 ? `, ${u.counterMaxValue} ${i}` : ""}`;
89
+ }), o = !!s && t === l, $ = ()=>v === void 0 ? u.counterRemoveLabel : v, k = ()=>f === void 0 ? u.counterIncreaseLabel : f, z = ()=>n === void 0 ? u.counterDecreaseLabel : n, L = ()=>`${t}, ${T === void 0 ? u.counterQuantity : T}${a !== void 0 ? `, ${u.counterMinValue} ${a}` : ""}${i !== void 0 ? `, ${u.counterMaxValue} ${i}` : ""}`;
90
90
  return /* @__PURE__ */ r("div", _object_spread_props(_object_spread({
91
- className: N(R, {
92
- [g]: e
91
+ className: x(j, {
92
+ [N]: e
93
93
  })
94
- }, L(f, "Counter")), {
94
+ }, R(p, "Counter")), {
95
95
  style: {
96
- border: `1px solid ${A === "inverse" ? c.colors.backgroundContainer : c.colors.border}`
96
+ border: `1px solid ${D === "inverse" ? c.colors.backgroundContainer : c.colors.border}`
97
97
  },
98
- children: /* @__PURE__ */ I(w, {
98
+ children: /* @__PURE__ */ I(F, {
99
99
  space: 8,
100
100
  alignItems: "center",
101
101
  children: [
102
102
  /* @__PURE__ */ r("div", {
103
- className: N(B, {
104
- [j]: o,
105
- [M]: e || !o && t === l,
106
- [g]: !e && !o && t === l
103
+ className: x(M, {
104
+ [E]: o,
105
+ [y]: e || !o && t === l,
106
+ [N]: !e && !o && t === l
107
107
  }),
108
108
  children: /* @__PURE__ */ I(P, {
109
- className: y,
109
+ className: S,
110
110
  disabled: !o && t === l || e,
111
- onPress: ()=>o ? s == null ? void 0 : s() : T(t - 1),
112
- "aria-label": o ? D() : k(),
111
+ onPress: ()=>o ? s == null ? void 0 : s() : V(t - 1),
112
+ "aria-label": o ? $() : z(),
113
+ "aria-controls": g,
113
114
  children: [
114
115
  /* @__PURE__ */ r("div", {
115
- className: S
116
+ className: A
116
117
  }),
117
118
  /* @__PURE__ */ r("div", {
118
- className: E,
119
+ className: O,
119
120
  "aria-hidden": o,
120
- children: /* @__PURE__ */ r(G, {
121
- size: x,
121
+ children: /* @__PURE__ */ r(H, {
122
+ size: C,
122
123
  color: t === l && !o || e ? c.colors.control : c.colors.controlActivated
123
124
  })
124
125
  }),
125
126
  /* @__PURE__ */ r("div", {
126
- className: O,
127
+ className: Q,
127
128
  "aria-hidden": !o,
128
- children: /* @__PURE__ */ r(J, {
129
- size: x,
129
+ children: /* @__PURE__ */ r(K, {
130
+ size: C,
130
131
  color: c.colors.controlError
131
132
  })
132
133
  })
@@ -134,47 +135,50 @@ const x = 20, W = (param)=>{
134
135
  })
135
136
  }),
136
137
  /* @__PURE__ */ r("div", {
137
- className: Q,
138
+ className: Z,
138
139
  style: {
139
140
  width: `${Math.max(3, String(d).length) * 1.25}ch`
140
141
  },
141
- children: /* @__PURE__ */ I(q, {
142
+ id: g,
143
+ "aria-live": "polite",
144
+ children: /* @__PURE__ */ I(w, {
142
145
  variant: "default",
143
146
  children: [
144
147
  /* @__PURE__ */ r("div", {
145
148
  "aria-hidden": !0,
146
- children: /* @__PURE__ */ r(F, {
149
+ children: /* @__PURE__ */ r(G, {
147
150
  regular: !0,
148
151
  color: c.colors.textPrimary,
149
152
  children: t
150
153
  })
151
154
  }),
152
- /* @__PURE__ */ r(U, {
155
+ /* @__PURE__ */ r(X, {
153
156
  children: /* @__PURE__ */ r("span", {
154
- children: z()
157
+ children: L()
155
158
  })
156
159
  })
157
160
  ]
158
161
  })
159
162
  }),
160
163
  /* @__PURE__ */ r("div", {
161
- className: N(B, {
162
- [M]: e || t === d,
163
- [g]: !e && t === d
164
+ className: x(M, {
165
+ [y]: e || t === d,
166
+ [N]: !e && t === d
164
167
  }),
165
168
  children: /* @__PURE__ */ I(P, {
166
- className: y,
169
+ className: S,
167
170
  disabled: t === d || e,
168
- onPress: ()=>T(t + 1),
169
- "aria-label": $(),
171
+ onPress: ()=>V(t + 1),
172
+ "aria-label": k(),
173
+ "aria-controls": g,
170
174
  children: [
171
175
  /* @__PURE__ */ r("div", {
172
- className: S
176
+ className: A
173
177
  }),
174
178
  /* @__PURE__ */ r("div", {
175
- className: Z,
176
- children: /* @__PURE__ */ r(H, {
177
- size: x,
179
+ className: _,
180
+ children: /* @__PURE__ */ r(J, {
181
+ size: C,
178
182
  color: t === d || e ? c.colors.control : c.colors.controlActivated
179
183
  })
180
184
  })
@@ -184,5 +188,5 @@ const x = 20, W = (param)=>{
184
188
  ]
185
189
  })
186
190
  }));
187
- }, hr = X;
188
- export { hr as default };
191
+ }, vr = rr;
192
+ export { vr as default };
@@ -0,0 +1,30 @@
1
+ "use client";
2
+ import { jsxs as a, jsx as i } from "react/jsx-runtime";
3
+ import { useVideoWithControls as d, CardActionsGroup as c } from "./card.js";
4
+ import { mediaLayer as p, mediaOverlay as n } from "./cover-hero.css-mistica.js";
5
+ import v from "./image.js";
6
+ const y = (param)=>{
7
+ let { backgroundVideo: o, backgroundImage: e, poster: t, backgroundVideoRef: s } = param;
8
+ const { video: m, videoAction: r } = d(o, t, s);
9
+ return /* @__PURE__ */ a("div", {
10
+ className: p,
11
+ children: [
12
+ e && /* @__PURE__ */ i(v, {
13
+ width: "100%",
14
+ height: "100%",
15
+ src: e
16
+ }),
17
+ o && m,
18
+ /* @__PURE__ */ i("div", {
19
+ className: n
20
+ }),
21
+ r && /* @__PURE__ */ i(c, {
22
+ actions: [
23
+ r
24
+ ],
25
+ type: "media"
26
+ })
27
+ ]
28
+ });
29
+ };
30
+ export { y as CoverHeroMedia };
@@ -0,0 +1,9 @@
1
+ import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
+ import "./responsive-layout.css.ts.vanilla.css-mistica.js";
3
+ import "./grid-layout.css.ts.vanilla.css-mistica.js";
4
+ import "./carousel.css.ts.vanilla.css-mistica.js";
5
+ import "./cover-hero.css.ts.vanilla.css-mistica.js";
6
+ var n = "moeazi9 _1y2v1nfhz", o = "moeazi2 _1y2v1nfhe _1y2v1nfhk _1y2v1nfhq _1y2v1nfht _1y2v1nfi7 _1y2v1nfkr _1y2v1nfm0", f = "moeazi4 _1y2v1nfhe _1y2v1nfhk _1y2v1nfi7", y = "moeazi7", _ = "_1y2v1nfhe", m = "_1y2v1nfhf _1y2v1nfmf _1y2v1nfi7 _1y2v1nfio", t = "moeazic _1y2v1nfhf _1y2v1nfkr _1y2v1nfl6 _1y2v1nfi7 _1y2v1nfio", h = "moeazi6", z = "_1y2v1nfhe", p = "moeazie", s = {
7
+ aspectRatio: "var(--moeazi0)"
8
+ }, c = "moeazi5";
9
+ export { n as centered, o as coverHero, f as coverHeroContainer, y as hasSideExtra, _ as mainContent, m as mediaLayer, t as mediaOverlay, h as minHeight, z as sideExtra, p as sixColumns, s as vars, c as withAspectRatio };
@@ -0,0 +1,2 @@
1
+ const s = "";
2
+ export { s as default };