@telefonica/mistica 16.57.0 → 16.58.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/css/mistica.css +1 -1
- package/dist/accordion.css-mistica.js +16 -16
- package/dist/align.css-mistica.js +2 -2
- package/dist/autocomplete.css-mistica.js +6 -6
- package/dist/avatar.css-mistica.js +3 -3
- package/dist/badge.css-mistica.js +7 -7
- package/dist/box.css-mistica.js +15 -15
- package/dist/boxed.css-mistica.js +31 -31
- package/dist/button-group.css-mistica.js +10 -10
- package/dist/button-layout.css-mistica.js +21 -21
- package/dist/button.css-mistica.js +51 -51
- package/dist/callout.css-mistica.js +16 -16
- package/dist/card-internal.css-mistica.js +39 -33
- package/dist/card-internal.css.d.ts +2 -0
- package/dist/card-internal.d.ts +21 -3
- package/dist/card-internal.js +506 -450
- package/dist/carousel.css-mistica.js +18 -18
- package/dist/checkbox.css-mistica.js +21 -21
- package/dist/chip.css-mistica.js +30 -30
- package/dist/circle.css-mistica.js +2 -2
- package/dist/community/advanced-data-card.css-mistica.js +26 -26
- package/dist/community/blocks.css-mistica.js +3 -3
- package/dist/community/example-component.css-mistica.js +2 -2
- package/dist/counter.css-mistica.js +12 -12
- package/dist/cover-hero.css-mistica.js +16 -16
- package/dist/credit-card-number-field.css-mistica.js +6 -6
- package/dist/date-field.css-mistica.js +1 -1
- package/dist/date-time-picker.css-mistica.js +2 -2
- package/dist/dialog.css-mistica.js +15 -15
- package/dist/divider.css-mistica.js +5 -5
- package/dist/double-field.css-mistica.js +4 -4
- package/dist/drawer.css-mistica.js +15 -15
- package/dist/empty-state-card.css-mistica.js +4 -4
- package/dist/empty-state.css-mistica.js +14 -14
- package/dist/fade-in.css-mistica.js +1 -1
- package/dist/feedback.css-mistica.js +14 -14
- package/dist/file-upload.css-mistica.js +14 -14
- package/dist/fixed-footer-layout.css-mistica.js +12 -12
- package/dist/form.css-mistica.js +2 -2
- package/dist/grid-layout.css-mistica.js +9 -9
- package/dist/grid.css-mistica.js +147 -147
- package/dist/header.css-mistica.js +5 -5
- package/dist/hero.css-mistica.js +11 -11
- package/dist/horizontal-scroll.css-mistica.js +3 -3
- package/dist/icon-button.css-mistica.js +66 -66
- package/dist/icons/icon-chevron.css-mistica.js +6 -6
- package/dist/icons/icon-error.css-mistica.js +3 -3
- package/dist/image.css-mistica.js +11 -11
- package/dist/inline.css-mistica.js +16 -16
- package/dist/list.css-mistica.js +15 -15
- package/dist/loading-bar.css-mistica.js +5 -5
- package/dist/loading-screen.css-mistica.js +15 -15
- package/dist/logo.css-mistica.js +9 -9
- package/dist/menu.css-mistica.js +24 -24
- package/dist/mosaic.css-mistica.js +3 -3
- package/dist/navigation-bar.css-mistica.js +45 -45
- package/dist/navigation-breadcrumbs.css-mistica.js +5 -5
- package/dist/package-version.js +2 -2
- package/dist/pin-field.css-mistica.js +10 -10
- package/dist/popover.css-mistica.js +2 -2
- package/dist/progress-bar.css-mistica.js +12 -12
- package/dist/radio-button.css-mistica.js +33 -33
- package/dist/rating.css-mistica.js +12 -12
- package/dist/responsive-layout.css-mistica.js +20 -20
- package/dist/screen-reader-only.css-mistica.js +2 -2
- package/dist/select.css-mistica.js +29 -29
- package/dist/sheet-action-row.css-mistica.js +2 -2
- package/dist/sheet-common.css-mistica.js +16 -16
- package/dist/sheet-info.css-mistica.js +4 -4
- package/dist/skeletons.css-mistica.js +12 -12
- package/dist/skins/skin-contract.css-mistica.js +686 -686
- package/dist/skip-link.css-mistica.js +3 -3
- package/dist/slider.css-mistica.js +28 -28
- package/dist/snackbar.css-mistica.js +16 -16
- package/dist/spinner.css-mistica.js +5 -5
- package/dist/square.css-mistica.js +2 -2
- package/dist/stack.css-mistica.js +9 -9
- package/dist/stacking-group.css-mistica.js +2 -2
- package/dist/stepper.css-mistica.js +16 -16
- package/dist/switch-component.css-mistica.js +53 -53
- package/dist/table.css-mistica.js +24 -24
- package/dist/tabs.css-mistica.js +30 -30
- package/dist/tag.css-mistica.js +5 -5
- package/dist/text-field-base.css-mistica.js +30 -30
- package/dist/text-field-components.css-mistica.js +20 -20
- package/dist/text-link.css-mistica.js +10 -10
- package/dist/text.css-mistica.js +13 -13
- package/dist/theme-context.css-mistica.js +2 -2
- package/dist/timeline.css-mistica.js +18 -18
- package/dist/timer.css-mistica.js +13 -13
- package/dist/tooltip.css-mistica.js +12 -12
- package/dist/touchable.css-mistica.js +5 -5
- package/dist/utils/aspect-ratio-support.css-mistica.js +7 -7
- package/dist/video.css-mistica.js +2 -2
- package/dist/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +3 -3
- package/dist-es/accordion.css-mistica.js +7 -7
- package/dist-es/align.css-mistica.js +2 -2
- package/dist-es/autocomplete.css-mistica.js +2 -2
- package/dist-es/avatar.css-mistica.js +2 -2
- package/dist-es/badge.css-mistica.js +2 -2
- package/dist-es/box.css-mistica.js +15 -15
- package/dist-es/boxed.css-mistica.js +25 -25
- package/dist-es/button-group.css-mistica.js +2 -2
- package/dist-es/button-layout.css-mistica.js +16 -16
- package/dist-es/button.css-mistica.js +38 -38
- package/dist-es/callout.css-mistica.js +12 -12
- package/dist-es/card-internal.css-mistica.js +20 -20
- package/dist-es/card-internal.js +593 -533
- package/dist-es/carousel.css-mistica.js +10 -10
- package/dist-es/checkbox.css-mistica.js +14 -14
- package/dist-es/chip.css-mistica.js +17 -17
- package/dist-es/circle.css-mistica.js +2 -2
- package/dist-es/community/advanced-data-card.css-mistica.js +7 -7
- package/dist-es/community/blocks.css-mistica.js +2 -2
- package/dist-es/community/example-component.css-mistica.js +2 -2
- package/dist-es/counter.css-mistica.js +2 -2
- package/dist-es/cover-hero.css-mistica.js +4 -4
- package/dist-es/credit-card-number-field.css-mistica.js +4 -4
- package/dist-es/date-field.css-mistica.js +1 -1
- package/dist-es/date-time-picker.css-mistica.js +2 -2
- package/dist-es/dialog.css-mistica.js +5 -5
- package/dist-es/divider.css-mistica.js +5 -5
- package/dist-es/double-field.css-mistica.js +4 -4
- package/dist-es/drawer.css-mistica.js +2 -2
- package/dist-es/empty-state-card.css-mistica.js +2 -2
- package/dist-es/empty-state.css-mistica.js +7 -7
- package/dist-es/fade-in.css-mistica.js +1 -1
- package/dist-es/feedback.css-mistica.js +2 -2
- package/dist-es/file-upload.css-mistica.js +8 -8
- package/dist-es/fixed-footer-layout.css-mistica.js +4 -4
- package/dist-es/form.css-mistica.js +2 -2
- package/dist-es/grid-layout.css-mistica.js +4 -4
- package/dist-es/grid.css-mistica.js +127 -127
- package/dist-es/header.css-mistica.js +2 -2
- package/dist-es/hero.css-mistica.js +4 -4
- package/dist-es/horizontal-scroll.css-mistica.js +2 -2
- package/dist-es/icon-button.css-mistica.js +56 -56
- package/dist-es/icons/icon-chevron.css-mistica.js +4 -4
- package/dist-es/icons/icon-error.css-mistica.js +2 -2
- package/dist-es/image.css-mistica.js +4 -4
- package/dist-es/inline.css-mistica.js +10 -10
- package/dist-es/list.css-mistica.js +2 -2
- package/dist-es/loading-bar.css-mistica.js +2 -2
- package/dist-es/loading-screen.css-mistica.js +5 -5
- package/dist-es/logo.css-mistica.js +7 -7
- package/dist-es/menu.css-mistica.js +15 -15
- package/dist-es/mosaic.css-mistica.js +2 -2
- package/dist-es/navigation-bar.css-mistica.js +20 -20
- package/dist-es/navigation-breadcrumbs.css-mistica.js +2 -2
- package/dist-es/package-version.js +2 -2
- package/dist-es/pin-field.css-mistica.js +2 -2
- package/dist-es/popover.css-mistica.js +2 -2
- package/dist-es/progress-bar.css-mistica.js +8 -8
- package/dist-es/radio-button.css-mistica.js +25 -25
- package/dist-es/rating.css-mistica.js +4 -4
- package/dist-es/responsive-layout.css-mistica.js +7 -7
- package/dist-es/screen-reader-only.css-mistica.js +2 -2
- package/dist-es/select.css-mistica.js +20 -20
- package/dist-es/sheet-action-row.css-mistica.js +2 -2
- package/dist-es/sheet-common.css-mistica.js +2 -2
- package/dist-es/sheet-info.css-mistica.js +2 -2
- package/dist-es/skeletons.css-mistica.js +8 -8
- package/dist-es/skins/skin-contract.css-mistica.js +686 -686
- package/dist-es/skip-link.css-mistica.js +2 -2
- package/dist-es/slider.css-mistica.js +20 -20
- package/dist-es/snackbar.css-mistica.js +5 -5
- package/dist-es/spinner.css-mistica.js +2 -2
- package/dist-es/square.css-mistica.js +2 -2
- package/dist-es/stack.css-mistica.js +7 -7
- package/dist-es/stacking-group.css-mistica.js +2 -2
- package/dist-es/stepper.css-mistica.js +4 -4
- package/dist-es/style.css +1 -1
- package/dist-es/switch-component.css-mistica.js +41 -41
- package/dist-es/table.css-mistica.js +11 -11
- package/dist-es/tabs.css-mistica.js +21 -21
- package/dist-es/tag.css-mistica.js +2 -2
- package/dist-es/text-field-base.css-mistica.js +17 -17
- package/dist-es/text-field-components.css-mistica.js +4 -4
- package/dist-es/text-link.css-mistica.js +9 -9
- package/dist-es/text.css-mistica.js +8 -8
- package/dist-es/theme-context.css-mistica.js +2 -2
- package/dist-es/timeline.css-mistica.js +11 -11
- package/dist-es/timer.css-mistica.js +7 -7
- package/dist-es/tooltip.css-mistica.js +3 -3
- package/dist-es/touchable.css-mistica.js +2 -2
- package/dist-es/utils/aspect-ratio-support.css-mistica.js +4 -4
- package/dist-es/video.css-mistica.js +2 -2
- package/dist-es/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +2 -2
- package/doc/llms.md +36 -1
- package/package.json +1 -1
package/dist/card-internal.js
CHANGED
|
@@ -11,19 +11,19 @@ function _export(target, all) {
|
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
13
|
get CardActionIconButton () {
|
|
14
|
-
return
|
|
14
|
+
return ni;
|
|
15
15
|
},
|
|
16
16
|
get CardActionSpinner () {
|
|
17
|
-
return
|
|
17
|
+
return ti;
|
|
18
18
|
},
|
|
19
19
|
get InternalCard () {
|
|
20
|
-
return
|
|
20
|
+
return ji;
|
|
21
21
|
},
|
|
22
22
|
get TopActions () {
|
|
23
|
-
return
|
|
23
|
+
return Qe;
|
|
24
24
|
},
|
|
25
25
|
get useVideoWithControls () {
|
|
26
|
-
return
|
|
26
|
+
return ri;
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
const _jsxruntime = require("react/jsx-runtime");
|
|
@@ -181,25 +181,25 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
181
181
|
}
|
|
182
182
|
return target;
|
|
183
183
|
}
|
|
184
|
-
const
|
|
185
|
-
let { type: e, children: o, width: a, height: r, aspectRatio:
|
|
186
|
-
const
|
|
187
|
-
[_cardinternalcssmistica.vars.aspectRatio]: String(
|
|
188
|
-
}) : {}, k =
|
|
184
|
+
const Qt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
|
|
185
|
+
let { type: e, children: o, width: a, height: r, aspectRatio: d, "aria-label": u, "aria-labelledby": h, "aria-description": l, "aria-describedby": c, dataAttributes: n, backgroundColor: v, variant: m } = param;
|
|
186
|
+
const b = a && r ? void 0 : (0, _aspectratiosupport.aspectRatioToNumber)(d), x = b ? (0, _css.applyCssVars)({
|
|
187
|
+
[_cardinternalcssmistica.vars.aspectRatio]: String(b)
|
|
188
|
+
}) : {}, k = v ? "none" : void 0, s = e === "naked";
|
|
189
189
|
return(// eslint-disable-next-line jsx-a11y/role-supports-aria-props
|
|
190
190
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("section", _object_spread_props(_object_spread({
|
|
191
191
|
ref: p,
|
|
192
|
-
"aria-label":
|
|
193
|
-
"aria-labelledby":
|
|
194
|
-
"aria-description":
|
|
195
|
-
"aria-describedby":
|
|
192
|
+
"aria-label": u,
|
|
193
|
+
"aria-labelledby": h,
|
|
194
|
+
"aria-description": l,
|
|
195
|
+
"aria-describedby": c,
|
|
196
196
|
className: (0, _classnames.default)(_cardinternalcssmistica.container)
|
|
197
|
-
}, (0, _dom.getPrefixedDataAttributes)(
|
|
197
|
+
}, (0, _dom.getPrefixedDataAttributes)(n, "InternalCard")), {
|
|
198
198
|
style: _object_spread({
|
|
199
199
|
width: a || "100%",
|
|
200
200
|
height: r || "100%",
|
|
201
201
|
position: "relative"
|
|
202
|
-
},
|
|
202
|
+
}, x),
|
|
203
203
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
204
204
|
style: {
|
|
205
205
|
display: "flex",
|
|
@@ -211,17 +211,17 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
|
|
|
211
211
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.InternalBoxed, {
|
|
212
212
|
width: "100%",
|
|
213
213
|
height: "100%",
|
|
214
|
-
variant:
|
|
214
|
+
variant: m,
|
|
215
215
|
className: (0, _classnames.default)(_cardinternalcssmistica.boxed),
|
|
216
|
-
background:
|
|
217
|
-
borderRadius:
|
|
218
|
-
border:
|
|
216
|
+
background: s ? "transparent" : v,
|
|
217
|
+
borderRadius: s ? "none" : _skincontractcssmistica.vars.borderRadii.container,
|
|
218
|
+
border: s ? "none" : k,
|
|
219
219
|
overflow: "visible",
|
|
220
220
|
children: o
|
|
221
221
|
})
|
|
222
222
|
})
|
|
223
223
|
})));
|
|
224
|
-
}),
|
|
224
|
+
}), de = (param)=>{
|
|
225
225
|
let { minHeight: e } = param;
|
|
226
226
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
227
227
|
style: {
|
|
@@ -230,10 +230,10 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
|
|
|
230
230
|
minHeight: e
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
|
-
},
|
|
233
|
+
}, se = (param)=>{
|
|
234
234
|
let { size: e, absolute: o, asset: a, type: r } = param;
|
|
235
235
|
if (!a) return null;
|
|
236
|
-
const
|
|
236
|
+
const d = /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
237
237
|
"data-testid": "asset",
|
|
238
238
|
"aria-hidden": !0,
|
|
239
239
|
style: (0, _css.applyCssVars)({
|
|
@@ -248,14 +248,14 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
|
|
|
248
248
|
left: 0
|
|
249
249
|
},
|
|
250
250
|
className: (0, _classnames.default)(_cardinternalcssmistica.containerPaddingXVariants[e], _cardinternalcssmistica.containerPaddingTopVariants[e]),
|
|
251
|
-
children:
|
|
251
|
+
children: d
|
|
252
252
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
253
253
|
className: (0, _classnames.default)({
|
|
254
254
|
[_cardinternalcssmistica.containerPaddingXVariants[e]]: r !== "naked"
|
|
255
255
|
}),
|
|
256
|
-
children:
|
|
256
|
+
children: d
|
|
257
257
|
});
|
|
258
|
-
},
|
|
258
|
+
}, Ut = (param)=>{
|
|
259
259
|
let { video: e, src: o, srcSet: a, backgroundVariant: r } = param;
|
|
260
260
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
|
|
261
261
|
variant: r,
|
|
@@ -278,7 +278,7 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
|
|
|
278
278
|
})
|
|
279
279
|
})
|
|
280
280
|
});
|
|
281
|
-
},
|
|
281
|
+
}, Zt = {
|
|
282
282
|
loading: {
|
|
283
283
|
play: "playing",
|
|
284
284
|
pause: "paused",
|
|
@@ -298,51 +298,51 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
|
|
|
298
298
|
error: {
|
|
299
299
|
reset: "loading"
|
|
300
300
|
}
|
|
301
|
-
},
|
|
301
|
+
}, ei = (e, o)=>Zt[e][o] || e, ti = (param)=>{
|
|
302
302
|
let { color: e } = param;
|
|
303
303
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_spinner.default, {
|
|
304
304
|
color: e,
|
|
305
305
|
size: 16,
|
|
306
306
|
delay: "0"
|
|
307
307
|
});
|
|
308
|
-
},
|
|
308
|
+
}, ii = (param)=>{
|
|
309
309
|
let { color: e } = param;
|
|
310
310
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconpausefilled.default, {
|
|
311
311
|
color: e,
|
|
312
312
|
size: 12
|
|
313
313
|
});
|
|
314
|
-
},
|
|
314
|
+
}, oi = (param)=>{
|
|
315
315
|
let { color: e } = param;
|
|
316
316
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconplayfilled.default, {
|
|
317
317
|
color: e,
|
|
318
318
|
size: 12
|
|
319
319
|
});
|
|
320
|
-
},
|
|
321
|
-
let { src: e, poster: o, ref: a, autoHeight: r, loop:
|
|
322
|
-
const { texts:
|
|
320
|
+
}, ri = (param)=>{
|
|
321
|
+
let { src: e, poster: o, ref: a, autoHeight: r, loop: d, autoPlay: u, dataAttributes: h } = param;
|
|
322
|
+
const { texts: l, t: c } = (0, _hooks.useTheme)(), n = _react.useRef(null), v = _react.useRef(!1), [m, p] = _react.useReducer(ei, process.env.NODE_ENV === "test" ? "playing" : "loading");
|
|
323
323
|
_react.useEffect(()=>{
|
|
324
|
-
var
|
|
325
|
-
return
|
|
324
|
+
var _n_current;
|
|
325
|
+
return v.current = !1, (_n_current = n.current) === null || _n_current === void 0 ? void 0 : _n_current.load(), ()=>{
|
|
326
326
|
p("reset");
|
|
327
327
|
};
|
|
328
328
|
}, [
|
|
329
329
|
e
|
|
330
330
|
]);
|
|
331
|
-
const
|
|
331
|
+
const b = _react.useMemo(()=>{
|
|
332
332
|
if (e === void 0) return;
|
|
333
|
-
const
|
|
334
|
-
|
|
333
|
+
const S = ()=>{
|
|
334
|
+
u === !1 && !v.current && (v.current = !0, p("pause"));
|
|
335
335
|
};
|
|
336
336
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_video.default, {
|
|
337
|
-
ref: (0, _common.combineRefs)(
|
|
337
|
+
ref: (0, _common.combineRefs)(n, a),
|
|
338
338
|
src: e,
|
|
339
339
|
poster: o,
|
|
340
340
|
width: "100%",
|
|
341
341
|
height: r ? void 0 : "100%",
|
|
342
|
-
loop:
|
|
343
|
-
autoPlay:
|
|
344
|
-
dataAttributes:
|
|
345
|
-
onLoad:
|
|
342
|
+
loop: d,
|
|
343
|
+
autoPlay: u,
|
|
344
|
+
dataAttributes: h,
|
|
345
|
+
onLoad: S,
|
|
346
346
|
onError: ()=>p("fail"),
|
|
347
347
|
onPause: ()=>p("pause"),
|
|
348
348
|
onPlay: ()=>p("play")
|
|
@@ -352,34 +352,34 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
|
|
|
352
352
|
e,
|
|
353
353
|
o,
|
|
354
354
|
r,
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
]),
|
|
359
|
-
const
|
|
360
|
-
|
|
355
|
+
d,
|
|
356
|
+
u,
|
|
357
|
+
h
|
|
358
|
+
]), x = ()=>{
|
|
359
|
+
const S = n.current;
|
|
360
|
+
S && (m === "playing" ? S.pause() : S.play().then(()=>p("play"), ()=>{}));
|
|
361
361
|
};
|
|
362
|
-
if (
|
|
363
|
-
video:
|
|
362
|
+
if (m === "error") return {
|
|
363
|
+
video: b
|
|
364
364
|
};
|
|
365
|
-
const k =
|
|
365
|
+
const k = m === "loading", s = b ? {
|
|
366
366
|
uncheckedProps: {
|
|
367
|
-
Icon: k && !(0, _platform.isRunningAcceptanceTest)() ?
|
|
368
|
-
label: k ? "" :
|
|
367
|
+
Icon: k && !(0, _platform.isRunningAcceptanceTest)() ? ti : ii,
|
|
368
|
+
label: k ? "" : l.pauseIconButtonLabel || c(_texttokens.pauseIconButtonLabel)
|
|
369
369
|
},
|
|
370
370
|
checkedProps: {
|
|
371
|
-
Icon:
|
|
372
|
-
label:
|
|
371
|
+
Icon: oi,
|
|
372
|
+
label: l.playIconButtonLabel || c(_texttokens.playIconButtonLabel)
|
|
373
373
|
},
|
|
374
|
-
onChange:
|
|
374
|
+
onChange: x,
|
|
375
375
|
disabled: (0, _platform.isRunningAcceptanceTest)() ? !1 : k,
|
|
376
|
-
checked:
|
|
376
|
+
checked: m === "paused"
|
|
377
377
|
} : void 0;
|
|
378
378
|
return {
|
|
379
|
-
video:
|
|
380
|
-
videoAction:
|
|
379
|
+
video: b,
|
|
380
|
+
videoAction: s
|
|
381
381
|
};
|
|
382
|
-
},
|
|
382
|
+
}, ai = (param)=>{
|
|
383
383
|
let { size: e, buttonPrimary: o, buttonSecondary: a, buttonLink: r } = param;
|
|
384
384
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
385
385
|
className: _cardinternalcssmistica.actionsContainerVariants[e],
|
|
@@ -389,7 +389,7 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
|
|
|
389
389
|
link: r
|
|
390
390
|
})
|
|
391
391
|
});
|
|
392
|
-
},
|
|
392
|
+
}, ni = (e)=>{
|
|
393
393
|
const o = (0, _themevariantcontext.useThemeVariant)();
|
|
394
394
|
if (e.Icon) return /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconbutton.IconButton, _object_spread_props(_object_spread({}, e), {
|
|
395
395
|
small: !0,
|
|
@@ -397,13 +397,13 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
|
|
|
397
397
|
type: "neutral",
|
|
398
398
|
backgroundType: "transparent"
|
|
399
399
|
}));
|
|
400
|
-
const { checkedProps: a, uncheckedProps: r } = e,
|
|
400
|
+
const { checkedProps: a, uncheckedProps: r } = e, d = _object_without_properties(e, [
|
|
401
401
|
"checkedProps",
|
|
402
402
|
"uncheckedProps"
|
|
403
403
|
]);
|
|
404
404
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconbutton.ToggleIconButton, _object_spread_props(_object_spread({
|
|
405
405
|
small: !0
|
|
406
|
-
},
|
|
406
|
+
}, d), {
|
|
407
407
|
checkedProps: _object_spread_props(_object_spread({}, a), {
|
|
408
408
|
"aria-label": e.checkedProps.label,
|
|
409
409
|
type: o === "media" ? "neutral" : "brand",
|
|
@@ -415,42 +415,42 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
|
|
|
415
415
|
backgroundType: "transparent"
|
|
416
416
|
})
|
|
417
417
|
}));
|
|
418
|
-
},
|
|
419
|
-
let { testid: e = "topActions", onClose: o, closeButtonLabel: a, actions: r, variant:
|
|
420
|
-
const { texts:
|
|
418
|
+
}, Qe = (param)=>{
|
|
419
|
+
let { testid: e = "topActions", onClose: o, closeButtonLabel: a, actions: r, variant: d, containerStyles: u = {} } = param;
|
|
420
|
+
const { texts: h, t: l } = (0, _hooks.useTheme)(), c = r ? [
|
|
421
421
|
...r
|
|
422
422
|
] : [];
|
|
423
|
-
return o &&
|
|
424
|
-
label: a ||
|
|
423
|
+
return o && c.push({
|
|
424
|
+
label: a || h.closeButtonLabel || l(_texttokens.closeButtonLabel),
|
|
425
425
|
onPress: o,
|
|
426
426
|
Icon: _iconcloseregular.default
|
|
427
|
-
}),
|
|
428
|
-
variant:
|
|
427
|
+
}), c.length === 0 ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {}) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
|
|
428
|
+
variant: d,
|
|
429
429
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
430
430
|
className: _cardinternalcssmistica.topActionsContainer,
|
|
431
|
-
style:
|
|
431
|
+
style: u,
|
|
432
432
|
"data-testid": e,
|
|
433
|
-
children:
|
|
433
|
+
children: c.map((n, v)=>"Icon" in n || "checkedProps" in n ? /* @__PURE__ */ (0, _jsxruntime.jsx)(ni, _object_spread({}, n), v) : n)
|
|
434
434
|
})
|
|
435
435
|
});
|
|
436
|
-
},
|
|
437
|
-
let { type: e, size: o, asset: a, imageSrc: r, imageSrcSet:
|
|
438
|
-
const p = (0, _aspectratiosupport.aspectRatioToNumber)(
|
|
436
|
+
}, di = (param)=>{
|
|
437
|
+
let { type: e, size: o, asset: a, imageSrc: r, imageSrcSet: d, imageFit: u, imageAlt: h = "", video: l, mediaAspectRatio: c, mediaPosition: n, mediaWidth: v, circledImage: m } = param;
|
|
438
|
+
const p = (0, _aspectratiosupport.aspectRatioToNumber)(c), b = e === "naked" && m ? {
|
|
439
439
|
circular: !0
|
|
440
440
|
} : {
|
|
441
441
|
width: "100%",
|
|
442
|
-
height:
|
|
442
|
+
height: n === "top" && p === 0 ? void 0 : "100%"
|
|
443
443
|
}, k = (()=>{
|
|
444
|
-
if (
|
|
445
|
-
if (r !== void 0 ||
|
|
446
|
-
const
|
|
444
|
+
if (l) return l;
|
|
445
|
+
if (r !== void 0 || d !== void 0) {
|
|
446
|
+
const S = n === "left" || n === "right", D = {
|
|
447
447
|
fit: {
|
|
448
448
|
objectFit: "contain",
|
|
449
|
-
objectPosition: `bottom ${
|
|
449
|
+
objectPosition: `bottom ${n}`
|
|
450
450
|
},
|
|
451
451
|
fill: {
|
|
452
452
|
objectFit: "cover",
|
|
453
|
-
objectPosition:
|
|
453
|
+
objectPosition: n
|
|
454
454
|
},
|
|
455
455
|
"fill-center": {
|
|
456
456
|
objectFit: "cover",
|
|
@@ -459,28 +459,28 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
|
|
|
459
459
|
};
|
|
460
460
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_image.default, _object_spread(_object_spread_props(_object_spread({
|
|
461
461
|
src: r || "",
|
|
462
|
-
srcSet:
|
|
463
|
-
},
|
|
462
|
+
srcSet: d
|
|
463
|
+
}, b), {
|
|
464
464
|
dataAttributes: {
|
|
465
465
|
testid: "image"
|
|
466
466
|
},
|
|
467
|
-
alt:
|
|
468
|
-
}),
|
|
467
|
+
alt: h
|
|
468
|
+
}), S ? D[u] : {}));
|
|
469
469
|
}
|
|
470
470
|
return null;
|
|
471
471
|
})();
|
|
472
472
|
if (!k) return /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {});
|
|
473
|
-
const
|
|
473
|
+
const s = _object_spread({}, e === "naked" ? void 0 : (0, _css.applyCssVars)({
|
|
474
474
|
[_imagecssmistica.vars.mediaBorderRadius]: "0px"
|
|
475
475
|
}));
|
|
476
|
-
return
|
|
476
|
+
return n === "top" ? /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
477
477
|
children: [
|
|
478
478
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_aspectratiosupport.AspectRatioContainer, {
|
|
479
479
|
aspectRatio: p,
|
|
480
|
-
style:
|
|
480
|
+
style: s,
|
|
481
481
|
children: k
|
|
482
482
|
}),
|
|
483
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
483
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(se, {
|
|
484
484
|
absolute: !0,
|
|
485
485
|
size: o,
|
|
486
486
|
asset: a,
|
|
@@ -490,8 +490,8 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
|
|
|
490
490
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
491
491
|
children: [
|
|
492
492
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
493
|
-
style: _object_spread_props(_object_spread({},
|
|
494
|
-
width:
|
|
493
|
+
style: _object_spread_props(_object_spread({}, s), {
|
|
494
|
+
width: v,
|
|
495
495
|
flexShrink: 0,
|
|
496
496
|
flexGrow: 0,
|
|
497
497
|
height: "100%",
|
|
@@ -499,7 +499,7 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
|
|
|
499
499
|
}),
|
|
500
500
|
children: k
|
|
501
501
|
}),
|
|
502
|
-
|
|
502
|
+
n !== "right" && /* @__PURE__ */ (0, _jsxruntime.jsx)(se, {
|
|
503
503
|
absolute: !0,
|
|
504
504
|
size: o,
|
|
505
505
|
asset: a,
|
|
@@ -507,77 +507,77 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
|
|
|
507
507
|
})
|
|
508
508
|
]
|
|
509
509
|
});
|
|
510
|
-
},
|
|
511
|
-
let { type: e, size: o, variant: a, footerSlot: r, buttonPrimary:
|
|
512
|
-
const
|
|
510
|
+
}, li = (param)=>{
|
|
511
|
+
let { type: e, size: o, variant: a, footerSlot: r, buttonPrimary: d, buttonSecondary: u, buttonLink: h, hasBackgroundImageOrVideo: l, footerVariant: c, footerBackgroundColor: n, footerDivider: v, externalVariant: m, overlayColor: p } = param;
|
|
512
|
+
const b = !!(d || u || h), x = !!(d && u && h), k = {
|
|
513
513
|
default: _skincontractcssmistica.vars.colors.divider,
|
|
514
514
|
brand: _skincontractcssmistica.vars.colors.dividerBrand,
|
|
515
515
|
negative: _skincontractcssmistica.vars.colors.dividerNegative,
|
|
516
516
|
media: _skincontractcssmistica.vars.colors.dividerBrand,
|
|
517
517
|
alternative: _skincontractcssmistica.vars.colors.divider
|
|
518
|
-
}[a],
|
|
518
|
+
}[a], s = e === "naked", S = n || (c && c !== a ? c === "default" ? _skincontractcssmistica.vars.colors.backgroundContainer : m === "brand" || m === "media" || m === "negative" ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverBrand : _skincontractcssmistica.vars.colors.backgroundContainerBrand : void 0), D = v !== null && v !== void 0 ? v : !S;
|
|
519
519
|
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_themevariantcontext.ThemeVariant, {
|
|
520
|
-
variant:
|
|
520
|
+
variant: c || a,
|
|
521
521
|
children: [
|
|
522
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
522
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(de, {}),
|
|
523
523
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
524
524
|
style: {
|
|
525
|
-
background:
|
|
525
|
+
background: S || (l ? p : void 0),
|
|
526
526
|
position: "relative",
|
|
527
|
-
backdropFilter:
|
|
528
|
-
borderBottomLeftRadius:
|
|
529
|
-
borderBottomRightRadius:
|
|
527
|
+
backdropFilter: l ? "blur(12px)" : void 0,
|
|
528
|
+
borderBottomLeftRadius: s ? 0 : _skincontractcssmistica.vars.borderRadii.container,
|
|
529
|
+
borderBottomRightRadius: s ? 0 : _skincontractcssmistica.vars.borderRadii.container
|
|
530
530
|
},
|
|
531
531
|
children: [
|
|
532
532
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
533
533
|
style: {
|
|
534
|
-
borderTop:
|
|
535
|
-
marginRight:
|
|
534
|
+
borderTop: D ? `1px solid ${k}` : void 0,
|
|
535
|
+
marginRight: s ? 16 : 0
|
|
536
536
|
}
|
|
537
537
|
}),
|
|
538
538
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
539
539
|
"data-testid": "footer",
|
|
540
540
|
className: (0, _classnames.default)({
|
|
541
|
-
[_cardinternalcssmistica.containerPaddingXVariants[o]]: !
|
|
542
|
-
[_cardinternalcssmistica.containerPaddingBottomVariants[o]]: !
|
|
541
|
+
[_cardinternalcssmistica.containerPaddingXVariants[o]]: !s,
|
|
542
|
+
[_cardinternalcssmistica.containerPaddingBottomVariants[o]]: !s
|
|
543
543
|
}),
|
|
544
544
|
style: {
|
|
545
545
|
paddingTop: 16,
|
|
546
|
-
paddingBottom:
|
|
547
|
-
paddingRight:
|
|
546
|
+
paddingBottom: s ? 0 : void 0,
|
|
547
|
+
paddingRight: s ? 16 : void 0
|
|
548
548
|
},
|
|
549
549
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
550
550
|
space: 16,
|
|
551
551
|
children: [
|
|
552
552
|
r,
|
|
553
|
-
|
|
553
|
+
b && // @FIXME: We should use the ButtonGroup component
|
|
554
554
|
// https://jira.tid.es/browse/WEB-2278
|
|
555
555
|
// https://www.figma.com/design/koROdh3HpEPG2O8jG52Emh/%F0%9F%94%B8-Buttons-Specs?node-id=4337-1606&t=HtImvar8DMbivDqC-0
|
|
556
|
-
(
|
|
556
|
+
(x ? /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
557
557
|
space: 16,
|
|
558
558
|
children: [
|
|
559
559
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)(_inline.default, {
|
|
560
560
|
space: "between",
|
|
561
561
|
alignItems: "center",
|
|
562
562
|
children: [
|
|
563
|
-
|
|
564
|
-
|
|
563
|
+
d,
|
|
564
|
+
u
|
|
565
565
|
]
|
|
566
566
|
}),
|
|
567
567
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
568
568
|
style: {
|
|
569
569
|
marginLeft: -12
|
|
570
570
|
},
|
|
571
|
-
children:
|
|
571
|
+
children: h
|
|
572
572
|
})
|
|
573
573
|
]
|
|
574
574
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsxs)(_inline.default, {
|
|
575
575
|
space: "between",
|
|
576
576
|
alignItems: "center",
|
|
577
577
|
children: [
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
578
|
+
d,
|
|
579
|
+
u,
|
|
580
|
+
h
|
|
581
581
|
]
|
|
582
582
|
}))
|
|
583
583
|
]
|
|
@@ -587,200 +587,206 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
|
|
|
587
587
|
})
|
|
588
588
|
]
|
|
589
589
|
});
|
|
590
|
-
},
|
|
591
|
-
let { type: e, hasCustomBackground: o, headlineRef: a,
|
|
592
|
-
const { textPresets:
|
|
590
|
+
}, si = (param)=>{
|
|
591
|
+
let { type: e, hasCustomBackground: o, headlineRef: a, touchableRef: r, touchableProps: d, size: u, variant: h, headline: l, title: c, titleAs: n = "h3", titleLinesMax: v, pretitle: m, pretitleAs: p, pretitleLinesMax: b, subtitle: x, subtitleLinesMax: k, description: s, descriptionLinesMax: S, withTextShadow: D } = param;
|
|
592
|
+
const { textPresets: i, colorValues: g } = (0, _hooks.useTheme)(), ue = (0, _themevariantcontext.useThemeVariant)(), H = typeof c == "string" ? {
|
|
593
|
+
text: c
|
|
594
|
+
} : c, T = typeof m == "string" ? {
|
|
595
|
+
text: m
|
|
596
|
+
} : m, L = {
|
|
593
597
|
hyphens: "auto"
|
|
594
|
-
},
|
|
598
|
+
}, X = {
|
|
595
599
|
default: {
|
|
596
|
-
pretitle:
|
|
597
|
-
title:
|
|
598
|
-
subtitle:
|
|
599
|
-
description:
|
|
600
|
+
pretitle: g.textPrimary,
|
|
601
|
+
title: g.textPrimary,
|
|
602
|
+
subtitle: g.textPrimary,
|
|
603
|
+
description: g.textSecondary
|
|
600
604
|
},
|
|
601
605
|
brand: {
|
|
602
|
-
pretitle:
|
|
603
|
-
title:
|
|
604
|
-
subtitle:
|
|
605
|
-
description:
|
|
606
|
+
pretitle: g.textPrimaryBrand,
|
|
607
|
+
title: g.textPrimaryBrand,
|
|
608
|
+
subtitle: g.textPrimaryBrand,
|
|
609
|
+
description: g.textSecondaryBrand
|
|
606
610
|
},
|
|
607
611
|
negative: {
|
|
608
|
-
pretitle:
|
|
609
|
-
title:
|
|
610
|
-
subtitle:
|
|
611
|
-
description:
|
|
612
|
+
pretitle: g.textPrimaryNegative,
|
|
613
|
+
title: g.textPrimaryNegative,
|
|
614
|
+
subtitle: g.textPrimaryNegative,
|
|
615
|
+
description: g.textSecondaryNegative
|
|
612
616
|
},
|
|
613
617
|
media: {
|
|
614
|
-
pretitle:
|
|
615
|
-
title:
|
|
616
|
-
subtitle:
|
|
617
|
-
description: e === "cover" && o ?
|
|
618
|
+
pretitle: g.textPrimaryMedia,
|
|
619
|
+
title: g.textPrimaryMedia,
|
|
620
|
+
subtitle: g.textPrimaryMedia,
|
|
621
|
+
description: e === "cover" && o ? g.textPrimaryMedia : g.textSecondaryMedia
|
|
618
622
|
}
|
|
619
|
-
},
|
|
623
|
+
}, Z = {
|
|
620
624
|
snap: {
|
|
621
625
|
pretitle: {
|
|
622
|
-
mobileSize:
|
|
623
|
-
desktopSize:
|
|
624
|
-
mobileLineHeight:
|
|
625
|
-
desktopLineHeight:
|
|
626
|
+
mobileSize: i.cardPretitleSnap.size.mobile,
|
|
627
|
+
desktopSize: i.cardPretitleSnap.size.desktop,
|
|
628
|
+
mobileLineHeight: i.cardPretitleSnap.lineHeight.mobile,
|
|
629
|
+
desktopLineHeight: i.cardPretitleSnap.lineHeight.desktop,
|
|
626
630
|
weight: "regular"
|
|
627
631
|
},
|
|
628
632
|
title: {
|
|
629
|
-
mobileSize:
|
|
630
|
-
desktopSize:
|
|
631
|
-
mobileLineHeight:
|
|
632
|
-
desktopLineHeight:
|
|
633
|
-
weight:
|
|
633
|
+
mobileSize: i.cardTitleSnap.size.mobile,
|
|
634
|
+
desktopSize: i.cardTitleSnap.size.desktop,
|
|
635
|
+
mobileLineHeight: i.cardTitleSnap.lineHeight.mobile,
|
|
636
|
+
desktopLineHeight: i.cardTitleSnap.lineHeight.desktop,
|
|
637
|
+
weight: i.cardTitle.weight
|
|
634
638
|
},
|
|
635
639
|
subtitle: {
|
|
636
|
-
mobileSize:
|
|
637
|
-
desktopSize:
|
|
638
|
-
mobileLineHeight:
|
|
639
|
-
desktopLineHeight:
|
|
640
|
+
mobileSize: i.cardSubtitleSnap.size.mobile,
|
|
641
|
+
desktopSize: i.cardSubtitleSnap.size.desktop,
|
|
642
|
+
mobileLineHeight: i.cardSubtitleSnap.lineHeight.mobile,
|
|
643
|
+
desktopLineHeight: i.cardSubtitleSnap.lineHeight.desktop,
|
|
640
644
|
weight: "regular"
|
|
641
645
|
},
|
|
642
646
|
description: {
|
|
643
|
-
mobileSize:
|
|
644
|
-
desktopSize:
|
|
645
|
-
mobileLineHeight:
|
|
646
|
-
desktopLineHeight:
|
|
647
|
+
mobileSize: i.cardDescriptionSnap.size.mobile,
|
|
648
|
+
desktopSize: i.cardDescriptionSnap.size.desktop,
|
|
649
|
+
mobileLineHeight: i.cardDescriptionSnap.lineHeight.mobile,
|
|
650
|
+
desktopLineHeight: i.cardDescriptionSnap.lineHeight.desktop,
|
|
647
651
|
weight: "regular"
|
|
648
652
|
}
|
|
649
653
|
},
|
|
650
654
|
default: {
|
|
651
655
|
pretitle: {
|
|
652
|
-
mobileSize:
|
|
653
|
-
desktopSize:
|
|
654
|
-
mobileLineHeight:
|
|
655
|
-
desktopLineHeight:
|
|
656
|
+
mobileSize: i.cardPretitleDefault.size.mobile,
|
|
657
|
+
desktopSize: i.cardPretitleDefault.size.desktop,
|
|
658
|
+
mobileLineHeight: i.cardPretitleDefault.lineHeight.mobile,
|
|
659
|
+
desktopLineHeight: i.cardPretitleDefault.lineHeight.desktop,
|
|
656
660
|
weight: "regular"
|
|
657
661
|
},
|
|
658
662
|
title: {
|
|
659
|
-
mobileSize:
|
|
660
|
-
desktopSize:
|
|
661
|
-
mobileLineHeight:
|
|
662
|
-
desktopLineHeight:
|
|
663
|
-
weight:
|
|
663
|
+
mobileSize: i.cardTitleDefault.size.mobile,
|
|
664
|
+
desktopSize: i.cardTitleDefault.size.desktop,
|
|
665
|
+
mobileLineHeight: i.cardTitleDefault.lineHeight.mobile,
|
|
666
|
+
desktopLineHeight: i.cardTitleDefault.lineHeight.desktop,
|
|
667
|
+
weight: i.cardTitle.weight
|
|
664
668
|
},
|
|
665
669
|
subtitle: {
|
|
666
|
-
mobileSize:
|
|
667
|
-
desktopSize:
|
|
668
|
-
mobileLineHeight:
|
|
669
|
-
desktopLineHeight:
|
|
670
|
+
mobileSize: i.cardSubtitleDefault.size.mobile,
|
|
671
|
+
desktopSize: i.cardSubtitleDefault.size.desktop,
|
|
672
|
+
mobileLineHeight: i.cardSubtitleDefault.lineHeight.mobile,
|
|
673
|
+
desktopLineHeight: i.cardSubtitleDefault.lineHeight.desktop,
|
|
670
674
|
weight: "regular"
|
|
671
675
|
},
|
|
672
676
|
description: {
|
|
673
|
-
mobileSize:
|
|
674
|
-
desktopSize:
|
|
675
|
-
mobileLineHeight:
|
|
676
|
-
desktopLineHeight:
|
|
677
|
+
mobileSize: i.cardDescriptionDefault.size.mobile,
|
|
678
|
+
desktopSize: i.cardDescriptionDefault.size.desktop,
|
|
679
|
+
mobileLineHeight: i.cardDescriptionDefault.lineHeight.mobile,
|
|
680
|
+
desktopLineHeight: i.cardDescriptionDefault.lineHeight.desktop,
|
|
677
681
|
weight: "regular"
|
|
678
682
|
}
|
|
679
683
|
},
|
|
680
684
|
display: {
|
|
681
685
|
pretitle: {
|
|
682
|
-
mobileSize:
|
|
683
|
-
desktopSize:
|
|
684
|
-
mobileLineHeight:
|
|
685
|
-
desktopLineHeight:
|
|
686
|
+
mobileSize: i.text2.size.mobile,
|
|
687
|
+
desktopSize: i.text2.size.desktop,
|
|
688
|
+
mobileLineHeight: i.text2.lineHeight.mobile,
|
|
689
|
+
desktopLineHeight: i.text2.lineHeight.desktop,
|
|
686
690
|
weight: "regular"
|
|
687
691
|
},
|
|
688
692
|
title: {
|
|
689
|
-
mobileSize:
|
|
690
|
-
desktopSize:
|
|
691
|
-
mobileLineHeight:
|
|
692
|
-
desktopLineHeight:
|
|
693
|
-
weight:
|
|
693
|
+
mobileSize: i.text6.size.mobile,
|
|
694
|
+
desktopSize: i.text6.size.desktop,
|
|
695
|
+
mobileLineHeight: i.text6.lineHeight.mobile,
|
|
696
|
+
desktopLineHeight: i.text6.lineHeight.desktop,
|
|
697
|
+
weight: i.text6.weight
|
|
694
698
|
},
|
|
695
699
|
subtitle: {
|
|
696
|
-
mobileSize:
|
|
697
|
-
desktopSize:
|
|
698
|
-
mobileLineHeight:
|
|
699
|
-
desktopLineHeight:
|
|
700
|
+
mobileSize: i.text2.size.mobile,
|
|
701
|
+
desktopSize: i.text2.size.desktop,
|
|
702
|
+
mobileLineHeight: i.text2.lineHeight.mobile,
|
|
703
|
+
desktopLineHeight: i.text2.lineHeight.desktop,
|
|
700
704
|
weight: "regular"
|
|
701
705
|
},
|
|
702
706
|
description: {
|
|
703
|
-
mobileSize:
|
|
704
|
-
desktopSize:
|
|
705
|
-
mobileLineHeight:
|
|
706
|
-
desktopLineHeight:
|
|
707
|
+
mobileSize: i.text3.size.mobile,
|
|
708
|
+
desktopSize: i.text3.size.desktop,
|
|
709
|
+
mobileLineHeight: i.text3.lineHeight.mobile,
|
|
710
|
+
desktopLineHeight: i.text3.lineHeight.desktop,
|
|
707
711
|
weight: "regular"
|
|
708
712
|
}
|
|
709
713
|
}
|
|
710
|
-
},
|
|
711
|
-
|
|
714
|
+
}, z = X[h] || X[ue] || X.default, P = Z[u] || Z.default, M = D ? "0 0 15px rgba(0, 0, 0, 0.4)" : void 0, V = d ? (H === null || H === void 0 ? void 0 : H.text) && (T === null || T === void 0 ? void 0 : T.text) ? (0, _headings.isBiggerHeading)(n, p) ? "title" : "pretitle" : (H === null || H === void 0 ? void 0 : H.text) ? "title" : (T === null || T === void 0 ? void 0 : T.text) ? "pretitle" : l ? "headline" : x ? "subtitle" : s ? "description" : null : null, I = (j, ee, te)=>j ? te ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({}, ee), {
|
|
715
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
716
|
+
maybe: !0
|
|
717
|
+
}, d), {
|
|
718
|
+
ref: r,
|
|
719
|
+
className: (0, _classnames.default)(_cardinternalcssmistica.touchable, _cardinternalcssmistica.stretchedLink),
|
|
720
|
+
children: j
|
|
721
|
+
}))
|
|
722
|
+
})) : /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({}, ee), {
|
|
723
|
+
children: j
|
|
724
|
+
})) : null, K = I(l && typeof l == "string" ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_tag.default, {
|
|
725
|
+
type: "promo",
|
|
726
|
+
children: l
|
|
727
|
+
}) : l, {
|
|
712
728
|
style: {
|
|
713
|
-
|
|
714
|
-
|
|
729
|
+
order: 1,
|
|
730
|
+
paddingBottom: 8
|
|
715
731
|
},
|
|
716
732
|
"data-testid": "headline",
|
|
717
|
-
ref: a
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
733
|
+
ref: a
|
|
734
|
+
}, V === "headline"), E = I((T === null || T === void 0 ? void 0 : T.text) && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, L, P.pretitle), {
|
|
735
|
+
as: p || "p",
|
|
736
|
+
truncate: b,
|
|
737
|
+
color: z.pretitle,
|
|
738
|
+
textShadow: M,
|
|
739
|
+
"aria-label": T === null || T === void 0 ? void 0 : T["aria-label"],
|
|
740
|
+
children: T.text
|
|
741
|
+
})), {
|
|
724
742
|
style: {
|
|
725
743
|
paddingBottom: 4,
|
|
726
744
|
order: 2
|
|
727
745
|
},
|
|
728
|
-
"data-testid": "pretitle"
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
}),
|
|
737
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
746
|
+
"data-testid": "pretitle"
|
|
747
|
+
}, V === "pretitle"), $ = I((H === null || H === void 0 ? void 0 : H.text) && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, L, P.title), {
|
|
748
|
+
as: n,
|
|
749
|
+
truncate: v,
|
|
750
|
+
color: z.title,
|
|
751
|
+
textShadow: M,
|
|
752
|
+
"aria-label": H === null || H === void 0 ? void 0 : H["aria-label"],
|
|
753
|
+
children: H.text
|
|
754
|
+
})), {
|
|
738
755
|
style: {
|
|
739
756
|
paddingBottom: 4,
|
|
740
757
|
order: 3
|
|
741
758
|
},
|
|
742
|
-
"data-testid": "title"
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
}), re = p && // Read order: 4. Visual order 4
|
|
751
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
759
|
+
"data-testid": "title"
|
|
760
|
+
}, V === "title"), W = I(x && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, L, P.subtitle), {
|
|
761
|
+
as: "p",
|
|
762
|
+
truncate: k,
|
|
763
|
+
color: z.subtitle,
|
|
764
|
+
textShadow: M,
|
|
765
|
+
children: x
|
|
766
|
+
})), {
|
|
752
767
|
style: {
|
|
753
768
|
paddingBottom: 0,
|
|
754
769
|
order: 4
|
|
755
770
|
},
|
|
756
|
-
"data-testid": "subtitle"
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
}), ae = f && // Read order: 5. Visual order 5
|
|
765
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
771
|
+
"data-testid": "subtitle"
|
|
772
|
+
}, V === "subtitle"), he = I(s && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, L, P.description), {
|
|
773
|
+
as: "p",
|
|
774
|
+
truncate: S,
|
|
775
|
+
color: z.description,
|
|
776
|
+
textShadow: M,
|
|
777
|
+
children: s
|
|
778
|
+
})), {
|
|
766
779
|
style: {
|
|
767
780
|
paddingTop: 4,
|
|
768
781
|
order: 5
|
|
769
782
|
},
|
|
770
|
-
"data-testid": "description"
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
color: P.description,
|
|
775
|
-
textShadow: V,
|
|
776
|
-
children: f
|
|
777
|
-
}))
|
|
778
|
-
}), [K, $] = u && (0, _headings.isBiggerHeading)(h, b) ? [
|
|
779
|
-
X,
|
|
780
|
-
T
|
|
783
|
+
"data-testid": "description"
|
|
784
|
+
}, V === "description"), [me, ge] = H && (0, _headings.isBiggerHeading)(n, p) ? [
|
|
785
|
+
$,
|
|
786
|
+
E
|
|
781
787
|
] : [
|
|
782
|
-
|
|
783
|
-
|
|
788
|
+
E,
|
|
789
|
+
$
|
|
784
790
|
];
|
|
785
791
|
return /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
786
792
|
style: {
|
|
@@ -788,18 +794,66 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
|
|
|
788
794
|
flexDirection: "column"
|
|
789
795
|
},
|
|
790
796
|
children: [
|
|
797
|
+
me,
|
|
791
798
|
K,
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
799
|
+
ge,
|
|
800
|
+
W,
|
|
801
|
+
he
|
|
802
|
+
]
|
|
803
|
+
});
|
|
804
|
+
}, ci = (param)=>{
|
|
805
|
+
let { children: e, isTouchable: o, touchableAriaLabel: a, ariaLabeledByProp: r, ariaDescriptionProp: d, ariaDescribedByProp: u, touchableProps: h, segregateTouchableContent: l, hasTouchableInContent: c, overlayClassname: n, contentStyle: v, contentRadiusStyle: m } = param;
|
|
806
|
+
const p = o && (!l || c), b = /**
|
|
807
|
+
* role="text" makes VoiceOver read the whole div as a single text block. This is needed
|
|
808
|
+
* for VoiceOver rectangle to cover the whole card when using aria-label in <a> elements,
|
|
809
|
+
* otherwise it only renders a small rectangle in the begining of the <a> element.
|
|
810
|
+
* This workaround is only needed for <a> not for <button> (ask safari developers why)
|
|
811
|
+
*/ /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
812
|
+
role: !l && (h.href || h.to) ? "text" : void 0,
|
|
813
|
+
className: _cardinternalcssmistica.touchableContent,
|
|
814
|
+
style: _object_spread({}, v, m),
|
|
815
|
+
children: [
|
|
816
|
+
p && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
817
|
+
className: n
|
|
818
|
+
}),
|
|
819
|
+
e
|
|
796
820
|
]
|
|
797
821
|
});
|
|
798
|
-
|
|
822
|
+
return o && l ? c ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
823
|
+
className: (0, _classnames.default)(_cardinternalcssmistica.touchable, _cardinternalcssmistica.touchableContainer),
|
|
824
|
+
children: b
|
|
825
|
+
}) : /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
826
|
+
style: {
|
|
827
|
+
position: "relative"
|
|
828
|
+
},
|
|
829
|
+
children: [
|
|
830
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
831
|
+
"aria-label": a,
|
|
832
|
+
maybe: !0
|
|
833
|
+
}, h), {
|
|
834
|
+
className: (0, _classnames.default)(_cardinternalcssmistica.touchable, _cardinternalcssmistica.touchableContainer, _cardinternalcssmistica.stretchedTouchable),
|
|
835
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
836
|
+
className: (0, _classnames.default)(n),
|
|
837
|
+
style: m
|
|
838
|
+
})
|
|
839
|
+
})),
|
|
840
|
+
b
|
|
841
|
+
]
|
|
842
|
+
}) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
843
|
+
maybe: !0,
|
|
844
|
+
"aria-label": o ? a : void 0,
|
|
845
|
+
"aria-labelledby": o ? r : void 0,
|
|
846
|
+
"aria-description": o ? d : void 0,
|
|
847
|
+
"aria-describedby": o ? u : void 0,
|
|
848
|
+
className: (0, _classnames.default)(_cardinternalcssmistica.touchable, _cardinternalcssmistica.touchableContainer)
|
|
849
|
+
}, h), {
|
|
850
|
+
children: b
|
|
851
|
+
}));
|
|
852
|
+
}, pi = [
|
|
799
853
|
_skincontractcssmistica.vars.colors.cardContentOverlay,
|
|
800
854
|
_skincontractcssmistica.vars.colors.cardFooterOverlay
|
|
801
|
-
],
|
|
802
|
-
var { type: e, size: o, backgroundColor: a, imageSrc: r, imageSrcSet:
|
|
855
|
+
], ui = /rgba\([^,]+,\s*[^,]+,\s*[^,]+,\s*([^)]+)\)/g, Ue = (e, o)=>e.replace(ui, (a, r)=>(0, _color.applyAlpha)(o, parseFloat(r))), ji = /*#__PURE__*/ _react.forwardRef((_param, at)=>{
|
|
856
|
+
var { type: e, size: o, backgroundColor: a, imageSrc: r, imageSrcSet: d, imageAlt: u = "", imageFit: h = "fill-center", videoSrc: l, videoRef: c, media: n, mediaAspectRatio: v = "auto", mediaPosition: m = "top", mediaWidth: p = 150, circledImage: b, asset: x, headline: k, title: s, titleAs: S = "h3", titleLinesMax: D, pretitle: i, pretitleAs: g, pretitleLinesMax: ue, subtitle: H, subtitleLinesMax: T, description: L, descriptionLinesMax: X, dataAttributes: Z, variant: z, width: P, height: M, aspectRatio: V, slot: I, slotAlignment: K = "content", buttonPrimary: E, buttonSecondary: $, buttonLink: W, showFooter: he, footerBackgroundColor: me, footerVariant: ge, footerSlot: j, footerDivider: ee, topActions: te, onClose: Ie, closeButtonLabel: tt, "aria-label": Ne, "aria-labelledby": be, "aria-description": De, "aria-describedby": Te, gradientOverlayColor: ie, videoLoop: it, videoAutoPlay: ot, videoDataAttributes: rt, segregateTouchableContent: fe = !1, touchableAriaLabel: Ve } = _param, Y = _object_without_properties(_param, [
|
|
803
857
|
"type",
|
|
804
858
|
"size",
|
|
805
859
|
"backgroundColor",
|
|
@@ -851,237 +905,239 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
|
|
|
851
905
|
"gradientOverlayColor",
|
|
852
906
|
"videoLoop",
|
|
853
907
|
"videoAutoPlay",
|
|
854
|
-
"videoDataAttributes"
|
|
908
|
+
"videoDataAttributes",
|
|
909
|
+
"segregateTouchableContent",
|
|
910
|
+
"touchableAriaLabel"
|
|
855
911
|
]);
|
|
856
|
-
const { text:
|
|
857
|
-
src:
|
|
912
|
+
const { text: Ae, ref: nt } = (0, _hooks.useInnerText)(), { text: Oe, ref: dt } = (0, _hooks.useInnerText)(), lt = _react.useRef(null), A = !!(Y.href || Y.to || Y.onPress), Fe = !!(fe && !Ve && (s || i || k || H || L)), ve = !!(E || $ || W), { colorValues: Pe } = (0, _hooks.useTheme)(), xe = e === "media" || e === "naked", st = xe && (r !== void 0 || d !== void 0), Me = xe && l !== void 0, Ee = st || Me, ke = xe && !!n && !Ee, w = Ee || ke, C = e === "naked", B = w ? m : "top", $e = e === "naked" && b ? 1 : v, ye = e === "cover" && (r !== void 0 || d !== void 0), oe = e === "cover" && l !== void 0, je = !!a || ye || oe, G = ye || oe, ct = Me || oe, { video: Ge, videoAction: Se } = ri({
|
|
913
|
+
src: ct ? l : void 0,
|
|
858
914
|
poster: r,
|
|
859
|
-
ref:
|
|
860
|
-
autoHeight: e === "cover" ||
|
|
861
|
-
loop:
|
|
862
|
-
autoPlay:
|
|
863
|
-
dataAttributes:
|
|
864
|
-
}),
|
|
865
|
-
l,
|
|
915
|
+
ref: c,
|
|
916
|
+
autoHeight: e === "cover" || B !== "top" ? !1 : (0, _aspectratiosupport.aspectRatioToNumber)($e) === 0,
|
|
917
|
+
loop: it,
|
|
918
|
+
autoPlay: ot,
|
|
919
|
+
dataAttributes: rt
|
|
920
|
+
}), q = (0, _themevariantcontext.useThemeVariant)(), pt = z ? (0, _themevariantcontext.normalizeVariant)(z) : q, O = z && (0, _themevariantcontext.normalizeVariant)(z) || (e === "cover" && je ? "media" : "default"), ut = O === "brand" ? _cardinternalcssmistica.touchableCardOverlayInverse : _cardinternalcssmistica.touchableCardOverlay, F = he && (ve || !!j) || ve && A, _e = !F && ve, re = ((te === null || te === void 0 ? void 0 : te.length) || 0) + (Ie ? 1 : 0), Xe = Se ? re + 1 : re, ht = x && !(w && B === "left"), mt = e !== "cover" && Xe > 0 && !ht && !k, J = e === "cover" || e === "data" && o === "display", _ = _skincontractcssmistica.vars.borderRadii.container, gt = ye || oe ? "transparent" : a || (O === "media" ? q === "brand" || q === "media" || q === "negative" ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverBrand : _skincontractcssmistica.vars.colors.backgroundBrand : O === "alternative" ? _skincontractcssmistica.vars.colors.backgroundAlternative : void 0), bt = Ve || Ne || (be ? void 0 : (s && (0, _headings.isBiggerHeading)(S, g) ? [
|
|
866
921
|
s,
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
922
|
+
u,
|
|
923
|
+
Oe,
|
|
924
|
+
i,
|
|
925
|
+
H,
|
|
870
926
|
L,
|
|
871
|
-
|
|
927
|
+
Ae
|
|
872
928
|
] : [
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
l,
|
|
929
|
+
i,
|
|
930
|
+
Oe,
|
|
876
931
|
s,
|
|
877
|
-
|
|
932
|
+
u,
|
|
933
|
+
H,
|
|
878
934
|
L,
|
|
879
|
-
|
|
880
|
-
]).filter(Boolean).join(" ")),
|
|
935
|
+
Ae
|
|
936
|
+
]).filter(Boolean).join(" ")), ft = ()=>ie === "transparent" ? [
|
|
881
937
|
"transparent",
|
|
882
938
|
"transparent"
|
|
883
|
-
] :
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
] :
|
|
887
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(
|
|
888
|
-
"aria-label":
|
|
889
|
-
"aria-labelledby":
|
|
890
|
-
"aria-description":
|
|
891
|
-
"aria-describedby":
|
|
939
|
+
] : ie ? [
|
|
940
|
+
Ue(Pe.cardContentOverlay, ie),
|
|
941
|
+
Ue(Pe.cardFooterOverlay, ie)
|
|
942
|
+
] : pi, [vt, xt] = ft();
|
|
943
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(Qt, {
|
|
944
|
+
"aria-label": A ? void 0 : Ne,
|
|
945
|
+
"aria-labelledby": A ? void 0 : be,
|
|
946
|
+
"aria-description": A ? void 0 : De,
|
|
947
|
+
"aria-describedby": A ? void 0 : Te,
|
|
892
948
|
type: e,
|
|
893
949
|
size: o,
|
|
894
|
-
dataAttributes:
|
|
895
|
-
ref:
|
|
896
|
-
variant:
|
|
897
|
-
width:
|
|
898
|
-
height:
|
|
899
|
-
aspectRatio:
|
|
900
|
-
backgroundColor:
|
|
950
|
+
dataAttributes: Z,
|
|
951
|
+
ref: at,
|
|
952
|
+
variant: O,
|
|
953
|
+
width: P,
|
|
954
|
+
height: M,
|
|
955
|
+
aspectRatio: V,
|
|
956
|
+
backgroundColor: gt,
|
|
901
957
|
children: [
|
|
902
|
-
|
|
903
|
-
video:
|
|
958
|
+
G && /* @__PURE__ */ (0, _jsxruntime.jsx)(Ut, {
|
|
959
|
+
video: Ge,
|
|
904
960
|
src: r,
|
|
905
|
-
srcSet:
|
|
906
|
-
backgroundVariant:
|
|
961
|
+
srcSet: d,
|
|
962
|
+
backgroundVariant: pt
|
|
907
963
|
}),
|
|
908
|
-
|
|
964
|
+
Se && // The video action is placed first in the card reading order, so it is placed outside the other topActions container
|
|
909
965
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
910
966
|
"data-testid": "videoAction",
|
|
911
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
967
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(Qe, {
|
|
912
968
|
testid: "videoAction",
|
|
913
969
|
variant: "media",
|
|
914
970
|
actions: [
|
|
915
|
-
|
|
971
|
+
Se
|
|
916
972
|
],
|
|
917
973
|
containerStyles: {
|
|
918
974
|
position: "absolute",
|
|
919
975
|
top: 16,
|
|
920
|
-
left:
|
|
921
|
-
right:
|
|
976
|
+
left: B === "left" ? typeof p == "number" ? `calc(${p}px - 48px)` : `calc(${p} - 48px)` : "auto",
|
|
977
|
+
right: B !== "left" ? re * 48 + 16 : "auto"
|
|
922
978
|
}
|
|
923
979
|
})
|
|
924
980
|
}),
|
|
925
|
-
/* @__PURE__ */ (0, _jsxruntime.
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
}
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
981
|
+
/* @__PURE__ */ (0, _jsxruntime.jsxs)(ci, {
|
|
982
|
+
isTouchable: A,
|
|
983
|
+
touchableAriaLabel: bt,
|
|
984
|
+
ariaLabeledByProp: be,
|
|
985
|
+
ariaDescriptionProp: De,
|
|
986
|
+
ariaDescribedByProp: Te,
|
|
987
|
+
touchableProps: Y,
|
|
988
|
+
segregateTouchableContent: fe,
|
|
989
|
+
hasTouchableInContent: Fe,
|
|
990
|
+
overlayClassname: ut,
|
|
991
|
+
contentStyle: {
|
|
992
|
+
flexDirection: B === "top" ? "column" : B === "left" ? "row" : "row-reverse"
|
|
993
|
+
},
|
|
994
|
+
contentRadiusStyle: {
|
|
995
|
+
borderTopLeftRadius: C && !w ? 0 : `calc(${_} - 1px)`,
|
|
996
|
+
borderTopRightRadius: C && !w ? 0 : `calc(${_} - 1px)`,
|
|
997
|
+
borderBottomLeftRadius: F || C ? 0 : `calc(${_} - 1px)`,
|
|
998
|
+
borderBottomRightRadius: F || C ? 0 : `calc(${_} - 1px)`
|
|
999
|
+
},
|
|
1000
|
+
children: [
|
|
1001
|
+
ke && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1002
|
+
style: _object_spread({
|
|
1003
|
+
// for some reason, this width is required to pass headless screenshot tests
|
|
1004
|
+
// otherwise, it gets 0px width and the media is not visible
|
|
1005
|
+
width: "100%"
|
|
1006
|
+
}, e === "naked" ? void 0 : (0, _css.applyCssVars)({
|
|
1007
|
+
[_imagecssmistica.vars.mediaBorderRadius]: "0px"
|
|
1008
|
+
})),
|
|
1009
|
+
children: n
|
|
1010
|
+
}),
|
|
1011
|
+
ke && /* @__PURE__ */ (0, _jsxruntime.jsx)(se, {
|
|
1012
|
+
absolute: !0,
|
|
1013
|
+
size: o,
|
|
1014
|
+
asset: x,
|
|
1015
|
+
type: e
|
|
1016
|
+
}),
|
|
1017
|
+
w && /* @__PURE__ */ (0, _jsxruntime.jsx)(di, {
|
|
1018
|
+
type: e,
|
|
1019
|
+
size: o,
|
|
1020
|
+
mediaAspectRatio: $e,
|
|
1021
|
+
mediaPosition: B,
|
|
1022
|
+
asset: x,
|
|
1023
|
+
video: Ge,
|
|
1024
|
+
imageFit: h,
|
|
1025
|
+
imageSrc: r,
|
|
1026
|
+
imageSrcSet: d,
|
|
1027
|
+
imageAlt: u,
|
|
1028
|
+
mediaWidth: p,
|
|
1029
|
+
circledImage: b
|
|
1030
|
+
}),
|
|
1031
|
+
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
1032
|
+
"aria-hidden": A && !fe,
|
|
1033
|
+
"data-testid": "body",
|
|
1034
|
+
className: (0, _classnames.default)(_cardinternalcssmistica.touchable, {
|
|
1035
|
+
[_cardinternalcssmistica.containerPaddingTopVariants[o]]: !!x && e !== "naked" && (!w || B === "right")
|
|
976
1036
|
}),
|
|
977
|
-
|
|
978
|
-
"
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
1037
|
+
children: [
|
|
1038
|
+
(!w || B === "right") && /* @__PURE__ */ (0, _jsxruntime.jsx)(se, {
|
|
1039
|
+
size: o,
|
|
1040
|
+
asset: x,
|
|
1041
|
+
type: e
|
|
982
1042
|
}),
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
]
|
|
1063
|
-
})
|
|
1064
|
-
})),
|
|
1065
|
-
D && /* @__PURE__ */ (0, _jsxruntime.jsx)(ii, {
|
|
1043
|
+
J && /* @__PURE__ */ (0, _jsxruntime.jsx)(de, {
|
|
1044
|
+
minHeight: e === "cover" && Xe > 0 && !x ? 56 : 0
|
|
1045
|
+
}),
|
|
1046
|
+
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
1047
|
+
className: (0, _classnames.default)(_cardinternalcssmistica.containerPaddingXVariants[o], _cardinternalcssmistica.containerPaddingBottomVariants[o], _cardinternalcssmistica.containerPaddingTopVariants[o]),
|
|
1048
|
+
style: {
|
|
1049
|
+
display: "flex",
|
|
1050
|
+
flexDirection: "column",
|
|
1051
|
+
height: J ? void 0 : "100%",
|
|
1052
|
+
background: G ? vt : void 0,
|
|
1053
|
+
// padding overrides for specific cases
|
|
1054
|
+
paddingTop: J && G ? 40 : x || C && B !== "top" ? 16 : C && !w ? 0 : void 0,
|
|
1055
|
+
paddingLeft: C && (B !== "left" || !w) ? 0 : void 0,
|
|
1056
|
+
paddingRight: C && B !== "right" ? 16 : void 0,
|
|
1057
|
+
paddingBottom: F ? 16 : C ? 0 : void 0,
|
|
1058
|
+
borderBottomLeftRadius: F ? 0 : _,
|
|
1059
|
+
borderBottomRightRadius: F ? 0 : _
|
|
1060
|
+
},
|
|
1061
|
+
children: [
|
|
1062
|
+
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
1063
|
+
className: _cardinternalcssmistica.contentContainer,
|
|
1064
|
+
children: [
|
|
1065
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1066
|
+
className: _cardinternalcssmistica.textContent,
|
|
1067
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(si, _object_spread({
|
|
1068
|
+
type: e,
|
|
1069
|
+
hasCustomBackground: je,
|
|
1070
|
+
headlineRef: dt,
|
|
1071
|
+
variant: O,
|
|
1072
|
+
size: o,
|
|
1073
|
+
headline: k,
|
|
1074
|
+
pretitle: i,
|
|
1075
|
+
pretitleAs: g,
|
|
1076
|
+
pretitleLinesMax: ue,
|
|
1077
|
+
title: s,
|
|
1078
|
+
titleAs: S,
|
|
1079
|
+
titleLinesMax: D,
|
|
1080
|
+
subtitle: H,
|
|
1081
|
+
subtitleLinesMax: T,
|
|
1082
|
+
description: L,
|
|
1083
|
+
descriptionLinesMax: X,
|
|
1084
|
+
withTextShadow: G
|
|
1085
|
+
}, Fe ? {
|
|
1086
|
+
touchableRef: lt,
|
|
1087
|
+
touchableProps: Y
|
|
1088
|
+
} : {}))
|
|
1089
|
+
}),
|
|
1090
|
+
mt && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1091
|
+
style: {
|
|
1092
|
+
flexShrink: 0,
|
|
1093
|
+
flexGrow: 0,
|
|
1094
|
+
width: re * 48 - // required space depends on the card padding
|
|
1095
|
+
(e === "naked" ? 0 : o === "display" ? 24 : 16) - //
|
|
1096
|
+
8
|
|
1097
|
+
}
|
|
1098
|
+
})
|
|
1099
|
+
]
|
|
1100
|
+
}),
|
|
1101
|
+
!J && K === "bottom" && /* @__PURE__ */ (0, _jsxruntime.jsx)(de, {}),
|
|
1102
|
+
I && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1103
|
+
ref: nt,
|
|
1104
|
+
"data-testid": "slot",
|
|
1105
|
+
className: (0, _classnames.default)(K === "space-between" && _cardinternalcssmistica.slotContainerSpaceBetween),
|
|
1106
|
+
children: I
|
|
1107
|
+
}),
|
|
1108
|
+
!J && K === "content" && _e && /* @__PURE__ */ (0, _jsxruntime.jsx)(de, {}),
|
|
1109
|
+
_e && /* @__PURE__ */ (0, _jsxruntime.jsx)(ai, {
|
|
1110
|
+
size: o,
|
|
1111
|
+
buttonPrimary: E,
|
|
1112
|
+
buttonSecondary: $,
|
|
1113
|
+
buttonLink: W
|
|
1114
|
+
})
|
|
1115
|
+
]
|
|
1116
|
+
})
|
|
1117
|
+
]
|
|
1118
|
+
})
|
|
1119
|
+
]
|
|
1120
|
+
}),
|
|
1121
|
+
F && /* @__PURE__ */ (0, _jsxruntime.jsx)(li, {
|
|
1066
1122
|
type: e,
|
|
1067
|
-
variant:
|
|
1068
|
-
footerVariant:
|
|
1069
|
-
footerBackgroundColor:
|
|
1070
|
-
footerDivider:
|
|
1123
|
+
variant: O,
|
|
1124
|
+
footerVariant: ge,
|
|
1125
|
+
footerBackgroundColor: me,
|
|
1126
|
+
footerDivider: ee,
|
|
1071
1127
|
size: o,
|
|
1072
|
-
footerSlot:
|
|
1073
|
-
buttonPrimary:
|
|
1074
|
-
buttonSecondary:
|
|
1075
|
-
buttonLink:
|
|
1076
|
-
hasBackgroundImageOrVideo:
|
|
1077
|
-
externalVariant:
|
|
1078
|
-
overlayColor:
|
|
1128
|
+
footerSlot: j,
|
|
1129
|
+
buttonPrimary: E,
|
|
1130
|
+
buttonSecondary: $,
|
|
1131
|
+
buttonLink: W,
|
|
1132
|
+
hasBackgroundImageOrVideo: G,
|
|
1133
|
+
externalVariant: q,
|
|
1134
|
+
overlayColor: xt
|
|
1079
1135
|
}),
|
|
1080
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
1081
|
-
onClose:
|
|
1082
|
-
closeButtonLabel:
|
|
1083
|
-
actions:
|
|
1084
|
-
variant:
|
|
1136
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(Qe, {
|
|
1137
|
+
onClose: Ie,
|
|
1138
|
+
closeButtonLabel: tt,
|
|
1139
|
+
actions: te,
|
|
1140
|
+
variant: G || w && B !== "left" ? "media" : O
|
|
1085
1141
|
})
|
|
1086
1142
|
]
|
|
1087
1143
|
});
|