@telefonica/mistica 14.32.1 → 14.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/mistica.css +1 -1
- package/dist/card.js +107 -105
- package/dist/community/blocks.d.ts +3 -3
- package/dist/credit-card-expiration-field.js +57 -50
- package/dist/highlighted-card.js +4 -3
- package/dist/hooks.js +53 -52
- package/dist/maybe-dismissable.js +7 -6
- package/dist/package-version.js +1 -1
- package/dist/responsive-layout.css-mistica.js +7 -10
- package/dist/responsive-layout.css.d.ts +0 -1
- package/dist/responsive-layout.js +17 -17
- package/dist/tabs.css-mistica.js +26 -14
- package/dist/tabs.css.d.ts +3 -1
- package/dist/tabs.js +37 -32
- package/dist-es/card.js +103 -101
- package/dist-es/credit-card-expiration-field.js +63 -56
- package/dist-es/highlighted-card.js +13 -12
- package/dist-es/hooks.js +49 -48
- package/dist-es/maybe-dismissable.js +16 -15
- package/dist-es/package-version.js +1 -1
- package/dist-es/responsive-layout.css-mistica.js +3 -3
- package/dist-es/responsive-layout.js +21 -21
- package/dist-es/style.css +1 -1
- package/dist-es/tabs.css-mistica.js +14 -8
- package/dist-es/tabs.js +58 -53
- package/package.json +1 -1
package/dist-es/card.js
CHANGED
|
@@ -85,10 +85,10 @@ import R from "./box.js";
|
|
|
85
85
|
import { Text2 as S, Text6 as Re, Text3 as Me, Text as oe } from "./text.js";
|
|
86
86
|
import { Boxed as $, InternalBoxed as se } from "./boxed.js";
|
|
87
87
|
import ee from "./button-group.js";
|
|
88
|
-
import
|
|
88
|
+
import re, { MediaBorderRadiusProvider as ze } from "./image.js";
|
|
89
89
|
import { BaseTouchable as V } from "./touchable.js";
|
|
90
90
|
import { vars as v } from "./skins/skin-contract.css-mistica.js";
|
|
91
|
-
import { cardActionIconButton as De, cardContainer as Oe, vars as He, touchableContainer as E, boxed as L, touchable as G, touchableMediaCardOverlay as Ve, mediaCard as
|
|
91
|
+
import { cardActionIconButton as De, cardContainer as Oe, vars as He, touchableContainer as E, boxed as L, touchable as G, touchableMediaCardOverlay as Ve, mediaCard as ae, mediaCardContent as Ee, mediaCardIcon as de, touchableNakedMediaOverlay as le, circularMediaOverlay as ce, nakedCardContent as me, touchableCardOverlay as J, dataCard as Ge, actions as he, snapCard as Pe, displayCardContainer as ue, displayCardBackground as pe, displayCardContent as fe, displayCardGradient as ge, cardAction as Xe, cardActionInverse as je, cardActionMedia as Fe, touchableCardOverlayInverse as ne, touchableCardOverlayMedia as ve } from "./card.css-mistica.js";
|
|
92
92
|
import { useTheme as K } from "./hooks.js";
|
|
93
93
|
import { sprinkles as ye } from "./sprinkles.css-mistica.js";
|
|
94
94
|
import _e from "./icon-button.js";
|
|
@@ -104,17 +104,17 @@ import { assignInlineVars as Ke } from "@vanilla-extract/dynamic";
|
|
|
104
104
|
import Qe from "./inline.js";
|
|
105
105
|
import { getPrefixedDataAttributes as Ye } from "./utils/dom.js";
|
|
106
106
|
import { isRunningAcceptanceTest as $e } from "./utils/platform.js";
|
|
107
|
-
const be = (
|
|
108
|
-
const { texts: i } = K(), t =
|
|
109
|
-
...
|
|
107
|
+
const be = (r, a)=>{
|
|
108
|
+
const { texts: i } = K(), t = r ? [
|
|
109
|
+
...r
|
|
110
110
|
] : [];
|
|
111
|
-
return
|
|
111
|
+
return a && t.push({
|
|
112
112
|
label: i.closeButtonLabel,
|
|
113
|
-
onPress:
|
|
113
|
+
onPress: a,
|
|
114
114
|
Icon: We
|
|
115
115
|
}), t;
|
|
116
|
-
}, Te = /*#__PURE__*/ y.createContext("default"), xe = 48,
|
|
117
|
-
var { Icon:
|
|
116
|
+
}, Te = /*#__PURE__*/ y.createContext("default"), xe = 48, er = (_param)=>{
|
|
117
|
+
var { Icon: r , label: a } = _param, i = _object_without_properties(_param, [
|
|
118
118
|
"Icon",
|
|
119
119
|
"label"
|
|
120
120
|
]);
|
|
@@ -124,7 +124,7 @@ const be = (a, r)=>{
|
|
|
124
124
|
media: "#000000"
|
|
125
125
|
};
|
|
126
126
|
return /* @__PURE__ */ e(_e, _object_spread_props(_object_spread({}, i), {
|
|
127
|
-
"aria-label":
|
|
127
|
+
"aria-label": a,
|
|
128
128
|
size: xe,
|
|
129
129
|
className: De,
|
|
130
130
|
style: {
|
|
@@ -136,58 +136,58 @@ const be = (a, r)=>{
|
|
|
136
136
|
inverse: je,
|
|
137
137
|
media: Fe
|
|
138
138
|
}[t],
|
|
139
|
-
children: /* @__PURE__ */ e(
|
|
139
|
+
children: /* @__PURE__ */ e(r, {
|
|
140
140
|
color: c[t],
|
|
141
141
|
size: 20
|
|
142
142
|
})
|
|
143
143
|
})
|
|
144
144
|
}));
|
|
145
145
|
}, U = (param)=>{
|
|
146
|
-
let { actions:
|
|
147
|
-
const c = be(
|
|
146
|
+
let { actions: r , padding: a = 8 , onClose: i , type: t = "default" } = param;
|
|
147
|
+
const c = be(r, i);
|
|
148
148
|
return c.length > 0 ? /* @__PURE__ */ e(Te.Provider, {
|
|
149
149
|
value: t,
|
|
150
150
|
children: /* @__PURE__ */ e("div", {
|
|
151
151
|
style: {
|
|
152
152
|
position: "absolute",
|
|
153
|
-
right:
|
|
154
|
-
top:
|
|
153
|
+
right: a,
|
|
154
|
+
top: a,
|
|
155
155
|
zIndex: 3
|
|
156
156
|
},
|
|
157
157
|
children: /* @__PURE__ */ e("div", {
|
|
158
158
|
className: ye({
|
|
159
159
|
display: "flex"
|
|
160
160
|
}),
|
|
161
|
-
children: c.map((d, l)=>"label" in d ? /* @__PURE__ */ e(
|
|
161
|
+
children: c.map((d, l)=>"label" in d ? /* @__PURE__ */ e(er, _object_spread({}, d), l) : d)
|
|
162
162
|
})
|
|
163
163
|
})
|
|
164
164
|
}) : /* @__PURE__ */ e(we, {});
|
|
165
|
-
},
|
|
165
|
+
}, rr = (r)=>r ? typeof r == "number" ? r : ({
|
|
166
166
|
"1:1": 1,
|
|
167
167
|
"16:9": 16 / 9,
|
|
168
168
|
"7:10": 7 / 10,
|
|
169
169
|
"9:10": 9 / 10,
|
|
170
170
|
auto: 0
|
|
171
|
-
})[
|
|
172
|
-
let { children:
|
|
173
|
-
const u =
|
|
171
|
+
})[r] : 0, P = /*#__PURE__*/ y.forwardRef((param, l)=>{
|
|
172
|
+
let { children: r , width: a = "100%" , height: i = "100%" , aspectRatio: t , dataAttributes: c , className: o , "aria-label": d } = param;
|
|
173
|
+
const u = rr(t);
|
|
174
174
|
return /* @__PURE__ */ e("section", _object_spread_props(_object_spread({}, Ye(c)), {
|
|
175
175
|
ref: l,
|
|
176
176
|
"aria-label": d,
|
|
177
177
|
className: ie(o, Oe),
|
|
178
178
|
style: _object_spread({
|
|
179
|
-
width:
|
|
179
|
+
width: a,
|
|
180
180
|
height: i
|
|
181
181
|
}, u ? Ke({
|
|
182
182
|
[He.aspectRatio]: String(u)
|
|
183
183
|
}) : {}),
|
|
184
|
-
children:
|
|
184
|
+
children: r
|
|
185
185
|
}));
|
|
186
|
-
}), Ae = (
|
|
186
|
+
}), Ae = (r)=>/* @__PURE__ */ e(re, {
|
|
187
187
|
width: "100%",
|
|
188
188
|
height: "100%",
|
|
189
|
-
src:
|
|
190
|
-
}),
|
|
189
|
+
src: r || ""
|
|
190
|
+
}), ar = {
|
|
191
191
|
loading: {
|
|
192
192
|
showSpinner: "loadingTimeout",
|
|
193
193
|
play: "playing",
|
|
@@ -202,36 +202,38 @@ const be = (a, r)=>{
|
|
|
202
202
|
},
|
|
203
203
|
playing: {
|
|
204
204
|
pause: "paused",
|
|
205
|
-
reset: "loading"
|
|
205
|
+
reset: "loading",
|
|
206
|
+
fail: "error"
|
|
206
207
|
},
|
|
207
208
|
paused: {
|
|
208
209
|
play: "playing",
|
|
209
|
-
reset: "loading"
|
|
210
|
+
reset: "loading",
|
|
211
|
+
fail: "error"
|
|
210
212
|
},
|
|
211
213
|
error: {
|
|
212
214
|
reset: "loading"
|
|
213
215
|
}
|
|
214
|
-
},
|
|
215
|
-
let { color:
|
|
216
|
+
}, nr = (r, a)=>ar[r][a] || r, ir = (param)=>/* @__PURE__ */ {
|
|
217
|
+
let { color: r } = param;
|
|
216
218
|
return e(qe, {
|
|
217
|
-
color:
|
|
219
|
+
color: r,
|
|
218
220
|
size: 16,
|
|
219
221
|
delay: "0"
|
|
220
222
|
});
|
|
221
223
|
}, Y = (param)=>/* @__PURE__ */ {
|
|
222
|
-
let { color:
|
|
224
|
+
let { color: r } = param;
|
|
223
225
|
return e(Le, {
|
|
224
|
-
color:
|
|
226
|
+
color: r,
|
|
225
227
|
size: 12
|
|
226
228
|
});
|
|
227
|
-
},
|
|
228
|
-
let { color:
|
|
229
|
+
}, tr = (param)=>/* @__PURE__ */ {
|
|
230
|
+
let { color: r } = param;
|
|
229
231
|
return e(Ue, {
|
|
230
|
-
color:
|
|
232
|
+
color: r,
|
|
231
233
|
size: 12
|
|
232
234
|
});
|
|
233
|
-
}, Ie = (
|
|
234
|
-
const { texts: t } = K(), c = y.useRef(null), [o, d] = y.useReducer(
|
|
235
|
+
}, Ie = (r, a, i)=>{
|
|
236
|
+
const { texts: t } = K(), c = y.useRef(null), [o, d] = y.useReducer(nr, "loading");
|
|
235
237
|
y.useEffect(()=>{
|
|
236
238
|
var h;
|
|
237
239
|
const s = setTimeout(()=>d("showSpinner"), 2e3);
|
|
@@ -239,21 +241,21 @@ const be = (a, r)=>{
|
|
|
239
241
|
clearTimeout(s), d("reset");
|
|
240
242
|
};
|
|
241
243
|
}, [
|
|
242
|
-
|
|
244
|
+
r
|
|
243
245
|
]);
|
|
244
|
-
const l = y.useMemo(()=>
|
|
246
|
+
const l = y.useMemo(()=>r !== void 0 ? /* @__PURE__ */ e(Je, {
|
|
245
247
|
ref: Ze(c, i),
|
|
246
|
-
src:
|
|
248
|
+
src: r,
|
|
247
249
|
width: "100%",
|
|
248
250
|
height: "100%",
|
|
249
|
-
poster:
|
|
251
|
+
poster: a,
|
|
250
252
|
onError: ()=>d("fail"),
|
|
251
253
|
onPause: ()=>d("pause"),
|
|
252
254
|
onPlay: ()=>d("play")
|
|
253
255
|
}) : void 0, [
|
|
254
256
|
i,
|
|
255
|
-
|
|
256
|
-
|
|
257
|
+
r,
|
|
258
|
+
a
|
|
257
259
|
]), u = ()=>{
|
|
258
260
|
const s = c.current;
|
|
259
261
|
s && (o === "loading" ? d("showSpinner") : o === "paused" ? s.play() : o === "playing" && s.pause());
|
|
@@ -265,8 +267,8 @@ const be = (a, r)=>{
|
|
|
265
267
|
Icon: {
|
|
266
268
|
playing: Y,
|
|
267
269
|
loading: Y,
|
|
268
|
-
paused:
|
|
269
|
-
loadingTimeout: $e() ? Y :
|
|
270
|
+
paused: tr,
|
|
271
|
+
loadingTimeout: $e() ? Y : ir
|
|
270
272
|
}[o],
|
|
271
273
|
onPress: u,
|
|
272
274
|
label: {
|
|
@@ -282,11 +284,11 @@ const be = (a, r)=>{
|
|
|
282
284
|
videoAction: m
|
|
283
285
|
};
|
|
284
286
|
}, te = (param)=>{
|
|
285
|
-
let { headline:
|
|
286
|
-
const { textPresets: f } = K(), g = ()=>
|
|
287
|
+
let { headline: r , pretitle: a , pretitleLinesMax: i , title: t , titleLinesMax: c , subtitle: o , subtitleLinesMax: d , description: l , descriptionLinesMax: u , extra: m , button: s , buttonLink: h } = param;
|
|
288
|
+
const { textPresets: f } = K(), g = ()=>r ? typeof r == "string" ? /* @__PURE__ */ e(ke, {
|
|
287
289
|
type: "promo",
|
|
288
|
-
children:
|
|
289
|
-
}) :
|
|
290
|
+
children: r
|
|
291
|
+
}) : r : null;
|
|
290
292
|
return /* @__PURE__ */ n("div", {
|
|
291
293
|
className: ye({
|
|
292
294
|
display: "flex",
|
|
@@ -300,7 +302,7 @@ const be = (a, r)=>{
|
|
|
300
302
|
/* @__PURE__ */ n(N, {
|
|
301
303
|
space: 8,
|
|
302
304
|
children: [
|
|
303
|
-
(
|
|
305
|
+
(r || a || t || o) && /* @__PURE__ */ e("header", {
|
|
304
306
|
children: /* @__PURE__ */ n(N, {
|
|
305
307
|
space: 8,
|
|
306
308
|
children: [
|
|
@@ -308,12 +310,12 @@ const be = (a, r)=>{
|
|
|
308
310
|
/* @__PURE__ */ n(N, {
|
|
309
311
|
space: 4,
|
|
310
312
|
children: [
|
|
311
|
-
|
|
313
|
+
a && /* @__PURE__ */ e(S, {
|
|
312
314
|
truncate: i,
|
|
313
315
|
as: "div",
|
|
314
316
|
regular: !0,
|
|
315
317
|
hyphens: "auto",
|
|
316
|
-
children:
|
|
318
|
+
children: a
|
|
317
319
|
}),
|
|
318
320
|
/* @__PURE__ */ e(oe, {
|
|
319
321
|
mobileSize: 18,
|
|
@@ -362,8 +364,8 @@ const be = (a, r)=>{
|
|
|
362
364
|
})
|
|
363
365
|
]
|
|
364
366
|
});
|
|
365
|
-
},
|
|
366
|
-
var { media:
|
|
367
|
+
}, zr = /*#__PURE__*/ y.forwardRef((_param, M)=>{
|
|
368
|
+
var { media: r , icon: a , headline: i , pretitle: t , pretitleLinesMax: c , subtitle: o , subtitleLinesMax: d , title: l , titleLinesMax: u , description: m , descriptionLinesMax: s , extra: h , actions: f , button: g , buttonLink: w , dataAttributes: T , "aria-label": b , onClose: C } = _param, p = _object_without_properties(_param, [
|
|
367
369
|
"media",
|
|
368
370
|
"icon",
|
|
369
371
|
"headline",
|
|
@@ -406,11 +408,11 @@ const be = (a, r)=>{
|
|
|
406
408
|
className: Ve
|
|
407
409
|
}),
|
|
408
410
|
/* @__PURE__ */ n("div", {
|
|
409
|
-
className:
|
|
411
|
+
className: ae,
|
|
410
412
|
children: [
|
|
411
413
|
/* @__PURE__ */ e(ze, {
|
|
412
414
|
value: !1,
|
|
413
|
-
children:
|
|
415
|
+
children: r
|
|
414
416
|
}),
|
|
415
417
|
/* @__PURE__ */ e("div", {
|
|
416
418
|
className: Ee,
|
|
@@ -429,7 +431,7 @@ const be = (a, r)=>{
|
|
|
429
431
|
buttonLink: w
|
|
430
432
|
})
|
|
431
433
|
}),
|
|
432
|
-
|
|
434
|
+
a && /* @__PURE__ */ e(R, {
|
|
433
435
|
className: de,
|
|
434
436
|
paddingLeft: {
|
|
435
437
|
mobile: 16,
|
|
@@ -439,7 +441,7 @@ const be = (a, r)=>{
|
|
|
439
441
|
mobile: 16,
|
|
440
442
|
desktop: 24
|
|
441
443
|
},
|
|
442
|
-
children:
|
|
444
|
+
children: a
|
|
443
445
|
})
|
|
444
446
|
]
|
|
445
447
|
})
|
|
@@ -453,8 +455,8 @@ const be = (a, r)=>{
|
|
|
453
455
|
})
|
|
454
456
|
]
|
|
455
457
|
});
|
|
456
|
-
}),
|
|
457
|
-
var { media:
|
|
458
|
+
}), Dr = /*#__PURE__*/ y.forwardRef((_param, M)=>{
|
|
459
|
+
var { media: r , icon: a , headline: i , pretitle: t , pretitleLinesMax: c , subtitle: o , subtitleLinesMax: d , title: l , titleLinesMax: u , description: m , descriptionLinesMax: s , extra: h , actions: f , button: g , buttonLink: w , dataAttributes: T , "aria-label": b , onClose: C } = _param, p = _object_without_properties(_param, [
|
|
458
460
|
"media",
|
|
459
461
|
"icon",
|
|
460
462
|
"headline",
|
|
@@ -474,7 +476,7 @@ const be = (a, r)=>{
|
|
|
474
476
|
"aria-label",
|
|
475
477
|
"onClose"
|
|
476
478
|
]);
|
|
477
|
-
const A = p.href || p.to || p.onPress, D =
|
|
479
|
+
const A = p.href || p.to || p.onPress, D = r && r.type === re && r.props.circular;
|
|
478
480
|
return /* @__PURE__ */ n(P, {
|
|
479
481
|
ref: M,
|
|
480
482
|
dataAttributes: _object_spread({
|
|
@@ -489,7 +491,7 @@ const be = (a, r)=>{
|
|
|
489
491
|
className: G,
|
|
490
492
|
"aria-label": b,
|
|
491
493
|
children: /* @__PURE__ */ n("div", {
|
|
492
|
-
className:
|
|
494
|
+
className: ae,
|
|
493
495
|
children: [
|
|
494
496
|
/* @__PURE__ */ n("div", {
|
|
495
497
|
style: {
|
|
@@ -501,7 +503,7 @@ const be = (a, r)=>{
|
|
|
501
503
|
[ce]: D
|
|
502
504
|
})
|
|
503
505
|
}),
|
|
504
|
-
|
|
506
|
+
r
|
|
505
507
|
]
|
|
506
508
|
}),
|
|
507
509
|
/* @__PURE__ */ e("div", {
|
|
@@ -521,7 +523,7 @@ const be = (a, r)=>{
|
|
|
521
523
|
buttonLink: w
|
|
522
524
|
})
|
|
523
525
|
}),
|
|
524
|
-
|
|
526
|
+
a && /* @__PURE__ */ e(R, {
|
|
525
527
|
className: de,
|
|
526
528
|
paddingLeft: {
|
|
527
529
|
mobile: 16,
|
|
@@ -531,7 +533,7 @@ const be = (a, r)=>{
|
|
|
531
533
|
mobile: 16,
|
|
532
534
|
desktop: 24
|
|
533
535
|
},
|
|
534
|
-
children:
|
|
536
|
+
children: a
|
|
535
537
|
})
|
|
536
538
|
]
|
|
537
539
|
})
|
|
@@ -543,8 +545,8 @@ const be = (a, r)=>{
|
|
|
543
545
|
})
|
|
544
546
|
]
|
|
545
547
|
});
|
|
546
|
-
}),
|
|
547
|
-
var { media:
|
|
548
|
+
}), Or = /*#__PURE__*/ y.forwardRef((_param, h)=>{
|
|
549
|
+
var { media: r , title: a , titleLinesMax: i , subtitle: t , subtitleLinesMax: c , description: o , descriptionLinesMax: d , extra: l , dataAttributes: u , "aria-label": m } = _param, s = _object_without_properties(_param, [
|
|
548
550
|
"media",
|
|
549
551
|
"title",
|
|
550
552
|
"titleLinesMax",
|
|
@@ -556,7 +558,7 @@ const be = (a, r)=>{
|
|
|
556
558
|
"dataAttributes",
|
|
557
559
|
"aria-label"
|
|
558
560
|
]);
|
|
559
|
-
const f = s.href || s.to || s.onPress, g =
|
|
561
|
+
const f = s.href || s.to || s.onPress, g = r && r.type === re && r.props.circular;
|
|
560
562
|
return /* @__PURE__ */ e(P, {
|
|
561
563
|
ref: h,
|
|
562
564
|
dataAttributes: _object_spread({
|
|
@@ -570,7 +572,7 @@ const be = (a, r)=>{
|
|
|
570
572
|
className: G,
|
|
571
573
|
"aria-label": m,
|
|
572
574
|
children: /* @__PURE__ */ n("div", {
|
|
573
|
-
className:
|
|
575
|
+
className: ae,
|
|
574
576
|
children: [
|
|
575
577
|
/* @__PURE__ */ n("div", {
|
|
576
578
|
style: {
|
|
@@ -582,7 +584,7 @@ const be = (a, r)=>{
|
|
|
582
584
|
[ce]: g
|
|
583
585
|
})
|
|
584
586
|
}),
|
|
585
|
-
|
|
587
|
+
r
|
|
586
588
|
]
|
|
587
589
|
}),
|
|
588
590
|
/* @__PURE__ */ n("div", {
|
|
@@ -593,12 +595,12 @@ const be = (a, r)=>{
|
|
|
593
595
|
/* @__PURE__ */ n(N, {
|
|
594
596
|
space: 8,
|
|
595
597
|
children: [
|
|
596
|
-
|
|
598
|
+
a && /* @__PURE__ */ e(S, {
|
|
597
599
|
truncate: i,
|
|
598
600
|
as: "h3",
|
|
599
601
|
regular: !0,
|
|
600
602
|
hyphens: "auto",
|
|
601
|
-
children:
|
|
603
|
+
children: a
|
|
602
604
|
}),
|
|
603
605
|
t && /* @__PURE__ */ e(S, {
|
|
604
606
|
truncate: c,
|
|
@@ -628,8 +630,8 @@ const be = (a, r)=>{
|
|
|
628
630
|
})
|
|
629
631
|
}))
|
|
630
632
|
});
|
|
631
|
-
}),
|
|
632
|
-
var { icon:
|
|
633
|
+
}), Hr = /*#__PURE__*/ y.forwardRef((_param, M)=>{
|
|
634
|
+
var { icon: r , headline: a , pretitle: i , pretitleLinesMax: t , title: c , titleLinesMax: o , subtitle: d , subtitleLinesMax: l , description: u , descriptionLinesMax: m , extra: s , actions: h , button: f , buttonLink: g , dataAttributes: w , "aria-label": T , onClose: b , aspectRatio: C } = _param, p = _object_without_properties(_param, [
|
|
633
635
|
"icon",
|
|
634
636
|
"headline",
|
|
635
637
|
"pretitle",
|
|
@@ -649,7 +651,7 @@ const be = (a, r)=>{
|
|
|
649
651
|
"onClose",
|
|
650
652
|
"aspectRatio"
|
|
651
653
|
]);
|
|
652
|
-
const A = !!
|
|
654
|
+
const A = !!r, D = p.href || p.to || p.onPress, O = be(h, b), X = {
|
|
653
655
|
marginRight: -16,
|
|
654
656
|
marginTop: -24,
|
|
655
657
|
width: xe * O.length
|
|
@@ -685,9 +687,9 @@ const be = (a, r)=>{
|
|
|
685
687
|
/* @__PURE__ */ n(N, {
|
|
686
688
|
space: 16,
|
|
687
689
|
children: [
|
|
688
|
-
A ?
|
|
690
|
+
A ? r : null,
|
|
689
691
|
/* @__PURE__ */ e(te, {
|
|
690
|
-
headline:
|
|
692
|
+
headline: a,
|
|
691
693
|
pretitle: i,
|
|
692
694
|
pretitleLinesMax: t,
|
|
693
695
|
title: c,
|
|
@@ -726,8 +728,8 @@ const be = (a, r)=>{
|
|
|
726
728
|
})
|
|
727
729
|
]
|
|
728
730
|
});
|
|
729
|
-
}),
|
|
730
|
-
var { icon:
|
|
731
|
+
}), Vr = /*#__PURE__*/ y.forwardRef((_param, h)=>{
|
|
732
|
+
var { icon: r , title: a , titleLinesMax: i , subtitle: t , subtitleLinesMax: c , dataAttributes: o , "aria-label": d , extra: l , isInverse: u = !1 , aspectRatio: m } = _param, s = _object_without_properties(_param, [
|
|
731
733
|
"icon",
|
|
732
734
|
"title",
|
|
733
735
|
"titleLinesMax",
|
|
@@ -766,19 +768,19 @@ const be = (a, r)=>{
|
|
|
766
768
|
children: [
|
|
767
769
|
/* @__PURE__ */ n("div", {
|
|
768
770
|
children: [
|
|
769
|
-
|
|
771
|
+
r && /* @__PURE__ */ e(R, {
|
|
770
772
|
paddingBottom: 16,
|
|
771
|
-
children:
|
|
773
|
+
children: r
|
|
772
774
|
}),
|
|
773
775
|
/* @__PURE__ */ n(N, {
|
|
774
776
|
space: 4,
|
|
775
777
|
children: [
|
|
776
|
-
|
|
778
|
+
a && /* @__PURE__ */ e(S, {
|
|
777
779
|
truncate: i,
|
|
778
780
|
as: "h3",
|
|
779
781
|
regular: !0,
|
|
780
782
|
hyphens: "auto",
|
|
781
|
-
children:
|
|
783
|
+
children: a
|
|
782
784
|
}),
|
|
783
785
|
t && /* @__PURE__ */ e(S, {
|
|
784
786
|
truncate: c,
|
|
@@ -802,7 +804,7 @@ const be = (a, r)=>{
|
|
|
802
804
|
})
|
|
803
805
|
});
|
|
804
806
|
}), Be = /*#__PURE__*/ y.forwardRef((_param, x)=>{
|
|
805
|
-
var { isInverse:
|
|
807
|
+
var { isInverse: r , backgroundImage: a , backgroundVideo: i , backgroundVideoRef: t , poster: c , icon: o , headline: d , pretitle: l , pretitleLinesMax: u , title: m , titleLinesMax: s , description: h , descriptionLinesMax: f , extra: g , button: w , secondaryButton: T , onClose: b , actions: C , buttonLink: p , dataAttributes: M , width: A , height: D , aspectRatio: O , "aria-label": X } = _param, I = _object_without_properties(_param, [
|
|
806
808
|
"isInverse",
|
|
807
809
|
"backgroundImage",
|
|
808
810
|
"backgroundVideo",
|
|
@@ -828,11 +830,11 @@ const be = (a, r)=>{
|
|
|
828
830
|
"aspectRatio",
|
|
829
831
|
"aria-label"
|
|
830
832
|
]);
|
|
831
|
-
const H =
|
|
833
|
+
const H = a !== void 0, B = i !== void 0, Z = Ae(a), { video: F , videoAction: z } = Ie(i, c, t);
|
|
832
834
|
B && (C = z ? [
|
|
833
835
|
z
|
|
834
836
|
] : []);
|
|
835
|
-
const _ = Ce(), k = H || B, W = k ? "0 0 16px rgba(0,0,0,0.4)" : void 0, q = (C == null ? void 0 : C.length) || b, j = I.href || I.to || I.onPress, Q = H || B ? ve :
|
|
837
|
+
const _ = Ce(), k = H || B, W = k ? "0 0 16px rgba(0,0,0,0.4)" : void 0, q = (C == null ? void 0 : C.length) || b, j = I.href || I.to || I.onPress, Q = H || B ? ve : r ? ne : J;
|
|
836
838
|
return /* @__PURE__ */ n(P, {
|
|
837
839
|
dataAttributes: M,
|
|
838
840
|
ref: x,
|
|
@@ -847,7 +849,7 @@ const be = (a, r)=>{
|
|
|
847
849
|
className: L,
|
|
848
850
|
width: "100%",
|
|
849
851
|
minHeight: "100%",
|
|
850
|
-
isInverse:
|
|
852
|
+
isInverse: r,
|
|
851
853
|
background: H || B ? _ ? v.colors.backgroundContainerBrandOverInverse : v.colors.backgroundContainer : void 0,
|
|
852
854
|
children: /* @__PURE__ */ n(V, _object_spread_props(_object_spread({
|
|
853
855
|
maybe: !0
|
|
@@ -956,33 +958,33 @@ const be = (a, r)=>{
|
|
|
956
958
|
/* @__PURE__ */ e(U, {
|
|
957
959
|
onClose: b,
|
|
958
960
|
actions: C,
|
|
959
|
-
type: H || B ? "media" :
|
|
961
|
+
type: H || B ? "media" : r ? "inverse" : "default"
|
|
960
962
|
})
|
|
961
963
|
]
|
|
962
964
|
});
|
|
963
|
-
}),
|
|
964
|
-
var { dataAttributes:
|
|
965
|
+
}), Er = /*#__PURE__*/ y.forwardRef((_param, i)=>/* @__PURE__ */ {
|
|
966
|
+
var { dataAttributes: r } = _param, a = _object_without_properties(_param, [
|
|
965
967
|
"dataAttributes"
|
|
966
968
|
]);
|
|
967
|
-
return e(Be, _object_spread_props(_object_spread({},
|
|
969
|
+
return e(Be, _object_spread_props(_object_spread({}, a), {
|
|
968
970
|
ref: i,
|
|
969
971
|
isInverse: !0,
|
|
970
|
-
dataAttributes: _object_spread_props(_object_spread({},
|
|
972
|
+
dataAttributes: _object_spread_props(_object_spread({}, r), {
|
|
971
973
|
"component-name": "DisplayMediaCard"
|
|
972
974
|
})
|
|
973
975
|
}));
|
|
974
|
-
}),
|
|
975
|
-
var { dataAttributes:
|
|
976
|
+
}), Gr = /*#__PURE__*/ y.forwardRef((_param, i)=>/* @__PURE__ */ {
|
|
977
|
+
var { dataAttributes: r } = _param, a = _object_without_properties(_param, [
|
|
976
978
|
"dataAttributes"
|
|
977
979
|
]);
|
|
978
|
-
return e(Be, _object_spread_props(_object_spread({},
|
|
980
|
+
return e(Be, _object_spread_props(_object_spread({}, a), {
|
|
979
981
|
ref: i,
|
|
980
|
-
dataAttributes: _object_spread_props(_object_spread({},
|
|
982
|
+
dataAttributes: _object_spread_props(_object_spread({}, r), {
|
|
981
983
|
"component-name": "DisplayDataCard"
|
|
982
984
|
})
|
|
983
985
|
}));
|
|
984
|
-
}),
|
|
985
|
-
var { dataAttributes:
|
|
986
|
+
}), Pr = /*#__PURE__*/ y.forwardRef((_param, X)=>{
|
|
987
|
+
var { dataAttributes: r , backgroundImage: a , backgroundVideo: i , poster: t , backgroundVideoRef: c , width: o , height: d , aspectRatio: l = "7:10" , ariaLabel: u , actions: m , onClose: s , icon: h , headline: f , pretitle: g , pretitleLinesMax: w , title: T , titleLinesMax: b , description: C , descriptionLinesMax: p , variant: M , isInverse: A , backgroundColor: D } = _param, O = _object_without_properties(_param, [
|
|
986
988
|
"dataAttributes",
|
|
987
989
|
"backgroundImage",
|
|
988
990
|
"backgroundVideo",
|
|
@@ -1006,7 +1008,7 @@ const be = (a, r)=>{
|
|
|
1006
1008
|
"isInverse",
|
|
1007
1009
|
"backgroundColor"
|
|
1008
1010
|
]);
|
|
1009
|
-
const I =
|
|
1011
|
+
const I = a !== void 0, x = i !== void 0, H = Ae(a), { video: B , videoAction: Z } = Ie(i, t, c);
|
|
1010
1012
|
x && (m = Z ? [
|
|
1011
1013
|
Z
|
|
1012
1014
|
] : []);
|
|
@@ -1018,7 +1020,7 @@ const be = (a, r)=>{
|
|
|
1018
1020
|
return /* @__PURE__ */ n(P, {
|
|
1019
1021
|
width: o,
|
|
1020
1022
|
height: d,
|
|
1021
|
-
dataAttributes: _object_spread_props(_object_spread({},
|
|
1023
|
+
dataAttributes: _object_spread_props(_object_spread({}, r), {
|
|
1022
1024
|
"component-name": "PosterCard"
|
|
1023
1025
|
}),
|
|
1024
1026
|
ref: X,
|
|
@@ -1145,4 +1147,4 @@ const be = (a, r)=>{
|
|
|
1145
1147
|
]
|
|
1146
1148
|
});
|
|
1147
1149
|
});
|
|
1148
|
-
export {
|
|
1150
|
+
export { er as CardActionIconButton, ir as CardActionSpinner, U as CardActionsGroup, Hr as DataCard, Gr as DisplayDataCard, Er as DisplayMediaCard, zr as MediaCard, Dr as NakedCard, Pr as PosterCard, Or as SmallNakedCard, Vr as SnapCard, xe as TOP_ACTION_BUTTON_SIZE };
|