@telefonica/mistica 14.3.0 → 14.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-es/card.js CHANGED
@@ -77,196 +77,289 @@ function _objectWithoutPropertiesLoose(source, excluded) {
77
77
  }
78
78
  return target;
79
79
  }
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";
94
- 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, {
80
+ import * as b from "react";
81
+ import $ from "./tag.js";
82
+ import v from "./stack.js";
83
+ import B from "./box.js";
84
+ import { Text2 as C, 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 G, 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 j } from "./hooks.js";
92
+ import { sprinkles as z } from "./sprinkles.css-mistica.js";
93
+ import ce from "./inline.js";
94
+ import de 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(ce, {
100
+ space: 0,
101
+ children: r.map((param, d)=>/* @__PURE__ */ {
102
+ let { onPress: i , label: t , Icon: o } = param;
103
+ return e(de, {
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
+ }, d);
119
+ })
120
+ });
121
+ }, P = (r, a)=>{
122
+ const { texts: i } = j(), 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: d , isInverse: p , "aria-label": s } = param;
138
+ const l = P(o, d), c = 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
+ c && /* @__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: d , subtitleLinesMax: p , description: s , descriptionLinesMax: l , extra: c , button: h , buttonLink: m } = param;
165
+ const { textPresets: u } = j(), 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 || d) && /* @__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(C, {
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(C, {
142
207
  truncate: p,
143
208
  as: "div",
144
209
  regular: !0,
145
- children: l
210
+ children: d
146
211
  })
147
212
  ]
148
213
  })
149
214
  ]
150
215
  })
151
216
  }),
152
- s && /* @__PURE__ */ e(y, {
153
- truncate: c,
217
+ s && /* @__PURE__ */ e(C, {
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
+ c && /* @__PURE__ */ e("div", {
227
+ children: c
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: G,
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
+ }, Be = /*#__PURE__*/ b.forwardRef((param, S)=>/* @__PURE__ */ {
241
+ let { media: r , headline: a , pretitle: i , pretitleLinesMax: t , subtitle: o , subtitleLinesMax: d , title: p , titleLinesMax: s , description: l , descriptionLinesMax: c , extra: h , actions: m , button: u , buttonLink: g , dataAttributes: f , "aria-label": x , onClose: A } = param;
242
+ return e(X, {
243
+ onClose: A,
244
+ actions: m,
245
+ "aria-label": x,
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: d,
272
+ description: l,
273
+ descriptionLinesMax: c,
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__*/ b.forwardRef((param, S)=>{
284
+ let { icon: r , headline: a , pretitle: i , pretitleLinesMax: t , title: o , titleLinesMax: d , subtitle: p , subtitleLinesMax: s , description: l , descriptionLinesMax: c , extra: h , actions: m , button: u , buttonLink: g , dataAttributes: f , "aria-label": x , onClose: A } = param;
285
+ const N = P(m, A), R = N.length > 0, w = !!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": x,
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
+ flex: 1,
315
+ justifyContent: "space-between",
316
+ flexDirection: "row"
317
+ }),
318
+ children: [
319
+ /* @__PURE__ */ n(v, {
320
+ space: 16,
321
+ className: z({
322
+ flex: 1
323
+ }),
324
+ children: [
325
+ w ? r : null,
326
+ /* @__PURE__ */ e(_, {
327
+ headline: a,
328
+ pretitle: i,
329
+ pretitleLinesMax: t,
330
+ title: o,
331
+ titleLinesMax: d,
332
+ subtitle: p,
333
+ subtitleLinesMax: s,
334
+ description: l,
335
+ descriptionLinesMax: c
336
+ })
337
+ ]
338
+ }),
339
+ R && /* @__PURE__ */ e("div", {
340
+ style: w ? I : y,
341
+ children: /* @__PURE__ */ e(W, {
342
+ actions: N
343
+ })
344
+ })
345
+ ]
346
+ }),
347
+ h && /* @__PURE__ */ e("div", {
348
+ children: h
249
349
  }),
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
350
+ (u || g) && /* @__PURE__ */ e("div", {
351
+ className: G,
352
+ children: /* @__PURE__ */ e(k, {
353
+ primaryButton: u,
354
+ link: g
355
+ })
263
356
  })
264
357
  ]
265
358
  })
266
359
  })
267
360
  });
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, [
361
+ }), Re = /*#__PURE__*/ b.forwardRef((_param, h)=>{
362
+ var { icon: r , title: a , titleLinesMax: i , subtitle: t , subtitleLinesMax: o , dataAttributes: d , "aria-label": p , extra: s , isInverse: l = !1 } = _param, c = _objectWithoutProperties(_param, [
270
363
  "icon",
271
364
  "title",
272
365
  "titleLinesMax",
@@ -277,43 +370,43 @@ const z = (param)=>{
277
370
  "extra",
278
371
  "isInverse"
279
372
  ]);
280
- const { isDarkMode: m } = N(), f = Boolean(o.to || o.href || o.onPress);
281
- return /* @__PURE__ */ e(D, {
282
- className: B,
373
+ const { isDarkMode: m } = j(), u = Boolean(c.to || c.href || c.onPress);
374
+ return /* @__PURE__ */ e(H, {
375
+ className: D,
283
376
  dataAttributes: _objectSpread({
284
377
  "component-name": "SnapCard"
285
- }, l),
286
- ref: u,
287
- isInverse: c,
378
+ }, d),
379
+ ref: h,
380
+ isInverse: l,
288
381
  width: "100%",
289
382
  height: "100%",
290
- children: /* @__PURE__ */ e(K, _objectSpreadProps(_objectSpread({
383
+ children: /* @__PURE__ */ e(Q, _objectSpreadProps(_objectSpread({
291
384
  maybe: !0
292
- }, o), {
293
- className: f && !c && !m ? Y : Z,
385
+ }, c), {
386
+ className: u && !l && !m ? Z : ee,
294
387
  "aria-label": p,
295
- children: /* @__PURE__ */ d("section", {
296
- className: L,
388
+ children: /* @__PURE__ */ n("section", {
389
+ className: re,
297
390
  children: [
298
- /* @__PURE__ */ d("div", {
391
+ /* @__PURE__ */ n("div", {
299
392
  children: [
300
- r && /* @__PURE__ */ e(T, {
393
+ r && /* @__PURE__ */ e(B, {
301
394
  paddingBottom: 16,
302
395
  children: r
303
396
  }),
304
- /* @__PURE__ */ d(g, {
397
+ /* @__PURE__ */ n(v, {
305
398
  space: 4,
306
399
  children: [
307
- a && /* @__PURE__ */ e(y, {
400
+ a && /* @__PURE__ */ e(C, {
308
401
  truncate: i,
309
402
  as: "h3",
310
403
  regular: !0,
311
404
  children: a
312
405
  }),
313
- t && /* @__PURE__ */ e(y, {
314
- truncate: n,
406
+ t && /* @__PURE__ */ e(C, {
407
+ truncate: o,
315
408
  regular: !0,
316
- color: A.colors.textSecondary,
409
+ color: T.colors.textSecondary,
317
410
  as: "p",
318
411
  children: t
319
412
  })
@@ -328,138 +421,74 @@ const z = (param)=>{
328
421
  })
329
422
  }))
330
423
  });
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,
424
+ }), E = /*#__PURE__*/ b.forwardRef((param, I)=>{
425
+ let { isInverse: r , backgroundImage: a , icon: i , headline: t , pretitle: o , pretitleLinesMax: d , title: p , titleLinesMax: s , description: l , descriptionLinesMax: c , extra: h , button: m , secondaryButton: u , onClose: g , actions: f , buttonLink: x , dataAttributes: A , width: S , height: N , aspectRatio: R , "aria-label": w } = param;
426
+ const y = !!a, M = y ? "0 0 16px rgba(0,0,0,0.4)" : void 0, O = (f == null ? void 0 : f.length) || g;
427
+ return /* @__PURE__ */ e(X, {
428
+ width: S,
429
+ height: N,
430
+ aspectRatio: R,
431
+ onClose: g,
432
+ actions: f,
433
+ "aria-label": w,
405
434
  isInverse: r,
406
- children: /* @__PURE__ */ e(q, {
435
+ children: /* @__PURE__ */ e(K, {
407
436
  borderRadius: 16,
408
- className: B,
409
- dataAttributes: S,
410
- ref: X,
437
+ className: D,
438
+ dataAttributes: A,
439
+ ref: I,
411
440
  width: "100%",
412
441
  minHeight: "100%",
413
442
  isInverse: r,
414
- background: r && a ? A.colors.backgroundContainer : void 0,
415
- children: /* @__PURE__ */ d("div", {
416
- className: ee,
443
+ background: r && a ? T.colors.backgroundContainer : void 0,
444
+ children: /* @__PURE__ */ n("div", {
445
+ className: ae,
417
446
  style: {
418
447
  backgroundImage: a ? `url("${CSS.escape(a)}")` : void 0,
419
- paddingTop: v && !i && !_ ? 0 : 24
448
+ paddingTop: y && !i && !O ? 0 : 24
420
449
  },
421
450
  children: [
422
- i ? /* @__PURE__ */ e(T, {
423
- paddingBottom: v ? 0 : 40,
451
+ i ? /* @__PURE__ */ e(B, {
452
+ paddingBottom: y ? 0 : 40,
424
453
  paddingX: 24,
425
454
  children: i
426
- }) : /* @__PURE__ */ e(T, {
427
- paddingBottom: (h == null ? void 0 : h.length) || b ? v ? 24 : 64 : 0
455
+ }) : /* @__PURE__ */ e(B, {
456
+ paddingBottom: (f == null ? void 0 : f.length) || g ? y ? 24 : 64 : 0
428
457
  }),
429
- /* @__PURE__ */ e(T, {
458
+ /* @__PURE__ */ e(B, {
430
459
  paddingX: 24,
431
- paddingTop: v ? 40 : 0,
460
+ paddingTop: y ? 40 : 0,
432
461
  paddingBottom: 24,
433
- className: v ? re : void 0,
434
- children: /* @__PURE__ */ d(g, {
462
+ className: y ? te : void 0,
463
+ children: /* @__PURE__ */ n(v, {
435
464
  space: 24,
436
465
  children: [
437
- /* @__PURE__ */ d("div", {
466
+ /* @__PURE__ */ n("div", {
438
467
  children: [
439
- /* @__PURE__ */ d(g, {
468
+ /* @__PURE__ */ n(v, {
440
469
  space: 8,
441
470
  children: [
442
- (t || n || p) && /* @__PURE__ */ e("header", {
443
- children: /* @__PURE__ */ d(g, {
471
+ (t || o || p) && /* @__PURE__ */ e("header", {
472
+ children: /* @__PURE__ */ n(v, {
444
473
  space: 16,
445
474
  children: [
446
475
  t,
447
- /* @__PURE__ */ d(g, {
476
+ /* @__PURE__ */ n(v, {
448
477
  space: 4,
449
478
  children: [
450
- n && /* @__PURE__ */ e(y, {
479
+ o && /* @__PURE__ */ e(C, {
451
480
  forceMobileSizes: !0,
452
- truncate: l,
481
+ truncate: d,
453
482
  as: "div",
454
483
  regular: !0,
455
- textShadow: w,
456
- children: n
484
+ textShadow: M,
485
+ children: o
457
486
  }),
458
- /* @__PURE__ */ e(O, {
487
+ /* @__PURE__ */ e(q, {
459
488
  forceMobileSizes: !0,
460
489
  truncate: s,
461
490
  as: "h3",
462
- textShadow: w,
491
+ textShadow: M,
463
492
  children: p
464
493
  })
465
494
  ]
@@ -467,24 +496,24 @@ const z = (param)=>{
467
496
  ]
468
497
  })
469
498
  }),
470
- c && /* @__PURE__ */ e(W, {
499
+ l && /* @__PURE__ */ e(F, {
471
500
  forceMobileSizes: !0,
472
- truncate: o,
501
+ truncate: c,
473
502
  as: "p",
474
503
  regular: !0,
475
- color: A.colors.textSecondary,
476
- textShadow: w,
477
- children: c
504
+ color: T.colors.textSecondary,
505
+ textShadow: M,
506
+ children: l
478
507
  })
479
508
  ]
480
509
  }),
481
- u
510
+ h
482
511
  ]
483
512
  }),
484
- (m || f || C) && /* @__PURE__ */ e(M, {
513
+ (m || u || x) && /* @__PURE__ */ e(k, {
485
514
  primaryButton: m,
486
- secondaryButton: f,
487
- link: C
515
+ secondaryButton: u,
516
+ link: x
488
517
  })
489
518
  ]
490
519
  })
@@ -493,26 +522,26 @@ const z = (param)=>{
493
522
  })
494
523
  })
495
524
  });
496
- }), ke = /*#__PURE__*/ x.forwardRef((_param, i)=>/* @__PURE__ */ {
525
+ }), Ie = /*#__PURE__*/ b.forwardRef((_param, i)=>/* @__PURE__ */ {
497
526
  var { dataAttributes: r } = _param, a = _objectWithoutProperties(_param, [
498
527
  "dataAttributes"
499
528
  ]);
500
- return e(k, _objectSpreadProps(_objectSpread({}, a), {
529
+ return e(E, _objectSpreadProps(_objectSpread({}, a), {
501
530
  ref: i,
502
531
  isInverse: !0,
503
532
  dataAttributes: _objectSpreadProps(_objectSpread({}, r), {
504
533
  "component-name": "DisplayMediaCard"
505
534
  })
506
535
  }));
507
- }), Ie = /*#__PURE__*/ x.forwardRef((_param, i)=>/* @__PURE__ */ {
536
+ }), Me = /*#__PURE__*/ b.forwardRef((_param, i)=>/* @__PURE__ */ {
508
537
  var { dataAttributes: r } = _param, a = _objectWithoutProperties(_param, [
509
538
  "dataAttributes"
510
539
  ]);
511
- return e(k, _objectSpreadProps(_objectSpread({}, a), {
540
+ return e(E, _objectSpreadProps(_objectSpread({}, a), {
512
541
  ref: i,
513
542
  dataAttributes: _objectSpreadProps(_objectSpread({}, r), {
514
543
  "component-name": "DisplayDataCard"
515
544
  })
516
545
  }));
517
546
  });
518
- export { ze as DataCard, Ie as DisplayDataCard, ke as DisplayMediaCard, Re as MediaCard, He as SnapCard };
547
+ export { De as DataCard, Me as DisplayDataCard, Ie as DisplayMediaCard, Be as MediaCard, Re as SnapCard };