@telefonica/mistica 14.37.0 → 14.39.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 (66) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/carousel.js +46 -43
  3. package/dist/chip.js +51 -34
  4. package/dist/empty-state-card.js +24 -18
  5. package/dist/image.css-mistica.js +7 -4
  6. package/dist/image.css.d.ts +1 -0
  7. package/dist/image.js +69 -58
  8. package/dist/index.d.ts +1 -0
  9. package/dist/index.js +7 -0
  10. package/dist/inline.css-mistica.js +14 -12
  11. package/dist/inline.css.d.ts +5 -1
  12. package/dist/inline.d.ts +4 -2
  13. package/dist/inline.js +31 -16
  14. package/dist/loading-bar.css-mistica.js +6 -18
  15. package/dist/loading-bar.css.d.ts +1 -4
  16. package/dist/loading-bar.js +22 -27
  17. package/dist/loading-screen.css-mistica.js +51 -0
  18. package/dist/loading-screen.css.d.ts +11 -0
  19. package/dist/loading-screen.css.ts.vanilla.css-mistica.js +11 -0
  20. package/dist/loading-screen.d.ts +28 -0
  21. package/dist/loading-screen.js +398 -0
  22. package/dist/logo.css-mistica.js +21 -5
  23. package/dist/logo.css.d.ts +7 -0
  24. package/dist/logo.d.ts +2 -2
  25. package/dist/logo.js +86 -61
  26. package/dist/navigation-bar.css-mistica.js +43 -37
  27. package/dist/navigation-bar.css.d.ts +3 -1
  28. package/dist/navigation-bar.js +165 -209
  29. package/dist/package-version.js +1 -1
  30. package/dist/tabs.css.d.ts +1 -1
  31. package/dist/vivinho-loading-animation/in-lottie.json.js +1479 -0
  32. package/dist/vivinho-loading-animation/index.d.ts +8 -0
  33. package/dist/vivinho-loading-animation/index.js +119 -0
  34. package/dist/vivinho-loading-animation/out-lottie.json.js +2143 -0
  35. package/dist/vivinho-loading-animation/pulse-lottie.json.js +2017 -0
  36. package/dist/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +20 -0
  37. package/dist/vivinho-loading-animation/vivinho-loading-animation.css.d.ts +2 -0
  38. package/dist/vivinho-loading-animation/vivinho-loading-animation.css.ts.vanilla.css-mistica.js +11 -0
  39. package/dist/vivinho-loading-animation/wave-lottie.json.js +10207 -0
  40. package/dist-es/carousel.js +46 -43
  41. package/dist-es/chip.js +78 -61
  42. package/dist-es/empty-state-card.js +41 -35
  43. package/dist-es/image.css-mistica.js +2 -2
  44. package/dist-es/image.js +86 -76
  45. package/dist-es/index.js +1782 -1781
  46. package/dist-es/inline.css-mistica.js +7 -8
  47. package/dist-es/inline.js +39 -24
  48. package/dist-es/loading-bar.css-mistica.js +2 -2
  49. package/dist-es/loading-bar.js +22 -32
  50. package/dist-es/loading-screen.css-mistica.js +7 -0
  51. package/dist-es/loading-screen.css.ts.vanilla.css-mistica.js +2 -0
  52. package/dist-es/loading-screen.js +335 -0
  53. package/dist-es/logo.css-mistica.js +7 -2
  54. package/dist-es/logo.js +110 -85
  55. package/dist-es/navigation-bar.css-mistica.js +19 -19
  56. package/dist-es/navigation-bar.js +219 -263
  57. package/dist-es/package-version.js +1 -1
  58. package/dist-es/style.css +1 -1
  59. package/dist-es/vivinho-loading-animation/in-lottie.json.js +1426 -0
  60. package/dist-es/vivinho-loading-animation/index.js +64 -0
  61. package/dist-es/vivinho-loading-animation/out-lottie.json.js +2090 -0
  62. package/dist-es/vivinho-loading-animation/pulse-lottie.json.js +1964 -0
  63. package/dist-es/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +3 -0
  64. package/dist-es/vivinho-loading-animation/vivinho-loading-animation.css.ts.vanilla.css-mistica.js +2 -0
  65. package/dist-es/vivinho-loading-animation/wave-lottie.json.js +10154 -0
  66. package/package.json +2 -1
@@ -75,19 +75,22 @@ const ie = (e, r)=>{
75
75
  return we(r, !1) && t && !!e;
76
76
  }, ae = (param)=>{
77
77
  let { currentIndex: e, numPages: r, onPress: t } = param;
78
- const o = Ne(), { isDesktopOrBigger: f } = oe(), m = (v)=>{
79
- const d = v === e;
80
- return o ? d ? Oe : De : d ? Ve : ze;
78
+ const o = Ne(), { isDesktopOrBigger: h } = oe(), m = (b)=>{
79
+ const f = b === e;
80
+ return o ? f ? Oe : De : f ? Ve : ze;
81
81
  };
82
82
  return /* @__PURE__ */ s(Se, {
83
- space: f ? 16 : 8,
83
+ space: {
84
+ mobile: 8,
85
+ desktop: 16
86
+ },
84
87
  alignItems: "center",
85
88
  dataAttributes: {
86
89
  "component-name": "PageBullets"
87
90
  },
88
91
  children: Array.from({
89
92
  length: r
90
- }, (v, d)=>/* @__PURE__ */ s(M, {
93
+ }, (b, f)=>/* @__PURE__ */ s(M, {
91
94
  className: He({
92
95
  display: "block",
93
96
  padding: 0,
@@ -95,11 +98,11 @@ const ie = (e, r)=>{
95
98
  background: "transparent"
96
99
  }),
97
100
  maybe: !0,
98
- onPress: f && t ? ()=>t(d) : void 0,
101
+ onPress: h && t ? ()=>t(f) : void 0,
99
102
  children: /* @__PURE__ */ s("div", {
100
- className: m(d)
103
+ className: m(f)
101
104
  })
102
- }, d))
105
+ }, f))
103
106
  });
104
107
  }, Z = (e, r, t)=>t ? typeof t == "number" ? t : t[e] || r[e] : r[e], Xe = (e, r)=>{
105
108
  const t = {
@@ -126,7 +129,7 @@ const ie = (e, r)=>{
126
129
  }, ee = (e, r)=>{
127
130
  if (e.length === 0) return [];
128
131
  const t = Math.ceil(e.length / r), o = [];
129
- for(let f = 0; f < e.length; f += t)o.push(e[f]);
132
+ for(let h = 0; h < e.length; h += t)o.push(e[h]);
130
133
  return o[o.length - 1] = e[e.length - t], o;
131
134
  }, Ze = (e, r)=>{
132
135
  const t = [];
@@ -134,14 +137,14 @@ const ie = (e, r)=>{
134
137
  for(let o = t.length - 1; o >= 0; o--)if (e - t[o] >= -1) return o;
135
138
  return 0;
136
139
  }, ue = 5e3, fe = (param)=>{
137
- let { items: e, itemStyle: r, itemClassName: t, withBullets: o, renderBullets: f, initialActiveItem: m, itemsPerPage: v, itemsToScroll: d, mobilePageOffset: p, gap: N, free: R, centered: A, autoplay: b, onPageChange: P, dataAttributes: F } = param;
138
- const { texts: T, platformOverrides: x, skinName: y } = re(), c = Je(), i = Xe(c || "large", v), { isDesktopOrBigger: w, isTablet: C } = oe(), U = C ? i.tablet : i.mobile, I = Math.max(Math.floor(w ? i.desktop : U), 1), g = n.useRef(null), S = Math.ceil(e.length / I), [{ scrollLeft: G, scrollRight: q }, he] = n.useState({
140
+ let { items: e, itemStyle: r, itemClassName: t, withBullets: o, renderBullets: h, initialActiveItem: m, itemsPerPage: b, itemsToScroll: f, mobilePageOffset: p, gap: N, free: R, centered: A, autoplay: v, onPageChange: P, dataAttributes: F } = param;
141
+ const { texts: T, platformOverrides: x, skinName: y } = re(), c = Je(), i = Xe(c || "large", b), { isDesktopOrBigger: w, isTablet: C } = oe(), U = C ? i.tablet : i.mobile, I = Math.max(Math.floor(w ? i.desktop : U), 1), g = n.useRef(null), S = Math.ceil(e.length / I), [{ scrollLeft: G, scrollRight: q }, he] = n.useState({
139
142
  scrollLeft: 0,
140
143
  scrollRight: 0
141
144
  }), [K, me] = n.useState([]), W = n.useMemo(()=>ee(K, S), [
142
145
  K,
143
146
  S
144
- ]), O = d ? ee(K, Math.ceil(e.length / d)) : W, pe = q !== 0, ge = G !== 0;
147
+ ]), O = f ? ee(K, Math.ceil(e.length / f)) : W, pe = q !== 0, ge = G !== 0;
145
148
  n.useEffect(()=>{
146
149
  if (g.current) {
147
150
  const l = g.current, a = ()=>{
@@ -159,11 +162,11 @@ const ie = (e, r)=>{
159
162
  }));
160
163
  };
161
164
  a(), u(), l.addEventListener("scroll", a);
162
- const h = le(l, ()=>{
165
+ const d = le(l, ()=>{
163
166
  a(), u();
164
167
  });
165
168
  return ()=>{
166
- l.removeEventListener("scroll", a), h();
169
+ l.removeEventListener("scroll", a), d();
167
170
  };
168
171
  }
169
172
  return ()=>{};
@@ -181,20 +184,20 @@ const ie = (e, r)=>{
181
184
  let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
182
185
  const u = g.current;
183
186
  if (u) {
184
- const h = W[l];
187
+ const d = W[l];
185
188
  u.scrollTo({
186
- left: h,
189
+ left: d,
187
190
  behavior: a ? "smooth" : "auto"
188
191
  });
189
192
  }
190
193
  }, [
191
194
  W
192
- ]), ve = n.useCallback(()=>{
195
+ ]), be = n.useCallback(()=>{
193
196
  const l = g.current;
194
197
  if (l) {
195
198
  const { scrollLeft: a } = l, u = [
196
199
  ...O
197
- ].reverse().find((h)=>h - a < -1);
200
+ ].reverse().find((d)=>d - a < -1);
198
201
  l.scrollTo({
199
202
  left: u,
200
203
  behavior: "smooth"
@@ -205,7 +208,7 @@ const ie = (e, r)=>{
205
208
  ]), Y = n.useCallback(()=>{
206
209
  const l = g.current;
207
210
  if (l) {
208
- const { scrollLeft: a } = l, u = O.find((h)=>h - a > 1);
211
+ const { scrollLeft: a } = l, u = O.find((d)=>d - a > 1);
209
212
  l.scrollTo({
210
213
  left: u,
211
214
  behavior: "smooth"
@@ -213,7 +216,7 @@ const ie = (e, r)=>{
213
216
  }
214
217
  }, [
215
218
  O
216
- ]), H = ie(!!b, g);
219
+ ]), H = ie(!!v, g);
217
220
  n.useEffect(()=>{
218
221
  m !== void 0 && D(Math.floor(m / I), !1);
219
222
  }, [
@@ -221,10 +224,10 @@ const ie = (e, r)=>{
221
224
  D,
222
225
  I
223
226
  ]), n.useEffect(()=>{
224
- if (H && b) {
225
- const l = typeof b == "boolean" ? ue : b.time, a = typeof b == "object" && b.loop, u = setInterval(()=>{
226
- var h;
227
- q !== 0 ? Y() : a && ((h = g.current) == null || h.scrollTo({
227
+ if (H && v) {
228
+ const l = typeof v == "boolean" ? ue : v.time, a = typeof v == "object" && v.loop, u = setInterval(()=>{
229
+ var d;
230
+ q !== 0 ? Y() : a && ((d = g.current) == null || d.scrollTo({
228
231
  left: 0,
229
232
  behavior: "smooth"
230
233
  }));
@@ -232,7 +235,7 @@ const ie = (e, r)=>{
232
235
  return ()=>clearInterval(u);
233
236
  }
234
237
  }, [
235
- b,
238
+ v,
236
239
  Y,
237
240
  q,
238
241
  H
@@ -242,8 +245,8 @@ const ie = (e, r)=>{
242
245
  if (P) {
243
246
  const l = Math.min((k + 1) * I - 1, e.length - 1), a = [];
244
247
  for(let u = 0; u < I; u++){
245
- const h = l - u;
246
- h >= 0 && a.unshift(h);
248
+ const d = l - u;
249
+ d >= 0 && a.unshift(d);
247
250
  }
248
251
  J.current ? Q.current !== k && P({
249
252
  pageIndex: k,
@@ -258,7 +261,7 @@ const ie = (e, r)=>{
258
261
  P
259
262
  ]);
260
263
  let V = null;
261
- f ? V = f({
264
+ h ? V = h({
262
265
  numPages: S,
263
266
  currentIndex: k,
264
267
  onPress: D
@@ -267,7 +270,7 @@ const ie = (e, r)=>{
267
270
  currentIndex: k,
268
271
  onPress: D
269
272
  }));
270
- const be = "64px", Ie = "36px";
273
+ const ve = "64px", Ie = "36px";
271
274
  return /* @__PURE__ */ $(ke, {
272
275
  space: 24,
273
276
  dataAttributes: _object_spread({
@@ -282,7 +285,7 @@ const ie = (e, r)=>{
282
285
  children: /* @__PURE__ */ s(M, {
283
286
  className: je,
284
287
  "aria-label": T.carouselPrevButton,
285
- onPress: ve,
288
+ onPress: be,
286
289
  disabled: !ge,
287
290
  children: /* @__PURE__ */ s(te, {})
288
291
  })
@@ -297,7 +300,7 @@ const ie = (e, r)=>{
297
300
  [L.itemsPerPageTablet]: String(i.tablet),
298
301
  [L.itemsPerPageMobile]: String(i.mobile)
299
302
  }, p === "large" ? {
300
- [L.mobilePageOffset]: be
303
+ [L.mobilePageOffset]: ve
301
304
  } : y === Qe ? {
302
305
  [L.mobilePageOffset]: Ie
303
306
  } : {}, N !== void 0 ? {
@@ -340,7 +343,7 @@ const ie = (e, r)=>{
340
343
  ]
341
344
  });
342
345
  }, It = (e)=>/* @__PURE__ */ s(fe, _object_spread({}, e)), Pt = (param)=>/* @__PURE__ */ {
343
- let { items: e, itemStyle: r, itemClassName: t, withBullets: o, renderBullets: f, initialActiveItem: m, onPageChange: v, dataAttributes: d } = param;
346
+ let { items: e, itemStyle: r, itemClassName: t, withBullets: o, renderBullets: h, initialActiveItem: m, onPageChange: b, dataAttributes: f } = param;
344
347
  return s(fe, {
345
348
  items: e,
346
349
  itemStyle: r,
@@ -354,10 +357,10 @@ const ie = (e, r)=>{
354
357
  itemsToScroll: 1,
355
358
  gap: 0,
356
359
  withBullets: o,
357
- renderBullets: f,
360
+ renderBullets: h,
358
361
  initialActiveItem: m,
359
- onPageChange: v,
360
- dataAttributes: d
362
+ onPageChange: b,
363
+ dataAttributes: f
361
364
  });
362
365
  }, de = /*#__PURE__*/ n.createContext(!1), xt = ()=>n.useContext(de), et = (param)=>/* @__PURE__ */ {
363
366
  let { children: e } = param;
@@ -366,11 +369,11 @@ const ie = (e, r)=>{
366
369
  children: e
367
370
  });
368
371
  }, wt = (param)=>{
369
- let { items: e, withBullets: r, autoplay: t, onPageChange: o, dataAttributes: f, inverseBullets: m = !0 } = param;
370
- const { texts: v, platformOverrides: d } = re(), p = n.useRef(null), [{ scrollLeft: N, scrollRight: R }, A] = n.useState({
372
+ let { items: e, withBullets: r, autoplay: t, onPageChange: o, dataAttributes: h, inverseBullets: m = !0 } = param;
373
+ const { texts: b, platformOverrides: f } = re(), p = n.useRef(null), [{ scrollLeft: N, scrollRight: R }, A] = n.useState({
371
374
  scrollLeft: 0,
372
375
  scrollRight: 0
373
- }), b = n.useCallback(()=>{
376
+ }), v = n.useCallback(()=>{
374
377
  const c = p.current;
375
378
  c && c.scrollBy({
376
379
  left: -c.clientWidth,
@@ -427,14 +430,14 @@ const ie = (e, r)=>{
427
430
  ]), /* @__PURE__ */ s(et, {
428
431
  children: /* @__PURE__ */ $("div", _object_spread_props(_object_spread({
429
432
  className: Be
430
- }, Ce(f, "SlideShow")), {
433
+ }, Ce(h, "SlideShow")), {
431
434
  children: [
432
435
  /* @__PURE__ */ s(E, {
433
436
  isInverse: !1,
434
437
  children: /* @__PURE__ */ s(M, {
435
438
  className: Ee,
436
- "aria-label": v.carouselPrevButton,
437
- onPress: b,
439
+ "aria-label": b.carouselPrevButton,
440
+ onPress: v,
438
441
  disabled: !T,
439
442
  children: /* @__PURE__ */ s(te, {})
440
443
  })
@@ -449,7 +452,7 @@ const ie = (e, r)=>{
449
452
  children: e.map((c, i)=>/* @__PURE__ */ s("div", {
450
453
  className: Te,
451
454
  style: {
452
- scrollSnapStop: ne(d) ? "always" : "normal"
455
+ scrollSnapStop: ne(f) ? "always" : "normal"
453
456
  },
454
457
  children: c
455
458
  }, i))
@@ -459,7 +462,7 @@ const ie = (e, r)=>{
459
462
  isInverse: !1,
460
463
  children: /* @__PURE__ */ s(M, {
461
464
  className: ye,
462
- "aria-label": v.carouselNextButton,
465
+ "aria-label": b.carouselNextButton,
463
466
  onPress: P,
464
467
  disabled: !F,
465
468
  children: /* @__PURE__ */ s(se, {})
package/dist-es/chip.js CHANGED
@@ -51,104 +51,121 @@ function _object_spread_props(target, source) {
51
51
  }
52
52
  return target;
53
53
  }
54
- import { jsxs as u, Fragment as C, jsx as t } from "react/jsx-runtime";
54
+ import { jsxs as f, Fragment as b, jsx as e } from "react/jsx-runtime";
55
55
  import E from "classnames";
56
- import { useTheme as N, useScreenSize as V } from "./hooks.js";
57
- import x from "./badge.js";
58
- import n from "./box.js";
59
- import { Text2 as y } from "./text.js";
60
- import z from "./icon-button.js";
56
+ import { useTheme as N } from "./hooks.js";
57
+ import k from "./badge.js";
58
+ import i from "./box.js";
59
+ import { Text2 as V } from "./text.js";
60
+ import y from "./icon-button.js";
61
61
  import j from "./generated/mistica-icons/icon-close-regular.js";
62
- import { pxToRem as p } from "./utils/css.js";
63
- import { iconActive as O, icon as S, chipVariants as i, button as D, chipInteractiveVariants as L } from "./chip.css-mistica.js";
64
- import { vars as M } from "./skins/skin-contract.css-mistica.js";
65
- import { getPrefixedDataAttributes as g } from "./utils/dom.js";
66
- import { useThemeVariant as W } from "./theme-variant-context.js";
67
- import { BaseTouchable as v } from "./touchable.js";
68
- const F = (e)=>{
69
- const { Icon: c, children: P, id: k, dataAttributes: l, active: s, badge: r, onClose: d } = e, { texts: T, isDarkMode: A, textPresets: I } = N(), m = W() === "alternative", { isTabletOrSmaller: a } = V(), f = c ? a ? 16 : 8 : a ? 20 : 12, R = a ? 20 : 12, b = a ? 16 : 8, w = ()=>r ? /* @__PURE__ */ t(C, {
70
- children: r === !0 ? /* @__PURE__ */ t(x, {}) : /* @__PURE__ */ t(x, {
62
+ import { pxToRem as z } from "./utils/css.js";
63
+ import { iconActive as D, icon as L, chipVariants as n, button as M, chipInteractiveVariants as O } from "./chip.css-mistica.js";
64
+ import { vars as W } from "./skins/skin-contract.css-mistica.js";
65
+ import { getPrefixedDataAttributes as A } from "./utils/dom.js";
66
+ import { useThemeVariant as F } from "./theme-variant-context.js";
67
+ import { BaseTouchable as g } from "./touchable.js";
68
+ const $ = (t)=>{
69
+ const { Icon: c, children: C, id: x, dataAttributes: s, active: l, badge: r, onClose: d } = t, { texts: p, isDarkMode: P, textPresets: I } = N(), m = F() === "alternative", u = c ? {
70
+ mobile: 16,
71
+ desktop: 8
72
+ } : {
73
+ mobile: 20,
74
+ desktop: 12
75
+ }, R = {
76
+ mobile: 20,
77
+ desktop: 12
78
+ }, v = {
79
+ mobile: 16,
80
+ desktop: 8
81
+ }, T = ()=>r ? /* @__PURE__ */ e(b, {
82
+ children: r === !0 ? /* @__PURE__ */ e(k, {}) : /* @__PURE__ */ e(k, {
71
83
  value: r
72
84
  })
73
- }) : null, h = /* @__PURE__ */ u(C, {
85
+ }) : null, h = /* @__PURE__ */ f(b, {
74
86
  children: [
75
- c && /* @__PURE__ */ t(n, {
87
+ c && /* @__PURE__ */ e(i, {
76
88
  paddingRight: 4,
77
- className: s ? O : S,
78
- children: /* @__PURE__ */ t(c, {
89
+ className: l ? D : L,
90
+ children: /* @__PURE__ */ e(c, {
79
91
  color: "currentColor",
80
- size: p(16)
92
+ size: z(16)
81
93
  })
82
94
  }),
83
- /* @__PURE__ */ t(n, {
95
+ /* @__PURE__ */ e(i, {
84
96
  paddingRight: r ? 8 : d ? 4 : 0,
85
- children: /* @__PURE__ */ t(y, {
86
- id: k,
97
+ children: /* @__PURE__ */ e(V, {
98
+ id: x,
87
99
  weight: I.indicator.weight,
88
100
  truncate: 1,
89
101
  color: "currentColor",
90
- children: P
102
+ children: C
91
103
  })
92
104
  })
93
105
  ]
94
106
  });
95
- if (r) return /* @__PURE__ */ u(n, _object_spread_props(_object_spread({
96
- className: m ? i.overAlternative : i.default,
97
- paddingLeft: f,
98
- paddingRight: b
99
- }, g(l, "Chip")), {
107
+ if (r) return /* @__PURE__ */ f(i, _object_spread_props(_object_spread({
108
+ className: m ? n.overAlternative : n.default,
109
+ paddingLeft: u,
110
+ paddingRight: v
111
+ }, A(s, "Chip")), {
100
112
  children: [
101
113
  h,
102
- w()
114
+ T()
103
115
  ]
104
116
  }));
105
- if (d) return /* @__PURE__ */ u(n, _object_spread_props(_object_spread({
106
- className: m ? i.overAlternative : i.default,
107
- paddingLeft: f,
108
- paddingRight: b
109
- }, g(l, "Chip")), {
117
+ if (d) return /* @__PURE__ */ f(i, _object_spread_props(_object_spread({
118
+ className: m ? n.overAlternative : n.default,
119
+ paddingLeft: u,
120
+ paddingRight: v
121
+ }, A(s, "Chip")), {
110
122
  children: [
111
123
  h,
112
- /* @__PURE__ */ t(z, {
124
+ /* @__PURE__ */ e(y, {
113
125
  size: 24,
114
126
  style: {
115
127
  display: "flex",
116
128
  justifyContent: "center",
117
129
  alignItems: "center"
118
130
  },
119
- "aria-label": T.closeButtonLabel,
131
+ "aria-label": p.closeButtonLabel,
120
132
  onPress: ()=>d(),
121
- children: /* @__PURE__ */ t(j, {
133
+ children: /* @__PURE__ */ e(j, {
122
134
  size: 16,
123
- color: M.colors.neutralMedium
135
+ color: W.colors.neutralMedium
124
136
  })
125
137
  })
126
138
  ]
127
139
  }));
128
- const B = s !== void 0 || e.href || e.onPress || e.to, o = ()=>/* @__PURE__ */ t(n, _object_spread_props(_object_spread({
129
- className: E(i[s ? "active" : m ? "overAlternative" : "default"], {
130
- [L[A ? "dark" : "light"]]: B
140
+ const w = l !== void 0 || t.href || t.onPress || t.to, a = _object_spread({
141
+ "component-name": "Chip"
142
+ }, s), o = (B)=>/* @__PURE__ */ e(i, {
143
+ className: E(n[l ? "active" : m ? "overAlternative" : "default"], {
144
+ [O[P ? "dark" : "light"]]: w
131
145
  }),
132
- paddingLeft: f,
133
- paddingRight: R
134
- }, g(l, "Chip")), {
146
+ paddingLeft: u,
147
+ paddingRight: R,
148
+ dataAttributes: B,
135
149
  children: h
136
- }));
137
- return e.onPress ? /* @__PURE__ */ t(v, {
138
- className: D,
139
- trackingEvent: e.trackingEvent,
140
- onPress: e.onPress,
150
+ });
151
+ return t.onPress ? /* @__PURE__ */ e(g, {
152
+ className: M,
153
+ trackingEvent: t.trackingEvent,
154
+ onPress: t.onPress,
155
+ dataAttributes: a,
141
156
  children: o()
142
- }) : e.to ? /* @__PURE__ */ t(v, {
143
- trackingEvent: e.trackingEvent,
144
- to: e.to,
145
- fullPageOnWebView: e.fullPageOnWebView,
157
+ }) : t.to ? /* @__PURE__ */ e(g, {
158
+ trackingEvent: t.trackingEvent,
159
+ to: t.to,
160
+ fullPageOnWebView: t.fullPageOnWebView,
161
+ dataAttributes: a,
146
162
  children: o()
147
- }) : e.href ? /* @__PURE__ */ t(v, {
148
- trackingEvent: e.trackingEvent,
149
- href: e.href,
150
- newTab: e.newTab,
163
+ }) : t.href ? /* @__PURE__ */ e(g, {
164
+ trackingEvent: t.trackingEvent,
165
+ href: t.href,
166
+ newTab: t.newTab,
167
+ dataAttributes: a,
151
168
  children: o()
152
- }) : o();
153
- }, re = F;
154
- export { re as default };
169
+ }) : o(a);
170
+ }, rt = $;
171
+ export { rt as default };
@@ -1,66 +1,72 @@
1
1
  "use client";
2
2
  import { jsx as e, jsxs as p } from "react/jsx-runtime";
3
- import c from "./box.js";
3
+ import s from "./box.js";
4
4
  import { Boxed as g } from "./boxed.js";
5
- import { useScreenSize as u, useTheme as y } from "./hooks.js";
6
- import d from "./stack.js";
7
- import { Text as E, Text2 as N } from "./text.js";
8
- import T from "./button-group.js";
9
- import { container as B, iconContainer as C, image as k } from "./empty-state-card.css-mistica.js";
10
- import { vars as v } from "./skins/skin-contract.css-mistica.js";
11
- const z = (param)=>{
12
- let { title: n, description: h, button: r, secondaryButton: i, buttonLink: t, icon: o, imageUrl: a, "aria-label": f, dataAttributes: x } = param;
13
- var s;
14
- const { isTabletOrSmaller: l } = u(), { textPresets: S } = y();
5
+ import { useTheme as S } from "./hooks.js";
6
+ import c from "./stack.js";
7
+ import { Text as k, Text2 as y } from "./text.js";
8
+ import E from "./button-group.js";
9
+ import { container as N, iconContainer as u, image as B } from "./empty-state-card.css-mistica.js";
10
+ import { vars as C } from "./skins/skin-contract.css-mistica.js";
11
+ const T = (param)=>{
12
+ let { title: d, description: n, button: r, secondaryButton: i, buttonLink: o, icon: t, imageUrl: a, "aria-label": h, dataAttributes: f } = param;
13
+ var l;
14
+ const { textPresets: x } = S();
15
15
  let m;
16
16
  return a && (m = /* @__PURE__ */ e("img", {
17
- className: k,
17
+ className: B,
18
18
  alt: "",
19
19
  src: a
20
- })), process.env.NODE_ENV !== "production" && r && !((s = r == null ? void 0 : r.props) != null && s.small) && console.error("button property in EmptyStateCard must be a a small Button. Set small prop to true"), /* @__PURE__ */ e(g, {
21
- dataAttributes: x,
22
- children: /* @__PURE__ */ e(c, {
23
- paddingY: l ? 24 : 40,
24
- paddingX: l ? 16 : 40,
20
+ })), process.env.NODE_ENV !== "production" && r && !((l = r == null ? void 0 : r.props) != null && l.small) && console.error("button property in EmptyStateCard must be a a small Button. Set small prop to true"), /* @__PURE__ */ e(g, {
21
+ dataAttributes: f,
22
+ children: /* @__PURE__ */ e(s, {
23
+ paddingY: {
24
+ mobile: 24,
25
+ desktop: 40
26
+ },
27
+ paddingX: {
28
+ mobile: 16,
29
+ desktop: 40
30
+ },
25
31
  children: /* @__PURE__ */ e("section", {
26
- className: B,
27
- "aria-label": f,
28
- children: /* @__PURE__ */ p(d, {
32
+ className: N,
33
+ "aria-label": h,
34
+ children: /* @__PURE__ */ p(c, {
29
35
  space: 16,
30
36
  children: [
31
- m !== null && m !== void 0 ? m : o && /* @__PURE__ */ e("div", {
32
- className: C,
33
- children: o
37
+ m !== null && m !== void 0 ? m : t && /* @__PURE__ */ e("div", {
38
+ className: u,
39
+ children: t
34
40
  }),
35
- /* @__PURE__ */ e(c, {
36
- children: /* @__PURE__ */ p(d, {
41
+ /* @__PURE__ */ e(s, {
42
+ children: /* @__PURE__ */ p(c, {
37
43
  space: 8,
38
44
  children: [
39
- /* @__PURE__ */ e(E, {
45
+ /* @__PURE__ */ e(k, {
40
46
  mobileSize: 18,
41
47
  mobileLineHeight: "24px",
42
48
  desktopSize: 20,
43
49
  desktopLineHeight: "28px",
44
- weight: S.cardTitle.weight,
45
- children: n
50
+ weight: x.cardTitle.weight,
51
+ children: d
46
52
  }),
47
- /* @__PURE__ */ e(N, {
53
+ /* @__PURE__ */ e(y, {
48
54
  regular: !0,
49
- color: v.colors.textSecondary,
50
- children: h
55
+ color: C.colors.textSecondary,
56
+ children: n
51
57
  })
52
58
  ]
53
59
  })
54
60
  }),
55
- (r || i || t) && /* @__PURE__ */ e(T, {
61
+ (r || i || o) && /* @__PURE__ */ e(E, {
56
62
  primaryButton: r,
57
63
  secondaryButton: i,
58
- link: t
64
+ link: o
59
65
  })
60
66
  ]
61
67
  })
62
68
  })
63
69
  })
64
70
  });
65
- }, V = z;
66
- export { V as default };
71
+ }, O = T;
72
+ export { O as default };
@@ -1,6 +1,6 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./image.css.ts.vanilla.css-mistica.js";
3
- var r = 300, n = "_17tt25r2 _1y2v1nfjn _1y2v1nfk2 _1y2v1nfgi _1y2v1nfh3 _1y2v1nfhk _1y2v1nflb _1y2v1nfiv _1y2v1nfiw _1y2v1nfj7", f = {
3
+ var _ = 300, a = "_17tt25r3 _1y2v1nfjn _1y2v1nfk2 _1y2v1nfgi _1y2v1nfh3 _1y2v1nfhk _1y2v1nflb _1y2v1nfiv _1y2v1nfiw _1y2v1nfj7", i = "_17tt25r1", n = {
4
4
  mediaBorderRadius: "var(--_17tt25r0)"
5
5
  };
6
- export { r as FADE_IN_DURATION_MS, n as image, f as vars };
6
+ export { _ as FADE_IN_DURATION_MS, a as image, i as imageWithBorder, n as vars };