@telefonica/mistica 14.2.0 → 14.4.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.css-mistica.js +3 -3
- package/dist/card.d.ts +8 -6
- package/dist/card.js +208 -179
- package/dist/date-time-picker.js +14 -14
- package/dist/empty-state-card.js +24 -20
- package/dist/header.d.ts +1 -0
- package/dist/header.js +94 -86
- package/dist/highlighted-card.js +18 -12
- package/dist/icon-button.js +8 -6
- package/dist/inline.css-mistica.js +7 -6
- package/dist/inline.css.d.ts +1 -0
- package/dist/inline.d.ts +2 -1
- package/dist/inline.js +8 -8
- package/dist/package-version.js +1 -1
- package/dist/popover.js +11 -11
- package/dist/text-link.js +5 -4
- package/dist/touchable.d.ts +1 -0
- package/dist/touchable.js +31 -27
- package/dist-es/card.css-mistica.js +2 -2
- package/dist-es/card.js +268 -239
- package/dist-es/date-time-picker.js +17 -17
- package/dist-es/empty-state-card.js +42 -38
- package/dist-es/header.js +115 -107
- package/dist-es/highlighted-card.js +35 -29
- package/dist-es/icon-button.js +24 -22
- package/dist-es/inline.css-mistica.js +6 -6
- package/dist-es/inline.js +16 -16
- package/dist-es/package-version.js +1 -1
- package/dist-es/popover.js +34 -34
- package/dist-es/style.css +1 -1
- package/dist-es/text-link.js +15 -14
- package/dist-es/touchable.js +44 -40
- package/package.json +1 -1
package/dist/card.js
CHANGED
|
@@ -9,11 +9,11 @@ function _export(target, all) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
DataCard: ()=>
|
|
13
|
-
DisplayDataCard: ()=>
|
|
14
|
-
DisplayMediaCard: ()=>
|
|
15
|
-
MediaCard: ()=>
|
|
16
|
-
SnapCard: ()=>
|
|
12
|
+
DataCard: ()=>De,
|
|
13
|
+
DisplayDataCard: ()=>Me,
|
|
14
|
+
DisplayMediaCard: ()=>Ie,
|
|
15
|
+
MediaCard: ()=>Be,
|
|
16
|
+
SnapCard: ()=>Re
|
|
17
17
|
});
|
|
18
18
|
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
|
19
19
|
const _tagJs = /*#__PURE__*/ _interopRequireDefault(require("./tag.js"));
|
|
@@ -23,7 +23,6 @@ const _textJs = require("./text.js");
|
|
|
23
23
|
const _boxedJs = require("./boxed.js");
|
|
24
24
|
const _buttonGroupJs = /*#__PURE__*/ _interopRequireDefault(require("./button-group.js"));
|
|
25
25
|
const _imageJs = require("./image.js");
|
|
26
|
-
const _maybeDismissableJs = /*#__PURE__*/ _interopRequireWildcard(require("./maybe-dismissable.js"));
|
|
27
26
|
const _touchableJs = require("./touchable.js");
|
|
28
27
|
const _skinContractCssMisticaJs = require("./skins/skin-contract.css-mistica.js");
|
|
29
28
|
const _cardCssMisticaJs = require("./card.css-mistica.js");
|
|
@@ -156,9 +155,75 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
156
155
|
}
|
|
157
156
|
return target;
|
|
158
157
|
}
|
|
159
|
-
const
|
|
160
|
-
let {
|
|
161
|
-
|
|
158
|
+
const W = (param)=>/* @__PURE__ */ {
|
|
159
|
+
let { actions: r , isInverse: a } = param;
|
|
160
|
+
return (0, _jsxRuntimeJs.jsx)(_inlineJs.default, {
|
|
161
|
+
space: 0,
|
|
162
|
+
children: r.map((param, d)=>/* @__PURE__ */ {
|
|
163
|
+
let { onPress: i , label: t , Icon: o } = param;
|
|
164
|
+
return (0, _jsxRuntimeJs.jsx)(_iconButtonJs.default, {
|
|
165
|
+
size: 48,
|
|
166
|
+
onPress: i,
|
|
167
|
+
"aria-label": t,
|
|
168
|
+
className: _cardCssMisticaJs.cardActionIconButton,
|
|
169
|
+
style: {
|
|
170
|
+
display: "flex"
|
|
171
|
+
},
|
|
172
|
+
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
|
|
173
|
+
className: a ? _cardCssMisticaJs.cardActionInverse : _cardCssMisticaJs.cardAction,
|
|
174
|
+
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(o, {
|
|
175
|
+
color: _skinContractCssMisticaJs.vars.colors.neutralHigh,
|
|
176
|
+
size: 20
|
|
177
|
+
})
|
|
178
|
+
})
|
|
179
|
+
}, d);
|
|
180
|
+
})
|
|
181
|
+
});
|
|
182
|
+
}, P = (r, a)=>{
|
|
183
|
+
const { texts: i } = (0, _hooksJs.useTheme)(), t = r ? [
|
|
184
|
+
...r
|
|
185
|
+
] : [];
|
|
186
|
+
return a && t.push({
|
|
187
|
+
label: i.closeButtonLabel,
|
|
188
|
+
onPress: a,
|
|
189
|
+
Icon: _iconCloseRegularJs.default
|
|
190
|
+
}), t;
|
|
191
|
+
}, se = {
|
|
192
|
+
"1:1": "1",
|
|
193
|
+
"16:9": "16 / 9",
|
|
194
|
+
"7:10": "7 / 10",
|
|
195
|
+
"9:10": "9 / 10",
|
|
196
|
+
auto: "auto"
|
|
197
|
+
}, X = (param)=>{
|
|
198
|
+
let { children: r , width: a = "100%" , height: i = "100%" , aspectRatio: t , actions: o , onClose: d , isInverse: p , "aria-label": s } = param;
|
|
199
|
+
const l = P(o, d), c = l.length > 0, h = t ? typeof t == "number" ? String(t) : se[t] : void 0;
|
|
200
|
+
return /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("section", {
|
|
201
|
+
"aria-label": s,
|
|
202
|
+
style: {
|
|
203
|
+
width: a,
|
|
204
|
+
height: i,
|
|
205
|
+
aspectRatio: h,
|
|
206
|
+
position: "relative"
|
|
207
|
+
},
|
|
208
|
+
children: [
|
|
209
|
+
r,
|
|
210
|
+
c && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
|
|
211
|
+
style: {
|
|
212
|
+
position: "absolute",
|
|
213
|
+
right: 8,
|
|
214
|
+
top: 8,
|
|
215
|
+
zIndex: 2
|
|
216
|
+
},
|
|
217
|
+
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(W, {
|
|
218
|
+
actions: l,
|
|
219
|
+
isInverse: p
|
|
220
|
+
})
|
|
221
|
+
})
|
|
222
|
+
]
|
|
223
|
+
});
|
|
224
|
+
}, _ = (param)=>{
|
|
225
|
+
let { headline: r , pretitle: a , pretitleLinesMax: i , title: t , titleLinesMax: o , subtitle: d , subtitleLinesMax: p , description: s , descriptionLinesMax: l , extra: c , button: h , buttonLink: m } = param;
|
|
226
|
+
const { textPresets: u } = (0, _hooksJs.useTheme)(), g = ()=>r ? typeof r == "string" ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_tagJs.default, {
|
|
162
227
|
type: "promo",
|
|
163
228
|
children: r
|
|
164
229
|
}) : r : null;
|
|
@@ -175,11 +240,11 @@ const z = (param)=>{
|
|
|
175
240
|
/* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
|
|
176
241
|
space: 8,
|
|
177
242
|
children: [
|
|
178
|
-
(r || a || t ||
|
|
243
|
+
(r || a || t || d) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("header", {
|
|
179
244
|
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
|
|
180
245
|
space: 8,
|
|
181
246
|
children: [
|
|
182
|
-
|
|
247
|
+
g(),
|
|
183
248
|
/* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
|
|
184
249
|
space: 4,
|
|
185
250
|
children: [
|
|
@@ -194,8 +259,8 @@ const z = (param)=>{
|
|
|
194
259
|
mobileLineHeight: "24px",
|
|
195
260
|
desktopSize: 20,
|
|
196
261
|
desktopLineHeight: "28px",
|
|
197
|
-
truncate:
|
|
198
|
-
weight:
|
|
262
|
+
truncate: o,
|
|
263
|
+
weight: u.cardTitle.weight,
|
|
199
264
|
as: "h3",
|
|
200
265
|
children: t
|
|
201
266
|
}),
|
|
@@ -203,7 +268,7 @@ const z = (param)=>{
|
|
|
203
268
|
truncate: p,
|
|
204
269
|
as: "div",
|
|
205
270
|
regular: !0,
|
|
206
|
-
children:
|
|
271
|
+
children: d
|
|
207
272
|
})
|
|
208
273
|
]
|
|
209
274
|
})
|
|
@@ -211,7 +276,7 @@ const z = (param)=>{
|
|
|
211
276
|
})
|
|
212
277
|
}),
|
|
213
278
|
s && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text2, {
|
|
214
|
-
truncate:
|
|
279
|
+
truncate: l,
|
|
215
280
|
as: "p",
|
|
216
281
|
regular: !0,
|
|
217
282
|
color: _skinContractCssMisticaJs.vars.colors.textSecondary,
|
|
@@ -219,48 +284,37 @@ const z = (param)=>{
|
|
|
219
284
|
})
|
|
220
285
|
]
|
|
221
286
|
}),
|
|
222
|
-
|
|
223
|
-
children:
|
|
287
|
+
c && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
|
|
288
|
+
children: c
|
|
224
289
|
})
|
|
225
290
|
]
|
|
226
291
|
}),
|
|
227
|
-
(
|
|
292
|
+
(h || m) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
|
|
228
293
|
className: _cardCssMisticaJs.actions,
|
|
229
294
|
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_buttonGroupJs.default, {
|
|
230
|
-
primaryButton:
|
|
295
|
+
primaryButton: h,
|
|
231
296
|
link: m
|
|
232
297
|
})
|
|
233
298
|
})
|
|
234
299
|
]
|
|
235
300
|
});
|
|
236
|
-
},
|
|
237
|
-
let {
|
|
238
|
-
return (0,
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
className: a,
|
|
244
|
-
style: i,
|
|
245
|
-
"aria-label": r,
|
|
246
|
-
children: t
|
|
247
|
-
});
|
|
248
|
-
}, Re = /*#__PURE__*/ _react.forwardRef((param, S)=>/* @__PURE__ */ {
|
|
249
|
-
let { media: r , headline: a , pretitle: i , pretitleLinesMax: t , subtitle: n , subtitleLinesMax: l , title: p , titleLinesMax: s , description: c , descriptionLinesMax: o , extra: u , button: m , buttonLink: f , dataAttributes: b , "aria-label": h , onClose: C } = param;
|
|
250
|
-
return (0, _jsxRuntimeJs.jsx)(_maybeDismissableJs.default, {
|
|
251
|
-
onClose: C,
|
|
252
|
-
"aria-label": h,
|
|
301
|
+
}, Be = /*#__PURE__*/ _react.forwardRef((param, S)=>/* @__PURE__ */ {
|
|
302
|
+
let { media: r , headline: a , pretitle: i , pretitleLinesMax: t , subtitle: o , subtitleLinesMax: d , title: p , titleLinesMax: s , description: l , descriptionLinesMax: c , extra: h , actions: m , button: u , buttonLink: g , dataAttributes: f , "aria-label": x , onClose: A } = param;
|
|
303
|
+
return (0, _jsxRuntimeJs.jsx)(X, {
|
|
304
|
+
onClose: A,
|
|
305
|
+
actions: m,
|
|
306
|
+
"aria-label": x,
|
|
307
|
+
isInverse: !0,
|
|
253
308
|
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxedJs.Boxed, {
|
|
254
309
|
className: _cardCssMisticaJs.boxed,
|
|
255
310
|
dataAttributes: _objectSpread({
|
|
256
311
|
"component-name": "MediaCard"
|
|
257
|
-
},
|
|
312
|
+
}, f),
|
|
258
313
|
ref: S,
|
|
259
314
|
width: "100%",
|
|
260
315
|
height: "100%",
|
|
261
|
-
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(
|
|
316
|
+
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("div", {
|
|
262
317
|
className: _cardCssMisticaJs.mediaCard,
|
|
263
|
-
"aria-label": h,
|
|
264
318
|
children: [
|
|
265
319
|
/* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_imageJs.MediaBorderRadiusProvider, {
|
|
266
320
|
value: !1,
|
|
@@ -268,66 +322,105 @@ const z = (param)=>{
|
|
|
268
322
|
}),
|
|
269
323
|
/* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
|
|
270
324
|
className: _cardCssMisticaJs.mediaCardContent,
|
|
271
|
-
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(
|
|
325
|
+
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_, {
|
|
272
326
|
headline: a,
|
|
273
327
|
pretitle: i,
|
|
274
328
|
pretitleLinesMax: t,
|
|
275
329
|
title: p,
|
|
276
330
|
titleLinesMax: s,
|
|
277
|
-
subtitle:
|
|
278
|
-
subtitleLinesMax:
|
|
279
|
-
description:
|
|
280
|
-
descriptionLinesMax:
|
|
281
|
-
extra:
|
|
282
|
-
button:
|
|
283
|
-
buttonLink:
|
|
331
|
+
subtitle: o,
|
|
332
|
+
subtitleLinesMax: d,
|
|
333
|
+
description: l,
|
|
334
|
+
descriptionLinesMax: c,
|
|
335
|
+
extra: h,
|
|
336
|
+
button: u,
|
|
337
|
+
buttonLink: g
|
|
284
338
|
})
|
|
285
339
|
})
|
|
286
340
|
]
|
|
287
341
|
})
|
|
288
342
|
})
|
|
289
343
|
});
|
|
290
|
-
}),
|
|
291
|
-
let { icon: r , headline: a , pretitle: i , pretitleLinesMax: t , title:
|
|
292
|
-
|
|
293
|
-
"
|
|
294
|
-
|
|
344
|
+
}), De = /*#__PURE__*/ _react.forwardRef((param, S)=>{
|
|
345
|
+
let { icon: r , headline: a , pretitle: i , pretitleLinesMax: t , title: o , titleLinesMax: d , subtitle: p , subtitleLinesMax: s , description: l , descriptionLinesMax: c , extra: h , actions: m , button: u , buttonLink: g , dataAttributes: f , "aria-label": x , onClose: A } = param;
|
|
346
|
+
const N = P(m, A), R = N.length > 0, w = !!r, I = {
|
|
347
|
+
position: "absolute",
|
|
348
|
+
top: 8,
|
|
349
|
+
right: 8,
|
|
350
|
+
zIndex: 2
|
|
351
|
+
}, y = {
|
|
352
|
+
marginRight: -8,
|
|
353
|
+
marginTop: -16
|
|
354
|
+
};
|
|
355
|
+
return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("section", {
|
|
356
|
+
"aria-label": x,
|
|
357
|
+
style: {
|
|
358
|
+
height: "100%",
|
|
359
|
+
position: "relative"
|
|
360
|
+
},
|
|
295
361
|
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxedJs.Boxed, {
|
|
296
362
|
className: _cardCssMisticaJs.boxed,
|
|
297
363
|
dataAttributes: _objectSpread({
|
|
298
364
|
"component-name": "DataCard"
|
|
299
|
-
},
|
|
365
|
+
}, f),
|
|
300
366
|
ref: S,
|
|
301
367
|
width: "100%",
|
|
302
368
|
height: "100%",
|
|
303
|
-
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(
|
|
369
|
+
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("div", {
|
|
304
370
|
className: _cardCssMisticaJs.dataCard,
|
|
305
|
-
"aria-label": h,
|
|
306
371
|
children: [
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
372
|
+
/* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("div", {
|
|
373
|
+
className: (0, _sprinklesCssMisticaJs.sprinkles)({
|
|
374
|
+
display: "flex",
|
|
375
|
+
flex: 1,
|
|
376
|
+
justifyContent: "space-between",
|
|
377
|
+
flexDirection: "row"
|
|
378
|
+
}),
|
|
379
|
+
children: [
|
|
380
|
+
/* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
|
|
381
|
+
space: 16,
|
|
382
|
+
className: (0, _sprinklesCssMisticaJs.sprinkles)({
|
|
383
|
+
flex: 1
|
|
384
|
+
}),
|
|
385
|
+
children: [
|
|
386
|
+
w ? r : null,
|
|
387
|
+
/* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_, {
|
|
388
|
+
headline: a,
|
|
389
|
+
pretitle: i,
|
|
390
|
+
pretitleLinesMax: t,
|
|
391
|
+
title: o,
|
|
392
|
+
titleLinesMax: d,
|
|
393
|
+
subtitle: p,
|
|
394
|
+
subtitleLinesMax: s,
|
|
395
|
+
description: l,
|
|
396
|
+
descriptionLinesMax: c
|
|
397
|
+
})
|
|
398
|
+
]
|
|
399
|
+
}),
|
|
400
|
+
R && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
|
|
401
|
+
style: w ? I : y,
|
|
402
|
+
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(W, {
|
|
403
|
+
actions: N
|
|
404
|
+
})
|
|
405
|
+
})
|
|
406
|
+
]
|
|
310
407
|
}),
|
|
311
|
-
/* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
descriptionLinesMax: o,
|
|
321
|
-
extra: u,
|
|
322
|
-
button: m,
|
|
323
|
-
buttonLink: f
|
|
408
|
+
h && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
|
|
409
|
+
children: h
|
|
410
|
+
}),
|
|
411
|
+
(u || g) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
|
|
412
|
+
className: _cardCssMisticaJs.actions,
|
|
413
|
+
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_buttonGroupJs.default, {
|
|
414
|
+
primaryButton: u,
|
|
415
|
+
link: g
|
|
416
|
+
})
|
|
324
417
|
})
|
|
325
418
|
]
|
|
326
419
|
})
|
|
327
420
|
})
|
|
328
421
|
});
|
|
329
|
-
}),
|
|
330
|
-
var { icon: r , title: a , titleLinesMax: i , subtitle: t , subtitleLinesMax:
|
|
422
|
+
}), Re = /*#__PURE__*/ _react.forwardRef((_param, h)=>{
|
|
423
|
+
var { icon: r , title: a , titleLinesMax: i , subtitle: t , subtitleLinesMax: o , dataAttributes: d , "aria-label": p , extra: s , isInverse: l = !1 } = _param, c = _objectWithoutProperties(_param, [
|
|
331
424
|
"icon",
|
|
332
425
|
"title",
|
|
333
426
|
"titleLinesMax",
|
|
@@ -338,20 +431,20 @@ const z = (param)=>{
|
|
|
338
431
|
"extra",
|
|
339
432
|
"isInverse"
|
|
340
433
|
]);
|
|
341
|
-
const { isDarkMode: m } = (0, _hooksJs.useTheme)(),
|
|
434
|
+
const { isDarkMode: m } = (0, _hooksJs.useTheme)(), u = Boolean(c.to || c.href || c.onPress);
|
|
342
435
|
return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxedJs.Boxed, {
|
|
343
436
|
className: _cardCssMisticaJs.boxed,
|
|
344
437
|
dataAttributes: _objectSpread({
|
|
345
438
|
"component-name": "SnapCard"
|
|
346
|
-
},
|
|
347
|
-
ref:
|
|
348
|
-
isInverse:
|
|
439
|
+
}, d),
|
|
440
|
+
ref: h,
|
|
441
|
+
isInverse: l,
|
|
349
442
|
width: "100%",
|
|
350
443
|
height: "100%",
|
|
351
444
|
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_touchableJs.BaseTouchable, _objectSpreadProps(_objectSpread({
|
|
352
445
|
maybe: !0
|
|
353
|
-
},
|
|
354
|
-
className:
|
|
446
|
+
}, c), {
|
|
447
|
+
className: u && !l && !m ? _cardCssMisticaJs.snapCardTouchableHover : _cardCssMisticaJs.snapCardTouchableHoverTransparent,
|
|
355
448
|
"aria-label": p,
|
|
356
449
|
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("section", {
|
|
357
450
|
className: _cardCssMisticaJs.snapCard,
|
|
@@ -372,7 +465,7 @@ const z = (param)=>{
|
|
|
372
465
|
children: a
|
|
373
466
|
}),
|
|
374
467
|
t && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text2, {
|
|
375
|
-
truncate:
|
|
468
|
+
truncate: o,
|
|
376
469
|
regular: !0,
|
|
377
470
|
color: _skinContractCssMisticaJs.vars.colors.textSecondary,
|
|
378
471
|
as: "p",
|
|
@@ -389,86 +482,22 @@ const z = (param)=>{
|
|
|
389
482
|
})
|
|
390
483
|
}))
|
|
391
484
|
});
|
|
392
|
-
}),
|
|
393
|
-
let {
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
className: _cardCssMisticaJs.cardActionIconButton,
|
|
403
|
-
style: {
|
|
404
|
-
display: "flex"
|
|
405
|
-
},
|
|
406
|
-
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
|
|
407
|
-
className: a ? _cardCssMisticaJs.cardActionInverse : _cardCssMisticaJs.cardAction,
|
|
408
|
-
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(n, {
|
|
409
|
-
color: _skinContractCssMisticaJs.vars.colors.neutralHigh,
|
|
410
|
-
size: 20
|
|
411
|
-
})
|
|
412
|
-
})
|
|
413
|
-
}, l);
|
|
414
|
-
})
|
|
415
|
-
});
|
|
416
|
-
}, me = {
|
|
417
|
-
"1:1": "1",
|
|
418
|
-
"16:9": "16 / 9",
|
|
419
|
-
"7:10": "7 / 10",
|
|
420
|
-
"9:10": "9 / 10",
|
|
421
|
-
auto: "auto"
|
|
422
|
-
}, he = (param)=>{
|
|
423
|
-
let { children: r , width: a = "100%" , height: i = "100%" , aspectRatio: t , actions: n , onClose: l , isInverse: p , "aria-label": s } = param;
|
|
424
|
-
const { texts: c } = (0, _hooksJs.useTheme)(), o = n ? [
|
|
425
|
-
...n
|
|
426
|
-
] : [];
|
|
427
|
-
l && o.push({
|
|
428
|
-
label: c.closeButtonLabel,
|
|
429
|
-
onPress: l,
|
|
430
|
-
Icon: _iconCloseRegularJs.default
|
|
431
|
-
});
|
|
432
|
-
const u = o.length > 0, m = t ? typeof t == "number" ? String(t) : me[t] : void 0;
|
|
433
|
-
return /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("section", {
|
|
434
|
-
"aria-label": s,
|
|
435
|
-
style: {
|
|
436
|
-
width: a,
|
|
437
|
-
height: i,
|
|
438
|
-
aspectRatio: m,
|
|
439
|
-
position: "relative"
|
|
440
|
-
},
|
|
441
|
-
children: [
|
|
442
|
-
r,
|
|
443
|
-
u && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
|
|
444
|
-
style: {
|
|
445
|
-
position: "absolute",
|
|
446
|
-
right: 8,
|
|
447
|
-
top: 8
|
|
448
|
-
},
|
|
449
|
-
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(ce, {
|
|
450
|
-
actions: o,
|
|
451
|
-
isInverse: p
|
|
452
|
-
})
|
|
453
|
-
})
|
|
454
|
-
]
|
|
455
|
-
});
|
|
456
|
-
}, k = /*#__PURE__*/ _react.forwardRef((param, X)=>{
|
|
457
|
-
let { isInverse: r , backgroundImage: a , icon: i , headline: t , pretitle: n , pretitleLinesMax: l , title: p , titleLinesMax: s , description: c , descriptionLinesMax: o , extra: u , button: m , secondaryButton: f , onClose: b , actions: h , buttonLink: C , dataAttributes: S , width: I , height: G , aspectRatio: j , "aria-label": P } = param;
|
|
458
|
-
const v = !!a, w = v ? "0 0 16px rgba(0,0,0,0.4)" : void 0, _ = (h == null ? void 0 : h.length) || b;
|
|
459
|
-
return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(he, {
|
|
460
|
-
width: I,
|
|
461
|
-
height: G,
|
|
462
|
-
aspectRatio: j,
|
|
463
|
-
onClose: b,
|
|
464
|
-
actions: h,
|
|
465
|
-
"aria-label": P,
|
|
485
|
+
}), E = /*#__PURE__*/ _react.forwardRef((param, I)=>{
|
|
486
|
+
let { isInverse: r , backgroundImage: a , icon: i , headline: t , pretitle: o , pretitleLinesMax: d , title: p , titleLinesMax: s , description: l , descriptionLinesMax: c , extra: h , button: m , secondaryButton: u , onClose: g , actions: f , buttonLink: x , dataAttributes: A , width: S , height: N , aspectRatio: R , "aria-label": w } = param;
|
|
487
|
+
const y = !!a, M = y ? "0 0 16px rgba(0,0,0,0.4)" : void 0, O = (f == null ? void 0 : f.length) || g;
|
|
488
|
+
return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(X, {
|
|
489
|
+
width: S,
|
|
490
|
+
height: N,
|
|
491
|
+
aspectRatio: R,
|
|
492
|
+
onClose: g,
|
|
493
|
+
actions: f,
|
|
494
|
+
"aria-label": w,
|
|
466
495
|
isInverse: r,
|
|
467
496
|
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxedJs.InternalBoxed, {
|
|
468
497
|
borderRadius: 16,
|
|
469
498
|
className: _cardCssMisticaJs.boxed,
|
|
470
|
-
dataAttributes:
|
|
471
|
-
ref:
|
|
499
|
+
dataAttributes: A,
|
|
500
|
+
ref: I,
|
|
472
501
|
width: "100%",
|
|
473
502
|
minHeight: "100%",
|
|
474
503
|
isInverse: r,
|
|
@@ -477,21 +506,21 @@ const z = (param)=>{
|
|
|
477
506
|
className: _cardCssMisticaJs.displayCard,
|
|
478
507
|
style: {
|
|
479
508
|
backgroundImage: a ? `url("${CSS.escape(a)}")` : void 0,
|
|
480
|
-
paddingTop:
|
|
509
|
+
paddingTop: y && !i && !O ? 0 : 24
|
|
481
510
|
},
|
|
482
511
|
children: [
|
|
483
512
|
i ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
|
|
484
|
-
paddingBottom:
|
|
513
|
+
paddingBottom: y ? 0 : 40,
|
|
485
514
|
paddingX: 24,
|
|
486
515
|
children: i
|
|
487
516
|
}) : /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
|
|
488
|
-
paddingBottom: (
|
|
517
|
+
paddingBottom: (f == null ? void 0 : f.length) || g ? y ? 24 : 64 : 0
|
|
489
518
|
}),
|
|
490
519
|
/* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
|
|
491
520
|
paddingX: 24,
|
|
492
|
-
paddingTop:
|
|
521
|
+
paddingTop: y ? 40 : 0,
|
|
493
522
|
paddingBottom: 24,
|
|
494
|
-
className:
|
|
523
|
+
className: y ? _cardCssMisticaJs.displayCardGradient : void 0,
|
|
495
524
|
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
|
|
496
525
|
space: 24,
|
|
497
526
|
children: [
|
|
@@ -500,7 +529,7 @@ const z = (param)=>{
|
|
|
500
529
|
/* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
|
|
501
530
|
space: 8,
|
|
502
531
|
children: [
|
|
503
|
-
(t ||
|
|
532
|
+
(t || o || p) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("header", {
|
|
504
533
|
children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
|
|
505
534
|
space: 16,
|
|
506
535
|
children: [
|
|
@@ -508,19 +537,19 @@ const z = (param)=>{
|
|
|
508
537
|
/* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
|
|
509
538
|
space: 4,
|
|
510
539
|
children: [
|
|
511
|
-
|
|
540
|
+
o && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text2, {
|
|
512
541
|
forceMobileSizes: !0,
|
|
513
|
-
truncate:
|
|
542
|
+
truncate: d,
|
|
514
543
|
as: "div",
|
|
515
544
|
regular: !0,
|
|
516
|
-
textShadow:
|
|
517
|
-
children:
|
|
545
|
+
textShadow: M,
|
|
546
|
+
children: o
|
|
518
547
|
}),
|
|
519
548
|
/* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text6, {
|
|
520
549
|
forceMobileSizes: !0,
|
|
521
550
|
truncate: s,
|
|
522
551
|
as: "h3",
|
|
523
|
-
textShadow:
|
|
552
|
+
textShadow: M,
|
|
524
553
|
children: p
|
|
525
554
|
})
|
|
526
555
|
]
|
|
@@ -528,24 +557,24 @@ const z = (param)=>{
|
|
|
528
557
|
]
|
|
529
558
|
})
|
|
530
559
|
}),
|
|
531
|
-
|
|
560
|
+
l && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text3, {
|
|
532
561
|
forceMobileSizes: !0,
|
|
533
|
-
truncate:
|
|
562
|
+
truncate: c,
|
|
534
563
|
as: "p",
|
|
535
564
|
regular: !0,
|
|
536
565
|
color: _skinContractCssMisticaJs.vars.colors.textSecondary,
|
|
537
|
-
textShadow:
|
|
538
|
-
children:
|
|
566
|
+
textShadow: M,
|
|
567
|
+
children: l
|
|
539
568
|
})
|
|
540
569
|
]
|
|
541
570
|
}),
|
|
542
|
-
|
|
571
|
+
h
|
|
543
572
|
]
|
|
544
573
|
}),
|
|
545
|
-
(m ||
|
|
574
|
+
(m || u || x) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_buttonGroupJs.default, {
|
|
546
575
|
primaryButton: m,
|
|
547
|
-
secondaryButton:
|
|
548
|
-
link:
|
|
576
|
+
secondaryButton: u,
|
|
577
|
+
link: x
|
|
549
578
|
})
|
|
550
579
|
]
|
|
551
580
|
})
|
|
@@ -554,22 +583,22 @@ const z = (param)=>{
|
|
|
554
583
|
})
|
|
555
584
|
})
|
|
556
585
|
});
|
|
557
|
-
}),
|
|
586
|
+
}), Ie = /*#__PURE__*/ _react.forwardRef((_param, i)=>/* @__PURE__ */ {
|
|
558
587
|
var { dataAttributes: r } = _param, a = _objectWithoutProperties(_param, [
|
|
559
588
|
"dataAttributes"
|
|
560
589
|
]);
|
|
561
|
-
return (0, _jsxRuntimeJs.jsx)(
|
|
590
|
+
return (0, _jsxRuntimeJs.jsx)(E, _objectSpreadProps(_objectSpread({}, a), {
|
|
562
591
|
ref: i,
|
|
563
592
|
isInverse: !0,
|
|
564
593
|
dataAttributes: _objectSpreadProps(_objectSpread({}, r), {
|
|
565
594
|
"component-name": "DisplayMediaCard"
|
|
566
595
|
})
|
|
567
596
|
}));
|
|
568
|
-
}),
|
|
597
|
+
}), Me = /*#__PURE__*/ _react.forwardRef((_param, i)=>/* @__PURE__ */ {
|
|
569
598
|
var { dataAttributes: r } = _param, a = _objectWithoutProperties(_param, [
|
|
570
599
|
"dataAttributes"
|
|
571
600
|
]);
|
|
572
|
-
return (0, _jsxRuntimeJs.jsx)(
|
|
601
|
+
return (0, _jsxRuntimeJs.jsx)(E, _objectSpreadProps(_objectSpread({}, a), {
|
|
573
602
|
ref: i,
|
|
574
603
|
dataAttributes: _objectSpreadProps(_objectSpread({}, r), {
|
|
575
604
|
"component-name": "DisplayDataCard"
|