@telefonica/mistica 15.16.2 → 15.16.4
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/css/mistica.css +1 -1
- package/dist/package-version.js +1 -1
- package/dist/sheet.css.d.ts +1 -1
- package/dist/sheet.js +72 -72
- package/dist/table.js +12 -12
- package/dist-es/package-version.js +1 -1
- package/dist-es/sheet.js +99 -99
- package/dist-es/style.css +1 -1
- package/dist-es/table.js +31 -31
- package/package.json +1 -1
package/dist-es/sheet.js
CHANGED
|
@@ -81,9 +81,9 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
81
81
|
import { jsx as e, jsxs as v, Fragment as O } from "react/jsx-runtime";
|
|
82
82
|
import w from "classnames";
|
|
83
83
|
import * as i from "react";
|
|
84
|
-
import { transitionDuration as z, overlay as G, closingOverlay as H, SheetContainer as
|
|
85
|
-
import
|
|
86
|
-
import { useTheme as b, useAriaId as
|
|
84
|
+
import { transitionDuration as z, overlay as G, closingOverlay as H, SheetContainer as V, closingSheet as j, Sheet as F, SheetContent as K, handleContainer as $, handle as X, children as q, modalCloseButton as J, stickyTitle as Q, bodyContent as U, stickyButtons as W, sheetActionRow as Z, infoItemIcon as ee } from "./sheet.css-mistica.js";
|
|
85
|
+
import te from "./focus-trap.js";
|
|
86
|
+
import { useTheme as b, useAriaId as re, useDisableBodyScroll as ne, useIsInViewport as N, useScreenSize as C } from "./hooks.js";
|
|
87
87
|
import { useSetModalStateEffect as oe } from "./modal-context-provider.js";
|
|
88
88
|
import { Portal as ie } from "./portal.js";
|
|
89
89
|
import { Text5 as se, Text3 as A, Text2 as L } from "./text.js";
|
|
@@ -91,24 +91,24 @@ import { vars as S } from "./skins/skin-contract.css-mistica.js";
|
|
|
91
91
|
import { RadioGroup as ce } from "./radio-button.js";
|
|
92
92
|
import { RowList as ae, Row as le } from "./list.js";
|
|
93
93
|
import M from "./negative-box.js";
|
|
94
|
-
import
|
|
95
|
-
import
|
|
94
|
+
import I from "./stack.js";
|
|
95
|
+
import y 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
|
|
99
|
+
import x from "./divider.js";
|
|
100
100
|
import { getPrefixedDataAttributes as he, getScrollableParentElement as fe } from "./utils/dom.js";
|
|
101
101
|
import { ButtonPrimary as Y, ButtonSecondary as pe, ButtonLink as ge } from "./button.js";
|
|
102
102
|
import ve from "./generated/mistica-icons/icon-close-regular.js";
|
|
103
103
|
import { InternalIconButton as Re } from "./icon-button.js";
|
|
104
104
|
import Se from "./button-layout.js";
|
|
105
105
|
import _ from "./image.js";
|
|
106
|
-
import { safeAreaInsetBottom as
|
|
107
|
-
import { MOBILE_SIDE_MARGIN as
|
|
108
|
-
const P = (n)=>"touches" in n ? n.touches[0].clientY : n.clientY,
|
|
106
|
+
import { safeAreaInsetBottom as De } from "./utils/css.js";
|
|
107
|
+
import { MOBILE_SIDE_MARGIN as ye, TABLET_SIDE_MARGIN as Ee, SMALL_DESKTOP_SIDE_MARGIN as Ie } from "./responsive-layout.css-mistica.js";
|
|
108
|
+
const be = process.env.NODE_ENV === "test" ? 0 : z, P = (n)=>"touches" in n ? n.touches[0].clientY : n.clientY, Te = (param)=>{
|
|
109
109
|
let { closeModal: n } = param;
|
|
110
|
-
const [s, l] = i.useState(0), g = i.useRef(!1), f = i.useRef(0),
|
|
111
|
-
g.current = !0, f.current = 0,
|
|
110
|
+
const [s, l] = i.useState(0), g = i.useRef(!1), f = i.useRef(0), r = i.useRef(0), o = i.useRef(0), u = i.useRef(0), { isDesktopOrBigger: m } = C(), t = i.useCallback((h)=>{
|
|
111
|
+
g.current = !0, f.current = 0, r.current = Date.now(), o.current = P(h);
|
|
112
112
|
}, []), c = i.useCallback(()=>{
|
|
113
113
|
g.current = !1, l(0);
|
|
114
114
|
}, []);
|
|
@@ -124,8 +124,8 @@ const P = (n)=>"touches" in n ? n.touches[0].clientY : n.clientY, be = (param)=>
|
|
|
124
124
|
}
|
|
125
125
|
}, d = ()=>{
|
|
126
126
|
if (!g.current) return;
|
|
127
|
-
const a = Date.now() -
|
|
128
|
-
g.current = !1, l(0), p > 50 && (u.current > window.innerHeight * 0.75 ||
|
|
127
|
+
const a = Date.now() - r.current, p = u.current - o.current, D = p / a;
|
|
128
|
+
g.current = !1, l(0), p > 50 && (u.current > window.innerHeight * 0.75 || D > 0.5) && n();
|
|
129
129
|
};
|
|
130
130
|
return document.addEventListener("touchmove", h), document.addEventListener("touchend", d), document.addEventListener("mousemove", h), document.addEventListener("mouseup", d), ()=>{
|
|
131
131
|
document.removeEventListener("touchmove", h), document.removeEventListener("touchend", d), document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", d);
|
|
@@ -134,8 +134,8 @@ const P = (n)=>"touches" in n ? n.touches[0].clientY : n.clientY, be = (param)=>
|
|
|
134
134
|
n,
|
|
135
135
|
m
|
|
136
136
|
]), m ? {} : {
|
|
137
|
-
onTouchStart:
|
|
138
|
-
onMouseDown:
|
|
137
|
+
onTouchStart: t,
|
|
138
|
+
onMouseDown: t,
|
|
139
139
|
style: s ? {
|
|
140
140
|
transform: `translateY(${s}px)`,
|
|
141
141
|
transition: "none"
|
|
@@ -147,7 +147,7 @@ const P = (n)=>"touches" in n ? n.touches[0].clientY : n.clientY, be = (param)=>
|
|
|
147
147
|
transition: "none"
|
|
148
148
|
} : void 0
|
|
149
149
|
};
|
|
150
|
-
},
|
|
150
|
+
}, ke = {
|
|
151
151
|
closed: {
|
|
152
152
|
open: "opening"
|
|
153
153
|
},
|
|
@@ -161,61 +161,61 @@ const P = (n)=>"touches" in n ? n.touches[0].clientY : n.clientY, be = (param)=>
|
|
|
161
161
|
closing: {
|
|
162
162
|
transitionEnd: "closed"
|
|
163
163
|
}
|
|
164
|
-
},
|
|
164
|
+
}, Le = (n, s)=>ke[n][s] || n, E = /*#__PURE__*/ i.forwardRef((param, g)=>{
|
|
165
165
|
let { onClose: n, children: s, dataAttributes: l } = param;
|
|
166
|
-
const { texts: f } = b(), [
|
|
166
|
+
const { texts: f } = b(), [r, o] = i.useReducer(Le, "closed"), u = i.useRef(!1), m = re(), t = i.useCallback((p)=>{
|
|
167
167
|
p.target === p.currentTarget && o("transitionEnd");
|
|
168
168
|
}, []), c = ()=>{
|
|
169
|
-
|
|
169
|
+
r === "open" && o("close");
|
|
170
170
|
};
|
|
171
171
|
i.useEffect(()=>{
|
|
172
|
-
if (
|
|
172
|
+
if (r === "opening" || r === "closing") {
|
|
173
173
|
const p = setTimeout(()=>{
|
|
174
174
|
o("transitionEnd");
|
|
175
|
-
},
|
|
175
|
+
}, be);
|
|
176
176
|
return ()=>clearTimeout(p);
|
|
177
177
|
}
|
|
178
178
|
}, [
|
|
179
|
-
|
|
179
|
+
r
|
|
180
180
|
]), i.useEffect(()=>{
|
|
181
|
-
|
|
181
|
+
r === "closed" ? u.current ? n == null || n() : o("open") : u.current = !0;
|
|
182
182
|
}, [
|
|
183
|
-
|
|
183
|
+
r,
|
|
184
184
|
n
|
|
185
185
|
]);
|
|
186
|
-
const
|
|
186
|
+
const _Te = Te({
|
|
187
187
|
closeModal: c
|
|
188
|
-
}), { onScroll: h, overlayStyle: d } =
|
|
188
|
+
}), { onScroll: h, overlayStyle: d } = _Te, a = _object_without_properties(_Te, [
|
|
189
189
|
"onScroll",
|
|
190
190
|
"overlayStyle"
|
|
191
191
|
]);
|
|
192
|
-
return oe(), ne(
|
|
193
|
-
children: /* @__PURE__ */ v(
|
|
192
|
+
return oe(), ne(r !== "closed"), r === "closed" ? null : /* @__PURE__ */ e(ie, {
|
|
193
|
+
children: /* @__PURE__ */ v(te, {
|
|
194
194
|
children: [
|
|
195
195
|
/* @__PURE__ */ e("div", {
|
|
196
196
|
className: w(G, {
|
|
197
|
-
[H]:
|
|
197
|
+
[H]: r === "closing"
|
|
198
198
|
}),
|
|
199
199
|
style: d,
|
|
200
200
|
onClick: c
|
|
201
201
|
}),
|
|
202
202
|
/* @__PURE__ */ e("div", _object_spread_props(_object_spread({
|
|
203
|
-
className: w(
|
|
204
|
-
[
|
|
203
|
+
className: w(V, {
|
|
204
|
+
[j]: r === "closing"
|
|
205
205
|
}),
|
|
206
|
-
onTransitionEnd:
|
|
207
|
-
onAnimationEnd:
|
|
206
|
+
onTransitionEnd: t,
|
|
207
|
+
onAnimationEnd: t
|
|
208
208
|
}, a, he(l, "Sheet")), {
|
|
209
209
|
ref: g,
|
|
210
210
|
children: /* @__PURE__ */ e("div", {
|
|
211
|
-
className:
|
|
211
|
+
className: F,
|
|
212
212
|
children: /* @__PURE__ */ v("div", {
|
|
213
|
-
className:
|
|
213
|
+
className: K,
|
|
214
214
|
children: [
|
|
215
215
|
/* @__PURE__ */ e("div", {
|
|
216
|
-
className:
|
|
216
|
+
className: $,
|
|
217
217
|
children: /* @__PURE__ */ e("div", {
|
|
218
|
-
className:
|
|
218
|
+
className: X
|
|
219
219
|
})
|
|
220
220
|
}),
|
|
221
221
|
/* @__PURE__ */ v("section", {
|
|
@@ -225,7 +225,7 @@ const P = (n)=>"touches" in n ? n.touches[0].clientY : n.clientY, be = (param)=>
|
|
|
225
225
|
onScroll: h,
|
|
226
226
|
className: q,
|
|
227
227
|
style: {
|
|
228
|
-
paddingBottom:
|
|
228
|
+
paddingBottom: De
|
|
229
229
|
},
|
|
230
230
|
children: [
|
|
231
231
|
typeof s == "function" ? s({
|
|
@@ -253,22 +253,22 @@ const P = (n)=>"touches" in n ? n.touches[0].clientY : n.clientY, be = (param)=>
|
|
|
253
253
|
})
|
|
254
254
|
});
|
|
255
255
|
}), k = {
|
|
256
|
-
mobile:
|
|
257
|
-
tablet:
|
|
258
|
-
desktop:
|
|
256
|
+
mobile: ye,
|
|
257
|
+
tablet: Ee,
|
|
258
|
+
desktop: Ie
|
|
259
259
|
}, T = (param)=>{
|
|
260
|
-
let { title: n, subtitle: s, description: l, modalTitleId: g, button: f, secondaryButton:
|
|
261
|
-
const m = i.useRef(null),
|
|
260
|
+
let { title: n, subtitle: s, description: l, modalTitleId: g, button: f, secondaryButton: r, link: o, children: u } = param;
|
|
261
|
+
const m = i.useRef(null), t = i.useRef(null), c = i.useRef(null);
|
|
262
262
|
i.useEffect(()=>{
|
|
263
|
-
|
|
263
|
+
t.current && (c.current = fe(t.current));
|
|
264
264
|
}, []);
|
|
265
|
-
const h = !
|
|
265
|
+
const h = !N(m, !0, {
|
|
266
266
|
root: c.current
|
|
267
|
-
}), d = !
|
|
267
|
+
}), d = !N(t, !0, {
|
|
268
268
|
rootMargin: "1px",
|
|
269
269
|
// bottomScrollSignal div has 0px height so we need a 1px margin to trigger the intersection observer
|
|
270
270
|
root: c.current
|
|
271
|
-
}), a = !!f || !!
|
|
271
|
+
}), a = !!f || !!r || !!o;
|
|
272
272
|
return /* @__PURE__ */ v(O, {
|
|
273
273
|
children: [
|
|
274
274
|
/* @__PURE__ */ e("div", {
|
|
@@ -277,7 +277,7 @@ const P = (n)=>"touches" in n ? n.touches[0].clientY : n.clientY, be = (param)=>
|
|
|
277
277
|
/* @__PURE__ */ v("div", {
|
|
278
278
|
className: Q,
|
|
279
279
|
children: [
|
|
280
|
-
n ? /* @__PURE__ */ e(
|
|
280
|
+
n ? /* @__PURE__ */ e(y, {
|
|
281
281
|
paddingBottom: 8,
|
|
282
282
|
paddingTop: {
|
|
283
283
|
mobile: 0,
|
|
@@ -290,27 +290,27 @@ const P = (n)=>"touches" in n ? n.touches[0].clientY : n.clientY, be = (param)=>
|
|
|
290
290
|
truncate: !0,
|
|
291
291
|
children: n
|
|
292
292
|
})
|
|
293
|
-
}) : /* @__PURE__ */ e(
|
|
293
|
+
}) : /* @__PURE__ */ e(y, {
|
|
294
294
|
paddingTop: {
|
|
295
295
|
mobile: 0,
|
|
296
296
|
desktop: 40
|
|
297
297
|
}
|
|
298
298
|
}),
|
|
299
|
-
h && /* @__PURE__ */ e(
|
|
299
|
+
h && /* @__PURE__ */ e(x, {})
|
|
300
300
|
]
|
|
301
301
|
}),
|
|
302
302
|
/* @__PURE__ */ e("div", {
|
|
303
303
|
className: U,
|
|
304
|
-
children: /* @__PURE__ */ e(
|
|
304
|
+
children: /* @__PURE__ */ e(y, {
|
|
305
305
|
paddingBottom: a ? 0 : {
|
|
306
306
|
desktop: 40,
|
|
307
307
|
mobile: 0
|
|
308
308
|
},
|
|
309
309
|
paddingX: k,
|
|
310
|
-
children: /* @__PURE__ */ v(
|
|
310
|
+
children: /* @__PURE__ */ v(I, {
|
|
311
311
|
space: 8,
|
|
312
312
|
children: [
|
|
313
|
-
s || l ? /* @__PURE__ */ v(
|
|
313
|
+
s || l ? /* @__PURE__ */ v(I, {
|
|
314
314
|
space: {
|
|
315
315
|
mobile: 8,
|
|
316
316
|
desktop: 16
|
|
@@ -325,13 +325,13 @@ const P = (n)=>"touches" in n ? n.touches[0].clientY : n.clientY, be = (param)=>
|
|
|
325
325
|
as: "div",
|
|
326
326
|
regular: !0,
|
|
327
327
|
color: S.colors.textSecondary,
|
|
328
|
-
children: l.map((p,
|
|
328
|
+
children: l.map((p, D)=>/* @__PURE__ */ e("p", {
|
|
329
329
|
style: {
|
|
330
330
|
margin: 0,
|
|
331
|
-
marginBottom:
|
|
331
|
+
marginBottom: D < l.length - 1 ? "1em" : void 0
|
|
332
332
|
},
|
|
333
333
|
children: p
|
|
334
|
-
},
|
|
334
|
+
}, D))
|
|
335
335
|
}) : /* @__PURE__ */ e(L, {
|
|
336
336
|
as: "p",
|
|
337
337
|
regular: !0,
|
|
@@ -348,8 +348,8 @@ const P = (n)=>"touches" in n ? n.touches[0].clientY : n.clientY, be = (param)=>
|
|
|
348
348
|
a && /* @__PURE__ */ v("div", {
|
|
349
349
|
className: W,
|
|
350
350
|
children: [
|
|
351
|
-
d && /* @__PURE__ */ e(
|
|
352
|
-
/* @__PURE__ */ e(
|
|
351
|
+
d && /* @__PURE__ */ e(x, {}),
|
|
352
|
+
/* @__PURE__ */ e(y, {
|
|
353
353
|
paddingY: {
|
|
354
354
|
mobile: 16,
|
|
355
355
|
desktop: 40
|
|
@@ -359,27 +359,27 @@ const P = (n)=>"touches" in n ? n.touches[0].clientY : n.clientY, be = (param)=>
|
|
|
359
359
|
align: "full-width",
|
|
360
360
|
link: o,
|
|
361
361
|
primaryButton: f,
|
|
362
|
-
secondaryButton:
|
|
362
|
+
secondaryButton: r
|
|
363
363
|
})
|
|
364
364
|
})
|
|
365
365
|
]
|
|
366
366
|
}),
|
|
367
367
|
/* @__PURE__ */ e("div", {
|
|
368
|
-
ref:
|
|
368
|
+
ref: t
|
|
369
369
|
})
|
|
370
370
|
]
|
|
371
371
|
});
|
|
372
|
-
},
|
|
373
|
-
let { title: n, subtitle: s, description: l, items: g, selectedId: f, onClose:
|
|
372
|
+
}, et = /*#__PURE__*/ i.forwardRef((param, t)=>{
|
|
373
|
+
let { title: n, subtitle: s, description: l, items: g, selectedId: f, onClose: r, onSelect: o, button: u, dataAttributes: m } = param;
|
|
374
374
|
const [c, h] = i.useState(f), d = i.useRef(!1), { isDesktopOrBigger: a } = C(), { texts: p } = b();
|
|
375
|
-
return /* @__PURE__ */ e(
|
|
376
|
-
onClose:
|
|
377
|
-
ref:
|
|
375
|
+
return /* @__PURE__ */ e(E, {
|
|
376
|
+
onClose: r,
|
|
377
|
+
ref: t,
|
|
378
378
|
dataAttributes: _object_spread({
|
|
379
379
|
"component-name": "RadioListSheet"
|
|
380
380
|
}, m),
|
|
381
381
|
children: (param)=>/* @__PURE__ */ {
|
|
382
|
-
let { closeModal:
|
|
382
|
+
let { closeModal: D, modalTitleId: B } = param;
|
|
383
383
|
var _ref;
|
|
384
384
|
return e(T, {
|
|
385
385
|
title: n,
|
|
@@ -388,7 +388,7 @@ const P = (n)=>"touches" in n ? n.touches[0].clientY : n.clientY, be = (param)=>
|
|
|
388
388
|
modalTitleId: B,
|
|
389
389
|
button: a ? /* @__PURE__ */ e(Y, {
|
|
390
390
|
onPress: ()=>{
|
|
391
|
-
d.current && (o == null || o(c !== null && c !== void 0 ? c : "")),
|
|
391
|
+
d.current && (o == null || o(c !== null && c !== void 0 ? c : "")), D();
|
|
392
392
|
},
|
|
393
393
|
children: (_ref = u == null ? void 0 : u.text) !== null && _ref !== void 0 ? _ref : p.sheetConfirmButton
|
|
394
394
|
}) : void 0,
|
|
@@ -399,7 +399,7 @@ const P = (n)=>"touches" in n ? n.touches[0].clientY : n.clientY, be = (param)=>
|
|
|
399
399
|
value: c,
|
|
400
400
|
onChange: (R)=>{
|
|
401
401
|
h(R), d.current = !0, !a && (o == null || o(R), setTimeout(()=>{
|
|
402
|
-
|
|
402
|
+
D();
|
|
403
403
|
}, 200));
|
|
404
404
|
},
|
|
405
405
|
children: /* @__PURE__ */ e(ae, {
|
|
@@ -418,17 +418,17 @@ const P = (n)=>"touches" in n ? n.touches[0].clientY : n.clientY, be = (param)=>
|
|
|
418
418
|
});
|
|
419
419
|
}
|
|
420
420
|
});
|
|
421
|
-
}),
|
|
422
|
-
let { title: n, subtitle: s, description: l, items: g, onClose: f, onSelect:
|
|
421
|
+
}), tt = /*#__PURE__*/ i.forwardRef((param, u)=>{
|
|
422
|
+
let { title: n, subtitle: s, description: l, items: g, onClose: f, onSelect: r, dataAttributes: o } = param;
|
|
423
423
|
const { isDarkMode: m } = b();
|
|
424
|
-
return /* @__PURE__ */ e(
|
|
424
|
+
return /* @__PURE__ */ e(E, {
|
|
425
425
|
onClose: f,
|
|
426
426
|
ref: u,
|
|
427
427
|
dataAttributes: _object_spread({
|
|
428
428
|
"component-name": "ActionsListSheet"
|
|
429
429
|
}, o),
|
|
430
430
|
children: (param)=>{
|
|
431
|
-
let { closeModal:
|
|
431
|
+
let { closeModal: t, modalTitleId: c } = param;
|
|
432
432
|
return /* @__PURE__ */ e(T, {
|
|
433
433
|
title: n,
|
|
434
434
|
subtitle: s,
|
|
@@ -439,12 +439,12 @@ const P = (n)=>"touches" in n ? n.touches[0].clientY : n.clientY, be = (param)=>
|
|
|
439
439
|
let { id: h, style: d, title: a, icon: p } = param;
|
|
440
440
|
return /* @__PURE__ */ e(de, {
|
|
441
441
|
onPress: ()=>{
|
|
442
|
-
|
|
442
|
+
r == null || r(h), t();
|
|
443
443
|
},
|
|
444
444
|
children: /* @__PURE__ */ v("div", {
|
|
445
445
|
className: Z,
|
|
446
446
|
children: [
|
|
447
|
-
p && /* @__PURE__ */ e(
|
|
447
|
+
p && /* @__PURE__ */ e(y, {
|
|
448
448
|
paddingRight: 16,
|
|
449
449
|
children: p.Icon ? /* @__PURE__ */ e(p.Icon, {
|
|
450
450
|
size: 24,
|
|
@@ -468,15 +468,15 @@ const P = (n)=>"touches" in n ? n.touches[0].clientY : n.clientY, be = (param)=>
|
|
|
468
468
|
});
|
|
469
469
|
}
|
|
470
470
|
});
|
|
471
|
-
}),
|
|
472
|
-
let { title: n, subtitle: s, description: l, items: g, onClose: f, dataAttributes:
|
|
471
|
+
}), rt = /*#__PURE__*/ i.forwardRef((param, o)=>{
|
|
472
|
+
let { title: n, subtitle: s, description: l, items: g, onClose: f, dataAttributes: r } = param;
|
|
473
473
|
const { isDarkMode: u } = b();
|
|
474
|
-
return /* @__PURE__ */ e(
|
|
474
|
+
return /* @__PURE__ */ e(E, {
|
|
475
475
|
onClose: f,
|
|
476
476
|
ref: o,
|
|
477
477
|
dataAttributes: _object_spread({
|
|
478
478
|
"component-name": "InfoSheet"
|
|
479
|
-
},
|
|
479
|
+
}, r),
|
|
480
480
|
children: (param)=>{
|
|
481
481
|
let { modalTitleId: m } = param;
|
|
482
482
|
return /* @__PURE__ */ e(T, {
|
|
@@ -484,50 +484,50 @@ const P = (n)=>"touches" in n ? n.touches[0].clientY : n.clientY, be = (param)=>
|
|
|
484
484
|
subtitle: s,
|
|
485
485
|
description: l,
|
|
486
486
|
modalTitleId: m,
|
|
487
|
-
children: /* @__PURE__ */ e(
|
|
487
|
+
children: /* @__PURE__ */ e(y, {
|
|
488
488
|
paddingBottom: 16,
|
|
489
|
-
children: /* @__PURE__ */ e(
|
|
489
|
+
children: /* @__PURE__ */ e(I, {
|
|
490
490
|
space: 16,
|
|
491
491
|
role: "list",
|
|
492
|
-
children: g.map((
|
|
492
|
+
children: g.map((t, c)=>/* @__PURE__ */ v(ue, {
|
|
493
493
|
space: 8,
|
|
494
494
|
children: [
|
|
495
495
|
/* @__PURE__ */ e("div", {
|
|
496
496
|
className: ee,
|
|
497
|
-
children:
|
|
497
|
+
children: t.icon.type === "bullet" ? /* @__PURE__ */ e(me, {
|
|
498
498
|
size: 8,
|
|
499
499
|
backgroundColor: S.colors.textPrimary
|
|
500
|
-
}) :
|
|
501
|
-
size:
|
|
500
|
+
}) : t.icon.Icon ? /* @__PURE__ */ e(t.icon.Icon, {
|
|
501
|
+
size: t.icon.type === "small" ? 16 : 24
|
|
502
502
|
}) : /* @__PURE__ */ e(_, {
|
|
503
|
-
src: u &&
|
|
504
|
-
width:
|
|
505
|
-
height:
|
|
503
|
+
src: u && t.icon.urlDark ? t.icon.urlDark : t.icon.url,
|
|
504
|
+
width: t.icon.type === "small" ? 16 : 24,
|
|
505
|
+
height: t.icon.type === "small" ? 16 : 24
|
|
506
506
|
})
|
|
507
507
|
}),
|
|
508
|
-
/* @__PURE__ */ v(
|
|
508
|
+
/* @__PURE__ */ v(I, {
|
|
509
509
|
space: 2,
|
|
510
510
|
children: [
|
|
511
511
|
/* @__PURE__ */ e(A, {
|
|
512
512
|
regular: !0,
|
|
513
|
-
children:
|
|
513
|
+
children: t.title
|
|
514
514
|
}),
|
|
515
|
-
|
|
515
|
+
t.description && /* @__PURE__ */ e(L, {
|
|
516
516
|
regular: !0,
|
|
517
517
|
color: S.colors.textSecondary,
|
|
518
|
-
children:
|
|
518
|
+
children: t.description
|
|
519
519
|
})
|
|
520
520
|
]
|
|
521
521
|
})
|
|
522
522
|
]
|
|
523
|
-
},
|
|
523
|
+
}, t.id || c))
|
|
524
524
|
})
|
|
525
525
|
})
|
|
526
526
|
});
|
|
527
527
|
}
|
|
528
528
|
});
|
|
529
|
-
}),
|
|
530
|
-
let { title: n, subtitle: s, description: l, button: g, secondaryButton: f, buttonLink:
|
|
529
|
+
}), nt = /*#__PURE__*/ i.forwardRef((param, t)=>{
|
|
530
|
+
let { title: n, subtitle: s, description: l, button: g, secondaryButton: f, buttonLink: r, onClose: o, dataAttributes: u, onPressButton: m } = param;
|
|
531
531
|
const c = (d, a)=>()=>{
|
|
532
532
|
m == null || m(a), d();
|
|
533
533
|
}, h = (_param)=>{
|
|
@@ -538,9 +538,9 @@ const P = (n)=>"touches" in n ? n.touches[0].clientY : n.clientY, be = (param)=>
|
|
|
538
538
|
children: d
|
|
539
539
|
}, a);
|
|
540
540
|
};
|
|
541
|
-
return /* @__PURE__ */ e(
|
|
541
|
+
return /* @__PURE__ */ e(E, {
|
|
542
542
|
onClose: o,
|
|
543
|
-
ref:
|
|
543
|
+
ref: t,
|
|
544
544
|
dataAttributes: _object_spread({
|
|
545
545
|
"component-name": "ActionsSheet"
|
|
546
546
|
}, u),
|
|
@@ -557,11 +557,11 @@ const P = (n)=>"touches" in n ? n.touches[0].clientY : n.clientY, be = (param)=>
|
|
|
557
557
|
secondaryButton: f ? /* @__PURE__ */ e(pe, _object_spread_props(_object_spread({}, h(f)), {
|
|
558
558
|
onPress: c(a, "SECONDARY")
|
|
559
559
|
})) : void 0,
|
|
560
|
-
link:
|
|
560
|
+
link: r ? /* @__PURE__ */ e(ge, _object_spread_props(_object_spread({}, h(r)), {
|
|
561
561
|
onPress: c(a, "LINK")
|
|
562
562
|
})) : void 0
|
|
563
563
|
});
|
|
564
564
|
}
|
|
565
565
|
});
|
|
566
|
-
}),
|
|
567
|
-
export {
|
|
566
|
+
}), ot = E;
|
|
567
|
+
export { tt as ActionsListSheet, nt as ActionsSheet, rt as InfoSheet, et as RadioListSheet, T as SheetBody, ot as default };
|