@telefonica/mistica 14.19.0 → 14.20.1
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/button.js +17 -17
- package/dist/card.css-mistica.js +6 -6
- package/dist/card.css.d.ts +0 -1
- package/dist/card.d.ts +15 -4
- package/dist/card.js +298 -264
- package/dist/community/advanced-data-card.css-mistica.js +18 -21
- package/dist/community/advanced-data-card.css.d.ts +2 -3
- package/dist/community/advanced-data-card.js +171 -158
- package/dist/generated/mistica-icons/icon-subtract-circle-filled.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-subtract-circle-filled.js +110 -0
- package/dist/generated/mistica-icons/icon-subtract-circle-light.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-subtract-circle-light.js +116 -0
- package/dist/generated/mistica-icons/icon-subtract-circle-regular.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-subtract-circle-regular.js +116 -0
- package/dist/generated/mistica-icons/icon-subtract-light.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-subtract-light.js +110 -0
- package/dist/generated/mistica-icons/icon-subtract-regular.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-subtract-regular.js +110 -0
- package/dist/header.js +27 -29
- package/dist/index.d.ts +9 -1
- package/dist/index.js +50 -0
- package/dist/list.css-mistica.js +17 -14
- package/dist/list.css.d.ts +2 -1
- package/dist/list.js +170 -163
- package/dist/package-version.js +1 -1
- package/dist/skins/blau.js +14 -0
- package/dist/skins/defaults.js +14 -0
- package/dist/skins/movistar-legacy.js +14 -0
- package/dist/skins/movistar.js +14 -0
- package/dist/skins/o2.js +14 -0
- package/dist/skins/telefonica.js +16 -2
- package/dist/skins/types/index.d.ts +12 -0
- package/dist/skins/vivo-new.js +15 -1
- package/dist/skins/vivo.js +14 -0
- package/dist/tabs.css-mistica.js +10 -14
- package/dist/tabs.css.d.ts +1 -2
- package/dist/tabs.js +39 -33
- package/dist/theme-context-provider.js +29 -27
- package/dist/title.d.ts +1 -0
- package/dist/title.js +91 -29
- package/dist-es/button.js +17 -17
- package/dist-es/card.css-mistica.js +3 -3
- package/dist-es/card.js +409 -378
- package/dist-es/community/advanced-data-card.css-mistica.js +3 -3
- package/dist-es/community/advanced-data-card.js +195 -182
- package/dist-es/generated/mistica-icons/icon-subtract-circle-filled.js +101 -0
- package/dist-es/generated/mistica-icons/icon-subtract-circle-light.js +107 -0
- package/dist-es/generated/mistica-icons/icon-subtract-circle-regular.js +107 -0
- package/dist-es/generated/mistica-icons/icon-subtract-light.js +101 -0
- package/dist-es/generated/mistica-icons/icon-subtract-regular.js +101 -0
- package/dist-es/header.js +46 -48
- package/dist-es/index.js +1755 -1747
- package/dist-es/list.css-mistica.js +2 -2
- package/dist-es/list.js +242 -235
- package/dist-es/package-version.js +1 -1
- package/dist-es/skins/blau.js +14 -0
- package/dist-es/skins/defaults.js +14 -0
- package/dist-es/skins/movistar-legacy.js +14 -0
- package/dist-es/skins/movistar.js +14 -0
- package/dist-es/skins/o2.js +14 -0
- package/dist-es/skins/telefonica.js +16 -2
- package/dist-es/skins/vivo-new.js +15 -1
- package/dist-es/skins/vivo.js +14 -0
- package/dist-es/style.css +1 -1
- package/dist-es/tabs.css-mistica.js +8 -9
- package/dist-es/tabs.js +49 -43
- package/dist-es/theme-context-provider.js +63 -61
- package/dist-es/title.js +58 -38
- package/package.json +5 -2
package/dist/card.js
CHANGED
|
@@ -10,34 +10,37 @@ function _export(target, all) {
|
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
12
|
CardActionSpinner: function() {
|
|
13
|
-
return
|
|
13
|
+
return Ve;
|
|
14
14
|
},
|
|
15
15
|
CardActionsGroup: function() {
|
|
16
|
-
return
|
|
16
|
+
return F;
|
|
17
17
|
},
|
|
18
18
|
DataCard: function() {
|
|
19
|
-
return
|
|
19
|
+
return Dr;
|
|
20
20
|
},
|
|
21
21
|
DisplayDataCard: function() {
|
|
22
|
-
return
|
|
22
|
+
return Hr;
|
|
23
23
|
},
|
|
24
24
|
DisplayMediaCard: function() {
|
|
25
|
-
return
|
|
25
|
+
return Or;
|
|
26
26
|
},
|
|
27
27
|
MediaCard: function() {
|
|
28
|
-
return
|
|
28
|
+
return Ir;
|
|
29
29
|
},
|
|
30
30
|
NakedCard: function() {
|
|
31
|
-
return
|
|
31
|
+
return Rr;
|
|
32
32
|
},
|
|
33
33
|
PosterCard: function() {
|
|
34
|
-
return
|
|
34
|
+
return _r;
|
|
35
35
|
},
|
|
36
36
|
SmallNakedCard: function() {
|
|
37
|
-
return
|
|
37
|
+
return Mr;
|
|
38
38
|
},
|
|
39
39
|
SnapCard: function() {
|
|
40
|
-
return
|
|
40
|
+
return zr;
|
|
41
|
+
},
|
|
42
|
+
TOP_ACTION_BUTTON_SIZE: function() {
|
|
43
|
+
return Ce;
|
|
41
44
|
}
|
|
42
45
|
});
|
|
43
46
|
const _jsxruntime = require("react/jsx-runtime");
|
|
@@ -189,18 +192,18 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
189
192
|
}
|
|
190
193
|
return target;
|
|
191
194
|
}
|
|
192
|
-
const
|
|
193
|
-
const { texts: i } = (0, _hooks.useTheme)(), l =
|
|
194
|
-
...
|
|
195
|
+
const Ne = (r, a)=>{
|
|
196
|
+
const { texts: i } = (0, _hooks.useTheme)(), l = r ? [
|
|
197
|
+
...r
|
|
195
198
|
] : [];
|
|
196
|
-
return
|
|
199
|
+
return a && l.push({
|
|
197
200
|
label: i.closeButtonLabel,
|
|
198
|
-
onPress:
|
|
201
|
+
onPress: a,
|
|
199
202
|
Icon: _iconcloseregular.default
|
|
200
203
|
}), l;
|
|
201
|
-
},
|
|
202
|
-
let { actions:
|
|
203
|
-
const l =
|
|
204
|
+
}, Ce = 48, F = (param)=>{
|
|
205
|
+
let { actions: r , onClose: a , type: i = "default" } = param;
|
|
206
|
+
const l = Ne(r, a), m = l.length > 0, s = {
|
|
204
207
|
default: _skincontractcssmistica.vars.colors.neutralHigh,
|
|
205
208
|
inverse: _skincontractcssmistica.vars.colors.inverse,
|
|
206
209
|
media: "#000000"
|
|
@@ -221,10 +224,10 @@ const ye = (a, r)=>{
|
|
|
221
224
|
display: "flex"
|
|
222
225
|
}),
|
|
223
226
|
children: l.map((param, h)=>/* @__PURE__ */ {
|
|
224
|
-
let { onPress: c , label: p , Icon:
|
|
227
|
+
let { onPress: c , label: p , Icon: o , disabled: t = !1 } = param;
|
|
225
228
|
return (0, _jsxruntime.jsx)(_iconbutton.default, {
|
|
226
|
-
disabled:
|
|
227
|
-
size:
|
|
229
|
+
disabled: t,
|
|
230
|
+
size: Ce,
|
|
228
231
|
onPress: c,
|
|
229
232
|
"aria-label": p,
|
|
230
233
|
className: _cardcssmistica.cardActionIconButton,
|
|
@@ -233,7 +236,7 @@ const ye = (a, r)=>{
|
|
|
233
236
|
},
|
|
234
237
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
235
238
|
className: d[i],
|
|
236
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
239
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(o, {
|
|
237
240
|
color: s[i],
|
|
238
241
|
size: 20
|
|
239
242
|
})
|
|
@@ -242,33 +245,33 @@ const ye = (a, r)=>{
|
|
|
242
245
|
})
|
|
243
246
|
})
|
|
244
247
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {});
|
|
245
|
-
},
|
|
248
|
+
}, Ke = (r)=>r ? typeof r == "number" ? r : ({
|
|
246
249
|
"1:1": 1,
|
|
247
250
|
"16:9": 16 / 9,
|
|
248
251
|
"7:10": 7 / 10,
|
|
249
252
|
"9:10": 9 / 10,
|
|
250
253
|
auto: 0
|
|
251
|
-
})[
|
|
252
|
-
let { children:
|
|
253
|
-
const
|
|
254
|
+
})[r] : 0, _ = /*#__PURE__*/ _react.forwardRef((param, p)=>{
|
|
255
|
+
let { children: r , width: a = "100%" , height: i = "100%" , minWidth: l , aspectRatio: m , dataAttributes: s , className: d , "aria-label": c } = param;
|
|
256
|
+
const o = Ke(m);
|
|
254
257
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)("section", _object_spread_props(_object_spread({}, (0, _dom.getPrefixedDataAttributes)(s)), {
|
|
255
258
|
ref: p,
|
|
256
259
|
"aria-label": c,
|
|
257
260
|
className: (0, _classnames.default)(d, _cardcssmistica.cardContainer),
|
|
258
261
|
style: _object_spread({
|
|
259
|
-
width:
|
|
262
|
+
width: a,
|
|
260
263
|
height: i,
|
|
261
264
|
minWidth: l
|
|
262
|
-
},
|
|
263
|
-
[_cardcssmistica.vars.aspectRatio]: String(
|
|
265
|
+
}, o ? (0, _dynamic.assignInlineVars)({
|
|
266
|
+
[_cardcssmistica.vars.aspectRatio]: String(o)
|
|
264
267
|
}) : {}),
|
|
265
|
-
children:
|
|
268
|
+
children: r
|
|
266
269
|
}));
|
|
267
|
-
}),
|
|
270
|
+
}), Te = (r)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(_image.default, {
|
|
268
271
|
width: "100%",
|
|
269
272
|
height: "100%",
|
|
270
|
-
src:
|
|
271
|
-
}),
|
|
273
|
+
src: r !== null && r !== void 0 ? r : "//:0"
|
|
274
|
+
}), Qe = {
|
|
272
275
|
loading: {
|
|
273
276
|
showSpinner: "loadingTimeout",
|
|
274
277
|
play: "playing",
|
|
@@ -292,62 +295,62 @@ const ye = (a, r)=>{
|
|
|
292
295
|
error: {
|
|
293
296
|
reset: "loading"
|
|
294
297
|
}
|
|
295
|
-
},
|
|
296
|
-
let { color:
|
|
298
|
+
}, $e = (r, a)=>Qe[r][a] || r, Ve = (param)=>/* @__PURE__ */ {
|
|
299
|
+
let { color: r } = param;
|
|
297
300
|
return (0, _jsxruntime.jsx)(_spinner.default, {
|
|
298
|
-
color:
|
|
301
|
+
color: r,
|
|
299
302
|
size: 16,
|
|
300
303
|
delay: "0"
|
|
301
304
|
});
|
|
302
|
-
},
|
|
303
|
-
let { color:
|
|
305
|
+
}, ie = (param)=>/* @__PURE__ */ {
|
|
306
|
+
let { color: r } = param;
|
|
304
307
|
return (0, _jsxruntime.jsx)(_iconpausefilled.default, {
|
|
305
|
-
color:
|
|
308
|
+
color: r,
|
|
306
309
|
size: 12
|
|
307
310
|
});
|
|
308
|
-
},
|
|
309
|
-
let { color:
|
|
311
|
+
}, er = (param)=>/* @__PURE__ */ {
|
|
312
|
+
let { color: r } = param;
|
|
310
313
|
return (0, _jsxruntime.jsx)(_iconplayfilled.default, {
|
|
311
|
-
color:
|
|
314
|
+
color: r,
|
|
312
315
|
size: 12
|
|
313
316
|
});
|
|
314
|
-
},
|
|
315
|
-
const { texts: l } = (0, _hooks.useTheme)(), m = _react.useRef(null), [s, d] = _react.useReducer(
|
|
317
|
+
}, Ae = (r, a, i)=>{
|
|
318
|
+
const { texts: l } = (0, _hooks.useTheme)(), m = _react.useRef(null), [s, d] = _react.useReducer($e, "loading");
|
|
316
319
|
_react.useEffect(()=>{
|
|
317
320
|
var h;
|
|
318
|
-
const
|
|
321
|
+
const t = setTimeout(()=>d("showSpinner"), 2e3);
|
|
319
322
|
return (h = m.current) == null || h.load(), ()=>{
|
|
320
|
-
clearTimeout(
|
|
323
|
+
clearTimeout(t), d("reset");
|
|
321
324
|
};
|
|
322
325
|
}, [
|
|
323
|
-
|
|
326
|
+
r
|
|
324
327
|
]);
|
|
325
|
-
const c = _react.useMemo(()=>
|
|
328
|
+
const c = _react.useMemo(()=>r ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_video.default, {
|
|
326
329
|
ref: (0, _common.combineRefs)(m, i),
|
|
327
|
-
src:
|
|
330
|
+
src: r,
|
|
328
331
|
width: "100%",
|
|
329
332
|
height: "100%",
|
|
330
|
-
poster:
|
|
333
|
+
poster: a,
|
|
331
334
|
onError: ()=>d("fail"),
|
|
332
335
|
onPause: ()=>d("pause"),
|
|
333
336
|
onPlay: ()=>d("play")
|
|
334
337
|
}) : void 0, [
|
|
335
338
|
i,
|
|
336
|
-
|
|
337
|
-
|
|
339
|
+
r,
|
|
340
|
+
a
|
|
338
341
|
]), p = ()=>{
|
|
339
|
-
const
|
|
340
|
-
|
|
342
|
+
const t = m.current;
|
|
343
|
+
t && (s === "loading" ? d("showSpinner") : s === "paused" ? t.play() : s === "playing" && t.pause());
|
|
341
344
|
};
|
|
342
345
|
if (s === "error") return {
|
|
343
346
|
video: c
|
|
344
347
|
};
|
|
345
|
-
const
|
|
348
|
+
const o = {
|
|
346
349
|
Icon: {
|
|
347
|
-
playing:
|
|
348
|
-
loading:
|
|
349
|
-
paused:
|
|
350
|
-
loadingTimeout:
|
|
350
|
+
playing: ie,
|
|
351
|
+
loading: ie,
|
|
352
|
+
paused: er,
|
|
353
|
+
loadingTimeout: Ve
|
|
351
354
|
}[s],
|
|
352
355
|
onPress: p,
|
|
353
356
|
label: {
|
|
@@ -360,14 +363,14 @@ const ye = (a, r)=>{
|
|
|
360
363
|
};
|
|
361
364
|
return {
|
|
362
365
|
video: c,
|
|
363
|
-
videoAction:
|
|
366
|
+
videoAction: o
|
|
364
367
|
};
|
|
365
|
-
},
|
|
366
|
-
let { headline:
|
|
367
|
-
const { textPresets: f } = (0, _hooks.useTheme)(),
|
|
368
|
+
}, ae = (param)=>{
|
|
369
|
+
let { headline: r , pretitle: a , pretitleLinesMax: i , title: l , titleLinesMax: m , subtitle: s , subtitleLinesMax: d , description: c , descriptionLinesMax: p , extra: o , button: t , buttonLink: h } = param;
|
|
370
|
+
const { textPresets: f } = (0, _hooks.useTheme)(), v = ()=>r ? typeof r == "string" ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_tag.default, {
|
|
368
371
|
type: "promo",
|
|
369
|
-
children:
|
|
370
|
-
}) :
|
|
372
|
+
children: r
|
|
373
|
+
}) : r : null;
|
|
371
374
|
return /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
372
375
|
className: (0, _sprinklescssmistica.sprinkles)({
|
|
373
376
|
display: "flex",
|
|
@@ -381,20 +384,20 @@ const ye = (a, r)=>{
|
|
|
381
384
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
382
385
|
space: 8,
|
|
383
386
|
children: [
|
|
384
|
-
(
|
|
387
|
+
(r || a || l || s) && /* @__PURE__ */ (0, _jsxruntime.jsx)("header", {
|
|
385
388
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
386
389
|
space: 8,
|
|
387
390
|
children: [
|
|
388
|
-
|
|
391
|
+
v(),
|
|
389
392
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
390
393
|
space: 4,
|
|
391
394
|
children: [
|
|
392
|
-
|
|
395
|
+
a && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
393
396
|
truncate: i,
|
|
394
397
|
as: "div",
|
|
395
398
|
regular: !0,
|
|
396
399
|
hyphens: "auto",
|
|
397
|
-
children:
|
|
400
|
+
children: a
|
|
398
401
|
}),
|
|
399
402
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, {
|
|
400
403
|
mobileSize: 18,
|
|
@@ -429,23 +432,24 @@ const ye = (a, r)=>{
|
|
|
429
432
|
})
|
|
430
433
|
]
|
|
431
434
|
}),
|
|
432
|
-
|
|
433
|
-
children:
|
|
435
|
+
o && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
436
|
+
children: o
|
|
434
437
|
})
|
|
435
438
|
]
|
|
436
439
|
}),
|
|
437
|
-
(
|
|
440
|
+
(t || h) && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
438
441
|
className: _cardcssmistica.actions,
|
|
439
442
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttongroup.default, {
|
|
440
|
-
primaryButton:
|
|
443
|
+
primaryButton: t,
|
|
441
444
|
link: h
|
|
442
445
|
})
|
|
443
446
|
})
|
|
444
447
|
]
|
|
445
448
|
});
|
|
446
|
-
},
|
|
447
|
-
var { media:
|
|
449
|
+
}, Ir = /*#__PURE__*/ _react.forwardRef((_param, I)=>{
|
|
450
|
+
var { media: r , icon: a , headline: i , pretitle: l , pretitleLinesMax: m , subtitle: s , subtitleLinesMax: d , title: c , titleLinesMax: p , description: o , descriptionLinesMax: t , extra: h , actions: f , button: v , buttonLink: S , dataAttributes: A , "aria-label": T , onClose: g } = _param, u = _object_without_properties(_param, [
|
|
448
451
|
"media",
|
|
452
|
+
"icon",
|
|
449
453
|
"headline",
|
|
450
454
|
"pretitle",
|
|
451
455
|
"pretitleLinesMax",
|
|
@@ -454,7 +458,6 @@ const ye = (a, r)=>{
|
|
|
454
458
|
"title",
|
|
455
459
|
"titleLinesMax",
|
|
456
460
|
"description",
|
|
457
|
-
"icon",
|
|
458
461
|
"descriptionLinesMax",
|
|
459
462
|
"extra",
|
|
460
463
|
"actions",
|
|
@@ -464,13 +467,13 @@ const ye = (a, r)=>{
|
|
|
464
467
|
"aria-label",
|
|
465
468
|
"onClose"
|
|
466
469
|
]);
|
|
467
|
-
const
|
|
468
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(
|
|
470
|
+
const b = u.href || u.to || u.onPress;
|
|
471
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_, {
|
|
469
472
|
dataAttributes: _object_spread({
|
|
470
473
|
"component-name": "MediaCard"
|
|
471
|
-
},
|
|
472
|
-
ref:
|
|
473
|
-
"aria-label":
|
|
474
|
+
}, A),
|
|
475
|
+
ref: I,
|
|
476
|
+
"aria-label": T,
|
|
474
477
|
className: _cardcssmistica.touchableContainer,
|
|
475
478
|
children: [
|
|
476
479
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.Boxed, {
|
|
@@ -479,11 +482,11 @@ const ye = (a, r)=>{
|
|
|
479
482
|
height: "100%",
|
|
480
483
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
481
484
|
maybe: !0
|
|
482
|
-
},
|
|
485
|
+
}, u), {
|
|
483
486
|
className: _cardcssmistica.touchable,
|
|
484
|
-
"aria-label":
|
|
487
|
+
"aria-label": T,
|
|
485
488
|
children: [
|
|
486
|
-
|
|
489
|
+
b && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
487
490
|
className: _cardcssmistica.touchableMediaCardOverlay
|
|
488
491
|
}),
|
|
489
492
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
@@ -491,26 +494,26 @@ const ye = (a, r)=>{
|
|
|
491
494
|
children: [
|
|
492
495
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_image.MediaBorderRadiusProvider, {
|
|
493
496
|
value: !1,
|
|
494
|
-
children:
|
|
497
|
+
children: r
|
|
495
498
|
}),
|
|
496
499
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
497
500
|
className: _cardcssmistica.mediaCardContent,
|
|
498
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
499
|
-
headline:
|
|
500
|
-
pretitle:
|
|
501
|
-
pretitleLinesMax:
|
|
502
|
-
title:
|
|
503
|
-
titleLinesMax:
|
|
504
|
-
subtitle:
|
|
505
|
-
subtitleLinesMax:
|
|
506
|
-
description:
|
|
507
|
-
descriptionLinesMax:
|
|
501
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(ae, {
|
|
502
|
+
headline: i,
|
|
503
|
+
pretitle: l,
|
|
504
|
+
pretitleLinesMax: m,
|
|
505
|
+
title: c,
|
|
506
|
+
titleLinesMax: p,
|
|
507
|
+
subtitle: s,
|
|
508
|
+
subtitleLinesMax: d,
|
|
509
|
+
description: o,
|
|
510
|
+
descriptionLinesMax: t,
|
|
508
511
|
extra: h,
|
|
509
|
-
button:
|
|
512
|
+
button: v,
|
|
510
513
|
buttonLink: S
|
|
511
514
|
})
|
|
512
515
|
}),
|
|
513
|
-
|
|
516
|
+
a && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
514
517
|
className: _cardcssmistica.mediaCardIcon,
|
|
515
518
|
paddingLeft: {
|
|
516
519
|
mobile: 16,
|
|
@@ -520,23 +523,24 @@ const ye = (a, r)=>{
|
|
|
520
523
|
mobile: 16,
|
|
521
524
|
desktop: 24
|
|
522
525
|
},
|
|
523
|
-
children:
|
|
526
|
+
children: a
|
|
524
527
|
})
|
|
525
528
|
]
|
|
526
529
|
})
|
|
527
530
|
]
|
|
528
531
|
}))
|
|
529
532
|
}),
|
|
530
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
531
|
-
onClose:
|
|
533
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(F, {
|
|
534
|
+
onClose: g,
|
|
532
535
|
actions: f,
|
|
533
536
|
type: "media"
|
|
534
537
|
})
|
|
535
538
|
]
|
|
536
539
|
});
|
|
537
|
-
}),
|
|
538
|
-
var { media: a , headline:
|
|
540
|
+
}), Rr = /*#__PURE__*/ _react.forwardRef((_param, I)=>{
|
|
541
|
+
var { media: r , icon: a , headline: i , pretitle: l , pretitleLinesMax: m , subtitle: s , subtitleLinesMax: d , title: c , titleLinesMax: p , description: o , descriptionLinesMax: t , extra: h , actions: f , button: v , buttonLink: S , dataAttributes: A , "aria-label": T , onClose: g } = _param, u = _object_without_properties(_param, [
|
|
539
542
|
"media",
|
|
543
|
+
"icon",
|
|
540
544
|
"headline",
|
|
541
545
|
"pretitle",
|
|
542
546
|
"pretitleLinesMax",
|
|
@@ -554,20 +558,20 @@ const ye = (a, r)=>{
|
|
|
554
558
|
"aria-label",
|
|
555
559
|
"onClose"
|
|
556
560
|
]);
|
|
557
|
-
const
|
|
558
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(
|
|
559
|
-
ref:
|
|
561
|
+
const b = u.href || u.to || u.onPress, M = r && r.type === _image.default && r.props.circular;
|
|
562
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_, {
|
|
563
|
+
ref: I,
|
|
560
564
|
dataAttributes: _object_spread({
|
|
561
565
|
"component-name": "NakedCard"
|
|
562
|
-
},
|
|
563
|
-
"aria-label":
|
|
564
|
-
className:
|
|
566
|
+
}, A),
|
|
567
|
+
"aria-label": T,
|
|
568
|
+
className: b ? _cardcssmistica.touchableContainer : void 0,
|
|
565
569
|
children: [
|
|
566
570
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
567
571
|
maybe: !0
|
|
568
572
|
}, u), {
|
|
569
573
|
className: _cardcssmistica.touchable,
|
|
570
|
-
"aria-label":
|
|
574
|
+
"aria-label": T,
|
|
571
575
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
572
576
|
className: _cardcssmistica.mediaCard,
|
|
573
577
|
children: [
|
|
@@ -576,43 +580,55 @@ const ye = (a, r)=>{
|
|
|
576
580
|
position: "relative"
|
|
577
581
|
},
|
|
578
582
|
children: [
|
|
579
|
-
|
|
583
|
+
b && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
580
584
|
className: (0, _classnames.default)(_cardcssmistica.touchableNakedMediaOverlay, {
|
|
581
|
-
[_cardcssmistica.circularMediaOverlay]:
|
|
585
|
+
[_cardcssmistica.circularMediaOverlay]: M
|
|
582
586
|
})
|
|
583
587
|
}),
|
|
584
|
-
|
|
588
|
+
r
|
|
585
589
|
]
|
|
586
590
|
}),
|
|
587
591
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
588
592
|
className: _cardcssmistica.nakedCardContent,
|
|
589
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
590
|
-
headline:
|
|
591
|
-
pretitle:
|
|
592
|
-
pretitleLinesMax:
|
|
593
|
-
title:
|
|
594
|
-
titleLinesMax:
|
|
595
|
-
subtitle:
|
|
596
|
-
subtitleLinesMax:
|
|
597
|
-
description:
|
|
593
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(ae, {
|
|
594
|
+
headline: i,
|
|
595
|
+
pretitle: l,
|
|
596
|
+
pretitleLinesMax: m,
|
|
597
|
+
title: c,
|
|
598
|
+
titleLinesMax: p,
|
|
599
|
+
subtitle: s,
|
|
600
|
+
subtitleLinesMax: d,
|
|
601
|
+
description: o,
|
|
598
602
|
descriptionLinesMax: t,
|
|
599
|
-
extra:
|
|
600
|
-
button:
|
|
601
|
-
buttonLink:
|
|
603
|
+
extra: h,
|
|
604
|
+
button: v,
|
|
605
|
+
buttonLink: S
|
|
602
606
|
})
|
|
607
|
+
}),
|
|
608
|
+
a && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
609
|
+
className: _cardcssmistica.mediaCardIcon,
|
|
610
|
+
paddingLeft: {
|
|
611
|
+
mobile: 16,
|
|
612
|
+
desktop: 24
|
|
613
|
+
},
|
|
614
|
+
paddingTop: {
|
|
615
|
+
mobile: 16,
|
|
616
|
+
desktop: 24
|
|
617
|
+
},
|
|
618
|
+
children: a
|
|
603
619
|
})
|
|
604
620
|
]
|
|
605
621
|
})
|
|
606
622
|
})),
|
|
607
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
608
|
-
onClose:
|
|
609
|
-
actions:
|
|
623
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(F, {
|
|
624
|
+
onClose: g,
|
|
625
|
+
actions: f,
|
|
610
626
|
type: "media"
|
|
611
627
|
})
|
|
612
628
|
]
|
|
613
629
|
});
|
|
614
|
-
}),
|
|
615
|
-
var { media:
|
|
630
|
+
}), Mr = /*#__PURE__*/ _react.forwardRef((_param, h)=>{
|
|
631
|
+
var { media: r , title: a , titleLinesMax: i , subtitle: l , subtitleLinesMax: m , description: s , descriptionLinesMax: d , extra: c , dataAttributes: p , "aria-label": o } = _param, t = _object_without_properties(_param, [
|
|
616
632
|
"media",
|
|
617
633
|
"title",
|
|
618
634
|
"titleLinesMax",
|
|
@@ -624,19 +640,19 @@ const ye = (a, r)=>{
|
|
|
624
640
|
"dataAttributes",
|
|
625
641
|
"aria-label"
|
|
626
642
|
]);
|
|
627
|
-
const f =
|
|
628
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
643
|
+
const f = t.href || t.to || t.onPress, v = r && r.type === _image.default && r.props.circular;
|
|
644
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_, {
|
|
629
645
|
ref: h,
|
|
630
646
|
dataAttributes: _object_spread({
|
|
631
647
|
"component-name": "SmallNakedCard"
|
|
632
648
|
}, p),
|
|
633
|
-
"aria-label":
|
|
649
|
+
"aria-label": o,
|
|
634
650
|
className: f ? _cardcssmistica.touchableContainer : void 0,
|
|
635
651
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
636
652
|
maybe: !0
|
|
637
|
-
},
|
|
653
|
+
}, t), {
|
|
638
654
|
className: _cardcssmistica.touchable,
|
|
639
|
-
"aria-label":
|
|
655
|
+
"aria-label": o,
|
|
640
656
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
641
657
|
className: _cardcssmistica.mediaCard,
|
|
642
658
|
children: [
|
|
@@ -647,10 +663,10 @@ const ye = (a, r)=>{
|
|
|
647
663
|
children: [
|
|
648
664
|
f && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
649
665
|
className: (0, _classnames.default)(_cardcssmistica.touchableNakedMediaOverlay, {
|
|
650
|
-
[_cardcssmistica.circularMediaOverlay]:
|
|
666
|
+
[_cardcssmistica.circularMediaOverlay]: v
|
|
651
667
|
})
|
|
652
668
|
}),
|
|
653
|
-
|
|
669
|
+
r
|
|
654
670
|
]
|
|
655
671
|
}),
|
|
656
672
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
@@ -661,12 +677,12 @@ const ye = (a, r)=>{
|
|
|
661
677
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
662
678
|
space: 8,
|
|
663
679
|
children: [
|
|
664
|
-
|
|
680
|
+
a && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
665
681
|
truncate: i,
|
|
666
682
|
as: "h3",
|
|
667
683
|
regular: !0,
|
|
668
684
|
hyphens: "auto",
|
|
669
|
-
children:
|
|
685
|
+
children: a
|
|
670
686
|
}),
|
|
671
687
|
l && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
672
688
|
truncate: m,
|
|
@@ -696,8 +712,8 @@ const ye = (a, r)=>{
|
|
|
696
712
|
})
|
|
697
713
|
}))
|
|
698
714
|
});
|
|
699
|
-
}),
|
|
700
|
-
var { icon:
|
|
715
|
+
}), Dr = /*#__PURE__*/ _react.forwardRef((_param, I)=>{
|
|
716
|
+
var { icon: r , headline: a , pretitle: i , pretitleLinesMax: l , title: m , titleLinesMax: s , subtitle: d , subtitleLinesMax: c , description: p , descriptionLinesMax: o , extra: t , actions: h , button: f , buttonLink: v , dataAttributes: S , "aria-label": A , onClose: T , aspectRatio: g } = _param, u = _object_without_properties(_param, [
|
|
701
717
|
"icon",
|
|
702
718
|
"headline",
|
|
703
719
|
"pretitle",
|
|
@@ -714,32 +730,34 @@ const ye = (a, r)=>{
|
|
|
714
730
|
"buttonLink",
|
|
715
731
|
"dataAttributes",
|
|
716
732
|
"aria-label",
|
|
717
|
-
"onClose"
|
|
733
|
+
"onClose",
|
|
734
|
+
"aspectRatio"
|
|
718
735
|
]);
|
|
719
|
-
const
|
|
736
|
+
const b = !!r, M = u.href || u.to || u.onPress, D = Ne(h, T), E = {
|
|
720
737
|
marginRight: -16,
|
|
721
738
|
marginTop: -24,
|
|
722
|
-
width:
|
|
739
|
+
width: Ce * D.length
|
|
723
740
|
};
|
|
724
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(
|
|
741
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_, {
|
|
725
742
|
dataAttributes: _object_spread({
|
|
726
743
|
"component-name": "DataCard"
|
|
727
744
|
}, S),
|
|
728
|
-
ref:
|
|
729
|
-
"aria-label":
|
|
745
|
+
ref: I,
|
|
746
|
+
"aria-label": A,
|
|
730
747
|
className: _cardcssmistica.touchableContainer,
|
|
748
|
+
aspectRatio: g,
|
|
731
749
|
children: [
|
|
732
750
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.Boxed, {
|
|
733
751
|
className: _cardcssmistica.boxed,
|
|
734
752
|
width: "100%",
|
|
735
|
-
|
|
753
|
+
minHeight: "100%",
|
|
736
754
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
737
755
|
maybe: !0
|
|
738
756
|
}, u), {
|
|
739
757
|
className: _cardcssmistica.touchable,
|
|
740
|
-
"aria-label":
|
|
758
|
+
"aria-label": A,
|
|
741
759
|
children: [
|
|
742
|
-
|
|
760
|
+
M && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
743
761
|
className: _cardcssmistica.touchableCardOverlay
|
|
744
762
|
}),
|
|
745
763
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
@@ -751,9 +769,9 @@ const ye = (a, r)=>{
|
|
|
751
769
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
752
770
|
space: 16,
|
|
753
771
|
children: [
|
|
754
|
-
|
|
755
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
756
|
-
headline:
|
|
772
|
+
b ? r : null,
|
|
773
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(ae, {
|
|
774
|
+
headline: a,
|
|
757
775
|
pretitle: i,
|
|
758
776
|
pretitleLinesMax: l,
|
|
759
777
|
title: m,
|
|
@@ -761,23 +779,23 @@ const ye = (a, r)=>{
|
|
|
761
779
|
subtitle: d,
|
|
762
780
|
subtitleLinesMax: c,
|
|
763
781
|
description: p,
|
|
764
|
-
descriptionLinesMax:
|
|
782
|
+
descriptionLinesMax: o
|
|
765
783
|
})
|
|
766
784
|
]
|
|
767
785
|
}),
|
|
768
|
-
!
|
|
786
|
+
!b && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
769
787
|
style: E
|
|
770
788
|
})
|
|
771
789
|
]
|
|
772
790
|
}),
|
|
773
|
-
|
|
774
|
-
children:
|
|
791
|
+
t && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
792
|
+
children: t
|
|
775
793
|
}),
|
|
776
|
-
(f ||
|
|
794
|
+
(f || v) && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
777
795
|
className: _cardcssmistica.actions,
|
|
778
796
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttongroup.default, {
|
|
779
797
|
primaryButton: f,
|
|
780
|
-
link:
|
|
798
|
+
link: v
|
|
781
799
|
})
|
|
782
800
|
})
|
|
783
801
|
]
|
|
@@ -785,15 +803,15 @@ const ye = (a, r)=>{
|
|
|
785
803
|
]
|
|
786
804
|
}))
|
|
787
805
|
}),
|
|
788
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
789
|
-
onClose:
|
|
806
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(F, {
|
|
807
|
+
onClose: T,
|
|
790
808
|
actions: h,
|
|
791
809
|
type: "default"
|
|
792
810
|
})
|
|
793
811
|
]
|
|
794
812
|
});
|
|
795
|
-
}),
|
|
796
|
-
var { icon:
|
|
813
|
+
}), zr = /*#__PURE__*/ _react.forwardRef((_param, h)=>{
|
|
814
|
+
var { icon: r , title: a , titleLinesMax: i , subtitle: l , subtitleLinesMax: m , dataAttributes: s , "aria-label": d , extra: c , isInverse: p = !1 , aspectRatio: o } = _param, t = _object_without_properties(_param, [
|
|
797
815
|
"icon",
|
|
798
816
|
"title",
|
|
799
817
|
"titleLinesMax",
|
|
@@ -802,47 +820,49 @@ const ye = (a, r)=>{
|
|
|
802
820
|
"dataAttributes",
|
|
803
821
|
"aria-label",
|
|
804
822
|
"extra",
|
|
805
|
-
"isInverse"
|
|
823
|
+
"isInverse",
|
|
824
|
+
"aspectRatio"
|
|
806
825
|
]);
|
|
807
|
-
const
|
|
808
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
826
|
+
const f = t.href || t.to || t.onPress, v = p ? _cardcssmistica.touchableCardOverlayInverse : _cardcssmistica.touchableCardOverlay;
|
|
827
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_, {
|
|
809
828
|
dataAttributes: _object_spread({
|
|
810
829
|
"component-name": "SnapCard"
|
|
811
830
|
}, s),
|
|
812
|
-
ref:
|
|
831
|
+
ref: h,
|
|
813
832
|
className: _cardcssmistica.touchableContainer,
|
|
833
|
+
aspectRatio: o,
|
|
814
834
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.Boxed, {
|
|
815
835
|
className: _cardcssmistica.boxed,
|
|
816
836
|
isInverse: p,
|
|
817
837
|
width: "100%",
|
|
818
|
-
|
|
838
|
+
minHeight: "100%",
|
|
819
839
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
820
840
|
maybe: !0
|
|
821
841
|
}, t), {
|
|
822
842
|
className: _cardcssmistica.touchable,
|
|
823
843
|
"aria-label": d,
|
|
824
844
|
children: [
|
|
825
|
-
|
|
826
|
-
className:
|
|
845
|
+
f && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
846
|
+
className: v
|
|
827
847
|
}),
|
|
828
848
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("section", {
|
|
829
849
|
className: _cardcssmistica.snapCard,
|
|
830
850
|
children: [
|
|
831
851
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
832
852
|
children: [
|
|
833
|
-
|
|
853
|
+
r && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
834
854
|
paddingBottom: 16,
|
|
835
|
-
children:
|
|
855
|
+
children: r
|
|
836
856
|
}),
|
|
837
857
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
838
858
|
space: 4,
|
|
839
859
|
children: [
|
|
840
|
-
|
|
860
|
+
a && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
841
861
|
truncate: i,
|
|
842
862
|
as: "h3",
|
|
843
863
|
regular: !0,
|
|
844
864
|
hyphens: "auto",
|
|
845
|
-
children:
|
|
865
|
+
children: a
|
|
846
866
|
}),
|
|
847
867
|
l && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
848
868
|
truncate: m,
|
|
@@ -865,8 +885,8 @@ const ye = (a, r)=>{
|
|
|
865
885
|
}))
|
|
866
886
|
})
|
|
867
887
|
});
|
|
868
|
-
}),
|
|
869
|
-
var { isInverse:
|
|
888
|
+
}), rr = 264, be = /*#__PURE__*/ _react.forwardRef((_param, q)=>{
|
|
889
|
+
var { isInverse: r , backgroundImage: a , backgroundVideo: i , backgroundVideoRef: l , poster: m , icon: s , headline: d , pretitle: c , pretitleLinesMax: p , title: o , titleLinesMax: t , description: h , descriptionLinesMax: f , extra: v , button: S , secondaryButton: A , onClose: T , actions: g , buttonLink: u , dataAttributes: I , width: b , height: M , aspectRatio: D , "aria-label": E } = _param, W = _object_without_properties(_param, [
|
|
870
890
|
"isInverse",
|
|
871
891
|
"backgroundImage",
|
|
872
892
|
"backgroundVideo",
|
|
@@ -892,19 +912,19 @@ const ye = (a, r)=>{
|
|
|
892
912
|
"aspectRatio",
|
|
893
913
|
"aria-label"
|
|
894
914
|
]);
|
|
895
|
-
const
|
|
896
|
-
i && (
|
|
897
|
-
|
|
915
|
+
const L = Te(a), { video: P , videoAction: R } = Ae(i, m, l);
|
|
916
|
+
i && (g = R ? [
|
|
917
|
+
R
|
|
898
918
|
] : []);
|
|
899
|
-
const k = (0, _themevariantcontext.useIsInverseVariant)(),
|
|
900
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(
|
|
901
|
-
dataAttributes:
|
|
902
|
-
ref:
|
|
903
|
-
width:
|
|
904
|
-
height:
|
|
905
|
-
aspectRatio:
|
|
906
|
-
"aria-label":
|
|
907
|
-
minWidth:
|
|
919
|
+
const k = (0, _themevariantcontext.useIsInverseVariant)(), w = !!a || !!i, X = w ? "0 0 16px rgba(0,0,0,0.4)" : void 0, U = (g == null ? void 0 : g.length) || T, G = W.href || W.to || W.onPress, J = a || i ? _cardcssmistica.touchableCardOverlayMedia : r ? _cardcssmistica.touchableCardOverlayInverse : _cardcssmistica.touchableCardOverlay;
|
|
920
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_, {
|
|
921
|
+
dataAttributes: I,
|
|
922
|
+
ref: q,
|
|
923
|
+
width: b,
|
|
924
|
+
height: M,
|
|
925
|
+
aspectRatio: D,
|
|
926
|
+
"aria-label": E,
|
|
927
|
+
minWidth: rr,
|
|
908
928
|
className: _cardcssmistica.touchableContainer,
|
|
909
929
|
children: [
|
|
910
930
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.InternalBoxed, {
|
|
@@ -912,16 +932,16 @@ const ye = (a, r)=>{
|
|
|
912
932
|
className: _cardcssmistica.boxed,
|
|
913
933
|
width: "100%",
|
|
914
934
|
minHeight: "100%",
|
|
915
|
-
isInverse:
|
|
916
|
-
background:
|
|
935
|
+
isInverse: r,
|
|
936
|
+
background: a || i ? k ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundContainer : void 0,
|
|
917
937
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
918
938
|
maybe: !0
|
|
919
|
-
},
|
|
939
|
+
}, W), {
|
|
920
940
|
className: _cardcssmistica.touchable,
|
|
921
|
-
"aria-label":
|
|
941
|
+
"aria-label": E,
|
|
922
942
|
children: [
|
|
923
|
-
|
|
924
|
-
className:
|
|
943
|
+
G && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
944
|
+
className: J
|
|
925
945
|
}),
|
|
926
946
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
927
947
|
className: _cardcssmistica.displayCardContainer,
|
|
@@ -930,27 +950,27 @@ const ye = (a, r)=>{
|
|
|
930
950
|
isInverse: k,
|
|
931
951
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
932
952
|
className: _cardcssmistica.displayCardBackground,
|
|
933
|
-
children: i ?
|
|
953
|
+
children: i ? P : a ? L : void 0
|
|
934
954
|
})
|
|
935
955
|
}),
|
|
936
956
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
937
957
|
className: _cardcssmistica.displayCardContent,
|
|
938
958
|
style: {
|
|
939
|
-
paddingTop:
|
|
959
|
+
paddingTop: w && !s && !U && !i ? 0 : 24
|
|
940
960
|
},
|
|
941
961
|
children: [
|
|
942
962
|
s ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
943
|
-
paddingBottom:
|
|
963
|
+
paddingBottom: w ? 0 : 40,
|
|
944
964
|
paddingX: 24,
|
|
945
965
|
children: s
|
|
946
966
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
947
|
-
paddingBottom:
|
|
967
|
+
paddingBottom: U || i ? w ? 24 : 64 : 0
|
|
948
968
|
}),
|
|
949
969
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
950
970
|
paddingX: 24,
|
|
951
|
-
paddingTop:
|
|
971
|
+
paddingTop: w ? 40 : 0,
|
|
952
972
|
paddingBottom: 24,
|
|
953
|
-
className:
|
|
973
|
+
className: w ? _cardcssmistica.displayCardGradient : void 0,
|
|
954
974
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
955
975
|
space: 24,
|
|
956
976
|
children: [
|
|
@@ -959,7 +979,7 @@ const ye = (a, r)=>{
|
|
|
959
979
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
960
980
|
space: 8,
|
|
961
981
|
children: [
|
|
962
|
-
(d || c ||
|
|
982
|
+
(d || c || o) && /* @__PURE__ */ (0, _jsxruntime.jsx)("header", {
|
|
963
983
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
964
984
|
space: 16,
|
|
965
985
|
children: [
|
|
@@ -972,16 +992,16 @@ const ye = (a, r)=>{
|
|
|
972
992
|
truncate: p,
|
|
973
993
|
as: "div",
|
|
974
994
|
regular: !0,
|
|
975
|
-
textShadow:
|
|
995
|
+
textShadow: X,
|
|
976
996
|
children: c
|
|
977
997
|
}),
|
|
978
998
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text6, {
|
|
979
999
|
forceMobileSizes: !0,
|
|
980
|
-
truncate:
|
|
1000
|
+
truncate: t,
|
|
981
1001
|
as: "h3",
|
|
982
|
-
textShadow:
|
|
1002
|
+
textShadow: X,
|
|
983
1003
|
hyphens: "auto",
|
|
984
|
-
children:
|
|
1004
|
+
children: o
|
|
985
1005
|
})
|
|
986
1006
|
]
|
|
987
1007
|
})
|
|
@@ -993,20 +1013,20 @@ const ye = (a, r)=>{
|
|
|
993
1013
|
truncate: f,
|
|
994
1014
|
as: "p",
|
|
995
1015
|
regular: !0,
|
|
996
|
-
color:
|
|
997
|
-
textShadow:
|
|
1016
|
+
color: w ? _skincontractcssmistica.vars.colors.textPrimary : _skincontractcssmistica.vars.colors.textSecondary,
|
|
1017
|
+
textShadow: X,
|
|
998
1018
|
hyphens: "auto",
|
|
999
1019
|
children: h
|
|
1000
1020
|
})
|
|
1001
1021
|
]
|
|
1002
1022
|
}),
|
|
1003
|
-
|
|
1023
|
+
v
|
|
1004
1024
|
]
|
|
1005
1025
|
}),
|
|
1006
|
-
(S ||
|
|
1026
|
+
(S || A || u) && /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttongroup.default, {
|
|
1007
1027
|
primaryButton: S,
|
|
1008
|
-
secondaryButton:
|
|
1009
|
-
link:
|
|
1028
|
+
secondaryButton: A,
|
|
1029
|
+
link: u
|
|
1010
1030
|
})
|
|
1011
1031
|
]
|
|
1012
1032
|
})
|
|
@@ -1018,36 +1038,36 @@ const ye = (a, r)=>{
|
|
|
1018
1038
|
]
|
|
1019
1039
|
}))
|
|
1020
1040
|
}),
|
|
1021
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
1022
|
-
onClose:
|
|
1023
|
-
actions:
|
|
1024
|
-
type:
|
|
1041
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(F, {
|
|
1042
|
+
onClose: T,
|
|
1043
|
+
actions: g,
|
|
1044
|
+
type: a || i ? "media" : r ? "inverse" : "default"
|
|
1025
1045
|
})
|
|
1026
1046
|
]
|
|
1027
1047
|
});
|
|
1028
|
-
}),
|
|
1029
|
-
var { dataAttributes:
|
|
1048
|
+
}), Or = /*#__PURE__*/ _react.forwardRef((_param, i)=>/* @__PURE__ */ {
|
|
1049
|
+
var { dataAttributes: r } = _param, a = _object_without_properties(_param, [
|
|
1030
1050
|
"dataAttributes"
|
|
1031
1051
|
]);
|
|
1032
|
-
return (0, _jsxruntime.jsx)(
|
|
1052
|
+
return (0, _jsxruntime.jsx)(be, _object_spread_props(_object_spread({}, a), {
|
|
1033
1053
|
ref: i,
|
|
1034
1054
|
isInverse: !0,
|
|
1035
|
-
dataAttributes: _object_spread_props(_object_spread({},
|
|
1055
|
+
dataAttributes: _object_spread_props(_object_spread({}, r), {
|
|
1036
1056
|
"component-name": "DisplayMediaCard"
|
|
1037
1057
|
})
|
|
1038
1058
|
}));
|
|
1039
|
-
}),
|
|
1040
|
-
var { dataAttributes:
|
|
1059
|
+
}), Hr = /*#__PURE__*/ _react.forwardRef((_param, i)=>/* @__PURE__ */ {
|
|
1060
|
+
var { dataAttributes: r } = _param, a = _object_without_properties(_param, [
|
|
1041
1061
|
"dataAttributes"
|
|
1042
1062
|
]);
|
|
1043
|
-
return (0, _jsxruntime.jsx)(
|
|
1063
|
+
return (0, _jsxruntime.jsx)(be, _object_spread_props(_object_spread({}, a), {
|
|
1044
1064
|
ref: i,
|
|
1045
|
-
dataAttributes: _object_spread_props(_object_spread({},
|
|
1065
|
+
dataAttributes: _object_spread_props(_object_spread({}, r), {
|
|
1046
1066
|
"component-name": "DisplayDataCard"
|
|
1047
1067
|
})
|
|
1048
1068
|
}));
|
|
1049
|
-
}),
|
|
1050
|
-
var { dataAttributes:
|
|
1069
|
+
}), ar = 140, _r = /*#__PURE__*/ _react.forwardRef((_param, E)=>{
|
|
1070
|
+
var { dataAttributes: r , backgroundImage: a , backgroundVideo: i , poster: l , backgroundVideoRef: m , width: s , height: d , aspectRatio: c = "7:10" , ariaLabel: p , actions: o , onClose: t , icon: h , headline: f , pretitle: v , pretitleLinesMax: S , title: A , titleLinesMax: T , description: g , descriptionLinesMax: u , variant: I , isInverse: b , backgroundColor: M } = _param, D = _object_without_properties(_param, [
|
|
1051
1071
|
"dataAttributes",
|
|
1052
1072
|
"backgroundImage",
|
|
1053
1073
|
"backgroundVideo",
|
|
@@ -1066,21 +1086,28 @@ const ye = (a, r)=>{
|
|
|
1066
1086
|
"title",
|
|
1067
1087
|
"titleLinesMax",
|
|
1068
1088
|
"description",
|
|
1069
|
-
"descriptionLinesMax"
|
|
1089
|
+
"descriptionLinesMax",
|
|
1090
|
+
"variant",
|
|
1091
|
+
"isInverse",
|
|
1092
|
+
"backgroundColor"
|
|
1070
1093
|
]);
|
|
1071
|
-
const
|
|
1072
|
-
i && (
|
|
1073
|
-
|
|
1094
|
+
const W = Te(a), { video: q , videoAction: L } = Ae(i, l, m);
|
|
1095
|
+
i && (o = L ? [
|
|
1096
|
+
L
|
|
1074
1097
|
] : []);
|
|
1075
|
-
const
|
|
1076
|
-
|
|
1098
|
+
const P = (0, _themevariantcontext.useIsInverseVariant)(), R = !!a || !!i, k = R ? "0 0 16px rgba(0,0,0,0.4)" : void 0, w = (o == null ? void 0 : o.length) || t, { textPresets: X } = (0, _hooks.useTheme)(), U = D.href || D.to || D.onPress, G = I || (b ? "inverse" : "default"), J = ()=>M || ({
|
|
1099
|
+
default: _skincontractcssmistica.vars.colors.backgroundContainer,
|
|
1100
|
+
inverse: P ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundBrand,
|
|
1101
|
+
alternative: _skincontractcssmistica.vars.colors.backgroundAlternative
|
|
1102
|
+
})[G], xe = a || i ? _cardcssmistica.touchableCardOverlayMedia : G === "inverse" ? _cardcssmistica.touchableCardOverlayInverse : _cardcssmistica.touchableCardOverlay;
|
|
1103
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_, {
|
|
1077
1104
|
width: s,
|
|
1078
1105
|
height: d,
|
|
1079
|
-
dataAttributes: _object_spread_props(_object_spread({},
|
|
1106
|
+
dataAttributes: _object_spread_props(_object_spread({}, r), {
|
|
1080
1107
|
"component-name": "PosterCard"
|
|
1081
1108
|
}),
|
|
1082
|
-
ref:
|
|
1083
|
-
minWidth:
|
|
1109
|
+
ref: E,
|
|
1110
|
+
minWidth: ar,
|
|
1084
1111
|
aspectRatio: c,
|
|
1085
1112
|
"aria-label": p,
|
|
1086
1113
|
className: _cardcssmistica.touchableContainer,
|
|
@@ -1090,52 +1117,59 @@ const ye = (a, r)=>{
|
|
|
1090
1117
|
className: _cardcssmistica.boxed,
|
|
1091
1118
|
width: "100%",
|
|
1092
1119
|
minHeight: "100%",
|
|
1093
|
-
isInverse:
|
|
1094
|
-
background:
|
|
1120
|
+
isInverse: !!a || !!i || G === "inverse",
|
|
1121
|
+
background: a || i ? P ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundContainer : J(),
|
|
1095
1122
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
1096
1123
|
maybe: !0
|
|
1097
|
-
},
|
|
1124
|
+
}, D), {
|
|
1098
1125
|
className: _cardcssmistica.touchable,
|
|
1099
1126
|
"aria-label": p,
|
|
1100
1127
|
children: [
|
|
1101
|
-
|
|
1102
|
-
className:
|
|
1128
|
+
U && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1129
|
+
className: xe
|
|
1103
1130
|
}),
|
|
1104
1131
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
1105
1132
|
className: _cardcssmistica.displayCardContainer,
|
|
1106
1133
|
children: [
|
|
1107
1134
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
|
|
1108
|
-
isInverse:
|
|
1135
|
+
isInverse: P,
|
|
1109
1136
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1110
1137
|
className: _cardcssmistica.displayCardBackground,
|
|
1111
|
-
children: i ?
|
|
1138
|
+
children: i ? q : a ? W : void 0
|
|
1112
1139
|
})
|
|
1113
1140
|
}),
|
|
1114
|
-
/* @__PURE__ */ (0, _jsxruntime.jsxs)(
|
|
1141
|
+
/* @__PURE__ */ (0, _jsxruntime.jsxs)(_box.default, {
|
|
1115
1142
|
className: _cardcssmistica.displayCardContent,
|
|
1116
|
-
|
|
1117
|
-
|
|
1143
|
+
paddingTop: R && !h && !w && !i ? 0 : {
|
|
1144
|
+
mobile: h ? 16 : 24,
|
|
1145
|
+
desktop: 24
|
|
1118
1146
|
},
|
|
1119
1147
|
children: [
|
|
1120
1148
|
h ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
1121
|
-
paddingBottom:
|
|
1122
|
-
paddingX:
|
|
1149
|
+
paddingBottom: R ? 0 : 40,
|
|
1150
|
+
paddingX: {
|
|
1151
|
+
mobile: 16,
|
|
1152
|
+
desktop: 24
|
|
1153
|
+
},
|
|
1123
1154
|
children: h
|
|
1124
1155
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
1125
|
-
paddingBottom:
|
|
1156
|
+
paddingBottom: w || i ? R ? 24 : 64 : 0
|
|
1126
1157
|
}),
|
|
1127
1158
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
1128
|
-
paddingX:
|
|
1129
|
-
|
|
1159
|
+
paddingX: {
|
|
1160
|
+
mobile: 16,
|
|
1161
|
+
desktop: 24
|
|
1162
|
+
},
|
|
1163
|
+
paddingTop: R ? 40 : 0,
|
|
1130
1164
|
paddingBottom: 24,
|
|
1131
|
-
className:
|
|
1165
|
+
className: R ? _cardcssmistica.displayCardGradient : void 0,
|
|
1132
1166
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_stack.default, {
|
|
1133
1167
|
space: 24,
|
|
1134
1168
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1135
1169
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
1136
1170
|
space: 8,
|
|
1137
1171
|
children: [
|
|
1138
|
-
(f ||
|
|
1172
|
+
(f || v || A) && /* @__PURE__ */ (0, _jsxruntime.jsx)("header", {
|
|
1139
1173
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
1140
1174
|
space: 16,
|
|
1141
1175
|
children: [
|
|
@@ -1143,39 +1177,39 @@ const ye = (a, r)=>{
|
|
|
1143
1177
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
1144
1178
|
space: 4,
|
|
1145
1179
|
children: [
|
|
1146
|
-
|
|
1180
|
+
v && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
1147
1181
|
forceMobileSizes: !0,
|
|
1148
1182
|
truncate: S,
|
|
1149
1183
|
as: "div",
|
|
1150
1184
|
regular: !0,
|
|
1151
|
-
textShadow:
|
|
1185
|
+
textShadow: k,
|
|
1152
1186
|
hyphens: "auto",
|
|
1153
|
-
children:
|
|
1187
|
+
children: v
|
|
1154
1188
|
}),
|
|
1155
1189
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, {
|
|
1156
1190
|
desktopSize: 20,
|
|
1157
1191
|
mobileSize: 18,
|
|
1158
1192
|
mobileLineHeight: "24px",
|
|
1159
1193
|
desktopLineHeight: "28px",
|
|
1160
|
-
truncate:
|
|
1161
|
-
weight:
|
|
1194
|
+
truncate: T,
|
|
1195
|
+
weight: X.cardTitle.weight,
|
|
1162
1196
|
as: "h3",
|
|
1163
1197
|
hyphens: "auto",
|
|
1164
|
-
children:
|
|
1198
|
+
children: A
|
|
1165
1199
|
})
|
|
1166
1200
|
]
|
|
1167
1201
|
})
|
|
1168
1202
|
]
|
|
1169
1203
|
})
|
|
1170
1204
|
}),
|
|
1171
|
-
|
|
1205
|
+
g && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
1172
1206
|
forceMobileSizes: !0,
|
|
1173
|
-
truncate:
|
|
1207
|
+
truncate: u,
|
|
1174
1208
|
as: "p",
|
|
1175
1209
|
regular: !0,
|
|
1176
|
-
textShadow:
|
|
1210
|
+
textShadow: k,
|
|
1177
1211
|
hyphens: "auto",
|
|
1178
|
-
children:
|
|
1212
|
+
children: g
|
|
1179
1213
|
})
|
|
1180
1214
|
]
|
|
1181
1215
|
})
|
|
@@ -1189,10 +1223,10 @@ const ye = (a, r)=>{
|
|
|
1189
1223
|
]
|
|
1190
1224
|
}))
|
|
1191
1225
|
}),
|
|
1192
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
1193
|
-
onClose:
|
|
1194
|
-
actions:
|
|
1195
|
-
type: "media"
|
|
1226
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(F, {
|
|
1227
|
+
onClose: t,
|
|
1228
|
+
actions: o,
|
|
1229
|
+
type: a || i ? "media" : G === "inverse" ? "inverse" : "default"
|
|
1196
1230
|
})
|
|
1197
1231
|
]
|
|
1198
1232
|
});
|