@telefonica/mistica 15.16.3 → 15.17.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 (92) hide show
  1. package/css/mistica.css +1 -1
  2. package/css/roboto.css +102 -34
  3. package/dist/box.d.ts +1 -0
  4. package/dist/box.js +11 -10
  5. package/dist/chip.js +21 -22
  6. package/dist/dialog.js +53 -51
  7. package/dist/generated/mistica-icons/icon-box-star-filled.d.ts +4 -0
  8. package/dist/generated/mistica-icons/icon-box-star-filled.js +121 -0
  9. package/dist/generated/mistica-icons/icon-box-star-light.d.ts +4 -0
  10. package/dist/generated/mistica-icons/icon-box-star-light.js +117 -0
  11. package/dist/generated/mistica-icons/icon-box-star-regular.d.ts +4 -0
  12. package/dist/generated/mistica-icons/icon-box-star-regular.js +117 -0
  13. package/dist/generated/mistica-icons/icon-high-priority-filled.d.ts +4 -0
  14. package/dist/generated/mistica-icons/icon-high-priority-filled.js +111 -0
  15. package/dist/generated/mistica-icons/icon-high-priority-light.d.ts +4 -0
  16. package/dist/generated/mistica-icons/icon-high-priority-light.js +111 -0
  17. package/dist/generated/mistica-icons/icon-high-priority-regular.d.ts +4 -0
  18. package/dist/generated/mistica-icons/icon-high-priority-regular.js +111 -0
  19. package/dist/generated/mistica-icons/icon-mms-filled.d.ts +4 -0
  20. package/dist/generated/mistica-icons/icon-mms-filled.js +122 -0
  21. package/dist/generated/mistica-icons/icon-mms-light.d.ts +4 -0
  22. package/dist/generated/mistica-icons/icon-mms-light.js +134 -0
  23. package/dist/generated/mistica-icons/icon-mms-regular.d.ts +4 -0
  24. package/dist/generated/mistica-icons/icon-mms-regular.js +134 -0
  25. package/dist/generated/mistica-icons/icon-vivo-valoriza-filled.d.ts +4 -0
  26. package/dist/generated/mistica-icons/icon-vivo-valoriza-filled.js +111 -0
  27. package/dist/generated/mistica-icons/icon-vivo-valoriza-light.d.ts +4 -0
  28. package/dist/generated/mistica-icons/icon-vivo-valoriza-light.js +117 -0
  29. package/dist/generated/mistica-icons/icon-vivo-valoriza-regular.d.ts +4 -0
  30. package/dist/generated/mistica-icons/icon-vivo-valoriza-regular.js +117 -0
  31. package/dist/generated/mistica-icons/icons-keywords.js +31 -0
  32. package/dist/index.d.ts +12 -0
  33. package/dist/index.js +48 -0
  34. package/dist/list.d.ts +1 -0
  35. package/dist/list.js +163 -157
  36. package/dist/package-version.js +1 -1
  37. package/dist/select.js +103 -95
  38. package/dist/skins/blau.js +96 -8
  39. package/dist/skins/defaults.js +98 -10
  40. package/dist/skins/movistar.js +94 -6
  41. package/dist/skins/o2-new.js +95 -7
  42. package/dist/skins/o2.js +94 -6
  43. package/dist/skins/skin-contract.css-mistica.js +42 -10
  44. package/dist/skins/skin-contract.css.d.ts +32 -0
  45. package/dist/skins/telefonica.js +96 -8
  46. package/dist/skins/tu.js +94 -6
  47. package/dist/skins/types/index.d.ts +36 -28
  48. package/dist/skins/vivo-new.js +95 -7
  49. package/dist/skins/vivo.js +94 -6
  50. package/dist/snackbar.js +53 -51
  51. package/dist/table.js +12 -12
  52. package/dist/theme-context-provider.js +91 -63
  53. package/dist/theme-context.css-mistica.js +452 -0
  54. package/dist/theme-context.css.d.ts +432 -0
  55. package/dist/theme-context.css.ts.vanilla.css-mistica.js +11 -0
  56. package/dist-es/box.js +17 -16
  57. package/dist-es/chip.js +47 -48
  58. package/dist-es/dialog.js +70 -68
  59. package/dist-es/generated/mistica-icons/icon-box-star-filled.js +112 -0
  60. package/dist-es/generated/mistica-icons/icon-box-star-light.js +108 -0
  61. package/dist-es/generated/mistica-icons/icon-box-star-regular.js +108 -0
  62. package/dist-es/generated/mistica-icons/icon-high-priority-filled.js +102 -0
  63. package/dist-es/generated/mistica-icons/icon-high-priority-light.js +102 -0
  64. package/dist-es/generated/mistica-icons/icon-high-priority-regular.js +102 -0
  65. package/dist-es/generated/mistica-icons/icon-mms-filled.js +113 -0
  66. package/dist-es/generated/mistica-icons/icon-mms-light.js +125 -0
  67. package/dist-es/generated/mistica-icons/icon-mms-regular.js +125 -0
  68. package/dist-es/generated/mistica-icons/icon-vivo-valoriza-filled.js +102 -0
  69. package/dist-es/generated/mistica-icons/icon-vivo-valoriza-light.js +108 -0
  70. package/dist-es/generated/mistica-icons/icon-vivo-valoriza-regular.js +108 -0
  71. package/dist-es/generated/mistica-icons/icons-keywords.js +31 -0
  72. package/dist-es/index.js +1563 -1551
  73. package/dist-es/list.js +225 -219
  74. package/dist-es/package-version.js +1 -1
  75. package/dist-es/select.js +146 -138
  76. package/dist-es/skins/blau.js +96 -8
  77. package/dist-es/skins/defaults.js +97 -9
  78. package/dist-es/skins/movistar.js +94 -6
  79. package/dist-es/skins/o2-new.js +95 -7
  80. package/dist-es/skins/o2.js +94 -6
  81. package/dist-es/skins/skin-contract.css-mistica.js +42 -10
  82. package/dist-es/skins/telefonica.js +98 -10
  83. package/dist-es/skins/tu.js +94 -6
  84. package/dist-es/skins/vivo-new.js +95 -7
  85. package/dist-es/skins/vivo.js +94 -6
  86. package/dist-es/snackbar.js +62 -60
  87. package/dist-es/style.css +1 -1
  88. package/dist-es/table.js +31 -31
  89. package/dist-es/theme-context-provider.js +133 -105
  90. package/dist-es/theme-context.css-mistica.js +432 -0
  91. package/dist-es/theme-context.css.ts.vanilla.css-mistica.js +2 -0
  92. package/package.json +2 -3
@@ -361,23 +361,111 @@ const e = {
361
361
  navigationBar: {
362
362
  weight: "medium"
363
363
  },
364
+ text1: {
365
+ size: {
366
+ mobile: 12,
367
+ desktop: 14
368
+ },
369
+ lineHeight: {
370
+ mobile: 16,
371
+ desktop: 20
372
+ }
373
+ },
374
+ text2: {
375
+ size: {
376
+ mobile: 14,
377
+ desktop: 16
378
+ },
379
+ lineHeight: {
380
+ mobile: 20,
381
+ desktop: 24
382
+ }
383
+ },
384
+ text3: {
385
+ size: {
386
+ mobile: 16,
387
+ desktop: 18
388
+ },
389
+ lineHeight: {
390
+ mobile: 24,
391
+ desktop: 24
392
+ }
393
+ },
394
+ text4: {
395
+ size: {
396
+ mobile: 18,
397
+ desktop: 20
398
+ },
399
+ lineHeight: {
400
+ mobile: 24,
401
+ desktop: 28
402
+ }
403
+ },
364
404
  text5: {
365
- weight: "medium"
405
+ weight: "medium",
406
+ size: {
407
+ mobile: 20,
408
+ desktop: 28
409
+ },
410
+ lineHeight: {
411
+ mobile: 24,
412
+ desktop: 32
413
+ }
366
414
  },
367
415
  text6: {
368
- weight: "medium"
416
+ weight: "medium",
417
+ size: {
418
+ mobile: 24,
419
+ desktop: 32
420
+ },
421
+ lineHeight: {
422
+ mobile: 32,
423
+ desktop: 40
424
+ }
369
425
  },
370
426
  text7: {
371
- weight: "medium"
427
+ weight: "medium",
428
+ size: {
429
+ mobile: 28,
430
+ desktop: 40
431
+ },
432
+ lineHeight: {
433
+ mobile: 32,
434
+ desktop: 48
435
+ }
372
436
  },
373
437
  text8: {
374
- weight: "medium"
438
+ weight: "medium",
439
+ size: {
440
+ mobile: 32,
441
+ desktop: 48
442
+ },
443
+ lineHeight: {
444
+ mobile: 40,
445
+ desktop: 56
446
+ }
375
447
  },
376
448
  text9: {
377
- weight: "medium"
449
+ weight: "medium",
450
+ size: {
451
+ mobile: 40,
452
+ desktop: 56
453
+ },
454
+ lineHeight: {
455
+ mobile: 48,
456
+ desktop: 64
457
+ }
378
458
  },
379
459
  text10: {
380
- weight: "medium"
460
+ weight: "medium",
461
+ size: {
462
+ mobile: 48,
463
+ desktop: 64
464
+ },
465
+ lineHeight: {
466
+ mobile: 56,
467
+ desktop: 72
468
+ }
381
469
  }
382
470
  }
383
471
  });
@@ -153,7 +153,7 @@ const e = {
153
153
  textNavigationBarSecondary: e.vivoPurpleLight50,
154
154
  textNavigationSearchBarHint: e.vivoPurpleLight50,
155
155
  textNavigationSearchBarText: e.white,
156
- textAppBar: e.grey4,
156
+ textAppBar: e.grey5,
157
157
  textAppBarSelected: e.vivoPurple,
158
158
  customTabsBackground: e.white,
159
159
  tagTextPromo: e.vivoPurple,
@@ -356,23 +356,111 @@ const e = {
356
356
  navigationBar: {
357
357
  weight: "regular"
358
358
  },
359
+ text1: {
360
+ size: {
361
+ mobile: 12,
362
+ desktop: 14
363
+ },
364
+ lineHeight: {
365
+ mobile: 16,
366
+ desktop: 20
367
+ }
368
+ },
369
+ text2: {
370
+ size: {
371
+ mobile: 14,
372
+ desktop: 16
373
+ },
374
+ lineHeight: {
375
+ mobile: 20,
376
+ desktop: 24
377
+ }
378
+ },
379
+ text3: {
380
+ size: {
381
+ mobile: 16,
382
+ desktop: 18
383
+ },
384
+ lineHeight: {
385
+ mobile: 24,
386
+ desktop: 24
387
+ }
388
+ },
389
+ text4: {
390
+ size: {
391
+ mobile: 18,
392
+ desktop: 20
393
+ },
394
+ lineHeight: {
395
+ mobile: 24,
396
+ desktop: 28
397
+ }
398
+ },
359
399
  text5: {
360
- weight: "regular"
400
+ weight: "regular",
401
+ size: {
402
+ mobile: 20,
403
+ desktop: 28
404
+ },
405
+ lineHeight: {
406
+ mobile: 24,
407
+ desktop: 32
408
+ }
361
409
  },
362
410
  text6: {
363
- weight: "regular"
411
+ weight: "regular",
412
+ size: {
413
+ mobile: 24,
414
+ desktop: 32
415
+ },
416
+ lineHeight: {
417
+ mobile: 32,
418
+ desktop: 40
419
+ }
364
420
  },
365
421
  text7: {
366
- weight: "regular"
422
+ weight: "regular",
423
+ size: {
424
+ mobile: 28,
425
+ desktop: 40
426
+ },
427
+ lineHeight: {
428
+ mobile: 32,
429
+ desktop: 48
430
+ }
367
431
  },
368
432
  text8: {
369
- weight: "regular"
433
+ weight: "regular",
434
+ size: {
435
+ mobile: 32,
436
+ desktop: 48
437
+ },
438
+ lineHeight: {
439
+ mobile: 40,
440
+ desktop: 56
441
+ }
370
442
  },
371
443
  text9: {
372
- weight: "regular"
444
+ weight: "regular",
445
+ size: {
446
+ mobile: 40,
447
+ desktop: 56
448
+ },
449
+ lineHeight: {
450
+ mobile: 48,
451
+ desktop: 64
452
+ }
373
453
  },
374
454
  text10: {
375
- weight: "regular"
455
+ weight: "regular",
456
+ size: {
457
+ mobile: 48,
458
+ desktop: 64
459
+ },
460
+ lineHeight: {
461
+ mobile: 56,
462
+ desktop: 72
463
+ }
376
464
  }
377
465
  }
378
466
  });
@@ -356,23 +356,111 @@ const e = {
356
356
  navigationBar: {
357
357
  weight: "medium"
358
358
  },
359
+ text1: {
360
+ size: {
361
+ mobile: 12,
362
+ desktop: 14
363
+ },
364
+ lineHeight: {
365
+ mobile: 16,
366
+ desktop: 20
367
+ }
368
+ },
369
+ text2: {
370
+ size: {
371
+ mobile: 14,
372
+ desktop: 16
373
+ },
374
+ lineHeight: {
375
+ mobile: 20,
376
+ desktop: 24
377
+ }
378
+ },
379
+ text3: {
380
+ size: {
381
+ mobile: 16,
382
+ desktop: 18
383
+ },
384
+ lineHeight: {
385
+ mobile: 24,
386
+ desktop: 24
387
+ }
388
+ },
389
+ text4: {
390
+ size: {
391
+ mobile: 18,
392
+ desktop: 20
393
+ },
394
+ lineHeight: {
395
+ mobile: 24,
396
+ desktop: 28
397
+ }
398
+ },
359
399
  text5: {
360
- weight: "light"
400
+ weight: "light",
401
+ size: {
402
+ mobile: 20,
403
+ desktop: 28
404
+ },
405
+ lineHeight: {
406
+ mobile: 24,
407
+ desktop: 32
408
+ }
361
409
  },
362
410
  text6: {
363
- weight: "light"
411
+ weight: "light",
412
+ size: {
413
+ mobile: 24,
414
+ desktop: 32
415
+ },
416
+ lineHeight: {
417
+ mobile: 32,
418
+ desktop: 40
419
+ }
364
420
  },
365
421
  text7: {
366
- weight: "light"
422
+ weight: "light",
423
+ size: {
424
+ mobile: 28,
425
+ desktop: 40
426
+ },
427
+ lineHeight: {
428
+ mobile: 32,
429
+ desktop: 48
430
+ }
367
431
  },
368
432
  text8: {
369
- weight: "light"
433
+ weight: "light",
434
+ size: {
435
+ mobile: 32,
436
+ desktop: 48
437
+ },
438
+ lineHeight: {
439
+ mobile: 40,
440
+ desktop: 56
441
+ }
370
442
  },
371
443
  text9: {
372
- weight: "light"
444
+ weight: "light",
445
+ size: {
446
+ mobile: 40,
447
+ desktop: 56
448
+ },
449
+ lineHeight: {
450
+ mobile: 48,
451
+ desktop: 64
452
+ }
373
453
  },
374
454
  text10: {
375
- weight: "light"
455
+ weight: "light",
456
+ size: {
457
+ mobile: 48,
458
+ desktop: 64
459
+ },
460
+ lineHeight: {
461
+ mobile: 56,
462
+ desktop: 72
463
+ }
376
464
  }
377
465
  }
378
466
  });
@@ -51,15 +51,15 @@ function _object_spread_props(target, source) {
51
51
  }
52
52
  return target;
53
53
  }
54
- import { jsx as r, jsxs as E } from "react/jsx-runtime";
54
+ import { jsx as r, jsxs as B } from "react/jsx-runtime";
55
55
  import * as e from "react";
56
56
  import U, { BaseTouchable as b } from "./touchable.js";
57
57
  import S from "classnames";
58
58
  import { isWebViewBridgeAvailable as C, nativeMessage as M } from "@tef-novum/webview-bridge";
59
59
  import { useTheme as _, useElementDimensions as w, useScreenSize as A } from "./hooks.js";
60
60
  import { Text2 as x, Text3 as L } from "./text.js";
61
- import { TRANSITION_TIME_IN_MS as W, snackbarContainer as P, snackbar as y, snackbarOpen as V, wrapper as z, wrapperCritical as F, wrapperInfo as H, wrapperOpen as j, content as X, button as Y, longButton as $, dismissButton as q, dismissIcon as G } from "./snackbar.css-mistica.js";
62
- import { sprinkles as B } from "./sprinkles.css-mistica.js";
61
+ import { TRANSITION_TIME_IN_MS as W, snackbarContainer as y, snackbar as P, snackbarOpen as V, wrapper as z, wrapperCritical as F, wrapperInfo as H, wrapperOpen as j, content as X, button as Y, longButton as $, dismissButton as q, dismissIcon as G } from "./snackbar.css-mistica.js";
62
+ import { sprinkles as k } from "./sprinkles.css-mistica.js";
63
63
  import { vars as N } from "./skins/skin-contract.css-mistica.js";
64
64
  import { getPrefixedDataAttributes as J } from "./utils/dom.js";
65
65
  import { Portal as K } from "./portal.js";
@@ -70,60 +70,60 @@ const Z = [
70
70
  "CONSECUTIVE",
71
71
  "BUTTON"
72
72
  ], ee = 5e3, re = 1e4, te = /*#__PURE__*/ e.forwardRef((param, I)=>{
73
- let { message: m, buttonText: n, buttonAccessibilityLabel: f, duration: t, onClose: o, type: a, withDismiss: u = !1, dataAttributes: g } = param;
74
- const { texts: d } = _(), [s, T] = e.useState(!1), { width: i, ref: k } = w(), { isDesktopOrBigger: D } = A(), c = i > (D ? 160 : 128), R = e.useRef(null), v = t === 1 / 0 && !n || u, p = e.useRef(o);
73
+ let { message: m, buttonText: n, buttonAccessibilityLabel: u, duration: t, onClose: o, type: i, withDismiss: d = !1, dataAttributes: O } = param;
74
+ const { texts: p } = _(), [s, a] = e.useState(!1), { width: R, ref: c } = w(), { isDesktopOrBigger: D } = A(), l = R > (D ? 160 : 128), E = e.useRef(null), g = t === 1 / 0 && !n || d, T = e.useRef(o);
75
75
  e.useEffect(()=>{
76
- p.current = o;
76
+ T.current = o;
77
77
  }, [
78
78
  o
79
79
  ]);
80
- const l = e.useCallback((O)=>{
81
- T(!1), setTimeout(()=>{
80
+ const f = e.useCallback((v)=>{
81
+ a(!1), setTimeout(()=>{
82
82
  var h;
83
- (h = p.current) == null || h.call(p, O);
83
+ (h = T.current) == null || h.call(T, v);
84
84
  }, process.env.NODE_ENV === "test" ? 0 : W);
85
85
  }, []);
86
- return e.useImperativeHandle(I, ()=>_object_spread_props(_object_spread({}, R), {
87
- close: l
86
+ return e.useImperativeHandle(I, ()=>_object_spread_props(_object_spread({}, E), {
87
+ close: f
88
88
  }), [
89
- l
89
+ f
90
90
  ]), e.useEffect(()=>{
91
- const O = setTimeout(()=>{
92
- T(!0);
93
- }, 50), h = t !== 1 / 0 ? setTimeout(()=>l({
91
+ const v = setTimeout(()=>{
92
+ a(!0);
93
+ }, 50), h = t !== 1 / 0 ? setTimeout(()=>f({
94
94
  action: "TIMEOUT"
95
95
  }), t) : void 0;
96
96
  return ()=>{
97
- clearTimeout(O), clearTimeout(h);
97
+ clearTimeout(v), clearTimeout(h);
98
98
  };
99
99
  }, [
100
- l,
100
+ f,
101
101
  t
102
102
  ]), /* @__PURE__ */ r(K, {
103
- className: P,
103
+ className: y,
104
104
  children: /* @__PURE__ */ r("div", {
105
- ref: R,
106
- className: S(y, {
105
+ ref: E,
106
+ className: S(P, {
107
107
  [V]: s
108
108
  }),
109
- children: /* @__PURE__ */ E("div", _object_spread_props(_object_spread({
109
+ children: /* @__PURE__ */ B("div", _object_spread_props(_object_spread({
110
110
  role: "alert",
111
- className: S(z, a === "CRITICAL" ? F : H, {
111
+ className: S(z, i === "CRITICAL" ? F : H, {
112
112
  [j]: s
113
113
  })
114
- }, J(g, "SnackBar")), {
114
+ }, J(O, "SnackBar")), {
115
115
  children: [
116
- /* @__PURE__ */ E("div", {
117
- className: S(X, B({
118
- flexDirection: c ? "column" : "row",
119
- alignItems: c ? void 0 : "center"
116
+ /* @__PURE__ */ B("div", {
117
+ className: S(X, k({
118
+ flexDirection: l ? "column" : "row",
119
+ alignItems: l ? void 0 : "center"
120
120
  })),
121
- style: v && !c ? {
121
+ style: g && !l ? {
122
122
  paddingRight: 32
123
123
  } : void 0,
124
124
  children: [
125
125
  /* @__PURE__ */ r("div", {
126
- style: v && c ? {
126
+ style: g && l ? {
127
127
  paddingRight: 32
128
128
  } : void 0,
129
129
  children: /* @__PURE__ */ r(x, {
@@ -134,42 +134,42 @@ const Z = [
134
134
  }),
135
135
  n && /* @__PURE__ */ r("div", {
136
136
  className: S(Y, {
137
- [$]: c
137
+ [$]: l
138
138
  }),
139
139
  children: /* @__PURE__ */ r(b, {
140
- className: B({
140
+ className: k({
141
141
  paddingY: 4,
142
142
  paddingX: 8,
143
143
  border: "none",
144
144
  padding: 0,
145
145
  background: "transparent"
146
146
  }),
147
- ref: k,
147
+ ref: c,
148
148
  onPress: ()=>{
149
- l({
149
+ f({
150
150
  action: "BUTTON"
151
151
  });
152
152
  },
153
- "aria-label": f,
153
+ "aria-label": u,
154
154
  children: /* @__PURE__ */ r(L, {
155
155
  medium: !0,
156
156
  forceMobileSizes: !0,
157
157
  truncate: !0,
158
- color: a === "CRITICAL" ? N.colors.textPrimaryInverse : N.colors.textLinkSnackbar,
158
+ color: i === "CRITICAL" ? N.colors.textPrimaryInverse : N.colors.textLinkSnackbar,
159
159
  children: n
160
160
  })
161
161
  })
162
162
  })
163
163
  ]
164
164
  }),
165
- v ? /* @__PURE__ */ r(U, {
165
+ g ? /* @__PURE__ */ r(U, {
166
166
  onPress: ()=>{
167
- l({
167
+ f({
168
168
  action: "DISMISS"
169
169
  });
170
170
  },
171
- "aria-label": d.closeButtonLabel,
172
- className: q[c ? "topRight" : "centered"],
171
+ "aria-label": p.closeButtonLabel,
172
+ className: q[l ? "topRight" : "centered"],
173
173
  style: {
174
174
  display: "flex",
175
175
  width: 32,
@@ -187,49 +187,51 @@ const Z = [
187
187
  }))
188
188
  })
189
189
  });
190
- }), ne = /*#__PURE__*/ e.forwardRef((param, g)=>{
191
- let { message: m, buttonText: n, buttonAccessibilityLabel: f, duration: t, onClose: o = ()=>{}, type: a = "INFORMATIVE", withDismiss: u } = param;
190
+ }), ne = /*#__PURE__*/ e.forwardRef((param, O)=>{
191
+ let { message: m, buttonText: n, buttonAccessibilityLabel: u, duration: t, onClose: o = ()=>{}, type: i = "INFORMATIVE", withDismiss: d } = param;
192
192
  const I = n ? re : ee;
193
193
  t = Math.max(t !== null && t !== void 0 ? t : I, I);
194
- const d = C(), s = e.useRef(o);
194
+ const p = C(), s = e.useRef(o), a = e.useRef(!1);
195
195
  return e.useEffect(()=>{
196
196
  s.current = o;
197
197
  }, [
198
198
  o
199
199
  ]), e.useEffect(()=>{
200
- d && M({
200
+ p && !a.current && (a.current = !0, M({
201
201
  message: m,
202
202
  // @ts-expect-error duration can be 'PERSISTENT' in new webview-bridge lib versions, and old apps will ignore it
203
203
  duration: t === 1 / 0 ? "PERSISTENT" : void 0,
204
204
  buttonText: n,
205
- buttonAccessibilityLabel: f,
206
- type: a,
207
- withDismiss: u
208
- }).then((T)=>{
209
- const i = T;
210
- i != null && i.action && Z.includes(i.action) ? s.current({
211
- action: i.action
205
+ buttonAccessibilityLabel: u,
206
+ type: i,
207
+ withDismiss: d
208
+ }).then((R)=>{
209
+ const c = R;
210
+ c != null && c.action && Z.includes(c.action) ? s.current({
211
+ action: c.action
212
212
  }) : s.current({
213
213
  action: "DISMISS"
214
214
  });
215
- });
215
+ }).finally(()=>{
216
+ a.current = !1;
217
+ }));
216
218
  }, [
217
- f,
219
+ u,
218
220
  n,
219
221
  t,
220
222
  m,
221
- d,
222
- a,
223
- u
224
- ]), d ? null : /* @__PURE__ */ r(te, {
225
- ref: g,
223
+ p,
224
+ i,
225
+ d
226
+ ]), p ? null : /* @__PURE__ */ r(te, {
227
+ ref: O,
226
228
  message: m,
227
229
  duration: t,
228
230
  buttonText: n,
229
- buttonAccessibilityLabel: f,
230
- type: a,
231
+ buttonAccessibilityLabel: u,
232
+ type: i,
231
233
  onClose: s.current,
232
- withDismiss: u
234
+ withDismiss: d
233
235
  });
234
236
  }), he = ne;
235
237
  export { he as default };