@telefonica/mistica 13.5.0 → 13.6.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/card.js CHANGED
@@ -9,9 +9,11 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- DataCard: ()=>or,
13
- MediaCard: ()=>nr,
14
- SnapCard: ()=>sr
12
+ DataCard: ()=>zr,
13
+ DisplayDataCard: ()=>Gr,
14
+ DisplayMediaCard: ()=>Ir,
15
+ MediaCard: ()=>Rr,
16
+ SnapCard: ()=>Hr
15
17
  });
16
18
  const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
17
19
  const _tagJs = /*#__PURE__*/ _interopRequireDefault(require("./tag.js"));
@@ -27,6 +29,9 @@ const _skinContractCssMisticaJs = require("./skins/skin-contract.css-mistica.js"
27
29
  const _cardCssMisticaJs = require("./card.css-mistica.js");
28
30
  const _hooksJs = require("./hooks.js");
29
31
  const _sprinklesCssMisticaJs = require("./sprinkles.css-mistica.js");
32
+ const _inlineJs = /*#__PURE__*/ _interopRequireDefault(require("./inline.js"));
33
+ const _iconButtonJs = /*#__PURE__*/ _interopRequireDefault(require("./icon-button.js"));
34
+ const _iconCloseRegularJs = /*#__PURE__*/ _interopRequireDefault(require("./generated/mistica-icons/icon-close-regular.js"));
30
35
  const _jsxRuntimeJs = require("./_virtual/jsx-runtime.js");
31
36
  function _interopRequireDefault(obj) {
32
37
  return obj && obj.__esModule ? obj : {
@@ -151,9 +156,9 @@ function _objectWithoutPropertiesLoose(source, excluded) {
151
156
  }
152
157
  return target;
153
158
  }
154
- const M = (param)=>{
155
- let { headline: e , pretitle: a , pretitleLinesMax: t , title: n , titleLinesMax: h , subtitle: d , subtitleLinesMax: u , description: s , descriptionLinesMax: l , extra: i , button: c , buttonLink: m } = param;
156
- const p = ()=>e ? typeof e == "string" ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_tagJs.default, {
159
+ const z = (param)=>{
160
+ let { headline: e , pretitle: a , pretitleLinesMax: i , title: t , titleLinesMax: n , subtitle: l , subtitleLinesMax: p , description: c , descriptionLinesMax: s , extra: o , button: u , buttonLink: m } = param;
161
+ const f = ()=>e ? typeof e == "string" ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_tagJs.default, {
157
162
  type: "promo",
158
163
  children: e
159
164
  }) : e : null;
@@ -170,87 +175,88 @@ const M = (param)=>{
170
175
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
171
176
  space: 8,
172
177
  children: [
173
- (e || a || n || d) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("header", {
178
+ (e || a || t || l) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("header", {
174
179
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
175
180
  space: 8,
176
181
  children: [
177
- p(),
182
+ f(),
178
183
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
179
184
  space: 4,
180
185
  children: [
181
- a && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text1, {
182
- truncate: t,
186
+ a && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text2, {
187
+ truncate: i,
183
188
  as: "div",
184
189
  regular: !0,
185
- transform: "uppercase",
186
190
  children: a
187
191
  }),
188
192
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text4, {
189
- truncate: h,
190
- as: "h1",
193
+ truncate: n,
194
+ as: "h3",
191
195
  regular: !0,
192
- children: n
196
+ children: t
193
197
  }),
194
198
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text2, {
195
- truncate: u,
199
+ truncate: p,
196
200
  as: "div",
197
201
  regular: !0,
198
- children: d
202
+ children: l
199
203
  })
200
204
  ]
201
205
  })
202
206
  ]
203
207
  })
204
208
  }),
205
- s && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text2, {
206
- truncate: l,
209
+ c && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text2, {
210
+ truncate: s,
207
211
  as: "p",
208
212
  regular: !0,
209
213
  color: _skinContractCssMisticaJs.vars.colors.textSecondary,
210
- children: s
214
+ children: c
211
215
  })
212
216
  ]
213
217
  }),
214
- i && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
215
- children: i
218
+ o && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
219
+ children: o
216
220
  })
217
221
  ]
218
222
  }),
219
- (c || m) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
223
+ (u || m) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
220
224
  className: _cardCssMisticaJs.actions,
221
225
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_buttonGroupJs.default, {
222
- primaryButton: c,
226
+ primaryButton: u,
223
227
  link: m
224
228
  })
225
229
  })
226
230
  ]
227
231
  });
228
- }, S = (param)=>{
229
- let { "aria-label": e , className: a , children: t } = param;
232
+ }, H = (param)=>{
233
+ let { "aria-label": e , className: a , style: i , children: t } = param;
230
234
  return (0, _maybeDismissableJs.useIsDismissable)() ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
231
235
  className: a,
236
+ style: i,
232
237
  children: t
233
238
  }) : /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("section", {
234
239
  className: a,
240
+ style: i,
235
241
  "aria-label": e,
236
242
  children: t
237
243
  });
238
- }, nr = /*#__PURE__*/ _react.forwardRef((param, x)=>/* @__PURE__ */ {
239
- let { media: e , headline: a , pretitle: t , pretitleLinesMax: n , subtitle: h , subtitleLinesMax: d , title: u , titleLinesMax: s , description: l , descriptionLinesMax: i , extra: c , button: m , buttonLink: p , dataAttributes: v , "aria-label": f , onClose: g } = param;
244
+ }, Rr = /*#__PURE__*/ _react.forwardRef((param, S)=>/* @__PURE__ */ {
245
+ let { media: e , headline: a , pretitle: i , pretitleLinesMax: t , subtitle: n , subtitleLinesMax: l , title: p , titleLinesMax: c , description: s , descriptionLinesMax: o , extra: u , button: m , buttonLink: f , dataAttributes: g , "aria-label": h , onClose: C } = param;
240
246
  return (0, _jsxRuntimeJs.jsx)(_maybeDismissableJs.default, {
241
- onClose: g,
242
- "aria-label": f,
247
+ onClose: C,
248
+ "aria-label": h,
243
249
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxedJs.Boxed, {
244
250
  className: _cardCssMisticaJs.boxed,
245
251
  dataAttributes: _objectSpread({
246
252
  "component-name": "MediaCard"
247
- }, v),
248
- ref: x,
253
+ }, g),
254
+ ref: S,
249
255
  width: "100%",
250
256
  height: "100%",
251
- children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(S, {
257
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(H, {
252
258
  className: _cardCssMisticaJs.mediaCard,
253
- "aria-label": f,
259
+ "aria-label": h,
254
260
  children: [
255
261
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_imageJs.MediaBorderRadiusProvider, {
256
262
  value: !1,
@@ -258,66 +264,66 @@ const M = (param)=>{
258
264
  }),
259
265
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
260
266
  className: _cardCssMisticaJs.mediaCardContent,
261
- children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(M, {
267
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(z, {
262
268
  headline: a,
263
- pretitle: t,
264
- pretitleLinesMax: n,
265
- title: u,
266
- titleLinesMax: s,
267
- subtitle: h,
268
- subtitleLinesMax: d,
269
- description: l,
270
- descriptionLinesMax: i,
271
- extra: c,
269
+ pretitle: i,
270
+ pretitleLinesMax: t,
271
+ title: p,
272
+ titleLinesMax: c,
273
+ subtitle: n,
274
+ subtitleLinesMax: l,
275
+ description: s,
276
+ descriptionLinesMax: o,
277
+ extra: u,
272
278
  button: m,
273
- buttonLink: p
279
+ buttonLink: f
274
280
  })
275
281
  })
276
282
  ]
277
283
  })
278
284
  })
279
285
  });
280
- }), or = /*#__PURE__*/ _react.forwardRef((param, x)=>/* @__PURE__ */ {
281
- let { icon: e , headline: a , pretitle: t , pretitleLinesMax: n , title: h , titleLinesMax: d , subtitle: u , subtitleLinesMax: s , description: l , descriptionLinesMax: i , extra: c , button: m , buttonLink: p , dataAttributes: v , "aria-label": f , onClose: g } = param;
286
+ }), zr = /*#__PURE__*/ _react.forwardRef((param, S)=>/* @__PURE__ */ {
287
+ let { icon: e , headline: a , pretitle: i , pretitleLinesMax: t , title: n , titleLinesMax: l , subtitle: p , subtitleLinesMax: c , description: s , descriptionLinesMax: o , extra: u , button: m , buttonLink: f , dataAttributes: g , "aria-label": h , onClose: C } = param;
282
288
  return (0, _jsxRuntimeJs.jsx)(_maybeDismissableJs.default, {
283
- "aria-label": f,
284
- onClose: g,
289
+ "aria-label": h,
290
+ onClose: C,
285
291
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxedJs.Boxed, {
286
292
  className: _cardCssMisticaJs.boxed,
287
293
  dataAttributes: _objectSpread({
288
294
  "component-name": "DataCard"
289
- }, v),
290
- ref: x,
295
+ }, g),
296
+ ref: S,
291
297
  width: "100%",
292
298
  height: "100%",
293
- children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(S, {
299
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(H, {
294
300
  className: _cardCssMisticaJs.dataCard,
295
- "aria-label": f,
301
+ "aria-label": h,
296
302
  children: [
297
303
  e && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
298
304
  paddingBottom: 16,
299
305
  children: e
300
306
  }),
301
- /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(M, {
307
+ /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(z, {
302
308
  headline: a,
303
- pretitle: t,
304
- pretitleLinesMax: n,
305
- title: h,
306
- titleLinesMax: d,
307
- subtitle: u,
308
- subtitleLinesMax: s,
309
- description: l,
310
- descriptionLinesMax: i,
311
- extra: c,
309
+ pretitle: i,
310
+ pretitleLinesMax: t,
311
+ title: n,
312
+ titleLinesMax: l,
313
+ subtitle: p,
314
+ subtitleLinesMax: c,
315
+ description: s,
316
+ descriptionLinesMax: o,
317
+ extra: u,
312
318
  button: m,
313
- buttonLink: p
319
+ buttonLink: f
314
320
  })
315
321
  ]
316
322
  })
317
323
  })
318
324
  });
319
- }), sr = /*#__PURE__*/ _react.forwardRef((_param, c)=>{
320
- var { icon: e , title: a , titleLinesMax: t , subtitle: n , subtitleLinesMax: h , dataAttributes: d , "aria-label": u , extra: s , isInverse: l = !1 } = _param, i = _objectWithoutProperties(_param, [
325
+ }), Hr = /*#__PURE__*/ _react.forwardRef((_param, u)=>{
326
+ var { icon: e , title: a , titleLinesMax: i , subtitle: t , subtitleLinesMax: n , dataAttributes: l , "aria-label": p , extra: c , isInverse: s = !1 } = _param, o = _objectWithoutProperties(_param, [
321
327
  "icon",
322
328
  "title",
323
329
  "titleLinesMax",
@@ -328,21 +334,21 @@ const M = (param)=>{
328
334
  "extra",
329
335
  "isInverse"
330
336
  ]);
331
- const { isDarkMode: m } = (0, _hooksJs.useTheme)(), p = Boolean(i.to || i.href || i.onPress);
337
+ const { isDarkMode: m } = (0, _hooksJs.useTheme)(), f = Boolean(o.to || o.href || o.onPress);
332
338
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxedJs.Boxed, {
333
339
  className: _cardCssMisticaJs.boxed,
334
340
  dataAttributes: _objectSpread({
335
341
  "component-name": "SnapCard"
336
- }, d),
337
- ref: c,
338
- isInverse: l,
342
+ }, l),
343
+ ref: u,
344
+ isInverse: s,
339
345
  width: "100%",
340
346
  height: "100%",
341
347
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_touchableJs.BaseTouchable, _objectSpreadProps(_objectSpread({
342
348
  maybe: !0
343
- }, i), {
344
- className: p && !l && !m ? _cardCssMisticaJs.snapCardTouchableHover : _cardCssMisticaJs.snapCardTouchableHoverTransparent,
345
- "aria-label": u,
349
+ }, o), {
350
+ className: f && !s && !m ? _cardCssMisticaJs.snapCardTouchableHover : _cardCssMisticaJs.snapCardTouchableHoverTransparent,
351
+ "aria-label": p,
346
352
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("section", {
347
353
  className: _cardCssMisticaJs.snapCard,
348
354
  children: [
@@ -356,27 +362,213 @@ const M = (param)=>{
356
362
  space: 4,
357
363
  children: [
358
364
  a && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text2, {
359
- truncate: t,
360
- as: "h1",
365
+ truncate: i,
366
+ as: "h3",
361
367
  regular: !0,
362
368
  children: a
363
369
  }),
364
- n && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text2, {
365
- truncate: h,
370
+ t && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text2, {
371
+ truncate: n,
366
372
  regular: !0,
367
373
  color: _skinContractCssMisticaJs.vars.colors.textSecondary,
368
374
  as: "p",
369
- children: n
375
+ children: t
370
376
  })
371
377
  ]
372
378
  })
373
379
  ]
374
380
  }),
375
- s && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
376
- children: s
381
+ c && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
382
+ children: c
377
383
  })
378
384
  ]
379
385
  })
380
386
  }))
381
387
  });
388
+ }), sr = (param)=>/* @__PURE__ */ {
389
+ let { actions: e , isInverse: a } = param;
390
+ return (0, _jsxRuntimeJs.jsx)(_inlineJs.default, {
391
+ space: 0,
392
+ children: e.map((param, l)=>/* @__PURE__ */ {
393
+ let { onPress: i , label: t , Icon: n } = param;
394
+ return (0, _jsxRuntimeJs.jsx)(_iconButtonJs.default, {
395
+ size: 48,
396
+ onPress: i,
397
+ "aria-label": t,
398
+ className: _cardCssMisticaJs.cardActionIconButton,
399
+ style: {
400
+ display: "flex"
401
+ },
402
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
403
+ className: a ? _cardCssMisticaJs.cardActionInverse : _cardCssMisticaJs.cardAction,
404
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(n, {
405
+ color: _skinContractCssMisticaJs.vars.colors.neutralHigh,
406
+ size: 20
407
+ })
408
+ })
409
+ }, l);
410
+ })
411
+ });
412
+ }, mr = {
413
+ "1:1": "1",
414
+ "16:9": "16 / 9",
415
+ "7:10": "7 / 10",
416
+ "9:10": "9 / 10",
417
+ auto: "auto"
418
+ }, hr = (param)=>{
419
+ let { children: e , width: a = "100%" , height: i = "100%" , aspectRatio: t , actions: n , onClose: l , isInverse: p , "aria-label": c } = param;
420
+ const { texts: s } = (0, _hooksJs.useTheme)(), o = n ? [
421
+ ...n
422
+ ] : [];
423
+ l && o.push({
424
+ label: s.closeButtonLabel,
425
+ onPress: l,
426
+ Icon: _iconCloseRegularJs.default
427
+ });
428
+ const u = o.length > 0, m = t ? typeof t == "number" ? String(t) : mr[t] : void 0;
429
+ return /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("section", {
430
+ "aria-label": c,
431
+ style: {
432
+ width: a,
433
+ height: i,
434
+ aspectRatio: m,
435
+ position: "relative"
436
+ },
437
+ children: [
438
+ e,
439
+ u && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
440
+ style: {
441
+ position: "absolute",
442
+ right: 8,
443
+ top: 8
444
+ },
445
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(sr, {
446
+ actions: o,
447
+ isInverse: p
448
+ })
449
+ })
450
+ ]
451
+ });
452
+ }, I = /*#__PURE__*/ _react.forwardRef((param, _)=>{
453
+ let { isInverse: e , backgroundImage: a , icon: i , headline: t , pretitle: n , pretitleLinesMax: l , title: p , titleLinesMax: c , description: s , descriptionLinesMax: o , extra: u , button: m , secondaryButton: f , onClose: g , actions: h , buttonLink: C , dataAttributes: S , width: G , height: j , aspectRatio: k , "aria-label": X } = param;
454
+ const v = !!a, D = v ? "0 0 16px rgba(0,0,0,0.4)" : void 0, E = (h == null ? void 0 : h.length) || g;
455
+ return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(hr, {
456
+ width: G,
457
+ height: j,
458
+ aspectRatio: k,
459
+ onClose: g,
460
+ actions: h,
461
+ "aria-label": X,
462
+ isInverse: e,
463
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxedJs.InternalBoxed, {
464
+ borderRadius: 16,
465
+ className: _cardCssMisticaJs.boxed,
466
+ dataAttributes: S,
467
+ ref: _,
468
+ width: "100%",
469
+ minHeight: "100%",
470
+ isInverse: e,
471
+ background: e && a ? _skinContractCssMisticaJs.vars.colors.backgroundContainer : void 0,
472
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("div", {
473
+ className: _cardCssMisticaJs.displayCard,
474
+ style: {
475
+ backgroundImage: a ? `url("${CSS.escape(a)}")` : void 0,
476
+ paddingTop: v && !i && !E ? 0 : 24
477
+ },
478
+ children: [
479
+ i ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
480
+ paddingBottom: v ? 0 : 40,
481
+ paddingX: 24,
482
+ children: i
483
+ }) : /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
484
+ paddingBottom: (h == null ? void 0 : h.length) || g ? v ? 24 : 64 : 0
485
+ }),
486
+ /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
487
+ paddingX: 24,
488
+ paddingTop: v ? 40 : 0,
489
+ paddingBottom: 24,
490
+ className: v ? _cardCssMisticaJs.displayCardGradient : void 0,
491
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
492
+ space: 24,
493
+ children: [
494
+ /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("div", {
495
+ children: [
496
+ /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
497
+ space: 8,
498
+ children: [
499
+ (t || n || p) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("header", {
500
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
501
+ space: 16,
502
+ children: [
503
+ t,
504
+ /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
505
+ space: 4,
506
+ children: [
507
+ n && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text2, {
508
+ forceMobileSizes: !0,
509
+ truncate: l,
510
+ as: "div",
511
+ regular: !0,
512
+ textShadow: D,
513
+ children: n
514
+ }),
515
+ /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text6, {
516
+ forceMobileSizes: !0,
517
+ truncate: c,
518
+ as: "h3",
519
+ textShadow: D,
520
+ children: p
521
+ })
522
+ ]
523
+ })
524
+ ]
525
+ })
526
+ }),
527
+ s && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text3, {
528
+ forceMobileSizes: !0,
529
+ truncate: o,
530
+ as: "p",
531
+ regular: !0,
532
+ color: _skinContractCssMisticaJs.vars.colors.textSecondary,
533
+ textShadow: D,
534
+ children: s
535
+ })
536
+ ]
537
+ }),
538
+ u
539
+ ]
540
+ }),
541
+ (m || f || C) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_buttonGroupJs.default, {
542
+ primaryButton: m,
543
+ secondaryButton: f,
544
+ link: C
545
+ })
546
+ ]
547
+ })
548
+ })
549
+ ]
550
+ })
551
+ })
552
+ });
553
+ }), Ir = /*#__PURE__*/ _react.forwardRef((_param, i)=>/* @__PURE__ */ {
554
+ var { dataAttributes: e } = _param, a = _objectWithoutProperties(_param, [
555
+ "dataAttributes"
556
+ ]);
557
+ return (0, _jsxRuntimeJs.jsx)(I, _objectSpreadProps(_objectSpread({}, a), {
558
+ ref: i,
559
+ isInverse: !0,
560
+ dataAttributes: _objectSpreadProps(_objectSpread({}, e), {
561
+ "component-name": "DisplayMediaCard"
562
+ })
563
+ }));
564
+ }), Gr = /*#__PURE__*/ _react.forwardRef((_param, i)=>/* @__PURE__ */ {
565
+ var { dataAttributes: e } = _param, a = _objectWithoutProperties(_param, [
566
+ "dataAttributes"
567
+ ]);
568
+ return (0, _jsxRuntimeJs.jsx)(I, _objectSpreadProps(_objectSpread({}, a), {
569
+ ref: i,
570
+ dataAttributes: _objectSpreadProps(_objectSpread({}, e), {
571
+ "component-name": "DisplayDataCard"
572
+ })
573
+ }));
382
574
  });
@@ -156,7 +156,7 @@ const V = /*#__PURE__*/ _react.forwardRef((e, i)=>{
156
156
  "aria-label": m ? void 0 : e["aria-label"],
157
157
  children: [
158
158
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text4, {
159
- as: "h1",
159
+ as: "h3",
160
160
  regular: !0,
161
161
  truncate: e.titleLinesMax,
162
162
  children: a
package/dist/index.d.ts CHANGED
@@ -50,7 +50,7 @@ export { default as Inline } from './inline';
50
50
  export { default as HighlightedCard } from './highlighted-card';
51
51
  export { default as Stepper } from './stepper';
52
52
  export { default as ProgressBar } from './progress-bar';
53
- export { MediaCard, DataCard, SnapCard } from './card';
53
+ export { MediaCard, DataCard, SnapCard, DisplayDataCard, DisplayMediaCard } from './card';
54
54
  export { default as Hero } from './hero';
55
55
  export { default as Divider } from './divider';
56
56
  export { default as Menu } from './menu';
package/dist/index.js CHANGED
@@ -36,6 +36,8 @@ _export(exports, {
36
36
  DateField: ()=>_dateFieldJs.default,
37
37
  DateTimeField: ()=>_dateTimeFieldJs.default,
38
38
  DecimalField: ()=>_decimalFieldJs.default,
39
+ DisplayDataCard: ()=>_cardJs.DisplayDataCard,
40
+ DisplayMediaCard: ()=>_cardJs.DisplayMediaCard,
39
41
  Divider: ()=>_dividerJs.default,
40
42
  DoubleField: ()=>_doubleFieldJs.default,
41
43
  EmailField: ()=>_emailFieldJs.default,
@@ -9,18 +9,18 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- hideItems: ()=>v,
12
+ hideItems: ()=>r,
13
13
  menuContainer: ()=>_,
14
14
  showItems: ()=>a,
15
- vars: ()=>t
15
+ vars: ()=>n
16
16
  });
17
17
  require("./sprinkles.css.ts.vanilla.js");
18
18
  require("./menu.css.ts.vanilla.js");
19
- var v = "_2k0k3u9", _ = "_2k0k3u7 _1y2v1nf65 _1y2v1nf6j _1y2v1nf6x _1y2v1nf7b _1y2v1nf5e _1y2v1nf2q _1y2v1nf9k", a = "_2k0k3u8", t = {
19
+ var r = "_2k0k3u9", _ = "_2k0k3u7 _1y2v1nf65 _1y2v1nf6j _1y2v1nf6x _1y2v1nf7b _1y2v1nf2q _1y2v1nf9k _1y2v1nf5i _1y2v1nf5o _1y2v1nf5e", a = "_2k0k3u8", n = {
20
20
  top: "var(--_2k0k3u0)",
21
21
  bottom: "var(--_2k0k3u1)",
22
- right: "var(--_2k0k3u2)",
22
+ left: "var(--_2k0k3u2)",
23
23
  width: "var(--_2k0k3u3)",
24
- transformOrigin: "var(--_2k0k3u4)",
25
- maxHeight: "var(--_2k0k3u5)"
24
+ maxHeight: "var(--_2k0k3u4)",
25
+ transformOrigin: "var(--_2k0k3u5)"
26
26
  };
@@ -1,10 +1,10 @@
1
1
  export declare const vars: {
2
2
  top: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
3
3
  bottom: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
4
- right: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
4
+ left: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
5
5
  width: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
6
- transformOrigin: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
7
6
  maxHeight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
7
+ transformOrigin: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
8
8
  };
9
9
  export declare const menuContainer: string;
10
10
  export declare const showItems: string;