@telefonica/mistica 14.39.0 → 14.40.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 (103) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/accordion.js +47 -49
  3. package/dist/button.js +10 -10
  4. package/dist/card.js +10 -10
  5. package/dist/carousel.css-mistica.js +48 -24
  6. package/dist/carousel.css.d.ts +9 -1
  7. package/dist/carousel.d.ts +2 -2
  8. package/dist/carousel.js +227 -219
  9. package/dist/community/advanced-data-card.css-mistica.js +6 -6
  10. package/dist/community/blocks.js +12 -12
  11. package/dist/desktop-container-type-context.js +2 -2
  12. package/dist/fade-in.js +2 -2
  13. package/dist/feedback.js +6 -6
  14. package/dist/focus-trap.js +2 -2
  15. package/dist/header.js +4 -4
  16. package/dist/hero.js +4 -4
  17. package/dist/horizontal-scroll.js +2 -2
  18. package/dist/icons/icon-amex.js +2 -2
  19. package/dist/icons/icon-chevron.js +2 -2
  20. package/dist/icons/icon-cvv-amex.js +2 -2
  21. package/dist/icons/icon-cvv-visa-mc.js +2 -2
  22. package/dist/icons/icon-info.js +4 -4
  23. package/dist/icons/icon-mastercard.js +2 -2
  24. package/dist/icons/icon-visa.js +2 -2
  25. package/dist/image.js +2 -2
  26. package/dist/list.js +16 -16
  27. package/dist/loading-bar.js +2 -2
  28. package/dist/logo.js +10 -10
  29. package/dist/menu.js +2 -2
  30. package/dist/mosaic.js +2 -2
  31. package/dist/navigation-bar.js +8 -8
  32. package/dist/navigation-breadcrumbs.js +2 -2
  33. package/dist/negative-box.js +2 -2
  34. package/dist/nestable-context.js +2 -2
  35. package/dist/package-version.js +1 -1
  36. package/dist/placeholder.js +2 -2
  37. package/dist/responsive-layout.js +2 -2
  38. package/dist/select.js +4 -4
  39. package/dist/sheet.js +71 -67
  40. package/dist/skeletons.js +12 -12
  41. package/dist/stack.js +2 -2
  42. package/dist/text-field-base.js +2 -2
  43. package/dist/text-field-components.js +2 -2
  44. package/dist/text.js +18 -17
  45. package/dist/theme-variant-context.js +2 -2
  46. package/dist/theme.js +8 -8
  47. package/dist/title.js +2 -2
  48. package/dist/tooltip.js +64 -60
  49. package/dist/utils/animation.js +2 -2
  50. package/dist/utils/css.js +1 -1
  51. package/dist/video.js +2 -2
  52. package/dist/vivinho-loading-animation/pulse-lottie.json.js +3 -5
  53. package/dist-es/accordion.js +65 -67
  54. package/dist-es/button.js +10 -10
  55. package/dist-es/card.js +10 -10
  56. package/dist-es/carousel.css-mistica.js +7 -7
  57. package/dist-es/carousel.js +278 -270
  58. package/dist-es/community/advanced-data-card.css-mistica.js +3 -3
  59. package/dist-es/community/blocks.js +12 -12
  60. package/dist-es/desktop-container-type-context.js +2 -2
  61. package/dist-es/fade-in.js +2 -2
  62. package/dist-es/feedback.js +6 -6
  63. package/dist-es/focus-trap.js +2 -2
  64. package/dist-es/header.js +4 -4
  65. package/dist-es/hero.js +4 -4
  66. package/dist-es/horizontal-scroll.js +2 -2
  67. package/dist-es/icons/icon-amex.js +2 -2
  68. package/dist-es/icons/icon-chevron.js +2 -2
  69. package/dist-es/icons/icon-cvv-amex.js +2 -2
  70. package/dist-es/icons/icon-cvv-visa-mc.js +2 -2
  71. package/dist-es/icons/icon-info.js +4 -4
  72. package/dist-es/icons/icon-mastercard.js +2 -2
  73. package/dist-es/icons/icon-visa.js +2 -2
  74. package/dist-es/image.js +2 -2
  75. package/dist-es/list.js +16 -16
  76. package/dist-es/loading-bar.js +2 -2
  77. package/dist-es/logo.js +10 -10
  78. package/dist-es/menu.js +2 -2
  79. package/dist-es/mosaic.js +2 -2
  80. package/dist-es/navigation-bar.js +8 -8
  81. package/dist-es/navigation-breadcrumbs.js +2 -2
  82. package/dist-es/negative-box.js +2 -2
  83. package/dist-es/nestable-context.js +2 -2
  84. package/dist-es/package-version.js +1 -1
  85. package/dist-es/placeholder.js +2 -2
  86. package/dist-es/responsive-layout.js +2 -2
  87. package/dist-es/select.js +4 -4
  88. package/dist-es/sheet.js +79 -75
  89. package/dist-es/skeletons.js +12 -12
  90. package/dist-es/stack.js +2 -2
  91. package/dist-es/style.css +1 -1
  92. package/dist-es/text-field-base.js +2 -2
  93. package/dist-es/text-field-components.js +4 -4
  94. package/dist-es/text.js +21 -20
  95. package/dist-es/theme-variant-context.js +2 -2
  96. package/dist-es/theme.js +8 -8
  97. package/dist-es/title.js +2 -2
  98. package/dist-es/tooltip.js +80 -76
  99. package/dist-es/utils/animation.js +2 -2
  100. package/dist-es/utils/css.js +1 -1
  101. package/dist-es/video.js +2 -2
  102. package/dist-es/vivinho-loading-animation/pulse-lottie.json.js +3 -5
  103. package/package.json +16 -17
@@ -1,9 +1,9 @@
1
1
  import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
2
  import { applyAlpha as r } from "./utils/color.js";
3
3
  import { vars as o } from "./skins/skin-contract.css-mistica.js";
4
- const n = (param)=>/* @__PURE__ */ {
4
+ const n = (param)=>{
5
5
  let { width: t = "auto", height: i = 120 } = param;
6
- return e("div", {
6
+ return /* @__PURE__ */ e("div", {
7
7
  style: {
8
8
  height: i,
9
9
  width: t,
@@ -100,11 +100,11 @@ const R = (param)=>{
100
100
  })
101
101
  }))
102
102
  });
103
- }, N = (_param)=>/* @__PURE__ */ {
103
+ }, N = (_param)=>{
104
104
  var { children: a } = _param, n = _object_without_properties(_param, [
105
105
  "children"
106
106
  ]);
107
- return t(R, _object_spread_props(_object_spread({}, n), {
107
+ return /* @__PURE__ */ t(R, _object_spread_props(_object_spread({}, n), {
108
108
  shouldExpandWhenNested: !0,
109
109
  children: a
110
110
  }));
package/dist-es/select.js CHANGED
@@ -278,9 +278,9 @@ const Ye = (param)=>{
278
278
  display: "none"
279
279
  }
280
280
  }),
281
- u.map((param)=>/* @__PURE__ */ {
281
+ u.map((param)=>{
282
282
  let { value: e, text: t } = param;
283
- return o("option", {
283
+ return /* @__PURE__ */ o("option", {
284
284
  value: e,
285
285
  children: t
286
286
  }, e);
@@ -352,9 +352,9 @@ const Ye = (param)=>{
352
352
  className: ee(Ke, z ? re.show : re.hide),
353
353
  role: "listbox",
354
354
  ref: T,
355
- children: u.map((param)=>/* @__PURE__ */ {
355
+ children: u.map((param)=>{
356
356
  let { value: e, text: t } = param;
357
- return o("li", {
357
+ return /* @__PURE__ */ o("li", {
358
358
  role: "option",
359
359
  "aria-selected": e === (p !== null && p !== void 0 ? p : a),
360
360
  "data-value": e,
package/dist-es/sheet.js CHANGED
@@ -79,17 +79,17 @@ function _object_without_properties_loose(source, excluded) {
79
79
  return target;
80
80
  }
81
81
  import { jsx as e, jsxs as y, Fragment as O } from "react/jsx-runtime";
82
- import N from "classnames";
82
+ import B from "classnames";
83
83
  import * as n from "react";
84
84
  import { transitionDuration as H, overlay as V, closingOverlay as j, SheetContainer as F, closingSheet as $, Sheet as G, SheetContent as K, handleContainer as _, handle as q, children as J, modalCloseButton as Q, modalCloseButtonIcon as U, stickyTitle as W, bodyContent as X, stickyButtons as Z, sheetActionRow as ee, infoItemIcon as re } from "./sheet.css-mistica.js";
85
85
  import te from "./focus-trap.js";
86
- import { useTheme as D, useAriaId as oe, useIsInViewport as B, useScreenSize as P } from "./hooks.js";
86
+ import { useTheme as D, useAriaId as oe, useIsInViewport as N, useScreenSize as P } from "./hooks.js";
87
87
  import { useSetModalStateEffect as ne } from "./modal-context-provider.js";
88
88
  import { Portal as ie } from "./portal.js";
89
89
  import { Text5 as se, Text3 as x, Text2 as T } from "./text.js";
90
90
  import { vars as S } from "./skins/skin-contract.css-mistica.js";
91
91
  import { RadioGroup as ce } from "./radio-button.js";
92
- import { RowList as le, Row as ae } from "./list.js";
92
+ import { RowList as ae, Row as le } from "./list.js";
93
93
  import Y from "./negative-box.js";
94
94
  import w from "./stack.js";
95
95
  import E from "./box.js";
@@ -103,28 +103,29 @@ import ve from "./generated/mistica-icons/icon-close-regular.js";
103
103
  import ye from "./icon-button.js";
104
104
  import Re from "./button-layout.js";
105
105
  import M from "./image.js";
106
- import { InternalResponsiveLayout as I } from "./responsive-layout.js";
107
- const C = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>{
106
+ import { InternalResponsiveLayout as k } from "./responsive-layout.js";
107
+ import { safeAreaInsetBottom as Se } from "./utils/css.js";
108
+ const C = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Ee = (param)=>{
108
109
  let { closeModal: t } = param;
109
- const [i, a] = n.useState(0), f = n.useRef(!1), p = n.useRef(0), o = n.useRef(0), s = n.useRef(0), u = n.useRef(0), { isDesktopOrBigger: m } = P(), r = n.useCallback((h)=>{
110
+ const [i, l] = n.useState(0), f = n.useRef(!1), p = n.useRef(0), o = n.useRef(0), s = n.useRef(0), u = n.useRef(0), { isDesktopOrBigger: m } = P(), r = n.useCallback((h)=>{
110
111
  f.current = !0, p.current = 0, o.current = Date.now(), s.current = C(h);
111
112
  }, []), c = n.useCallback(()=>{
112
- f.current = !1, a(0);
113
+ f.current = !1, l(0);
113
114
  }, []);
114
115
  return n.useEffect(()=>{
115
116
  if (m) return;
116
- const h = (l)=>{
117
+ const h = (a)=>{
117
118
  if (f.current) {
118
119
  if (p.current < 3) {
119
120
  p.current++;
120
121
  return;
121
122
  }
122
- u.current = C(l), a(u.current - s.current);
123
+ u.current = C(a), l(u.current - s.current);
123
124
  }
124
125
  }, d = ()=>{
125
126
  if (!f.current) return;
126
- const l = Date.now() - o.current, g = u.current - s.current, v = g / l;
127
- f.current = !1, a(0), g > 50 && (u.current > window.innerHeight * 0.75 || v > 0.5) && t();
127
+ const a = Date.now() - o.current, g = u.current - s.current, v = g / a;
128
+ f.current = !1, l(0), g > 50 && (u.current > window.innerHeight * 0.75 || v > 0.5) && t();
128
129
  };
129
130
  return document.addEventListener("touchmove", h), document.addEventListener("touchend", d), document.addEventListener("mousemove", h), document.addEventListener("mouseup", d), ()=>{
130
131
  document.removeEventListener("touchmove", h), document.removeEventListener("touchend", d), document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", d);
@@ -146,7 +147,7 @@ const C = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
146
147
  transition: "none"
147
148
  } : void 0
148
149
  };
149
- }, Ee = ()=>(n.useLayoutEffect(()=>{
150
+ }, be = ()=>(n.useLayoutEffect(()=>{
150
151
  const i = window.scrollY;
151
152
  return document.body.style.top = `-${i}px`, ()=>{
152
153
  process.env.NODE_ENV !== "test" && window.scrollTo(0, i);
@@ -161,7 +162,7 @@ const C = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
161
162
  overflow: hidden;
162
163
  }
163
164
  `
164
- })), be = {
165
+ })), we = {
165
166
  closed: {
166
167
  open: "opening"
167
168
  },
@@ -175,9 +176,9 @@ const C = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
175
176
  closing: {
176
177
  transitionEnd: "closed"
177
178
  }
178
- }, we = (t, i)=>be[t][i] || t, b = /*#__PURE__*/ n.forwardRef((param, f)=>{
179
- let { onClose: t, children: i, dataAttributes: a } = param;
180
- const { texts: p } = D(), [o, s] = n.useReducer(we, "closed"), u = n.useRef(!1), m = oe(), r = n.useCallback((v)=>{
179
+ }, De = (t, i)=>we[t][i] || t, b = /*#__PURE__*/ n.forwardRef((param, f)=>{
180
+ let { onClose: t, children: i, dataAttributes: l } = param;
181
+ const { texts: p } = D(), [o, s] = n.useReducer(De, "closed"), u = n.useRef(!1), m = oe(), r = n.useCallback((v)=>{
181
182
  v.target === v.currentTarget && s("transitionEnd");
182
183
  }, []), c = ()=>{
183
184
  o === "open" && s("close");
@@ -197,32 +198,32 @@ const C = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
197
198
  o,
198
199
  t
199
200
  ]);
200
- const _Se = Se({
201
+ const _Ee = Ee({
201
202
  closeModal: c
202
- }), { onScroll: h, overlayStyle: d } = _Se, l = _object_without_properties(_Se, [
203
+ }), { onScroll: h, overlayStyle: d } = _Ee, a = _object_without_properties(_Ee, [
203
204
  "onScroll",
204
205
  "overlayStyle"
205
206
  ]);
206
207
  ne();
207
- const g = Ee();
208
+ const g = be();
208
209
  return o === "closed" ? null : /* @__PURE__ */ e(ie, {
209
210
  children: /* @__PURE__ */ y(te, {
210
211
  children: [
211
212
  g,
212
213
  /* @__PURE__ */ e("div", {
213
- className: N(V, {
214
+ className: B(V, {
214
215
  [j]: o === "closing"
215
216
  }),
216
217
  style: d,
217
218
  onClick: c
218
219
  }),
219
220
  /* @__PURE__ */ e("div", _object_spread_props(_object_spread({
220
- className: N(F, {
221
+ className: B(F, {
221
222
  [$]: o === "closing"
222
223
  }),
223
224
  onTransitionEnd: r,
224
225
  onAnimationEnd: r
225
- }, l, he(a, "Sheet")), {
226
+ }, a, he(l, "Sheet")), {
226
227
  ref: f,
227
228
  children: /* @__PURE__ */ y("div", {
228
229
  className: G,
@@ -242,6 +243,9 @@ const C = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
242
243
  "aria-labelledby": m,
243
244
  onScroll: h,
244
245
  className: J,
246
+ style: {
247
+ paddingBottom: Se
248
+ },
245
249
  children: typeof i == "function" ? i({
246
250
  closeModal: c,
247
251
  modalTitleId: m
@@ -269,19 +273,19 @@ const C = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
269
273
  ]
270
274
  })
271
275
  });
272
- }), k = (param)=>{
273
- let { title: t, subtitle: i, description: a, modalTitleId: f, button: p, secondaryButton: o, link: s, children: u } = param;
276
+ }), I = (param)=>{
277
+ let { title: t, subtitle: i, description: l, modalTitleId: f, button: p, secondaryButton: o, link: s, children: u } = param;
274
278
  const m = n.useRef(null), r = n.useRef(null), c = n.useRef(null);
275
279
  n.useEffect(()=>{
276
280
  r.current && (c.current = fe(r.current));
277
281
  }, []);
278
- const h = !B(m, !0, {
282
+ const h = !N(m, !0, {
279
283
  root: c.current
280
- }), d = !B(r, !0, {
284
+ }), d = !N(r, !0, {
281
285
  rootMargin: "1px",
282
286
  // bottomScrollSignal div has 0px height so we need a 1px margin to trigger the intersection observer
283
287
  root: c.current
284
- }), l = !!p || !!o || !!s;
288
+ }), a = !!p || !!o || !!s;
285
289
  return /* @__PURE__ */ y(O, {
286
290
  children: [
287
291
  /* @__PURE__ */ e("div", {
@@ -296,7 +300,7 @@ const C = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
296
300
  mobile: 0,
297
301
  desktop: 40
298
302
  },
299
- children: /* @__PURE__ */ e(I, {
303
+ children: /* @__PURE__ */ e(k, {
300
304
  children: /* @__PURE__ */ e(se, {
301
305
  as: "h2",
302
306
  id: f,
@@ -316,15 +320,15 @@ const C = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
316
320
  /* @__PURE__ */ e("div", {
317
321
  className: X,
318
322
  children: /* @__PURE__ */ e(E, {
319
- paddingBottom: l ? 0 : {
323
+ paddingBottom: a ? 0 : {
320
324
  desktop: 40,
321
325
  mobile: 0
322
326
  },
323
- children: /* @__PURE__ */ e(I, {
327
+ children: /* @__PURE__ */ e(k, {
324
328
  children: /* @__PURE__ */ y(w, {
325
329
  space: 8,
326
330
  children: [
327
- i || a ? /* @__PURE__ */ y(w, {
331
+ i || l ? /* @__PURE__ */ y(w, {
328
332
  space: {
329
333
  mobile: 8,
330
334
  desktop: 16
@@ -335,14 +339,14 @@ const C = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
335
339
  regular: !0,
336
340
  children: i
337
341
  }),
338
- a && (Array.isArray(a) ? /* @__PURE__ */ e(T, {
342
+ l && (Array.isArray(l) ? /* @__PURE__ */ e(T, {
339
343
  as: "div",
340
344
  regular: !0,
341
345
  color: S.colors.textSecondary,
342
- children: a.map((g, v)=>/* @__PURE__ */ e("p", {
346
+ children: l.map((g, v)=>/* @__PURE__ */ e("p", {
343
347
  style: {
344
348
  margin: 0,
345
- marginBottom: v < a.length - 1 ? "1em" : void 0
349
+ marginBottom: v < l.length - 1 ? "1em" : void 0
346
350
  },
347
351
  children: g
348
352
  }, v))
@@ -350,7 +354,7 @@ const C = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
350
354
  as: "p",
351
355
  regular: !0,
352
356
  color: S.colors.textSecondary,
353
- children: a
357
+ children: l
354
358
  }))
355
359
  ]
356
360
  }) : null,
@@ -360,7 +364,7 @@ const C = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
360
364
  })
361
365
  })
362
366
  }),
363
- l && /* @__PURE__ */ y("div", {
367
+ a && /* @__PURE__ */ y("div", {
364
368
  className: Z,
365
369
  children: [
366
370
  d && /* @__PURE__ */ e(A, {}),
@@ -369,7 +373,7 @@ const C = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
369
373
  mobile: 16,
370
374
  desktop: 40
371
375
  },
372
- children: /* @__PURE__ */ e(I, {
376
+ children: /* @__PURE__ */ e(k, {
373
377
  children: /* @__PURE__ */ y(Re, {
374
378
  align: "full-width",
375
379
  link: s,
@@ -387,9 +391,9 @@ const C = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
387
391
  })
388
392
  ]
389
393
  });
390
- }, Qe = /*#__PURE__*/ n.forwardRef((param, r)=>{
391
- let { title: t, subtitle: i, description: a, items: f, selectedId: p, onClose: o, onSelect: s, button: u, dataAttributes: m } = param;
392
- const [c, h] = n.useState(p), d = n.useRef(!1), { isDesktopOrBigger: l } = P(), { texts: g } = D();
394
+ }, We = /*#__PURE__*/ n.forwardRef((param, r)=>{
395
+ let { title: t, subtitle: i, description: l, items: f, selectedId: p, onClose: o, onSelect: s, button: u, dataAttributes: m } = param;
396
+ const [c, h] = n.useState(p), d = n.useRef(!1), { isDesktopOrBigger: a } = P(), { texts: g } = D();
393
397
  return /* @__PURE__ */ e(b, {
394
398
  onClose: o,
395
399
  ref: r,
@@ -399,12 +403,12 @@ const C = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
399
403
  children: (param)=>/* @__PURE__ */ {
400
404
  let { closeModal: v, modalTitleId: L } = param;
401
405
  var _ref;
402
- return e(k, {
406
+ return e(I, {
403
407
  title: t,
404
408
  subtitle: i,
405
- description: a,
409
+ description: l,
406
410
  modalTitleId: L,
407
- button: l ? /* @__PURE__ */ e(z, {
411
+ button: a ? /* @__PURE__ */ e(z, {
408
412
  onPress: ()=>{
409
413
  d.current && (s == null || s(c !== null && c !== void 0 ? c : "")), v();
410
414
  },
@@ -416,14 +420,14 @@ const C = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
416
420
  name: "sheetselection",
417
421
  value: c,
418
422
  onChange: (R)=>{
419
- h(R), d.current = !0, !l && (s == null || s(R), setTimeout(()=>{
423
+ h(R), d.current = !0, !a && (s == null || s(R), setTimeout(()=>{
420
424
  v();
421
425
  }, 200));
422
426
  },
423
- children: /* @__PURE__ */ e(le, {
427
+ children: /* @__PURE__ */ e(ae, {
424
428
  children: f.map((R)=>/* @__PURE__ */ {
425
429
  var _R_title;
426
- return e(ae, {
430
+ return e(le, {
427
431
  title: (_R_title = R.title) !== null && _R_title !== void 0 ? _R_title : "",
428
432
  description: R.description,
429
433
  asset: R.asset,
@@ -436,8 +440,8 @@ const C = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
436
440
  });
437
441
  }
438
442
  });
439
- }), Ue = /*#__PURE__*/ n.forwardRef((param, u)=>{
440
- let { title: t, subtitle: i, description: a, items: f, onClose: p, onSelect: o, dataAttributes: s } = param;
443
+ }), Xe = /*#__PURE__*/ n.forwardRef((param, u)=>{
444
+ let { title: t, subtitle: i, description: l, items: f, onClose: p, onSelect: o, dataAttributes: s } = param;
441
445
  const { isDarkMode: m } = D();
442
446
  return /* @__PURE__ */ e(b, {
443
447
  onClose: p,
@@ -445,17 +449,17 @@ const C = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
445
449
  dataAttributes: _object_spread({
446
450
  "component-name": "ActionsListSheet"
447
451
  }, s),
448
- children: (param)=>/* @__PURE__ */ {
452
+ children: (param)=>{
449
453
  let { closeModal: r, modalTitleId: c } = param;
450
- return e(k, {
454
+ return /* @__PURE__ */ e(I, {
451
455
  title: t,
452
456
  subtitle: i,
453
- description: a,
457
+ description: l,
454
458
  modalTitleId: c,
455
459
  children: /* @__PURE__ */ e(Y, {
456
- children: f.map((param)=>/* @__PURE__ */ {
457
- let { id: h, style: d, title: l, icon: g } = param;
458
- return e(de, {
460
+ children: f.map((param)=>{
461
+ let { id: h, style: d, title: a, icon: g } = param;
462
+ return /* @__PURE__ */ e(de, {
459
463
  onPress: ()=>{
460
464
  o == null || o(h), r();
461
465
  },
@@ -476,7 +480,7 @@ const C = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
476
480
  /* @__PURE__ */ e(x, {
477
481
  regular: !0,
478
482
  color: d === "destructive" ? S.colors.textLinkDanger : S.colors.textPrimary,
479
- children: l
483
+ children: a
480
484
  })
481
485
  ]
482
486
  })
@@ -486,8 +490,8 @@ const C = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
486
490
  });
487
491
  }
488
492
  });
489
- }), We = /*#__PURE__*/ n.forwardRef((param, s)=>{
490
- let { title: t, subtitle: i, description: a, items: f, onClose: p, dataAttributes: o } = param;
493
+ }), Ze = /*#__PURE__*/ n.forwardRef((param, s)=>{
494
+ let { title: t, subtitle: i, description: l, items: f, onClose: p, dataAttributes: o } = param;
491
495
  const { isDarkMode: u } = D();
492
496
  return /* @__PURE__ */ e(b, {
493
497
  onClose: p,
@@ -495,12 +499,12 @@ const C = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
495
499
  dataAttributes: _object_spread({
496
500
  "component-name": "InfoSheet"
497
501
  }, o),
498
- children: (param)=>/* @__PURE__ */ {
502
+ children: (param)=>{
499
503
  let { modalTitleId: m } = param;
500
- return e(k, {
504
+ return /* @__PURE__ */ e(I, {
501
505
  title: t,
502
506
  subtitle: i,
503
- description: a,
507
+ description: l,
504
508
  modalTitleId: m,
505
509
  children: /* @__PURE__ */ e(E, {
506
510
  paddingBottom: 16,
@@ -544,17 +548,17 @@ const C = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
544
548
  });
545
549
  }
546
550
  });
547
- }), Xe = /*#__PURE__*/ n.forwardRef((param, r)=>{
548
- let { title: t, subtitle: i, description: a, button: f, secondaryButton: p, buttonLink: o, onClose: s, dataAttributes: u, onPressButton: m } = param;
549
- const c = (d, l)=>()=>{
550
- m == null || m(l), d();
551
+ }), er = /*#__PURE__*/ n.forwardRef((param, r)=>{
552
+ let { title: t, subtitle: i, description: l, button: f, secondaryButton: p, buttonLink: o, onClose: s, dataAttributes: u, onPressButton: m } = param;
553
+ const c = (d, a)=>()=>{
554
+ m == null || m(a), d();
551
555
  }, h = (_param)=>{
552
- var { text: d } = _param, l = _object_without_properties(_param, [
556
+ var { text: d } = _param, a = _object_without_properties(_param, [
553
557
  "text"
554
558
  ]);
555
559
  return _object_spread({
556
560
  children: d
557
- }, l);
561
+ }, a);
558
562
  };
559
563
  return /* @__PURE__ */ e(b, {
560
564
  onClose: s,
@@ -562,24 +566,24 @@ const C = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
562
566
  dataAttributes: _object_spread({
563
567
  "component-name": "ActionsSheet"
564
568
  }, u),
565
- children: (param)=>/* @__PURE__ */ {
566
- let { modalTitleId: d, closeModal: l } = param;
567
- return e(k, {
569
+ children: (param)=>{
570
+ let { modalTitleId: d, closeModal: a } = param;
571
+ return /* @__PURE__ */ e(I, {
568
572
  title: t,
569
573
  subtitle: i,
570
- description: a,
574
+ description: l,
571
575
  modalTitleId: d,
572
576
  button: /* @__PURE__ */ e(z, _object_spread_props(_object_spread({}, h(f)), {
573
- onPress: c(l, "PRIMARY")
577
+ onPress: c(a, "PRIMARY")
574
578
  })),
575
579
  secondaryButton: p ? /* @__PURE__ */ e(pe, _object_spread_props(_object_spread({}, h(p)), {
576
- onPress: c(l, "SECONDARY")
580
+ onPress: c(a, "SECONDARY")
577
581
  })) : void 0,
578
582
  link: o ? /* @__PURE__ */ e(ge, _object_spread_props(_object_spread({}, h(o)), {
579
- onPress: c(l, "LINK")
583
+ onPress: c(a, "LINK")
580
584
  })) : void 0
581
585
  });
582
586
  }
583
587
  });
584
- }), Ze = b;
585
- export { Ue as ActionsListSheet, Xe as ActionsSheet, We as InfoSheet, Qe as RadioListSheet, k as SheetBody, Ze as default };
588
+ }), rr = b;
589
+ export { Xe as ActionsListSheet, er as ActionsSheet, Ze as InfoSheet, We as RadioListSheet, I as SheetBody, rr as default };
@@ -55,9 +55,9 @@ import r from "./skeleton-base.js";
55
55
  import c from "./stack.js";
56
56
  import { getPrefixedDataAttributes as d } from "./utils/dom.js";
57
57
  import { row as m, circle as h, line as u, animation as k } from "./skeletons.css-mistica.js";
58
- const o = (param)=>/* @__PURE__ */ {
58
+ const o = (param)=>{
59
59
  let { children: n, ariaLabel: t, dataAttributes: i, width: a, height: l } = param;
60
- return e("div", _object_spread_props(_object_spread({
60
+ return /* @__PURE__ */ e("div", _object_spread_props(_object_spread({
61
61
  className: k,
62
62
  role: "status",
63
63
  "aria-busy": !0,
@@ -70,9 +70,9 @@ const o = (param)=>/* @__PURE__ */ {
70
70
  }, d(i)), {
71
71
  children: n
72
72
  }));
73
- }, g = (param)=>/* @__PURE__ */ {
73
+ }, g = (param)=>{
74
74
  let { width: n = "100%", ariaLabel: t, dataAttributes: i } = param;
75
- return e(o, {
75
+ return /* @__PURE__ */ e(o, {
76
76
  width: n,
77
77
  ariaLabel: t,
78
78
  dataAttributes: _object_spread({
@@ -82,9 +82,9 @@ const o = (param)=>/* @__PURE__ */ {
82
82
  width: "100%"
83
83
  })
84
84
  });
85
- }, A = (param)=>/* @__PURE__ */ {
85
+ }, A = (param)=>{
86
86
  let { ariaLabel: n, dataAttributes: t } = param;
87
- return e(o, {
87
+ return /* @__PURE__ */ e(o, {
88
88
  width: "100%",
89
89
  ariaLabel: n,
90
90
  dataAttributes: _object_spread({
@@ -101,9 +101,9 @@ const o = (param)=>/* @__PURE__ */ {
101
101
  ]
102
102
  })
103
103
  });
104
- }, x = (param)=>/* @__PURE__ */ {
104
+ }, x = (param)=>{
105
105
  let { ariaLabel: n, size: t = 40, dataAttributes: i } = param;
106
- return e(o, {
106
+ return /* @__PURE__ */ e(o, {
107
107
  width: t,
108
108
  height: t,
109
109
  ariaLabel: n,
@@ -116,9 +116,9 @@ const o = (param)=>/* @__PURE__ */ {
116
116
  radius: "50%"
117
117
  })
118
118
  });
119
- }, N = (param)=>/* @__PURE__ */ {
119
+ }, N = (param)=>{
120
120
  let { width: n = "100%", ariaLabel: t, dataAttributes: i } = param;
121
- return e(o, {
121
+ return /* @__PURE__ */ e(o, {
122
122
  width: n,
123
123
  ariaLabel: t,
124
124
  dataAttributes: _object_spread({
@@ -140,9 +140,9 @@ const o = (param)=>/* @__PURE__ */ {
140
140
  ]
141
141
  })
142
142
  });
143
- }, R = (param)=>/* @__PURE__ */ {
143
+ }, R = (param)=>{
144
144
  let { width: n = "100%", height: t = "100%", ariaLabel: i, dataAttributes: a, noBorderRadius: l = !1 } = param;
145
- return e(o, {
145
+ return /* @__PURE__ */ e(o, {
146
146
  height: t,
147
147
  width: n,
148
148
  ariaLabel: i,
package/dist-es/stack.js CHANGED
@@ -65,9 +65,9 @@ const a = (t)=>typeof t == "number" ? `${t}px` : `space-${t}`, k = (t)=>{
65
65
  [r.spaceDesktop]: a(t.desktop)
66
66
  };
67
67
  return t.tablet && (e[r.spaceTablet] = a(t.tablet)), e;
68
- }, y = (param)=>/* @__PURE__ */ {
68
+ }, y = (param)=>{
69
69
  let { space: t, className: e, children: o, role: i, "aria-labelledby": s, dataAttributes: n } = param;
70
- return l("div", _object_spread_props(_object_spread({
70
+ return /* @__PURE__ */ l("div", _object_spread_props(_object_spread({
71
71
  className: f(e, typeof t == "string" ? b : d),
72
72
  style: u(k(t)),
73
73
  role: i,