@telefonica/mistica 16.2.0 → 16.3.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 (51) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/card.css-mistica.js +33 -21
  3. package/dist/card.css.d.ts +4 -0
  4. package/dist/card.js +235 -263
  5. package/dist/chip.css-mistica.js +19 -7
  6. package/dist/chip.css.d.ts +2 -0
  7. package/dist/chip.js +33 -49
  8. package/dist/community/advanced-data-card.css-mistica.js +24 -24
  9. package/dist/community/advanced-data-card.css.d.ts +1 -1
  10. package/dist/community/advanced-data-card.js +45 -48
  11. package/dist/empty-state-card.js +12 -11
  12. package/dist/hero.js +25 -19
  13. package/dist/highlighted-card.js +15 -14
  14. package/dist/list.css-mistica.js +21 -15
  15. package/dist/list.css.d.ts +2 -0
  16. package/dist/list.js +97 -96
  17. package/dist/menu.css-mistica.js +9 -9
  18. package/dist/menu.js +9 -10
  19. package/dist/package-version.js +1 -1
  20. package/dist/sheet-common.js +3 -2
  21. package/dist/table.js +52 -51
  22. package/dist/tag.css-mistica.js +1 -1
  23. package/dist/tag.js +9 -10
  24. package/dist/text-props.d.ts +60 -0
  25. package/dist/text-props.js +93 -0
  26. package/dist/text.d.ts +0 -62
  27. package/dist/text.js +156 -219
  28. package/dist/title.js +10 -9
  29. package/dist-es/card.css-mistica.js +4 -4
  30. package/dist-es/card.js +343 -371
  31. package/dist-es/chip.css-mistica.js +10 -4
  32. package/dist-es/chip.js +44 -60
  33. package/dist-es/community/advanced-data-card.css-mistica.js +7 -7
  34. package/dist-es/community/advanced-data-card.js +74 -77
  35. package/dist-es/empty-state-card.js +17 -16
  36. package/dist-es/hero.js +53 -47
  37. package/dist-es/highlighted-card.js +19 -18
  38. package/dist-es/list.css-mistica.js +2 -2
  39. package/dist-es/list.js +141 -140
  40. package/dist-es/menu.css-mistica.js +3 -3
  41. package/dist-es/menu.js +21 -22
  42. package/dist-es/package-version.js +1 -1
  43. package/dist-es/sheet-common.js +12 -11
  44. package/dist-es/style.css +1 -1
  45. package/dist-es/table.js +89 -88
  46. package/dist-es/tag.css-mistica.js +1 -1
  47. package/dist-es/tag.js +14 -15
  48. package/dist-es/text-props.js +52 -0
  49. package/dist-es/text.js +171 -231
  50. package/dist-es/title.js +14 -13
  51. package/package.json +3 -3
package/dist/text.js CHANGED
@@ -14,43 +14,40 @@ _export(exports, {
14
14
  return o;
15
15
  },
16
16
  Text1: function() {
17
- return He;
17
+ return Nt;
18
18
  },
19
19
  Text10: function() {
20
- return ge;
20
+ return Vt;
21
21
  },
22
22
  Text2: function() {
23
- return we;
23
+ return Et;
24
24
  },
25
25
  Text3: function() {
26
- return ke;
26
+ return kt;
27
27
  },
28
28
  Text4: function() {
29
- return Se;
29
+ return Wt;
30
30
  },
31
31
  Text5: function() {
32
- return Te;
32
+ return St;
33
33
  },
34
34
  Text6: function() {
35
- return fe;
35
+ return Rt;
36
36
  },
37
37
  Text7: function() {
38
- return be;
38
+ return Ct;
39
39
  },
40
40
  Text8: function() {
41
- return de;
41
+ return Pt;
42
42
  },
43
43
  Text9: function() {
44
- return ue;
44
+ return It;
45
45
  },
46
46
  default: function() {
47
- return ze;
47
+ return Ot;
48
48
  },
49
49
  mapToWeight: function() {
50
- return ee;
51
- },
52
- textProps: function() {
53
- return a;
50
+ return xt;
54
51
  }
55
52
  });
56
53
  const _jsxruntime = require("react/jsx-runtime");
@@ -64,6 +61,7 @@ const _skincontractcssmistica = require("./skins/skin-contract.css-mistica.js");
64
61
  const _textcssmistica = require("./text.css-mistica.js");
65
62
  const _constants = require("./skins/constants.js");
66
63
  const _screenreaderonly = /*#__PURE__*/ _interop_require_default(require("./screen-reader-only.js"));
64
+ const _textprops = require("./text-props.js");
67
65
  function _interop_require_default(obj) {
68
66
  return obj && obj.__esModule ? obj : {
69
67
  default: obj
@@ -189,16 +187,16 @@ function _object_without_properties_loose(source, excluded) {
189
187
  }
190
188
  return target;
191
189
  }
192
- const ee = {
190
+ const xt = {
193
191
  light: 300,
194
192
  regular: 400,
195
193
  medium: 500,
196
194
  bold: 700
197
- }, te = (e)=>e === !0 ? 1 : e || "initial", g = "Ħ", ie = /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
195
+ }, ct = (t)=>t === !0 ? 1 : t || "initial", h = "Ħ", ut = /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
198
196
  children: [
199
197
  /* @__PURE__ */ (0, _jsxruntime.jsx)("span", {
200
198
  "aria-hidden": !0,
201
- children: g
199
+ children: h
202
200
  }),
203
201
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_screenreaderonly.default, {
204
202
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("span", {
@@ -206,290 +204,229 @@ const ee = {
206
204
  })
207
205
  })
208
206
  ]
209
- }), re = (param)=>{
210
- let { children: e, ariaLabel: i, as: t } = param;
211
- return typeof t == "string" && [
207
+ }), lt = (param)=>{
208
+ let { children: t, ariaLabel: r, as: e } = param;
209
+ return typeof e == "string" && [
212
210
  "h1",
213
211
  "h2",
214
212
  "h3",
215
213
  "h4",
216
214
  "h5",
217
215
  "h6"
218
- ].includes(t) && typeof e == "string" && e.includes(g) ? {
219
- ariaLabel: e.replace(new RegExp(g, "g"), "Vivo"),
216
+ ].includes(e) && typeof t == "string" && t.includes(h) ? {
217
+ ariaLabel: t.replace(new RegExp(h, "g"), "Vivo"),
220
218
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("span", {
221
219
  "aria-hidden": !0,
222
- children: e
220
+ children: t
223
221
  })
224
222
  } : {
225
- children: _react.Children.map(e, (r)=>typeof r != "string" || !r.includes(g) ? r : /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
226
- children: r.split(g).map((p, l)=>/* @__PURE__ */ (0, _jsxruntime.jsxs)(_react.Fragment, {
223
+ children: _react.Children.map(t, (n)=>typeof n != "string" || !n.includes(h) ? n : /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
224
+ children: n.split(h).map((x, c)=>/* @__PURE__ */ (0, _jsxruntime.jsxs)(_react.Fragment, {
227
225
  children: [
228
- l > 0 && ie,
229
- p
226
+ c > 0 && ut,
227
+ x
230
228
  ]
231
- }, l))
229
+ }, c))
232
230
  })),
233
- ariaLabel: i
231
+ ariaLabel: r
234
232
  };
235
233
  }, o = (param)=>{
236
- let { weight: e, color: i = _skincontractcssmistica.vars.colors.textPrimary, decoration: t, truncate: r, transform: p, wordBreak: l = !0, hyphens: S = "auto", as: b = "span", children: h, size: k, mobileSize: w = k, desktopSize: H = k, lineHeight: z, mobileLineHeight: L = z, desktopLineHeight: v = z, letterSpacing: I, textAlign: P, textShadow: C, id: R, role: W, "aria-level": E, "aria-label": f, dataAttributes: N } = param;
237
- const { skinName: O } = (0, _hooks.useTheme)(), F = (0, _themevariantcontext.useIsInverseOrMediaVariant)(), _ = te(r), j = {
234
+ let { weight: t, color: r = _skincontractcssmistica.vars.colors.textPrimary, decoration: e, truncate: n, transform: x, wordBreak: c = !0, hyphens: w = "auto", as: p = "span", children: u, size: v, mobileSize: b = v, desktopSize: y = v, lineHeight: A, mobileLineHeight: V = A, desktopLineHeight: I = A, letterSpacing: S, textAlign: W, textShadow: k, id: E, role: N, "aria-level": O, "aria-label": d, dataAttributes: F } = param;
235
+ const { skinName: _ } = (0, _hooks.useTheme)(), j = (0, _themevariantcontext.useIsInverseOrMediaVariant)(), D = ct(n), H = {
238
236
  [_skincontractcssmistica.vars.colors.textPrimary]: _skincontractcssmistica.vars.colors.textPrimaryInverse,
239
237
  [_skincontractcssmistica.vars.colors.textSecondary]: _skincontractcssmistica.vars.colors.textSecondaryInverse,
240
238
  [_skincontractcssmistica.vars.colors.textLink]: _skincontractcssmistica.vars.colors.textLinkInverse,
241
239
  [_skincontractcssmistica.vars.colors.textError]: _skincontractcssmistica.vars.colors.textErrorInverse
242
240
  };
243
- if (!h && h !== 0) return null;
244
- const D = (0, _classnames.default)(_textcssmistica.text, l ? _textcssmistica.withWordBreak : _textcssmistica.withoutWordBreak, {
245
- [_textcssmistica.truncate]: r,
246
- [_textcssmistica.truncateToOneLine]: r === 1 || r === !0
247
- }), M = (0, _css.applyCssVars)({
248
- [_textcssmistica.vars.mobileSize]: w ? (0, _css.pxToRem)(w) : "inherit",
249
- [_textcssmistica.vars.mobileLineHeight]: L ? (0, _css.pxToRem)(L) : "inherit",
250
- [_textcssmistica.vars.desktopSize]: H ? (0, _css.pxToRem)(H) : "inherit",
251
- [_textcssmistica.vars.desktopLineHeight]: v ? (0, _css.pxToRem)(v) : "inherit"
252
- }), B = r ? (0, _css.applyCssVars)({
253
- [_textcssmistica.vars.lineClamp]: String(_)
241
+ if (!u && u !== 0) return null;
242
+ const M = (0, _classnames.default)(_textcssmistica.text, c ? _textcssmistica.withWordBreak : _textcssmistica.withoutWordBreak, {
243
+ [_textcssmistica.truncate]: n,
244
+ [_textcssmistica.truncateToOneLine]: n === 1 || n === !0
245
+ }), z = (0, _css.applyCssVars)({
246
+ [_textcssmistica.vars.mobileSize]: b ? (0, _css.pxToRem)(b) : "inherit",
247
+ [_textcssmistica.vars.mobileLineHeight]: V ? (0, _css.pxToRem)(V) : "inherit",
248
+ [_textcssmistica.vars.desktopSize]: y ? (0, _css.pxToRem)(y) : "inherit",
249
+ [_textcssmistica.vars.desktopLineHeight]: I ? (0, _css.pxToRem)(I) : "inherit"
250
+ }), B = n ? (0, _css.applyCssVars)({
251
+ [_textcssmistica.vars.lineClamp]: String(D)
254
252
  }) : {};
255
- var _j_i;
256
- return O === _constants.VIVO_NEW_SKIN && ({ ariaLabel: f, children: h } = re({
257
- children: h,
258
- ariaLabel: f,
259
- as: b
260
- })), /*#__PURE__*/ _react.createElement(b, _object_spread_props(_object_spread({
261
- className: D,
262
- id: R,
263
- role: W,
264
- "aria-level": E,
265
- "aria-label": f
266
- }, (0, _dom.getPrefixedDataAttributes)(N, "Text")), {
267
- style: _object_spread_props(_object_spread({}, M, B), {
268
- hyphens: S,
269
- WebkitHyphens: S,
270
- letterSpacing: I,
271
- fontWeight: e ? ee[e] : "inherit",
272
- textTransform: p || "inherit",
273
- textDecoration: t !== null && t !== void 0 ? t : "inherit",
274
- overflowWrap: l ? "anywhere" : "inherit",
275
- color: F ? (_j_i = j[i]) !== null && _j_i !== void 0 ? _j_i : i : i,
276
- textAlign: P,
277
- textShadow: C,
253
+ var _H_r;
254
+ return _ === _constants.VIVO_NEW_SKIN && ({ ariaLabel: d, children: u } = lt({
255
+ children: u,
256
+ ariaLabel: d,
257
+ as: p
258
+ })), /*#__PURE__*/ _react.createElement(p, _object_spread_props(_object_spread({
259
+ className: M,
260
+ id: E,
261
+ role: N,
262
+ "aria-level": O,
263
+ "aria-label": d
264
+ }, (0, _dom.getPrefixedDataAttributes)(F, "Text")), {
265
+ style: _object_spread_props(_object_spread({}, z, B), {
266
+ hyphens: w,
267
+ WebkitHyphens: w,
268
+ letterSpacing: S,
269
+ fontWeight: t ? xt[t] : "inherit",
270
+ textTransform: x || "inherit",
271
+ textDecoration: e !== null && e !== void 0 ? e : "inherit",
272
+ overflowWrap: c ? "anywhere" : "inherit",
273
+ color: j ? (_H_r = H[r]) !== null && _H_r !== void 0 ? _H_r : r : r,
274
+ textAlign: W,
275
+ textShadow: k,
278
276
  // When rendering as <pre/>, spaces are preserved and we don't want to remove them
279
- whiteSpace: b === "pre" ? void 0 : "pre-line"
277
+ whiteSpace: p === "pre" ? void 0 : "pre-line"
280
278
  })
281
- }), h);
282
- }, d = (e)=>{
283
- if (e.light) return "light";
284
- if (e.regular) return "regular";
285
- if (e.medium) return "medium";
286
- if (e.weight) return e.weight;
279
+ }), u);
280
+ }, f = (t)=>{
281
+ if (t.light) return "light";
282
+ if (t.regular) return "regular";
283
+ if (t.medium) return "medium";
284
+ if (t.weight) return t.weight;
287
285
  }, s = (param)=>{
288
- let { forceMobileSizes: e, mobileSize: i, mobileLineHeight: t, desktopSize: r, desktopLineHeight: p } = param;
289
- return e ? {
290
- size: i,
291
- lineHeight: t
286
+ let { forceMobileSizes: t, mobileSize: r, mobileLineHeight: e, desktopSize: n, desktopLineHeight: x } = param;
287
+ return t ? {
288
+ size: r,
289
+ lineHeight: e
292
290
  } : {
293
- mobileSize: i,
294
- mobileLineHeight: t,
295
- desktopSize: r,
296
- desktopLineHeight: p
291
+ mobileSize: r,
292
+ mobileLineHeight: e,
293
+ desktopSize: n,
294
+ desktopLineHeight: x
297
295
  };
298
- }, a = {
299
- text1: {
300
- mobileSize: 12,
301
- mobileLineHeight: "16px",
302
- desktopSize: 14,
303
- desktopLineHeight: "20px"
304
- },
305
- text2: {
306
- mobileSize: 14,
307
- mobileLineHeight: "20px",
308
- desktopSize: 16,
309
- desktopLineHeight: "24px"
310
- },
311
- text3: {
312
- mobileSize: 16,
313
- mobileLineHeight: "24px",
314
- desktopSize: 18,
315
- desktopLineHeight: "24px"
316
- },
317
- text4: {
318
- mobileSize: 18,
319
- mobileLineHeight: "24px",
320
- desktopSize: 20,
321
- desktopLineHeight: "28px"
322
- },
323
- text5: {
324
- mobileSize: 20,
325
- mobileLineHeight: "24px",
326
- desktopSize: 28,
327
- desktopLineHeight: "32px"
328
- },
329
- text6: {
330
- mobileSize: 24,
331
- mobileLineHeight: "32px",
332
- desktopSize: 32,
333
- desktopLineHeight: "40px"
334
- },
335
- text7: {
336
- mobileSize: 28,
337
- mobileLineHeight: "32px",
338
- desktopSize: 40,
339
- desktopLineHeight: "48px"
340
- },
341
- text8: {
342
- mobileSize: 32,
343
- mobileLineHeight: "40px",
344
- desktopSize: 48,
345
- desktopLineHeight: "56px"
346
- },
347
- text9: {
348
- mobileSize: 40,
349
- mobileLineHeight: "48px",
350
- desktopSize: 56,
351
- desktopLineHeight: "64px"
352
- },
353
- text10: {
354
- mobileSize: 48,
355
- mobileLineHeight: "56px",
356
- desktopSize: 64,
357
- desktopLineHeight: "72px"
358
- }
359
- }, ge = (_param)=>{
360
- var { dataAttributes: e, forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
296
+ }, Vt = (_param)=>{
297
+ var { dataAttributes: t, forceMobileSizes: r } = _param, e = _object_without_properties(_param, [
361
298
  "dataAttributes",
362
299
  "forceMobileSizes"
363
300
  ]);
364
- const { textPresets: r } = (0, _hooks.useTheme)();
301
+ const { textPresets: n } = (0, _hooks.useTheme)();
365
302
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s(_object_spread({
366
- forceMobileSizes: i
367
- }, a.text10))), {
368
- weight: r.text10.weight,
303
+ forceMobileSizes: r
304
+ }, _textprops.text10))), {
305
+ weight: n.text10.weight,
369
306
  dataAttributes: _object_spread({
370
307
  "component-name": "Text10"
371
- }, e)
372
- }), t));
373
- }, ue = (_param)=>{
374
- var { dataAttributes: e, forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
308
+ }, t)
309
+ }), e));
310
+ }, It = (_param)=>{
311
+ var { dataAttributes: t, forceMobileSizes: r } = _param, e = _object_without_properties(_param, [
375
312
  "dataAttributes",
376
313
  "forceMobileSizes"
377
314
  ]);
378
- const { textPresets: r } = (0, _hooks.useTheme)();
315
+ const { textPresets: n } = (0, _hooks.useTheme)();
379
316
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s(_object_spread({
380
- forceMobileSizes: i
381
- }, a.text9))), {
382
- weight: r.text9.weight,
317
+ forceMobileSizes: r
318
+ }, _textprops.text9))), {
319
+ weight: n.text9.weight,
383
320
  dataAttributes: _object_spread({
384
321
  "component-name": "Text9"
385
- }, e)
386
- }), t));
387
- }, de = (_param)=>{
388
- var { dataAttributes: e, forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
322
+ }, t)
323
+ }), e));
324
+ }, Pt = (_param)=>{
325
+ var { dataAttributes: t, forceMobileSizes: r } = _param, e = _object_without_properties(_param, [
389
326
  "dataAttributes",
390
327
  "forceMobileSizes"
391
328
  ]);
392
- const { textPresets: r } = (0, _hooks.useTheme)();
329
+ const { textPresets: n } = (0, _hooks.useTheme)();
393
330
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s(_object_spread({
394
- forceMobileSizes: i
395
- }, a.text8))), {
396
- weight: r.text8.weight,
331
+ forceMobileSizes: r
332
+ }, _textprops.text8))), {
333
+ weight: n.text8.weight,
397
334
  dataAttributes: _object_spread({
398
335
  "component-name": "Text8"
399
- }, e)
400
- }), t));
401
- }, be = (_param)=>{
402
- var { dataAttributes: e, forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
336
+ }, t)
337
+ }), e));
338
+ }, Ct = (_param)=>{
339
+ var { dataAttributes: t, forceMobileSizes: r } = _param, e = _object_without_properties(_param, [
403
340
  "dataAttributes",
404
341
  "forceMobileSizes"
405
342
  ]);
406
- const { textPresets: r } = (0, _hooks.useTheme)();
343
+ const { textPresets: n } = (0, _hooks.useTheme)();
407
344
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s(_object_spread({
408
- forceMobileSizes: i
409
- }, a.text7))), {
410
- weight: r.text7.weight,
345
+ forceMobileSizes: r
346
+ }, _textprops.text7))), {
347
+ weight: n.text7.weight,
411
348
  dataAttributes: _object_spread({
412
349
  "component-name": "Text7"
413
- }, e)
414
- }), t));
415
- }, fe = (_param)=>{
416
- var { dataAttributes: e, forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
350
+ }, t)
351
+ }), e));
352
+ }, Rt = (_param)=>{
353
+ var { dataAttributes: t, forceMobileSizes: r } = _param, e = _object_without_properties(_param, [
417
354
  "dataAttributes",
418
355
  "forceMobileSizes"
419
356
  ]);
420
- const { textPresets: r } = (0, _hooks.useTheme)();
357
+ const { textPresets: n } = (0, _hooks.useTheme)();
421
358
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s(_object_spread({
422
- forceMobileSizes: i
423
- }, a.text6))), {
424
- weight: r.text6.weight,
359
+ forceMobileSizes: r
360
+ }, _textprops.text6))), {
361
+ weight: n.text6.weight,
425
362
  dataAttributes: _object_spread({
426
363
  "component-name": "Text6"
427
- }, e)
428
- }), t));
429
- }, Te = (_param)=>{
430
- var { dataAttributes: e, forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
364
+ }, t)
365
+ }), e));
366
+ }, St = (_param)=>{
367
+ var { dataAttributes: t, forceMobileSizes: r } = _param, e = _object_without_properties(_param, [
431
368
  "dataAttributes",
432
369
  "forceMobileSizes"
433
370
  ]);
434
- const { textPresets: r } = (0, _hooks.useTheme)();
371
+ const { textPresets: n } = (0, _hooks.useTheme)();
435
372
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s(_object_spread({
436
- forceMobileSizes: i
437
- }, a.text5))), {
438
- weight: r.text5.weight,
373
+ forceMobileSizes: r
374
+ }, _textprops.text5))), {
375
+ weight: n.text5.weight,
439
376
  dataAttributes: _object_spread({
440
377
  "component-name": "Text5"
441
- }, e)
442
- }), t));
443
- }, Se = (_param)=>{
444
- var { dataAttributes: e, forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
378
+ }, t)
379
+ }), e));
380
+ }, Wt = (_param)=>{
381
+ var { dataAttributes: t, forceMobileSizes: r } = _param, e = _object_without_properties(_param, [
445
382
  "dataAttributes",
446
383
  "forceMobileSizes"
447
384
  ]);
448
385
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s(_object_spread({
449
- forceMobileSizes: i
450
- }, a.text4))), {
451
- weight: d(t),
386
+ forceMobileSizes: r
387
+ }, _textprops.text4))), {
388
+ weight: f(e),
452
389
  dataAttributes: _object_spread({
453
390
  "component-name": "Text4"
454
- }, e)
455
- }), t));
456
- }, ke = (_param)=>{
457
- var { dataAttributes: e, forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
391
+ }, t)
392
+ }), e));
393
+ }, kt = (_param)=>{
394
+ var { dataAttributes: t, forceMobileSizes: r } = _param, e = _object_without_properties(_param, [
458
395
  "dataAttributes",
459
396
  "forceMobileSizes"
460
397
  ]);
461
398
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s(_object_spread({
462
- forceMobileSizes: i
463
- }, a.text3))), {
464
- weight: d(t),
399
+ forceMobileSizes: r
400
+ }, _textprops.text3))), {
401
+ weight: f(e),
465
402
  dataAttributes: _object_spread({
466
403
  "component-name": "Text3"
467
- }, e)
468
- }), t));
469
- }, we = (_param)=>{
470
- var { dataAttributes: e, forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
404
+ }, t)
405
+ }), e));
406
+ }, Et = (_param)=>{
407
+ var { dataAttributes: t, forceMobileSizes: r } = _param, e = _object_without_properties(_param, [
471
408
  "dataAttributes",
472
409
  "forceMobileSizes"
473
410
  ]);
474
411
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s(_object_spread({
475
- forceMobileSizes: i
476
- }, a.text2))), {
477
- weight: d(t),
412
+ forceMobileSizes: r
413
+ }, _textprops.text2))), {
414
+ weight: f(e),
478
415
  dataAttributes: _object_spread({
479
416
  "component-name": "Text2"
480
- }, e)
481
- }), t));
482
- }, He = (_param)=>{
483
- var { dataAttributes: e, forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
417
+ }, t)
418
+ }), e));
419
+ }, Nt = (_param)=>{
420
+ var { dataAttributes: t, forceMobileSizes: r } = _param, e = _object_without_properties(_param, [
484
421
  "dataAttributes",
485
422
  "forceMobileSizes"
486
423
  ]);
487
424
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s(_object_spread({
488
- forceMobileSizes: i
489
- }, a.text1))), {
490
- weight: d(t),
425
+ forceMobileSizes: r
426
+ }, _textprops.text1))), {
427
+ weight: f(e),
491
428
  dataAttributes: _object_spread({
492
429
  "component-name": "Text1"
493
- }, e)
494
- }), t));
495
- }, ze = o;
430
+ }, t)
431
+ }), e));
432
+ }, Ot = o;
package/dist/title.js CHANGED
@@ -11,20 +11,21 @@ function _export(target, all) {
11
11
  }
12
12
  _export(exports, {
13
13
  Title1: function() {
14
- return L;
14
+ return S;
15
15
  },
16
16
  Title2: function() {
17
- return S;
17
+ return j;
18
18
  },
19
19
  Title3: function() {
20
- return j;
20
+ return v;
21
21
  },
22
22
  Title4: function() {
23
- return v;
23
+ return y;
24
24
  }
25
25
  });
26
26
  const _jsxruntime = require("react/jsx-runtime");
27
27
  const _text = /*#__PURE__*/ _interop_require_wildcard(require("./text.js"));
28
+ const _textprops = require("./text-props.js");
28
29
  const _inline = /*#__PURE__*/ _interop_require_default(require("./inline.js"));
29
30
  const _box = /*#__PURE__*/ _interop_require_default(require("./box.js"));
30
31
  const _skincontractcssmistica = require("./skins/skin-contract.css-mistica.js");
@@ -148,7 +149,7 @@ const m = (param)=>{
148
149
  }) : /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({}, (0, _dom.getPrefixedDataAttributes)(o)), {
149
150
  children: e
150
151
  }));
151
- }, L = (param)=>{
152
+ }, S = (param)=>{
152
153
  let { children: e, as: i = "h3", id: o, right: r, dataAttributes: s } = param;
153
154
  const { textPresets: n } = (0, _hooks.useTheme)();
154
155
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(m, {
@@ -166,14 +167,14 @@ const m = (param)=>{
166
167
  "component-name": "Title1"
167
168
  }, s)
168
169
  });
169
- }, S = (param)=>{
170
+ }, j = (param)=>{
170
171
  let { children: e, as: i = "h3", id: o, right: r, dataAttributes: s } = param;
171
172
  const { textPresets: n } = (0, _hooks.useTheme)();
172
173
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(m, {
173
174
  title: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.default, _object_spread_props(_object_spread({
174
175
  as: i,
175
176
  id: o
176
- }, _text.textProps.text3), {
177
+ }, _textprops.text3), {
177
178
  weight: n.title2.weight,
178
179
  children: e
179
180
  })),
@@ -182,7 +183,7 @@ const m = (param)=>{
182
183
  "component-name": "Title2"
183
184
  }, s)
184
185
  });
185
- }, j = (param)=>{
186
+ }, v = (param)=>{
186
187
  let { children: e, as: i = "h3", id: o, right: r, dataAttributes: s } = param;
187
188
  const { textPresets: n } = (0, _hooks.useTheme)();
188
189
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(m, {
@@ -201,7 +202,7 @@ const m = (param)=>{
201
202
  "component-name": "Title3"
202
203
  }, s)
203
204
  });
204
- }, v = (param)=>{
205
+ }, y = (param)=>{
205
206
  let { children: e, as: i = "h3", id: o, right: r, dataAttributes: s } = param;
206
207
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(m, {
207
208
  title: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text6, {
@@ -1,8 +1,8 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./icon-button.css.ts.vanilla.css-mistica.js";
3
3
  import "./card.css.ts.vanilla.css-mistica.js";
4
- var _ = "_15e54s91 _1y2v1nfhk _1y2v1nfi6 _1y2v1nfi0", e = "_15e54s93 _1y2v1nfhk _1y2v1nfhe", y = "_15e54s9w", r = "_1y2v1nfhk _1y2v1nfi6 _1y2v1nfhw _1y2v1nfhq", f = "_15e54s99", s = "_15e54s9l _1y2v1nfaa _1y2v1nfbj _1y2v1nf7y _1y2v1nf97 _1y2v1nfhk _1y2v1nfi6 _1y2v1nfhe _1y2v1nfhq _1y2v1nfi7", i = "_15e54s9x", t = "_15e54s9s", d = "_1y2v1nfi7 _1y2v1nfio _1y2v1nfhk _1y2v1nfhe", h = "_15e54s9r", o = "_15e54s9t", C = "_15e54s9y", l = "_1y2v1nfhk _1y2v1nfhq _1y2v1nfio _1y2v1nfi7 _1y2v1nfi6", c = "_15e54s9h", b = "_15e54s9g _1y2v1nfaa _1y2v1nfbj _1y2v1nfhk _1y2v1nfi6 _1y2v1nfhe _1y2v1nf7s _1y2v1nf97 _1y2v1nfhq _1y2v1nfhw", u = "_15e54s9j _1y2v1nfhk _1y2v1nfi6 _1y2v1nfhe _1y2v1nfhq _1y2v1nfhw _1y2v1nf7s _1y2v1nfbj", k = "_15e54s9n _1y2v1nf7s _1y2v1nf91 _1y2v1nfaa _1y2v1nfbj _1y2v1nfhk _1y2v1nfhe _1y2v1nfio _1y2v1nfhq _1y2v1nfhw _1y2v1nfi7 _1y2v1nfi6", p = "_15e54s96", m = "_15e54s9b _15e54s97", q = "_15e54s9c _15e54s97", O = "_15e54s9d _15e54s97", j = "_15e54s95", w = "_15e54s98 _15e54s97", x = "_15e54s9a _15e54s97", M = {
5
- aspectRatio: "var(--_15e54s9u)",
6
- topActionsCount: "var(--_15e54s9v)"
4
+ var _ = "_15e54s91 _1y2v1nfhk _1y2v1nfi6 _1y2v1nfi0", y = "_15e54s93 _1y2v1nfhk _1y2v1nfhe", e = "_15e54s912", r = "_1y2v1nfhk _1y2v1nfi6 _1y2v1nfhw _1y2v1nfhq", f = "_15e54s99", s = "_15e54s9m _1y2v1nfaa _1y2v1nfbj _1y2v1nf7y _1y2v1nf97 _1y2v1nfhk _1y2v1nfi6 _1y2v1nfhe _1y2v1nfhq _1y2v1nfi7", t = "_15e54s913", i = "_15e54s9v", d = "_1y2v1nfi7 _1y2v1nfio _1y2v1nfhk _1y2v1nfhe", o = "_15e54s9s", h = "_1y2v1nf7s _1y2v1nf80", C = "_1y2v1nf7y", l = "_1y2v1nfag _1y2v1nfbp _1y2v1nf97", p = "_15e54s9y _1y2v1nf84", c = "_15e54s914", b = "_1y2v1nfhk _1y2v1nfhq _1y2v1nfio _1y2v1nfi7 _1y2v1nfi6", k = "_15e54s9i _1y2v1nfaa _1y2v1nfai _1y2v1nf7s _1y2v1nf80", u = "_15e54s9g _1y2v1nfaa _1y2v1nfbj _1y2v1nfhk _1y2v1nfi6 _1y2v1nfhe _1y2v1nf7s _1y2v1nf97 _1y2v1nfhq _1y2v1nfhw", m = "_15e54s9k _1y2v1nfhk _1y2v1nfi6 _1y2v1nfhe _1y2v1nfhq _1y2v1nfhw _1y2v1nf7s _1y2v1nfbj", q = "_1y2v1nfaa _1y2v1nfai _1y2v1nfbj _1y2v1nfbr _1y2v1nf97", O = "_15e54s9o _1y2v1nf7s _1y2v1nf91 _1y2v1nfaa _1y2v1nfbj _1y2v1nfhk _1y2v1nfhe _1y2v1nfio _1y2v1nfhq _1y2v1nfhw _1y2v1nfi7 _1y2v1nfi6", j = "_15e54s96", W = "_15e54s9b _15e54s97", w = "_15e54s9c _15e54s97", A = "_15e54s9d _15e54s97", M = "_15e54s95", g = "_15e54s98 _15e54s97", x = "_15e54s9a _15e54s97", I = {
5
+ aspectRatio: "var(--_15e54s910)",
6
+ topActionsCount: "var(--_15e54s911)"
7
7
  };
8
- export { _ as actions, e as boxed, y as cardContainer, r as cardContentContainer, f as circularMediaOverlay, s as dataCard, i as dataCardTopActionsWithoutIcon, t as displayCardBackground, d as displayCardContainer, h as displayCardContent, o as displayCardGradient, C as flexColumn, l as mediaCard, c as mediaCardAsset, b as mediaCardContent, u as nakedCardContent, k as snapCard, p as touchable, m as touchableCardOverlay, q as touchableCardOverlayInverse, O as touchableCardOverlayMedia, j as touchableContainer, w as touchableMediaCardOverlay, x as touchableNakedMediaOverlay, M as vars };
8
+ export { _ as actions, y as boxed, e as cardContainer, r as cardContentContainer, f as circularMediaOverlay, s as dataCard, t as dataCardTopActionsWithoutIcon, i as displayCardBackground, d as displayCardContainer, o as displayCardContent, h as displayCardContentWithAsset, C as displayCardContentWithTopContent, l as displayCardContentWrapper, p as displayCardGradient, c as flexColumn, b as mediaCard, k as mediaCardAsset, u as mediaCardContent, m as nakedCardContent, q as posterCardContentWrapper, O as snapCard, j as touchable, W as touchableCardOverlay, w as touchableCardOverlayInverse, A as touchableCardOverlayMedia, M as touchableContainer, g as touchableMediaCardOverlay, x as touchableNakedMediaOverlay, I as vars };