@telefonica/mistica 15.16.4 → 15.18.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/css/mistica.css +1 -1
- package/css/roboto.css +102 -34
- package/dist/box.d.ts +1 -0
- package/dist/box.js +11 -10
- package/dist/callout.d.ts +1 -0
- package/dist/callout.js +10 -10
- package/dist/card.d.ts +6 -1
- package/dist/card.js +375 -365
- package/dist/chip.d.ts +1 -0
- package/dist/chip.js +25 -26
- package/dist/dialog.d.ts +1 -0
- package/dist/dialog.js +65 -62
- package/dist/feedback.js +58 -52
- package/dist/generated/mistica-icons/icon-box-star-filled.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-box-star-filled.js +121 -0
- package/dist/generated/mistica-icons/icon-box-star-light.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-box-star-light.js +117 -0
- package/dist/generated/mistica-icons/icon-box-star-regular.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-box-star-regular.js +117 -0
- package/dist/generated/mistica-icons/icon-high-priority-filled.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-high-priority-filled.js +111 -0
- package/dist/generated/mistica-icons/icon-high-priority-light.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-high-priority-light.js +111 -0
- package/dist/generated/mistica-icons/icon-high-priority-regular.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-high-priority-regular.js +111 -0
- package/dist/generated/mistica-icons/icon-mms-filled.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-mms-filled.js +122 -0
- package/dist/generated/mistica-icons/icon-mms-light.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-mms-light.js +134 -0
- package/dist/generated/mistica-icons/icon-mms-regular.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-mms-regular.js +134 -0
- package/dist/generated/mistica-icons/icon-vivo-valoriza-filled.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-vivo-valoriza-filled.js +111 -0
- package/dist/generated/mistica-icons/icon-vivo-valoriza-light.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-vivo-valoriza-light.js +117 -0
- package/dist/generated/mistica-icons/icon-vivo-valoriza-regular.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-vivo-valoriza-regular.js +117 -0
- package/dist/generated/mistica-icons/icons-keywords.js +31 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +48 -0
- package/dist/inline.css-mistica.js +11 -8
- package/dist/inline.css.d.ts +1 -0
- package/dist/inline.js +12 -12
- package/dist/list.d.ts +1 -0
- package/dist/list.js +163 -157
- package/dist/package-version.js +1 -1
- package/dist/popover.d.ts +1 -0
- package/dist/popover.js +9 -7
- package/dist/select.js +103 -95
- package/dist/skins/blau.js +96 -8
- package/dist/skins/defaults.js +98 -10
- package/dist/skins/movistar.js +94 -6
- package/dist/skins/o2-new.js +95 -7
- package/dist/skins/o2.js +94 -6
- package/dist/skins/skin-contract.css-mistica.js +42 -10
- package/dist/skins/skin-contract.css.d.ts +32 -0
- package/dist/skins/telefonica.js +96 -8
- package/dist/skins/tu.js +94 -6
- package/dist/skins/types/index.d.ts +36 -28
- package/dist/skins/vivo-new.js +95 -7
- package/dist/skins/vivo.js +94 -6
- package/dist/snackbar-context.js +23 -22
- package/dist/snackbar.d.ts +1 -0
- package/dist/snackbar.js +63 -57
- package/dist/theme-context-provider.js +91 -63
- package/dist/theme-context.css-mistica.js +452 -0
- package/dist/theme-context.css.d.ts +432 -0
- package/dist/theme-context.css.ts.vanilla.css-mistica.js +11 -0
- package/dist/tooltip.d.ts +1 -0
- package/dist/tooltip.js +110 -110
- package/dist-es/box.js +17 -16
- package/dist-es/callout.js +38 -38
- package/dist-es/card.js +492 -482
- package/dist-es/chip.js +49 -50
- package/dist-es/dialog.js +78 -75
- package/dist-es/feedback.js +96 -89
- package/dist-es/generated/mistica-icons/icon-box-star-filled.js +112 -0
- package/dist-es/generated/mistica-icons/icon-box-star-light.js +108 -0
- package/dist-es/generated/mistica-icons/icon-box-star-regular.js +108 -0
- package/dist-es/generated/mistica-icons/icon-high-priority-filled.js +102 -0
- package/dist-es/generated/mistica-icons/icon-high-priority-light.js +102 -0
- package/dist-es/generated/mistica-icons/icon-high-priority-regular.js +102 -0
- package/dist-es/generated/mistica-icons/icon-mms-filled.js +113 -0
- package/dist-es/generated/mistica-icons/icon-mms-light.js +125 -0
- package/dist-es/generated/mistica-icons/icon-mms-regular.js +125 -0
- package/dist-es/generated/mistica-icons/icon-vivo-valoriza-filled.js +102 -0
- package/dist-es/generated/mistica-icons/icon-vivo-valoriza-light.js +108 -0
- package/dist-es/generated/mistica-icons/icon-vivo-valoriza-regular.js +108 -0
- package/dist-es/generated/mistica-icons/icons-keywords.js +31 -0
- package/dist-es/index.js +1563 -1551
- package/dist-es/inline.css-mistica.js +3 -3
- package/dist-es/inline.js +23 -23
- package/dist-es/list.js +225 -219
- package/dist-es/package-version.js +1 -1
- package/dist-es/popover.js +26 -24
- package/dist-es/select.js +146 -138
- package/dist-es/skins/blau.js +96 -8
- package/dist-es/skins/defaults.js +97 -9
- package/dist-es/skins/movistar.js +94 -6
- package/dist-es/skins/o2-new.js +95 -7
- package/dist-es/skins/o2.js +94 -6
- package/dist-es/skins/skin-contract.css-mistica.js +42 -10
- package/dist-es/skins/telefonica.js +98 -10
- package/dist-es/skins/tu.js +94 -6
- package/dist-es/skins/vivo-new.js +95 -7
- package/dist-es/skins/vivo.js +94 -6
- package/dist-es/snackbar-context.js +25 -24
- package/dist-es/snackbar.js +91 -85
- package/dist-es/style.css +1 -1
- package/dist-es/theme-context-provider.js +133 -105
- package/dist-es/theme-context.css-mistica.js +432 -0
- package/dist-es/theme-context.css.ts.vanilla.css-mistica.js +2 -0
- package/dist-es/tooltip.js +149 -149
- package/package.json +2 -3
package/dist/card.js
CHANGED
|
@@ -11,40 +11,40 @@ function _export(target, all) {
|
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
13
|
CardActionIconButton: function() {
|
|
14
|
-
return
|
|
14
|
+
return ma;
|
|
15
15
|
},
|
|
16
16
|
CardActionSpinner: function() {
|
|
17
|
-
return
|
|
17
|
+
return fa;
|
|
18
18
|
},
|
|
19
19
|
CardActionsGroup: function() {
|
|
20
|
-
return
|
|
20
|
+
return U;
|
|
21
21
|
},
|
|
22
22
|
DataCard: function() {
|
|
23
|
-
return
|
|
23
|
+
return Ja;
|
|
24
24
|
},
|
|
25
25
|
DisplayDataCard: function() {
|
|
26
|
-
return
|
|
26
|
+
return Ua;
|
|
27
27
|
},
|
|
28
28
|
DisplayMediaCard: function() {
|
|
29
|
-
return
|
|
29
|
+
return Qa;
|
|
30
30
|
},
|
|
31
31
|
MediaCard: function() {
|
|
32
|
-
return
|
|
32
|
+
return _a;
|
|
33
33
|
},
|
|
34
34
|
NakedCard: function() {
|
|
35
|
-
return
|
|
35
|
+
return $a;
|
|
36
36
|
},
|
|
37
37
|
PosterCard: function() {
|
|
38
|
-
return
|
|
38
|
+
return Ya;
|
|
39
39
|
},
|
|
40
40
|
SmallNakedCard: function() {
|
|
41
|
-
return
|
|
41
|
+
return qa;
|
|
42
42
|
},
|
|
43
43
|
SnapCard: function() {
|
|
44
|
-
return
|
|
44
|
+
return Ka;
|
|
45
45
|
},
|
|
46
46
|
useVideoWithControls: function() {
|
|
47
|
-
return
|
|
47
|
+
return Ee;
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
const _jsxruntime = require("react/jsx-runtime");
|
|
@@ -200,25 +200,25 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
200
200
|
}
|
|
201
201
|
return target;
|
|
202
202
|
}
|
|
203
|
-
const
|
|
204
|
-
const [a, r] = _react.useState(""), t = _react.useCallback((
|
|
205
|
-
|
|
203
|
+
const A = ()=>{
|
|
204
|
+
const [a, r] = _react.useState(""), t = _react.useCallback((i)=>{
|
|
205
|
+
i && r((process.env.NODE_ENV === "test" ? i.textContent : i.innerText) || "");
|
|
206
206
|
}, []);
|
|
207
207
|
return {
|
|
208
208
|
text: a,
|
|
209
209
|
ref: t
|
|
210
210
|
};
|
|
211
|
-
},
|
|
212
|
-
const { texts:
|
|
211
|
+
}, je = (a, r, t)=>{
|
|
212
|
+
const { texts: i } = (0, _hooks.useTheme)(), n = a ? [
|
|
213
213
|
...a
|
|
214
214
|
] : [];
|
|
215
215
|
return r && n.push({
|
|
216
|
-
label: t.closeButtonLabel,
|
|
216
|
+
label: t !== null && t !== void 0 ? t : i.closeButtonLabel,
|
|
217
217
|
onPress: r,
|
|
218
218
|
Icon: _iconcloseregular.default
|
|
219
219
|
}), n;
|
|
220
|
-
},
|
|
221
|
-
const r = _react.useContext(
|
|
220
|
+
}, Pe = /*#__PURE__*/ _react.createContext("default"), ma = (a)=>{
|
|
221
|
+
const r = _react.useContext(Pe);
|
|
222
222
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
|
|
223
223
|
isInverse: r === "inverse",
|
|
224
224
|
children: a.Icon ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconbutton.InternalIconButton, _object_spread_props(_object_spread({}, a), {
|
|
@@ -242,11 +242,11 @@ const S = ()=>{
|
|
|
242
242
|
isOverMedia: r === "media"
|
|
243
243
|
}))
|
|
244
244
|
});
|
|
245
|
-
},
|
|
246
|
-
let { actions: a, padding: r = 16, onClose: t, type:
|
|
247
|
-
const
|
|
248
|
-
return
|
|
249
|
-
value:
|
|
245
|
+
}, U = (param)=>{
|
|
246
|
+
let { actions: a, padding: r = 16, onClose: t, type: i = "default", closeButtonLabel: n } = param;
|
|
247
|
+
const o = je(a, t, n);
|
|
248
|
+
return o.length > 0 ? /* @__PURE__ */ (0, _jsxruntime.jsx)(Pe.Provider, {
|
|
249
|
+
value: i,
|
|
250
250
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
251
251
|
style: {
|
|
252
252
|
position: "absolute",
|
|
@@ -256,36 +256,36 @@ const S = ()=>{
|
|
|
256
256
|
},
|
|
257
257
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_inline.default, {
|
|
258
258
|
space: 16,
|
|
259
|
-
children:
|
|
259
|
+
children: o.map((d, f)=>"Icon" in d || "checkedProps" in d ? /* @__PURE__ */ (0, _jsxruntime.jsx)(ma, _object_spread({}, d), f) : d)
|
|
260
260
|
})
|
|
261
261
|
})
|
|
262
262
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {});
|
|
263
|
-
},
|
|
263
|
+
}, ha = (a)=>a ? typeof a == "number" ? a : ({
|
|
264
264
|
"1:1": 1,
|
|
265
265
|
"16:9": 16 / 9,
|
|
266
266
|
"7:10": 7 / 10,
|
|
267
267
|
"9:10": 9 / 10,
|
|
268
268
|
auto: 0
|
|
269
|
-
})[a] : 0,
|
|
270
|
-
let { children: a, width: r, height: t, aspectRatio:
|
|
271
|
-
const
|
|
272
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)("section", _object_spread_props(_object_spread({}, (0, _dom.getPrefixedDataAttributes)(
|
|
273
|
-
ref:
|
|
274
|
-
"aria-label":
|
|
275
|
-
className: (0, _classnames.default)(
|
|
269
|
+
})[a] : 0, J = /*#__PURE__*/ _react.forwardRef((param, d)=>{
|
|
270
|
+
let { children: a, width: r, height: t, aspectRatio: i, dataAttributes: n, className: o, "aria-label": s } = param;
|
|
271
|
+
const f = r && t ? void 0 : ha(i);
|
|
272
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)("section", _object_spread_props(_object_spread({}, (0, _dom.getPrefixedDataAttributes)(n)), {
|
|
273
|
+
ref: d,
|
|
274
|
+
"aria-label": s,
|
|
275
|
+
className: (0, _classnames.default)(o, _cardcssmistica.cardContainer),
|
|
276
276
|
style: _object_spread({
|
|
277
277
|
width: r || "100%",
|
|
278
278
|
height: t || "100%"
|
|
279
|
-
},
|
|
280
|
-
[_cardcssmistica.vars.aspectRatio]: String(
|
|
279
|
+
}, f ? (0, _css.applyCssVars)({
|
|
280
|
+
[_cardcssmistica.vars.aspectRatio]: String(f)
|
|
281
281
|
}) : {}),
|
|
282
282
|
children: a
|
|
283
283
|
}));
|
|
284
|
-
}),
|
|
284
|
+
}), Ve = (a)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(_image.default, {
|
|
285
285
|
width: "100%",
|
|
286
286
|
height: "100%",
|
|
287
287
|
src: a || ""
|
|
288
|
-
}),
|
|
288
|
+
}), ua = {
|
|
289
289
|
loading: {
|
|
290
290
|
showSpinner: "loadingTimeout",
|
|
291
291
|
play: "playing",
|
|
@@ -311,76 +311,76 @@ const S = ()=>{
|
|
|
311
311
|
error: {
|
|
312
312
|
reset: "loading"
|
|
313
313
|
}
|
|
314
|
-
},
|
|
314
|
+
}, pa = (a, r)=>ua[a][r] || a, fa = (param)=>{
|
|
315
315
|
let { color: a } = param;
|
|
316
316
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_spinner.default, {
|
|
317
317
|
color: a,
|
|
318
318
|
size: 16,
|
|
319
319
|
delay: "0"
|
|
320
320
|
});
|
|
321
|
-
},
|
|
321
|
+
}, va = (param)=>{
|
|
322
322
|
let { color: a } = param;
|
|
323
323
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconpausefilled.default, {
|
|
324
324
|
color: a,
|
|
325
325
|
size: 12
|
|
326
326
|
});
|
|
327
|
-
},
|
|
327
|
+
}, ya = (param)=>{
|
|
328
328
|
let { color: a } = param;
|
|
329
329
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconplayfilled.default, {
|
|
330
330
|
color: a,
|
|
331
331
|
size: 12
|
|
332
332
|
});
|
|
333
|
-
},
|
|
334
|
-
const { texts:
|
|
333
|
+
}, Ee = (a, r, t)=>{
|
|
334
|
+
const { texts: i } = (0, _hooks.useTheme)(), n = _react.useRef(null), [o, s] = _react.useReducer(pa, "loading");
|
|
335
335
|
_react.useEffect(()=>{
|
|
336
|
-
var
|
|
337
|
-
const c = setTimeout(()=>
|
|
338
|
-
return (
|
|
339
|
-
clearTimeout(c),
|
|
336
|
+
var u;
|
|
337
|
+
const c = setTimeout(()=>s("showSpinner"), 2e3);
|
|
338
|
+
return (u = n.current) == null || u.load(), ()=>{
|
|
339
|
+
clearTimeout(c), s("reset");
|
|
340
340
|
};
|
|
341
341
|
}, [
|
|
342
342
|
a
|
|
343
343
|
]);
|
|
344
|
-
const
|
|
345
|
-
ref: (0, _common.combineRefs)(
|
|
344
|
+
const d = _react.useMemo(()=>a !== void 0 ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_video.default, {
|
|
345
|
+
ref: (0, _common.combineRefs)(n, t),
|
|
346
346
|
src: a,
|
|
347
347
|
width: "100%",
|
|
348
348
|
height: "100%",
|
|
349
349
|
poster: r,
|
|
350
|
-
onError: ()=>
|
|
351
|
-
onPause: ()=>
|
|
352
|
-
onPlay: ()=>
|
|
350
|
+
onError: ()=>s("fail"),
|
|
351
|
+
onPause: ()=>s("pause"),
|
|
352
|
+
onPlay: ()=>s("play")
|
|
353
353
|
}) : void 0, [
|
|
354
354
|
t,
|
|
355
355
|
a,
|
|
356
356
|
r
|
|
357
|
-
]),
|
|
358
|
-
const c =
|
|
359
|
-
c && (
|
|
357
|
+
]), f = ()=>{
|
|
358
|
+
const c = n.current;
|
|
359
|
+
c && (o === "loading" ? s("showSpinner") : o === "paused" ? c.play() : o === "playing" && c.pause());
|
|
360
360
|
};
|
|
361
|
-
if (
|
|
362
|
-
video:
|
|
361
|
+
if (o === "error") return {
|
|
362
|
+
video: d
|
|
363
363
|
};
|
|
364
|
-
const
|
|
364
|
+
const h = d ? {
|
|
365
365
|
uncheckedProps: {
|
|
366
|
-
Icon:
|
|
367
|
-
label:
|
|
366
|
+
Icon: o === "loadingTimeout" && !(0, _platform.isRunningAcceptanceTest)() ? fa : va,
|
|
367
|
+
label: o === "loadingTimeout" ? "" : i.pauseIconButtonLabel
|
|
368
368
|
},
|
|
369
369
|
checkedProps: {
|
|
370
|
-
Icon:
|
|
371
|
-
label:
|
|
370
|
+
Icon: ya,
|
|
371
|
+
label: i.playIconButtonLabel
|
|
372
372
|
},
|
|
373
|
-
onChange:
|
|
374
|
-
disabled:
|
|
375
|
-
checked:
|
|
373
|
+
onChange: f,
|
|
374
|
+
disabled: o === "loadingTimeout",
|
|
375
|
+
checked: o === "paused"
|
|
376
376
|
} : void 0;
|
|
377
377
|
return {
|
|
378
|
-
video:
|
|
379
|
-
videoAction:
|
|
378
|
+
video: d,
|
|
379
|
+
videoAction: h
|
|
380
380
|
};
|
|
381
|
-
},
|
|
382
|
-
let { headline: a, headlineRef: r, pretitle: t, pretitleLinesMax:
|
|
383
|
-
const { textPresets:
|
|
381
|
+
}, xe = (param)=>{
|
|
382
|
+
let { headline: a, headlineRef: r, pretitle: t, pretitleLinesMax: i, title: n, titleAs: o = "h3", titleLinesMax: s, subtitle: d, subtitleLinesMax: f, description: h, descriptionLinesMax: c, extra: u, extraRef: g, button: m, buttonLink: C } = param;
|
|
383
|
+
const { textPresets: x } = (0, _hooks.useTheme)();
|
|
384
384
|
return /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
385
385
|
className: (0, _sprinklescssmistica.sprinkles)({
|
|
386
386
|
display: "flex",
|
|
@@ -392,16 +392,16 @@ const S = ()=>{
|
|
|
392
392
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
393
393
|
className: _cardcssmistica.flexColumn,
|
|
394
394
|
children: [
|
|
395
|
-
|
|
395
|
+
n && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
396
396
|
style: {
|
|
397
|
-
paddingBottom:
|
|
397
|
+
paddingBottom: d || h ? 4 : 0
|
|
398
398
|
},
|
|
399
399
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, _text.textProps.text4), {
|
|
400
|
-
truncate:
|
|
401
|
-
weight:
|
|
402
|
-
as:
|
|
400
|
+
truncate: s,
|
|
401
|
+
weight: x.cardTitle.weight,
|
|
402
|
+
as: o,
|
|
403
403
|
hyphens: "auto",
|
|
404
|
-
children:
|
|
404
|
+
children: n
|
|
405
405
|
}))
|
|
406
406
|
}),
|
|
407
407
|
a && // assuming that the headline will always be followed by one of: pretitle, title, subtitle, description
|
|
@@ -422,30 +422,30 @@ const S = ()=>{
|
|
|
422
422
|
paddingBottom: 4
|
|
423
423
|
},
|
|
424
424
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
425
|
-
truncate:
|
|
425
|
+
truncate: i,
|
|
426
426
|
as: "div",
|
|
427
427
|
regular: !0,
|
|
428
428
|
hyphens: "auto",
|
|
429
429
|
children: t
|
|
430
430
|
})
|
|
431
431
|
}),
|
|
432
|
-
|
|
432
|
+
d && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
433
433
|
style: {
|
|
434
|
-
paddingBottom:
|
|
434
|
+
paddingBottom: h ? 4 : 0
|
|
435
435
|
},
|
|
436
436
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
437
|
-
truncate:
|
|
437
|
+
truncate: f,
|
|
438
438
|
as: "div",
|
|
439
439
|
regular: !0,
|
|
440
440
|
hyphens: "auto",
|
|
441
|
-
children:
|
|
441
|
+
children: d
|
|
442
442
|
})
|
|
443
443
|
}),
|
|
444
|
-
|
|
444
|
+
h && // this is tricky, when headline exists, the 8px padding is added by it.
|
|
445
445
|
// Otherwise, only 4px are added by title|pretitle|subtitle, so we need to add 4px more
|
|
446
446
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
447
447
|
style: {
|
|
448
|
-
paddingTop: t ||
|
|
448
|
+
paddingTop: t || n || d ? 4 : 0
|
|
449
449
|
},
|
|
450
450
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
451
451
|
truncate: c,
|
|
@@ -453,26 +453,26 @@ const S = ()=>{
|
|
|
453
453
|
regular: !0,
|
|
454
454
|
color: _skincontractcssmistica.vars.colors.textSecondary,
|
|
455
455
|
hyphens: "auto",
|
|
456
|
-
children:
|
|
456
|
+
children: h
|
|
457
457
|
})
|
|
458
458
|
}),
|
|
459
|
-
|
|
460
|
-
ref:
|
|
461
|
-
children:
|
|
459
|
+
u && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
460
|
+
ref: g,
|
|
461
|
+
children: u
|
|
462
462
|
})
|
|
463
463
|
]
|
|
464
464
|
}),
|
|
465
|
-
(
|
|
465
|
+
(m || C) && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
466
466
|
className: _cardcssmistica.actions,
|
|
467
467
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttongroup.default, {
|
|
468
|
-
primaryButton:
|
|
469
|
-
link:
|
|
468
|
+
primaryButton: m,
|
|
469
|
+
link: C
|
|
470
470
|
})
|
|
471
471
|
})
|
|
472
472
|
]
|
|
473
473
|
});
|
|
474
|
-
},
|
|
475
|
-
var { media: a, icon: r, headline: t, pretitle:
|
|
474
|
+
}, _a = /*#__PURE__*/ _react.forwardRef((_param, V)=>{
|
|
475
|
+
var { media: a, icon: r, headline: t, pretitle: i, pretitleLinesMax: n, subtitle: o, subtitleLinesMax: s, title: d, titleAs: f = "h3", titleLinesMax: h, description: c, descriptionLinesMax: u, extra: g, actions: m, button: C, buttonLink: x, dataAttributes: T, "aria-label": y, onClose: k, closeButtonLabel: B } = _param, v = _object_without_properties(_param, [
|
|
476
476
|
"media",
|
|
477
477
|
"icon",
|
|
478
478
|
"headline",
|
|
@@ -491,22 +491,23 @@ const S = ()=>{
|
|
|
491
491
|
"buttonLink",
|
|
492
492
|
"dataAttributes",
|
|
493
493
|
"aria-label",
|
|
494
|
-
"onClose"
|
|
494
|
+
"onClose",
|
|
495
|
+
"closeButtonLabel"
|
|
495
496
|
]);
|
|
496
|
-
const
|
|
497
|
-
s,
|
|
498
|
-
M,
|
|
499
|
-
n,
|
|
497
|
+
const N = !!(v.href || v.to || v.onPress), { text: M, ref: E } = A(), { text: O, ref: w } = A(), z = y || [
|
|
500
498
|
d,
|
|
499
|
+
M,
|
|
500
|
+
i,
|
|
501
|
+
o,
|
|
501
502
|
c,
|
|
502
503
|
O
|
|
503
504
|
].filter(Boolean).join(" ");
|
|
504
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(
|
|
505
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(J, {
|
|
505
506
|
dataAttributes: _object_spread({
|
|
506
507
|
"component-name": "MediaCard"
|
|
507
|
-
},
|
|
508
|
-
ref:
|
|
509
|
-
"aria-label":
|
|
508
|
+
}, T),
|
|
509
|
+
ref: V,
|
|
510
|
+
"aria-label": N ? void 0 : y,
|
|
510
511
|
className: _cardcssmistica.touchableContainer,
|
|
511
512
|
children: [
|
|
512
513
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.Boxed, {
|
|
@@ -515,11 +516,11 @@ const S = ()=>{
|
|
|
515
516
|
height: "100%",
|
|
516
517
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
517
518
|
maybe: !0
|
|
518
|
-
},
|
|
519
|
+
}, v), {
|
|
519
520
|
className: _cardcssmistica.touchable,
|
|
520
|
-
"aria-label":
|
|
521
|
+
"aria-label": N ? z : void 0,
|
|
521
522
|
children: [
|
|
522
|
-
|
|
523
|
+
N && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
523
524
|
className: _cardcssmistica.touchableMediaCardOverlay
|
|
524
525
|
}),
|
|
525
526
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
@@ -533,22 +534,22 @@ const S = ()=>{
|
|
|
533
534
|
}),
|
|
534
535
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
535
536
|
className: _cardcssmistica.mediaCardContent,
|
|
536
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
537
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(xe, {
|
|
537
538
|
headline: t,
|
|
538
|
-
headlineRef:
|
|
539
|
-
pretitle:
|
|
540
|
-
pretitleLinesMax:
|
|
541
|
-
title:
|
|
542
|
-
titleAs:
|
|
543
|
-
titleLinesMax:
|
|
544
|
-
subtitle:
|
|
545
|
-
subtitleLinesMax:
|
|
539
|
+
headlineRef: E,
|
|
540
|
+
pretitle: i,
|
|
541
|
+
pretitleLinesMax: n,
|
|
542
|
+
title: d,
|
|
543
|
+
titleAs: f,
|
|
544
|
+
titleLinesMax: h,
|
|
545
|
+
subtitle: o,
|
|
546
|
+
subtitleLinesMax: s,
|
|
546
547
|
description: c,
|
|
547
|
-
descriptionLinesMax:
|
|
548
|
-
extra:
|
|
549
|
-
extraRef:
|
|
550
|
-
button:
|
|
551
|
-
buttonLink:
|
|
548
|
+
descriptionLinesMax: u,
|
|
549
|
+
extra: g,
|
|
550
|
+
extraRef: w,
|
|
551
|
+
button: C,
|
|
552
|
+
buttonLink: x
|
|
552
553
|
})
|
|
553
554
|
}),
|
|
554
555
|
r && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
@@ -573,15 +574,16 @@ const S = ()=>{
|
|
|
573
574
|
]
|
|
574
575
|
}))
|
|
575
576
|
}),
|
|
576
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
577
|
-
onClose:
|
|
578
|
-
|
|
577
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(U, {
|
|
578
|
+
onClose: k,
|
|
579
|
+
closeButtonLabel: B,
|
|
580
|
+
actions: m,
|
|
579
581
|
type: "media"
|
|
580
582
|
})
|
|
581
583
|
]
|
|
582
584
|
});
|
|
583
|
-
}),
|
|
584
|
-
var { media: a, icon: r, headline: t, pretitle:
|
|
585
|
+
}), $a = /*#__PURE__*/ _react.forwardRef((_param, V)=>{
|
|
586
|
+
var { media: a, icon: r, headline: t, pretitle: i, pretitleLinesMax: n, subtitle: o, subtitleLinesMax: s, title: d, titleAs: f = "h3", titleLinesMax: h, description: c, descriptionLinesMax: u, extra: g, actions: m, button: C, buttonLink: x, dataAttributes: T, "aria-label": y, onClose: k, closeButtonLabel: B } = _param, v = _object_without_properties(_param, [
|
|
585
587
|
"media",
|
|
586
588
|
"icon",
|
|
587
589
|
"headline",
|
|
@@ -600,29 +602,30 @@ const S = ()=>{
|
|
|
600
602
|
"buttonLink",
|
|
601
603
|
"dataAttributes",
|
|
602
604
|
"aria-label",
|
|
603
|
-
"onClose"
|
|
605
|
+
"onClose",
|
|
606
|
+
"closeButtonLabel"
|
|
604
607
|
]);
|
|
605
|
-
const
|
|
606
|
-
s,
|
|
607
|
-
V,
|
|
608
|
-
n,
|
|
608
|
+
const N = !!(v.href || v.to || v.onPress), M = a && a.type === _image.default && a.props.circular, { text: E, ref: O } = A(), { text: w, ref: z } = A(), R = y || [
|
|
609
609
|
d,
|
|
610
|
+
E,
|
|
611
|
+
i,
|
|
612
|
+
o,
|
|
610
613
|
c,
|
|
611
|
-
|
|
614
|
+
w
|
|
612
615
|
].filter(Boolean).join(" ");
|
|
613
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(
|
|
614
|
-
ref:
|
|
616
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(J, {
|
|
617
|
+
ref: V,
|
|
615
618
|
dataAttributes: _object_spread({
|
|
616
619
|
"component-name": "NakedCard"
|
|
617
|
-
},
|
|
618
|
-
"aria-label":
|
|
619
|
-
className:
|
|
620
|
+
}, T),
|
|
621
|
+
"aria-label": N ? void 0 : y,
|
|
622
|
+
className: N ? _cardcssmistica.touchableContainer : void 0,
|
|
620
623
|
children: [
|
|
621
624
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
622
625
|
maybe: !0
|
|
623
|
-
},
|
|
626
|
+
}, v), {
|
|
624
627
|
className: _cardcssmistica.touchable,
|
|
625
|
-
"aria-label":
|
|
628
|
+
"aria-label": N ? R : void 0,
|
|
626
629
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
627
630
|
className: _cardcssmistica.mediaCard,
|
|
628
631
|
children: [
|
|
@@ -631,7 +634,7 @@ const S = ()=>{
|
|
|
631
634
|
position: "relative"
|
|
632
635
|
},
|
|
633
636
|
children: [
|
|
634
|
-
|
|
637
|
+
N && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
635
638
|
className: (0, _classnames.default)(_cardcssmistica.touchableNakedMediaOverlay, {
|
|
636
639
|
[_cardcssmistica.circularMediaOverlay]: M
|
|
637
640
|
})
|
|
@@ -641,22 +644,22 @@ const S = ()=>{
|
|
|
641
644
|
}),
|
|
642
645
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
643
646
|
className: _cardcssmistica.nakedCardContent,
|
|
644
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
647
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(xe, {
|
|
645
648
|
headline: t,
|
|
646
649
|
headlineRef: O,
|
|
647
|
-
pretitle:
|
|
648
|
-
pretitleLinesMax:
|
|
649
|
-
title:
|
|
650
|
-
titleAs:
|
|
651
|
-
titleLinesMax:
|
|
652
|
-
subtitle:
|
|
653
|
-
subtitleLinesMax:
|
|
650
|
+
pretitle: i,
|
|
651
|
+
pretitleLinesMax: n,
|
|
652
|
+
title: d,
|
|
653
|
+
titleAs: f,
|
|
654
|
+
titleLinesMax: h,
|
|
655
|
+
subtitle: o,
|
|
656
|
+
subtitleLinesMax: s,
|
|
654
657
|
description: c,
|
|
655
|
-
descriptionLinesMax:
|
|
656
|
-
extra:
|
|
658
|
+
descriptionLinesMax: u,
|
|
659
|
+
extra: g,
|
|
657
660
|
extraRef: z,
|
|
658
|
-
button:
|
|
659
|
-
buttonLink:
|
|
661
|
+
button: C,
|
|
662
|
+
buttonLink: x
|
|
660
663
|
})
|
|
661
664
|
}),
|
|
662
665
|
r && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
@@ -679,15 +682,16 @@ const S = ()=>{
|
|
|
679
682
|
]
|
|
680
683
|
})
|
|
681
684
|
})),
|
|
682
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
683
|
-
onClose:
|
|
684
|
-
|
|
685
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(U, {
|
|
686
|
+
onClose: k,
|
|
687
|
+
closeButtonLabel: B,
|
|
688
|
+
actions: m,
|
|
685
689
|
type: "media"
|
|
686
690
|
})
|
|
687
691
|
]
|
|
688
692
|
});
|
|
689
|
-
}),
|
|
690
|
-
var { media: a, title: r, titleAs: t = "h3", titleLinesMax:
|
|
693
|
+
}), qa = /*#__PURE__*/ _react.forwardRef((_param, g)=>{
|
|
694
|
+
var { media: a, title: r, titleAs: t = "h3", titleLinesMax: i, subtitle: n, subtitleLinesMax: o, description: s, descriptionLinesMax: d, extra: f, dataAttributes: h, "aria-label": c } = _param, u = _object_without_properties(_param, [
|
|
691
695
|
"media",
|
|
692
696
|
"title",
|
|
693
697
|
"titleAs",
|
|
@@ -700,24 +704,24 @@ const S = ()=>{
|
|
|
700
704
|
"dataAttributes",
|
|
701
705
|
"aria-label"
|
|
702
706
|
]);
|
|
703
|
-
const
|
|
707
|
+
const m = !!(u.href || u.to || u.onPress), C = a && a.type === _image.default && a.props.circular, { textPresets: x } = (0, _hooks.useTheme)(), { text: T, ref: y } = A(), k = c || [
|
|
704
708
|
r,
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
709
|
+
n,
|
|
710
|
+
s,
|
|
711
|
+
T
|
|
708
712
|
].filter(Boolean).join(" ");
|
|
709
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
710
|
-
ref:
|
|
713
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(J, {
|
|
714
|
+
ref: g,
|
|
711
715
|
dataAttributes: _object_spread({
|
|
712
716
|
"component-name": "SmallNakedCard"
|
|
713
|
-
},
|
|
714
|
-
"aria-label":
|
|
715
|
-
className:
|
|
717
|
+
}, h),
|
|
718
|
+
"aria-label": m ? void 0 : c,
|
|
719
|
+
className: m ? _cardcssmistica.touchableContainer : void 0,
|
|
716
720
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
717
721
|
maybe: !0
|
|
718
|
-
},
|
|
722
|
+
}, u), {
|
|
719
723
|
className: _cardcssmistica.touchable,
|
|
720
|
-
"aria-label":
|
|
724
|
+
"aria-label": m ? k : void 0,
|
|
721
725
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
722
726
|
className: _cardcssmistica.mediaCard,
|
|
723
727
|
children: [
|
|
@@ -726,9 +730,9 @@ const S = ()=>{
|
|
|
726
730
|
position: "relative"
|
|
727
731
|
},
|
|
728
732
|
children: [
|
|
729
|
-
|
|
733
|
+
m && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
730
734
|
className: (0, _classnames.default)(_cardcssmistica.touchableNakedMediaOverlay, {
|
|
731
|
-
[_cardcssmistica.circularMediaOverlay]:
|
|
735
|
+
[_cardcssmistica.circularMediaOverlay]: C
|
|
732
736
|
})
|
|
733
737
|
}),
|
|
734
738
|
a
|
|
@@ -742,33 +746,33 @@ const S = ()=>{
|
|
|
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:
|
|
749
|
+
truncate: i,
|
|
750
|
+
weight: x.cardTitle.weight,
|
|
747
751
|
as: t,
|
|
748
752
|
hyphens: "auto",
|
|
749
753
|
children: r
|
|
750
754
|
})),
|
|
751
|
-
|
|
752
|
-
truncate:
|
|
755
|
+
n && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
756
|
+
truncate: o,
|
|
753
757
|
regular: !0,
|
|
754
758
|
as: "p",
|
|
755
759
|
hyphens: "auto",
|
|
756
|
-
children:
|
|
760
|
+
children: n
|
|
757
761
|
}),
|
|
758
|
-
|
|
759
|
-
truncate:
|
|
762
|
+
s && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
763
|
+
truncate: d,
|
|
760
764
|
regular: !0,
|
|
761
765
|
as: "p",
|
|
762
766
|
color: _skincontractcssmistica.vars.colors.textSecondary,
|
|
763
767
|
hyphens: "auto",
|
|
764
|
-
children:
|
|
768
|
+
children: s
|
|
765
769
|
})
|
|
766
770
|
]
|
|
767
771
|
})
|
|
768
772
|
}),
|
|
769
|
-
|
|
770
|
-
ref:
|
|
771
|
-
children:
|
|
773
|
+
f && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
774
|
+
ref: y,
|
|
775
|
+
children: f
|
|
772
776
|
})
|
|
773
777
|
]
|
|
774
778
|
})
|
|
@@ -776,8 +780,8 @@ const S = ()=>{
|
|
|
776
780
|
})
|
|
777
781
|
}))
|
|
778
782
|
});
|
|
779
|
-
}),
|
|
780
|
-
var { icon: a, headline: r, pretitle: t, pretitleLinesMax:
|
|
783
|
+
}), Ja = /*#__PURE__*/ _react.forwardRef((_param, V)=>{
|
|
784
|
+
var { icon: a, headline: r, pretitle: t, pretitleLinesMax: i, title: n, titleAs: o = "h3", titleLinesMax: s, subtitle: d, subtitleLinesMax: f, description: h, descriptionLinesMax: c, extra: u, actions: g, button: m, buttonLink: C, dataAttributes: x, "aria-label": T, onClose: y, closeButtonLabel: k, aspectRatio: B } = _param, v = _object_without_properties(_param, [
|
|
781
785
|
"icon",
|
|
782
786
|
"headline",
|
|
783
787
|
"pretitle",
|
|
@@ -796,23 +800,24 @@ const S = ()=>{
|
|
|
796
800
|
"dataAttributes",
|
|
797
801
|
"aria-label",
|
|
798
802
|
"onClose",
|
|
803
|
+
"closeButtonLabel",
|
|
799
804
|
"aspectRatio"
|
|
800
805
|
]);
|
|
801
|
-
const
|
|
802
|
-
|
|
803
|
-
|
|
806
|
+
const N = !!a || !!r, M = !!(v.href || v.to || v.onPress), { text: E, ref: O } = A(), { text: w, ref: z } = A(), R = je(g, y), I = T || [
|
|
807
|
+
n,
|
|
808
|
+
E,
|
|
804
809
|
t,
|
|
805
|
-
|
|
806
|
-
|
|
810
|
+
h,
|
|
811
|
+
w
|
|
807
812
|
].filter(Boolean).join(" ");
|
|
808
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(
|
|
813
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(J, {
|
|
809
814
|
dataAttributes: _object_spread({
|
|
810
815
|
"component-name": "DataCard"
|
|
811
|
-
},
|
|
812
|
-
ref:
|
|
813
|
-
"aria-label": M ? void 0 :
|
|
816
|
+
}, x),
|
|
817
|
+
ref: V,
|
|
818
|
+
"aria-label": M ? void 0 : T,
|
|
814
819
|
className: _cardcssmistica.touchableContainer,
|
|
815
|
-
aspectRatio:
|
|
820
|
+
aspectRatio: B,
|
|
816
821
|
children: [
|
|
817
822
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.Boxed, {
|
|
818
823
|
className: _cardcssmistica.boxed,
|
|
@@ -820,9 +825,9 @@ const S = ()=>{
|
|
|
820
825
|
minHeight: "100%",
|
|
821
826
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
822
827
|
maybe: !0
|
|
823
|
-
},
|
|
828
|
+
}, v), {
|
|
824
829
|
className: _cardcssmistica.touchable,
|
|
825
|
-
"aria-label": M ?
|
|
830
|
+
"aria-label": M ? I : void 0,
|
|
826
831
|
children: [
|
|
827
832
|
M && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
828
833
|
className: _cardcssmistica.touchableCardOverlay
|
|
@@ -842,22 +847,22 @@ const S = ()=>{
|
|
|
842
847
|
}),
|
|
843
848
|
children: a
|
|
844
849
|
}),
|
|
845
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
850
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(xe, {
|
|
846
851
|
headline: r,
|
|
847
852
|
headlineRef: O,
|
|
848
853
|
pretitle: t,
|
|
849
|
-
pretitleLinesMax:
|
|
850
|
-
title:
|
|
851
|
-
titleAs:
|
|
852
|
-
titleLinesMax:
|
|
853
|
-
subtitle:
|
|
854
|
-
subtitleLinesMax:
|
|
855
|
-
description:
|
|
854
|
+
pretitleLinesMax: i,
|
|
855
|
+
title: n,
|
|
856
|
+
titleAs: o,
|
|
857
|
+
titleLinesMax: s,
|
|
858
|
+
subtitle: d,
|
|
859
|
+
subtitleLinesMax: f,
|
|
860
|
+
description: h,
|
|
856
861
|
descriptionLinesMax: c
|
|
857
862
|
})
|
|
858
863
|
]
|
|
859
864
|
}),
|
|
860
|
-
!
|
|
865
|
+
!N && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
861
866
|
style: (0, _css.applyCssVars)({
|
|
862
867
|
[_cardcssmistica.vars.topActionsCount]: String(R.length)
|
|
863
868
|
}),
|
|
@@ -865,15 +870,15 @@ const S = ()=>{
|
|
|
865
870
|
})
|
|
866
871
|
]
|
|
867
872
|
}),
|
|
868
|
-
|
|
873
|
+
u && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
869
874
|
ref: z,
|
|
870
|
-
children:
|
|
875
|
+
children: u
|
|
871
876
|
}),
|
|
872
|
-
(
|
|
877
|
+
(m || C) && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
873
878
|
className: _cardcssmistica.actions,
|
|
874
879
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttongroup.default, {
|
|
875
|
-
primaryButton:
|
|
876
|
-
link:
|
|
880
|
+
primaryButton: m,
|
|
881
|
+
link: C
|
|
877
882
|
})
|
|
878
883
|
})
|
|
879
884
|
]
|
|
@@ -881,15 +886,16 @@ const S = ()=>{
|
|
|
881
886
|
]
|
|
882
887
|
}))
|
|
883
888
|
}),
|
|
884
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
885
|
-
onClose:
|
|
886
|
-
|
|
889
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(U, {
|
|
890
|
+
onClose: y,
|
|
891
|
+
closeButtonLabel: k,
|
|
892
|
+
actions: g,
|
|
887
893
|
type: "default"
|
|
888
894
|
})
|
|
889
895
|
]
|
|
890
896
|
});
|
|
891
|
-
}),
|
|
892
|
-
var { icon: a, title: r, titleAs: t = "h3", titleLinesMax:
|
|
897
|
+
}), Ka = /*#__PURE__*/ _react.forwardRef((_param, C)=>{
|
|
898
|
+
var { icon: a, title: r, titleAs: t = "h3", titleLinesMax: i, subtitle: n, subtitleLinesMax: o, description: s, descriptionLinesMax: d, dataAttributes: f, "aria-label": h, extra: c, isInverse: u = !1, aspectRatio: g } = _param, m = _object_without_properties(_param, [
|
|
893
899
|
"icon",
|
|
894
900
|
"title",
|
|
895
901
|
"titleAs",
|
|
@@ -904,33 +910,33 @@ const S = ()=>{
|
|
|
904
910
|
"isInverse",
|
|
905
911
|
"aspectRatio"
|
|
906
912
|
]);
|
|
907
|
-
const { textPresets:
|
|
913
|
+
const { textPresets: x } = (0, _hooks.useTheme)(), T = !!(m.href || m.to || m.onPress), y = u ? _cardcssmistica.touchableCardOverlayInverse : _cardcssmistica.touchableCardOverlay, { text: k, ref: B } = A(), v = h || [
|
|
908
914
|
r,
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
915
|
+
n,
|
|
916
|
+
s,
|
|
917
|
+
k
|
|
912
918
|
].filter(Boolean).join(" ");
|
|
913
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
919
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(J, {
|
|
914
920
|
dataAttributes: _object_spread({
|
|
915
921
|
"component-name": "SnapCard"
|
|
916
|
-
},
|
|
917
|
-
ref:
|
|
922
|
+
}, f),
|
|
923
|
+
ref: C,
|
|
918
924
|
className: _cardcssmistica.touchableContainer,
|
|
919
|
-
aspectRatio:
|
|
920
|
-
"aria-label":
|
|
925
|
+
aspectRatio: g,
|
|
926
|
+
"aria-label": T ? void 0 : h,
|
|
921
927
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.Boxed, {
|
|
922
928
|
className: _cardcssmistica.boxed,
|
|
923
|
-
isInverse:
|
|
929
|
+
isInverse: u,
|
|
924
930
|
width: "100%",
|
|
925
931
|
minHeight: "100%",
|
|
926
932
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
927
933
|
maybe: !0
|
|
928
|
-
},
|
|
934
|
+
}, m), {
|
|
929
935
|
className: _cardcssmistica.touchable,
|
|
930
|
-
"aria-label":
|
|
936
|
+
"aria-label": T ? v : void 0,
|
|
931
937
|
children: [
|
|
932
|
-
|
|
933
|
-
className:
|
|
938
|
+
T && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
939
|
+
className: y
|
|
934
940
|
}),
|
|
935
941
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("section", {
|
|
936
942
|
className: _cardcssmistica.snapCard,
|
|
@@ -950,34 +956,34 @@ const S = ()=>{
|
|
|
950
956
|
space: 4,
|
|
951
957
|
children: [
|
|
952
958
|
r && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, _text.textProps.text2), {
|
|
953
|
-
truncate:
|
|
954
|
-
weight:
|
|
959
|
+
truncate: i,
|
|
960
|
+
weight: x.cardTitle.weight,
|
|
955
961
|
as: t,
|
|
956
962
|
hyphens: "auto",
|
|
957
963
|
children: r
|
|
958
964
|
})),
|
|
959
|
-
|
|
960
|
-
truncate:
|
|
965
|
+
n && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
966
|
+
truncate: o,
|
|
961
967
|
regular: !0,
|
|
962
968
|
color: _skincontractcssmistica.vars.colors.textPrimary,
|
|
963
969
|
as: "p",
|
|
964
970
|
hyphens: "auto",
|
|
965
|
-
children:
|
|
971
|
+
children: n
|
|
966
972
|
}),
|
|
967
|
-
|
|
968
|
-
truncate:
|
|
973
|
+
s && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
974
|
+
truncate: d,
|
|
969
975
|
regular: !0,
|
|
970
976
|
color: _skincontractcssmistica.vars.colors.textSecondary,
|
|
971
977
|
as: "p",
|
|
972
978
|
hyphens: "auto",
|
|
973
|
-
children:
|
|
979
|
+
children: s
|
|
974
980
|
})
|
|
975
981
|
]
|
|
976
982
|
})
|
|
977
983
|
]
|
|
978
984
|
}),
|
|
979
985
|
c && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
980
|
-
ref:
|
|
986
|
+
ref: B,
|
|
981
987
|
children: c
|
|
982
988
|
})
|
|
983
989
|
]
|
|
@@ -986,20 +992,20 @@ const S = ()=>{
|
|
|
986
992
|
}))
|
|
987
993
|
})
|
|
988
994
|
});
|
|
989
|
-
}),
|
|
990
|
-
let { title: a, headline: r, pretitle: t, subtitle:
|
|
995
|
+
}), Ge = (param)=>{
|
|
996
|
+
let { title: a, headline: r, pretitle: t, subtitle: i, description: n, extra: o, headlineRef: s, extraRef: d } = param;
|
|
991
997
|
return /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
992
998
|
className: _cardcssmistica.flexColumn,
|
|
993
999
|
children: [
|
|
994
1000
|
a && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
995
1001
|
style: {
|
|
996
|
-
paddingBottom:
|
|
1002
|
+
paddingBottom: i || n ? 4 : 0
|
|
997
1003
|
},
|
|
998
1004
|
children: a
|
|
999
1005
|
}),
|
|
1000
1006
|
r && // assuming that the headline will always be followed by one of: pretitle, title, subtitle, description
|
|
1001
1007
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1002
|
-
ref:
|
|
1008
|
+
ref: s,
|
|
1003
1009
|
style: {
|
|
1004
1010
|
order: -2,
|
|
1005
1011
|
paddingBottom: 16
|
|
@@ -1013,28 +1019,28 @@ const S = ()=>{
|
|
|
1013
1019
|
},
|
|
1014
1020
|
children: t
|
|
1015
1021
|
}),
|
|
1016
|
-
|
|
1022
|
+
i && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1017
1023
|
style: {
|
|
1018
|
-
paddingBottom:
|
|
1024
|
+
paddingBottom: i ? 4 : 0
|
|
1019
1025
|
},
|
|
1020
|
-
children:
|
|
1026
|
+
children: i
|
|
1021
1027
|
}),
|
|
1022
|
-
|
|
1028
|
+
n && // this is tricky, the padding between a headline and a description is 16px
|
|
1023
1029
|
// but the padding between a title|pretitle|subtitle and a description is 8px (4px + 4px)
|
|
1024
1030
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1025
1031
|
style: {
|
|
1026
|
-
paddingTop: t || a ||
|
|
1032
|
+
paddingTop: t || a || i ? 4 : 0
|
|
1027
1033
|
},
|
|
1028
|
-
children:
|
|
1034
|
+
children: n
|
|
1029
1035
|
}),
|
|
1030
|
-
|
|
1031
|
-
ref:
|
|
1032
|
-
children:
|
|
1036
|
+
o && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1037
|
+
ref: d,
|
|
1038
|
+
children: o
|
|
1033
1039
|
})
|
|
1034
1040
|
]
|
|
1035
1041
|
});
|
|
1036
|
-
},
|
|
1037
|
-
var { isInverse: a, backgroundImage: r, backgroundVideo: t, backgroundVideoRef:
|
|
1042
|
+
}, He = /*#__PURE__*/ _react.forwardRef((_param, z)=>{
|
|
1043
|
+
var { isInverse: a, backgroundImage: r, backgroundVideo: t, backgroundVideoRef: i, poster: n, icon: o, headline: s, pretitle: d, pretitleLinesMax: f, title: h, titleAs: c = "h3", titleLinesMax: u, description: g, descriptionLinesMax: m, extra: C, button: x, secondaryButton: T, onClose: y, closeButtonLabel: k, actions: B, buttonLink: v, dataAttributes: V, width: N, height: M, aspectRatio: E, "aria-label": O } = _param, w = _object_without_properties(_param, [
|
|
1038
1044
|
"isInverse",
|
|
1039
1045
|
"backgroundImage",
|
|
1040
1046
|
"backgroundVideo",
|
|
@@ -1053,6 +1059,7 @@ const S = ()=>{
|
|
|
1053
1059
|
"button",
|
|
1054
1060
|
"secondaryButton",
|
|
1055
1061
|
"onClose",
|
|
1062
|
+
"closeButtonLabel",
|
|
1056
1063
|
"actions",
|
|
1057
1064
|
"buttonLink",
|
|
1058
1065
|
"dataAttributes",
|
|
@@ -1061,24 +1068,24 @@ const S = ()=>{
|
|
|
1061
1068
|
"aspectRatio",
|
|
1062
1069
|
"aria-label"
|
|
1063
1070
|
]);
|
|
1064
|
-
const R = r !== void 0,
|
|
1065
|
-
|
|
1066
|
-
|
|
1071
|
+
const R = r !== void 0, I = t !== void 0, X = Ve(r), { video: S, videoAction: Y } = Ee(t, n, i), { text: se, ref: Z } = A(), { text: le, ref: ce } = A();
|
|
1072
|
+
I && (B = Y ? [
|
|
1073
|
+
Y
|
|
1067
1074
|
] : []);
|
|
1068
|
-
const
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1075
|
+
const ee = (0, _themevariantcontext.useIsInverseVariant)(), G = R || I, F = G ? "0 0 16px rgba(0,0,0,0.4)" : void 0, j = (B == null ? void 0 : B.length) || y, L = !!(w.href || w.to || w.onPress), ae = R || I ? _cardcssmistica.touchableCardOverlayMedia : a ? _cardcssmistica.touchableCardOverlayInverse : _cardcssmistica.touchableCardOverlay, me = O || [
|
|
1076
|
+
h,
|
|
1077
|
+
se,
|
|
1078
|
+
d,
|
|
1079
|
+
g,
|
|
1080
|
+
le
|
|
1074
1081
|
].filter(Boolean).join(" ");
|
|
1075
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(
|
|
1076
|
-
dataAttributes:
|
|
1082
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(J, {
|
|
1083
|
+
dataAttributes: V,
|
|
1077
1084
|
ref: z,
|
|
1078
|
-
width:
|
|
1085
|
+
width: N,
|
|
1079
1086
|
height: M,
|
|
1080
|
-
aspectRatio:
|
|
1081
|
-
"aria-label":
|
|
1087
|
+
aspectRatio: E,
|
|
1088
|
+
"aria-label": L ? void 0 : O,
|
|
1082
1089
|
className: _cardcssmistica.touchableContainer,
|
|
1083
1090
|
children: [
|
|
1084
1091
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.InternalBoxed, {
|
|
@@ -1087,88 +1094,88 @@ const S = ()=>{
|
|
|
1087
1094
|
width: "100%",
|
|
1088
1095
|
minHeight: "100%",
|
|
1089
1096
|
isInverse: a,
|
|
1090
|
-
background: R ||
|
|
1097
|
+
background: R || I ? ee ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundContainer : void 0,
|
|
1091
1098
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
1092
1099
|
maybe: !0
|
|
1093
|
-
},
|
|
1100
|
+
}, w), {
|
|
1094
1101
|
className: _cardcssmistica.touchable,
|
|
1095
|
-
"aria-label":
|
|
1102
|
+
"aria-label": L ? me : void 0,
|
|
1096
1103
|
children: [
|
|
1097
|
-
|
|
1098
|
-
className:
|
|
1104
|
+
L && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1105
|
+
className: ae
|
|
1099
1106
|
}),
|
|
1100
1107
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
1101
1108
|
className: _cardcssmistica.displayCardContainer,
|
|
1102
1109
|
children: [
|
|
1103
|
-
(R ||
|
|
1104
|
-
isInverse:
|
|
1110
|
+
(R || I) && /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
|
|
1111
|
+
isInverse: ee,
|
|
1105
1112
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1106
1113
|
className: _cardcssmistica.displayCardBackground,
|
|
1107
|
-
children:
|
|
1114
|
+
children: I ? S : X
|
|
1108
1115
|
})
|
|
1109
1116
|
}),
|
|
1110
1117
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
1111
1118
|
className: _cardcssmistica.displayCardContent,
|
|
1112
1119
|
style: {
|
|
1113
|
-
paddingTop:
|
|
1120
|
+
paddingTop: G && !o && !j && !I ? 0 : 24
|
|
1114
1121
|
},
|
|
1115
1122
|
children: [
|
|
1116
|
-
|
|
1123
|
+
o ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1117
1124
|
style: (0, _css.applyCssVars)({
|
|
1118
1125
|
[_imagecssmistica.vars.mediaBorderRadius]: _skincontractcssmistica.vars.borderRadii.mediaSmall
|
|
1119
1126
|
}),
|
|
1120
1127
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
1121
|
-
paddingBottom:
|
|
1128
|
+
paddingBottom: G ? 0 : 40,
|
|
1122
1129
|
paddingX: 24,
|
|
1123
|
-
children:
|
|
1130
|
+
children: o
|
|
1124
1131
|
})
|
|
1125
1132
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
1126
|
-
paddingBottom: j ||
|
|
1133
|
+
paddingBottom: j || I ? G ? 24 : 64 : 0
|
|
1127
1134
|
}),
|
|
1128
1135
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
1129
1136
|
paddingX: 24,
|
|
1130
|
-
paddingTop:
|
|
1137
|
+
paddingTop: G ? 40 : 0,
|
|
1131
1138
|
paddingBottom: 24,
|
|
1132
|
-
className:
|
|
1139
|
+
className: G ? _cardcssmistica.displayCardGradient : void 0,
|
|
1133
1140
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
1134
1141
|
space: 24,
|
|
1135
1142
|
children: [
|
|
1136
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
1137
|
-
title:
|
|
1143
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(Ge, {
|
|
1144
|
+
title: h ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text6, {
|
|
1138
1145
|
forceMobileSizes: !0,
|
|
1139
|
-
truncate:
|
|
1146
|
+
truncate: u,
|
|
1140
1147
|
as: c,
|
|
1141
|
-
textShadow:
|
|
1148
|
+
textShadow: F,
|
|
1142
1149
|
hyphens: "auto",
|
|
1143
|
-
children:
|
|
1150
|
+
children: h
|
|
1144
1151
|
}) : void 0,
|
|
1145
|
-
headline:
|
|
1146
|
-
pretitle:
|
|
1152
|
+
headline: s,
|
|
1153
|
+
pretitle: d ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
1147
1154
|
forceMobileSizes: !0,
|
|
1148
|
-
truncate:
|
|
1155
|
+
truncate: f,
|
|
1149
1156
|
as: "div",
|
|
1150
1157
|
regular: !0,
|
|
1151
|
-
textShadow:
|
|
1152
|
-
children:
|
|
1158
|
+
textShadow: F,
|
|
1159
|
+
children: d
|
|
1153
1160
|
}) : void 0,
|
|
1154
|
-
description:
|
|
1161
|
+
description: g ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text3, {
|
|
1155
1162
|
forceMobileSizes: !0,
|
|
1156
|
-
truncate:
|
|
1163
|
+
truncate: m,
|
|
1157
1164
|
as: "p",
|
|
1158
1165
|
regular: !0,
|
|
1159
|
-
color:
|
|
1160
|
-
textShadow:
|
|
1166
|
+
color: G ? _skincontractcssmistica.vars.colors.textPrimary : _skincontractcssmistica.vars.colors.textSecondary,
|
|
1167
|
+
textShadow: F,
|
|
1161
1168
|
hyphens: "auto",
|
|
1162
|
-
children:
|
|
1169
|
+
children: g
|
|
1163
1170
|
}) : void 0,
|
|
1164
|
-
extra:
|
|
1165
|
-
headlineRef:
|
|
1166
|
-
extraRef:
|
|
1171
|
+
extra: C,
|
|
1172
|
+
headlineRef: Z,
|
|
1173
|
+
extraRef: ce
|
|
1167
1174
|
}),
|
|
1168
|
-
(
|
|
1169
|
-
primaryButton:
|
|
1170
|
-
secondaryButton:
|
|
1171
|
-
link:
|
|
1175
|
+
(x || T || v) && /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttongroup.default, {
|
|
1176
|
+
primaryButton: x,
|
|
1177
|
+
secondaryButton: T,
|
|
1178
|
+
link: v
|
|
1172
1179
|
})
|
|
1173
1180
|
]
|
|
1174
1181
|
})
|
|
@@ -1180,36 +1187,37 @@ const S = ()=>{
|
|
|
1180
1187
|
]
|
|
1181
1188
|
}))
|
|
1182
1189
|
}),
|
|
1183
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
1184
|
-
onClose:
|
|
1185
|
-
|
|
1186
|
-
|
|
1190
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(U, {
|
|
1191
|
+
onClose: y,
|
|
1192
|
+
closeButtonLabel: k,
|
|
1193
|
+
actions: B,
|
|
1194
|
+
type: R || I ? "media" : a ? "inverse" : "default"
|
|
1187
1195
|
})
|
|
1188
1196
|
]
|
|
1189
1197
|
});
|
|
1190
|
-
}),
|
|
1198
|
+
}), Qa = /*#__PURE__*/ _react.forwardRef((_param, t)=>{
|
|
1191
1199
|
var { dataAttributes: a } = _param, r = _object_without_properties(_param, [
|
|
1192
1200
|
"dataAttributes"
|
|
1193
1201
|
]);
|
|
1194
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
1202
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(He, _object_spread_props(_object_spread({}, r), {
|
|
1195
1203
|
ref: t,
|
|
1196
1204
|
isInverse: !0,
|
|
1197
1205
|
dataAttributes: _object_spread({
|
|
1198
1206
|
"component-name": "DisplayMediaCard"
|
|
1199
1207
|
}, a)
|
|
1200
1208
|
}));
|
|
1201
|
-
}),
|
|
1209
|
+
}), Ua = /*#__PURE__*/ _react.forwardRef((_param, t)=>{
|
|
1202
1210
|
var { dataAttributes: a } = _param, r = _object_without_properties(_param, [
|
|
1203
1211
|
"dataAttributes"
|
|
1204
1212
|
]);
|
|
1205
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
1213
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(He, _object_spread_props(_object_spread({}, r), {
|
|
1206
1214
|
ref: t,
|
|
1207
1215
|
dataAttributes: _object_spread({
|
|
1208
1216
|
"component-name": "DisplayDataCard"
|
|
1209
1217
|
}, a)
|
|
1210
1218
|
}));
|
|
1211
|
-
}),
|
|
1212
|
-
var { dataAttributes: a, backgroundImage: r, backgroundVideo: t, poster:
|
|
1219
|
+
}), Ya = /*#__PURE__*/ _react.forwardRef((_param, I)=>{
|
|
1220
|
+
var { dataAttributes: a, backgroundImage: r, backgroundVideo: t, poster: i, backgroundVideoRef: n, width: o, height: s, aspectRatio: d = "7:10", ariaLabel: f, ["aria-label"]: h = f, actions: c, onClose: u, closeButtonLabel: g, icon: m, headline: C, pretitle: x, pretitleLinesMax: T, title: y, titleAs: k = "h3", titleLinesMax: B, subtitle: v, subtitleLinesMax: V, description: N, descriptionLinesMax: M, extra: E, variant: O, isInverse: w, backgroundColor: z } = _param, R = _object_without_properties(_param, [
|
|
1213
1221
|
"dataAttributes",
|
|
1214
1222
|
"backgroundImage",
|
|
1215
1223
|
"backgroundVideo",
|
|
@@ -1222,6 +1230,7 @@ const S = ()=>{
|
|
|
1222
1230
|
"aria-label",
|
|
1223
1231
|
"actions",
|
|
1224
1232
|
"onClose",
|
|
1233
|
+
"closeButtonLabel",
|
|
1225
1234
|
"icon",
|
|
1226
1235
|
"headline",
|
|
1227
1236
|
"pretitle",
|
|
@@ -1238,68 +1247,68 @@ const S = ()=>{
|
|
|
1238
1247
|
"isInverse",
|
|
1239
1248
|
"backgroundColor"
|
|
1240
1249
|
]);
|
|
1241
|
-
const
|
|
1242
|
-
|
|
1243
|
-
|
|
1250
|
+
const X = r !== void 0, S = t !== void 0, Y = Ve(r), { video: se, videoAction: Z } = Ee(t, i, n), { text: le, ref: ce } = A(), { text: ee, ref: G } = A();
|
|
1251
|
+
S && (c = Z ? [
|
|
1252
|
+
Z
|
|
1244
1253
|
] : []);
|
|
1245
|
-
const
|
|
1254
|
+
const F = (0, _themevariantcontext.useIsInverseVariant)(), j = X || S, L = j ? "0 0 16px rgba(0,0,0,0.4)" : void 0, ae = (c == null ? void 0 : c.length) || u, { textPresets: me } = (0, _hooks.useTheme)(), re = !!(R.href || R.to || R.onPress), te = O || (w ? "inverse" : "default"), Xe = ()=>z || ({
|
|
1246
1255
|
default: _skincontractcssmistica.vars.colors.backgroundContainer,
|
|
1247
|
-
inverse:
|
|
1256
|
+
inverse: F ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundBrand,
|
|
1248
1257
|
alternative: _skincontractcssmistica.vars.colors.backgroundAlternative
|
|
1249
|
-
})[
|
|
1258
|
+
})[te], Fe = X || S ? _cardcssmistica.touchableCardOverlayMedia : te === "inverse" ? _cardcssmistica.touchableCardOverlayInverse : _cardcssmistica.touchableCardOverlay, Le = h || [
|
|
1259
|
+
y,
|
|
1260
|
+
le,
|
|
1250
1261
|
x,
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
B,
|
|
1255
|
-
Z
|
|
1262
|
+
v,
|
|
1263
|
+
N,
|
|
1264
|
+
ee
|
|
1256
1265
|
].filter(Boolean).join(" ");
|
|
1257
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(
|
|
1258
|
-
width:
|
|
1259
|
-
height:
|
|
1266
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(J, {
|
|
1267
|
+
width: o,
|
|
1268
|
+
height: s,
|
|
1260
1269
|
dataAttributes: _object_spread({
|
|
1261
1270
|
"component-name": "PosterCard"
|
|
1262
1271
|
}, a),
|
|
1263
|
-
ref:
|
|
1264
|
-
aspectRatio:
|
|
1272
|
+
ref: I,
|
|
1273
|
+
aspectRatio: d,
|
|
1265
1274
|
className: _cardcssmistica.touchableContainer,
|
|
1266
|
-
"aria-label":
|
|
1275
|
+
"aria-label": re ? void 0 : h,
|
|
1267
1276
|
children: [
|
|
1268
1277
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.InternalBoxed, {
|
|
1269
1278
|
borderRadius: _skincontractcssmistica.vars.borderRadii.legacyDisplay,
|
|
1270
1279
|
className: _cardcssmistica.boxed,
|
|
1271
1280
|
width: "100%",
|
|
1272
1281
|
minHeight: "100%",
|
|
1273
|
-
isInverse:
|
|
1274
|
-
background:
|
|
1282
|
+
isInverse: X || S || te === "inverse",
|
|
1283
|
+
background: X || S ? F ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundContainer : Xe(),
|
|
1275
1284
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
1276
1285
|
maybe: !0
|
|
1277
1286
|
}, R), {
|
|
1278
1287
|
className: _cardcssmistica.touchable,
|
|
1279
|
-
"aria-label":
|
|
1288
|
+
"aria-label": re ? Le : void 0,
|
|
1280
1289
|
children: [
|
|
1281
|
-
|
|
1282
|
-
className:
|
|
1290
|
+
re && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1291
|
+
className: Fe
|
|
1283
1292
|
}),
|
|
1284
1293
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
1285
1294
|
className: _cardcssmistica.displayCardContainer,
|
|
1286
|
-
"aria-hidden":
|
|
1295
|
+
"aria-hidden": re,
|
|
1287
1296
|
children: [
|
|
1288
|
-
(
|
|
1289
|
-
isInverse:
|
|
1297
|
+
(X || S) && /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
|
|
1298
|
+
isInverse: F,
|
|
1290
1299
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1291
1300
|
className: _cardcssmistica.displayCardBackground,
|
|
1292
|
-
children:
|
|
1301
|
+
children: S ? se : Y
|
|
1293
1302
|
})
|
|
1294
1303
|
}),
|
|
1295
1304
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)(_box.default, {
|
|
1296
1305
|
className: _cardcssmistica.displayCardContent,
|
|
1297
|
-
paddingTop: j && !
|
|
1298
|
-
mobile:
|
|
1306
|
+
paddingTop: j && !m && !ae && !S ? 0 : {
|
|
1307
|
+
mobile: m ? 16 : 24,
|
|
1299
1308
|
desktop: 24
|
|
1300
1309
|
},
|
|
1301
1310
|
children: [
|
|
1302
|
-
|
|
1311
|
+
m ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1303
1312
|
style: (0, _css.applyCssVars)({
|
|
1304
1313
|
[_imagecssmistica.vars.mediaBorderRadius]: _skincontractcssmistica.vars.borderRadii.mediaSmall
|
|
1305
1314
|
}),
|
|
@@ -1309,10 +1318,10 @@ const S = ()=>{
|
|
|
1309
1318
|
mobile: 16,
|
|
1310
1319
|
desktop: 24
|
|
1311
1320
|
},
|
|
1312
|
-
children:
|
|
1321
|
+
children: m
|
|
1313
1322
|
})
|
|
1314
1323
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
1315
|
-
paddingBottom:
|
|
1324
|
+
paddingBottom: ae || S ? j ? 24 : 64 : 0
|
|
1316
1325
|
}),
|
|
1317
1326
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
1318
1327
|
paddingX: {
|
|
@@ -1322,42 +1331,42 @@ const S = ()=>{
|
|
|
1322
1331
|
paddingTop: j ? 40 : 0,
|
|
1323
1332
|
paddingBottom: 24,
|
|
1324
1333
|
className: j ? _cardcssmistica.displayCardGradient : void 0,
|
|
1325
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
1326
|
-
title:
|
|
1327
|
-
truncate:
|
|
1328
|
-
weight:
|
|
1329
|
-
as:
|
|
1330
|
-
children:
|
|
1334
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(Ge, {
|
|
1335
|
+
title: y ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, _text.textProps.text4), {
|
|
1336
|
+
truncate: B,
|
|
1337
|
+
weight: me.cardTitle.weight,
|
|
1338
|
+
as: k,
|
|
1339
|
+
children: y
|
|
1331
1340
|
})) : void 0,
|
|
1332
|
-
headline:
|
|
1333
|
-
pretitle:
|
|
1341
|
+
headline: C,
|
|
1342
|
+
pretitle: x ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
1334
1343
|
forceMobileSizes: !0,
|
|
1335
|
-
truncate:
|
|
1344
|
+
truncate: T,
|
|
1336
1345
|
as: "div",
|
|
1337
1346
|
regular: !0,
|
|
1338
|
-
textShadow:
|
|
1339
|
-
children:
|
|
1347
|
+
textShadow: L,
|
|
1348
|
+
children: x
|
|
1340
1349
|
}) : void 0,
|
|
1341
|
-
subtitle:
|
|
1350
|
+
subtitle: v ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
1342
1351
|
forceMobileSizes: !0,
|
|
1343
|
-
truncate:
|
|
1352
|
+
truncate: V,
|
|
1344
1353
|
as: "div",
|
|
1345
1354
|
regular: !0,
|
|
1346
|
-
textShadow:
|
|
1347
|
-
children:
|
|
1355
|
+
textShadow: L,
|
|
1356
|
+
children: v
|
|
1348
1357
|
}) : void 0,
|
|
1349
|
-
description:
|
|
1358
|
+
description: N ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
1350
1359
|
forceMobileSizes: !0,
|
|
1351
1360
|
truncate: M,
|
|
1352
1361
|
as: "p",
|
|
1353
1362
|
regular: !0,
|
|
1354
|
-
textShadow:
|
|
1363
|
+
textShadow: L,
|
|
1355
1364
|
color: j ? _skincontractcssmistica.vars.colors.textPrimary : _skincontractcssmistica.vars.colors.textSecondary,
|
|
1356
|
-
children:
|
|
1365
|
+
children: N
|
|
1357
1366
|
}) : void 0,
|
|
1358
|
-
headlineRef:
|
|
1359
|
-
extra:
|
|
1360
|
-
extraRef:
|
|
1367
|
+
headlineRef: ce,
|
|
1368
|
+
extra: E,
|
|
1369
|
+
extraRef: G
|
|
1361
1370
|
})
|
|
1362
1371
|
})
|
|
1363
1372
|
]
|
|
@@ -1367,10 +1376,11 @@ const S = ()=>{
|
|
|
1367
1376
|
]
|
|
1368
1377
|
}))
|
|
1369
1378
|
}),
|
|
1370
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
1371
|
-
onClose:
|
|
1379
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(U, {
|
|
1380
|
+
onClose: u,
|
|
1381
|
+
closeButtonLabel: g,
|
|
1372
1382
|
actions: c,
|
|
1373
|
-
type:
|
|
1383
|
+
type: X || S ? "media" : te === "inverse" ? "inverse" : "default"
|
|
1374
1384
|
})
|
|
1375
1385
|
]
|
|
1376
1386
|
});
|