@telefonica/mistica 14.5.0 → 14.6.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/avatar.d.ts +1 -0
- package/dist/avatar.js +20 -18
- package/dist/card.js +112 -100
- package/dist/highlighted-card.js +2 -0
- package/dist/package-version.js +1 -1
- package/dist-es/avatar.js +28 -26
- package/dist-es/card.js +143 -131
- package/dist-es/highlighted-card.js +9 -7
- package/dist-es/package-version.js +1 -1
- package/dist-es/style.css +1 -1
- package/package.json +1 -1
package/dist-es/card.js
CHANGED
|
@@ -87,30 +87,30 @@ import k from "./button-group.js";
|
|
|
87
87
|
import { MediaBorderRadiusProvider as U } from "./image.js";
|
|
88
88
|
import { BaseTouchable as V } from "./touchable.js";
|
|
89
89
|
import { vars as B } from "./skins/skin-contract.css-mistica.js";
|
|
90
|
-
import { boxed as D, mediaCard as Y, mediaCardContent as Z, dataCard as ee, actions as E, snapCardTouchableHover as re, snapCardTouchableHoverTransparent as ae, snapCard as
|
|
90
|
+
import { boxed as D, mediaCard as Y, mediaCardContent as Z, dataCard as ee, actions as E, snapCardTouchableHover as re, snapCardTouchableHoverTransparent as ae, snapCard as te, displayCard as X, displayCardGradient as j, cardActionIconButton as ie, cardActionInverse as ne, cardAction as de } from "./card.css-mistica.js";
|
|
91
91
|
import { useTheme as H } from "./hooks.js";
|
|
92
92
|
import { sprinkles as z } from "./sprinkles.css-mistica.js";
|
|
93
93
|
import oe from "./inline.js";
|
|
94
|
-
import
|
|
95
|
-
import
|
|
96
|
-
import { jsx as e, jsxs as
|
|
94
|
+
import se from "./icon-button.js";
|
|
95
|
+
import ce from "./generated/mistica-icons/icon-close-regular.js";
|
|
96
|
+
import { jsx as e, jsxs as i } from "./_virtual/jsx-runtime.js";
|
|
97
97
|
const O = (param)=>/* @__PURE__ */ {
|
|
98
98
|
let { actions: a , isInverse: r } = param;
|
|
99
99
|
return e(oe, {
|
|
100
100
|
space: 0,
|
|
101
101
|
children: a.map((param, o)=>/* @__PURE__ */ {
|
|
102
|
-
let { onPress:
|
|
103
|
-
return e(
|
|
102
|
+
let { onPress: t , label: n , Icon: l } = param;
|
|
103
|
+
return e(se, {
|
|
104
104
|
size: 48,
|
|
105
|
-
onPress:
|
|
105
|
+
onPress: t,
|
|
106
106
|
"aria-label": n,
|
|
107
|
-
className:
|
|
107
|
+
className: ie,
|
|
108
108
|
style: {
|
|
109
109
|
display: "flex"
|
|
110
110
|
},
|
|
111
111
|
children: /* @__PURE__ */ e("div", {
|
|
112
112
|
className: r ? ne : de,
|
|
113
|
-
children: /* @__PURE__ */ e(
|
|
113
|
+
children: /* @__PURE__ */ e(l, {
|
|
114
114
|
color: B.colors.neutralHigh,
|
|
115
115
|
size: 20
|
|
116
116
|
})
|
|
@@ -119,36 +119,36 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
119
119
|
})
|
|
120
120
|
});
|
|
121
121
|
}, L = (a, r)=>{
|
|
122
|
-
const { texts:
|
|
122
|
+
const { texts: t } = H(), n = a ? [
|
|
123
123
|
...a
|
|
124
124
|
] : [];
|
|
125
125
|
return r && n.push({
|
|
126
|
-
label:
|
|
126
|
+
label: t.closeButtonLabel,
|
|
127
127
|
onPress: r,
|
|
128
|
-
Icon:
|
|
128
|
+
Icon: ce
|
|
129
129
|
}), n;
|
|
130
|
-
},
|
|
130
|
+
}, le = {
|
|
131
131
|
"1:1": "1",
|
|
132
132
|
"16:9": "16 / 9",
|
|
133
133
|
"7:10": "7 / 10",
|
|
134
134
|
"9:10": "9 / 10",
|
|
135
135
|
auto: "auto"
|
|
136
136
|
}, G = (param)=>{
|
|
137
|
-
let { children: a , width: r = "100%" , height:
|
|
138
|
-
const
|
|
139
|
-
return /* @__PURE__ */
|
|
140
|
-
"aria-label":
|
|
137
|
+
let { children: a , width: r = "100%" , height: t = "100%" , minWidth: n , minHeight: l , aspectRatio: o , actions: d , onClose: h , isInverse: p , "aria-label": s } = param;
|
|
138
|
+
const c = L(d, h), m = c.length > 0, u = o ? typeof o == "number" ? String(o) : le[o] : void 0;
|
|
139
|
+
return /* @__PURE__ */ i("section", {
|
|
140
|
+
"aria-label": s,
|
|
141
141
|
style: {
|
|
142
142
|
width: r,
|
|
143
|
-
height:
|
|
143
|
+
height: t,
|
|
144
144
|
minWidth: n,
|
|
145
|
-
minHeight:
|
|
146
|
-
aspectRatio:
|
|
145
|
+
minHeight: l,
|
|
146
|
+
aspectRatio: u,
|
|
147
147
|
position: "relative"
|
|
148
148
|
},
|
|
149
149
|
children: [
|
|
150
150
|
a,
|
|
151
|
-
|
|
151
|
+
m && /* @__PURE__ */ e("div", {
|
|
152
152
|
style: {
|
|
153
153
|
position: "absolute",
|
|
154
154
|
right: 8,
|
|
@@ -156,19 +156,19 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
156
156
|
zIndex: 2
|
|
157
157
|
},
|
|
158
158
|
children: /* @__PURE__ */ e(O, {
|
|
159
|
-
actions:
|
|
159
|
+
actions: c,
|
|
160
160
|
isInverse: p
|
|
161
161
|
})
|
|
162
162
|
})
|
|
163
163
|
]
|
|
164
164
|
});
|
|
165
165
|
}, $ = (param)=>{
|
|
166
|
-
let { headline: a , pretitle: r , pretitleLinesMax:
|
|
167
|
-
const { textPresets:
|
|
166
|
+
let { headline: a , pretitle: r , pretitleLinesMax: t , title: n , titleLinesMax: l , subtitle: o , subtitleLinesMax: d , description: h , descriptionLinesMax: p , extra: s , button: c , buttonLink: m } = param;
|
|
167
|
+
const { textPresets: u } = H(), y = ()=>a ? typeof a == "string" ? /* @__PURE__ */ e(J, {
|
|
168
168
|
type: "promo",
|
|
169
169
|
children: a
|
|
170
170
|
}) : a : null;
|
|
171
|
-
return /* @__PURE__ */
|
|
171
|
+
return /* @__PURE__ */ i("div", {
|
|
172
172
|
className: z({
|
|
173
173
|
display: "flex",
|
|
174
174
|
flex: 1,
|
|
@@ -176,23 +176,24 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
176
176
|
flexDirection: "column"
|
|
177
177
|
}),
|
|
178
178
|
children: [
|
|
179
|
-
/* @__PURE__ */
|
|
179
|
+
/* @__PURE__ */ i("div", {
|
|
180
180
|
children: [
|
|
181
|
-
/* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ i(g, {
|
|
182
182
|
space: 8,
|
|
183
183
|
children: [
|
|
184
184
|
(a || r || n || o) && /* @__PURE__ */ e("header", {
|
|
185
|
-
children: /* @__PURE__ */
|
|
185
|
+
children: /* @__PURE__ */ i(g, {
|
|
186
186
|
space: 8,
|
|
187
187
|
children: [
|
|
188
|
-
|
|
189
|
-
/* @__PURE__ */
|
|
188
|
+
y(),
|
|
189
|
+
/* @__PURE__ */ i(g, {
|
|
190
190
|
space: 4,
|
|
191
191
|
children: [
|
|
192
192
|
r && /* @__PURE__ */ e(C, {
|
|
193
|
-
truncate:
|
|
193
|
+
truncate: t,
|
|
194
194
|
as: "div",
|
|
195
195
|
regular: !0,
|
|
196
|
+
hyphens: "auto",
|
|
196
197
|
children: r
|
|
197
198
|
}),
|
|
198
199
|
/* @__PURE__ */ e(P, {
|
|
@@ -200,15 +201,17 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
200
201
|
mobileLineHeight: "24px",
|
|
201
202
|
desktopSize: 20,
|
|
202
203
|
desktopLineHeight: "28px",
|
|
203
|
-
truncate:
|
|
204
|
-
weight:
|
|
204
|
+
truncate: l,
|
|
205
|
+
weight: u.cardTitle.weight,
|
|
205
206
|
as: "h3",
|
|
207
|
+
hyphens: "auto",
|
|
206
208
|
children: n
|
|
207
209
|
}),
|
|
208
210
|
/* @__PURE__ */ e(C, {
|
|
209
211
|
truncate: d,
|
|
210
212
|
as: "div",
|
|
211
213
|
regular: !0,
|
|
214
|
+
hyphens: "auto",
|
|
212
215
|
children: o
|
|
213
216
|
})
|
|
214
217
|
]
|
|
@@ -221,40 +224,41 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
221
224
|
as: "p",
|
|
222
225
|
regular: !0,
|
|
223
226
|
color: B.colors.textSecondary,
|
|
227
|
+
hyphens: "auto",
|
|
224
228
|
children: h
|
|
225
229
|
})
|
|
226
230
|
]
|
|
227
231
|
}),
|
|
228
|
-
|
|
229
|
-
children:
|
|
232
|
+
s && /* @__PURE__ */ e("div", {
|
|
233
|
+
children: s
|
|
230
234
|
})
|
|
231
235
|
]
|
|
232
236
|
}),
|
|
233
|
-
(
|
|
237
|
+
(c || m) && /* @__PURE__ */ e("div", {
|
|
234
238
|
className: E,
|
|
235
239
|
children: /* @__PURE__ */ e(k, {
|
|
236
|
-
primaryButton:
|
|
237
|
-
link:
|
|
240
|
+
primaryButton: c,
|
|
241
|
+
link: m
|
|
238
242
|
})
|
|
239
243
|
})
|
|
240
244
|
]
|
|
241
245
|
});
|
|
242
|
-
}, De = /*#__PURE__*/ N.forwardRef((param,
|
|
243
|
-
let { media: a , headline: r , pretitle:
|
|
246
|
+
}, De = /*#__PURE__*/ N.forwardRef((param, v)=>/* @__PURE__ */ {
|
|
247
|
+
let { media: a , headline: r , pretitle: t , pretitleLinesMax: n , subtitle: l , subtitleLinesMax: o , title: d , titleLinesMax: h , description: p , descriptionLinesMax: s , extra: c , actions: m , button: u , buttonLink: y , dataAttributes: f , "aria-label": b , onClose: S } = param;
|
|
244
248
|
return e(G, {
|
|
245
249
|
onClose: S,
|
|
246
|
-
actions:
|
|
247
|
-
"aria-label":
|
|
250
|
+
actions: m,
|
|
251
|
+
"aria-label": b,
|
|
248
252
|
isInverse: !0,
|
|
249
253
|
children: /* @__PURE__ */ e(_, {
|
|
250
254
|
className: D,
|
|
251
255
|
dataAttributes: _objectSpread({
|
|
252
256
|
"component-name": "MediaCard"
|
|
253
257
|
}, f),
|
|
254
|
-
ref:
|
|
258
|
+
ref: v,
|
|
255
259
|
width: "100%",
|
|
256
260
|
height: "100%",
|
|
257
|
-
children: /* @__PURE__ */
|
|
261
|
+
children: /* @__PURE__ */ i("div", {
|
|
258
262
|
className: Y,
|
|
259
263
|
children: [
|
|
260
264
|
/* @__PURE__ */ e(U, {
|
|
@@ -265,36 +269,36 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
265
269
|
className: Z,
|
|
266
270
|
children: /* @__PURE__ */ e($, {
|
|
267
271
|
headline: r,
|
|
268
|
-
pretitle:
|
|
272
|
+
pretitle: t,
|
|
269
273
|
pretitleLinesMax: n,
|
|
270
274
|
title: d,
|
|
271
275
|
titleLinesMax: h,
|
|
272
|
-
subtitle:
|
|
276
|
+
subtitle: l,
|
|
273
277
|
subtitleLinesMax: o,
|
|
274
278
|
description: p,
|
|
275
|
-
descriptionLinesMax:
|
|
276
|
-
extra:
|
|
277
|
-
button:
|
|
278
|
-
buttonLink:
|
|
279
|
+
descriptionLinesMax: s,
|
|
280
|
+
extra: c,
|
|
281
|
+
button: u,
|
|
282
|
+
buttonLink: y
|
|
279
283
|
})
|
|
280
284
|
})
|
|
281
285
|
]
|
|
282
286
|
})
|
|
283
287
|
})
|
|
284
288
|
});
|
|
285
|
-
}), He = /*#__PURE__*/ N.forwardRef((param,
|
|
286
|
-
let { icon: a , headline: r , pretitle:
|
|
287
|
-
const T = L(
|
|
289
|
+
}), He = /*#__PURE__*/ N.forwardRef((param, v)=>{
|
|
290
|
+
let { icon: a , headline: r , pretitle: t , pretitleLinesMax: n , title: l , titleLinesMax: o , subtitle: d , subtitleLinesMax: h , description: p , descriptionLinesMax: s , extra: c , actions: m , button: u , buttonLink: y , dataAttributes: f , "aria-label": b , onClose: S } = param;
|
|
291
|
+
const T = L(m, S), R = T.length > 0, w = !!a, I = {
|
|
288
292
|
position: "absolute",
|
|
289
293
|
top: 8,
|
|
290
294
|
right: 8,
|
|
291
295
|
zIndex: 2
|
|
292
|
-
},
|
|
296
|
+
}, x = {
|
|
293
297
|
marginRight: -8,
|
|
294
298
|
marginTop: -16
|
|
295
299
|
};
|
|
296
300
|
return /* @__PURE__ */ e("section", {
|
|
297
|
-
"aria-label":
|
|
301
|
+
"aria-label": b,
|
|
298
302
|
style: {
|
|
299
303
|
height: "100%",
|
|
300
304
|
position: "relative"
|
|
@@ -304,18 +308,18 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
304
308
|
dataAttributes: _objectSpread({
|
|
305
309
|
"component-name": "DataCard"
|
|
306
310
|
}, f),
|
|
307
|
-
ref:
|
|
311
|
+
ref: v,
|
|
308
312
|
width: "100%",
|
|
309
313
|
height: "100%",
|
|
310
|
-
children: /* @__PURE__ */
|
|
314
|
+
children: /* @__PURE__ */ i("div", {
|
|
311
315
|
className: ee,
|
|
312
316
|
children: [
|
|
313
|
-
/* @__PURE__ */
|
|
317
|
+
/* @__PURE__ */ i("div", {
|
|
314
318
|
className: z({
|
|
315
319
|
display: "flex"
|
|
316
320
|
}),
|
|
317
321
|
children: [
|
|
318
|
-
/* @__PURE__ */
|
|
322
|
+
/* @__PURE__ */ i(g, {
|
|
319
323
|
space: 16,
|
|
320
324
|
className: z({
|
|
321
325
|
flex: 1
|
|
@@ -324,41 +328,41 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
324
328
|
w ? a : null,
|
|
325
329
|
/* @__PURE__ */ e($, {
|
|
326
330
|
headline: r,
|
|
327
|
-
pretitle:
|
|
331
|
+
pretitle: t,
|
|
328
332
|
pretitleLinesMax: n,
|
|
329
|
-
title:
|
|
333
|
+
title: l,
|
|
330
334
|
titleLinesMax: o,
|
|
331
335
|
subtitle: d,
|
|
332
336
|
subtitleLinesMax: h,
|
|
333
337
|
description: p,
|
|
334
|
-
descriptionLinesMax:
|
|
338
|
+
descriptionLinesMax: s
|
|
335
339
|
})
|
|
336
340
|
]
|
|
337
341
|
}),
|
|
338
342
|
R && /* @__PURE__ */ e("div", {
|
|
339
|
-
style: w ? I :
|
|
343
|
+
style: w ? I : x,
|
|
340
344
|
children: /* @__PURE__ */ e(O, {
|
|
341
345
|
actions: T
|
|
342
346
|
})
|
|
343
347
|
})
|
|
344
348
|
]
|
|
345
349
|
}),
|
|
346
|
-
|
|
347
|
-
children:
|
|
350
|
+
c && /* @__PURE__ */ e("div", {
|
|
351
|
+
children: c
|
|
348
352
|
}),
|
|
349
|
-
(
|
|
353
|
+
(u || y) && /* @__PURE__ */ e("div", {
|
|
350
354
|
className: E,
|
|
351
355
|
children: /* @__PURE__ */ e(k, {
|
|
352
|
-
primaryButton:
|
|
353
|
-
link:
|
|
356
|
+
primaryButton: u,
|
|
357
|
+
link: y
|
|
354
358
|
})
|
|
355
359
|
})
|
|
356
360
|
]
|
|
357
361
|
})
|
|
358
362
|
})
|
|
359
363
|
});
|
|
360
|
-
}), Ie = /*#__PURE__*/ N.forwardRef((_param,
|
|
361
|
-
var { icon: a , title: r , titleLinesMax:
|
|
364
|
+
}), Ie = /*#__PURE__*/ N.forwardRef((_param, c)=>{
|
|
365
|
+
var { icon: a , title: r , titleLinesMax: t , subtitle: n , subtitleLinesMax: l , dataAttributes: o , "aria-label": d , extra: h , isInverse: p = !1 } = _param, s = _objectWithoutProperties(_param, [
|
|
362
366
|
"icon",
|
|
363
367
|
"title",
|
|
364
368
|
"titleLinesMax",
|
|
@@ -369,44 +373,46 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
369
373
|
"extra",
|
|
370
374
|
"isInverse"
|
|
371
375
|
]);
|
|
372
|
-
const { isDarkMode:
|
|
376
|
+
const { isDarkMode: m } = H(), u = Boolean(s.to || s.href || s.onPress);
|
|
373
377
|
return /* @__PURE__ */ e(_, {
|
|
374
378
|
className: D,
|
|
375
379
|
dataAttributes: _objectSpread({
|
|
376
380
|
"component-name": "SnapCard"
|
|
377
381
|
}, o),
|
|
378
|
-
ref:
|
|
382
|
+
ref: c,
|
|
379
383
|
isInverse: p,
|
|
380
384
|
width: "100%",
|
|
381
385
|
height: "100%",
|
|
382
386
|
children: /* @__PURE__ */ e(V, _objectSpreadProps(_objectSpread({
|
|
383
387
|
maybe: !0
|
|
384
|
-
},
|
|
385
|
-
className:
|
|
388
|
+
}, s), {
|
|
389
|
+
className: u && !p && !m ? re : ae,
|
|
386
390
|
"aria-label": d,
|
|
387
|
-
children: /* @__PURE__ */
|
|
388
|
-
className:
|
|
391
|
+
children: /* @__PURE__ */ i("section", {
|
|
392
|
+
className: te,
|
|
389
393
|
children: [
|
|
390
|
-
/* @__PURE__ */
|
|
394
|
+
/* @__PURE__ */ i("div", {
|
|
391
395
|
children: [
|
|
392
396
|
a && /* @__PURE__ */ e(A, {
|
|
393
397
|
paddingBottom: 16,
|
|
394
398
|
children: a
|
|
395
399
|
}),
|
|
396
|
-
/* @__PURE__ */
|
|
400
|
+
/* @__PURE__ */ i(g, {
|
|
397
401
|
space: 4,
|
|
398
402
|
children: [
|
|
399
403
|
r && /* @__PURE__ */ e(C, {
|
|
400
|
-
truncate:
|
|
404
|
+
truncate: t,
|
|
401
405
|
as: "h3",
|
|
402
406
|
regular: !0,
|
|
407
|
+
hyphens: "auto",
|
|
403
408
|
children: r
|
|
404
409
|
}),
|
|
405
410
|
n && /* @__PURE__ */ e(C, {
|
|
406
|
-
truncate:
|
|
411
|
+
truncate: l,
|
|
407
412
|
regular: !0,
|
|
408
413
|
color: B.colors.textSecondary,
|
|
409
414
|
as: "p",
|
|
415
|
+
hyphens: "auto",
|
|
410
416
|
children: n
|
|
411
417
|
})
|
|
412
418
|
]
|
|
@@ -421,13 +427,13 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
421
427
|
}))
|
|
422
428
|
});
|
|
423
429
|
}), q = /*#__PURE__*/ N.forwardRef((param, I)=>{
|
|
424
|
-
let { isInverse: a , backgroundImage: r , icon:
|
|
425
|
-
const
|
|
430
|
+
let { isInverse: a , backgroundImage: r , icon: t , headline: n , pretitle: l , pretitleLinesMax: o , title: d , titleLinesMax: h , description: p , descriptionLinesMax: s , extra: c , button: m , secondaryButton: u , onClose: y , actions: f , buttonLink: b , dataAttributes: S , width: v , height: T , aspectRatio: R , "aria-label": w } = param;
|
|
431
|
+
const x = !!r, M = x ? "0 0 16px rgba(0,0,0,0.4)" : void 0, F = (f == null ? void 0 : f.length) || y;
|
|
426
432
|
return /* @__PURE__ */ e(G, {
|
|
427
|
-
width:
|
|
433
|
+
width: v,
|
|
428
434
|
height: T,
|
|
429
435
|
aspectRatio: R,
|
|
430
|
-
onClose:
|
|
436
|
+
onClose: y,
|
|
431
437
|
actions: f,
|
|
432
438
|
"aria-label": w,
|
|
433
439
|
isInverse: a,
|
|
@@ -440,54 +446,56 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
440
446
|
minHeight: "100%",
|
|
441
447
|
isInverse: a,
|
|
442
448
|
background: a && r ? B.colors.backgroundContainer : void 0,
|
|
443
|
-
children: /* @__PURE__ */
|
|
449
|
+
children: /* @__PURE__ */ i("div", {
|
|
444
450
|
className: X,
|
|
445
451
|
style: {
|
|
446
452
|
backgroundImage: r ? `url("${CSS.escape(r)}")` : void 0,
|
|
447
|
-
paddingTop:
|
|
453
|
+
paddingTop: x && !t && !F ? 0 : 24
|
|
448
454
|
},
|
|
449
455
|
children: [
|
|
450
|
-
|
|
451
|
-
paddingBottom:
|
|
456
|
+
t ? /* @__PURE__ */ e(A, {
|
|
457
|
+
paddingBottom: x ? 0 : 40,
|
|
452
458
|
paddingX: 24,
|
|
453
|
-
children:
|
|
459
|
+
children: t
|
|
454
460
|
}) : /* @__PURE__ */ e(A, {
|
|
455
|
-
paddingBottom: (f == null ? void 0 : f.length) ||
|
|
461
|
+
paddingBottom: (f == null ? void 0 : f.length) || y ? x ? 24 : 64 : 0
|
|
456
462
|
}),
|
|
457
463
|
/* @__PURE__ */ e(A, {
|
|
458
464
|
paddingX: 24,
|
|
459
|
-
paddingTop:
|
|
465
|
+
paddingTop: x ? 40 : 0,
|
|
460
466
|
paddingBottom: 24,
|
|
461
|
-
className:
|
|
462
|
-
children: /* @__PURE__ */
|
|
467
|
+
className: x ? j : void 0,
|
|
468
|
+
children: /* @__PURE__ */ i(g, {
|
|
463
469
|
space: 24,
|
|
464
470
|
children: [
|
|
465
|
-
/* @__PURE__ */
|
|
471
|
+
/* @__PURE__ */ i("div", {
|
|
466
472
|
children: [
|
|
467
|
-
/* @__PURE__ */
|
|
473
|
+
/* @__PURE__ */ i(g, {
|
|
468
474
|
space: 8,
|
|
469
475
|
children: [
|
|
470
|
-
(n ||
|
|
471
|
-
children: /* @__PURE__ */
|
|
476
|
+
(n || l || d) && /* @__PURE__ */ e("header", {
|
|
477
|
+
children: /* @__PURE__ */ i(g, {
|
|
472
478
|
space: 16,
|
|
473
479
|
children: [
|
|
474
480
|
n,
|
|
475
|
-
/* @__PURE__ */
|
|
481
|
+
/* @__PURE__ */ i(g, {
|
|
476
482
|
space: 4,
|
|
477
483
|
children: [
|
|
478
|
-
|
|
484
|
+
l && /* @__PURE__ */ e(C, {
|
|
479
485
|
forceMobileSizes: !0,
|
|
480
486
|
truncate: o,
|
|
481
487
|
as: "div",
|
|
482
488
|
regular: !0,
|
|
483
489
|
textShadow: M,
|
|
484
|
-
|
|
490
|
+
hyphens: "auto",
|
|
491
|
+
children: l
|
|
485
492
|
}),
|
|
486
493
|
/* @__PURE__ */ e(K, {
|
|
487
494
|
forceMobileSizes: !0,
|
|
488
495
|
truncate: h,
|
|
489
496
|
as: "h3",
|
|
490
497
|
textShadow: M,
|
|
498
|
+
hyphens: "auto",
|
|
491
499
|
children: d
|
|
492
500
|
})
|
|
493
501
|
]
|
|
@@ -497,22 +505,23 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
497
505
|
}),
|
|
498
506
|
p && /* @__PURE__ */ e(Q, {
|
|
499
507
|
forceMobileSizes: !0,
|
|
500
|
-
truncate:
|
|
508
|
+
truncate: s,
|
|
501
509
|
as: "p",
|
|
502
510
|
regular: !0,
|
|
503
511
|
color: B.colors.textSecondary,
|
|
504
512
|
textShadow: M,
|
|
513
|
+
hyphens: "auto",
|
|
505
514
|
children: p
|
|
506
515
|
})
|
|
507
516
|
]
|
|
508
517
|
}),
|
|
509
|
-
|
|
518
|
+
c
|
|
510
519
|
]
|
|
511
520
|
}),
|
|
512
|
-
(
|
|
513
|
-
primaryButton:
|
|
514
|
-
secondaryButton:
|
|
515
|
-
link:
|
|
521
|
+
(m || u || b) && /* @__PURE__ */ e(k, {
|
|
522
|
+
primaryButton: m,
|
|
523
|
+
secondaryButton: u,
|
|
524
|
+
link: b
|
|
516
525
|
})
|
|
517
526
|
]
|
|
518
527
|
})
|
|
@@ -521,36 +530,36 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
521
530
|
})
|
|
522
531
|
})
|
|
523
532
|
});
|
|
524
|
-
}), Me = /*#__PURE__*/ N.forwardRef((_param,
|
|
533
|
+
}), Me = /*#__PURE__*/ N.forwardRef((_param, t)=>/* @__PURE__ */ {
|
|
525
534
|
var { dataAttributes: a } = _param, r = _objectWithoutProperties(_param, [
|
|
526
535
|
"dataAttributes"
|
|
527
536
|
]);
|
|
528
537
|
return e(q, _objectSpreadProps(_objectSpread({}, r), {
|
|
529
|
-
ref:
|
|
538
|
+
ref: t,
|
|
530
539
|
isInverse: !0,
|
|
531
540
|
dataAttributes: _objectSpreadProps(_objectSpread({}, a), {
|
|
532
541
|
"component-name": "DisplayMediaCard"
|
|
533
542
|
})
|
|
534
543
|
}));
|
|
535
|
-
}), ze = /*#__PURE__*/ N.forwardRef((_param,
|
|
544
|
+
}), ze = /*#__PURE__*/ N.forwardRef((_param, t)=>/* @__PURE__ */ {
|
|
536
545
|
var { dataAttributes: a } = _param, r = _objectWithoutProperties(_param, [
|
|
537
546
|
"dataAttributes"
|
|
538
547
|
]);
|
|
539
548
|
return e(q, _objectSpreadProps(_objectSpread({}, r), {
|
|
540
|
-
ref:
|
|
549
|
+
ref: t,
|
|
541
550
|
dataAttributes: _objectSpreadProps(_objectSpread({}, a), {
|
|
542
551
|
"component-name": "DisplayDataCard"
|
|
543
552
|
})
|
|
544
553
|
}));
|
|
545
554
|
}), he = 140, pe = 112, _e = /*#__PURE__*/ N.forwardRef((param, S)=>{
|
|
546
|
-
let { dataAttributes: a , backgroundImage: r , width:
|
|
547
|
-
const
|
|
555
|
+
let { dataAttributes: a , backgroundImage: r , width: t , height: n , aspectRatio: l = "7:10" , ariaLabel: o , actions: d , onClose: h , icon: p , headline: s , pretitle: c , pretitleLinesMax: m , title: u , titleLinesMax: y , description: f , descriptionLinesMax: b } = param;
|
|
556
|
+
const v = !!r, T = v ? "0 0 16px rgba(0,0,0,0.4)" : void 0, R = (d == null ? void 0 : d.length) || h, { textPresets: w } = H();
|
|
548
557
|
return /* @__PURE__ */ e(G, {
|
|
549
|
-
width:
|
|
558
|
+
width: t,
|
|
550
559
|
height: n,
|
|
551
560
|
minWidth: he,
|
|
552
561
|
minHeight: pe,
|
|
553
|
-
aspectRatio:
|
|
562
|
+
aspectRatio: l,
|
|
554
563
|
onClose: h,
|
|
555
564
|
actions: d,
|
|
556
565
|
"aria-label": o,
|
|
@@ -564,56 +573,58 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
564
573
|
minHeight: "100%",
|
|
565
574
|
isInverse: !0,
|
|
566
575
|
background: r ? B.colors.backgroundContainer : void 0,
|
|
567
|
-
children: /* @__PURE__ */
|
|
576
|
+
children: /* @__PURE__ */ i("div", {
|
|
568
577
|
className: X,
|
|
569
578
|
style: {
|
|
570
579
|
backgroundImage: r ? `url("${CSS.escape(r)}")` : void 0,
|
|
571
|
-
paddingTop:
|
|
580
|
+
paddingTop: v && !p && !R ? 0 : 24
|
|
572
581
|
},
|
|
573
582
|
children: [
|
|
574
583
|
p ? /* @__PURE__ */ e(A, {
|
|
575
|
-
paddingBottom:
|
|
584
|
+
paddingBottom: v ? 0 : 40,
|
|
576
585
|
paddingX: 24,
|
|
577
586
|
children: p
|
|
578
587
|
}) : /* @__PURE__ */ e(A, {
|
|
579
|
-
paddingBottom: (d == null ? void 0 : d.length) || h ?
|
|
588
|
+
paddingBottom: (d == null ? void 0 : d.length) || h ? v ? 24 : 64 : 0
|
|
580
589
|
}),
|
|
581
590
|
/* @__PURE__ */ e(A, {
|
|
582
591
|
paddingX: 16,
|
|
583
|
-
paddingTop:
|
|
592
|
+
paddingTop: v ? 40 : 0,
|
|
584
593
|
paddingBottom: 24,
|
|
585
|
-
className:
|
|
594
|
+
className: v ? j : void 0,
|
|
586
595
|
children: /* @__PURE__ */ e(g, {
|
|
587
596
|
space: 24,
|
|
588
597
|
children: /* @__PURE__ */ e("div", {
|
|
589
|
-
children: /* @__PURE__ */
|
|
598
|
+
children: /* @__PURE__ */ i(g, {
|
|
590
599
|
space: 8,
|
|
591
600
|
children: [
|
|
592
|
-
(
|
|
593
|
-
children: /* @__PURE__ */
|
|
601
|
+
(s || c || u) && /* @__PURE__ */ e("header", {
|
|
602
|
+
children: /* @__PURE__ */ i(g, {
|
|
594
603
|
space: 16,
|
|
595
604
|
children: [
|
|
596
|
-
|
|
597
|
-
/* @__PURE__ */
|
|
605
|
+
s,
|
|
606
|
+
/* @__PURE__ */ i(g, {
|
|
598
607
|
space: 4,
|
|
599
608
|
children: [
|
|
600
|
-
|
|
609
|
+
c && /* @__PURE__ */ e(C, {
|
|
601
610
|
forceMobileSizes: !0,
|
|
602
|
-
truncate:
|
|
611
|
+
truncate: m,
|
|
603
612
|
as: "div",
|
|
604
613
|
regular: !0,
|
|
605
614
|
textShadow: T,
|
|
606
|
-
|
|
615
|
+
hyphens: "auto",
|
|
616
|
+
children: c
|
|
607
617
|
}),
|
|
608
618
|
/* @__PURE__ */ e(P, {
|
|
609
619
|
desktopSize: 20,
|
|
610
620
|
mobileSize: 18,
|
|
611
621
|
mobileLineHeight: "24px",
|
|
612
622
|
desktopLineHeight: "28px",
|
|
613
|
-
truncate:
|
|
623
|
+
truncate: y,
|
|
614
624
|
weight: w.cardTitle.weight,
|
|
615
625
|
as: "h3",
|
|
616
|
-
|
|
626
|
+
hyphens: "auto",
|
|
627
|
+
children: u
|
|
617
628
|
})
|
|
618
629
|
]
|
|
619
630
|
})
|
|
@@ -622,10 +633,11 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
622
633
|
}),
|
|
623
634
|
f && /* @__PURE__ */ e(C, {
|
|
624
635
|
forceMobileSizes: !0,
|
|
625
|
-
truncate:
|
|
636
|
+
truncate: b,
|
|
626
637
|
as: "p",
|
|
627
638
|
regular: !0,
|
|
628
639
|
textShadow: T,
|
|
640
|
+
hyphens: "auto",
|
|
629
641
|
children: f
|
|
630
642
|
})
|
|
631
643
|
]
|