@telefonica/mistica 14.23.0 → 14.24.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.
package/dist-es/sheet.js CHANGED
@@ -77,15 +77,15 @@ function _object_without_properties_loose(source, excluded) {
77
77
  }
78
78
  return target;
79
79
  }
80
- import { jsx as e, jsxs as v, Fragment as O } from "react/jsx-runtime";
81
- import L from "classnames";
82
- import * as o from "react";
80
+ import { jsx as e, jsxs as y, Fragment as O } from "react/jsx-runtime";
81
+ import N from "classnames";
82
+ import * as n from "react";
83
83
  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";
84
84
  import te from "./focus-trap.js";
85
- import { useTheme as D, useAriaId as ne, useIsInViewport as N, useScreenSize as C } from "./hooks.js";
86
- import { useSetModalStateEffect as oe } from "./modal-context-provider.js";
85
+ import { useTheme as D, useAriaId as oe, useIsInViewport as B, useScreenSize as P } from "./hooks.js";
86
+ import { useSetModalStateEffect as ne } from "./modal-context-provider.js";
87
87
  import { Portal as ie } from "./portal.js";
88
- import { Text5 as se, Text3 as T, Text2 as P } from "./text.js";
88
+ import { Text5 as se, Text3 as x, Text2 as T } from "./text.js";
89
89
  import { vars as S } from "./skins/skin-contract.css-mistica.js";
90
90
  import { RadioGroup as ce } from "./radio-button.js";
91
91
  import { RowList as le, Row as ae } from "./list.js";
@@ -96,42 +96,42 @@ import E from "./box.js";
96
96
  import de from "./touchable.js";
97
97
  import ue from "./inline.js";
98
98
  import me from "./circle.js";
99
- import B from "./divider.js";
99
+ import A from "./divider.js";
100
100
  import { getPrefixedDataAttributes as he, getScrollableParentElement as fe } from "./utils/dom.js";
101
101
  import { ButtonPrimary as z, ButtonSecondary as pe, ButtonLink as ge } from "./button.js";
102
102
  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
- const A = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>{
106
+ const C = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>{
107
107
  let { closeModal: t } = param;
108
- const [i, h] = o.useState(0), f = o.useRef(!1), p = o.useRef(0), n = o.useRef(0), s = o.useRef(0), d = o.useRef(0), { isDesktopOrBigger: u } = C(), r = o.useCallback((m)=>{
109
- f.current = !0, p.current = 0, n.current = Date.now(), s.current = A(m);
110
- }, []), c = o.useCallback(()=>{
111
- f.current = !1, h(0);
108
+ 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)=>{
109
+ f.current = !0, p.current = 0, o.current = Date.now(), s.current = C(h);
110
+ }, []), c = n.useCallback(()=>{
111
+ f.current = !1, a(0);
112
112
  }, []);
113
- return o.useEffect(()=>{
114
- if (u) return;
115
- const m = (l)=>{
113
+ return n.useEffect(()=>{
114
+ if (m) return;
115
+ const h = (l)=>{
116
116
  if (f.current) {
117
117
  if (p.current < 3) {
118
118
  p.current++;
119
119
  return;
120
120
  }
121
- d.current = A(l), h(d.current - s.current);
121
+ u.current = C(l), a(u.current - s.current);
122
122
  }
123
- }, a = ()=>{
123
+ }, d = ()=>{
124
124
  if (!f.current) return;
125
- const l = Date.now() - n.current, g = d.current - s.current, y = g / l;
126
- f.current = !1, h(0), g > 50 && (d.current > window.innerHeight * 0.75 || y > 0.5) && t();
125
+ const l = Date.now() - o.current, g = u.current - s.current, v = g / l;
126
+ f.current = !1, a(0), g > 50 && (u.current > window.innerHeight * 0.75 || v > 0.5) && t();
127
127
  };
128
- return document.addEventListener("touchmove", m), document.addEventListener("touchend", a), document.addEventListener("mousemove", m), document.addEventListener("mouseup", a), ()=>{
129
- document.removeEventListener("touchmove", m), document.removeEventListener("touchend", a), document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", a);
128
+ return document.addEventListener("touchmove", h), document.addEventListener("touchend", d), document.addEventListener("mousemove", h), document.addEventListener("mouseup", d), ()=>{
129
+ document.removeEventListener("touchmove", h), document.removeEventListener("touchend", d), document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", d);
130
130
  };
131
131
  }, [
132
132
  t,
133
- u
134
- ]), u ? {} : {
133
+ m
134
+ ]), m ? {} : {
135
135
  onTouchStart: r,
136
136
  onMouseDown: r,
137
137
  style: i ? {
@@ -145,7 +145,7 @@ const A = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
145
145
  transition: "none"
146
146
  } : void 0
147
147
  };
148
- }, Ee = ()=>(o.useLayoutEffect(()=>{
148
+ }, Ee = ()=>(n.useLayoutEffect(()=>{
149
149
  const i = window.scrollY;
150
150
  return document.body.style.top = `-${i}px`, ()=>{
151
151
  process.env.NODE_ENV !== "test" && window.scrollTo(0, i);
@@ -174,59 +174,59 @@ const A = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
174
174
  closing: {
175
175
  transitionEnd: "closed"
176
176
  }
177
- }, we = (t, i)=>be[t][i] || t, b = /*#__PURE__*/ o.forwardRef((param, f)=>{
178
- let { onClose: t , children: i , dataAttributes: h } = param;
179
- const { texts: p } = D(), [n, s] = o.useReducer(we, "closed"), d = o.useRef(!1), u = ne(), r = o.useCallback((y)=>{
180
- y.target === y.currentTarget && s("transitionEnd");
177
+ }, we = (t, i)=>be[t][i] || t, b = /*#__PURE__*/ n.forwardRef((param, f)=>{
178
+ let { onClose: t , children: i , dataAttributes: a } = param;
179
+ const { texts: p } = D(), [o, s] = n.useReducer(we, "closed"), u = n.useRef(!1), m = oe(), r = n.useCallback((v)=>{
180
+ v.target === v.currentTarget && s("transitionEnd");
181
181
  }, []), c = ()=>{
182
- n === "open" && s("close");
182
+ o === "open" && s("close");
183
183
  };
184
- o.useEffect(()=>{
185
- if (n === "opening" || n === "closing") {
186
- const y = setTimeout(()=>{
184
+ n.useEffect(()=>{
185
+ if (o === "opening" || o === "closing") {
186
+ const v = setTimeout(()=>{
187
187
  s("transitionEnd");
188
188
  }, H);
189
- return ()=>clearTimeout(y);
189
+ return ()=>clearTimeout(v);
190
190
  }
191
191
  }, [
192
- n
193
- ]), o.useEffect(()=>{
194
- n === "closed" ? d.current ? t == null || t() : s("open") : d.current = !0;
192
+ o
193
+ ]), n.useEffect(()=>{
194
+ o === "closed" ? u.current ? t == null || t() : s("open") : u.current = !0;
195
195
  }, [
196
- n,
196
+ o,
197
197
  t
198
198
  ]);
199
199
  const _Se = Se({
200
200
  closeModal: c
201
- }), { onScroll: m , overlayStyle: a } = _Se, l = _object_without_properties(_Se, [
201
+ }), { onScroll: h , overlayStyle: d } = _Se, l = _object_without_properties(_Se, [
202
202
  "onScroll",
203
203
  "overlayStyle"
204
204
  ]);
205
- oe();
205
+ ne();
206
206
  const g = Ee();
207
- return n === "closed" ? null : /* @__PURE__ */ e(ie, {
208
- children: /* @__PURE__ */ v(te, {
207
+ return o === "closed" ? null : /* @__PURE__ */ e(ie, {
208
+ children: /* @__PURE__ */ y(te, {
209
209
  children: [
210
210
  g,
211
211
  /* @__PURE__ */ e("div", {
212
- className: L(V, {
213
- [j]: n === "closing"
212
+ className: N(V, {
213
+ [j]: o === "closing"
214
214
  }),
215
- style: a,
215
+ style: d,
216
216
  onClick: c
217
217
  }),
218
218
  /* @__PURE__ */ e("div", _object_spread_props(_object_spread({
219
- className: L(F, {
220
- [$]: n === "closing"
219
+ className: N(F, {
220
+ [$]: o === "closing"
221
221
  }),
222
222
  onTransitionEnd: r,
223
223
  onAnimationEnd: r
224
- }, l, he(h, "Sheet")), {
224
+ }, l, he(a, "Sheet")), {
225
225
  ref: f,
226
- children: /* @__PURE__ */ v("div", {
226
+ children: /* @__PURE__ */ y("div", {
227
227
  className: G,
228
228
  children: [
229
- /* @__PURE__ */ v("div", {
229
+ /* @__PURE__ */ y("div", {
230
230
  className: K,
231
231
  children: [
232
232
  /* @__PURE__ */ e("div", {
@@ -238,12 +238,12 @@ const A = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
238
238
  /* @__PURE__ */ e("section", {
239
239
  role: "dialog",
240
240
  "aria-modal": "true",
241
- "aria-labelledby": u,
242
- onScroll: m,
241
+ "aria-labelledby": m,
242
+ onScroll: h,
243
243
  className: J,
244
244
  children: typeof i == "function" ? i({
245
245
  closeModal: c,
246
- modalTitleId: u
246
+ modalTitleId: m
247
247
  }) : i
248
248
  })
249
249
  ]
@@ -269,24 +269,24 @@ const A = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
269
269
  })
270
270
  });
271
271
  }), k = (param)=>{
272
- let { title: t , subtitle: i , description: h , modalTitleId: f , button: p , secondaryButton: n , link: s , children: d } = param;
273
- const u = o.useRef(null), r = o.useRef(null), c = o.useRef(null);
274
- o.useEffect(()=>{
272
+ let { title: t , subtitle: i , description: a , modalTitleId: f , button: p , secondaryButton: o , link: s , children: u } = param;
273
+ const m = n.useRef(null), r = n.useRef(null), c = n.useRef(null);
274
+ n.useEffect(()=>{
275
275
  r.current && (c.current = fe(r.current));
276
276
  }, []);
277
- const m = !N(u, !0, {
277
+ const h = !B(m, !0, {
278
278
  root: c.current
279
- }), a = !N(r, !0, {
279
+ }), d = !B(r, !0, {
280
280
  rootMargin: "1px",
281
281
  // bottomScrollSignal div has 0px height so we need a 1px margin to trigger the intersection observer
282
282
  root: c.current
283
- }), l = !!p || !!n || !!s;
284
- return /* @__PURE__ */ v(O, {
283
+ }), l = !!p || !!o || !!s;
284
+ return /* @__PURE__ */ y(O, {
285
285
  children: [
286
286
  /* @__PURE__ */ e("div", {
287
- ref: u
287
+ ref: m
288
288
  }),
289
- /* @__PURE__ */ v("div", {
289
+ /* @__PURE__ */ y("div", {
290
290
  className: W,
291
291
  children: [
292
292
  t ? /* @__PURE__ */ e(E, {
@@ -309,7 +309,7 @@ const A = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
309
309
  desktop: 40
310
310
  }
311
311
  }),
312
- m && /* @__PURE__ */ e(B, {})
312
+ h && /* @__PURE__ */ e(A, {})
313
313
  ]
314
314
  }),
315
315
  /* @__PURE__ */ e("div", {
@@ -320,50 +320,61 @@ const A = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
320
320
  mobile: 0
321
321
  },
322
322
  children: /* @__PURE__ */ e(I, {
323
- children: /* @__PURE__ */ v(w, {
323
+ children: /* @__PURE__ */ y(w, {
324
324
  space: 8,
325
325
  children: [
326
- i || h ? /* @__PURE__ */ v(w, {
326
+ i || a ? /* @__PURE__ */ y(w, {
327
327
  space: {
328
328
  mobile: 8,
329
329
  desktop: 16
330
330
  },
331
331
  children: [
332
- i && /* @__PURE__ */ e(T, {
332
+ i && /* @__PURE__ */ e(x, {
333
333
  as: "p",
334
334
  regular: !0,
335
335
  children: i
336
336
  }),
337
- h && /* @__PURE__ */ e(P, {
337
+ a && (Array.isArray(a) ? /* @__PURE__ */ e(T, {
338
+ as: "div",
339
+ regular: !0,
340
+ color: S.colors.textSecondary,
341
+ children: a.map((g, v)=>/* @__PURE__ */ e("p", {
342
+ style: {
343
+ margin: 0,
344
+ marginBottom: v < a.length - 1 ? "1em" : void 0
345
+ },
346
+ children: g
347
+ }, v))
348
+ }) : /* @__PURE__ */ e(T, {
338
349
  as: "p",
339
350
  regular: !0,
340
351
  color: S.colors.textSecondary,
341
- children: h
342
- })
352
+ children: a
353
+ }))
343
354
  ]
344
355
  }) : null,
345
- d
356
+ u
346
357
  ]
347
358
  })
348
359
  })
349
360
  })
350
361
  }),
351
- l && /* @__PURE__ */ v("div", {
362
+ l && /* @__PURE__ */ y("div", {
352
363
  className: Z,
353
364
  children: [
354
- a && /* @__PURE__ */ e(B, {}),
365
+ d && /* @__PURE__ */ e(A, {}),
355
366
  /* @__PURE__ */ e(E, {
356
367
  paddingY: {
357
368
  mobile: 16,
358
369
  desktop: 40
359
370
  },
360
371
  children: /* @__PURE__ */ e(I, {
361
- children: /* @__PURE__ */ v(Re, {
372
+ children: /* @__PURE__ */ y(Re, {
362
373
  align: "full-width",
363
374
  link: s,
364
375
  children: [
365
376
  p,
366
- n
377
+ o
367
378
  ]
368
379
  })
369
380
  })
@@ -375,37 +386,37 @@ const A = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
375
386
  })
376
387
  ]
377
388
  });
378
- }, Qe = /*#__PURE__*/ o.forwardRef((param, r)=>{
379
- let { title: t , subtitle: i , description: h , items: f , selectedId: p , onClose: n , onSelect: s , button: d , dataAttributes: u } = param;
380
- const [c, m] = o.useState(p), a = o.useRef(!1), { isDesktopOrBigger: l } = C(), { texts: g } = D();
389
+ }, Qe = /*#__PURE__*/ n.forwardRef((param, r)=>{
390
+ let { title: t , subtitle: i , description: a , items: f , selectedId: p , onClose: o , onSelect: s , button: u , dataAttributes: m } = param;
391
+ const [c, h] = n.useState(p), d = n.useRef(!1), { isDesktopOrBigger: l } = P(), { texts: g } = D();
381
392
  var _ref, _R_title;
382
393
  return /* @__PURE__ */ e(b, {
383
- onClose: n,
394
+ onClose: o,
384
395
  ref: r,
385
- dataAttributes: _object_spread_props(_object_spread({}, u), {
396
+ dataAttributes: _object_spread_props(_object_spread({}, m), {
386
397
  "component-name": "RadioListSheet"
387
398
  }),
388
399
  children: (param)=>/* @__PURE__ */ {
389
- let { closeModal: y , modalTitleId: x } = param;
400
+ let { closeModal: v , modalTitleId: L } = param;
390
401
  return e(k, {
391
402
  title: t,
392
403
  subtitle: i,
393
- description: h,
394
- modalTitleId: x,
404
+ description: a,
405
+ modalTitleId: L,
395
406
  button: l ? /* @__PURE__ */ e(z, {
396
407
  onPress: ()=>{
397
- a.current && (s == null || s(c !== null && c !== void 0 ? c : "")), y();
408
+ d.current && (s == null || s(c !== null && c !== void 0 ? c : "")), v();
398
409
  },
399
- children: (_ref = d == null ? void 0 : d.text) !== null && _ref !== void 0 ? _ref : g.sheetConfirmButton
410
+ children: (_ref = u == null ? void 0 : u.text) !== null && _ref !== void 0 ? _ref : g.sheetConfirmButton
400
411
  }) : void 0,
401
412
  children: /* @__PURE__ */ e(Y, {
402
413
  children: /* @__PURE__ */ e(ce, {
403
- "aria-labelledby": x,
414
+ "aria-labelledby": L,
404
415
  name: "sheetselection",
405
416
  value: c,
406
417
  onChange: (R)=>{
407
- m(R), a.current = !0, !l && (s == null || s(R), setTimeout(()=>{
408
- y();
418
+ h(R), d.current = !0, !l && (s == null || s(R), setTimeout(()=>{
419
+ v();
409
420
  }, 200));
410
421
  },
411
422
  children: /* @__PURE__ */ e(le, {
@@ -421,12 +432,12 @@ const A = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
421
432
  });
422
433
  }
423
434
  });
424
- }), Ue = /*#__PURE__*/ o.forwardRef((param, d)=>{
425
- let { title: t , subtitle: i , description: h , items: f , onClose: p , onSelect: n , dataAttributes: s } = param;
426
- const { isDarkMode: u } = D();
435
+ }), Ue = /*#__PURE__*/ n.forwardRef((param, u)=>{
436
+ let { title: t , subtitle: i , description: a , items: f , onClose: p , onSelect: o , dataAttributes: s } = param;
437
+ const { isDarkMode: m } = D();
427
438
  return /* @__PURE__ */ e(b, {
428
439
  onClose: p,
429
- ref: d,
440
+ ref: u,
430
441
  dataAttributes: _object_spread_props(_object_spread({}, s), {
431
442
  "component-name": "ActionsListSheet"
432
443
  }),
@@ -435,64 +446,64 @@ const A = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
435
446
  return e(k, {
436
447
  title: t,
437
448
  subtitle: i,
438
- description: h,
449
+ description: a,
439
450
  modalTitleId: c,
440
451
  children: /* @__PURE__ */ e(Y, {
441
452
  children: f.map((param)=>/* @__PURE__ */ {
442
- let { id: m , style: a , title: l , icon: g } = param;
453
+ let { id: h , style: d , title: l , icon: g } = param;
443
454
  return e(de, {
444
455
  onPress: ()=>{
445
- n == null || n(m), r();
456
+ o == null || o(h), r();
446
457
  },
447
- children: /* @__PURE__ */ v("div", {
458
+ children: /* @__PURE__ */ y("div", {
448
459
  className: ee,
449
460
  children: [
450
461
  g && /* @__PURE__ */ e(E, {
451
462
  paddingRight: 16,
452
463
  children: g.Icon ? /* @__PURE__ */ e(g.Icon, {
453
464
  size: 24,
454
- color: a === "destructive" ? S.colors.textLinkDanger : S.colors.neutralHigh
465
+ color: d === "destructive" ? S.colors.textLinkDanger : S.colors.neutralHigh
455
466
  }) : /* @__PURE__ */ e(M, {
456
467
  circular: !0,
457
- src: u && g.urlDark ? g.urlDark : g.url,
468
+ src: m && g.urlDark ? g.urlDark : g.url,
458
469
  width: 40
459
470
  })
460
471
  }),
461
- /* @__PURE__ */ e(T, {
472
+ /* @__PURE__ */ e(x, {
462
473
  regular: !0,
463
- color: a === "destructive" ? S.colors.textLinkDanger : S.colors.textPrimary,
474
+ color: d === "destructive" ? S.colors.textLinkDanger : S.colors.textPrimary,
464
475
  children: l
465
476
  })
466
477
  ]
467
478
  })
468
- }, m);
479
+ }, h);
469
480
  })
470
481
  })
471
482
  });
472
483
  }
473
484
  });
474
- }), We = /*#__PURE__*/ o.forwardRef((param, s)=>{
475
- let { title: t , subtitle: i , description: h , items: f , onClose: p , dataAttributes: n } = param;
476
- const { isDarkMode: d } = D();
485
+ }), We = /*#__PURE__*/ n.forwardRef((param, s)=>{
486
+ let { title: t , subtitle: i , description: a , items: f , onClose: p , dataAttributes: o } = param;
487
+ const { isDarkMode: u } = D();
477
488
  return /* @__PURE__ */ e(b, {
478
489
  onClose: p,
479
490
  ref: s,
480
- dataAttributes: _object_spread_props(_object_spread({}, n), {
491
+ dataAttributes: _object_spread_props(_object_spread({}, o), {
481
492
  "component-name": "InfoSheet"
482
493
  }),
483
494
  children: (param)=>/* @__PURE__ */ {
484
- let { modalTitleId: u } = param;
495
+ let { modalTitleId: m } = param;
485
496
  return e(k, {
486
497
  title: t,
487
498
  subtitle: i,
488
- description: h,
489
- modalTitleId: u,
499
+ description: a,
500
+ modalTitleId: m,
490
501
  children: /* @__PURE__ */ e(E, {
491
502
  paddingBottom: 16,
492
503
  children: /* @__PURE__ */ e(w, {
493
504
  space: 16,
494
505
  role: "list",
495
- children: f.map((r, c)=>/* @__PURE__ */ v(ue, {
506
+ children: f.map((r, c)=>/* @__PURE__ */ y(ue, {
496
507
  space: 8,
497
508
  children: [
498
509
  /* @__PURE__ */ e("div", {
@@ -503,19 +514,19 @@ const A = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
503
514
  }) : r.icon.Icon ? /* @__PURE__ */ e(r.icon.Icon, {
504
515
  size: r.icon.type === "small" ? 16 : 24
505
516
  }) : /* @__PURE__ */ e(M, {
506
- src: d && r.icon.urlDark ? r.icon.urlDark : r.icon.url,
517
+ src: u && r.icon.urlDark ? r.icon.urlDark : r.icon.url,
507
518
  width: r.icon.type === "small" ? 16 : 24,
508
519
  height: r.icon.type === "small" ? 16 : 24
509
520
  })
510
521
  }),
511
- /* @__PURE__ */ v(w, {
522
+ /* @__PURE__ */ y(w, {
512
523
  space: 2,
513
524
  children: [
514
- /* @__PURE__ */ e(T, {
525
+ /* @__PURE__ */ e(x, {
515
526
  regular: !0,
516
527
  children: r.title
517
528
  }),
518
- r.description && /* @__PURE__ */ e(P, {
529
+ r.description && /* @__PURE__ */ e(T, {
519
530
  regular: !0,
520
531
  color: S.colors.textSecondary,
521
532
  children: r.description
@@ -529,38 +540,38 @@ const A = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
529
540
  });
530
541
  }
531
542
  });
532
- }), Xe = /*#__PURE__*/ o.forwardRef((param, r)=>{
533
- let { title: t , subtitle: i , description: h , button: f , secondaryButton: p , buttonLink: n , onClose: s , dataAttributes: d , onPressButton: u } = param;
534
- const c = (a, l)=>()=>{
535
- u == null || u(l), a();
536
- }, m = (_param)=>{
537
- var { text: a } = _param, l = _object_without_properties(_param, [
543
+ }), Xe = /*#__PURE__*/ n.forwardRef((param, r)=>{
544
+ let { title: t , subtitle: i , description: a , button: f , secondaryButton: p , buttonLink: o , onClose: s , dataAttributes: u , onPressButton: m } = param;
545
+ const c = (d, l)=>()=>{
546
+ m == null || m(l), d();
547
+ }, h = (_param)=>{
548
+ var { text: d } = _param, l = _object_without_properties(_param, [
538
549
  "text"
539
550
  ]);
540
551
  return _object_spread({
541
- children: a
552
+ children: d
542
553
  }, l);
543
554
  };
544
555
  return /* @__PURE__ */ e(b, {
545
556
  onClose: s,
546
557
  ref: r,
547
- dataAttributes: _object_spread_props(_object_spread({}, d), {
558
+ dataAttributes: _object_spread_props(_object_spread({}, u), {
548
559
  "component-name": "ActionsSheet"
549
560
  }),
550
561
  children: (param)=>/* @__PURE__ */ {
551
- let { modalTitleId: a , closeModal: l } = param;
562
+ let { modalTitleId: d , closeModal: l } = param;
552
563
  return e(k, {
553
564
  title: t,
554
565
  subtitle: i,
555
- description: h,
556
- modalTitleId: a,
557
- button: /* @__PURE__ */ e(z, _object_spread_props(_object_spread({}, m(f)), {
566
+ description: a,
567
+ modalTitleId: d,
568
+ button: /* @__PURE__ */ e(z, _object_spread_props(_object_spread({}, h(f)), {
558
569
  onPress: c(l, "PRIMARY")
559
570
  })),
560
- secondaryButton: p ? /* @__PURE__ */ e(pe, _object_spread_props(_object_spread({}, m(p)), {
571
+ secondaryButton: p ? /* @__PURE__ */ e(pe, _object_spread_props(_object_spread({}, h(p)), {
561
572
  onPress: c(l, "SECONDARY")
562
573
  })) : void 0,
563
- link: n ? /* @__PURE__ */ e(ge, _object_spread_props(_object_spread({}, m(n)), {
574
+ link: o ? /* @__PURE__ */ e(ge, _object_spread_props(_object_spread({}, h(o)), {
564
575
  onPress: c(l, "LINK")
565
576
  })) : void 0
566
577
  });