@telefonica/mistica 16.50.0 → 16.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/css/mistica.css +1 -1
- package/dist/accordion.css-mistica.js +6 -6
- package/dist/align.css-mistica.js +1 -1
- package/dist/autocomplete.css-mistica.js +1 -1
- package/dist/avatar.css-mistica.js +1 -1
- package/dist/badge.css-mistica.js +1 -1
- package/dist/box.css-mistica.js +13 -13
- package/dist/boxed.css-mistica.js +24 -24
- package/dist/button-group.css-mistica.js +1 -1
- package/dist/button-layout.css-mistica.js +14 -14
- package/dist/button.css-mistica.js +26 -26
- package/dist/callout.css-mistica.js +11 -11
- package/dist/card-cover.d.ts +3 -0
- package/dist/card-internal.css-mistica.js +23 -20
- package/dist/card-internal.css.d.ts +1 -0
- package/dist/card-internal.d.ts +15 -2
- package/dist/card-internal.js +300 -287
- package/dist/card-media.d.ts +3 -0
- package/dist/carousel.css-mistica.js +8 -8
- package/dist/checkbox.css-mistica.js +11 -11
- package/dist/chip.css-mistica.js +15 -15
- package/dist/circle.css-mistica.js +1 -1
- package/dist/community/advanced-data-card.css-mistica.js +6 -6
- 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 +1 -1
- package/dist/cover-hero-media.js +10 -6
- package/dist/cover-hero.css-mistica.js +2 -2
- package/dist/credit-card-number-field.css-mistica.js +3 -3
- package/dist/date-field.css-mistica.js +1 -1
- package/dist/date-time-picker.css-mistica.js +1 -1
- package/dist/dialog.css-mistica.js +4 -4
- package/dist/divider.css-mistica.js +5 -5
- package/dist/double-field.css-mistica.js +2 -2
- package/dist/drawer.css-mistica.js +1 -1
- package/dist/empty-state-card.css-mistica.js +1 -1
- package/dist/empty-state.css-mistica.js +5 -5
- package/dist/fade-in.css-mistica.js +1 -1
- package/dist/feedback.css-mistica.js +1 -1
- package/dist/fixed-footer-layout.css-mistica.js +2 -2
- package/dist/form.css-mistica.js +1 -1
- package/dist/grid-layout.css-mistica.js +3 -3
- package/dist/grid.css-mistica.js +120 -120
- package/dist/header.css-mistica.js +1 -1
- package/dist/hero.css-mistica.js +2 -2
- package/dist/horizontal-scroll.css-mistica.js +1 -1
- package/dist/icon-button.css-mistica.js +65 -62
- package/dist/icon-button.css.d.ts +1 -0
- package/dist/icon-button.js +43 -39
- package/dist/icons/icon-chevron.css-mistica.js +2 -2
- package/dist/icons/icon-error.css-mistica.js +1 -1
- package/dist/image.css-mistica.js +11 -11
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/dist/inline.css-mistica.js +9 -9
- package/dist/list.css-mistica.js +1 -1
- package/dist/loading-bar.css-mistica.js +1 -1
- package/dist/loading-screen.css-mistica.js +4 -4
- package/dist/logo.css-mistica.js +5 -5
- package/dist/menu.css-mistica.js +13 -13
- package/dist/mosaic.css-mistica.js +1 -1
- package/dist/navigation-bar.css-mistica.js +18 -18
- package/dist/navigation-breadcrumbs.css-mistica.js +1 -1
- package/dist/package-version.js +1 -1
- package/dist/pin-field.css-mistica.js +1 -1
- package/dist/popover.css-mistica.js +1 -1
- package/dist/progress-bar.css-mistica.js +6 -6
- package/dist/radio-button.css-mistica.js +19 -19
- package/dist/rating.css-mistica.js +2 -2
- package/dist/responsive-layout.css-mistica.js +6 -6
- package/dist/screen-reader-only.css-mistica.js +1 -1
- package/dist/select.css-mistica.js +15 -15
- package/dist/sheet-action-row.css-mistica.js +1 -1
- package/dist/sheet-common.css-mistica.js +1 -1
- package/dist/sheet-info.css-mistica.js +1 -1
- package/dist/skeletons.css-mistica.js +6 -6
- package/dist/skins/skin-contract.css-mistica.js +642 -642
- package/dist/skip-link.css-mistica.js +1 -1
- package/dist/slider.css-mistica.js +18 -18
- package/dist/snackbar.css-mistica.js +4 -4
- package/dist/spinner.css-mistica.js +1 -1
- package/dist/square.css-mistica.js +11 -0
- package/dist/square.css.d.ts +1 -0
- package/dist/square.d.ts +20 -0
- package/dist/square.js +82 -0
- package/dist/stack.css-mistica.js +5 -5
- package/dist/stacking-group.css-mistica.js +1 -1
- package/dist/stepper.css-mistica.js +2 -2
- package/dist/switch-component.css-mistica.js +35 -35
- package/dist/table.css-mistica.js +9 -9
- package/dist/tabs.css-mistica.js +17 -17
- package/dist/tag.css-mistica.js +1 -1
- package/dist/text-field-base.css-mistica.js +15 -15
- package/dist/text-field-components.css-mistica.js +3 -3
- package/dist/text-link.css-mistica.js +6 -6
- package/dist/text.css-mistica.js +6 -6
- package/dist/theme-context.css-mistica.js +1 -1
- package/dist/timeline.css-mistica.js +9 -9
- package/dist/timer.css-mistica.js +6 -6
- package/dist/tooltip.css-mistica.js +1 -1
- package/dist/touchable.css-mistica.js +1 -1
- package/dist/utils/aspect-ratio-support.css-mistica.js +2 -2
- package/dist/video.css-mistica.js +1 -1
- package/dist/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +1 -1
- package/dist-es/accordion.css-mistica.js +6 -6
- package/dist-es/align.css-mistica.js +1 -1
- package/dist-es/autocomplete.css-mistica.js +1 -1
- package/dist-es/avatar.css-mistica.js +1 -1
- package/dist-es/badge.css-mistica.js +1 -1
- package/dist-es/box.css-mistica.js +13 -13
- package/dist-es/boxed.css-mistica.js +23 -23
- package/dist-es/button-group.css-mistica.js +1 -1
- package/dist-es/button-layout.css-mistica.js +14 -14
- package/dist-es/button.css-mistica.js +26 -26
- package/dist-es/callout.css-mistica.js +11 -11
- package/dist-es/card-internal.css-mistica.js +16 -16
- package/dist-es/card-internal.js +383 -370
- package/dist-es/carousel.css-mistica.js +8 -8
- package/dist-es/checkbox.css-mistica.js +11 -11
- package/dist-es/chip.css-mistica.js +15 -15
- package/dist-es/circle.css-mistica.js +1 -1
- package/dist-es/community/advanced-data-card.css-mistica.js +6 -6
- 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 +1 -1
- package/dist-es/cover-hero-media.js +11 -7
- package/dist-es/cover-hero.css-mistica.js +2 -2
- package/dist-es/credit-card-number-field.css-mistica.js +3 -3
- package/dist-es/date-field.css-mistica.js +1 -1
- package/dist-es/date-time-picker.css-mistica.js +1 -1
- package/dist-es/dialog.css-mistica.js +4 -4
- package/dist-es/divider.css-mistica.js +5 -5
- package/dist-es/double-field.css-mistica.js +2 -2
- package/dist-es/drawer.css-mistica.js +1 -1
- package/dist-es/empty-state-card.css-mistica.js +1 -1
- package/dist-es/empty-state.css-mistica.js +5 -5
- package/dist-es/fade-in.css-mistica.js +1 -1
- package/dist-es/feedback.css-mistica.js +1 -1
- package/dist-es/fixed-footer-layout.css-mistica.js +2 -2
- package/dist-es/form.css-mistica.js +1 -1
- package/dist-es/grid-layout.css-mistica.js +3 -3
- package/dist-es/grid.css-mistica.js +120 -120
- package/dist-es/header.css-mistica.js +1 -1
- package/dist-es/hero.css-mistica.js +2 -2
- package/dist-es/horizontal-scroll.css-mistica.js +1 -1
- package/dist-es/icon-button.css-mistica.js +55 -55
- package/dist-es/icon-button.js +56 -52
- package/dist-es/icons/icon-chevron.css-mistica.js +2 -2
- package/dist-es/icons/icon-error.css-mistica.js +1 -1
- package/dist-es/image.css-mistica.js +4 -4
- package/dist-es/index.js +2203 -2202
- package/dist-es/inline.css-mistica.js +9 -9
- package/dist-es/list.css-mistica.js +1 -1
- package/dist-es/loading-bar.css-mistica.js +1 -1
- package/dist-es/loading-screen.css-mistica.js +4 -4
- package/dist-es/logo.css-mistica.js +5 -5
- package/dist-es/menu.css-mistica.js +13 -13
- package/dist-es/mosaic.css-mistica.js +1 -1
- package/dist-es/navigation-bar.css-mistica.js +18 -18
- package/dist-es/navigation-breadcrumbs.css-mistica.js +1 -1
- package/dist-es/package-version.js +1 -1
- package/dist-es/pin-field.css-mistica.js +1 -1
- package/dist-es/popover.css-mistica.js +1 -1
- package/dist-es/progress-bar.css-mistica.js +6 -6
- package/dist-es/radio-button.css-mistica.js +19 -19
- package/dist-es/rating.css-mistica.js +2 -2
- package/dist-es/responsive-layout.css-mistica.js +6 -6
- package/dist-es/screen-reader-only.css-mistica.js +1 -1
- package/dist-es/select.css-mistica.js +15 -15
- package/dist-es/sheet-action-row.css-mistica.js +1 -1
- package/dist-es/sheet-common.css-mistica.js +1 -1
- package/dist-es/sheet-info.css-mistica.js +1 -1
- package/dist-es/skeletons.css-mistica.js +6 -6
- package/dist-es/skins/skin-contract.css-mistica.js +642 -642
- package/dist-es/skip-link.css-mistica.js +1 -1
- package/dist-es/slider.css-mistica.js +18 -18
- package/dist-es/snackbar.css-mistica.js +4 -4
- package/dist-es/spinner.css-mistica.js +1 -1
- package/dist-es/square.css-mistica.js +2 -0
- package/dist-es/square.js +73 -0
- package/dist-es/stack.css-mistica.js +5 -5
- package/dist-es/stacking-group.css-mistica.js +1 -1
- package/dist-es/stepper.css-mistica.js +2 -2
- package/dist-es/style.css +1 -1
- package/dist-es/switch-component.css-mistica.js +35 -35
- package/dist-es/table.css-mistica.js +9 -9
- package/dist-es/tabs.css-mistica.js +17 -17
- package/dist-es/tag.css-mistica.js +1 -1
- package/dist-es/text-field-base.css-mistica.js +15 -15
- package/dist-es/text-field-components.css-mistica.js +3 -3
- package/dist-es/text-link.css-mistica.js +6 -6
- package/dist-es/text.css-mistica.js +6 -6
- package/dist-es/theme-context.css-mistica.js +1 -1
- package/dist-es/timeline.css-mistica.js +9 -9
- package/dist-es/timer.css-mistica.js +6 -6
- package/dist-es/tooltip.css-mistica.js +1 -1
- package/dist-es/touchable.css-mistica.js +1 -1
- package/dist-es/utils/aspect-ratio-support.css-mistica.js +2 -2
- package/dist-es/video.css-mistica.js +1 -1
- package/dist-es/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +1 -1
- package/package.json +2 -2
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 Zt;
|
|
15
15
|
},
|
|
16
16
|
get CardActionSpinner () {
|
|
17
|
-
return
|
|
17
|
+
return Yt;
|
|
18
18
|
},
|
|
19
19
|
get InternalCard () {
|
|
20
|
-
return
|
|
20
|
+
return Pi;
|
|
21
21
|
},
|
|
22
22
|
get TopActions () {
|
|
23
|
-
return
|
|
23
|
+
return $e;
|
|
24
24
|
},
|
|
25
25
|
get useVideoWithControls () {
|
|
26
|
-
return
|
|
26
|
+
return Qt;
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
const _jsxruntime = require("react/jsx-runtime");
|
|
@@ -181,18 +181,18 @@ 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: n, "aria-label":
|
|
186
|
-
const
|
|
187
|
-
[_cardinternalcssmistica.vars.aspectRatio]: String(
|
|
188
|
-
}) : {},
|
|
184
|
+
const _t = /*#__PURE__*/ _react.forwardRef((param, p)=>{
|
|
185
|
+
let { type: e, children: o, width: a, height: r, aspectRatio: n, "aria-label": l, "aria-labelledby": u, "aria-description": h, "aria-describedby": m, dataAttributes: d, backgroundColor: b, variant: v } = param;
|
|
186
|
+
const x = a && r ? void 0 : (0, _aspectratiosupport.aspectRatioToNumber)(n), f = x ? (0, _css.applyCssVars)({
|
|
187
|
+
[_cardinternalcssmistica.vars.aspectRatio]: String(x)
|
|
188
|
+
}) : {}, k = b ? "none" : void 0, c = 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
|
-
ref:
|
|
192
|
-
"aria-label":
|
|
191
|
+
ref: p,
|
|
192
|
+
"aria-label": l,
|
|
193
193
|
"aria-labelledby": u,
|
|
194
|
-
"aria-description":
|
|
195
|
-
"aria-describedby":
|
|
194
|
+
"aria-description": h,
|
|
195
|
+
"aria-describedby": m,
|
|
196
196
|
className: (0, _classnames.default)(_cardinternalcssmistica.container)
|
|
197
197
|
}, (0, _dom.getPrefixedDataAttributes)(d, "InternalCard")), {
|
|
198
198
|
style: _object_spread({
|
|
@@ -211,11 +211,11 @@ const Et = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
211
211
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.InternalBoxed, {
|
|
212
212
|
width: "100%",
|
|
213
213
|
height: "100%",
|
|
214
|
-
variant:
|
|
214
|
+
variant: v,
|
|
215
215
|
className: (0, _classnames.default)(_cardinternalcssmistica.boxed),
|
|
216
|
-
background:
|
|
217
|
-
borderRadius:
|
|
218
|
-
border:
|
|
216
|
+
background: c ? "transparent" : b,
|
|
217
|
+
borderRadius: c ? "none" : _skincontractcssmistica.vars.borderRadii.container,
|
|
218
|
+
border: c ? "none" : k,
|
|
219
219
|
overflow: "visible",
|
|
220
220
|
children: o
|
|
221
221
|
})
|
|
@@ -255,7 +255,7 @@ const Et = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
255
255
|
}),
|
|
256
256
|
children: n
|
|
257
257
|
});
|
|
258
|
-
},
|
|
258
|
+
}, Xt = (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,14 +278,8 @@ const Et = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
278
278
|
})
|
|
279
279
|
})
|
|
280
280
|
});
|
|
281
|
-
},
|
|
281
|
+
}, Kt = {
|
|
282
282
|
loading: {
|
|
283
|
-
showSpinner: "loadingTimeout",
|
|
284
|
-
play: "playing",
|
|
285
|
-
pause: "paused",
|
|
286
|
-
fail: "error"
|
|
287
|
-
},
|
|
288
|
-
loadingTimeout: {
|
|
289
283
|
play: "playing",
|
|
290
284
|
pause: "paused",
|
|
291
285
|
fail: "error",
|
|
@@ -304,75 +298,88 @@ const Et = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
304
298
|
error: {
|
|
305
299
|
reset: "loading"
|
|
306
300
|
}
|
|
307
|
-
},
|
|
301
|
+
}, Wt = (e, o)=>Kt[e][o] || e, Yt = (param)=>{
|
|
308
302
|
let { color: e } = param;
|
|
309
303
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_spinner.default, {
|
|
310
304
|
color: e,
|
|
311
305
|
size: 16,
|
|
312
306
|
delay: "0"
|
|
313
307
|
});
|
|
314
|
-
},
|
|
308
|
+
}, qt = (param)=>{
|
|
315
309
|
let { color: e } = param;
|
|
316
310
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconpausefilled.default, {
|
|
317
311
|
color: e,
|
|
318
312
|
size: 12
|
|
319
313
|
});
|
|
320
|
-
},
|
|
314
|
+
}, Jt = (param)=>{
|
|
321
315
|
let { color: e } = param;
|
|
322
316
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconplayfilled.default, {
|
|
323
317
|
color: e,
|
|
324
318
|
size: 12
|
|
325
319
|
});
|
|
326
|
-
},
|
|
327
|
-
|
|
320
|
+
}, Qt = (param)=>{
|
|
321
|
+
let { src: e, poster: o, ref: a, autoHeight: r, loop: n, autoPlay: l, dataAttributes: u } = param;
|
|
322
|
+
const { texts: h, t: m } = (0, _hooks.useTheme)(), d = _react.useRef(null), b = _react.useRef(!1), [v, p] = _react.useReducer(Wt, process.env.NODE_ENV === "test" ? "playing" : "loading");
|
|
328
323
|
_react.useEffect(()=>{
|
|
329
|
-
var
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
clearTimeout(h), s("reset");
|
|
324
|
+
var _d_current;
|
|
325
|
+
return b.current = !1, (_d_current = d.current) === null || _d_current === void 0 ? void 0 : _d_current.load(), ()=>{
|
|
326
|
+
p("reset");
|
|
333
327
|
};
|
|
334
328
|
}, [
|
|
335
329
|
e
|
|
336
330
|
]);
|
|
337
|
-
const
|
|
338
|
-
|
|
331
|
+
const x = _react.useMemo(()=>{
|
|
332
|
+
if (e === void 0) return;
|
|
333
|
+
const t = ()=>{
|
|
334
|
+
l === !1 && !b.current && (b.current = !0, p("pause"));
|
|
335
|
+
};
|
|
336
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_video.default, {
|
|
337
|
+
ref: (0, _common.combineRefs)(d, a),
|
|
339
338
|
src: e,
|
|
340
339
|
poster: o,
|
|
341
340
|
width: "100%",
|
|
342
341
|
height: r ? void 0 : "100%",
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
342
|
+
loop: n,
|
|
343
|
+
autoPlay: l,
|
|
344
|
+
dataAttributes: u,
|
|
345
|
+
onLoad: t,
|
|
346
|
+
onError: ()=>p("fail"),
|
|
347
|
+
onPause: ()=>p("pause"),
|
|
348
|
+
onPlay: ()=>p("play")
|
|
349
|
+
});
|
|
350
|
+
}, [
|
|
347
351
|
a,
|
|
348
352
|
e,
|
|
349
353
|
o,
|
|
350
|
-
r
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
+
r,
|
|
355
|
+
n,
|
|
356
|
+
l,
|
|
357
|
+
u
|
|
358
|
+
]), f = ()=>{
|
|
359
|
+
const t = d.current;
|
|
360
|
+
t && (v === "playing" ? t.pause() : t.play().then(()=>p("play"), ()=>{}));
|
|
354
361
|
};
|
|
355
|
-
if (
|
|
356
|
-
video:
|
|
362
|
+
if (v === "error") return {
|
|
363
|
+
video: x
|
|
357
364
|
};
|
|
358
|
-
const k =
|
|
365
|
+
const k = v === "loading", c = x ? {
|
|
359
366
|
uncheckedProps: {
|
|
360
|
-
Icon:
|
|
361
|
-
label:
|
|
367
|
+
Icon: k && !(0, _platform.isRunningAcceptanceTest)() ? Yt : qt,
|
|
368
|
+
label: k ? "" : h.pauseIconButtonLabel || m(_texttokens.pauseIconButtonLabel)
|
|
362
369
|
},
|
|
363
370
|
checkedProps: {
|
|
364
|
-
Icon:
|
|
365
|
-
label:
|
|
371
|
+
Icon: Jt,
|
|
372
|
+
label: h.playIconButtonLabel || m(_texttokens.playIconButtonLabel)
|
|
366
373
|
},
|
|
367
|
-
onChange:
|
|
368
|
-
disabled: (0, _platform.isRunningAcceptanceTest)() ? !1 :
|
|
369
|
-
checked:
|
|
374
|
+
onChange: f,
|
|
375
|
+
disabled: (0, _platform.isRunningAcceptanceTest)() ? !1 : k,
|
|
376
|
+
checked: v === "paused"
|
|
370
377
|
} : void 0;
|
|
371
378
|
return {
|
|
372
|
-
video:
|
|
373
|
-
videoAction:
|
|
379
|
+
video: x,
|
|
380
|
+
videoAction: c
|
|
374
381
|
};
|
|
375
|
-
},
|
|
382
|
+
}, Ut = (param)=>{
|
|
376
383
|
let { size: e, buttonPrimary: o, buttonSecondary: a, buttonLink: r } = param;
|
|
377
384
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
378
385
|
className: _cardinternalcssmistica.actionsContainerVariants[e],
|
|
@@ -382,7 +389,7 @@ const Et = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
382
389
|
link: r
|
|
383
390
|
})
|
|
384
391
|
});
|
|
385
|
-
},
|
|
392
|
+
}, Zt = (e)=>{
|
|
386
393
|
const o = (0, _themevariantcontext.useThemeVariant)();
|
|
387
394
|
if (e.Icon) return /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconbutton.IconButton, _object_spread_props(_object_spread({}, e), {
|
|
388
395
|
small: !0,
|
|
@@ -408,35 +415,35 @@ const Et = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
408
415
|
backgroundType: "transparent"
|
|
409
416
|
})
|
|
410
417
|
}));
|
|
411
|
-
},
|
|
412
|
-
let { testid: e = "topActions", onClose: o, closeButtonLabel: a, actions: r, variant: n, containerStyles:
|
|
413
|
-
const { texts: u, t:
|
|
418
|
+
}, $e = (param)=>{
|
|
419
|
+
let { testid: e = "topActions", onClose: o, closeButtonLabel: a, actions: r, variant: n, containerStyles: l = {} } = param;
|
|
420
|
+
const { texts: u, t: h } = (0, _hooks.useTheme)(), m = r ? [
|
|
414
421
|
...r
|
|
415
422
|
] : [];
|
|
416
|
-
return o &&
|
|
417
|
-
label: a || u.closeButtonLabel ||
|
|
423
|
+
return o && m.push({
|
|
424
|
+
label: a || u.closeButtonLabel || h(_texttokens.closeButtonLabel),
|
|
418
425
|
onPress: o,
|
|
419
426
|
Icon: _iconcloseregular.default
|
|
420
|
-
}),
|
|
427
|
+
}), m.length === 0 ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {}) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
|
|
421
428
|
variant: n,
|
|
422
429
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
423
430
|
className: _cardinternalcssmistica.topActionsContainer,
|
|
424
|
-
style:
|
|
431
|
+
style: l,
|
|
425
432
|
"data-testid": e,
|
|
426
|
-
children:
|
|
433
|
+
children: m.map((d, b)=>"Icon" in d || "checkedProps" in d ? /* @__PURE__ */ (0, _jsxruntime.jsx)(Zt, _object_spread({}, d), b) : d)
|
|
427
434
|
})
|
|
428
435
|
});
|
|
429
|
-
},
|
|
430
|
-
let { type: e, size: o, asset: a, imageSrc: r, imageSrcSet: n, imageFit:
|
|
431
|
-
const
|
|
436
|
+
}, ei = (param)=>{
|
|
437
|
+
let { type: e, size: o, asset: a, imageSrc: r, imageSrcSet: n, imageFit: l, imageAlt: u = "", video: h, mediaAspectRatio: m, mediaPosition: d, mediaWidth: b, circledImage: v } = param;
|
|
438
|
+
const p = (0, _aspectratiosupport.aspectRatioToNumber)(m), x = e === "naked" && v ? {
|
|
432
439
|
circular: !0
|
|
433
440
|
} : {
|
|
434
441
|
width: "100%",
|
|
435
|
-
height: d === "top" &&
|
|
436
|
-
},
|
|
437
|
-
if (
|
|
442
|
+
height: d === "top" && p === 0 ? void 0 : "100%"
|
|
443
|
+
}, k = (()=>{
|
|
444
|
+
if (h) return h;
|
|
438
445
|
if (r !== void 0 || n !== void 0) {
|
|
439
|
-
const
|
|
446
|
+
const t = d === "left" || d === "right", s = {
|
|
440
447
|
fit: {
|
|
441
448
|
objectFit: "contain",
|
|
442
449
|
objectPosition: `bottom ${d}`
|
|
@@ -453,25 +460,25 @@ const Et = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
453
460
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_image.default, _object_spread(_object_spread_props(_object_spread({
|
|
454
461
|
src: r || "",
|
|
455
462
|
srcSet: n
|
|
456
|
-
},
|
|
463
|
+
}, x), {
|
|
457
464
|
dataAttributes: {
|
|
458
465
|
testid: "image"
|
|
459
466
|
},
|
|
460
467
|
alt: u
|
|
461
|
-
}),
|
|
468
|
+
}), t ? s[l] : {}));
|
|
462
469
|
}
|
|
463
470
|
return null;
|
|
464
471
|
})();
|
|
465
|
-
if (!
|
|
466
|
-
const
|
|
472
|
+
if (!k) return /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {});
|
|
473
|
+
const c = _object_spread({}, e === "naked" ? void 0 : (0, _css.applyCssVars)({
|
|
467
474
|
[_imagecssmistica.vars.mediaBorderRadius]: "0px"
|
|
468
475
|
}));
|
|
469
476
|
return d === "top" ? /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
470
477
|
children: [
|
|
471
478
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_aspectratiosupport.AspectRatioContainer, {
|
|
472
|
-
aspectRatio:
|
|
473
|
-
style:
|
|
474
|
-
children:
|
|
479
|
+
aspectRatio: p,
|
|
480
|
+
style: c,
|
|
481
|
+
children: k
|
|
475
482
|
}),
|
|
476
483
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(ee, {
|
|
477
484
|
absolute: !0,
|
|
@@ -483,14 +490,14 @@ const Et = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
483
490
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
484
491
|
children: [
|
|
485
492
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
486
|
-
style: _object_spread_props(_object_spread({},
|
|
493
|
+
style: _object_spread_props(_object_spread({}, c), {
|
|
487
494
|
width: b,
|
|
488
495
|
flexShrink: 0,
|
|
489
496
|
flexGrow: 0,
|
|
490
497
|
height: "100%",
|
|
491
498
|
position: "relative"
|
|
492
499
|
}),
|
|
493
|
-
children:
|
|
500
|
+
children: k
|
|
494
501
|
}),
|
|
495
502
|
d !== "right" && /* @__PURE__ */ (0, _jsxruntime.jsx)(ee, {
|
|
496
503
|
absolute: !0,
|
|
@@ -500,49 +507,49 @@ const Et = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
500
507
|
})
|
|
501
508
|
]
|
|
502
509
|
});
|
|
503
|
-
},
|
|
504
|
-
let { type: e, size: o, variant: a, footerSlot: r, buttonPrimary: n, buttonSecondary:
|
|
505
|
-
const
|
|
510
|
+
}, ti = (param)=>{
|
|
511
|
+
let { type: e, size: o, variant: a, footerSlot: r, buttonPrimary: n, buttonSecondary: l, buttonLink: u, hasBackgroundImageOrVideo: h, footerVariant: m, footerBackgroundColor: d, footerDivider: b, externalVariant: v, overlayColor: p } = param;
|
|
512
|
+
const x = !!(n || l || u), f = !!(n && l && u), k = {
|
|
506
513
|
default: _skincontractcssmistica.vars.colors.divider,
|
|
507
514
|
brand: _skincontractcssmistica.vars.colors.dividerBrand,
|
|
508
515
|
negative: _skincontractcssmistica.vars.colors.dividerNegative,
|
|
509
516
|
media: _skincontractcssmistica.vars.colors.dividerBrand,
|
|
510
517
|
alternative: _skincontractcssmistica.vars.colors.divider
|
|
511
|
-
}[a],
|
|
518
|
+
}[a], c = e === "naked", t = d || (m && m !== a ? m === "default" ? _skincontractcssmistica.vars.colors.backgroundContainer : v === "brand" || v === "media" || v === "negative" ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverBrand : _skincontractcssmistica.vars.colors.backgroundContainerBrand : void 0), s = b !== null && b !== void 0 ? b : !t;
|
|
512
519
|
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_themevariantcontext.ThemeVariant, {
|
|
513
|
-
variant:
|
|
520
|
+
variant: m || a,
|
|
514
521
|
children: [
|
|
515
522
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(U, {}),
|
|
516
523
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
517
524
|
style: {
|
|
518
|
-
background:
|
|
525
|
+
background: t || (h ? p : void 0),
|
|
519
526
|
position: "relative",
|
|
520
|
-
backdropFilter:
|
|
521
|
-
borderBottomLeftRadius:
|
|
522
|
-
borderBottomRightRadius:
|
|
527
|
+
backdropFilter: h ? "blur(12px)" : void 0,
|
|
528
|
+
borderBottomLeftRadius: c ? 0 : _skincontractcssmistica.vars.borderRadii.container,
|
|
529
|
+
borderBottomRightRadius: c ? 0 : _skincontractcssmistica.vars.borderRadii.container
|
|
523
530
|
},
|
|
524
531
|
children: [
|
|
525
532
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
526
533
|
style: {
|
|
527
|
-
borderTop:
|
|
528
|
-
marginRight:
|
|
534
|
+
borderTop: s ? `1px solid ${k}` : void 0,
|
|
535
|
+
marginRight: c ? 16 : 0
|
|
529
536
|
}
|
|
530
537
|
}),
|
|
531
538
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
532
539
|
"data-testid": "footer",
|
|
533
540
|
className: (0, _classnames.default)({
|
|
534
|
-
[_cardinternalcssmistica.containerPaddingXVariants[o]]: !
|
|
541
|
+
[_cardinternalcssmistica.containerPaddingXVariants[o]]: !c
|
|
535
542
|
}),
|
|
536
543
|
style: {
|
|
537
544
|
paddingTop: 16,
|
|
538
|
-
paddingBottom:
|
|
539
|
-
paddingRight:
|
|
545
|
+
paddingBottom: c ? 0 : 16,
|
|
546
|
+
paddingRight: c ? 16 : void 0
|
|
540
547
|
},
|
|
541
548
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
542
549
|
space: 16,
|
|
543
550
|
children: [
|
|
544
551
|
r,
|
|
545
|
-
|
|
552
|
+
x && // @FIXME: We should use the ButtonGroup component
|
|
546
553
|
// https://jira.tid.es/browse/WEB-2278
|
|
547
554
|
// https://www.figma.com/design/koROdh3HpEPG2O8jG52Emh/%F0%9F%94%B8-Buttons-Specs?node-id=4337-1606&t=HtImvar8DMbivDqC-0
|
|
548
555
|
(f ? /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
@@ -553,7 +560,7 @@ const Et = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
553
560
|
alignItems: "center",
|
|
554
561
|
children: [
|
|
555
562
|
n,
|
|
556
|
-
|
|
563
|
+
l
|
|
557
564
|
]
|
|
558
565
|
}),
|
|
559
566
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
@@ -568,7 +575,7 @@ const Et = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
568
575
|
alignItems: "center",
|
|
569
576
|
children: [
|
|
570
577
|
n,
|
|
571
|
-
|
|
578
|
+
l,
|
|
572
579
|
u
|
|
573
580
|
]
|
|
574
581
|
}))
|
|
@@ -579,127 +586,127 @@ const Et = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
579
586
|
})
|
|
580
587
|
]
|
|
581
588
|
});
|
|
582
|
-
},
|
|
583
|
-
let { type: e, hasCustomBackground: o, headlineRef: a, size: r, variant: n, headline:
|
|
584
|
-
const { textPresets:
|
|
589
|
+
}, ii = (param)=>{
|
|
590
|
+
let { type: e, hasCustomBackground: o, headlineRef: a, size: r, variant: n, headline: l, title: u, titleAs: h = "h3", titleLinesMax: m, pretitle: d, pretitleAs: b, pretitleLinesMax: v, subtitle: p, subtitleLinesMax: x, description: f, descriptionLinesMax: k, withTextShadow: c } = param;
|
|
591
|
+
const { textPresets: t, colorValues: s } = (0, _hooks.useTheme)(), M = (0, _themevariantcontext.useThemeVariant)(), z = {
|
|
585
592
|
hyphens: "auto"
|
|
586
593
|
}, E = {
|
|
587
594
|
default: {
|
|
588
|
-
pretitle:
|
|
589
|
-
title:
|
|
590
|
-
subtitle:
|
|
591
|
-
description:
|
|
595
|
+
pretitle: s.textPrimary,
|
|
596
|
+
title: s.textPrimary,
|
|
597
|
+
subtitle: s.textPrimary,
|
|
598
|
+
description: s.textSecondary
|
|
592
599
|
},
|
|
593
600
|
brand: {
|
|
594
|
-
pretitle:
|
|
595
|
-
title:
|
|
596
|
-
subtitle:
|
|
597
|
-
description:
|
|
601
|
+
pretitle: s.textPrimaryBrand,
|
|
602
|
+
title: s.textPrimaryBrand,
|
|
603
|
+
subtitle: s.textPrimaryBrand,
|
|
604
|
+
description: s.textSecondaryBrand
|
|
598
605
|
},
|
|
599
606
|
negative: {
|
|
600
|
-
pretitle:
|
|
601
|
-
title:
|
|
602
|
-
subtitle:
|
|
603
|
-
description:
|
|
607
|
+
pretitle: s.textPrimaryNegative,
|
|
608
|
+
title: s.textPrimaryNegative,
|
|
609
|
+
subtitle: s.textPrimaryNegative,
|
|
610
|
+
description: s.textSecondaryNegative
|
|
604
611
|
},
|
|
605
612
|
media: {
|
|
606
|
-
pretitle:
|
|
607
|
-
title:
|
|
608
|
-
subtitle:
|
|
609
|
-
description: e === "cover" && o ?
|
|
613
|
+
pretitle: s.textPrimaryMedia,
|
|
614
|
+
title: s.textPrimaryMedia,
|
|
615
|
+
subtitle: s.textPrimaryMedia,
|
|
616
|
+
description: e === "cover" && o ? s.textPrimaryMedia : s.textSecondaryMedia
|
|
610
617
|
}
|
|
611
|
-
},
|
|
618
|
+
}, N = {
|
|
612
619
|
snap: {
|
|
613
620
|
pretitle: {
|
|
614
|
-
mobileSize:
|
|
615
|
-
desktopSize:
|
|
616
|
-
mobileLineHeight:
|
|
617
|
-
desktopLineHeight:
|
|
621
|
+
mobileSize: t.cardPretitleSnap.size.mobile,
|
|
622
|
+
desktopSize: t.cardPretitleSnap.size.desktop,
|
|
623
|
+
mobileLineHeight: t.cardPretitleSnap.lineHeight.mobile,
|
|
624
|
+
desktopLineHeight: t.cardPretitleSnap.lineHeight.desktop,
|
|
618
625
|
weight: "regular"
|
|
619
626
|
},
|
|
620
627
|
title: {
|
|
621
|
-
mobileSize:
|
|
622
|
-
desktopSize:
|
|
623
|
-
mobileLineHeight:
|
|
624
|
-
desktopLineHeight:
|
|
625
|
-
weight:
|
|
628
|
+
mobileSize: t.cardTitleSnap.size.mobile,
|
|
629
|
+
desktopSize: t.cardTitleSnap.size.desktop,
|
|
630
|
+
mobileLineHeight: t.cardTitleSnap.lineHeight.mobile,
|
|
631
|
+
desktopLineHeight: t.cardTitleSnap.lineHeight.desktop,
|
|
632
|
+
weight: t.cardTitle.weight
|
|
626
633
|
},
|
|
627
634
|
subtitle: {
|
|
628
|
-
mobileSize:
|
|
629
|
-
desktopSize:
|
|
630
|
-
mobileLineHeight:
|
|
631
|
-
desktopLineHeight:
|
|
635
|
+
mobileSize: t.cardSubtitleSnap.size.mobile,
|
|
636
|
+
desktopSize: t.cardSubtitleSnap.size.desktop,
|
|
637
|
+
mobileLineHeight: t.cardSubtitleSnap.lineHeight.mobile,
|
|
638
|
+
desktopLineHeight: t.cardSubtitleSnap.lineHeight.desktop,
|
|
632
639
|
weight: "regular"
|
|
633
640
|
},
|
|
634
641
|
description: {
|
|
635
|
-
mobileSize:
|
|
636
|
-
desktopSize:
|
|
637
|
-
mobileLineHeight:
|
|
638
|
-
desktopLineHeight:
|
|
642
|
+
mobileSize: t.cardDescriptionSnap.size.mobile,
|
|
643
|
+
desktopSize: t.cardDescriptionSnap.size.desktop,
|
|
644
|
+
mobileLineHeight: t.cardDescriptionSnap.lineHeight.mobile,
|
|
645
|
+
desktopLineHeight: t.cardDescriptionSnap.lineHeight.desktop,
|
|
639
646
|
weight: "regular"
|
|
640
647
|
}
|
|
641
648
|
},
|
|
642
649
|
default: {
|
|
643
650
|
pretitle: {
|
|
644
|
-
mobileSize:
|
|
645
|
-
desktopSize:
|
|
646
|
-
mobileLineHeight:
|
|
647
|
-
desktopLineHeight:
|
|
651
|
+
mobileSize: t.cardPretitleDefault.size.mobile,
|
|
652
|
+
desktopSize: t.cardPretitleDefault.size.desktop,
|
|
653
|
+
mobileLineHeight: t.cardPretitleDefault.lineHeight.mobile,
|
|
654
|
+
desktopLineHeight: t.cardPretitleDefault.lineHeight.desktop,
|
|
648
655
|
weight: "regular"
|
|
649
656
|
},
|
|
650
657
|
title: {
|
|
651
|
-
mobileSize:
|
|
652
|
-
desktopSize:
|
|
653
|
-
mobileLineHeight:
|
|
654
|
-
desktopLineHeight:
|
|
655
|
-
weight:
|
|
658
|
+
mobileSize: t.cardTitleDefault.size.mobile,
|
|
659
|
+
desktopSize: t.cardTitleDefault.size.desktop,
|
|
660
|
+
mobileLineHeight: t.cardTitleDefault.lineHeight.mobile,
|
|
661
|
+
desktopLineHeight: t.cardTitleDefault.lineHeight.desktop,
|
|
662
|
+
weight: t.cardTitle.weight
|
|
656
663
|
},
|
|
657
664
|
subtitle: {
|
|
658
|
-
mobileSize:
|
|
659
|
-
desktopSize:
|
|
660
|
-
mobileLineHeight:
|
|
661
|
-
desktopLineHeight:
|
|
665
|
+
mobileSize: t.cardSubtitleDefault.size.mobile,
|
|
666
|
+
desktopSize: t.cardSubtitleDefault.size.desktop,
|
|
667
|
+
mobileLineHeight: t.cardSubtitleDefault.lineHeight.mobile,
|
|
668
|
+
desktopLineHeight: t.cardSubtitleDefault.lineHeight.desktop,
|
|
662
669
|
weight: "regular"
|
|
663
670
|
},
|
|
664
671
|
description: {
|
|
665
|
-
mobileSize:
|
|
666
|
-
desktopSize:
|
|
667
|
-
mobileLineHeight:
|
|
668
|
-
desktopLineHeight:
|
|
672
|
+
mobileSize: t.cardDescriptionDefault.size.mobile,
|
|
673
|
+
desktopSize: t.cardDescriptionDefault.size.desktop,
|
|
674
|
+
mobileLineHeight: t.cardDescriptionDefault.lineHeight.mobile,
|
|
675
|
+
desktopLineHeight: t.cardDescriptionDefault.lineHeight.desktop,
|
|
669
676
|
weight: "regular"
|
|
670
677
|
}
|
|
671
678
|
},
|
|
672
679
|
display: {
|
|
673
680
|
pretitle: {
|
|
674
|
-
mobileSize:
|
|
675
|
-
desktopSize:
|
|
676
|
-
mobileLineHeight:
|
|
677
|
-
desktopLineHeight:
|
|
681
|
+
mobileSize: t.text2.size.mobile,
|
|
682
|
+
desktopSize: t.text2.size.desktop,
|
|
683
|
+
mobileLineHeight: t.text2.lineHeight.mobile,
|
|
684
|
+
desktopLineHeight: t.text2.lineHeight.desktop,
|
|
678
685
|
weight: "regular"
|
|
679
686
|
},
|
|
680
687
|
title: {
|
|
681
|
-
mobileSize:
|
|
682
|
-
desktopSize:
|
|
683
|
-
mobileLineHeight:
|
|
684
|
-
desktopLineHeight:
|
|
685
|
-
weight:
|
|
688
|
+
mobileSize: t.text6.size.mobile,
|
|
689
|
+
desktopSize: t.text6.size.desktop,
|
|
690
|
+
mobileLineHeight: t.text6.lineHeight.mobile,
|
|
691
|
+
desktopLineHeight: t.text6.lineHeight.desktop,
|
|
692
|
+
weight: t.text6.weight
|
|
686
693
|
},
|
|
687
694
|
subtitle: {
|
|
688
|
-
mobileSize:
|
|
689
|
-
desktopSize:
|
|
690
|
-
mobileLineHeight:
|
|
691
|
-
desktopLineHeight:
|
|
695
|
+
mobileSize: t.text2.size.mobile,
|
|
696
|
+
desktopSize: t.text2.size.desktop,
|
|
697
|
+
mobileLineHeight: t.text2.lineHeight.mobile,
|
|
698
|
+
desktopLineHeight: t.text2.lineHeight.desktop,
|
|
692
699
|
weight: "regular"
|
|
693
700
|
},
|
|
694
701
|
description: {
|
|
695
|
-
mobileSize:
|
|
696
|
-
desktopSize:
|
|
697
|
-
mobileLineHeight:
|
|
698
|
-
desktopLineHeight:
|
|
702
|
+
mobileSize: t.text3.size.mobile,
|
|
703
|
+
desktopSize: t.text3.size.desktop,
|
|
704
|
+
mobileLineHeight: t.text3.lineHeight.mobile,
|
|
705
|
+
desktopLineHeight: t.text3.lineHeight.desktop,
|
|
699
706
|
weight: "regular"
|
|
700
707
|
}
|
|
701
708
|
}
|
|
702
|
-
},
|
|
709
|
+
}, P = E[n] || E[M] || E.default, w = N[r] || N.default, A = c ? "0 0 15px rgba(0, 0, 0, 0.4)" : void 0, oe = l && // Read order 2. Visual order 1
|
|
703
710
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
704
711
|
style: {
|
|
705
712
|
paddingBottom: 8,
|
|
@@ -707,22 +714,22 @@ const Et = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
707
714
|
},
|
|
708
715
|
"data-testid": "headline",
|
|
709
716
|
ref: a,
|
|
710
|
-
children: typeof
|
|
717
|
+
children: typeof l == "string" ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_tag.default, {
|
|
711
718
|
type: "promo",
|
|
712
|
-
children:
|
|
713
|
-
}) :
|
|
714
|
-
}),
|
|
719
|
+
children: l
|
|
720
|
+
}) : l
|
|
721
|
+
}), T = d && // Read order: 3 or 1. Visual order 2
|
|
715
722
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
716
723
|
style: {
|
|
717
724
|
paddingBottom: 4,
|
|
718
725
|
order: 2
|
|
719
726
|
},
|
|
720
727
|
"data-testid": "pretitle",
|
|
721
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, z,
|
|
728
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, z, w.pretitle), {
|
|
722
729
|
as: b || "p",
|
|
723
|
-
truncate:
|
|
724
|
-
color:
|
|
725
|
-
textShadow:
|
|
730
|
+
truncate: v,
|
|
731
|
+
color: P.pretitle,
|
|
732
|
+
textShadow: A,
|
|
726
733
|
children: d
|
|
727
734
|
}))
|
|
728
735
|
}), _ = u && // Read order: 1 or 3. Visual order 3
|
|
@@ -732,26 +739,26 @@ const Et = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
732
739
|
order: 3
|
|
733
740
|
},
|
|
734
741
|
"data-testid": "title",
|
|
735
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, z,
|
|
736
|
-
as:
|
|
737
|
-
truncate:
|
|
738
|
-
color:
|
|
739
|
-
textShadow:
|
|
742
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, z, w.title), {
|
|
743
|
+
as: h,
|
|
744
|
+
truncate: m,
|
|
745
|
+
color: P.title,
|
|
746
|
+
textShadow: A,
|
|
740
747
|
children: u
|
|
741
748
|
}))
|
|
742
|
-
}), re =
|
|
749
|
+
}), re = p && // Read order: 4. Visual order 4
|
|
743
750
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
744
751
|
style: {
|
|
745
752
|
paddingBottom: 0,
|
|
746
753
|
order: 4
|
|
747
754
|
},
|
|
748
755
|
"data-testid": "subtitle",
|
|
749
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, z,
|
|
756
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, z, w.subtitle), {
|
|
750
757
|
as: "p",
|
|
751
|
-
truncate:
|
|
752
|
-
color:
|
|
753
|
-
textShadow:
|
|
754
|
-
children:
|
|
758
|
+
truncate: x,
|
|
759
|
+
color: P.subtitle,
|
|
760
|
+
textShadow: A,
|
|
761
|
+
children: p
|
|
755
762
|
}))
|
|
756
763
|
}), ae = f && // Read order: 5. Visual order 5
|
|
757
764
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
@@ -760,18 +767,18 @@ const Et = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
760
767
|
order: 5
|
|
761
768
|
},
|
|
762
769
|
"data-testid": "description",
|
|
763
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, z,
|
|
770
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, z, w.description), {
|
|
764
771
|
as: "p",
|
|
765
|
-
truncate:
|
|
766
|
-
color:
|
|
767
|
-
textShadow:
|
|
772
|
+
truncate: k,
|
|
773
|
+
color: P.description,
|
|
774
|
+
textShadow: A,
|
|
768
775
|
children: f
|
|
769
776
|
}))
|
|
770
|
-
}), [X, K] = u && (0, _headings.isBiggerHeading)(
|
|
777
|
+
}), [X, K] = u && (0, _headings.isBiggerHeading)(h, b) ? [
|
|
771
778
|
_,
|
|
772
|
-
|
|
779
|
+
T
|
|
773
780
|
] : [
|
|
774
|
-
|
|
781
|
+
T,
|
|
775
782
|
_
|
|
776
783
|
];
|
|
777
784
|
return /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
@@ -787,11 +794,11 @@ const Et = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
787
794
|
ae
|
|
788
795
|
]
|
|
789
796
|
});
|
|
790
|
-
},
|
|
797
|
+
}, oi = [
|
|
791
798
|
_skincontractcssmistica.vars.colors.cardContentOverlay,
|
|
792
799
|
_skincontractcssmistica.vars.colors.cardFooterOverlay
|
|
793
|
-
],
|
|
794
|
-
var { type: e, size: o, backgroundColor: a, imageSrc: r, imageSrcSet: n, imageAlt:
|
|
800
|
+
], ri = /rgba\([^,]+,\s*[^,]+,\s*[^,]+,\s*([^)]+)\)/g, je = (e, o)=>e.replace(ri, (a, r)=>(0, _color.applyAlpha)(o, parseFloat(r))), Pi = /*#__PURE__*/ _react.forwardRef((_param, Ze)=>{
|
|
801
|
+
var { type: e, size: o, backgroundColor: a, imageSrc: r, imageSrcSet: n, imageAlt: l = "", imageFit: u = "fill-center", videoSrc: h, videoRef: m, media: d, mediaAspectRatio: b = "auto", mediaPosition: v = "top", mediaWidth: p = 150, circledImage: x, asset: f, headline: k, title: c, titleAs: t = "h3", titleLinesMax: s, pretitle: M, pretitleAs: z, pretitleLinesMax: E, subtitle: N, subtitleLinesMax: P, description: w, descriptionLinesMax: A, dataAttributes: oe, variant: T, width: _, height: re, aspectRatio: ae, slot: X, slotAlignment: K = "content", buttonPrimary: ne, buttonSecondary: de, buttonLink: le, showFooter: Xe, footerBackgroundColor: Ke, footerVariant: We, footerSlot: ke, footerDivider: Ye, topActions: xe, onClose: ye, closeButtonLabel: qe, "aria-label": Se, "aria-labelledby": se, "aria-description": Be, "aria-describedby": Re, gradientOverlayColor: W, videoLoop: Je, videoAutoPlay: Qe, videoDataAttributes: Ue } = _param, V = _object_without_properties(_param, [
|
|
795
802
|
"type",
|
|
796
803
|
"size",
|
|
797
804
|
"backgroundColor",
|
|
@@ -840,32 +847,43 @@ const Et = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
840
847
|
"aria-labelledby",
|
|
841
848
|
"aria-description",
|
|
842
849
|
"aria-describedby",
|
|
843
|
-
"gradientOverlayColor"
|
|
850
|
+
"gradientOverlayColor",
|
|
851
|
+
"videoLoop",
|
|
852
|
+
"videoAutoPlay",
|
|
853
|
+
"videoDataAttributes"
|
|
844
854
|
]);
|
|
845
|
-
const { text:
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
855
|
+
const { text: He, ref: et } = (0, _hooks.useInnerText)(), { text: we, ref: tt } = (0, _hooks.useInnerText)(), B = !!(V.href || V.to || V.onPress), ce = !!(ne || de || le), { colorValues: Le } = (0, _hooks.useTheme)(), pe = e === "media" || e === "naked", it = pe && (r !== void 0 || n !== void 0), ze = pe && h !== void 0, Te = it || ze, ue = pe && !!d && !Te, R = Te || ue, H = e === "naked", S = R ? v : "top", Ce = e === "naked" && x ? 1 : b, he = e === "cover" && (r !== void 0 || n !== void 0), Y = e === "cover" && h !== void 0, De = !!a || he || Y, F = he || Y, ot = ze || Y, { video: Ie, videoAction: me } = Qt({
|
|
856
|
+
src: ot ? h : void 0,
|
|
857
|
+
poster: r,
|
|
858
|
+
ref: m,
|
|
859
|
+
autoHeight: e === "cover" || S !== "top" ? !1 : (0, _aspectratiosupport.aspectRatioToNumber)(Ce) === 0,
|
|
860
|
+
loop: Je,
|
|
861
|
+
autoPlay: Qe,
|
|
862
|
+
dataAttributes: Ue
|
|
863
|
+
}), $ = (0, _themevariantcontext.useThemeVariant)(), rt = T ? (0, _themevariantcontext.normalizeVariant)(T) : $, C = T && (0, _themevariantcontext.normalizeVariant)(T) || (e === "cover" && De ? "media" : "default"), at = C === "brand" ? _cardinternalcssmistica.touchableCardOverlayInverse : _cardinternalcssmistica.touchableCardOverlay, D = Xe && (ce || !!ke) || ce && B, Ne = !D && ce, q = ((xe === null || xe === void 0 ? void 0 : xe.length) || 0) + (ye ? 1 : 0), Pe = me ? q + 1 : q, nt = f && !(R && S === "left"), dt = e !== "cover" && Pe > 0 && !nt && !k, j = e === "cover" || e === "data" && o === "display", O = _skincontractcssmistica.vars.borderRadii.container, lt = he || Y ? "transparent" : a || (C === "media" ? $ === "brand" || $ === "media" || $ === "negative" ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverBrand : _skincontractcssmistica.vars.colors.backgroundBrand : C === "alternative" ? _skincontractcssmistica.vars.colors.backgroundAlternative : void 0), st = Se || (se ? void 0 : (c && (0, _headings.isBiggerHeading)(t, z) ? [
|
|
864
|
+
c,
|
|
865
|
+
l,
|
|
866
|
+
we,
|
|
849
867
|
M,
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
868
|
+
N,
|
|
869
|
+
w,
|
|
870
|
+
He
|
|
853
871
|
] : [
|
|
854
872
|
M,
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
]).filter(Boolean).join(" ")),
|
|
873
|
+
we,
|
|
874
|
+
c,
|
|
875
|
+
l,
|
|
876
|
+
N,
|
|
877
|
+
w,
|
|
878
|
+
He
|
|
879
|
+
]).filter(Boolean).join(" ")), ct = ()=>W === "transparent" ? [
|
|
862
880
|
"transparent",
|
|
863
881
|
"transparent"
|
|
864
882
|
] : W ? [
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
] :
|
|
868
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(
|
|
883
|
+
je(Le.cardContentOverlay, W),
|
|
884
|
+
je(Le.cardFooterOverlay, W)
|
|
885
|
+
] : oi, [pt, ut] = ct();
|
|
886
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_t, {
|
|
869
887
|
"aria-label": B ? void 0 : Se,
|
|
870
888
|
"aria-labelledby": B ? void 0 : se,
|
|
871
889
|
"aria-description": B ? void 0 : Be,
|
|
@@ -873,23 +891,23 @@ const Et = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
873
891
|
type: e,
|
|
874
892
|
size: o,
|
|
875
893
|
dataAttributes: oe,
|
|
876
|
-
ref:
|
|
877
|
-
variant:
|
|
894
|
+
ref: Ze,
|
|
895
|
+
variant: C,
|
|
878
896
|
width: _,
|
|
879
897
|
height: re,
|
|
880
898
|
aspectRatio: ae,
|
|
881
|
-
backgroundColor:
|
|
899
|
+
backgroundColor: lt,
|
|
882
900
|
children: [
|
|
883
|
-
|
|
884
|
-
video:
|
|
901
|
+
F && /* @__PURE__ */ (0, _jsxruntime.jsx)(Xt, {
|
|
902
|
+
video: Ie,
|
|
885
903
|
src: r,
|
|
886
904
|
srcSet: n,
|
|
887
|
-
backgroundVariant:
|
|
905
|
+
backgroundVariant: rt
|
|
888
906
|
}),
|
|
889
907
|
me && // The video action is placed first in the card reading order, so it is placed outside the other topActions container
|
|
890
908
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
891
909
|
"data-testid": "videoAction",
|
|
892
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
910
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)($e, {
|
|
893
911
|
testid: "videoAction",
|
|
894
912
|
variant: "media",
|
|
895
913
|
actions: [
|
|
@@ -898,37 +916,32 @@ const Et = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
898
916
|
containerStyles: {
|
|
899
917
|
position: "absolute",
|
|
900
918
|
top: 16,
|
|
901
|
-
left:
|
|
902
|
-
right:
|
|
919
|
+
left: S === "left" ? typeof p == "number" ? `calc(${p}px - 48px)` : `calc(${p} - 48px)` : "auto",
|
|
920
|
+
right: S !== "left" ? q * 48 + 16 : "auto"
|
|
903
921
|
}
|
|
904
922
|
})
|
|
905
923
|
}),
|
|
906
924
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
907
925
|
maybe: !0,
|
|
908
|
-
"aria-label": B ?
|
|
926
|
+
"aria-label": B ? st : void 0,
|
|
909
927
|
"aria-labelledby": B ? se : void 0,
|
|
910
928
|
"aria-description": B ? Be : void 0,
|
|
911
929
|
"aria-describedby": B ? Re : void 0,
|
|
912
930
|
className: (0, _classnames.default)(_cardinternalcssmistica.touchable, _cardinternalcssmistica.touchableContainer)
|
|
913
|
-
},
|
|
914
|
-
style: {
|
|
915
|
-
flexDirection: x === "top" ? "column" : x === "left" ? "row" : "row-reverse",
|
|
916
|
-
justifyItems: "stretch",
|
|
917
|
-
borderTopLeftRadius: w && !R ? 0 : `calc(${F} - 1px)`,
|
|
918
|
-
borderTopRightRadius: w && !R ? 0 : `calc(${F} - 1px)`,
|
|
919
|
-
borderBottomLeftRadius: L || w ? 0 : `calc(${F} - 1px)`,
|
|
920
|
-
borderBottomRightRadius: L || w ? 0 : `calc(${F} - 1px)`,
|
|
921
|
-
overflow: "hidden",
|
|
922
|
-
zIndex: 1
|
|
923
|
-
},
|
|
931
|
+
}, V), {
|
|
924
932
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
933
|
+
role: V.href || V.to ? "text" : void 0,
|
|
934
|
+
className: _cardinternalcssmistica.touchableContent,
|
|
925
935
|
style: {
|
|
926
|
-
|
|
936
|
+
flexDirection: S === "top" ? "column" : S === "left" ? "row" : "row-reverse",
|
|
937
|
+
borderTopLeftRadius: H && !R ? 0 : `calc(${O} - 1px)`,
|
|
938
|
+
borderTopRightRadius: H && !R ? 0 : `calc(${O} - 1px)`,
|
|
939
|
+
borderBottomLeftRadius: D || H ? 0 : `calc(${O} - 1px)`,
|
|
940
|
+
borderBottomRightRadius: D || H ? 0 : `calc(${O} - 1px)`
|
|
927
941
|
},
|
|
928
|
-
role: A.href || A.to ? "text" : void 0,
|
|
929
942
|
children: [
|
|
930
943
|
B && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
931
|
-
className:
|
|
944
|
+
className: at
|
|
932
945
|
}),
|
|
933
946
|
ue && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
934
947
|
style: _object_spread({
|
|
@@ -946,33 +959,33 @@ const Et = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
946
959
|
asset: f,
|
|
947
960
|
type: e
|
|
948
961
|
}),
|
|
949
|
-
R && /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
962
|
+
R && /* @__PURE__ */ (0, _jsxruntime.jsx)(ei, {
|
|
950
963
|
type: e,
|
|
951
964
|
size: o,
|
|
952
|
-
mediaAspectRatio:
|
|
953
|
-
mediaPosition:
|
|
965
|
+
mediaAspectRatio: Ce,
|
|
966
|
+
mediaPosition: S,
|
|
954
967
|
asset: f,
|
|
955
|
-
video:
|
|
968
|
+
video: Ie,
|
|
956
969
|
imageFit: u,
|
|
957
970
|
imageSrc: r,
|
|
958
971
|
imageSrcSet: n,
|
|
959
|
-
imageAlt:
|
|
960
|
-
mediaWidth:
|
|
961
|
-
circledImage:
|
|
972
|
+
imageAlt: l,
|
|
973
|
+
mediaWidth: p,
|
|
974
|
+
circledImage: x
|
|
962
975
|
}),
|
|
963
976
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
964
977
|
"aria-hidden": B,
|
|
965
978
|
"data-testid": "body",
|
|
966
979
|
className: (0, _classnames.default)(_cardinternalcssmistica.touchable, {
|
|
967
|
-
[_cardinternalcssmistica.containerPaddingTopVariants[o]]: !!f && e !== "naked" && (!R ||
|
|
980
|
+
[_cardinternalcssmistica.containerPaddingTopVariants[o]]: !!f && e !== "naked" && (!R || S === "right")
|
|
968
981
|
}),
|
|
969
982
|
children: [
|
|
970
|
-
(!R ||
|
|
983
|
+
(!R || S === "right") && /* @__PURE__ */ (0, _jsxruntime.jsx)(ee, {
|
|
971
984
|
size: o,
|
|
972
985
|
asset: f,
|
|
973
986
|
type: e
|
|
974
987
|
}),
|
|
975
|
-
|
|
988
|
+
j && /* @__PURE__ */ (0, _jsxruntime.jsx)(U, {
|
|
976
989
|
minHeight: e === "cover" && Pe > 0 && !f ? 56 : 0
|
|
977
990
|
}),
|
|
978
991
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
@@ -980,15 +993,15 @@ const Et = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
980
993
|
style: {
|
|
981
994
|
display: "flex",
|
|
982
995
|
flexDirection: "column",
|
|
983
|
-
height:
|
|
984
|
-
background:
|
|
996
|
+
height: j ? void 0 : "100%",
|
|
997
|
+
background: F ? pt : void 0,
|
|
985
998
|
// padding overrides for specific cases
|
|
986
|
-
paddingTop:
|
|
987
|
-
paddingLeft:
|
|
988
|
-
paddingRight:
|
|
989
|
-
paddingBottom:
|
|
990
|
-
borderBottomLeftRadius:
|
|
991
|
-
borderBottomRightRadius:
|
|
999
|
+
paddingTop: j && F ? 40 : f || H && S !== "top" ? 16 : H && !R ? 0 : void 0,
|
|
1000
|
+
paddingLeft: H && (S !== "left" || !R) ? 0 : void 0,
|
|
1001
|
+
paddingRight: H && S !== "right" ? 16 : void 0,
|
|
1002
|
+
paddingBottom: D ? 16 : H ? 0 : void 0,
|
|
1003
|
+
borderBottomLeftRadius: D ? 0 : O,
|
|
1004
|
+
borderBottomRightRadius: D ? 0 : O
|
|
992
1005
|
},
|
|
993
1006
|
children: [
|
|
994
1007
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
@@ -996,27 +1009,27 @@ const Et = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
996
1009
|
children: [
|
|
997
1010
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
998
1011
|
className: _cardinternalcssmistica.textContent,
|
|
999
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
1012
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(ii, {
|
|
1000
1013
|
type: e,
|
|
1001
|
-
hasCustomBackground:
|
|
1002
|
-
headlineRef:
|
|
1003
|
-
variant:
|
|
1014
|
+
hasCustomBackground: De,
|
|
1015
|
+
headlineRef: tt,
|
|
1016
|
+
variant: C,
|
|
1004
1017
|
size: o,
|
|
1005
|
-
headline:
|
|
1018
|
+
headline: k,
|
|
1006
1019
|
pretitle: M,
|
|
1007
1020
|
pretitleAs: z,
|
|
1008
1021
|
pretitleLinesMax: E,
|
|
1009
|
-
title:
|
|
1010
|
-
titleAs:
|
|
1011
|
-
titleLinesMax:
|
|
1012
|
-
subtitle:
|
|
1013
|
-
subtitleLinesMax:
|
|
1014
|
-
description:
|
|
1015
|
-
descriptionLinesMax:
|
|
1016
|
-
withTextShadow:
|
|
1022
|
+
title: c,
|
|
1023
|
+
titleAs: t,
|
|
1024
|
+
titleLinesMax: s,
|
|
1025
|
+
subtitle: N,
|
|
1026
|
+
subtitleLinesMax: P,
|
|
1027
|
+
description: w,
|
|
1028
|
+
descriptionLinesMax: A,
|
|
1029
|
+
withTextShadow: F
|
|
1017
1030
|
})
|
|
1018
1031
|
}),
|
|
1019
|
-
|
|
1032
|
+
dt && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1020
1033
|
style: {
|
|
1021
1034
|
flexShrink: 0,
|
|
1022
1035
|
flexGrow: 0,
|
|
@@ -1027,14 +1040,14 @@ const Et = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
1027
1040
|
})
|
|
1028
1041
|
]
|
|
1029
1042
|
}),
|
|
1030
|
-
|
|
1043
|
+
!j && K === "bottom" && /* @__PURE__ */ (0, _jsxruntime.jsx)(U, {}),
|
|
1031
1044
|
X && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1032
|
-
ref:
|
|
1045
|
+
ref: et,
|
|
1033
1046
|
"data-testid": "slot",
|
|
1034
1047
|
children: X
|
|
1035
1048
|
}),
|
|
1036
|
-
|
|
1037
|
-
Ne && /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
1049
|
+
!j && K === "content" && Ne && /* @__PURE__ */ (0, _jsxruntime.jsx)(U, {}),
|
|
1050
|
+
Ne && /* @__PURE__ */ (0, _jsxruntime.jsx)(Ut, {
|
|
1038
1051
|
size: o,
|
|
1039
1052
|
buttonPrimary: ne,
|
|
1040
1053
|
buttonSecondary: de,
|
|
@@ -1047,9 +1060,9 @@ const Et = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
1047
1060
|
]
|
|
1048
1061
|
})
|
|
1049
1062
|
})),
|
|
1050
|
-
|
|
1063
|
+
D && /* @__PURE__ */ (0, _jsxruntime.jsx)(ti, {
|
|
1051
1064
|
type: e,
|
|
1052
|
-
variant:
|
|
1065
|
+
variant: C,
|
|
1053
1066
|
footerVariant: We,
|
|
1054
1067
|
footerBackgroundColor: Ke,
|
|
1055
1068
|
footerDivider: Ye,
|
|
@@ -1058,15 +1071,15 @@ const Et = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
1058
1071
|
buttonPrimary: ne,
|
|
1059
1072
|
buttonSecondary: de,
|
|
1060
1073
|
buttonLink: le,
|
|
1061
|
-
hasBackgroundImageOrVideo:
|
|
1062
|
-
externalVariant:
|
|
1063
|
-
overlayColor:
|
|
1074
|
+
hasBackgroundImageOrVideo: F,
|
|
1075
|
+
externalVariant: $,
|
|
1076
|
+
overlayColor: ut
|
|
1064
1077
|
}),
|
|
1065
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
1078
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)($e, {
|
|
1066
1079
|
onClose: ye,
|
|
1067
1080
|
closeButtonLabel: qe,
|
|
1068
1081
|
actions: xe,
|
|
1069
|
-
variant:
|
|
1082
|
+
variant: F || R && S !== "left" ? "media" : C
|
|
1070
1083
|
})
|
|
1071
1084
|
]
|
|
1072
1085
|
});
|