@telefonica/mistica 14.14.0 → 14.15.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 (122) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/avatar.css-mistica.js +1 -1
  3. package/dist/badge.css-mistica.js +3 -3
  4. package/dist/badge.js +19 -10
  5. package/dist/box.d.ts +1 -1
  6. package/dist/boxed.css-mistica.js +1 -1
  7. package/dist/button-layout.css-mistica.js +4 -4
  8. package/dist/button.css-mistica.js +19 -19
  9. package/dist/button.js +112 -112
  10. package/dist/callout.css-mistica.js +1 -1
  11. package/dist/card.css-mistica.js +23 -15
  12. package/dist/card.css.d.ts +4 -0
  13. package/dist/card.js +104 -95
  14. package/dist/carousel.css-mistica.js +13 -13
  15. package/dist/checkbox.css-mistica.js +5 -5
  16. package/dist/chip.css-mistica.js +4 -4
  17. package/dist/chip.d.ts +1 -0
  18. package/dist/chip.js +57 -41
  19. package/dist/circle.css-mistica.js +1 -1
  20. package/dist/dialog.css-mistica.js +3 -3
  21. package/dist/double-field.css-mistica.js +2 -2
  22. package/dist/empty-state-card.css-mistica.js +1 -1
  23. package/dist/empty-state.css-mistica.js +3 -3
  24. package/dist/feedback.css-mistica.js +3 -3
  25. package/dist/fixed-footer-layout.css-mistica.js +1 -1
  26. package/dist/fixed-footer-layout.js +79 -27
  27. package/dist/grid.css.d.ts +6 -6
  28. package/dist/hero.css-mistica.js +1 -1
  29. package/dist/highlighted-card.css-mistica.js +3 -3
  30. package/dist/image.css-mistica.js +1 -1
  31. package/dist/list.css-mistica.js +7 -7
  32. package/dist/loading-bar.css-mistica.js +4 -4
  33. package/dist/maybe-dismissable.css-mistica.js +3 -3
  34. package/dist/menu.css-mistica.js +1 -1
  35. package/dist/navigation-bar.css-mistica.js +11 -11
  36. package/dist/navigation-breadcrumbs.css-mistica.js +1 -1
  37. package/dist/package-version.js +1 -1
  38. package/dist/password-field.css-mistica.js +1 -1
  39. package/dist/popover.css-mistica.js +3 -3
  40. package/dist/progress-bar.css-mistica.js +1 -1
  41. package/dist/radio-button.css-mistica.js +5 -5
  42. package/dist/responsive-layout.css-mistica.js +2 -2
  43. package/dist/screen-reader-only.css-mistica.js +1 -1
  44. package/dist/select.css-mistica.js +13 -13
  45. package/dist/skins/types/index.d.ts +15 -9
  46. package/dist/snackbar.css-mistica.js +3 -3
  47. package/dist/sprinkles.css-mistica.js +226 -190
  48. package/dist/sprinkles.css.d.ts +16 -16
  49. package/dist/stepper.css-mistica.js +3 -3
  50. package/dist/stepper.js +26 -26
  51. package/dist/switch-component.css-mistica.js +10 -10
  52. package/dist/tabs.css-mistica.js +7 -7
  53. package/dist/tag.css-mistica.js +1 -1
  54. package/dist/tag.js +15 -14
  55. package/dist/text-field-base.css-mistica.js +6 -6
  56. package/dist/text-field-components.css-mistica.js +6 -6
  57. package/dist/text-link.css-mistica.js +5 -5
  58. package/dist/text.d.ts +6 -8
  59. package/dist/text.js +8 -7
  60. package/dist/title.js +27 -24
  61. package/dist/tooltip.css-mistica.js +6 -6
  62. package/dist/touchable.css-mistica.js +3 -3
  63. package/dist/utils/aspect-ratio-support.css-mistica.js +2 -2
  64. package/dist/video.css-mistica.js +1 -1
  65. package/dist-es/avatar.css-mistica.js +1 -1
  66. package/dist-es/badge.css-mistica.js +2 -2
  67. package/dist-es/badge.js +29 -20
  68. package/dist-es/boxed.css-mistica.js +1 -1
  69. package/dist-es/button-layout.css-mistica.js +3 -3
  70. package/dist-es/button.css-mistica.js +9 -9
  71. package/dist-es/button.js +154 -154
  72. package/dist-es/callout.css-mistica.js +1 -1
  73. package/dist-es/card.css-mistica.js +4 -2
  74. package/dist-es/card.js +151 -142
  75. package/dist-es/carousel.css-mistica.js +2 -2
  76. package/dist-es/checkbox.css-mistica.js +5 -5
  77. package/dist-es/chip.css-mistica.js +4 -4
  78. package/dist-es/chip.js +77 -61
  79. package/dist-es/circle.css-mistica.js +1 -1
  80. package/dist-es/dialog.css-mistica.js +3 -3
  81. package/dist-es/double-field.css-mistica.js +2 -2
  82. package/dist-es/empty-state-card.css-mistica.js +1 -1
  83. package/dist-es/empty-state.css-mistica.js +2 -2
  84. package/dist-es/feedback.css-mistica.js +2 -2
  85. package/dist-es/fixed-footer-layout.css-mistica.js +1 -1
  86. package/dist-es/fixed-footer-layout.js +94 -42
  87. package/dist-es/hero.css-mistica.js +1 -1
  88. package/dist-es/highlighted-card.css-mistica.js +3 -3
  89. package/dist-es/image.css-mistica.js +1 -1
  90. package/dist-es/list.css-mistica.js +2 -2
  91. package/dist-es/loading-bar.css-mistica.js +2 -2
  92. package/dist-es/maybe-dismissable.css-mistica.js +2 -2
  93. package/dist-es/menu.css-mistica.js +1 -1
  94. package/dist-es/navigation-bar.css-mistica.js +8 -8
  95. package/dist-es/navigation-breadcrumbs.css-mistica.js +1 -1
  96. package/dist-es/package-version.js +1 -1
  97. package/dist-es/password-field.css-mistica.js +1 -1
  98. package/dist-es/popover.css-mistica.js +2 -2
  99. package/dist-es/progress-bar.css-mistica.js +1 -1
  100. package/dist-es/radio-button.css-mistica.js +4 -4
  101. package/dist-es/responsive-layout.css-mistica.js +2 -2
  102. package/dist-es/screen-reader-only.css-mistica.js +1 -1
  103. package/dist-es/select.css-mistica.js +10 -10
  104. package/dist-es/snackbar.css-mistica.js +2 -2
  105. package/dist-es/sprinkles.css-mistica.js +226 -190
  106. package/dist-es/stepper.css-mistica.js +2 -2
  107. package/dist-es/stepper.js +50 -50
  108. package/dist-es/style.css +1 -1
  109. package/dist-es/switch-component.css-mistica.js +10 -10
  110. package/dist-es/tabs.css-mistica.js +6 -6
  111. package/dist-es/tag.css-mistica.js +1 -1
  112. package/dist-es/tag.js +28 -27
  113. package/dist-es/text-field-base.css-mistica.js +2 -2
  114. package/dist-es/text-field-components.css-mistica.js +2 -2
  115. package/dist-es/text-link.css-mistica.js +5 -5
  116. package/dist-es/text.js +11 -10
  117. package/dist-es/title.js +36 -33
  118. package/dist-es/tooltip.css-mistica.js +3 -3
  119. package/dist-es/touchable.css-mistica.js +2 -2
  120. package/dist-es/utils/aspect-ratio-support.css-mistica.js +2 -2
  121. package/dist-es/video.css-mistica.js +1 -1
  122. package/package.json +2 -1
package/dist-es/card.js CHANGED
@@ -77,28 +77,30 @@ 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 Ne } from "react/jsx-runtime";
80
+ import { jsxs as n, jsx as e, Fragment as Ce } 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 I, Text6 as Se, Text3 as xe, Text as $ } from "./text.js";
85
+ import { Text2 as A, Text6 as Se, Text3 as xe, Text as L } from "./text.js";
86
86
  import { Boxed as q, InternalBoxed as ee } from "./boxed.js";
87
87
  import J from "./button-group.js";
88
88
  import we, { MediaBorderRadiusProvider as Be } from "./image.js";
89
- import { BaseTouchable as _ } from "./touchable.js";
89
+ import { BaseTouchable as O } from "./touchable.js";
90
90
  import { vars as v } from "./skins/skin-contract.css-mistica.js";
91
- import { touchableContainer as H, boxed as P, touchable as E, mediaCard as Ae, mediaCardContent as Ie, dataCard as be, actions as re, snapCard as Re, videoAction as k, displayCardContainer as ae, displayCardBackground as ie, displayCardContent as ne, displayCardGradient as te, cardActionIconButton as L, touchableMediaCardOverlay as De, touchableCardOverlay as K, touchableCardOverlayInverse as se, touchableCardOverlayMedia as oe, cardAction as Me, cardActionInverse as ze, cardActionMedia as Oe } from "./card.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
92
  import { useTheme as Q } from "./hooks.js";
93
- import { sprinkles as U } from "./sprinkles.css-mistica.js";
94
- import _e from "./icon-button.js";
95
- import He from "./generated/mistica-icons/icon-close-regular.js";
96
- import Pe from "./generated/mistica-icons/icon-pause-filled.js";
97
- import Ee from "./generated/mistica-icons/icon-play-filled.js";
98
- import { combineRefs as We } from "./utils/common.js";
99
- import Ge from "./spinner.js";
100
- import Xe from "./video.js";
93
+ import { sprinkles as k } from "./sprinkles.css-mistica.js";
94
+ import Pe from "./icon-button.js";
95
+ import Ee from "./generated/mistica-icons/icon-close-regular.js";
96
+ import We from "./generated/mistica-icons/icon-pause-filled.js";
97
+ import Ge from "./generated/mistica-icons/icon-play-filled.js";
98
+ import { combineRefs as Xe } from "./utils/common.js";
99
+ import je from "./spinner.js";
100
+ import Fe from "./video.js";
101
101
  import { useIsInverseVariant as le, ThemeVariant as de } from "./theme-variant-context.js";
102
+ import Ve from "classnames";
103
+ import { assignInlineVars as ke } from "@vanilla-extract/dynamic";
102
104
  const ce = (r, a)=>{
103
105
  const { texts: i } = Q(), s = r ? [
104
106
  ...r
@@ -106,20 +108,20 @@ const ce = (r, a)=>{
106
108
  return a && s.push({
107
109
  label: i.closeButtonLabel,
108
110
  onPress: a,
109
- Icon: He
111
+ Icon: Ee
110
112
  }), s;
111
- }, he = 48, V = (param)=>{
113
+ }, he = 48, U = (param)=>{
112
114
  let { actions: r , onClose: a , type: i = "default" } = param;
113
- const s = ce(r, a), l = s.length > 0, o = {
115
+ const s = ce(r, a), h = s.length > 0, o = {
114
116
  default: v.colors.neutralHigh,
115
117
  inverse: v.colors.inverse,
116
118
  media: "#000000"
117
119
  }, u = {
118
- default: Me,
119
- inverse: ze,
120
- media: Oe
120
+ default: He,
121
+ inverse: Oe,
122
+ media: _e
121
123
  };
122
- return l ? /* @__PURE__ */ e("div", {
124
+ return h ? /* @__PURE__ */ e("div", {
123
125
  style: {
124
126
  position: "absolute",
125
127
  right: 8,
@@ -127,16 +129,16 @@ const ce = (r, a)=>{
127
129
  zIndex: 3
128
130
  },
129
131
  children: /* @__PURE__ */ e("div", {
130
- className: U({
132
+ className: k({
131
133
  display: "flex"
132
134
  }),
133
135
  children: s.map((param, m)=>{
134
- let { onPress: h , label: d , Icon: t , iconSize: p = 20 } = param;
135
- return t ? /* @__PURE__ */ e(_e, {
136
+ let { onPress: l , label: d , Icon: t , iconSize: p = 20 } = param;
137
+ return t ? /* @__PURE__ */ e(Pe, {
136
138
  size: he,
137
- onPress: h,
139
+ onPress: l,
138
140
  "aria-label": d,
139
- className: L,
141
+ className: $,
140
142
  style: {
141
143
  display: "flex"
142
144
  },
@@ -148,37 +150,37 @@ const ce = (r, a)=>{
148
150
  })
149
151
  })
150
152
  }, m) : /* @__PURE__ */ e("div", {
151
- className: L
153
+ className: $
152
154
  }, m);
153
155
  })
154
156
  })
155
- }) : /* @__PURE__ */ e(Ne, {});
156
- }, je = {
157
- "1:1": "1",
158
- "16:9": "16 / 9",
159
- "7:10": "7 / 10",
160
- "9:10": "9 / 10",
161
- auto: "auto"
162
- }, W = (param)=>{
163
- let { children: r , width: a = "100%" , height: i = "100%" , minWidth: s , aspectRatio: l , className: o , "aria-label": u } = param;
164
- const h = l ? typeof l == "number" ? String(l) : je[l] : void 0;
157
+ }) : /* @__PURE__ */ e(Ce, {});
158
+ }, Ue = (r)=>r ? typeof r == "number" ? r : ({
159
+ "1:1": 1,
160
+ "16:9": 16 / 9,
161
+ "7:10": 7 / 10,
162
+ "9:10": 9 / 10,
163
+ auto: 0
164
+ })[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);
165
167
  return /* @__PURE__ */ e("section", {
166
168
  "aria-label": u,
167
- className: o,
168
- style: {
169
+ className: Ve(o, De),
170
+ style: _object_spread({
169
171
  width: a,
170
172
  height: i,
171
- minWidth: s,
172
- aspectRatio: h,
173
- position: "relative"
174
- },
173
+ minWidth: s
174
+ }, l ? ke({
175
+ [Me.aspectRatio]: String(l)
176
+ }) : {}),
175
177
  children: r
176
178
  });
177
179
  }, me = (r)=>/* @__PURE__ */ e(we, {
178
180
  width: "100%",
179
181
  height: "100%",
180
182
  src: r !== null && r !== void 0 ? r : "//:0"
181
- }), Fe = {
183
+ }), Ye = {
182
184
  loading: {
183
185
  showSpinner: "loadingTimeout",
184
186
  play: "playing",
@@ -202,20 +204,27 @@ const ce = (r, a)=>{
202
204
  error: {
203
205
  reset: "loading"
204
206
  }
205
- }, ke = (r, a)=>Fe[r][a] || r, ue = (r)=>{
207
+ }, Ze = (r, a)=>Ye[r][a] || r, qe = (param)=>/* @__PURE__ */ {
208
+ let { size: r , color: a } = param;
209
+ return e(je, {
210
+ size: r,
211
+ color: a,
212
+ delay: "0"
213
+ });
214
+ }, ue = (r)=>{
206
215
  switch(r){
207
216
  case "playing":
208
- return Pe;
209
- case "paused":
210
217
  case "loading":
211
- return Ee;
212
- case "loadingTimeout":
218
+ return We;
219
+ case "paused":
213
220
  return Ge;
221
+ case "loadingTimeout":
222
+ return qe;
214
223
  default:
215
224
  return;
216
225
  }
217
226
  }, pe = (r, a, i)=>{
218
- const s = T.useRef(null), [l, o] = T.useReducer(ke, "loading");
227
+ const s = T.useRef(null), [h, o] = T.useReducer(Ze, "loading");
219
228
  return T.useEffect(()=>{
220
229
  var t;
221
230
  const d = setTimeout(()=>o("showSpinner"), 2e3);
@@ -225,8 +234,8 @@ const ce = (r, a)=>{
225
234
  }, [
226
235
  r
227
236
  ]), {
228
- video: T.useMemo(()=>r ? /* @__PURE__ */ e(Xe, {
229
- ref: We(s, i),
237
+ video: T.useMemo(()=>r ? /* @__PURE__ */ e(Fe, {
238
+ ref: Xe(s, i),
230
239
  src: r,
231
240
  width: "100%",
232
241
  height: "100%",
@@ -239,20 +248,20 @@ const ce = (r, a)=>{
239
248
  r,
240
249
  a
241
250
  ]),
242
- videoStatus: l,
251
+ videoStatus: h,
243
252
  onVideoControlPress: ()=>{
244
253
  const d = s.current;
245
- d && (l === "loading" ? o("showSpinner") : l === "paused" ? d.play() : l === "playing" && d.pause());
254
+ d && (h === "loading" ? o("showSpinner") : h === "paused" ? d.play() : h === "playing" && d.pause());
246
255
  }
247
256
  };
248
257
  }, fe = (param)=>{
249
- let { headline: r , pretitle: a , pretitleLinesMax: i , title: s , titleLinesMax: l , subtitle: o , subtitleLinesMax: u , description: h , descriptionLinesMax: d , extra: t , button: p , buttonLink: m } = 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;
250
259
  const { textPresets: f } = Q(), g = ()=>r ? typeof r == "string" ? /* @__PURE__ */ e(Te, {
251
260
  type: "promo",
252
261
  children: r
253
262
  }) : r : null;
254
263
  return /* @__PURE__ */ n("div", {
255
- className: U({
264
+ className: k({
256
265
  display: "flex",
257
266
  flex: 1,
258
267
  justifyContent: "space-between",
@@ -272,25 +281,25 @@ const ce = (r, a)=>{
272
281
  /* @__PURE__ */ n(y, {
273
282
  space: 4,
274
283
  children: [
275
- a && /* @__PURE__ */ e(I, {
284
+ a && /* @__PURE__ */ e(A, {
276
285
  truncate: i,
277
286
  as: "div",
278
287
  regular: !0,
279
288
  hyphens: "auto",
280
289
  children: a
281
290
  }),
282
- /* @__PURE__ */ e($, {
291
+ /* @__PURE__ */ e(L, {
283
292
  mobileSize: 18,
284
293
  mobileLineHeight: "24px",
285
294
  desktopSize: 20,
286
295
  desktopLineHeight: "28px",
287
- truncate: l,
296
+ truncate: h,
288
297
  weight: f.cardTitle.weight,
289
298
  as: "h3",
290
299
  hyphens: "auto",
291
300
  children: s
292
301
  }),
293
- /* @__PURE__ */ e(I, {
302
+ /* @__PURE__ */ e(A, {
294
303
  truncate: u,
295
304
  as: "div",
296
305
  regular: !0,
@@ -302,13 +311,13 @@ const ce = (r, a)=>{
302
311
  ]
303
312
  })
304
313
  }),
305
- h && /* @__PURE__ */ e(I, {
314
+ l && /* @__PURE__ */ e(A, {
306
315
  truncate: d,
307
316
  as: "p",
308
317
  regular: !0,
309
318
  color: v.colors.textSecondary,
310
319
  hyphens: "auto",
311
- children: h
320
+ children: l
312
321
  })
313
322
  ]
314
323
  }),
@@ -326,8 +335,8 @@ const ce = (r, a)=>{
326
335
  })
327
336
  ]
328
337
  });
329
- }, ur = /*#__PURE__*/ T.forwardRef((_param, w)=>{
330
- var { media: r , headline: a , pretitle: i , pretitleLinesMax: s , subtitle: l , subtitleLinesMax: o , title: u , titleLinesMax: h , description: d , descriptionLinesMax: t , extra: p , actions: m , button: f , buttonLink: g , dataAttributes: x , "aria-label": C , onClose: S } = _param, c = _object_without_properties(_param, [
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, [
331
340
  "media",
332
341
  "headline",
333
342
  "pretitle",
@@ -346,10 +355,10 @@ const ce = (r, a)=>{
346
355
  "aria-label",
347
356
  "onClose"
348
357
  ]);
349
- const N = c.href || c.to || c.onPress, b = De;
358
+ const C = c.href || c.to || c.onPress, b = ze;
350
359
  return /* @__PURE__ */ n(W, {
351
- "aria-label": C,
352
- className: H,
360
+ "aria-label": N,
361
+ className: _,
353
362
  children: [
354
363
  /* @__PURE__ */ e(q, {
355
364
  className: P,
@@ -359,31 +368,31 @@ const ce = (r, a)=>{
359
368
  ref: w,
360
369
  width: "100%",
361
370
  height: "100%",
362
- children: /* @__PURE__ */ n(_, _object_spread_props(_object_spread({
371
+ children: /* @__PURE__ */ n(O, _object_spread_props(_object_spread({
363
372
  maybe: !0
364
373
  }, c), {
365
374
  className: E,
366
- "aria-label": C,
375
+ "aria-label": N,
367
376
  children: [
368
- N && /* @__PURE__ */ e("div", {
377
+ C && /* @__PURE__ */ e("div", {
369
378
  className: b
370
379
  }),
371
380
  /* @__PURE__ */ n("div", {
372
- className: Ae,
381
+ className: Ie,
373
382
  children: [
374
383
  /* @__PURE__ */ e(Be, {
375
384
  value: !1,
376
385
  children: r
377
386
  }),
378
387
  /* @__PURE__ */ e("div", {
379
- className: Ie,
388
+ className: Ae,
380
389
  children: /* @__PURE__ */ e(fe, {
381
390
  headline: a,
382
391
  pretitle: i,
383
392
  pretitleLinesMax: s,
384
393
  title: u,
385
- titleLinesMax: h,
386
- subtitle: l,
394
+ titleLinesMax: l,
395
+ subtitle: h,
387
396
  subtitleLinesMax: o,
388
397
  description: d,
389
398
  descriptionLinesMax: t,
@@ -397,15 +406,15 @@ const ce = (r, a)=>{
397
406
  ]
398
407
  }))
399
408
  }),
400
- /* @__PURE__ */ e(V, {
409
+ /* @__PURE__ */ e(U, {
401
410
  onClose: S,
402
411
  actions: m,
403
412
  type: "media"
404
413
  })
405
414
  ]
406
415
  });
407
- }), pr = /*#__PURE__*/ T.forwardRef((_param, w)=>{
408
- var { icon: r , headline: a , pretitle: i , pretitleLinesMax: s , title: l , titleLinesMax: o , subtitle: u , subtitleLinesMax: h , description: d , descriptionLinesMax: t , extra: p , actions: m , button: f , buttonLink: g , dataAttributes: x , "aria-label": C , onClose: S } = _param, c = _object_without_properties(_param, [
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, [
409
418
  "icon",
410
419
  "headline",
411
420
  "pretitle",
@@ -424,14 +433,14 @@ const ce = (r, a)=>{
424
433
  "aria-label",
425
434
  "onClose"
426
435
  ]);
427
- const N = !!r, b = c.href || c.to || c.onPress, z = K, O = ce(m, S), R = {
436
+ const C = !!r, b = c.href || c.to || c.onPress, z = K, H = ce(m, S), R = {
428
437
  marginRight: -16,
429
438
  marginTop: -24,
430
- width: he * O.length
439
+ width: he * H.length
431
440
  };
432
441
  return /* @__PURE__ */ n(W, {
433
- "aria-label": C,
434
- className: H,
442
+ "aria-label": N,
443
+ className: _,
435
444
  children: [
436
445
  /* @__PURE__ */ e(q, {
437
446
  className: P,
@@ -441,11 +450,11 @@ const ce = (r, a)=>{
441
450
  ref: w,
442
451
  width: "100%",
443
452
  height: "100%",
444
- children: /* @__PURE__ */ n(_, _object_spread_props(_object_spread({
453
+ children: /* @__PURE__ */ n(O, _object_spread_props(_object_spread({
445
454
  maybe: !0
446
455
  }, c), {
447
456
  className: E,
448
- "aria-label": C,
457
+ "aria-label": N,
449
458
  children: [
450
459
  b && /* @__PURE__ */ e("div", {
451
460
  className: z
@@ -454,31 +463,31 @@ const ce = (r, a)=>{
454
463
  className: be,
455
464
  children: [
456
465
  /* @__PURE__ */ n("div", {
457
- className: U({
466
+ className: k({
458
467
  display: "flex"
459
468
  }),
460
469
  children: [
461
470
  /* @__PURE__ */ n(y, {
462
471
  space: 16,
463
- className: U({
472
+ className: k({
464
473
  flex: 1
465
474
  }),
466
475
  children: [
467
- N ? r : null,
476
+ C ? r : null,
468
477
  /* @__PURE__ */ e(fe, {
469
478
  headline: a,
470
479
  pretitle: i,
471
480
  pretitleLinesMax: s,
472
- title: l,
481
+ title: h,
473
482
  titleLinesMax: o,
474
483
  subtitle: u,
475
- subtitleLinesMax: h,
484
+ subtitleLinesMax: l,
476
485
  description: d,
477
486
  descriptionLinesMax: t
478
487
  })
479
488
  ]
480
489
  }),
481
- !N && /* @__PURE__ */ e("div", {
490
+ !C && /* @__PURE__ */ e("div", {
482
491
  style: R
483
492
  })
484
493
  ]
@@ -498,15 +507,15 @@ const ce = (r, a)=>{
498
507
  ]
499
508
  }))
500
509
  }),
501
- /* @__PURE__ */ e(V, {
510
+ /* @__PURE__ */ e(U, {
502
511
  onClose: S,
503
512
  actions: m,
504
513
  type: "default"
505
514
  })
506
515
  ]
507
516
  });
508
- }), fr = /*#__PURE__*/ T.forwardRef((_param, p)=>{
509
- var { icon: r , title: a , titleLinesMax: i , subtitle: s , subtitleLinesMax: l , dataAttributes: o , "aria-label": u , extra: h , isInverse: d = !1 } = _param, t = _object_without_properties(_param, [
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, [
510
519
  "icon",
511
520
  "title",
512
521
  "titleLinesMax",
@@ -519,7 +528,7 @@ const ce = (r, a)=>{
519
528
  ]);
520
529
  const m = t.href || t.to || t.onPress, f = d ? se : K;
521
530
  return /* @__PURE__ */ e(W, {
522
- className: H,
531
+ className: _,
523
532
  children: /* @__PURE__ */ e(q, {
524
533
  className: P,
525
534
  dataAttributes: _object_spread({
@@ -529,7 +538,7 @@ const ce = (r, a)=>{
529
538
  isInverse: d,
530
539
  width: "100%",
531
540
  height: "100%",
532
- children: /* @__PURE__ */ n(_, _object_spread_props(_object_spread({
541
+ children: /* @__PURE__ */ n(O, _object_spread_props(_object_spread({
533
542
  maybe: !0
534
543
  }, t), {
535
544
  className: E,
@@ -550,15 +559,15 @@ const ce = (r, a)=>{
550
559
  /* @__PURE__ */ n(y, {
551
560
  space: 4,
552
561
  children: [
553
- a && /* @__PURE__ */ e(I, {
562
+ a && /* @__PURE__ */ e(A, {
554
563
  truncate: i,
555
564
  as: "h3",
556
565
  regular: !0,
557
566
  hyphens: "auto",
558
567
  children: a
559
568
  }),
560
- s && /* @__PURE__ */ e(I, {
561
- truncate: l,
569
+ s && /* @__PURE__ */ e(A, {
570
+ truncate: h,
562
571
  regular: !0,
563
572
  color: v.colors.textSecondary,
564
573
  as: "p",
@@ -569,8 +578,8 @@ const ce = (r, a)=>{
569
578
  })
570
579
  ]
571
580
  }),
572
- h && /* @__PURE__ */ e("div", {
573
- children: h
581
+ l && /* @__PURE__ */ e("div", {
582
+ children: l
574
583
  })
575
584
  ]
576
585
  })
@@ -578,8 +587,8 @@ const ce = (r, a)=>{
578
587
  }))
579
588
  })
580
589
  });
581
- }), Ue = 264, ve = /*#__PURE__*/ T.forwardRef((_param, G)=>{
582
- var { isInverse: r , backgroundImage: a , backgroundVideo: i , backgroundVideoRef: s , poster: l , icon: o , headline: u , pretitle: h , pretitleLinesMax: d , title: t , titleLinesMax: p , description: m , descriptionLinesMax: f , extra: g , button: x , secondaryButton: C , onClose: S , actions: c , buttonLink: w , dataAttributes: N , width: b , height: z , aspectRatio: O , "aria-label": R } = _param, M = _object_without_properties(_param, [
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, [
583
592
  "isInverse",
584
593
  "backgroundImage",
585
594
  "backgroundVideo",
@@ -605,7 +614,7 @@ const ce = (r, a)=>{
605
614
  "aspectRatio",
606
615
  "aria-label"
607
616
  ]);
608
- const B = me(a), { video: X , videoStatus: j , onVideoControlPress: Y } = pe(i, l, s);
617
+ const B = me(a), { video: X , videoStatus: j , onVideoControlPress: Y } = pe(i, h, s);
609
618
  i && (c = [
610
619
  {
611
620
  Icon: ue(j),
@@ -613,36 +622,36 @@ const ce = (r, a)=>{
613
622
  label: "Video controls",
614
623
  iconSize: j === "loadingTimeout" ? 16 : 12,
615
624
  iconColor: v.colors.inverse,
616
- iconBackground: k,
617
- iconBackgroundInverse: k
625
+ iconBackground: V,
626
+ iconBackgroundInverse: V
618
627
  }
619
628
  ]);
620
- const F = le(), A = !!a || !!i, Z = A ? "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 ? oe : r ? se : K;
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;
621
630
  return /* @__PURE__ */ n(W, {
622
631
  width: b,
623
632
  height: z,
624
- aspectRatio: O,
633
+ aspectRatio: H,
625
634
  "aria-label": R,
626
- minWidth: Ue,
627
- className: H,
635
+ minWidth: Je,
636
+ className: _,
628
637
  children: [
629
638
  /* @__PURE__ */ e(ee, {
630
639
  borderRadius: v.borderRadii.legacyDisplay,
631
640
  className: P,
632
- dataAttributes: N,
641
+ dataAttributes: C,
633
642
  ref: G,
634
643
  width: "100%",
635
644
  minHeight: "100%",
636
645
  isInverse: r,
637
646
  background: a || i ? F ? v.colors.backgroundContainerBrandOverInverse : v.colors.backgroundContainer : void 0,
638
- children: /* @__PURE__ */ n(_, _object_spread_props(_object_spread({
647
+ children: /* @__PURE__ */ n(O, _object_spread_props(_object_spread({
639
648
  maybe: !0
640
649
  }, M), {
641
650
  className: E,
642
651
  "aria-label": R,
643
652
  children: [
644
653
  ge && /* @__PURE__ */ e("div", {
645
- className: Ce
654
+ className: Ne
646
655
  }),
647
656
  /* @__PURE__ */ n("div", {
648
657
  className: ae,
@@ -657,21 +666,21 @@ const ce = (r, a)=>{
657
666
  /* @__PURE__ */ n("div", {
658
667
  className: ne,
659
668
  style: {
660
- paddingTop: A && !o && !ye ? 0 : 24
669
+ paddingTop: I && !o && !ye ? 0 : 24
661
670
  },
662
671
  children: [
663
672
  o ? /* @__PURE__ */ e(D, {
664
- paddingBottom: A ? 0 : 40,
673
+ paddingBottom: I ? 0 : 40,
665
674
  paddingX: 24,
666
675
  children: o
667
676
  }) : /* @__PURE__ */ e(D, {
668
- paddingBottom: c != null && c.length || S ? A ? 24 : 64 : 0
677
+ paddingBottom: c != null && c.length || S ? I ? 24 : 64 : 0
669
678
  }),
670
679
  /* @__PURE__ */ e(D, {
671
680
  paddingX: 24,
672
- paddingTop: A ? 40 : 0,
681
+ paddingTop: I ? 40 : 0,
673
682
  paddingBottom: 24,
674
- className: A ? te : void 0,
683
+ className: I ? te : void 0,
675
684
  children: /* @__PURE__ */ n(y, {
676
685
  space: 24,
677
686
  children: [
@@ -680,7 +689,7 @@ const ce = (r, a)=>{
680
689
  /* @__PURE__ */ n(y, {
681
690
  space: 8,
682
691
  children: [
683
- (u || h || t) && /* @__PURE__ */ e("header", {
692
+ (u || l || t) && /* @__PURE__ */ e("header", {
684
693
  children: /* @__PURE__ */ n(y, {
685
694
  space: 16,
686
695
  children: [
@@ -688,13 +697,13 @@ const ce = (r, a)=>{
688
697
  /* @__PURE__ */ n(y, {
689
698
  space: 4,
690
699
  children: [
691
- h && /* @__PURE__ */ e(I, {
700
+ l && /* @__PURE__ */ e(A, {
692
701
  forceMobileSizes: !0,
693
702
  truncate: d,
694
703
  as: "div",
695
704
  regular: !0,
696
705
  textShadow: Z,
697
- children: h
706
+ children: l
698
707
  }),
699
708
  /* @__PURE__ */ e(Se, {
700
709
  forceMobileSizes: !0,
@@ -724,9 +733,9 @@ const ce = (r, a)=>{
724
733
  g
725
734
  ]
726
735
  }),
727
- (x || C || w) && /* @__PURE__ */ e(J, {
736
+ (x || N || w) && /* @__PURE__ */ e(J, {
728
737
  primaryButton: x,
729
- secondaryButton: C,
738
+ secondaryButton: N,
730
739
  link: w
731
740
  })
732
741
  ]
@@ -739,14 +748,14 @@ const ce = (r, a)=>{
739
748
  ]
740
749
  }))
741
750
  }),
742
- /* @__PURE__ */ e(V, {
751
+ /* @__PURE__ */ e(U, {
743
752
  onClose: S,
744
753
  actions: c,
745
754
  type: a || i ? "media" : r ? "inverse" : "default"
746
755
  })
747
756
  ]
748
757
  });
749
- }), vr = /*#__PURE__*/ T.forwardRef((_param, i)=>/* @__PURE__ */ {
758
+ }), xr = /*#__PURE__*/ T.forwardRef((_param, i)=>/* @__PURE__ */ {
750
759
  var { dataAttributes: r } = _param, a = _object_without_properties(_param, [
751
760
  "dataAttributes"
752
761
  ]);
@@ -757,7 +766,7 @@ const ce = (r, a)=>{
757
766
  "component-name": "DisplayMediaCard"
758
767
  })
759
768
  }));
760
- }), yr = /*#__PURE__*/ T.forwardRef((_param, i)=>/* @__PURE__ */ {
769
+ }), wr = /*#__PURE__*/ T.forwardRef((_param, i)=>/* @__PURE__ */ {
761
770
  var { dataAttributes: r } = _param, a = _object_without_properties(_param, [
762
771
  "dataAttributes"
763
772
  ]);
@@ -767,8 +776,8 @@ const ce = (r, a)=>{
767
776
  "component-name": "DisplayDataCard"
768
777
  })
769
778
  }));
770
- }), Ve = 140, gr = /*#__PURE__*/ T.forwardRef((_param, b)=>{
771
- var { dataAttributes: r , backgroundImage: a , backgroundVideo: i , poster: s , backgroundVideoRef: l , width: o , height: u , aspectRatio: h = "7:10" , ariaLabel: d , actions: t , onClose: p , icon: m , headline: f , pretitle: g , pretitleLinesMax: x , title: C , titleLinesMax: S , description: c , descriptionLinesMax: w } = _param, N = _object_without_properties(_param, [
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, [
772
781
  "dataAttributes",
773
782
  "backgroundImage",
774
783
  "backgroundVideo",
@@ -789,7 +798,7 @@ const ce = (r, a)=>{
789
798
  "description",
790
799
  "descriptionLinesMax"
791
800
  ]);
792
- const z = me(a), { video: O , videoStatus: R , onVideoControlPress: M } = pe(i, s, l);
801
+ const z = me(a), { video: H , videoStatus: R , onVideoControlPress: M } = pe(i, s, h);
793
802
  i && (t = [
794
803
  {
795
804
  Icon: ue(R),
@@ -797,18 +806,18 @@ const ce = (r, a)=>{
797
806
  label: "Video controls",
798
807
  iconSize: R === "loadingTimeout" ? 16 : 12,
799
808
  iconColor: v.colors.inverse,
800
- iconBackground: k,
801
- iconBackgroundInverse: k
809
+ iconBackground: V,
810
+ iconBackgroundInverse: V
802
811
  }
803
812
  ]);
804
- 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 = N.href || N.to || N.onPress, A = oe;
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;
805
814
  return /* @__PURE__ */ n(W, {
806
815
  width: o,
807
816
  height: u,
808
- minWidth: Ve,
809
- aspectRatio: h,
817
+ minWidth: Ke,
818
+ aspectRatio: l,
810
819
  "aria-label": d,
811
- className: H,
820
+ className: _,
812
821
  children: [
813
822
  /* @__PURE__ */ e(ee, {
814
823
  borderRadius: v.borderRadii.legacyDisplay,
@@ -819,14 +828,14 @@ const ce = (r, a)=>{
819
828
  minHeight: "100%",
820
829
  isInverse: !0,
821
830
  background: a || i ? G ? v.colors.backgroundContainerBrandOverInverse : v.colors.backgroundContainer : void 0,
822
- children: /* @__PURE__ */ n(_, _object_spread_props(_object_spread({
831
+ children: /* @__PURE__ */ n(O, _object_spread_props(_object_spread({
823
832
  maybe: !0
824
- }, N), {
833
+ }, C), {
825
834
  className: E,
826
835
  "aria-label": d,
827
836
  children: [
828
837
  F && /* @__PURE__ */ e("div", {
829
- className: A
838
+ className: I
830
839
  }),
831
840
  /* @__PURE__ */ n("div", {
832
841
  className: ae,
@@ -835,7 +844,7 @@ const ce = (r, a)=>{
835
844
  isInverse: G,
836
845
  children: /* @__PURE__ */ e("div", {
837
846
  className: ie,
838
- children: i ? O : a ? z : void 0
847
+ children: i ? H : a ? z : void 0
839
848
  })
840
849
  }),
841
850
  /* @__PURE__ */ n("div", {
@@ -862,7 +871,7 @@ const ce = (r, a)=>{
862
871
  children: /* @__PURE__ */ n(y, {
863
872
  space: 8,
864
873
  children: [
865
- (f || g || C) && /* @__PURE__ */ e("header", {
874
+ (f || g || N) && /* @__PURE__ */ e("header", {
866
875
  children: /* @__PURE__ */ n(y, {
867
876
  space: 16,
868
877
  children: [
@@ -870,7 +879,7 @@ const ce = (r, a)=>{
870
879
  /* @__PURE__ */ n(y, {
871
880
  space: 4,
872
881
  children: [
873
- g && /* @__PURE__ */ e(I, {
882
+ g && /* @__PURE__ */ e(A, {
874
883
  forceMobileSizes: !0,
875
884
  truncate: x,
876
885
  as: "div",
@@ -879,7 +888,7 @@ const ce = (r, a)=>{
879
888
  hyphens: "auto",
880
889
  children: g
881
890
  }),
882
- /* @__PURE__ */ e($, {
891
+ /* @__PURE__ */ e(L, {
883
892
  desktopSize: 20,
884
893
  mobileSize: 18,
885
894
  mobileLineHeight: "24px",
@@ -888,14 +897,14 @@ const ce = (r, a)=>{
888
897
  weight: Y.cardTitle.weight,
889
898
  as: "h3",
890
899
  hyphens: "auto",
891
- children: C
900
+ children: N
892
901
  })
893
902
  ]
894
903
  })
895
904
  ]
896
905
  })
897
906
  }),
898
- c && /* @__PURE__ */ e(I, {
907
+ c && /* @__PURE__ */ e(A, {
899
908
  forceMobileSizes: !0,
900
909
  truncate: w,
901
910
  as: "p",
@@ -916,7 +925,7 @@ const ce = (r, a)=>{
916
925
  ]
917
926
  }))
918
927
  }),
919
- /* @__PURE__ */ e(V, {
928
+ /* @__PURE__ */ e(U, {
920
929
  onClose: p,
921
930
  actions: t,
922
931
  type: "media"
@@ -924,4 +933,4 @@ const ce = (r, a)=>{
924
933
  ]
925
934
  });
926
935
  });
927
- export { pr as DataCard, yr as DisplayDataCard, vr as DisplayMediaCard, ur as MediaCard, gr as PosterCard, fr as SnapCard };
936
+ export { Tr as DataCard, wr as DisplayDataCard, xr as DisplayMediaCard, Cr as MediaCard, Br as PosterCard, Sr as SnapCard };