@telefonica/mistica 14.3.0 → 14.4.1

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/dist/card.js CHANGED
@@ -9,11 +9,11 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- DataCard: ()=>ze,
13
- DisplayDataCard: ()=>Ie,
14
- DisplayMediaCard: ()=>ke,
15
- MediaCard: ()=>Re,
16
- SnapCard: ()=>He
12
+ DataCard: ()=>De,
13
+ DisplayDataCard: ()=>Me,
14
+ DisplayMediaCard: ()=>Ie,
15
+ MediaCard: ()=>we,
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 z = (param)=>{
160
- let { headline: r , pretitle: a , pretitleLinesMax: i , title: t , titleLinesMax: n , subtitle: l , subtitleLinesMax: p , description: s , descriptionLinesMax: c , extra: o , button: u , buttonLink: m } = param;
161
- const { textPresets: f } = (0, _hooksJs.useTheme)(), b = ()=>r ? typeof r == "string" ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_tagJs.default, {
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, c)=>/* @__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
+ }, c);
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: c , isInverse: p , "aria-label": s } = param;
199
+ const l = P(o, c), d = 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
+ d && /* @__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: c , subtitleLinesMax: p , description: s , descriptionLinesMax: l , extra: d , 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 || l) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("header", {
243
+ (r || a || t || c) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("header", {
179
244
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
180
245
  space: 8,
181
246
  children: [
182
- b(),
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: n,
198
- weight: f.cardTitle.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: l
271
+ children: c
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: c,
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
- o && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
223
- children: o
287
+ d && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
288
+ children: d
224
289
  })
225
290
  ]
226
291
  }),
227
- (u || m) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
292
+ (h || m) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
228
293
  className: _cardCssMisticaJs.actions,
229
294
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_buttonGroupJs.default, {
230
- primaryButton: u,
295
+ primaryButton: h,
231
296
  link: m
232
297
  })
233
298
  })
234
299
  ]
235
300
  });
236
- }, H = (param)=>{
237
- let { "aria-label": r , className: a , style: i , children: t } = param;
238
- return (0, _maybeDismissableJs.useIsDismissable)() ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
239
- className: a,
240
- style: i,
241
- children: t
242
- }) : /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("section", {
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
+ }, we = /*#__PURE__*/ _react.forwardRef((param, S)=>/* @__PURE__ */ {
302
+ let { media: r , headline: a , pretitle: i , pretitleLinesMax: t , subtitle: o , subtitleLinesMax: c , title: p , titleLinesMax: s , description: l , descriptionLinesMax: d , extra: h , actions: m , button: u , buttonLink: g , dataAttributes: f , "aria-label": C , onClose: A } = param;
303
+ return (0, _jsxRuntimeJs.jsx)(X, {
304
+ onClose: A,
305
+ actions: m,
306
+ "aria-label": C,
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
- }, b),
312
+ }, f),
258
313
  ref: S,
259
314
  width: "100%",
260
315
  height: "100%",
261
- children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(H, {
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,102 @@ const z = (param)=>{
268
322
  }),
269
323
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
270
324
  className: _cardCssMisticaJs.mediaCardContent,
271
- children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(z, {
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: n,
278
- subtitleLinesMax: l,
279
- description: c,
280
- descriptionLinesMax: o,
281
- extra: u,
282
- button: m,
283
- buttonLink: f
331
+ subtitle: o,
332
+ subtitleLinesMax: c,
333
+ description: l,
334
+ descriptionLinesMax: d,
335
+ extra: h,
336
+ button: u,
337
+ buttonLink: g
284
338
  })
285
339
  })
286
340
  ]
287
341
  })
288
342
  })
289
343
  });
290
- }), ze = /*#__PURE__*/ _react.forwardRef((param, S)=>/* @__PURE__ */ {
291
- let { icon: r , headline: a , pretitle: i , pretitleLinesMax: t , title: n , titleLinesMax: l , subtitle: p , subtitleLinesMax: s , description: c , descriptionLinesMax: o , extra: u , button: m , buttonLink: f , dataAttributes: b , "aria-label": h , onClose: C } = param;
292
- return (0, _jsxRuntimeJs.jsx)(_maybeDismissableJs.default, {
293
- "aria-label": h,
294
- onClose: C,
344
+ }), De = /*#__PURE__*/ _react.forwardRef((param, S)=>{
345
+ let { icon: r , headline: a , pretitle: i , pretitleLinesMax: t , title: o , titleLinesMax: c , subtitle: p , subtitleLinesMax: s , description: l , descriptionLinesMax: d , extra: h , actions: m , button: u , buttonLink: g , dataAttributes: f , "aria-label": C , onClose: A } = param;
346
+ const N = P(m, A), R = N.length > 0, B = !!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": C,
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
- }, b),
365
+ }, f),
300
366
  ref: S,
301
367
  width: "100%",
302
368
  height: "100%",
303
- children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(H, {
369
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("div", {
304
370
  className: _cardCssMisticaJs.dataCard,
305
- "aria-label": h,
306
371
  children: [
307
- r && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
308
- paddingBottom: 16,
309
- children: r
372
+ /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("div", {
373
+ className: (0, _sprinklesCssMisticaJs.sprinkles)({
374
+ display: "flex"
375
+ }),
376
+ children: [
377
+ /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
378
+ space: 16,
379
+ className: (0, _sprinklesCssMisticaJs.sprinkles)({
380
+ flex: 1
381
+ }),
382
+ children: [
383
+ B ? r : null,
384
+ /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_, {
385
+ headline: a,
386
+ pretitle: i,
387
+ pretitleLinesMax: t,
388
+ title: o,
389
+ titleLinesMax: c,
390
+ subtitle: p,
391
+ subtitleLinesMax: s,
392
+ description: l,
393
+ descriptionLinesMax: d
394
+ })
395
+ ]
396
+ }),
397
+ R && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
398
+ style: B ? I : y,
399
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(W, {
400
+ actions: N
401
+ })
402
+ })
403
+ ]
310
404
  }),
311
- /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(z, {
312
- headline: a,
313
- pretitle: i,
314
- pretitleLinesMax: t,
315
- title: n,
316
- titleLinesMax: l,
317
- subtitle: p,
318
- subtitleLinesMax: s,
319
- description: c,
320
- descriptionLinesMax: o,
321
- extra: u,
322
- button: m,
323
- buttonLink: f
405
+ h && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
406
+ children: h
407
+ }),
408
+ (u || g) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
409
+ className: _cardCssMisticaJs.actions,
410
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_buttonGroupJs.default, {
411
+ primaryButton: u,
412
+ link: g
413
+ })
324
414
  })
325
415
  ]
326
416
  })
327
417
  })
328
418
  });
329
- }), He = /*#__PURE__*/ _react.forwardRef((_param, u)=>{
330
- var { icon: r , title: a , titleLinesMax: i , subtitle: t , subtitleLinesMax: n , dataAttributes: l , "aria-label": p , extra: s , isInverse: c = !1 } = _param, o = _objectWithoutProperties(_param, [
419
+ }), Re = /*#__PURE__*/ _react.forwardRef((_param, h)=>{
420
+ var { icon: r , title: a , titleLinesMax: i , subtitle: t , subtitleLinesMax: o , dataAttributes: c , "aria-label": p , extra: s , isInverse: l = !1 } = _param, d = _objectWithoutProperties(_param, [
331
421
  "icon",
332
422
  "title",
333
423
  "titleLinesMax",
@@ -338,20 +428,20 @@ const z = (param)=>{
338
428
  "extra",
339
429
  "isInverse"
340
430
  ]);
341
- const { isDarkMode: m } = (0, _hooksJs.useTheme)(), f = Boolean(o.to || o.href || o.onPress);
431
+ const { isDarkMode: m } = (0, _hooksJs.useTheme)(), u = Boolean(d.to || d.href || d.onPress);
342
432
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxedJs.Boxed, {
343
433
  className: _cardCssMisticaJs.boxed,
344
434
  dataAttributes: _objectSpread({
345
435
  "component-name": "SnapCard"
346
- }, l),
347
- ref: u,
348
- isInverse: c,
436
+ }, c),
437
+ ref: h,
438
+ isInverse: l,
349
439
  width: "100%",
350
440
  height: "100%",
351
441
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_touchableJs.BaseTouchable, _objectSpreadProps(_objectSpread({
352
442
  maybe: !0
353
- }, o), {
354
- className: f && !c && !m ? _cardCssMisticaJs.snapCardTouchableHover : _cardCssMisticaJs.snapCardTouchableHoverTransparent,
443
+ }, d), {
444
+ className: u && !l && !m ? _cardCssMisticaJs.snapCardTouchableHover : _cardCssMisticaJs.snapCardTouchableHoverTransparent,
355
445
  "aria-label": p,
356
446
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("section", {
357
447
  className: _cardCssMisticaJs.snapCard,
@@ -372,7 +462,7 @@ const z = (param)=>{
372
462
  children: a
373
463
  }),
374
464
  t && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text2, {
375
- truncate: n,
465
+ truncate: o,
376
466
  regular: !0,
377
467
  color: _skinContractCssMisticaJs.vars.colors.textSecondary,
378
468
  as: "p",
@@ -389,86 +479,22 @@ const z = (param)=>{
389
479
  })
390
480
  }))
391
481
  });
392
- }), ce = (param)=>/* @__PURE__ */ {
393
- let { actions: r , isInverse: a } = param;
394
- return (0, _jsxRuntimeJs.jsx)(_inlineJs.default, {
395
- space: 0,
396
- children: r.map((param, l)=>/* @__PURE__ */ {
397
- let { onPress: i , label: t , Icon: n } = param;
398
- return (0, _jsxRuntimeJs.jsx)(_iconButtonJs.default, {
399
- size: 48,
400
- onPress: i,
401
- "aria-label": t,
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,
482
+ }), E = /*#__PURE__*/ _react.forwardRef((param, I)=>{
483
+ let { isInverse: r , backgroundImage: a , icon: i , headline: t , pretitle: o , pretitleLinesMax: c , title: p , titleLinesMax: s , description: l , descriptionLinesMax: d , extra: h , button: m , secondaryButton: u , onClose: g , actions: f , buttonLink: C , dataAttributes: A , width: S , height: N , aspectRatio: R , "aria-label": B } = param;
484
+ const y = !!a, M = y ? "0 0 16px rgba(0,0,0,0.4)" : void 0, O = (f == null ? void 0 : f.length) || g;
485
+ return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(X, {
486
+ width: S,
487
+ height: N,
488
+ aspectRatio: R,
489
+ onClose: g,
490
+ actions: f,
491
+ "aria-label": B,
466
492
  isInverse: r,
467
493
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxedJs.InternalBoxed, {
468
494
  borderRadius: 16,
469
495
  className: _cardCssMisticaJs.boxed,
470
- dataAttributes: S,
471
- ref: X,
496
+ dataAttributes: A,
497
+ ref: I,
472
498
  width: "100%",
473
499
  minHeight: "100%",
474
500
  isInverse: r,
@@ -477,21 +503,21 @@ const z = (param)=>{
477
503
  className: _cardCssMisticaJs.displayCard,
478
504
  style: {
479
505
  backgroundImage: a ? `url("${CSS.escape(a)}")` : void 0,
480
- paddingTop: v && !i && !_ ? 0 : 24
506
+ paddingTop: y && !i && !O ? 0 : 24
481
507
  },
482
508
  children: [
483
509
  i ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
484
- paddingBottom: v ? 0 : 40,
510
+ paddingBottom: y ? 0 : 40,
485
511
  paddingX: 24,
486
512
  children: i
487
513
  }) : /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
488
- paddingBottom: (h == null ? void 0 : h.length) || b ? v ? 24 : 64 : 0
514
+ paddingBottom: (f == null ? void 0 : f.length) || g ? y ? 24 : 64 : 0
489
515
  }),
490
516
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
491
517
  paddingX: 24,
492
- paddingTop: v ? 40 : 0,
518
+ paddingTop: y ? 40 : 0,
493
519
  paddingBottom: 24,
494
- className: v ? _cardCssMisticaJs.displayCardGradient : void 0,
520
+ className: y ? _cardCssMisticaJs.displayCardGradient : void 0,
495
521
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
496
522
  space: 24,
497
523
  children: [
@@ -500,7 +526,7 @@ const z = (param)=>{
500
526
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
501
527
  space: 8,
502
528
  children: [
503
- (t || n || p) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("header", {
529
+ (t || o || p) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("header", {
504
530
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
505
531
  space: 16,
506
532
  children: [
@@ -508,19 +534,19 @@ const z = (param)=>{
508
534
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
509
535
  space: 4,
510
536
  children: [
511
- n && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text2, {
537
+ o && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text2, {
512
538
  forceMobileSizes: !0,
513
- truncate: l,
539
+ truncate: c,
514
540
  as: "div",
515
541
  regular: !0,
516
- textShadow: w,
517
- children: n
542
+ textShadow: M,
543
+ children: o
518
544
  }),
519
545
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text6, {
520
546
  forceMobileSizes: !0,
521
547
  truncate: s,
522
548
  as: "h3",
523
- textShadow: w,
549
+ textShadow: M,
524
550
  children: p
525
551
  })
526
552
  ]
@@ -528,23 +554,23 @@ const z = (param)=>{
528
554
  ]
529
555
  })
530
556
  }),
531
- c && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text3, {
557
+ l && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text3, {
532
558
  forceMobileSizes: !0,
533
- truncate: o,
559
+ truncate: d,
534
560
  as: "p",
535
561
  regular: !0,
536
562
  color: _skinContractCssMisticaJs.vars.colors.textSecondary,
537
- textShadow: w,
538
- children: c
563
+ textShadow: M,
564
+ children: l
539
565
  })
540
566
  ]
541
567
  }),
542
- u
568
+ h
543
569
  ]
544
570
  }),
545
- (m || f || C) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_buttonGroupJs.default, {
571
+ (m || u || C) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_buttonGroupJs.default, {
546
572
  primaryButton: m,
547
- secondaryButton: f,
573
+ secondaryButton: u,
548
574
  link: C
549
575
  })
550
576
  ]
@@ -554,22 +580,22 @@ const z = (param)=>{
554
580
  })
555
581
  })
556
582
  });
557
- }), ke = /*#__PURE__*/ _react.forwardRef((_param, i)=>/* @__PURE__ */ {
583
+ }), Ie = /*#__PURE__*/ _react.forwardRef((_param, i)=>/* @__PURE__ */ {
558
584
  var { dataAttributes: r } = _param, a = _objectWithoutProperties(_param, [
559
585
  "dataAttributes"
560
586
  ]);
561
- return (0, _jsxRuntimeJs.jsx)(k, _objectSpreadProps(_objectSpread({}, a), {
587
+ return (0, _jsxRuntimeJs.jsx)(E, _objectSpreadProps(_objectSpread({}, a), {
562
588
  ref: i,
563
589
  isInverse: !0,
564
590
  dataAttributes: _objectSpreadProps(_objectSpread({}, r), {
565
591
  "component-name": "DisplayMediaCard"
566
592
  })
567
593
  }));
568
- }), Ie = /*#__PURE__*/ _react.forwardRef((_param, i)=>/* @__PURE__ */ {
594
+ }), Me = /*#__PURE__*/ _react.forwardRef((_param, i)=>/* @__PURE__ */ {
569
595
  var { dataAttributes: r } = _param, a = _objectWithoutProperties(_param, [
570
596
  "dataAttributes"
571
597
  ]);
572
- return (0, _jsxRuntimeJs.jsx)(k, _objectSpreadProps(_objectSpread({}, a), {
598
+ return (0, _jsxRuntimeJs.jsx)(E, _objectSpreadProps(_objectSpread({}, a), {
573
599
  ref: i,
574
600
  dataAttributes: _objectSpreadProps(_objectSpread({}, r), {
575
601
  "component-name": "DisplayDataCard"