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