@telefonica/mistica 16.0.0 → 16.1.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/README.md +11 -9
- package/css/mistica.css +1 -1
- package/dist/box.d.ts +1 -0
- package/dist/box.js +12 -12
- package/dist/card.d.ts +14 -2
- package/dist/card.js +210 -206
- package/dist/credit-card-expiration-field.d.ts +1 -1
- package/dist/credit-card-expiration-field.js +53 -52
- package/dist/credit-card-number-field.d.ts +1 -1
- package/dist/credit-card-number-field.js +47 -45
- package/dist/cvv-field.d.ts +1 -1
- package/dist/cvv-field.js +38 -37
- package/dist/date-field.d.ts +1 -1
- package/dist/date-field.js +15 -13
- package/dist/date-time-field.d.ts +1 -1
- package/dist/date-time-field.js +13 -11
- package/dist/decimal-field.d.ts +1 -1
- package/dist/decimal-field.js +39 -38
- package/dist/email-field.d.ts +1 -1
- package/dist/email-field.js +21 -19
- package/dist/form-context.d.ts +7 -2
- package/dist/form-context.js +69 -62
- package/dist/form.d.ts +2 -1
- package/dist/form.js +94 -80
- package/dist/iban-field.d.ts +1 -1
- package/dist/iban-field.js +32 -30
- package/dist/index.d.ts +12 -3
- package/dist/index.js +19 -8
- package/dist/inline.d.ts +2 -1
- package/dist/inline.js +16 -15
- package/dist/integer-field.d.ts +1 -1
- package/dist/integer-field.js +30 -30
- package/dist/month-field.d.ts +1 -1
- package/dist/month-field.js +15 -13
- package/dist/package-version.js +1 -1
- package/dist/password-field.d.ts +1 -1
- package/dist/password-field.js +24 -22
- package/dist/phone-number-field.d.ts +4 -1
- package/dist/phone-number-field.js +84 -52
- package/dist/pin-field.js +21 -20
- package/dist/radio-button.d.ts +1 -0
- package/dist/radio-button.js +42 -41
- package/dist/rating.css-mistica.js +44 -0
- package/dist/rating.css.d.ts +11 -0
- package/dist/rating.css.ts.vanilla.css-mistica.js +11 -0
- package/dist/rating.d.ts +37 -0
- package/dist/rating.js +320 -0
- package/dist/search-field.d.ts +1 -0
- package/dist/search-field.js +18 -16
- package/dist/select.js +36 -33
- package/dist/sheet-action-row.css-mistica.js +13 -0
- package/dist/sheet-action-row.css.d.ts +1 -0
- package/dist/sheet-actions-list.d.ts +26 -0
- package/dist/sheet-actions-list.js +147 -0
- package/dist/sheet-actions.d.ts +23 -0
- package/dist/sheet-actions.js +175 -0
- package/dist/{sheet.css-mistica.js → sheet-common.css-mistica.js} +15 -21
- package/dist/{sheet.css.d.ts → sheet-common.css.d.ts} +0 -2
- package/dist/sheet-common.css.ts.vanilla.css-mistica.js +11 -0
- package/dist/sheet-common.d.ts +24 -0
- package/dist/sheet-common.js +429 -0
- package/dist/sheet-info.css-mistica.js +12 -0
- package/dist/sheet-info.css.d.ts +1 -0
- package/dist/sheet-info.d.ts +28 -0
- package/dist/sheet-info.js +156 -0
- package/dist/sheet-native.d.ts +2 -0
- package/dist/sheet-native.js +173 -0
- package/dist/sheet-radio-list.d.ts +22 -0
- package/dist/sheet-radio-list.js +143 -0
- package/dist/sheet-root.d.ts +4 -85
- package/dist/sheet-root.js +48 -322
- package/dist/sheet-types.d.ts +88 -0
- package/dist/sheet-web.d.ts +8 -0
- package/dist/sheet-web.js +183 -0
- package/dist/slider.js +40 -39
- package/dist/switch-component.js +18 -17
- package/dist/text-field-base.d.ts +3 -1
- package/dist/text-field-base.js +74 -66
- package/dist/text-field-components.css-mistica.js +14 -14
- package/dist/text-field-components.css.d.ts +2 -2
- package/dist/text-field-components.js +49 -39
- package/dist/text-field.d.ts +1 -0
- package/dist/text-field.js +24 -22
- package/dist/text-tokens.d.ts +14 -0
- package/dist/text-tokens.js +145 -89
- package/dist/theme-context-provider.js +6 -5
- package/dist/theme.d.ts +2 -0
- package/dist/utils/credit-card.d.ts +2 -2
- package/dist/utils/credit-card.js +1 -1
- package/dist/vivinho-loading-animation/in-lottie.json.js +544 -612
- package/dist/vivinho-loading-animation/out-lottie.json.js +828 -896
- package/dist/vivinho-loading-animation/pulse-lottie.json.js +798 -866
- package/dist/vivinho-loading-animation/wave-lottie.json.js +4303 -4409
- package/dist-es/box.js +18 -18
- package/dist-es/card.js +305 -301
- package/dist-es/credit-card-expiration-field.js +57 -56
- package/dist-es/credit-card-number-field.js +74 -72
- package/dist-es/cvv-field.js +82 -81
- package/dist-es/date-field.js +29 -27
- package/dist-es/date-time-field.js +29 -27
- package/dist-es/decimal-field.js +46 -45
- package/dist-es/email-field.js +26 -24
- package/dist-es/form-context.js +70 -63
- package/dist-es/form.js +102 -88
- package/dist-es/iban-field.js +35 -33
- package/dist-es/index.js +1822 -1817
- package/dist-es/inline.js +26 -25
- package/dist-es/integer-field.js +31 -31
- package/dist-es/month-field.js +28 -26
- package/dist-es/package-version.js +1 -1
- package/dist-es/password-field.js +37 -35
- package/dist-es/phone-number-field.js +92 -60
- package/dist-es/pin-field.js +32 -31
- package/dist-es/radio-button.js +42 -41
- package/dist-es/rating.css-mistica.js +6 -0
- package/dist-es/rating.css.ts.vanilla.css-mistica.js +2 -0
- package/dist-es/rating.js +257 -0
- package/dist-es/search-field.js +33 -31
- package/dist-es/select.js +49 -46
- package/dist-es/sheet-action-row.css-mistica.js +4 -0
- package/dist-es/sheet-actions-list.js +92 -0
- package/dist-es/sheet-actions.js +125 -0
- package/dist-es/sheet-common.css-mistica.js +4 -0
- package/dist-es/sheet-common.css.ts.vanilla.css-mistica.js +2 -0
- package/dist-es/sheet-common.js +366 -0
- package/dist-es/sheet-info.css-mistica.js +3 -0
- package/dist-es/sheet-info.js +101 -0
- package/dist-es/sheet-native.js +164 -0
- package/dist-es/sheet-radio-list.js +88 -0
- package/dist-es/sheet-root.js +50 -319
- package/dist-es/sheet-web.js +128 -0
- package/dist-es/slider.js +49 -48
- package/dist-es/style.css +1 -1
- package/dist-es/switch-component.js +27 -26
- package/dist-es/text-field-base.js +108 -100
- package/dist-es/text-field-components.css-mistica.js +2 -2
- package/dist-es/text-field-components.js +70 -60
- package/dist-es/text-field.js +33 -31
- package/dist-es/text-tokens.js +80 -45
- package/dist-es/theme-context-provider.js +20 -19
- package/dist-es/utils/credit-card.js +1 -1
- package/dist-es/vivinho-loading-animation/in-lottie.json.js +534 -599
- package/dist-es/vivinho-loading-animation/out-lottie.json.js +821 -886
- package/dist-es/vivinho-loading-animation/pulse-lottie.json.js +790 -855
- package/dist-es/vivinho-loading-animation/wave-lottie.json.js +4297 -4400
- package/package.json +4 -3
- package/dist/sheet.d.ts +0 -107
- package/dist/sheet.js +0 -642
- package/dist-es/sheet.css-mistica.js +0 -4
- package/dist-es/sheet.js +0 -567
- /package/dist/{sheet.css.ts.vanilla.css-mistica.js → sheet-action-row.css.ts.vanilla.css-mistica.js} +0 -0
- /package/dist-es/{sheet.css.ts.vanilla.css-mistica.js → sheet-action-row.css.ts.vanilla.css-mistica.js} +0 -0
package/dist/card.js
CHANGED
|
@@ -14,34 +14,34 @@ _export(exports, {
|
|
|
14
14
|
return ua;
|
|
15
15
|
},
|
|
16
16
|
CardActionSpinner: function() {
|
|
17
|
-
return
|
|
17
|
+
return ya;
|
|
18
18
|
},
|
|
19
19
|
CardActionsGroup: function() {
|
|
20
|
-
return
|
|
20
|
+
return Z;
|
|
21
21
|
},
|
|
22
22
|
DataCard: function() {
|
|
23
|
-
return
|
|
23
|
+
return Ya;
|
|
24
24
|
},
|
|
25
25
|
DisplayDataCard: function() {
|
|
26
26
|
return er;
|
|
27
27
|
},
|
|
28
28
|
DisplayMediaCard: function() {
|
|
29
|
-
return
|
|
29
|
+
return Pa;
|
|
30
30
|
},
|
|
31
31
|
MediaCard: function() {
|
|
32
|
-
return
|
|
32
|
+
return Ka;
|
|
33
33
|
},
|
|
34
34
|
NakedCard: function() {
|
|
35
|
-
return
|
|
35
|
+
return Qa;
|
|
36
36
|
},
|
|
37
37
|
PosterCard: function() {
|
|
38
38
|
return ar;
|
|
39
39
|
},
|
|
40
40
|
SmallNakedCard: function() {
|
|
41
|
-
return
|
|
41
|
+
return Ua;
|
|
42
42
|
},
|
|
43
43
|
SnapCard: function() {
|
|
44
|
-
return
|
|
44
|
+
return Za;
|
|
45
45
|
},
|
|
46
46
|
useVideoWithControls: function() {
|
|
47
47
|
return Ve;
|
|
@@ -202,19 +202,19 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
202
202
|
return target;
|
|
203
203
|
}
|
|
204
204
|
const M = ()=>{
|
|
205
|
-
const [a, r] = _react.useState(""),
|
|
206
|
-
|
|
205
|
+
const [a, r] = _react.useState(""), t = _react.useCallback((n)=>{
|
|
206
|
+
n && r((process.env.NODE_ENV === "test" ? n.textContent : n.innerText) || "");
|
|
207
207
|
}, []);
|
|
208
208
|
return {
|
|
209
209
|
text: a,
|
|
210
|
-
ref:
|
|
210
|
+
ref: t
|
|
211
211
|
};
|
|
212
|
-
}, Oe = (a, r,
|
|
213
|
-
const { texts:
|
|
212
|
+
}, Oe = (a, r, t)=>{
|
|
213
|
+
const { texts: n, t: o } = (0, _hooks.useTheme)(), d = a ? [
|
|
214
214
|
...a
|
|
215
215
|
] : [];
|
|
216
216
|
return r && d.push({
|
|
217
|
-
label:
|
|
217
|
+
label: t || n.closeButtonLabel || o(_texttokens.closeButtonLabel),
|
|
218
218
|
onPress: r,
|
|
219
219
|
Icon: _iconcloseregular.default
|
|
220
220
|
}), d;
|
|
@@ -238,11 +238,11 @@ const M = ()=>{
|
|
|
238
238
|
}),
|
|
239
239
|
small: !0
|
|
240
240
|
}));
|
|
241
|
-
},
|
|
242
|
-
let { actions: a, padding: r = 16, onClose:
|
|
243
|
-
const d = Oe(a,
|
|
241
|
+
}, Z = (param)=>{
|
|
242
|
+
let { actions: a, padding: r = 16, onClose: t, variant: n = "default", closeButtonLabel: o } = param;
|
|
243
|
+
const d = Oe(a, t, o);
|
|
244
244
|
return d.length > 0 ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
|
|
245
|
-
variant:
|
|
245
|
+
variant: n,
|
|
246
246
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
247
247
|
style: {
|
|
248
248
|
position: "absolute",
|
|
@@ -262,26 +262,30 @@ const M = ()=>{
|
|
|
262
262
|
"7:10": 7 / 10,
|
|
263
263
|
"9:10": 9 / 10,
|
|
264
264
|
auto: 0
|
|
265
|
-
})[a] : 0,
|
|
266
|
-
let { children: a, width: r, height:
|
|
267
|
-
const h = r &&
|
|
265
|
+
})[a] : 0, $ = /*#__PURE__*/ _react.forwardRef((param, i)=>{
|
|
266
|
+
let { children: a, width: r, height: t, aspectRatio: n, dataAttributes: o, className: d, "aria-label": l } = param;
|
|
267
|
+
const h = r && t ? void 0 : va(n);
|
|
268
268
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)("section", _object_spread_props(_object_spread({}, (0, _dom.getPrefixedDataAttributes)(o)), {
|
|
269
269
|
ref: i,
|
|
270
270
|
"aria-label": l,
|
|
271
271
|
className: (0, _classnames.default)(d, _cardcssmistica.cardContainer),
|
|
272
272
|
style: _object_spread({
|
|
273
273
|
width: r || "100%",
|
|
274
|
-
height:
|
|
274
|
+
height: t || "100%"
|
|
275
275
|
}, h ? (0, _css.applyCssVars)({
|
|
276
276
|
[_cardcssmistica.vars.aspectRatio]: String(h)
|
|
277
277
|
}) : {}),
|
|
278
278
|
children: a
|
|
279
279
|
}));
|
|
280
|
-
}), je = (a)
|
|
280
|
+
}), je = (a)=>{
|
|
281
|
+
const r = typeof a == "string" ? a : a == null ? void 0 : a.src, t = typeof a == "string" || a == null ? void 0 : a.srcSet;
|
|
282
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_image.default, {
|
|
281
283
|
width: "100%",
|
|
282
284
|
height: "100%",
|
|
283
|
-
src:
|
|
284
|
-
|
|
285
|
+
src: r || "",
|
|
286
|
+
srcSet: t
|
|
287
|
+
});
|
|
288
|
+
}, fa = {
|
|
285
289
|
loading: {
|
|
286
290
|
showSpinner: "loadingTimeout",
|
|
287
291
|
play: "playing",
|
|
@@ -307,14 +311,14 @@ const M = ()=>{
|
|
|
307
311
|
error: {
|
|
308
312
|
reset: "loading"
|
|
309
313
|
}
|
|
310
|
-
}, pa = (a, r)=>fa[a][r] || a,
|
|
314
|
+
}, pa = (a, r)=>fa[a][r] || a, ya = (param)=>{
|
|
311
315
|
let { color: a } = param;
|
|
312
316
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_spinner.default, {
|
|
313
317
|
color: a,
|
|
314
318
|
size: 16,
|
|
315
319
|
delay: "0"
|
|
316
320
|
});
|
|
317
|
-
},
|
|
321
|
+
}, ga = (param)=>{
|
|
318
322
|
let { color: a } = param;
|
|
319
323
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconpausefilled.default, {
|
|
320
324
|
color: a,
|
|
@@ -326,8 +330,8 @@ const M = ()=>{
|
|
|
326
330
|
color: a,
|
|
327
331
|
size: 12
|
|
328
332
|
});
|
|
329
|
-
}, Ve = (a, r,
|
|
330
|
-
const { texts:
|
|
333
|
+
}, Ve = (a, r, t)=>{
|
|
334
|
+
const { texts: n, t: o } = (0, _hooks.useTheme)(), d = _react.useRef(null), [l, i] = _react.useReducer(pa, "loading");
|
|
331
335
|
_react.useEffect(()=>{
|
|
332
336
|
var u;
|
|
333
337
|
const m = setTimeout(()=>i("showSpinner"), 2e3);
|
|
@@ -338,7 +342,7 @@ const M = ()=>{
|
|
|
338
342
|
a
|
|
339
343
|
]);
|
|
340
344
|
const h = _react.useMemo(()=>a !== void 0 ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_video.default, {
|
|
341
|
-
ref: (0, _common.combineRefs)(d,
|
|
345
|
+
ref: (0, _common.combineRefs)(d, t),
|
|
342
346
|
src: a,
|
|
343
347
|
width: "100%",
|
|
344
348
|
height: "100%",
|
|
@@ -347,7 +351,7 @@ const M = ()=>{
|
|
|
347
351
|
onPause: ()=>i("pause"),
|
|
348
352
|
onPlay: ()=>i("play")
|
|
349
353
|
}) : void 0, [
|
|
350
|
-
|
|
354
|
+
t,
|
|
351
355
|
a,
|
|
352
356
|
r
|
|
353
357
|
]), c = ()=>{
|
|
@@ -359,12 +363,12 @@ const M = ()=>{
|
|
|
359
363
|
};
|
|
360
364
|
const p = h ? {
|
|
361
365
|
uncheckedProps: {
|
|
362
|
-
Icon: l === "loadingTimeout" && !(0, _platform.isRunningAcceptanceTest)() ?
|
|
363
|
-
label: l === "loadingTimeout" ? "" :
|
|
366
|
+
Icon: l === "loadingTimeout" && !(0, _platform.isRunningAcceptanceTest)() ? ya : ga,
|
|
367
|
+
label: l === "loadingTimeout" ? "" : n.pauseIconButtonLabel || o(_texttokens.pauseIconButtonLabel)
|
|
364
368
|
},
|
|
365
369
|
checkedProps: {
|
|
366
370
|
Icon: xa,
|
|
367
|
-
label:
|
|
371
|
+
label: n.playIconButtonLabel || o(_texttokens.playIconButtonLabel)
|
|
368
372
|
},
|
|
369
373
|
onChange: c,
|
|
370
374
|
disabled: l === "loadingTimeout",
|
|
@@ -374,9 +378,9 @@ const M = ()=>{
|
|
|
374
378
|
video: h,
|
|
375
379
|
videoAction: p
|
|
376
380
|
};
|
|
377
|
-
},
|
|
378
|
-
let { headline: a, headlineRef: r, pretitle:
|
|
379
|
-
const { textPresets:
|
|
381
|
+
}, ge = (param)=>{
|
|
382
|
+
let { headline: a, headlineRef: r, pretitle: t, pretitleLinesMax: n, title: o, titleAs: d = "h3", titleLinesMax: l, subtitle: i, subtitleLinesMax: h, description: c, descriptionLinesMax: p, extra: m, extraRef: u, button: f, buttonLink: x } = param;
|
|
383
|
+
const { textPresets: b } = (0, _hooks.useTheme)();
|
|
380
384
|
return /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
381
385
|
className: (0, _sprinklescssmistica.sprinkles)({
|
|
382
386
|
display: "flex",
|
|
@@ -394,7 +398,7 @@ const M = ()=>{
|
|
|
394
398
|
},
|
|
395
399
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, _text.textProps.text4), {
|
|
396
400
|
truncate: l,
|
|
397
|
-
weight:
|
|
401
|
+
weight: b.cardTitle.weight,
|
|
398
402
|
as: d,
|
|
399
403
|
hyphens: "auto",
|
|
400
404
|
children: o
|
|
@@ -412,17 +416,17 @@ const M = ()=>{
|
|
|
412
416
|
children: a
|
|
413
417
|
}) : a
|
|
414
418
|
}),
|
|
415
|
-
|
|
419
|
+
t && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
416
420
|
style: {
|
|
417
421
|
order: -1,
|
|
418
422
|
paddingBottom: 4
|
|
419
423
|
},
|
|
420
424
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
421
|
-
truncate:
|
|
425
|
+
truncate: n,
|
|
422
426
|
as: "div",
|
|
423
427
|
regular: !0,
|
|
424
428
|
hyphens: "auto",
|
|
425
|
-
children:
|
|
429
|
+
children: t
|
|
426
430
|
})
|
|
427
431
|
}),
|
|
428
432
|
i && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
@@ -441,7 +445,7 @@ const M = ()=>{
|
|
|
441
445
|
// Otherwise, only 4px are added by title|pretitle|subtitle, so we need to add 4px more
|
|
442
446
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
443
447
|
style: {
|
|
444
|
-
paddingTop:
|
|
448
|
+
paddingTop: t || o || i ? 4 : 0
|
|
445
449
|
},
|
|
446
450
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
447
451
|
truncate: p,
|
|
@@ -467,8 +471,8 @@ const M = ()=>{
|
|
|
467
471
|
})
|
|
468
472
|
]
|
|
469
473
|
});
|
|
470
|
-
},
|
|
471
|
-
var { media: a, asset: r, headline:
|
|
474
|
+
}, Ka = /*#__PURE__*/ _react.forwardRef((_param, D)=>{
|
|
475
|
+
var { media: a, asset: r, headline: t, pretitle: n, pretitleLinesMax: o, subtitle: d, subtitleLinesMax: l, title: i, titleAs: h = "h3", titleLinesMax: c, description: p, descriptionLinesMax: m, extra: u, actions: f, button: x, buttonLink: b, dataAttributes: C, "aria-label": T, onClose: S, closeButtonLabel: N } = _param, y = _object_without_properties(_param, [
|
|
472
476
|
"media",
|
|
473
477
|
"asset",
|
|
474
478
|
"headline",
|
|
@@ -490,20 +494,20 @@ const M = ()=>{
|
|
|
490
494
|
"onClose",
|
|
491
495
|
"closeButtonLabel"
|
|
492
496
|
]);
|
|
493
|
-
const R = !!(
|
|
497
|
+
const R = !!(y.href || y.to || y.onPress), { text: z, ref: H } = M(), { text: E, ref: w } = M(), k = T || [
|
|
494
498
|
i,
|
|
495
499
|
z,
|
|
496
|
-
|
|
500
|
+
n,
|
|
497
501
|
d,
|
|
498
502
|
p,
|
|
499
|
-
|
|
503
|
+
E
|
|
500
504
|
].filter(Boolean).join(" ");
|
|
501
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(
|
|
505
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsxs)($, {
|
|
502
506
|
dataAttributes: _object_spread({
|
|
503
507
|
"component-name": "MediaCard"
|
|
504
|
-
},
|
|
508
|
+
}, C),
|
|
505
509
|
ref: D,
|
|
506
|
-
"aria-label": R ? void 0 :
|
|
510
|
+
"aria-label": R ? void 0 : T,
|
|
507
511
|
className: _cardcssmistica.touchableContainer,
|
|
508
512
|
children: [
|
|
509
513
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.Boxed, {
|
|
@@ -512,9 +516,9 @@ const M = ()=>{
|
|
|
512
516
|
height: "100%",
|
|
513
517
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
514
518
|
maybe: !0
|
|
515
|
-
},
|
|
519
|
+
}, y), {
|
|
516
520
|
className: _cardcssmistica.touchable,
|
|
517
|
-
"aria-label": R ?
|
|
521
|
+
"aria-label": R ? k : void 0,
|
|
518
522
|
children: [
|
|
519
523
|
R && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
520
524
|
className: _cardcssmistica.touchableMediaCardOverlay
|
|
@@ -530,10 +534,10 @@ const M = ()=>{
|
|
|
530
534
|
}),
|
|
531
535
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
532
536
|
className: _cardcssmistica.mediaCardContent,
|
|
533
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
534
|
-
headline:
|
|
535
|
-
headlineRef:
|
|
536
|
-
pretitle:
|
|
537
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(ge, {
|
|
538
|
+
headline: t,
|
|
539
|
+
headlineRef: H,
|
|
540
|
+
pretitle: n,
|
|
537
541
|
pretitleLinesMax: o,
|
|
538
542
|
title: i,
|
|
539
543
|
titleAs: h,
|
|
@@ -543,9 +547,9 @@ const M = ()=>{
|
|
|
543
547
|
description: p,
|
|
544
548
|
descriptionLinesMax: m,
|
|
545
549
|
extra: u,
|
|
546
|
-
extraRef:
|
|
550
|
+
extraRef: w,
|
|
547
551
|
button: x,
|
|
548
|
-
buttonLink:
|
|
552
|
+
buttonLink: b
|
|
549
553
|
})
|
|
550
554
|
}),
|
|
551
555
|
r && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
@@ -570,16 +574,16 @@ const M = ()=>{
|
|
|
570
574
|
]
|
|
571
575
|
}))
|
|
572
576
|
}),
|
|
573
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
574
|
-
onClose:
|
|
575
|
-
closeButtonLabel:
|
|
577
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(Z, {
|
|
578
|
+
onClose: S,
|
|
579
|
+
closeButtonLabel: N,
|
|
576
580
|
actions: f,
|
|
577
581
|
variant: "media"
|
|
578
582
|
})
|
|
579
583
|
]
|
|
580
584
|
});
|
|
581
|
-
}),
|
|
582
|
-
var { media: a, asset: r, headline:
|
|
585
|
+
}), Qa = /*#__PURE__*/ _react.forwardRef((_param, D)=>{
|
|
586
|
+
var { media: a, asset: r, headline: t, pretitle: n, pretitleLinesMax: o, subtitle: d, subtitleLinesMax: l, title: i, titleAs: h = "h3", titleLinesMax: c, description: p, descriptionLinesMax: m, extra: u, actions: f, button: x, buttonLink: b, dataAttributes: C, "aria-label": T, onClose: S, closeButtonLabel: N } = _param, y = _object_without_properties(_param, [
|
|
583
587
|
"media",
|
|
584
588
|
"asset",
|
|
585
589
|
"headline",
|
|
@@ -601,27 +605,27 @@ const M = ()=>{
|
|
|
601
605
|
"onClose",
|
|
602
606
|
"closeButtonLabel"
|
|
603
607
|
]);
|
|
604
|
-
const R = !!(
|
|
608
|
+
const R = !!(y.href || y.to || y.onPress), z = a && a.type === _image.default && a.props.circular, { text: H, ref: E } = M(), { text: w, ref: k } = M(), I = T || [
|
|
605
609
|
i,
|
|
606
|
-
|
|
607
|
-
|
|
610
|
+
H,
|
|
611
|
+
n,
|
|
608
612
|
d,
|
|
609
613
|
p,
|
|
610
|
-
|
|
614
|
+
w
|
|
611
615
|
].filter(Boolean).join(" ");
|
|
612
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(
|
|
616
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsxs)($, {
|
|
613
617
|
ref: D,
|
|
614
618
|
dataAttributes: _object_spread({
|
|
615
619
|
"component-name": "NakedCard"
|
|
616
|
-
},
|
|
617
|
-
"aria-label": R ? void 0 :
|
|
620
|
+
}, C),
|
|
621
|
+
"aria-label": R ? void 0 : T,
|
|
618
622
|
className: R ? _cardcssmistica.touchableContainer : void 0,
|
|
619
623
|
children: [
|
|
620
624
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
621
625
|
maybe: !0
|
|
622
|
-
},
|
|
626
|
+
}, y), {
|
|
623
627
|
className: _cardcssmistica.touchable,
|
|
624
|
-
"aria-label": R ?
|
|
628
|
+
"aria-label": R ? I : void 0,
|
|
625
629
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
626
630
|
className: _cardcssmistica.mediaCard,
|
|
627
631
|
children: [
|
|
@@ -640,10 +644,10 @@ const M = ()=>{
|
|
|
640
644
|
}),
|
|
641
645
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
642
646
|
className: _cardcssmistica.nakedCardContent,
|
|
643
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
644
|
-
headline:
|
|
645
|
-
headlineRef:
|
|
646
|
-
pretitle:
|
|
647
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(ge, {
|
|
648
|
+
headline: t,
|
|
649
|
+
headlineRef: E,
|
|
650
|
+
pretitle: n,
|
|
647
651
|
pretitleLinesMax: o,
|
|
648
652
|
title: i,
|
|
649
653
|
titleAs: h,
|
|
@@ -653,9 +657,9 @@ const M = ()=>{
|
|
|
653
657
|
description: p,
|
|
654
658
|
descriptionLinesMax: m,
|
|
655
659
|
extra: u,
|
|
656
|
-
extraRef:
|
|
660
|
+
extraRef: k,
|
|
657
661
|
button: x,
|
|
658
|
-
buttonLink:
|
|
662
|
+
buttonLink: b
|
|
659
663
|
})
|
|
660
664
|
}),
|
|
661
665
|
r && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
@@ -678,16 +682,16 @@ const M = ()=>{
|
|
|
678
682
|
]
|
|
679
683
|
})
|
|
680
684
|
})),
|
|
681
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
682
|
-
onClose:
|
|
683
|
-
closeButtonLabel:
|
|
685
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(Z, {
|
|
686
|
+
onClose: S,
|
|
687
|
+
closeButtonLabel: N,
|
|
684
688
|
actions: f,
|
|
685
689
|
variant: "media"
|
|
686
690
|
})
|
|
687
691
|
]
|
|
688
692
|
});
|
|
689
|
-
}),
|
|
690
|
-
var { media: a, title: r, titleAs:
|
|
693
|
+
}), Ua = /*#__PURE__*/ _react.forwardRef((_param, u)=>{
|
|
694
|
+
var { media: a, title: r, titleAs: t = "h3", titleLinesMax: n, subtitle: o, subtitleLinesMax: d, description: l, descriptionLinesMax: i, extra: h, dataAttributes: c, "aria-label": p } = _param, m = _object_without_properties(_param, [
|
|
691
695
|
"media",
|
|
692
696
|
"title",
|
|
693
697
|
"titleAs",
|
|
@@ -700,13 +704,13 @@ const M = ()=>{
|
|
|
700
704
|
"dataAttributes",
|
|
701
705
|
"aria-label"
|
|
702
706
|
]);
|
|
703
|
-
const f = !!(m.href || m.to || m.onPress), x = a && a.type === _image.default && a.props.circular, { textPresets:
|
|
707
|
+
const f = !!(m.href || m.to || m.onPress), x = a && a.type === _image.default && a.props.circular, { textPresets: b } = (0, _hooks.useTheme)(), { text: C, ref: T } = M(), S = p || [
|
|
704
708
|
r,
|
|
705
709
|
o,
|
|
706
710
|
l,
|
|
707
|
-
|
|
711
|
+
C
|
|
708
712
|
].filter(Boolean).join(" ");
|
|
709
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
713
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)($, {
|
|
710
714
|
ref: u,
|
|
711
715
|
dataAttributes: _object_spread({
|
|
712
716
|
"component-name": "SmallNakedCard"
|
|
@@ -717,7 +721,7 @@ const M = ()=>{
|
|
|
717
721
|
maybe: !0
|
|
718
722
|
}, m), {
|
|
719
723
|
className: _cardcssmistica.touchable,
|
|
720
|
-
"aria-label": f ?
|
|
724
|
+
"aria-label": f ? S : void 0,
|
|
721
725
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
722
726
|
className: _cardcssmistica.mediaCard,
|
|
723
727
|
children: [
|
|
@@ -742,9 +746,9 @@ const M = ()=>{
|
|
|
742
746
|
space: 4,
|
|
743
747
|
children: [
|
|
744
748
|
r && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, _text.textProps.text2), {
|
|
745
|
-
truncate:
|
|
746
|
-
weight:
|
|
747
|
-
as:
|
|
749
|
+
truncate: n,
|
|
750
|
+
weight: b.cardTitle.weight,
|
|
751
|
+
as: t,
|
|
748
752
|
hyphens: "auto",
|
|
749
753
|
children: r
|
|
750
754
|
})),
|
|
@@ -767,7 +771,7 @@ const M = ()=>{
|
|
|
767
771
|
})
|
|
768
772
|
}),
|
|
769
773
|
h && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
770
|
-
ref:
|
|
774
|
+
ref: T,
|
|
771
775
|
children: h
|
|
772
776
|
})
|
|
773
777
|
]
|
|
@@ -776,8 +780,8 @@ const M = ()=>{
|
|
|
776
780
|
})
|
|
777
781
|
}))
|
|
778
782
|
});
|
|
779
|
-
}),
|
|
780
|
-
var { asset: a, headline: r, pretitle:
|
|
783
|
+
}), Ya = /*#__PURE__*/ _react.forwardRef((_param, D)=>{
|
|
784
|
+
var { asset: a, headline: r, pretitle: t, pretitleLinesMax: n, title: o, titleAs: d = "h3", titleLinesMax: l, subtitle: i, subtitleLinesMax: h, description: c, descriptionLinesMax: p, extra: m, actions: u, button: f, buttonLink: x, dataAttributes: b, "aria-label": C, onClose: T, closeButtonLabel: S, aspectRatio: N } = _param, y = _object_without_properties(_param, [
|
|
781
785
|
"asset",
|
|
782
786
|
"headline",
|
|
783
787
|
"pretitle",
|
|
@@ -799,21 +803,21 @@ const M = ()=>{
|
|
|
799
803
|
"closeButtonLabel",
|
|
800
804
|
"aspectRatio"
|
|
801
805
|
]);
|
|
802
|
-
const R = !!a || !!r, z = !!(
|
|
806
|
+
const R = !!a || !!r, z = !!(y.href || y.to || y.onPress), { text: H, ref: E } = M(), { text: w, ref: k } = M(), I = Oe(u, T), g = C || [
|
|
803
807
|
o,
|
|
804
|
-
|
|
805
|
-
|
|
808
|
+
H,
|
|
809
|
+
t,
|
|
806
810
|
c,
|
|
807
|
-
|
|
811
|
+
w
|
|
808
812
|
].filter(Boolean).join(" ");
|
|
809
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(
|
|
813
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsxs)($, {
|
|
810
814
|
dataAttributes: _object_spread({
|
|
811
815
|
"component-name": "DataCard"
|
|
812
|
-
},
|
|
816
|
+
}, b),
|
|
813
817
|
ref: D,
|
|
814
|
-
"aria-label": z ? void 0 :
|
|
818
|
+
"aria-label": z ? void 0 : C,
|
|
815
819
|
className: _cardcssmistica.touchableContainer,
|
|
816
|
-
aspectRatio:
|
|
820
|
+
aspectRatio: N,
|
|
817
821
|
children: [
|
|
818
822
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.Boxed, {
|
|
819
823
|
className: _cardcssmistica.boxed,
|
|
@@ -821,9 +825,9 @@ const M = ()=>{
|
|
|
821
825
|
minHeight: "100%",
|
|
822
826
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
823
827
|
maybe: !0
|
|
824
|
-
},
|
|
828
|
+
}, y), {
|
|
825
829
|
className: _cardcssmistica.touchable,
|
|
826
|
-
"aria-label": z ?
|
|
830
|
+
"aria-label": z ? g : void 0,
|
|
827
831
|
children: [
|
|
828
832
|
z && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
829
833
|
className: _cardcssmistica.touchableCardOverlay
|
|
@@ -843,11 +847,11 @@ const M = ()=>{
|
|
|
843
847
|
}),
|
|
844
848
|
children: a
|
|
845
849
|
}),
|
|
846
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
850
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(ge, {
|
|
847
851
|
headline: r,
|
|
848
|
-
headlineRef:
|
|
849
|
-
pretitle:
|
|
850
|
-
pretitleLinesMax:
|
|
852
|
+
headlineRef: E,
|
|
853
|
+
pretitle: t,
|
|
854
|
+
pretitleLinesMax: n,
|
|
851
855
|
title: o,
|
|
852
856
|
titleAs: d,
|
|
853
857
|
titleLinesMax: l,
|
|
@@ -860,14 +864,14 @@ const M = ()=>{
|
|
|
860
864
|
}),
|
|
861
865
|
!R && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
862
866
|
style: (0, _css.applyCssVars)({
|
|
863
|
-
[_cardcssmistica.vars.topActionsCount]: String(
|
|
867
|
+
[_cardcssmistica.vars.topActionsCount]: String(I.length)
|
|
864
868
|
}),
|
|
865
869
|
className: _cardcssmistica.dataCardTopActionsWithoutIcon
|
|
866
870
|
})
|
|
867
871
|
]
|
|
868
872
|
}),
|
|
869
873
|
m && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
870
|
-
ref:
|
|
874
|
+
ref: k,
|
|
871
875
|
children: m
|
|
872
876
|
}),
|
|
873
877
|
(f || x) && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
@@ -882,16 +886,16 @@ const M = ()=>{
|
|
|
882
886
|
]
|
|
883
887
|
}))
|
|
884
888
|
}),
|
|
885
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
886
|
-
onClose:
|
|
887
|
-
closeButtonLabel:
|
|
889
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(Z, {
|
|
890
|
+
onClose: T,
|
|
891
|
+
closeButtonLabel: S,
|
|
888
892
|
actions: u,
|
|
889
893
|
variant: "default"
|
|
890
894
|
})
|
|
891
895
|
]
|
|
892
896
|
});
|
|
893
|
-
}),
|
|
894
|
-
var { asset: a, title: r, titleAs:
|
|
897
|
+
}), Za = /*#__PURE__*/ _react.forwardRef((_param, x)=>{
|
|
898
|
+
var { asset: a, title: r, titleAs: t = "h3", titleLinesMax: n, subtitle: o, subtitleLinesMax: d, description: l, descriptionLinesMax: i, dataAttributes: h, "aria-label": c, extra: p, isInverse: m = !1, aspectRatio: u } = _param, f = _object_without_properties(_param, [
|
|
895
899
|
"asset",
|
|
896
900
|
"title",
|
|
897
901
|
"titleAs",
|
|
@@ -906,20 +910,20 @@ const M = ()=>{
|
|
|
906
910
|
"isInverse",
|
|
907
911
|
"aspectRatio"
|
|
908
912
|
]);
|
|
909
|
-
const { textPresets:
|
|
913
|
+
const { textPresets: b } = (0, _hooks.useTheme)(), C = !!(f.href || f.to || f.onPress), T = m ? _cardcssmistica.touchableCardOverlayInverse : _cardcssmistica.touchableCardOverlay, { text: S, ref: N } = M(), y = c || [
|
|
910
914
|
r,
|
|
911
915
|
o,
|
|
912
916
|
l,
|
|
913
|
-
|
|
917
|
+
S
|
|
914
918
|
].filter(Boolean).join(" ");
|
|
915
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
919
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)($, {
|
|
916
920
|
dataAttributes: _object_spread({
|
|
917
921
|
"component-name": "SnapCard"
|
|
918
922
|
}, h),
|
|
919
923
|
ref: x,
|
|
920
924
|
className: _cardcssmistica.touchableContainer,
|
|
921
925
|
aspectRatio: u,
|
|
922
|
-
"aria-label":
|
|
926
|
+
"aria-label": C ? void 0 : c,
|
|
923
927
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.Boxed, {
|
|
924
928
|
className: _cardcssmistica.boxed,
|
|
925
929
|
isInverse: m,
|
|
@@ -929,10 +933,10 @@ const M = ()=>{
|
|
|
929
933
|
maybe: !0
|
|
930
934
|
}, f), {
|
|
931
935
|
className: _cardcssmistica.touchable,
|
|
932
|
-
"aria-label":
|
|
936
|
+
"aria-label": C ? y : void 0,
|
|
933
937
|
children: [
|
|
934
|
-
|
|
935
|
-
className:
|
|
938
|
+
C && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
939
|
+
className: T
|
|
936
940
|
}),
|
|
937
941
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("section", {
|
|
938
942
|
className: _cardcssmistica.snapCard,
|
|
@@ -952,9 +956,9 @@ const M = ()=>{
|
|
|
952
956
|
space: 4,
|
|
953
957
|
children: [
|
|
954
958
|
r && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, _text.textProps.text2), {
|
|
955
|
-
truncate:
|
|
956
|
-
weight:
|
|
957
|
-
as:
|
|
959
|
+
truncate: n,
|
|
960
|
+
weight: b.cardTitle.weight,
|
|
961
|
+
as: t,
|
|
958
962
|
hyphens: "auto",
|
|
959
963
|
children: r
|
|
960
964
|
})),
|
|
@@ -979,7 +983,7 @@ const M = ()=>{
|
|
|
979
983
|
]
|
|
980
984
|
}),
|
|
981
985
|
p && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
982
|
-
ref:
|
|
986
|
+
ref: N,
|
|
983
987
|
children: p
|
|
984
988
|
})
|
|
985
989
|
]
|
|
@@ -988,14 +992,14 @@ const M = ()=>{
|
|
|
988
992
|
}))
|
|
989
993
|
})
|
|
990
994
|
});
|
|
991
|
-
}),
|
|
992
|
-
let { title: a, headline: r, pretitle:
|
|
995
|
+
}), Ee = (param)=>{
|
|
996
|
+
let { title: a, headline: r, pretitle: t, subtitle: n, description: o, extra: d, headlineRef: l, extraRef: i } = param;
|
|
993
997
|
return /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
994
998
|
className: _cardcssmistica.flexColumn,
|
|
995
999
|
children: [
|
|
996
1000
|
a && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
997
1001
|
style: {
|
|
998
|
-
paddingBottom:
|
|
1002
|
+
paddingBottom: n || o ? 4 : 0
|
|
999
1003
|
},
|
|
1000
1004
|
children: a
|
|
1001
1005
|
}),
|
|
@@ -1008,24 +1012,24 @@ const M = ()=>{
|
|
|
1008
1012
|
},
|
|
1009
1013
|
children: r
|
|
1010
1014
|
}),
|
|
1011
|
-
|
|
1015
|
+
t && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1012
1016
|
style: {
|
|
1013
1017
|
order: -1,
|
|
1014
1018
|
paddingBottom: 4
|
|
1015
1019
|
},
|
|
1016
|
-
children:
|
|
1020
|
+
children: t
|
|
1017
1021
|
}),
|
|
1018
|
-
|
|
1022
|
+
n && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1019
1023
|
style: {
|
|
1020
|
-
paddingBottom:
|
|
1024
|
+
paddingBottom: n ? 4 : 0
|
|
1021
1025
|
},
|
|
1022
|
-
children:
|
|
1026
|
+
children: n
|
|
1023
1027
|
}),
|
|
1024
1028
|
o && // this is tricky, the padding between a headline and a description is 16px
|
|
1025
1029
|
// but the padding between a title|pretitle|subtitle and a description is 8px (4px + 4px)
|
|
1026
1030
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1027
1031
|
style: {
|
|
1028
|
-
paddingTop:
|
|
1032
|
+
paddingTop: t || a || n ? 4 : 0
|
|
1029
1033
|
},
|
|
1030
1034
|
children: o
|
|
1031
1035
|
}),
|
|
@@ -1035,8 +1039,8 @@ const M = ()=>{
|
|
|
1035
1039
|
})
|
|
1036
1040
|
]
|
|
1037
1041
|
});
|
|
1038
|
-
},
|
|
1039
|
-
var { isInverse: a, backgroundImage: r, backgroundVideo:
|
|
1042
|
+
}, Ge = /*#__PURE__*/ _react.forwardRef((_param, k)=>{
|
|
1043
|
+
var { isInverse: a, backgroundImage: r, backgroundVideo: t, backgroundVideoRef: n, poster: o, asset: d, headline: l, pretitle: i, pretitleLinesMax: h, title: c, titleAs: p = "h3", titleLinesMax: m, description: u, descriptionLinesMax: f, extra: x, button: b, secondaryButton: C, onClose: T, closeButtonLabel: S, actions: N, buttonLink: y, dataAttributes: D, width: R, height: z, aspectRatio: H, "aria-label": E } = _param, w = _object_without_properties(_param, [
|
|
1040
1044
|
"isInverse",
|
|
1041
1045
|
"backgroundImage",
|
|
1042
1046
|
"backgroundVideo",
|
|
@@ -1064,24 +1068,24 @@ const M = ()=>{
|
|
|
1064
1068
|
"aspectRatio",
|
|
1065
1069
|
"aria-label"
|
|
1066
1070
|
]);
|
|
1067
|
-
const
|
|
1068
|
-
|
|
1069
|
-
|
|
1071
|
+
const I = r !== void 0, g = t !== void 0, A = je(r), { video: oe, videoAction: P } = Ve(t, o, n), { text: ee, ref: de } = M(), { text: le, ref: se } = M();
|
|
1072
|
+
g && (N = P ? [
|
|
1073
|
+
P
|
|
1070
1074
|
] : []);
|
|
1071
|
-
const ae = (0, _themevariantcontext.useIsInverseVariant)(), O =
|
|
1075
|
+
const ae = (0, _themevariantcontext.useIsInverseVariant)(), O = I || g, j = O ? "0 0 16px rgba(0,0,0,0.4)" : void 0, q = (N == null ? void 0 : N.length) || T, J = !!(w.href || w.to || w.onPress), ce = I || g ? _cardcssmistica.touchableCardOverlayMedia : a ? _cardcssmistica.touchableCardOverlayInverse : _cardcssmistica.touchableCardOverlay, K = E || [
|
|
1072
1076
|
c,
|
|
1073
1077
|
ee,
|
|
1074
1078
|
i,
|
|
1075
1079
|
u,
|
|
1076
1080
|
le
|
|
1077
1081
|
].filter(Boolean).join(" ");
|
|
1078
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(
|
|
1082
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsxs)($, {
|
|
1079
1083
|
dataAttributes: D,
|
|
1080
|
-
ref:
|
|
1084
|
+
ref: k,
|
|
1081
1085
|
width: R,
|
|
1082
1086
|
height: z,
|
|
1083
|
-
aspectRatio:
|
|
1084
|
-
"aria-label":
|
|
1087
|
+
aspectRatio: H,
|
|
1088
|
+
"aria-label": J ? void 0 : E,
|
|
1085
1089
|
className: _cardcssmistica.touchableContainer,
|
|
1086
1090
|
children: [
|
|
1087
1091
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.InternalBoxed, {
|
|
@@ -1090,31 +1094,31 @@ const M = ()=>{
|
|
|
1090
1094
|
width: "100%",
|
|
1091
1095
|
minHeight: "100%",
|
|
1092
1096
|
isInverse: a,
|
|
1093
|
-
background:
|
|
1094
|
-
variant:
|
|
1097
|
+
background: I || g ? ae ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundContainer : void 0,
|
|
1098
|
+
variant: I || g ? "media" : void 0,
|
|
1095
1099
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
1096
1100
|
maybe: !0
|
|
1097
|
-
},
|
|
1101
|
+
}, w), {
|
|
1098
1102
|
className: _cardcssmistica.touchable,
|
|
1099
|
-
"aria-label":
|
|
1103
|
+
"aria-label": J ? K : void 0,
|
|
1100
1104
|
children: [
|
|
1101
|
-
|
|
1105
|
+
J && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1102
1106
|
className: ce
|
|
1103
1107
|
}),
|
|
1104
1108
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
1105
1109
|
className: _cardcssmistica.displayCardContainer,
|
|
1106
1110
|
children: [
|
|
1107
|
-
(
|
|
1111
|
+
(I || g) && /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
|
|
1108
1112
|
isInverse: ae,
|
|
1109
1113
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1110
1114
|
className: _cardcssmistica.displayCardBackground,
|
|
1111
|
-
children:
|
|
1115
|
+
children: g ? oe : A
|
|
1112
1116
|
})
|
|
1113
1117
|
}),
|
|
1114
1118
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
1115
1119
|
className: _cardcssmistica.displayCardContent,
|
|
1116
1120
|
style: {
|
|
1117
|
-
paddingTop: O && !d &&
|
|
1121
|
+
paddingTop: O && !d && !q && !g ? 0 : 24
|
|
1118
1122
|
},
|
|
1119
1123
|
children: [
|
|
1120
1124
|
d ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
@@ -1127,7 +1131,7 @@ const M = ()=>{
|
|
|
1127
1131
|
children: d
|
|
1128
1132
|
})
|
|
1129
1133
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
1130
|
-
paddingBottom:
|
|
1134
|
+
paddingBottom: q || g ? O ? 24 : 64 : 0
|
|
1131
1135
|
}),
|
|
1132
1136
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
1133
1137
|
paddingX: 24,
|
|
@@ -1137,7 +1141,7 @@ const M = ()=>{
|
|
|
1137
1141
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
1138
1142
|
space: 24,
|
|
1139
1143
|
children: [
|
|
1140
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
1144
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(Ee, {
|
|
1141
1145
|
title: c ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text6, {
|
|
1142
1146
|
forceMobileSizes: !0,
|
|
1143
1147
|
truncate: m,
|
|
@@ -1169,10 +1173,10 @@ const M = ()=>{
|
|
|
1169
1173
|
headlineRef: de,
|
|
1170
1174
|
extraRef: se
|
|
1171
1175
|
}),
|
|
1172
|
-
(
|
|
1173
|
-
primaryButton:
|
|
1174
|
-
secondaryButton:
|
|
1175
|
-
link:
|
|
1176
|
+
(b || C || y) && /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttongroup.default, {
|
|
1177
|
+
primaryButton: b,
|
|
1178
|
+
secondaryButton: C,
|
|
1179
|
+
link: y
|
|
1176
1180
|
})
|
|
1177
1181
|
]
|
|
1178
1182
|
})
|
|
@@ -1184,37 +1188,37 @@ const M = ()=>{
|
|
|
1184
1188
|
]
|
|
1185
1189
|
}))
|
|
1186
1190
|
}),
|
|
1187
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
1188
|
-
onClose:
|
|
1189
|
-
closeButtonLabel:
|
|
1190
|
-
actions:
|
|
1191
|
-
variant:
|
|
1191
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(Z, {
|
|
1192
|
+
onClose: T,
|
|
1193
|
+
closeButtonLabel: S,
|
|
1194
|
+
actions: N,
|
|
1195
|
+
variant: I || g ? "media" : a ? "inverse" : "default"
|
|
1192
1196
|
})
|
|
1193
1197
|
]
|
|
1194
1198
|
});
|
|
1195
|
-
}),
|
|
1199
|
+
}), Pa = /*#__PURE__*/ _react.forwardRef((_param, t)=>{
|
|
1196
1200
|
var { dataAttributes: a } = _param, r = _object_without_properties(_param, [
|
|
1197
1201
|
"dataAttributes"
|
|
1198
1202
|
]);
|
|
1199
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
1200
|
-
ref:
|
|
1203
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(Ge, _object_spread_props(_object_spread({}, r), {
|
|
1204
|
+
ref: t,
|
|
1201
1205
|
isInverse: !0,
|
|
1202
1206
|
dataAttributes: _object_spread({
|
|
1203
1207
|
"component-name": "DisplayMediaCard"
|
|
1204
1208
|
}, a)
|
|
1205
1209
|
}));
|
|
1206
|
-
}), er = /*#__PURE__*/ _react.forwardRef((_param,
|
|
1210
|
+
}), er = /*#__PURE__*/ _react.forwardRef((_param, t)=>{
|
|
1207
1211
|
var { dataAttributes: a } = _param, r = _object_without_properties(_param, [
|
|
1208
1212
|
"dataAttributes"
|
|
1209
1213
|
]);
|
|
1210
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
1211
|
-
ref:
|
|
1214
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(Ge, _object_spread_props(_object_spread({}, r), {
|
|
1215
|
+
ref: t,
|
|
1212
1216
|
dataAttributes: _object_spread({
|
|
1213
1217
|
"component-name": "DisplayDataCard"
|
|
1214
1218
|
}, a)
|
|
1215
1219
|
}));
|
|
1216
|
-
}), ar = /*#__PURE__*/ _react.forwardRef((_param,
|
|
1217
|
-
var { dataAttributes: a, backgroundImage: r, backgroundVideo:
|
|
1220
|
+
}), ar = /*#__PURE__*/ _react.forwardRef((_param, I)=>{
|
|
1221
|
+
var { dataAttributes: a, backgroundImage: r, backgroundVideo: t, poster: n, backgroundVideoRef: o, width: d, height: l, aspectRatio: i = "7:10", "aria-label": h, actions: c, onClose: p, closeButtonLabel: m, asset: u, headline: f, pretitle: x, pretitleLinesMax: b, title: C, titleAs: T = "h3", titleLinesMax: S, subtitle: N, subtitleLinesMax: y, description: D, descriptionLinesMax: R, extra: z, variant: H, isInverse: E, backgroundColor: w } = _param, k = _object_without_properties(_param, [
|
|
1218
1222
|
"dataAttributes",
|
|
1219
1223
|
"backgroundImage",
|
|
1220
1224
|
"backgroundVideo",
|
|
@@ -1243,64 +1247,64 @@ const M = ()=>{
|
|
|
1243
1247
|
"isInverse",
|
|
1244
1248
|
"backgroundColor"
|
|
1245
1249
|
]);
|
|
1246
|
-
const
|
|
1247
|
-
|
|
1250
|
+
const g = r !== void 0, A = t !== void 0, oe = je(r), { video: P, videoAction: ee } = Ve(t, n, o), { text: de, ref: le } = M(), { text: se, ref: ae } = M();
|
|
1251
|
+
A && (c = ee ? [
|
|
1248
1252
|
ee
|
|
1249
1253
|
] : []);
|
|
1250
|
-
const O = (0, _themevariantcontext.useIsInverseVariant)(), j =
|
|
1254
|
+
const O = (0, _themevariantcontext.useIsInverseVariant)(), j = g || A, q = j ? "0 0 16px rgba(0,0,0,0.4)" : void 0, J = (c == null ? void 0 : c.length) || p, { textPresets: ce } = (0, _hooks.useTheme)(), K = !!(k.href || k.to || k.onPress), U = H || (E ? "inverse" : "default"), He = ()=>U === "media" || g || A ? O ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundContainer : w || ({
|
|
1251
1255
|
default: _skincontractcssmistica.vars.colors.backgroundContainer,
|
|
1252
1256
|
inverse: O ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundBrand,
|
|
1253
1257
|
alternative: _skincontractcssmistica.vars.colors.backgroundAlternative
|
|
1254
|
-
})[
|
|
1255
|
-
|
|
1258
|
+
})[U], Le = g || A ? _cardcssmistica.touchableCardOverlayMedia : U === "inverse" ? _cardcssmistica.touchableCardOverlayInverse : _cardcssmistica.touchableCardOverlay, Xe = h || [
|
|
1259
|
+
C,
|
|
1256
1260
|
de,
|
|
1257
1261
|
x,
|
|
1258
|
-
|
|
1262
|
+
N,
|
|
1259
1263
|
D,
|
|
1260
1264
|
se
|
|
1261
1265
|
].filter(Boolean).join(" ");
|
|
1262
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(
|
|
1266
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsxs)($, {
|
|
1263
1267
|
width: d,
|
|
1264
1268
|
height: l,
|
|
1265
1269
|
dataAttributes: _object_spread({
|
|
1266
1270
|
"component-name": "PosterCard"
|
|
1267
1271
|
}, a),
|
|
1268
|
-
ref:
|
|
1272
|
+
ref: I,
|
|
1269
1273
|
aspectRatio: i,
|
|
1270
1274
|
className: _cardcssmistica.touchableContainer,
|
|
1271
|
-
"aria-label":
|
|
1275
|
+
"aria-label": K ? void 0 : h,
|
|
1272
1276
|
children: [
|
|
1273
1277
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.InternalBoxed, {
|
|
1274
1278
|
borderRadius: _skincontractcssmistica.vars.borderRadii.legacyDisplay,
|
|
1275
1279
|
className: _cardcssmistica.boxed,
|
|
1276
1280
|
width: "100%",
|
|
1277
1281
|
minHeight: "100%",
|
|
1278
|
-
isInverse:
|
|
1279
|
-
background:
|
|
1280
|
-
variant:
|
|
1282
|
+
isInverse: g || A || U === "inverse",
|
|
1283
|
+
background: He(),
|
|
1284
|
+
variant: g || A ? "media" : void 0,
|
|
1281
1285
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
1282
1286
|
maybe: !0
|
|
1283
|
-
},
|
|
1287
|
+
}, k), {
|
|
1284
1288
|
className: _cardcssmistica.touchable,
|
|
1285
|
-
"aria-label":
|
|
1289
|
+
"aria-label": K ? Xe : void 0,
|
|
1286
1290
|
children: [
|
|
1287
|
-
|
|
1288
|
-
className:
|
|
1291
|
+
K && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1292
|
+
className: Le
|
|
1289
1293
|
}),
|
|
1290
1294
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
1291
1295
|
className: _cardcssmistica.displayCardContainer,
|
|
1292
|
-
"aria-hidden":
|
|
1296
|
+
"aria-hidden": K,
|
|
1293
1297
|
children: [
|
|
1294
|
-
(
|
|
1298
|
+
(g || A) && /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
|
|
1295
1299
|
isInverse: O,
|
|
1296
1300
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1297
1301
|
className: _cardcssmistica.displayCardBackground,
|
|
1298
|
-
children:
|
|
1302
|
+
children: A ? P : oe
|
|
1299
1303
|
})
|
|
1300
1304
|
}),
|
|
1301
1305
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)(_box.default, {
|
|
1302
1306
|
className: _cardcssmistica.displayCardContent,
|
|
1303
|
-
paddingTop: j && !u && !
|
|
1307
|
+
paddingTop: j && !u && !J && !A ? 0 : {
|
|
1304
1308
|
mobile: u ? 16 : 24,
|
|
1305
1309
|
desktop: 24
|
|
1306
1310
|
},
|
|
@@ -1318,7 +1322,7 @@ const M = ()=>{
|
|
|
1318
1322
|
children: u
|
|
1319
1323
|
})
|
|
1320
1324
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
1321
|
-
paddingBottom:
|
|
1325
|
+
paddingBottom: J || A ? j ? 24 : 64 : 0
|
|
1322
1326
|
}),
|
|
1323
1327
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
1324
1328
|
paddingX: {
|
|
@@ -1328,36 +1332,36 @@ const M = ()=>{
|
|
|
1328
1332
|
paddingTop: j ? 40 : 0,
|
|
1329
1333
|
paddingBottom: 24,
|
|
1330
1334
|
className: j ? _cardcssmistica.displayCardGradient : void 0,
|
|
1331
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
1332
|
-
title:
|
|
1333
|
-
truncate:
|
|
1335
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(Ee, {
|
|
1336
|
+
title: C ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, _text.textProps.text4), {
|
|
1337
|
+
truncate: S,
|
|
1334
1338
|
weight: ce.cardTitle.weight,
|
|
1335
|
-
as:
|
|
1336
|
-
children:
|
|
1339
|
+
as: T,
|
|
1340
|
+
children: C
|
|
1337
1341
|
})) : void 0,
|
|
1338
1342
|
headline: f,
|
|
1339
1343
|
pretitle: x ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
1340
1344
|
forceMobileSizes: !0,
|
|
1341
|
-
truncate:
|
|
1345
|
+
truncate: b,
|
|
1342
1346
|
as: "div",
|
|
1343
1347
|
regular: !0,
|
|
1344
|
-
textShadow:
|
|
1348
|
+
textShadow: q,
|
|
1345
1349
|
children: x
|
|
1346
1350
|
}) : void 0,
|
|
1347
|
-
subtitle:
|
|
1351
|
+
subtitle: N ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
1348
1352
|
forceMobileSizes: !0,
|
|
1349
|
-
truncate:
|
|
1353
|
+
truncate: y,
|
|
1350
1354
|
as: "div",
|
|
1351
1355
|
regular: !0,
|
|
1352
|
-
textShadow:
|
|
1353
|
-
children:
|
|
1356
|
+
textShadow: q,
|
|
1357
|
+
children: N
|
|
1354
1358
|
}) : void 0,
|
|
1355
1359
|
description: D ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
1356
1360
|
forceMobileSizes: !0,
|
|
1357
1361
|
truncate: R,
|
|
1358
1362
|
as: "p",
|
|
1359
1363
|
regular: !0,
|
|
1360
|
-
textShadow:
|
|
1364
|
+
textShadow: q,
|
|
1361
1365
|
color: j ? _skincontractcssmistica.vars.colors.textPrimary : _skincontractcssmistica.vars.colors.textSecondary,
|
|
1362
1366
|
children: D
|
|
1363
1367
|
}) : void 0,
|
|
@@ -1373,11 +1377,11 @@ const M = ()=>{
|
|
|
1373
1377
|
]
|
|
1374
1378
|
}))
|
|
1375
1379
|
}),
|
|
1376
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
1380
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(Z, {
|
|
1377
1381
|
onClose: p,
|
|
1378
1382
|
closeButtonLabel: m,
|
|
1379
1383
|
actions: c,
|
|
1380
|
-
variant:
|
|
1384
|
+
variant: g || A ? "media" : U === "inverse" ? "inverse" : "default"
|
|
1381
1385
|
})
|
|
1382
1386
|
]
|
|
1383
1387
|
});
|