@telefonica/mistica 14.20.1 → 14.21.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 (175) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/avatar.css-mistica.js +1 -1
  3. package/dist/badge.css-mistica.js +1 -1
  4. package/dist/boxed.css-mistica.js +1 -1
  5. package/dist/button-group.css-mistica.js +1 -1
  6. package/dist/button-layout.css-mistica.js +8 -8
  7. package/dist/button-layout.js +2 -2
  8. package/dist/button.css-mistica.js +17 -17
  9. package/dist/callout.css-mistica.js +1 -1
  10. package/dist/card.css-mistica.js +16 -16
  11. package/dist/card.js +190 -193
  12. package/dist/carousel.css-mistica.js +11 -11
  13. package/dist/checkbox.css-mistica.js +9 -9
  14. package/dist/chip.css-mistica.js +4 -4
  15. package/dist/circle.css-mistica.js +2 -2
  16. package/dist/community/advanced-data-card.css-mistica.js +4 -4
  17. package/dist/community/blocks.css-mistica.js +1 -1
  18. package/dist/dialog.css-mistica.js +9 -9
  19. package/dist/dialog.js +52 -62
  20. package/dist/double-field.css-mistica.js +2 -2
  21. package/dist/empty-state-card.css-mistica.js +1 -1
  22. package/dist/empty-state.css-mistica.js +2 -2
  23. package/dist/feedback.css-mistica.js +15 -6
  24. package/dist/feedback.css.d.ts +4 -1
  25. package/dist/feedback.d.ts +10 -3
  26. package/dist/feedback.js +140 -107
  27. package/dist/fixed-footer-layout.css-mistica.js +2 -2
  28. package/dist/fixed-footer-layout.js +2 -2
  29. package/dist/grid.css.d.ts +6 -6
  30. package/dist/hero.css-mistica.js +3 -3
  31. package/dist/highlighted-card.css-mistica.js +4 -4
  32. package/dist/horizontal-scroll.css-mistica.js +1 -1
  33. package/dist/icon-button.css-mistica.js +1 -1
  34. package/dist/icons/icon-error.d.ts +4 -1
  35. package/dist/icons/icon-error.js +16 -12
  36. package/dist/icons/icon-info.d.ts +4 -1
  37. package/dist/icons/icon-info.js +42 -14
  38. package/dist/icons/icon-success-vivo-new.d.ts +6 -0
  39. package/dist/icons/icon-success-vivo-new.js +86 -0
  40. package/dist/icons/icon-success-vivo.d.ts +2 -3
  41. package/dist/icons/icon-success-vivo.js +11 -15
  42. package/dist/icons/icon-success.d.ts +2 -2
  43. package/dist/icons/icon-success.js +2 -2
  44. package/dist/image.css-mistica.js +1 -1
  45. package/dist/index.d.ts +4 -0
  46. package/dist/index.js +30 -0
  47. package/dist/list.css-mistica.js +6 -6
  48. package/dist/loading-bar.css-mistica.js +2 -2
  49. package/dist/maybe-dismissable.css-mistica.js +1 -1
  50. package/dist/menu.css-mistica.js +1 -1
  51. package/dist/modal-context-provider.d.ts +1 -0
  52. package/dist/modal-context-provider.js +24 -10
  53. package/dist/navigation-bar.css-mistica.js +10 -10
  54. package/dist/navigation-breadcrumbs.css-mistica.js +1 -1
  55. package/dist/nestable-context.js +2 -7
  56. package/dist/package-version.js +1 -1
  57. package/dist/password-field.css-mistica.js +2 -2
  58. package/dist/popover.css-mistica.js +8 -8
  59. package/dist/progress-bar.css-mistica.js +1 -1
  60. package/dist/radio-button.css-mistica.js +5 -5
  61. package/dist/responsive-layout.css-mistica.js +1 -1
  62. package/dist/screen-reader-only.css-mistica.js +1 -1
  63. package/dist/select.css-mistica.js +10 -10
  64. package/dist/sheet-root.d.ts +93 -0
  65. package/dist/sheet-root.js +370 -0
  66. package/dist/sheet.css-mistica.js +66 -0
  67. package/dist/sheet.css.d.ts +17 -0
  68. package/dist/sheet.css.ts.vanilla.css-mistica.js +11 -0
  69. package/dist/sheet.d.ts +107 -0
  70. package/dist/sheet.js +643 -0
  71. package/dist/skeletons.css-mistica.js +1 -1
  72. package/dist/snackbar.css-mistica.js +1 -1
  73. package/dist/spinner.css-mistica.js +1 -1
  74. package/dist/sprinkles.css-mistica.js +191 -172
  75. package/dist/sprinkles.css.d.ts +4 -3
  76. package/dist/stack.js +14 -13
  77. package/dist/stacking-group.css-mistica.js +2 -2
  78. package/dist/stepper.css-mistica.js +8 -8
  79. package/dist/switch-component.css-mistica.js +13 -13
  80. package/dist/switch-component.js +2 -2
  81. package/dist/tabs.css-mistica.js +7 -7
  82. package/dist/tag.css-mistica.js +1 -1
  83. package/dist/text-field-base.css-mistica.js +6 -6
  84. package/dist/text-field-components.css-mistica.js +5 -5
  85. package/dist/text-link.css-mistica.js +3 -3
  86. package/dist/theme.d.ts +1 -0
  87. package/dist/theme.js +22 -18
  88. package/dist/tooltip.css-mistica.js +11 -11
  89. package/dist/touchable.css-mistica.js +2 -2
  90. package/dist/utils/animation.d.ts +2 -1
  91. package/dist/utils/animation.js +28 -14
  92. package/dist/utils/aspect-ratio-support.css-mistica.js +2 -2
  93. package/dist/utils/helpers.d.ts +9 -0
  94. package/dist/utils/helpers.js +46 -0
  95. package/dist/utils/utility-types.d.ts +1 -1
  96. package/dist/video.css-mistica.js +1 -1
  97. package/dist-es/avatar.css-mistica.js +1 -1
  98. package/dist-es/badge.css-mistica.js +1 -1
  99. package/dist-es/boxed.css-mistica.js +1 -1
  100. package/dist-es/button-group.css-mistica.js +1 -1
  101. package/dist-es/button-layout.css-mistica.js +7 -7
  102. package/dist-es/button-layout.js +1 -1
  103. package/dist-es/button.css-mistica.js +9 -9
  104. package/dist-es/callout.css-mistica.js +1 -1
  105. package/dist-es/card.css-mistica.js +2 -2
  106. package/dist-es/card.js +251 -254
  107. package/dist-es/carousel.css-mistica.js +2 -2
  108. package/dist-es/checkbox.css-mistica.js +6 -6
  109. package/dist-es/chip.css-mistica.js +4 -4
  110. package/dist-es/circle.css-mistica.js +2 -2
  111. package/dist-es/community/advanced-data-card.css-mistica.js +3 -3
  112. package/dist-es/community/blocks.css-mistica.js +1 -1
  113. package/dist-es/dialog.css-mistica.js +5 -5
  114. package/dist-es/dialog.js +101 -111
  115. package/dist-es/double-field.css-mistica.js +2 -2
  116. package/dist-es/empty-state-card.css-mistica.js +1 -1
  117. package/dist-es/empty-state.css-mistica.js +2 -2
  118. package/dist-es/feedback.css-mistica.js +2 -2
  119. package/dist-es/feedback.js +180 -147
  120. package/dist-es/fixed-footer-layout.css-mistica.js +2 -2
  121. package/dist-es/fixed-footer-layout.js +1 -1
  122. package/dist-es/hero.css-mistica.js +2 -2
  123. package/dist-es/highlighted-card.css-mistica.js +4 -4
  124. package/dist-es/horizontal-scroll.css-mistica.js +1 -1
  125. package/dist-es/icon-button.css-mistica.js +1 -1
  126. package/dist-es/icons/icon-error.js +40 -36
  127. package/dist-es/icons/icon-info.js +45 -17
  128. package/dist-es/icons/icon-success-vivo-new.js +77 -0
  129. package/dist-es/icons/icon-success-vivo.js +19 -23
  130. package/dist-es/icons/icon-success.js +2 -2
  131. package/dist-es/image.css-mistica.js +1 -1
  132. package/dist-es/index.js +1709 -1706
  133. package/dist-es/list.css-mistica.js +2 -2
  134. package/dist-es/loading-bar.css-mistica.js +2 -2
  135. package/dist-es/maybe-dismissable.css-mistica.js +1 -1
  136. package/dist-es/menu.css-mistica.js +1 -1
  137. package/dist-es/modal-context-provider.js +22 -11
  138. package/dist-es/navigation-bar.css-mistica.js +9 -9
  139. package/dist-es/navigation-breadcrumbs.css-mistica.js +1 -1
  140. package/dist-es/nestable-context.js +1 -1
  141. package/dist-es/package-version.js +1 -1
  142. package/dist-es/password-field.css-mistica.js +2 -2
  143. package/dist-es/popover.css-mistica.js +2 -2
  144. package/dist-es/progress-bar.css-mistica.js +1 -1
  145. package/dist-es/radio-button.css-mistica.js +4 -4
  146. package/dist-es/responsive-layout.css-mistica.js +1 -1
  147. package/dist-es/screen-reader-only.css-mistica.js +1 -1
  148. package/dist-es/select.css-mistica.js +9 -9
  149. package/dist-es/sheet-root.js +306 -0
  150. package/dist-es/sheet.css-mistica.js +4 -0
  151. package/dist-es/sheet.css.ts.vanilla.css-mistica.js +2 -0
  152. package/dist-es/sheet.js +570 -0
  153. package/dist-es/skeletons.css-mistica.js +1 -1
  154. package/dist-es/snackbar.css-mistica.js +1 -1
  155. package/dist-es/spinner.css-mistica.js +1 -1
  156. package/dist-es/sprinkles.css-mistica.js +191 -172
  157. package/dist-es/stack.js +18 -17
  158. package/dist-es/stacking-group.css-mistica.js +2 -2
  159. package/dist-es/stepper.css-mistica.js +2 -2
  160. package/dist-es/style.css +1 -1
  161. package/dist-es/switch-component.css-mistica.js +13 -13
  162. package/dist-es/switch-component.js +1 -1
  163. package/dist-es/tabs.css-mistica.js +6 -6
  164. package/dist-es/tag.css-mistica.js +1 -1
  165. package/dist-es/text-field-base.css-mistica.js +2 -2
  166. package/dist-es/text-field-components.css-mistica.js +2 -2
  167. package/dist-es/text-link.css-mistica.js +3 -3
  168. package/dist-es/theme.js +28 -24
  169. package/dist-es/tooltip.css-mistica.js +3 -3
  170. package/dist-es/touchable.css-mistica.js +2 -2
  171. package/dist-es/utils/animation.js +26 -15
  172. package/dist-es/utils/aspect-ratio-support.css-mistica.js +2 -2
  173. package/dist-es/utils/helpers.js +29 -0
  174. package/dist-es/video.css-mistica.js +1 -1
  175. package/package.json +4 -4
@@ -0,0 +1,570 @@
1
+ function _define_property(obj, key, value) {
2
+ if (key in obj) {
3
+ Object.defineProperty(obj, key, {
4
+ value: value,
5
+ enumerable: true,
6
+ configurable: true,
7
+ writable: true
8
+ });
9
+ } else {
10
+ obj[key] = value;
11
+ }
12
+ return obj;
13
+ }
14
+ function _object_spread(target) {
15
+ for(var i = 1; i < arguments.length; i++){
16
+ var source = arguments[i] != null ? arguments[i] : {};
17
+ var ownKeys = Object.keys(source);
18
+ if (typeof Object.getOwnPropertySymbols === "function") {
19
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
20
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
21
+ }));
22
+ }
23
+ ownKeys.forEach(function(key) {
24
+ _define_property(target, key, source[key]);
25
+ });
26
+ }
27
+ return target;
28
+ }
29
+ function ownKeys(object, enumerableOnly) {
30
+ var keys = Object.keys(object);
31
+ if (Object.getOwnPropertySymbols) {
32
+ var symbols = Object.getOwnPropertySymbols(object);
33
+ if (enumerableOnly) {
34
+ symbols = symbols.filter(function(sym) {
35
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
36
+ });
37
+ }
38
+ keys.push.apply(keys, symbols);
39
+ }
40
+ return keys;
41
+ }
42
+ function _object_spread_props(target, source) {
43
+ source = source != null ? source : {};
44
+ if (Object.getOwnPropertyDescriptors) {
45
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
46
+ } else {
47
+ ownKeys(Object(source)).forEach(function(key) {
48
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
49
+ });
50
+ }
51
+ return target;
52
+ }
53
+ function _object_without_properties(source, excluded) {
54
+ if (source == null) return {};
55
+ var target = _object_without_properties_loose(source, excluded);
56
+ var key, i;
57
+ if (Object.getOwnPropertySymbols) {
58
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
59
+ for(i = 0; i < sourceSymbolKeys.length; i++){
60
+ key = sourceSymbolKeys[i];
61
+ if (excluded.indexOf(key) >= 0) continue;
62
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
63
+ target[key] = source[key];
64
+ }
65
+ }
66
+ return target;
67
+ }
68
+ function _object_without_properties_loose(source, excluded) {
69
+ if (source == null) return {};
70
+ var target = {};
71
+ var sourceKeys = Object.keys(source);
72
+ var key, i;
73
+ for(i = 0; i < sourceKeys.length; i++){
74
+ key = sourceKeys[i];
75
+ if (excluded.indexOf(key) >= 0) continue;
76
+ target[key] = source[key];
77
+ }
78
+ return target;
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";
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
+ 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";
87
+ import { Portal as ie } from "./portal.js";
88
+ import { Text5 as se, Text3 as T, Text2 as P } from "./text.js";
89
+ import { vars as S } from "./skins/skin-contract.css-mistica.js";
90
+ import { RadioGroup as ce } from "./radio-button.js";
91
+ import { RowList as le, Row as ae } from "./list.js";
92
+ import I from "./responsive-layout.js";
93
+ import Y from "./negative-box.js";
94
+ import w from "./stack.js";
95
+ import E from "./box.js";
96
+ import de from "./touchable.js";
97
+ import ue from "./inline.js";
98
+ import me from "./circle.js";
99
+ import B from "./divider.js";
100
+ import { getPrefixedDataAttributes as he, getScrollableParentElement as fe } from "./utils/dom.js";
101
+ import { ButtonPrimary as z, ButtonSecondary as pe, ButtonLink as ge } from "./button.js";
102
+ import ve from "./generated/mistica-icons/icon-close-regular.js";
103
+ import ye from "./icon-button.js";
104
+ import Re from "./button-layout.js";
105
+ import M from "./image.js";
106
+ const A = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>{
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);
112
+ }, []);
113
+ return o.useEffect(()=>{
114
+ if (u) return;
115
+ const m = (l)=>{
116
+ if (f.current) {
117
+ if (p.current < 3) {
118
+ p.current++;
119
+ return;
120
+ }
121
+ d.current = A(l), h(d.current - s.current);
122
+ }
123
+ }, a = ()=>{
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();
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);
130
+ };
131
+ }, [
132
+ t,
133
+ u
134
+ ]), u ? {} : {
135
+ onTouchStart: r,
136
+ onMouseDown: r,
137
+ style: i ? {
138
+ transform: `translateY(${i}px)`,
139
+ transition: "none"
140
+ } : void 0,
141
+ onScroll: c,
142
+ overlayStyle: i ? {
143
+ // decrease opacity when dragging down the sheet
144
+ opacity: 0.25 + 1 - i / (window.innerHeight - s.current),
145
+ transition: "none"
146
+ } : void 0
147
+ };
148
+ }, Ee = ()=>(o.useLayoutEffect(()=>{
149
+ const i = window.scrollY;
150
+ return document.body.style.top = `-${i}px`, ()=>{
151
+ process.env.NODE_ENV !== "test" && window.scrollTo(0, i);
152
+ };
153
+ }, []), /* @__PURE__ */ e("style", {
154
+ children: `
155
+ body {
156
+ position: fixed;
157
+ left: 0;
158
+ right: 0;
159
+ overscroll-behavior-y: contain;
160
+ overflow: hidden;
161
+ }
162
+ `
163
+ })), be = {
164
+ closed: {
165
+ open: "opening"
166
+ },
167
+ opening: {
168
+ close: "closed",
169
+ transitionEnd: "open"
170
+ },
171
+ open: {
172
+ close: "closing"
173
+ },
174
+ closing: {
175
+ transitionEnd: "closed"
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");
181
+ }, []), c = ()=>{
182
+ n === "open" && s("close");
183
+ };
184
+ o.useEffect(()=>{
185
+ if (n === "opening" || n === "closing") {
186
+ const y = setTimeout(()=>{
187
+ s("transitionEnd");
188
+ }, H);
189
+ return ()=>clearTimeout(y);
190
+ }
191
+ }, [
192
+ n
193
+ ]), o.useEffect(()=>{
194
+ n === "closed" ? d.current ? t == null || t() : s("open") : d.current = !0;
195
+ }, [
196
+ n,
197
+ t
198
+ ]);
199
+ const _Se = Se({
200
+ closeModal: c
201
+ }), { onScroll: m , overlayStyle: a } = _Se, l = _object_without_properties(_Se, [
202
+ "onScroll",
203
+ "overlayStyle"
204
+ ]);
205
+ oe();
206
+ const g = Ee();
207
+ return n === "closed" ? null : /* @__PURE__ */ e(ie, {
208
+ children: /* @__PURE__ */ v(te, {
209
+ children: [
210
+ g,
211
+ /* @__PURE__ */ e("div", {
212
+ className: L(V, {
213
+ [j]: n === "closing"
214
+ }),
215
+ style: a,
216
+ onClick: c
217
+ }),
218
+ /* @__PURE__ */ e("div", _object_spread_props(_object_spread({
219
+ className: L(F, {
220
+ [$]: n === "closing"
221
+ }),
222
+ onTransitionEnd: r,
223
+ onAnimationEnd: r
224
+ }, l, he(h, "Sheet")), {
225
+ ref: f,
226
+ children: /* @__PURE__ */ v("div", {
227
+ className: G,
228
+ children: [
229
+ /* @__PURE__ */ v("div", {
230
+ className: K,
231
+ children: [
232
+ /* @__PURE__ */ e("div", {
233
+ className: _,
234
+ children: /* @__PURE__ */ e("div", {
235
+ className: q
236
+ })
237
+ }),
238
+ /* @__PURE__ */ e("section", {
239
+ role: "dialog",
240
+ "aria-modal": "true",
241
+ "aria-labelledby": u,
242
+ onScroll: m,
243
+ className: J,
244
+ children: typeof i == "function" ? i({
245
+ closeModal: c,
246
+ modalTitleId: u
247
+ }) : i
248
+ })
249
+ ]
250
+ }),
251
+ /* @__PURE__ */ e("div", {
252
+ className: Q,
253
+ children: /* @__PURE__ */ e(ye, {
254
+ size: 32,
255
+ onPress: c,
256
+ "aria-label": p.modalClose,
257
+ children: /* @__PURE__ */ e("div", {
258
+ className: U,
259
+ children: /* @__PURE__ */ e(ve, {
260
+ size: 20
261
+ })
262
+ })
263
+ })
264
+ })
265
+ ]
266
+ })
267
+ }))
268
+ ]
269
+ })
270
+ });
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(()=>{
275
+ r.current && (c.current = fe(r.current));
276
+ }, []);
277
+ const m = !N(u, !0, {
278
+ root: c.current
279
+ }), a = !N(r, !0, {
280
+ rootMargin: "1px",
281
+ // bottomScrollSignal div has 0px height so we need a 1px margin to trigger the intersection observer
282
+ root: c.current
283
+ }), l = !!p || !!n || !!s;
284
+ return /* @__PURE__ */ v(O, {
285
+ children: [
286
+ /* @__PURE__ */ e("div", {
287
+ ref: u
288
+ }),
289
+ /* @__PURE__ */ v("div", {
290
+ className: W,
291
+ children: [
292
+ t ? /* @__PURE__ */ e(E, {
293
+ paddingBottom: 8,
294
+ paddingTop: {
295
+ mobile: 0,
296
+ desktop: 40
297
+ },
298
+ children: /* @__PURE__ */ e(I, {
299
+ children: /* @__PURE__ */ e(se, {
300
+ as: "h2",
301
+ id: f,
302
+ truncate: !0,
303
+ children: t
304
+ })
305
+ })
306
+ }) : /* @__PURE__ */ e(E, {
307
+ paddingTop: {
308
+ mobile: 0,
309
+ desktop: 40
310
+ }
311
+ }),
312
+ m && /* @__PURE__ */ e(B, {})
313
+ ]
314
+ }),
315
+ /* @__PURE__ */ e("div", {
316
+ className: X,
317
+ children: /* @__PURE__ */ e(E, {
318
+ paddingBottom: l ? 0 : {
319
+ desktop: 40,
320
+ mobile: 0
321
+ },
322
+ children: /* @__PURE__ */ e(I, {
323
+ children: /* @__PURE__ */ v(w, {
324
+ space: 8,
325
+ children: [
326
+ i || h ? /* @__PURE__ */ v(w, {
327
+ space: {
328
+ mobile: 8,
329
+ desktop: 16
330
+ },
331
+ children: [
332
+ i && /* @__PURE__ */ e(T, {
333
+ as: "p",
334
+ regular: !0,
335
+ children: i
336
+ }),
337
+ h && /* @__PURE__ */ e(P, {
338
+ as: "p",
339
+ regular: !0,
340
+ color: S.colors.textSecondary,
341
+ children: h
342
+ })
343
+ ]
344
+ }) : null,
345
+ d
346
+ ]
347
+ })
348
+ })
349
+ })
350
+ }),
351
+ l && /* @__PURE__ */ v("div", {
352
+ className: Z,
353
+ children: [
354
+ a && /* @__PURE__ */ e(B, {}),
355
+ /* @__PURE__ */ e(E, {
356
+ paddingY: {
357
+ mobile: 16,
358
+ desktop: 40
359
+ },
360
+ children: /* @__PURE__ */ e(I, {
361
+ children: /* @__PURE__ */ v(Re, {
362
+ align: "full-width",
363
+ link: s,
364
+ children: [
365
+ p,
366
+ n
367
+ ]
368
+ })
369
+ })
370
+ })
371
+ ]
372
+ }),
373
+ /* @__PURE__ */ e("div", {
374
+ ref: r
375
+ })
376
+ ]
377
+ });
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();
381
+ var _ref, _R_title;
382
+ return /* @__PURE__ */ e(b, {
383
+ onClose: n,
384
+ ref: r,
385
+ dataAttributes: _object_spread_props(_object_spread({}, u), {
386
+ "component-name": "RadioListSheet"
387
+ }),
388
+ children: (param)=>/* @__PURE__ */ {
389
+ let { closeModal: y , modalTitleId: x } = param;
390
+ return e(k, {
391
+ title: t,
392
+ subtitle: i,
393
+ description: h,
394
+ modalTitleId: x,
395
+ button: l ? /* @__PURE__ */ e(z, {
396
+ onPress: ()=>{
397
+ a.current && (s == null || s(c !== null && c !== void 0 ? c : "")), y();
398
+ },
399
+ children: (_ref = d == null ? void 0 : d.text) !== null && _ref !== void 0 ? _ref : g.sheetConfirmButton
400
+ }) : void 0,
401
+ children: /* @__PURE__ */ e(Y, {
402
+ children: /* @__PURE__ */ e(ce, {
403
+ "aria-labelledby": x,
404
+ name: "sheetselection",
405
+ value: c,
406
+ onChange: (R)=>{
407
+ m(R), a.current = !0, !l && (s == null || s(R), setTimeout(()=>{
408
+ y();
409
+ }, 200));
410
+ },
411
+ children: /* @__PURE__ */ e(le, {
412
+ children: f.map((R)=>/* @__PURE__ */ e(ae, {
413
+ title: (_R_title = R.title) !== null && _R_title !== void 0 ? _R_title : "",
414
+ description: R.description,
415
+ asset: R.asset,
416
+ radioValue: R.id
417
+ }, R.id))
418
+ })
419
+ })
420
+ })
421
+ });
422
+ }
423
+ });
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();
427
+ return /* @__PURE__ */ e(b, {
428
+ onClose: p,
429
+ ref: d,
430
+ dataAttributes: _object_spread_props(_object_spread({}, s), {
431
+ "component-name": "ActionsListSheet"
432
+ }),
433
+ children: (param)=>/* @__PURE__ */ {
434
+ let { closeModal: r , modalTitleId: c } = param;
435
+ return e(k, {
436
+ title: t,
437
+ subtitle: i,
438
+ description: h,
439
+ modalTitleId: c,
440
+ children: /* @__PURE__ */ e(Y, {
441
+ children: f.map((param)=>/* @__PURE__ */ {
442
+ let { id: m , style: a , title: l , icon: g } = param;
443
+ return e(de, {
444
+ onPress: ()=>{
445
+ n == null || n(m), r();
446
+ },
447
+ children: /* @__PURE__ */ v("div", {
448
+ className: ee,
449
+ children: [
450
+ g && /* @__PURE__ */ e(E, {
451
+ paddingRight: 16,
452
+ children: g.Icon ? /* @__PURE__ */ e(g.Icon, {
453
+ size: 24,
454
+ color: a === "destructive" ? S.colors.textLinkDanger : S.colors.neutralHigh
455
+ }) : /* @__PURE__ */ e(M, {
456
+ circular: !0,
457
+ src: u && g.urlDark ? g.urlDark : g.url,
458
+ width: 40
459
+ })
460
+ }),
461
+ /* @__PURE__ */ e(T, {
462
+ regular: !0,
463
+ color: a === "destructive" ? S.colors.textLinkDanger : S.colors.textPrimary,
464
+ children: l
465
+ })
466
+ ]
467
+ })
468
+ }, m);
469
+ })
470
+ })
471
+ });
472
+ }
473
+ });
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();
477
+ return /* @__PURE__ */ e(b, {
478
+ onClose: p,
479
+ ref: s,
480
+ dataAttributes: _object_spread_props(_object_spread({}, n), {
481
+ "component-name": "InfoSheet"
482
+ }),
483
+ children: (param)=>/* @__PURE__ */ {
484
+ let { modalTitleId: u } = param;
485
+ return e(k, {
486
+ title: t,
487
+ subtitle: i,
488
+ description: h,
489
+ modalTitleId: u,
490
+ children: /* @__PURE__ */ e(E, {
491
+ paddingBottom: 16,
492
+ children: /* @__PURE__ */ e(w, {
493
+ space: 16,
494
+ role: "list",
495
+ children: f.map((r, c)=>/* @__PURE__ */ v(ue, {
496
+ space: 8,
497
+ children: [
498
+ /* @__PURE__ */ e("div", {
499
+ className: re,
500
+ children: r.icon.type === "bullet" ? /* @__PURE__ */ e(me, {
501
+ size: 8,
502
+ backgroundColor: S.colors.textPrimary
503
+ }) : r.icon.Icon ? /* @__PURE__ */ e(r.icon.Icon, {
504
+ size: r.icon.type === "small" ? 16 : 24
505
+ }) : /* @__PURE__ */ e(M, {
506
+ src: d && r.icon.urlDark ? r.icon.urlDark : r.icon.url,
507
+ width: r.icon.type === "small" ? 16 : 24,
508
+ height: r.icon.type === "small" ? 16 : 24
509
+ })
510
+ }),
511
+ /* @__PURE__ */ v(w, {
512
+ space: 2,
513
+ children: [
514
+ /* @__PURE__ */ e(T, {
515
+ regular: !0,
516
+ children: r.title
517
+ }),
518
+ r.description && /* @__PURE__ */ e(P, {
519
+ regular: !0,
520
+ color: S.colors.textSecondary,
521
+ children: r.description
522
+ })
523
+ ]
524
+ })
525
+ ]
526
+ }, r.id || c))
527
+ })
528
+ })
529
+ });
530
+ }
531
+ });
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, [
538
+ "text"
539
+ ]);
540
+ return _object_spread({
541
+ children: a
542
+ }, l);
543
+ };
544
+ return /* @__PURE__ */ e(b, {
545
+ onClose: s,
546
+ ref: r,
547
+ dataAttributes: _object_spread_props(_object_spread({}, d), {
548
+ "component-name": "ActionsSheet"
549
+ }),
550
+ children: (param)=>/* @__PURE__ */ {
551
+ let { modalTitleId: a , closeModal: l } = param;
552
+ return e(k, {
553
+ title: t,
554
+ subtitle: i,
555
+ description: h,
556
+ modalTitleId: a,
557
+ button: /* @__PURE__ */ e(z, _object_spread_props(_object_spread({}, m(f)), {
558
+ onPress: c(l, "PRIMARY")
559
+ })),
560
+ secondaryButton: p ? /* @__PURE__ */ e(pe, _object_spread_props(_object_spread({}, m(p)), {
561
+ onPress: c(l, "SECONDARY")
562
+ })) : void 0,
563
+ link: n ? /* @__PURE__ */ e(ge, _object_spread_props(_object_spread({}, m(n)), {
564
+ onPress: c(l, "LINK")
565
+ })) : void 0
566
+ });
567
+ }
568
+ });
569
+ }), Ze = b;
570
+ export { Ue as ActionsListSheet, Xe as ActionsSheet, We as InfoSheet, Qe as RadioListSheet, k as SheetBody, Ze as default };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./skeletons.css.ts.vanilla.css-mistica.js";
3
- var o = "zopolw2 _1y2v1nfb6", r = "_1y2v1nfbm _1y2v1nfbo", b = "zopolw6 _1y2v1nfbn", f = "_1y2v1nfb4 _1y2v1nfbj _1y2v1nfbd";
3
+ var o = "zopolw2 _1y2v1nfb7", r = "_1y2v1nfbn _1y2v1nfbp", b = "zopolw6 _1y2v1nfbo", f = "_1y2v1nfb5 _1y2v1nfbk _1y2v1nfbe";
4
4
  export { o as animation, r as circle, b as line, f as row };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./snackbar.css.ts.vanilla.css-mistica.js";
3
- var n = 300, b = "o7bjb09", v = "_1y2v1nf1x", o = "_1y2v1nf2a", t = "_1y2v1nfb4 _1y2v1nfbg", _ = "o7bjb0a", f = "o7bjb01 _1y2v1nfbr _1y2v1nfb4 _1y2v1nfbd", p = "o7bjb02", y = "o7bjb04 _1y2v1nfb1 _1y2v1nfdx", e = "_1y2v1nf4g", i = "_1y2v1nf4h", j = "o7bjb07";
3
+ var n = 300, b = "o7bjb09", v = "_1y2v1nf1x", o = "_1y2v1nf2a", t = "_1y2v1nfb5 _1y2v1nfbh", _ = "o7bjb0a", f = "o7bjb01 _1y2v1nfbs _1y2v1nfb5 _1y2v1nfbe", p = "o7bjb02", y = "o7bjb04 _1y2v1nfb1 _1y2v1nfdy", e = "_1y2v1nf4g", i = "_1y2v1nf4h", j = "o7bjb07";
4
4
  export { n as TRANSITION_TIME_IN_MS, b as button, v as buttonCritical, o as buttonInfo, t as content, _ as longButton, f as snackbar, p as snackbarOpen, y as wrapper, e as wrapperCritical, i as wrapperInfo, j as wrapperOpen };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./spinner.css.ts.vanilla.css-mistica.js";
3
- var t = "_1fthc594 _1y2v1nfbm _1y2v1nfb6", f = "_1fthc595", v = "_1y2v1nfbm _1y2v1nfb6", a = "_1fthc597";
3
+ var t = "_1fthc594 _1y2v1nfbn _1y2v1nfb7", f = "_1fthc595", v = "_1y2v1nfbn _1y2v1nfb7", a = "_1fthc597";
4
4
  export { t as spinnerDefault, f as spinnerDefaultPath, v as spinnerIos, a as spinnerIosSvgPath };