@telefonica/mistica 14.16.0 → 14.17.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.
Files changed (40) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/button.css-mistica.js +19 -16
  3. package/dist/button.css.d.ts +1 -0
  4. package/dist/button.d.ts +6 -1
  5. package/dist/button.js +161 -115
  6. package/dist/card.js +115 -119
  7. package/dist/list.css-mistica.js +17 -11
  8. package/dist/list.css.d.ts +2 -0
  9. package/dist/list.d.ts +1 -0
  10. package/dist/list.js +106 -94
  11. package/dist/package-version.js +1 -1
  12. package/dist/skins/blau.js +11 -10
  13. package/dist/skins/defaults.js +1 -0
  14. package/dist/skins/movistar-legacy.js +11 -10
  15. package/dist/skins/movistar.js +11 -10
  16. package/dist/skins/o2.js +11 -10
  17. package/dist/skins/telefonica.js +11 -10
  18. package/dist/skins/types/index.d.ts +1 -0
  19. package/dist/skins/vivo-new.js +11 -10
  20. package/dist/skins/vivo.js +11 -10
  21. package/dist/spinner.css-mistica.js +4 -4
  22. package/dist/tabs.js +13 -13
  23. package/dist-es/button.css-mistica.js +3 -3
  24. package/dist-es/button.js +201 -155
  25. package/dist-es/card.js +164 -168
  26. package/dist-es/list.css-mistica.js +2 -2
  27. package/dist-es/list.js +143 -131
  28. package/dist-es/package-version.js +1 -1
  29. package/dist-es/skins/blau.js +11 -10
  30. package/dist-es/skins/defaults.js +1 -0
  31. package/dist-es/skins/movistar-legacy.js +11 -10
  32. package/dist-es/skins/movistar.js +11 -10
  33. package/dist-es/skins/o2.js +11 -10
  34. package/dist-es/skins/telefonica.js +11 -10
  35. package/dist-es/skins/vivo-new.js +11 -10
  36. package/dist-es/skins/vivo.js +11 -10
  37. package/dist-es/spinner.css-mistica.js +2 -2
  38. package/dist-es/style.css +1 -1
  39. package/dist-es/tabs.js +18 -18
  40. package/package.json +1 -1
package/dist-es/card.js CHANGED
@@ -77,21 +77,21 @@ function _object_without_properties_loose(source, excluded) {
77
77
  }
78
78
  return target;
79
79
  }
80
- import { jsxs as n, jsx as e, Fragment as Ce } from "react/jsx-runtime";
80
+ import { jsxs as n, jsx as e, Fragment as Ne } from "react/jsx-runtime";
81
81
  import * as T from "react";
82
82
  import Te from "./tag.js";
83
83
  import y from "./stack.js";
84
84
  import D from "./box.js";
85
- import { Text2 as A, Text6 as Se, Text3 as xe, Text as L } from "./text.js";
86
- import { Boxed as q, InternalBoxed as ee } from "./boxed.js";
87
- import J from "./button-group.js";
85
+ import { Text2 as A, Text6 as Se, Text3 as xe, Text as $ } from "./text.js";
86
+ import { Boxed as Z, InternalBoxed as L } from "./boxed.js";
87
+ import q from "./button-group.js";
88
88
  import we, { MediaBorderRadiusProvider as Be } from "./image.js";
89
89
  import { BaseTouchable as O } from "./touchable.js";
90
- import { vars as v } from "./skins/skin-contract.css-mistica.js";
91
- import { touchableContainer as _, boxed as P, touchable as E, mediaCard as Ie, mediaCardContent as Ae, dataCard as be, actions as re, snapCard as Re, videoAction as V, displayCardContainer as ae, displayCardBackground as ie, displayCardContent as ne, displayCardGradient as te, cardActionIconButton as $, cardContainer as De, vars as Me, touchableMediaCardOverlay as ze, touchableCardOverlay as K, touchableCardOverlayInverse as se, touchableCardOverlayMedia as oe, cardAction as He, cardActionInverse as Oe, cardActionMedia as _e } from "./card.css-mistica.js";
92
- import { useTheme as Q } from "./hooks.js";
93
- import { sprinkles as k } from "./sprinkles.css-mistica.js";
94
- import Pe from "./icon-button.js";
90
+ import { vars as f } from "./skins/skin-contract.css-mistica.js";
91
+ import { touchableContainer as P, boxed as _, touchable as E, mediaCard as Ie, mediaCardContent as Ae, dataCard as be, actions as ee, snapCard as Re, videoAction as V, displayCardContainer as re, displayCardBackground as ae, displayCardContent as ie, displayCardGradient as ne, cardActionIconButton as Q, cardContainer as De, vars as Me, touchableMediaCardOverlay as ze, touchableCardOverlay as J, touchableCardOverlayInverse as te, touchableCardOverlayMedia as se, cardAction as He, cardActionInverse as Oe, cardActionMedia as Pe } from "./card.css-mistica.js";
92
+ import { useTheme as K } from "./hooks.js";
93
+ import { sprinkles as oe } from "./sprinkles.css-mistica.js";
94
+ import _e from "./icon-button.js";
95
95
  import Ee from "./generated/mistica-icons/icon-close-regular.js";
96
96
  import We from "./generated/mistica-icons/icon-pause-filled.js";
97
97
  import Ge from "./generated/mistica-icons/icon-play-filled.js";
@@ -101,8 +101,9 @@ import Fe from "./video.js";
101
101
  import { useIsInverseVariant as le, ThemeVariant as de } from "./theme-variant-context.js";
102
102
  import Ve from "classnames";
103
103
  import { assignInlineVars as ke } from "@vanilla-extract/dynamic";
104
+ import Ue from "./inline.js";
104
105
  const ce = (r, a)=>{
105
- const { texts: i } = Q(), s = r ? [
106
+ const { texts: i } = K(), s = r ? [
106
107
  ...r
107
108
  ] : [];
108
109
  return a && s.push({
@@ -110,16 +111,16 @@ const ce = (r, a)=>{
110
111
  onPress: a,
111
112
  Icon: Ee
112
113
  }), s;
113
- }, he = 48, U = (param)=>{
114
+ }, he = 48, k = (param)=>{
114
115
  let { actions: r , onClose: a , type: i = "default" } = param;
115
116
  const s = ce(r, a), h = s.length > 0, o = {
116
- default: v.colors.neutralHigh,
117
- inverse: v.colors.inverse,
117
+ default: f.colors.neutralHigh,
118
+ inverse: f.colors.inverse,
118
119
  media: "#000000"
119
- }, u = {
120
+ }, p = {
120
121
  default: He,
121
122
  inverse: Oe,
122
- media: _e
123
+ media: Pe
123
124
  };
124
125
  return h ? /* @__PURE__ */ e("div", {
125
126
  style: {
@@ -129,43 +130,43 @@ const ce = (r, a)=>{
129
130
  zIndex: 3
130
131
  },
131
132
  children: /* @__PURE__ */ e("div", {
132
- className: k({
133
+ className: oe({
133
134
  display: "flex"
134
135
  }),
135
136
  children: s.map((param, m)=>{
136
- let { onPress: l , label: d , Icon: t , iconSize: p = 20 } = param;
137
- return t ? /* @__PURE__ */ e(Pe, {
137
+ let { onPress: l , label: d , Icon: t , iconSize: u = 20 } = param;
138
+ return t ? /* @__PURE__ */ e(_e, {
138
139
  size: he,
139
140
  onPress: l,
140
141
  "aria-label": d,
141
- className: $,
142
+ className: Q,
142
143
  style: {
143
144
  display: "flex"
144
145
  },
145
146
  children: /* @__PURE__ */ e("div", {
146
- className: u[i],
147
+ className: p[i],
147
148
  children: /* @__PURE__ */ e(t, {
148
149
  color: o[i],
149
- size: p
150
+ size: u
150
151
  })
151
152
  })
152
153
  }, m) : /* @__PURE__ */ e("div", {
153
- className: $
154
+ className: Q
154
155
  }, m);
155
156
  })
156
157
  })
157
- }) : /* @__PURE__ */ e(Ce, {});
158
- }, Ue = (r)=>r ? typeof r == "number" ? r : ({
158
+ }) : /* @__PURE__ */ e(Ne, {});
159
+ }, Ye = (r)=>r ? typeof r == "number" ? r : ({
159
160
  "1:1": 1,
160
161
  "16:9": 16 / 9,
161
162
  "7:10": 7 / 10,
162
163
  "9:10": 9 / 10,
163
164
  auto: 0
164
165
  })[r] : 0, W = (param)=>{
165
- let { children: r , width: a = "100%" , height: i = "100%" , minWidth: s , aspectRatio: h , className: o , "aria-label": u } = param;
166
- const l = Ue(h);
166
+ let { children: r , width: a = "100%" , height: i = "100%" , minWidth: s , aspectRatio: h , className: o , "aria-label": p } = param;
167
+ const l = Ye(h);
167
168
  return /* @__PURE__ */ e("section", {
168
- "aria-label": u,
169
+ "aria-label": p,
169
170
  className: Ve(o, De),
170
171
  style: _object_spread({
171
172
  width: a,
@@ -180,7 +181,7 @@ const ce = (r, a)=>{
180
181
  width: "100%",
181
182
  height: "100%",
182
183
  src: r !== null && r !== void 0 ? r : "//:0"
183
- }), Ye = {
184
+ }), Ze = {
184
185
  loading: {
185
186
  showSpinner: "loadingTimeout",
186
187
  play: "playing",
@@ -204,14 +205,14 @@ const ce = (r, a)=>{
204
205
  error: {
205
206
  reset: "loading"
206
207
  }
207
- }, Ze = (r, a)=>Ye[r][a] || r, qe = (param)=>/* @__PURE__ */ {
208
+ }, qe = (r, a)=>Ze[r][a] || r, Je = (param)=>/* @__PURE__ */ {
208
209
  let { size: r , color: a } = param;
209
210
  return e(je, {
210
211
  size: r,
211
212
  color: a,
212
213
  delay: "0"
213
214
  });
214
- }, ue = (r)=>{
215
+ }, pe = (r)=>{
215
216
  switch(r){
216
217
  case "playing":
217
218
  case "loading":
@@ -219,12 +220,12 @@ const ce = (r, a)=>{
219
220
  case "paused":
220
221
  return Ge;
221
222
  case "loadingTimeout":
222
- return qe;
223
+ return Je;
223
224
  default:
224
225
  return;
225
226
  }
226
- }, pe = (r, a, i)=>{
227
- const s = T.useRef(null), [h, o] = T.useReducer(Ze, "loading");
227
+ }, ue = (r, a, i)=>{
228
+ const s = T.useRef(null), [h, o] = T.useReducer(qe, "loading");
228
229
  return T.useEffect(()=>{
229
230
  var t;
230
231
  const d = setTimeout(()=>o("showSpinner"), 2e3);
@@ -255,13 +256,13 @@ const ce = (r, a)=>{
255
256
  }
256
257
  };
257
258
  }, fe = (param)=>{
258
- let { headline: r , pretitle: a , pretitleLinesMax: i , title: s , titleLinesMax: h , subtitle: o , subtitleLinesMax: u , description: l , descriptionLinesMax: d , extra: t , button: p , buttonLink: m } = param;
259
- const { textPresets: f } = Q(), g = ()=>r ? typeof r == "string" ? /* @__PURE__ */ e(Te, {
259
+ let { headline: r , pretitle: a , pretitleLinesMax: i , title: s , titleLinesMax: h , subtitle: o , subtitleLinesMax: p , description: l , descriptionLinesMax: d , extra: t , button: u , buttonLink: m } = param;
260
+ const { textPresets: v } = K(), g = ()=>r ? typeof r == "string" ? /* @__PURE__ */ e(Te, {
260
261
  type: "promo",
261
262
  children: r
262
263
  }) : r : null;
263
264
  return /* @__PURE__ */ n("div", {
264
- className: k({
265
+ className: oe({
265
266
  display: "flex",
266
267
  flex: 1,
267
268
  justifyContent: "space-between",
@@ -288,19 +289,19 @@ const ce = (r, a)=>{
288
289
  hyphens: "auto",
289
290
  children: a
290
291
  }),
291
- /* @__PURE__ */ e(L, {
292
+ /* @__PURE__ */ e($, {
292
293
  mobileSize: 18,
293
294
  mobileLineHeight: "24px",
294
295
  desktopSize: 20,
295
296
  desktopLineHeight: "28px",
296
297
  truncate: h,
297
- weight: f.cardTitle.weight,
298
+ weight: v.cardTitle.weight,
298
299
  as: "h3",
299
300
  hyphens: "auto",
300
301
  children: s
301
302
  }),
302
303
  /* @__PURE__ */ e(A, {
303
- truncate: u,
304
+ truncate: p,
304
305
  as: "div",
305
306
  regular: !0,
306
307
  hyphens: "auto",
@@ -315,7 +316,7 @@ const ce = (r, a)=>{
315
316
  truncate: d,
316
317
  as: "p",
317
318
  regular: !0,
318
- color: v.colors.textSecondary,
319
+ color: f.colors.textSecondary,
319
320
  hyphens: "auto",
320
321
  children: l
321
322
  })
@@ -326,17 +327,17 @@ const ce = (r, a)=>{
326
327
  })
327
328
  ]
328
329
  }),
329
- (p || m) && /* @__PURE__ */ e("div", {
330
- className: re,
331
- children: /* @__PURE__ */ e(J, {
332
- primaryButton: p,
330
+ (u || m) && /* @__PURE__ */ e("div", {
331
+ className: ee,
332
+ children: /* @__PURE__ */ e(q, {
333
+ primaryButton: u,
333
334
  link: m
334
335
  })
335
336
  })
336
337
  ]
337
338
  });
338
- }, Cr = /*#__PURE__*/ T.forwardRef((_param, w)=>{
339
- var { media: r , headline: a , pretitle: i , pretitleLinesMax: s , subtitle: h , subtitleLinesMax: o , title: u , titleLinesMax: l , description: d , descriptionLinesMax: t , extra: p , actions: m , button: f , buttonLink: g , dataAttributes: x , "aria-label": N , onClose: S } = _param, c = _object_without_properties(_param, [
339
+ }, Sr = /*#__PURE__*/ T.forwardRef((_param, B)=>{
340
+ var { media: r , headline: a , pretitle: i , pretitleLinesMax: s , subtitle: h , subtitleLinesMax: o , title: p , titleLinesMax: l , description: d , descriptionLinesMax: t , extra: u , actions: m , button: v , buttonLink: g , dataAttributes: w , "aria-label": C , onClose: S } = _param, c = _object_without_properties(_param, [
340
341
  "media",
341
342
  "headline",
342
343
  "pretitle",
@@ -355,26 +356,26 @@ const ce = (r, a)=>{
355
356
  "aria-label",
356
357
  "onClose"
357
358
  ]);
358
- const C = c.href || c.to || c.onPress, b = ze;
359
+ const N = c.href || c.to || c.onPress, b = ze;
359
360
  return /* @__PURE__ */ n(W, {
360
- "aria-label": N,
361
- className: _,
361
+ "aria-label": C,
362
+ className: P,
362
363
  children: [
363
- /* @__PURE__ */ e(q, {
364
- className: P,
364
+ /* @__PURE__ */ e(Z, {
365
+ className: _,
365
366
  dataAttributes: _object_spread({
366
367
  "component-name": "MediaCard"
367
- }, x),
368
- ref: w,
368
+ }, w),
369
+ ref: B,
369
370
  width: "100%",
370
371
  height: "100%",
371
372
  children: /* @__PURE__ */ n(O, _object_spread_props(_object_spread({
372
373
  maybe: !0
373
374
  }, c), {
374
375
  className: E,
375
- "aria-label": N,
376
+ "aria-label": C,
376
377
  children: [
377
- C && /* @__PURE__ */ e("div", {
378
+ N && /* @__PURE__ */ e("div", {
378
379
  className: b
379
380
  }),
380
381
  /* @__PURE__ */ n("div", {
@@ -390,14 +391,14 @@ const ce = (r, a)=>{
390
391
  headline: a,
391
392
  pretitle: i,
392
393
  pretitleLinesMax: s,
393
- title: u,
394
+ title: p,
394
395
  titleLinesMax: l,
395
396
  subtitle: h,
396
397
  subtitleLinesMax: o,
397
398
  description: d,
398
399
  descriptionLinesMax: t,
399
- extra: p,
400
- button: f,
400
+ extra: u,
401
+ button: v,
401
402
  buttonLink: g
402
403
  })
403
404
  })
@@ -406,15 +407,15 @@ const ce = (r, a)=>{
406
407
  ]
407
408
  }))
408
409
  }),
409
- /* @__PURE__ */ e(U, {
410
+ /* @__PURE__ */ e(k, {
410
411
  onClose: S,
411
412
  actions: m,
412
413
  type: "media"
413
414
  })
414
415
  ]
415
416
  });
416
- }), Tr = /*#__PURE__*/ T.forwardRef((_param, w)=>{
417
- var { icon: r , headline: a , pretitle: i , pretitleLinesMax: s , title: h , titleLinesMax: o , subtitle: u , subtitleLinesMax: l , description: d , descriptionLinesMax: t , extra: p , actions: m , button: f , buttonLink: g , dataAttributes: x , "aria-label": N , onClose: S } = _param, c = _object_without_properties(_param, [
417
+ }), xr = /*#__PURE__*/ T.forwardRef((_param, B)=>{
418
+ var { icon: r , headline: a , pretitle: i , pretitleLinesMax: s , title: h , titleLinesMax: o , subtitle: p , subtitleLinesMax: l , description: d , descriptionLinesMax: t , extra: u , actions: m , button: v , buttonLink: g , dataAttributes: w , "aria-label": C , onClose: S } = _param, c = _object_without_properties(_param, [
418
419
  "icon",
419
420
  "headline",
420
421
  "pretitle",
@@ -433,28 +434,28 @@ const ce = (r, a)=>{
433
434
  "aria-label",
434
435
  "onClose"
435
436
  ]);
436
- const C = !!r, b = c.href || c.to || c.onPress, z = K, H = ce(m, S), R = {
437
+ const N = !!r, b = c.href || c.to || c.onPress, z = J, H = ce(m, S), R = {
437
438
  marginRight: -16,
438
439
  marginTop: -24,
439
440
  width: he * H.length
440
441
  };
441
442
  return /* @__PURE__ */ n(W, {
442
- "aria-label": N,
443
- className: _,
443
+ "aria-label": C,
444
+ className: P,
444
445
  children: [
445
- /* @__PURE__ */ e(q, {
446
- className: P,
446
+ /* @__PURE__ */ e(Z, {
447
+ className: _,
447
448
  dataAttributes: _object_spread({
448
449
  "component-name": "DataCard"
449
- }, x),
450
- ref: w,
450
+ }, w),
451
+ ref: B,
451
452
  width: "100%",
452
453
  height: "100%",
453
454
  children: /* @__PURE__ */ n(O, _object_spread_props(_object_spread({
454
455
  maybe: !0
455
456
  }, c), {
456
457
  className: E,
457
- "aria-label": N,
458
+ "aria-label": C,
458
459
  children: [
459
460
  b && /* @__PURE__ */ e("div", {
460
461
  className: z
@@ -462,43 +463,38 @@ const ce = (r, a)=>{
462
463
  /* @__PURE__ */ n("div", {
463
464
  className: be,
464
465
  children: [
465
- /* @__PURE__ */ n("div", {
466
- className: k({
467
- display: "flex"
468
- }),
466
+ /* @__PURE__ */ n(Ue, {
467
+ space: 0,
469
468
  children: [
470
469
  /* @__PURE__ */ n(y, {
471
470
  space: 16,
472
- className: k({
473
- flex: 1
474
- }),
475
471
  children: [
476
- C ? r : null,
472
+ N ? r : null,
477
473
  /* @__PURE__ */ e(fe, {
478
474
  headline: a,
479
475
  pretitle: i,
480
476
  pretitleLinesMax: s,
481
477
  title: h,
482
478
  titleLinesMax: o,
483
- subtitle: u,
479
+ subtitle: p,
484
480
  subtitleLinesMax: l,
485
481
  description: d,
486
482
  descriptionLinesMax: t
487
483
  })
488
484
  ]
489
485
  }),
490
- !C && /* @__PURE__ */ e("div", {
486
+ !N && /* @__PURE__ */ e("div", {
491
487
  style: R
492
488
  })
493
489
  ]
494
490
  }),
495
- p && /* @__PURE__ */ e("div", {
496
- children: p
491
+ u && /* @__PURE__ */ e("div", {
492
+ children: u
497
493
  }),
498
- (f || g) && /* @__PURE__ */ e("div", {
499
- className: re,
500
- children: /* @__PURE__ */ e(J, {
501
- primaryButton: f,
494
+ (v || g) && /* @__PURE__ */ e("div", {
495
+ className: ee,
496
+ children: /* @__PURE__ */ e(q, {
497
+ primaryButton: v,
502
498
  link: g
503
499
  })
504
500
  })
@@ -507,15 +503,15 @@ const ce = (r, a)=>{
507
503
  ]
508
504
  }))
509
505
  }),
510
- /* @__PURE__ */ e(U, {
506
+ /* @__PURE__ */ e(k, {
511
507
  onClose: S,
512
508
  actions: m,
513
509
  type: "default"
514
510
  })
515
511
  ]
516
512
  });
517
- }), Sr = /*#__PURE__*/ T.forwardRef((_param, p)=>{
518
- var { icon: r , title: a , titleLinesMax: i , subtitle: s , subtitleLinesMax: h , dataAttributes: o , "aria-label": u , extra: l , isInverse: d = !1 } = _param, t = _object_without_properties(_param, [
513
+ }), wr = /*#__PURE__*/ T.forwardRef((_param, u)=>{
514
+ var { icon: r , title: a , titleLinesMax: i , subtitle: s , subtitleLinesMax: h , dataAttributes: o , "aria-label": p , extra: l , isInverse: d = !1 } = _param, t = _object_without_properties(_param, [
519
515
  "icon",
520
516
  "title",
521
517
  "titleLinesMax",
@@ -526,15 +522,15 @@ const ce = (r, a)=>{
526
522
  "extra",
527
523
  "isInverse"
528
524
  ]);
529
- const m = t.href || t.to || t.onPress, f = d ? se : K;
525
+ const m = t.href || t.to || t.onPress, v = d ? te : J;
530
526
  return /* @__PURE__ */ e(W, {
531
- className: _,
532
- children: /* @__PURE__ */ e(q, {
533
- className: P,
527
+ className: P,
528
+ children: /* @__PURE__ */ e(Z, {
529
+ className: _,
534
530
  dataAttributes: _object_spread({
535
531
  "component-name": "SnapCard"
536
532
  }, o),
537
- ref: p,
533
+ ref: u,
538
534
  isInverse: d,
539
535
  width: "100%",
540
536
  height: "100%",
@@ -542,10 +538,10 @@ const ce = (r, a)=>{
542
538
  maybe: !0
543
539
  }, t), {
544
540
  className: E,
545
- "aria-label": u,
541
+ "aria-label": p,
546
542
  children: [
547
543
  m && /* @__PURE__ */ e("div", {
548
- className: f
544
+ className: v
549
545
  }),
550
546
  /* @__PURE__ */ n("section", {
551
547
  className: Re,
@@ -569,7 +565,7 @@ const ce = (r, a)=>{
569
565
  s && /* @__PURE__ */ e(A, {
570
566
  truncate: h,
571
567
  regular: !0,
572
- color: v.colors.textSecondary,
568
+ color: f.colors.textSecondary,
573
569
  as: "p",
574
570
  hyphens: "auto",
575
571
  children: s
@@ -587,8 +583,8 @@ const ce = (r, a)=>{
587
583
  }))
588
584
  })
589
585
  });
590
- }), Je = 264, ve = /*#__PURE__*/ T.forwardRef((_param, G)=>{
591
- var { isInverse: r , backgroundImage: a , backgroundVideo: i , backgroundVideoRef: s , poster: h , icon: o , headline: u , pretitle: l , pretitleLinesMax: d , title: t , titleLinesMax: p , description: m , descriptionLinesMax: f , extra: g , button: x , secondaryButton: N , onClose: S , actions: c , buttonLink: w , dataAttributes: C , width: b , height: z , aspectRatio: H , "aria-label": R } = _param, M = _object_without_properties(_param, [
586
+ }), Ke = 264, ve = /*#__PURE__*/ T.forwardRef((_param, G)=>{
587
+ var { isInverse: r , backgroundImage: a , backgroundVideo: i , backgroundVideoRef: s , poster: h , icon: o , headline: p , pretitle: l , pretitleLinesMax: d , title: t , titleLinesMax: u , description: m , descriptionLinesMax: v , extra: g , button: w , secondaryButton: C , onClose: S , actions: c , buttonLink: B , dataAttributes: N , width: b , height: z , aspectRatio: H , "aria-label": R } = _param, M = _object_without_properties(_param, [
592
588
  "isInverse",
593
589
  "backgroundImage",
594
590
  "backgroundVideo",
@@ -614,36 +610,36 @@ const ce = (r, a)=>{
614
610
  "aspectRatio",
615
611
  "aria-label"
616
612
  ]);
617
- const B = me(a), { video: X , videoStatus: j , onVideoControlPress: Y } = pe(i, h, s);
613
+ const I = me(a), { video: X , videoStatus: j , onVideoControlPress: U } = ue(i, h, s);
618
614
  i && (c = [
619
615
  {
620
- Icon: ue(j),
621
- onPress: Y,
616
+ Icon: pe(j),
617
+ onPress: U,
622
618
  label: "Video controls",
623
619
  iconSize: j === "loadingTimeout" ? 16 : 12,
624
- iconColor: v.colors.inverse,
620
+ iconColor: f.colors.inverse,
625
621
  iconBackground: V,
626
622
  iconBackgroundInverse: V
627
623
  }
628
624
  ]);
629
- const F = le(), I = !!a || !!i, Z = I ? "0 0 16px rgba(0,0,0,0.4)" : void 0, ye = (c == null ? void 0 : c.length) || S, ge = M.href || M.to || M.onPress, Ne = a || i ? oe : r ? se : K;
625
+ const F = le(), x = !!a || !!i, Y = x ? "0 0 16px rgba(0,0,0,0.4)" : void 0, ye = (c == null ? void 0 : c.length) || S, ge = M.href || M.to || M.onPress, Ce = a || i ? se : r ? te : J;
630
626
  return /* @__PURE__ */ n(W, {
631
627
  width: b,
632
628
  height: z,
633
629
  aspectRatio: H,
634
630
  "aria-label": R,
635
- minWidth: Je,
636
- className: _,
631
+ minWidth: Ke,
632
+ className: P,
637
633
  children: [
638
- /* @__PURE__ */ e(ee, {
639
- borderRadius: v.borderRadii.legacyDisplay,
640
- className: P,
641
- dataAttributes: C,
634
+ /* @__PURE__ */ e(L, {
635
+ borderRadius: f.borderRadii.legacyDisplay,
636
+ className: _,
637
+ dataAttributes: N,
642
638
  ref: G,
643
639
  width: "100%",
644
640
  minHeight: "100%",
645
641
  isInverse: r,
646
- background: a || i ? F ? v.colors.backgroundContainerBrandOverInverse : v.colors.backgroundContainer : void 0,
642
+ background: a || i ? F ? f.colors.backgroundContainerBrandOverInverse : f.colors.backgroundContainer : void 0,
647
643
  children: /* @__PURE__ */ n(O, _object_spread_props(_object_spread({
648
644
  maybe: !0
649
645
  }, M), {
@@ -651,36 +647,36 @@ const ce = (r, a)=>{
651
647
  "aria-label": R,
652
648
  children: [
653
649
  ge && /* @__PURE__ */ e("div", {
654
- className: Ne
650
+ className: Ce
655
651
  }),
656
652
  /* @__PURE__ */ n("div", {
657
- className: ae,
653
+ className: re,
658
654
  children: [
659
655
  /* @__PURE__ */ e(de, {
660
656
  isInverse: F,
661
657
  children: /* @__PURE__ */ e("div", {
662
- className: ie,
663
- children: i ? X : a ? B : void 0
658
+ className: ae,
659
+ children: i ? X : a ? I : void 0
664
660
  })
665
661
  }),
666
662
  /* @__PURE__ */ n("div", {
667
- className: ne,
663
+ className: ie,
668
664
  style: {
669
- paddingTop: I && !o && !ye ? 0 : 24
665
+ paddingTop: x && !o && !ye ? 0 : 24
670
666
  },
671
667
  children: [
672
668
  o ? /* @__PURE__ */ e(D, {
673
- paddingBottom: I ? 0 : 40,
669
+ paddingBottom: x ? 0 : 40,
674
670
  paddingX: 24,
675
671
  children: o
676
672
  }) : /* @__PURE__ */ e(D, {
677
- paddingBottom: c != null && c.length || S ? I ? 24 : 64 : 0
673
+ paddingBottom: c != null && c.length || S ? x ? 24 : 64 : 0
678
674
  }),
679
675
  /* @__PURE__ */ e(D, {
680
676
  paddingX: 24,
681
- paddingTop: I ? 40 : 0,
677
+ paddingTop: x ? 40 : 0,
682
678
  paddingBottom: 24,
683
- className: I ? te : void 0,
679
+ className: x ? ne : void 0,
684
680
  children: /* @__PURE__ */ n(y, {
685
681
  space: 24,
686
682
  children: [
@@ -689,11 +685,11 @@ const ce = (r, a)=>{
689
685
  /* @__PURE__ */ n(y, {
690
686
  space: 8,
691
687
  children: [
692
- (u || l || t) && /* @__PURE__ */ e("header", {
688
+ (p || l || t) && /* @__PURE__ */ e("header", {
693
689
  children: /* @__PURE__ */ n(y, {
694
690
  space: 16,
695
691
  children: [
696
- u,
692
+ p,
697
693
  /* @__PURE__ */ n(y, {
698
694
  space: 4,
699
695
  children: [
@@ -702,14 +698,14 @@ const ce = (r, a)=>{
702
698
  truncate: d,
703
699
  as: "div",
704
700
  regular: !0,
705
- textShadow: Z,
701
+ textShadow: Y,
706
702
  children: l
707
703
  }),
708
704
  /* @__PURE__ */ e(Se, {
709
705
  forceMobileSizes: !0,
710
- truncate: p,
706
+ truncate: u,
711
707
  as: "h3",
712
- textShadow: Z,
708
+ textShadow: Y,
713
709
  hyphens: "auto",
714
710
  children: t
715
711
  })
@@ -720,11 +716,11 @@ const ce = (r, a)=>{
720
716
  }),
721
717
  m && /* @__PURE__ */ e(xe, {
722
718
  forceMobileSizes: !0,
723
- truncate: f,
719
+ truncate: v,
724
720
  as: "p",
725
721
  regular: !0,
726
- color: v.colors.textSecondary,
727
- textShadow: Z,
722
+ color: x ? f.colors.textPrimary : f.colors.textSecondary,
723
+ textShadow: Y,
728
724
  hyphens: "auto",
729
725
  children: m
730
726
  })
@@ -733,10 +729,10 @@ const ce = (r, a)=>{
733
729
  g
734
730
  ]
735
731
  }),
736
- (x || N || w) && /* @__PURE__ */ e(J, {
737
- primaryButton: x,
738
- secondaryButton: N,
739
- link: w
732
+ (w || C || B) && /* @__PURE__ */ e(q, {
733
+ primaryButton: w,
734
+ secondaryButton: C,
735
+ link: B
740
736
  })
741
737
  ]
742
738
  })
@@ -748,14 +744,14 @@ const ce = (r, a)=>{
748
744
  ]
749
745
  }))
750
746
  }),
751
- /* @__PURE__ */ e(U, {
747
+ /* @__PURE__ */ e(k, {
752
748
  onClose: S,
753
749
  actions: c,
754
750
  type: a || i ? "media" : r ? "inverse" : "default"
755
751
  })
756
752
  ]
757
753
  });
758
- }), xr = /*#__PURE__*/ T.forwardRef((_param, i)=>/* @__PURE__ */ {
754
+ }), Br = /*#__PURE__*/ T.forwardRef((_param, i)=>/* @__PURE__ */ {
759
755
  var { dataAttributes: r } = _param, a = _object_without_properties(_param, [
760
756
  "dataAttributes"
761
757
  ]);
@@ -766,7 +762,7 @@ const ce = (r, a)=>{
766
762
  "component-name": "DisplayMediaCard"
767
763
  })
768
764
  }));
769
- }), wr = /*#__PURE__*/ T.forwardRef((_param, i)=>/* @__PURE__ */ {
765
+ }), Ir = /*#__PURE__*/ T.forwardRef((_param, i)=>/* @__PURE__ */ {
770
766
  var { dataAttributes: r } = _param, a = _object_without_properties(_param, [
771
767
  "dataAttributes"
772
768
  ]);
@@ -776,8 +772,8 @@ const ce = (r, a)=>{
776
772
  "component-name": "DisplayDataCard"
777
773
  })
778
774
  }));
779
- }), Ke = 140, Br = /*#__PURE__*/ T.forwardRef((_param, b)=>{
780
- var { dataAttributes: r , backgroundImage: a , backgroundVideo: i , poster: s , backgroundVideoRef: h , width: o , height: u , aspectRatio: l = "7:10" , ariaLabel: d , actions: t , onClose: p , icon: m , headline: f , pretitle: g , pretitleLinesMax: x , title: N , titleLinesMax: S , description: c , descriptionLinesMax: w } = _param, C = _object_without_properties(_param, [
775
+ }), Qe = 140, Ar = /*#__PURE__*/ T.forwardRef((_param, b)=>{
776
+ var { dataAttributes: r , backgroundImage: a , backgroundVideo: i , poster: s , backgroundVideoRef: h , width: o , height: p , aspectRatio: l = "7:10" , ariaLabel: d , actions: t , onClose: u , icon: m , headline: v , pretitle: g , pretitleLinesMax: w , title: C , titleLinesMax: S , description: c , descriptionLinesMax: B } = _param, N = _object_without_properties(_param, [
781
777
  "dataAttributes",
782
778
  "backgroundImage",
783
779
  "backgroundVideo",
@@ -798,106 +794,106 @@ const ce = (r, a)=>{
798
794
  "description",
799
795
  "descriptionLinesMax"
800
796
  ]);
801
- const z = me(a), { video: H , videoStatus: R , onVideoControlPress: M } = pe(i, s, h);
797
+ const z = me(a), { video: H , videoStatus: R , onVideoControlPress: M } = ue(i, s, h);
802
798
  i && (t = [
803
799
  {
804
- Icon: ue(R),
800
+ Icon: pe(R),
805
801
  onPress: M,
806
802
  label: "Video controls",
807
803
  iconSize: R === "loadingTimeout" ? 16 : 12,
808
- iconColor: v.colors.inverse,
804
+ iconColor: f.colors.inverse,
809
805
  iconBackground: V,
810
806
  iconBackgroundInverse: V
811
807
  }
812
808
  ]);
813
- const G = le(), B = !!a || !!i, X = B ? "0 0 16px rgba(0,0,0,0.4)" : void 0, j = (t == null ? void 0 : t.length) || p, { textPresets: Y } = Q(), F = C.href || C.to || C.onPress, I = oe;
809
+ const G = le(), I = !!a || !!i, X = I ? "0 0 16px rgba(0,0,0,0.4)" : void 0, j = (t == null ? void 0 : t.length) || u, { textPresets: U } = K(), F = N.href || N.to || N.onPress, x = se;
814
810
  return /* @__PURE__ */ n(W, {
815
811
  width: o,
816
- height: u,
817
- minWidth: Ke,
812
+ height: p,
813
+ minWidth: Qe,
818
814
  aspectRatio: l,
819
815
  "aria-label": d,
820
- className: _,
816
+ className: P,
821
817
  children: [
822
- /* @__PURE__ */ e(ee, {
823
- borderRadius: v.borderRadii.legacyDisplay,
824
- className: P,
818
+ /* @__PURE__ */ e(L, {
819
+ borderRadius: f.borderRadii.legacyDisplay,
820
+ className: _,
825
821
  dataAttributes: r,
826
822
  ref: b,
827
823
  width: "100%",
828
824
  minHeight: "100%",
829
825
  isInverse: !0,
830
- background: a || i ? G ? v.colors.backgroundContainerBrandOverInverse : v.colors.backgroundContainer : void 0,
826
+ background: a || i ? G ? f.colors.backgroundContainerBrandOverInverse : f.colors.backgroundContainer : void 0,
831
827
  children: /* @__PURE__ */ n(O, _object_spread_props(_object_spread({
832
828
  maybe: !0
833
- }, C), {
829
+ }, N), {
834
830
  className: E,
835
831
  "aria-label": d,
836
832
  children: [
837
833
  F && /* @__PURE__ */ e("div", {
838
- className: I
834
+ className: x
839
835
  }),
840
836
  /* @__PURE__ */ n("div", {
841
- className: ae,
837
+ className: re,
842
838
  children: [
843
839
  /* @__PURE__ */ e(de, {
844
840
  isInverse: G,
845
841
  children: /* @__PURE__ */ e("div", {
846
- className: ie,
842
+ className: ae,
847
843
  children: i ? H : a ? z : void 0
848
844
  })
849
845
  }),
850
846
  /* @__PURE__ */ n("div", {
851
- className: ne,
847
+ className: ie,
852
848
  style: {
853
- paddingTop: B && !m && !j ? 0 : 24
849
+ paddingTop: I && !m && !j ? 0 : 24
854
850
  },
855
851
  children: [
856
852
  m ? /* @__PURE__ */ e(D, {
857
- paddingBottom: B ? 0 : 40,
853
+ paddingBottom: I ? 0 : 40,
858
854
  paddingX: 24,
859
855
  children: m
860
856
  }) : /* @__PURE__ */ e(D, {
861
- paddingBottom: t != null && t.length || p ? B ? 24 : 64 : 0
857
+ paddingBottom: t != null && t.length || u ? I ? 24 : 64 : 0
862
858
  }),
863
859
  /* @__PURE__ */ e(D, {
864
860
  paddingX: 16,
865
- paddingTop: B ? 40 : 0,
861
+ paddingTop: I ? 40 : 0,
866
862
  paddingBottom: 24,
867
- className: B ? te : void 0,
863
+ className: I ? ne : void 0,
868
864
  children: /* @__PURE__ */ e(y, {
869
865
  space: 24,
870
866
  children: /* @__PURE__ */ e("div", {
871
867
  children: /* @__PURE__ */ n(y, {
872
868
  space: 8,
873
869
  children: [
874
- (f || g || N) && /* @__PURE__ */ e("header", {
870
+ (v || g || C) && /* @__PURE__ */ e("header", {
875
871
  children: /* @__PURE__ */ n(y, {
876
872
  space: 16,
877
873
  children: [
878
- f,
874
+ v,
879
875
  /* @__PURE__ */ n(y, {
880
876
  space: 4,
881
877
  children: [
882
878
  g && /* @__PURE__ */ e(A, {
883
879
  forceMobileSizes: !0,
884
- truncate: x,
880
+ truncate: w,
885
881
  as: "div",
886
882
  regular: !0,
887
883
  textShadow: X,
888
884
  hyphens: "auto",
889
885
  children: g
890
886
  }),
891
- /* @__PURE__ */ e(L, {
887
+ /* @__PURE__ */ e($, {
892
888
  desktopSize: 20,
893
889
  mobileSize: 18,
894
890
  mobileLineHeight: "24px",
895
891
  desktopLineHeight: "28px",
896
892
  truncate: S,
897
- weight: Y.cardTitle.weight,
893
+ weight: U.cardTitle.weight,
898
894
  as: "h3",
899
895
  hyphens: "auto",
900
- children: N
896
+ children: C
901
897
  })
902
898
  ]
903
899
  })
@@ -906,7 +902,7 @@ const ce = (r, a)=>{
906
902
  }),
907
903
  c && /* @__PURE__ */ e(A, {
908
904
  forceMobileSizes: !0,
909
- truncate: w,
905
+ truncate: B,
910
906
  as: "p",
911
907
  regular: !0,
912
908
  textShadow: X,
@@ -925,12 +921,12 @@ const ce = (r, a)=>{
925
921
  ]
926
922
  }))
927
923
  }),
928
- /* @__PURE__ */ e(U, {
929
- onClose: p,
924
+ /* @__PURE__ */ e(k, {
925
+ onClose: u,
930
926
  actions: t,
931
927
  type: "media"
932
928
  })
933
929
  ]
934
930
  });
935
931
  });
936
- export { Tr as DataCard, wr as DisplayDataCard, xr as DisplayMediaCard, Cr as MediaCard, Br as PosterCard, Sr as SnapCard };
932
+ export { xr as DataCard, Ir as DisplayDataCard, Br as DisplayMediaCard, Sr as MediaCard, Ar as PosterCard, wr as SnapCard };