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