@telefonica/mistica 15.2.0 → 15.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 (83) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/box.js +3 -3
  3. package/dist/boxed.js +2 -2
  4. package/dist/button-group.js +2 -2
  5. package/dist/button.js +5 -5
  6. package/dist/carousel.js +29 -29
  7. package/dist/chip.js +2 -2
  8. package/dist/community/advanced-data-card.d.ts +6 -2
  9. package/dist/community/advanced-data-card.js +4 -4
  10. package/dist/counter.js +7 -7
  11. package/dist/feedback.js +2 -2
  12. package/dist/fixed-footer-layout.css-mistica.js +5 -5
  13. package/dist/fixed-footer-layout.js +19 -17
  14. package/dist/form.js +6 -6
  15. package/dist/hero.css-mistica.js +12 -6
  16. package/dist/hero.css.d.ts +2 -0
  17. package/dist/hero.d.ts +2 -1
  18. package/dist/hero.js +80 -69
  19. package/dist/horizontal-scroll.js +2 -2
  20. package/dist/image.js +9 -7
  21. package/dist/list.js +19 -15
  22. package/dist/loading-bar.js +2 -2
  23. package/dist/loading-screen.js +3 -3
  24. package/dist/package-version.js +1 -1
  25. package/dist/pin-field.js +2 -2
  26. package/dist/progress-bar.js +4 -4
  27. package/dist/radio-button.js +3 -3
  28. package/dist/responsive-layout.css-mistica.js +18 -9
  29. package/dist/responsive-layout.d.ts +1 -0
  30. package/dist/responsive-layout.js +15 -15
  31. package/dist/select.js +16 -16
  32. package/dist/sheet.js +82 -81
  33. package/dist/slider.js +8 -8
  34. package/dist/tag.js +2 -2
  35. package/dist/text-field-base.js +3 -3
  36. package/dist/text-field-components.js +2 -2
  37. package/dist/text.js +105 -84
  38. package/dist/utils/aspect-ratio-support.js +8 -8
  39. package/dist/utils/browser.js +1 -1
  40. package/dist/video.js +2 -2
  41. package/dist-es/box.js +7 -7
  42. package/dist-es/boxed.js +2 -2
  43. package/dist-es/button-group.js +4 -4
  44. package/dist-es/button-layout.js +5 -5
  45. package/dist-es/button.js +11 -11
  46. package/dist-es/callout.js +8 -8
  47. package/dist-es/carousel.js +29 -29
  48. package/dist-es/checkbox.js +7 -7
  49. package/dist-es/chip.js +4 -4
  50. package/dist-es/community/advanced-data-card.js +14 -14
  51. package/dist-es/counter.js +21 -21
  52. package/dist-es/empty-state.js +12 -12
  53. package/dist-es/feedback.js +5 -5
  54. package/dist-es/fixed-footer-layout.css-mistica.js +2 -2
  55. package/dist-es/fixed-footer-layout.js +33 -31
  56. package/dist-es/form.js +9 -9
  57. package/dist-es/grid.js +3 -3
  58. package/dist-es/hero.css-mistica.js +2 -2
  59. package/dist-es/hero.js +119 -108
  60. package/dist-es/horizontal-scroll.js +2 -2
  61. package/dist-es/image.js +15 -13
  62. package/dist-es/list.js +15 -11
  63. package/dist-es/loading-bar.js +6 -6
  64. package/dist-es/loading-screen.js +8 -8
  65. package/dist-es/package-version.js +1 -1
  66. package/dist-es/pin-field.js +10 -10
  67. package/dist-es/progress-bar.js +9 -9
  68. package/dist-es/radio-button.js +9 -9
  69. package/dist-es/responsive-layout.css-mistica.js +3 -3
  70. package/dist-es/responsive-layout.js +21 -21
  71. package/dist-es/select.js +22 -22
  72. package/dist-es/sheet.js +124 -123
  73. package/dist-es/slider.js +8 -8
  74. package/dist-es/style.css +1 -1
  75. package/dist-es/tag.js +4 -4
  76. package/dist-es/text-field-base.js +11 -11
  77. package/dist-es/text-field-components.js +9 -9
  78. package/dist-es/text-link.js +5 -5
  79. package/dist-es/text.js +103 -82
  80. package/dist-es/utils/aspect-ratio-support.js +14 -14
  81. package/dist-es/utils/browser.js +1 -1
  82. package/dist-es/video.js +5 -5
  83. package/package.json +1 -1
package/dist/text.js CHANGED
@@ -11,40 +11,40 @@ function _export(target, all) {
11
11
  }
12
12
  _export(exports, {
13
13
  Text: function() {
14
- return n;
14
+ return o;
15
15
  },
16
16
  Text1: function() {
17
- return le;
17
+ return ke;
18
18
  },
19
19
  Text10: function() {
20
- return ie;
20
+ return he;
21
21
  },
22
22
  Text2: function() {
23
- return pe;
23
+ return fe;
24
24
  },
25
25
  Text3: function() {
26
- return xe;
26
+ return Se;
27
27
  },
28
28
  Text4: function() {
29
- return ae;
29
+ return Te;
30
30
  },
31
31
  Text5: function() {
32
- return me;
32
+ return be;
33
33
  },
34
34
  Text6: function() {
35
- return se;
35
+ return ue;
36
36
  },
37
37
  Text7: function() {
38
- return re;
38
+ return de;
39
39
  },
40
40
  Text8: function() {
41
- return ne;
41
+ return ge;
42
42
  },
43
43
  Text9: function() {
44
- return oe;
44
+ return ce;
45
45
  },
46
46
  default: function() {
47
- return he;
47
+ return He;
48
48
  }
49
49
  });
50
50
  const _jsxruntime = require("react/jsx-runtime");
@@ -56,6 +56,8 @@ const _dom = require("./utils/dom.js");
56
56
  const _hooks = require("./hooks.js");
57
57
  const _skincontractcssmistica = require("./skins/skin-contract.css-mistica.js");
58
58
  const _textcssmistica = require("./text.css-mistica.js");
59
+ const _constants = require("./skins/constants.js");
60
+ const _screenreaderonly = /*#__PURE__*/ _interop_require_default(require("./screen-reader-only.js"));
59
61
  function _interop_require_default(obj) {
60
62
  return obj && obj.__esModule ? obj : {
61
63
  default: obj
@@ -181,240 +183,259 @@ function _object_without_properties_loose(source, excluded) {
181
183
  }
182
184
  return target;
183
185
  }
184
- const K = {
186
+ const Z = {
185
187
  light: 300,
186
188
  regular: 400,
187
189
  medium: 500,
188
190
  bold: 700
189
- }, Q = (e)=>e === !0 ? 1 : e || "initial", n = (param)=>{
190
- let { weight: e, color: i = _skincontractcssmistica.vars.colors.textPrimary, decoration: t, truncate: o, transform: h, wordBreak: c = !0, hyphens: u = "auto", as: z = "span", children: g, size: d, mobileSize: b = d, desktopSize: T = d, lineHeight: k, mobileLineHeight: S = k, desktopLineHeight: f = k, letterSpacing: w, textAlign: H, textShadow: v, id: A, role: P, "aria-level": y, dataAttributes: W } = param;
191
- const I = (0, _themevariantcontext.useIsInverseVariant)(), C = Q(o), V = {
191
+ }, $ = (e)=>e === !0 ? 1 : e || "initial", g = "Ħ", ee = /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
192
+ children: [
193
+ /* @__PURE__ */ (0, _jsxruntime.jsx)("span", {
194
+ "aria-hidden": !0,
195
+ children: g
196
+ }),
197
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(_screenreaderonly.default, {
198
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)("span", {
199
+ children: "Vivo"
200
+ })
201
+ })
202
+ ]
203
+ }), te = (e)=>e.includes(g) ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
204
+ children: e.split(g).map((i, t)=>/* @__PURE__ */ (0, _jsxruntime.jsxs)(_react.Fragment, {
205
+ children: [
206
+ t > 0 && ee,
207
+ i
208
+ ]
209
+ }, t))
210
+ }) : e, o = (param)=>{
211
+ let { weight: e, color: i = _skincontractcssmistica.vars.colors.textPrimary, decoration: t, truncate: n, transform: c, wordBreak: d = !0, hyphens: u = "auto", as: A = "span", children: x, size: b, mobileSize: T = b, desktopSize: S = b, lineHeight: f, mobileLineHeight: k = f, desktopLineHeight: H = f, letterSpacing: V, textAlign: y, textShadow: I, id: P, role: W, "aria-level": C, dataAttributes: R } = param;
212
+ const { skinName: N } = (0, _hooks.useTheme)(), F = (0, _themevariantcontext.useIsInverseVariant)(), O = $(n), _ = {
192
213
  [_skincontractcssmistica.vars.colors.textPrimary]: _skincontractcssmistica.vars.colors.textPrimaryInverse,
193
214
  [_skincontractcssmistica.vars.colors.textSecondary]: _skincontractcssmistica.vars.colors.textSecondaryInverse,
194
215
  [_skincontractcssmistica.vars.colors.textLink]: _skincontractcssmistica.vars.colors.textLinkInverse
195
216
  };
196
- if (!g && g !== 0) return null;
197
- const D = (0, _classnames.default)(_textcssmistica.text, c ? _textcssmistica.withWordBreak : _textcssmistica.withoutWordBreak, {
198
- [_textcssmistica.truncate]: o,
199
- [_textcssmistica.truncateToOneLine]: o === 1 || o === !0
200
- }), N = (0, _css.applyCssVars)({
201
- [_textcssmistica.vars.mobileSize]: b ? (0, _css.pxToRem)(b) : "inherit",
202
- [_textcssmistica.vars.mobileLineHeight]: S ? (0, _css.pxToRem)(S) : "inherit",
203
- [_textcssmistica.vars.desktopSize]: T ? (0, _css.pxToRem)(T) : "inherit",
204
- [_textcssmistica.vars.desktopLineHeight]: f ? (0, _css.pxToRem)(f) : "inherit"
205
- }), R = o ? (0, _css.applyCssVars)({
206
- [_textcssmistica.vars.lineClamp]: String(C)
217
+ if (!x && x !== 0) return null;
218
+ const j = (0, _classnames.default)(_textcssmistica.text, d ? _textcssmistica.withWordBreak : _textcssmistica.withoutWordBreak, {
219
+ [_textcssmistica.truncate]: n,
220
+ [_textcssmistica.truncateToOneLine]: n === 1 || n === !0
221
+ }), D = (0, _css.applyCssVars)({
222
+ [_textcssmistica.vars.mobileSize]: T ? (0, _css.pxToRem)(T) : "inherit",
223
+ [_textcssmistica.vars.mobileLineHeight]: k ? (0, _css.pxToRem)(k) : "inherit",
224
+ [_textcssmistica.vars.desktopSize]: S ? (0, _css.pxToRem)(S) : "inherit",
225
+ [_textcssmistica.vars.desktopLineHeight]: H ? (0, _css.pxToRem)(H) : "inherit"
226
+ }), E = n ? (0, _css.applyCssVars)({
227
+ [_textcssmistica.vars.lineClamp]: String(O)
207
228
  }) : {};
208
- var _V_i;
209
- return /*#__PURE__*/ _react.createElement(z, _object_spread_props(_object_spread({
210
- className: D,
211
- id: A,
212
- role: P,
213
- "aria-level": y
214
- }, (0, _dom.getPrefixedDataAttributes)(W, "Text")), {
215
- style: _object_spread_props(_object_spread({}, N, R), {
229
+ var __i;
230
+ return /*#__PURE__*/ _react.createElement(A, _object_spread_props(_object_spread({
231
+ className: j,
232
+ id: P,
233
+ role: W,
234
+ "aria-level": C
235
+ }, (0, _dom.getPrefixedDataAttributes)(R, "Text")), {
236
+ style: _object_spread_props(_object_spread({}, D, E), {
216
237
  hyphens: u,
217
238
  WebkitHyphens: u,
218
- letterSpacing: w,
219
- fontWeight: e ? K[e] : "inherit",
220
- textTransform: h || "inherit",
239
+ letterSpacing: V,
240
+ fontWeight: e ? Z[e] : "inherit",
241
+ textTransform: c || "inherit",
221
242
  textDecoration: t !== null && t !== void 0 ? t : "inherit",
222
- overflowWrap: c ? "anywhere" : "inherit",
223
- color: I ? (_V_i = V[i]) !== null && _V_i !== void 0 ? _V_i : i : i,
224
- textAlign: H,
225
- textShadow: v
243
+ overflowWrap: d ? "anywhere" : "inherit",
244
+ color: F ? (__i = _[i]) !== null && __i !== void 0 ? __i : i : i,
245
+ textAlign: y,
246
+ textShadow: I
226
247
  })
227
- }), g);
228
- }, l = (e)=>{
248
+ }), typeof x == "string" && N === _constants.VIVO_NEW_SKIN ? te(x) : x);
249
+ }, h = (e)=>{
229
250
  if (e.light) return "light";
230
251
  if (e.regular) return "regular";
231
252
  if (e.medium) return "medium";
232
253
  if (e.weight) return e.weight;
233
254
  }, s = (param)=>{
234
- let { forceMobileSizes: e, mobileSize: i, mobileLineHeight: t, desktopSize: o, desktopLineHeight: h } = param;
255
+ let { forceMobileSizes: e, mobileSize: i, mobileLineHeight: t, desktopSize: n, desktopLineHeight: c } = param;
235
256
  return e ? {
236
257
  size: i,
237
258
  lineHeight: t
238
259
  } : {
239
260
  mobileSize: i,
240
261
  mobileLineHeight: t,
241
- desktopSize: o,
242
- desktopLineHeight: h
262
+ desktopSize: n,
263
+ desktopLineHeight: c
243
264
  };
244
- }, ie = (_param)=>{
265
+ }, he = (_param)=>{
245
266
  var { dataAttributes: e, forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
246
267
  "dataAttributes",
247
268
  "forceMobileSizes"
248
269
  ]);
249
- const { textPresets: o } = (0, _hooks.useTheme)();
250
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(n, _object_spread(_object_spread_props(_object_spread({}, s({
270
+ const { textPresets: n } = (0, _hooks.useTheme)();
271
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s({
251
272
  forceMobileSizes: i,
252
273
  mobileSize: 48,
253
274
  mobileLineHeight: "56px",
254
275
  desktopSize: 64,
255
276
  desktopLineHeight: "72px"
256
277
  })), {
257
- weight: o.text10.weight,
278
+ weight: n.text10.weight,
258
279
  dataAttributes: _object_spread({
259
280
  "component-name": "Text10"
260
281
  }, e)
261
282
  }), t));
262
- }, oe = (_param)=>{
283
+ }, ce = (_param)=>{
263
284
  var { dataAttributes: e, forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
264
285
  "dataAttributes",
265
286
  "forceMobileSizes"
266
287
  ]);
267
- const { textPresets: o } = (0, _hooks.useTheme)();
268
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(n, _object_spread(_object_spread_props(_object_spread({}, s({
288
+ const { textPresets: n } = (0, _hooks.useTheme)();
289
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s({
269
290
  forceMobileSizes: i,
270
291
  mobileSize: 40,
271
292
  mobileLineHeight: "48px",
272
293
  desktopSize: 56,
273
294
  desktopLineHeight: "64px"
274
295
  })), {
275
- weight: o.text9.weight,
296
+ weight: n.text9.weight,
276
297
  dataAttributes: _object_spread({
277
298
  "component-name": "Text9"
278
299
  }, e)
279
300
  }), t));
280
- }, ne = (_param)=>{
301
+ }, ge = (_param)=>{
281
302
  var { dataAttributes: e, forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
282
303
  "dataAttributes",
283
304
  "forceMobileSizes"
284
305
  ]);
285
- const { textPresets: o } = (0, _hooks.useTheme)();
286
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(n, _object_spread(_object_spread_props(_object_spread({}, s({
306
+ const { textPresets: n } = (0, _hooks.useTheme)();
307
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s({
287
308
  forceMobileSizes: i,
288
309
  mobileSize: 32,
289
310
  mobileLineHeight: "40px",
290
311
  desktopSize: 48,
291
312
  desktopLineHeight: "56px"
292
313
  })), {
293
- weight: o.text8.weight,
314
+ weight: n.text8.weight,
294
315
  dataAttributes: _object_spread({
295
316
  "component-name": "Text8"
296
317
  }, e)
297
318
  }), t));
298
- }, re = (_param)=>{
319
+ }, de = (_param)=>{
299
320
  var { dataAttributes: e, forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
300
321
  "dataAttributes",
301
322
  "forceMobileSizes"
302
323
  ]);
303
- const { textPresets: o } = (0, _hooks.useTheme)();
304
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(n, _object_spread(_object_spread_props(_object_spread({}, s({
324
+ const { textPresets: n } = (0, _hooks.useTheme)();
325
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s({
305
326
  forceMobileSizes: i,
306
327
  mobileSize: 28,
307
328
  mobileLineHeight: "32px",
308
329
  desktopSize: 40,
309
330
  desktopLineHeight: "48px"
310
331
  })), {
311
- weight: o.text7.weight,
332
+ weight: n.text7.weight,
312
333
  dataAttributes: _object_spread({
313
334
  "component-name": "Text7"
314
335
  }, e)
315
336
  }), t));
316
- }, se = (_param)=>{
337
+ }, ue = (_param)=>{
317
338
  var { dataAttributes: e, forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
318
339
  "dataAttributes",
319
340
  "forceMobileSizes"
320
341
  ]);
321
- const { textPresets: o } = (0, _hooks.useTheme)();
322
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(n, _object_spread(_object_spread_props(_object_spread({}, s({
342
+ const { textPresets: n } = (0, _hooks.useTheme)();
343
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s({
323
344
  forceMobileSizes: i,
324
345
  mobileSize: 24,
325
346
  mobileLineHeight: "32px",
326
347
  desktopSize: 32,
327
348
  desktopLineHeight: "40px"
328
349
  })), {
329
- weight: o.text6.weight,
350
+ weight: n.text6.weight,
330
351
  dataAttributes: _object_spread({
331
352
  "component-name": "Text6"
332
353
  }, e)
333
354
  }), t));
334
- }, me = (_param)=>{
355
+ }, be = (_param)=>{
335
356
  var { dataAttributes: e, forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
336
357
  "dataAttributes",
337
358
  "forceMobileSizes"
338
359
  ]);
339
- const { textPresets: o } = (0, _hooks.useTheme)();
340
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(n, _object_spread(_object_spread_props(_object_spread({}, s({
360
+ const { textPresets: n } = (0, _hooks.useTheme)();
361
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s({
341
362
  forceMobileSizes: i,
342
363
  mobileSize: 20,
343
364
  mobileLineHeight: "24px",
344
365
  desktopSize: 28,
345
366
  desktopLineHeight: "32px"
346
367
  })), {
347
- weight: o.text5.weight,
368
+ weight: n.text5.weight,
348
369
  dataAttributes: _object_spread({
349
370
  "component-name": "Text5"
350
371
  }, e)
351
372
  }), t));
352
- }, ae = (_param)=>{
373
+ }, Te = (_param)=>{
353
374
  var { dataAttributes: e, forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
354
375
  "dataAttributes",
355
376
  "forceMobileSizes"
356
377
  ]);
357
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(n, _object_spread(_object_spread_props(_object_spread({}, s({
378
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s({
358
379
  forceMobileSizes: i,
359
380
  mobileSize: 18,
360
381
  mobileLineHeight: "24px",
361
382
  desktopSize: 20,
362
383
  desktopLineHeight: "28px"
363
384
  })), {
364
- weight: l(t),
385
+ weight: h(t),
365
386
  dataAttributes: _object_spread({
366
387
  "component-name": "Text4"
367
388
  }, e)
368
389
  }), t));
369
- }, xe = (_param)=>{
390
+ }, Se = (_param)=>{
370
391
  var { dataAttributes: e, forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
371
392
  "dataAttributes",
372
393
  "forceMobileSizes"
373
394
  ]);
374
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(n, _object_spread(_object_spread_props(_object_spread({}, s({
395
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s({
375
396
  forceMobileSizes: i,
376
397
  mobileSize: 16,
377
398
  mobileLineHeight: "24px",
378
399
  desktopSize: 18,
379
400
  desktopLineHeight: "24px"
380
401
  })), {
381
- weight: l(t),
402
+ weight: h(t),
382
403
  dataAttributes: _object_spread({
383
404
  "component-name": "Text3"
384
405
  }, e)
385
406
  }), t));
386
- }, pe = (_param)=>{
407
+ }, fe = (_param)=>{
387
408
  var { dataAttributes: e, forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
388
409
  "dataAttributes",
389
410
  "forceMobileSizes"
390
411
  ]);
391
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(n, _object_spread(_object_spread_props(_object_spread({}, s({
412
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s({
392
413
  forceMobileSizes: i,
393
414
  mobileSize: 14,
394
415
  mobileLineHeight: "20px",
395
416
  desktopSize: 16,
396
417
  desktopLineHeight: "24px"
397
418
  })), {
398
- weight: l(t),
419
+ weight: h(t),
399
420
  dataAttributes: _object_spread({
400
421
  "component-name": "Text2"
401
422
  }, e)
402
423
  }), t));
403
- }, le = (_param)=>{
424
+ }, ke = (_param)=>{
404
425
  var { dataAttributes: e, forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
405
426
  "dataAttributes",
406
427
  "forceMobileSizes"
407
428
  ]);
408
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(n, _object_spread(_object_spread_props(_object_spread({}, s({
429
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(o, _object_spread(_object_spread_props(_object_spread({}, s({
409
430
  forceMobileSizes: i,
410
431
  mobileSize: 12,
411
432
  mobileLineHeight: "16px",
412
433
  desktopSize: 14,
413
434
  desktopLineHeight: "20px"
414
435
  })), {
415
- weight: l(t),
436
+ weight: h(t),
416
437
  dataAttributes: _object_spread({
417
438
  "component-name": "Text1"
418
439
  }, e)
419
440
  }), t));
420
- }, he = n;
441
+ }, He = o;
@@ -17,7 +17,7 @@ _export(exports, {
17
17
  return x;
18
18
  },
19
19
  useSupportsAspectRatio: function() {
20
- return y;
20
+ return N;
21
21
  }
22
22
  });
23
23
  const _jsxruntime = require("react/jsx-runtime");
@@ -126,7 +126,7 @@ function _object_spread_props(target, source) {
126
126
  }
127
127
  const u = /*#__PURE__*/ _react.createContext(!0), x = (param)=>{
128
128
  let { children: t } = param;
129
- const [r, s] = _react.useState(!0);
129
+ const [o, s] = _react.useState(!0);
130
130
  return (0, _hooks.useIsomorphicLayoutEffect)(()=>{
131
131
  try {
132
132
  CSS.supports("aspect-ratio", "1 / 1") || s(!1);
@@ -134,16 +134,16 @@ const u = /*#__PURE__*/ _react.createContext(!0), x = (param)=>{
134
134
  s(!1);
135
135
  }
136
136
  }, []), /* @__PURE__ */ (0, _jsxruntime.jsx)(u.Provider, {
137
- value: r,
137
+ value: o,
138
138
  children: t
139
139
  });
140
- }, y = ()=>_react.useContext(u), W = (t)=>{
141
- const r = y(), s = typeof t.width != "number" && typeof t.height != "number" && t.aspectRatio !== 0, e = s ? t.aspectRatio : void 0;
140
+ }, N = ()=>_react.useContext(u), W = (t)=>{
141
+ const o = N(), s = typeof t.width != "number" && typeof t.height != "number" && t.aspectRatio !== 0, e = s ? t.aspectRatio : void 0;
142
142
  let i = t.width, a = t.height;
143
143
  var _t_aspectRatio, _t_aspectRatio1;
144
144
  t.width !== void 0 && t.height !== void 0 ? (i = t.width, a = t.height) : typeof t.width == "number" ? a = t.aspectRatio !== 0 ? t.width / ((_t_aspectRatio = t.aspectRatio) !== null && _t_aspectRatio !== void 0 ? _t_aspectRatio : 1) : void 0 : typeof t.height == "number" ? i = t.aspectRatio !== 0 ? t.height * ((_t_aspectRatio1 = t.aspectRatio) !== null && _t_aspectRatio1 !== void 0 ? _t_aspectRatio1 : 1) : void 0 : i = t.width || "100%";
145
145
  var _t_as;
146
- const c = s && !r, n = /*#__PURE__*/ _react.createElement((_t_as = t.as) !== null && _t_as !== void 0 ? _t_as : "div", _object_spread({
146
+ const c = s && !o, r = /*#__PURE__*/ _react.createElement((_t_as = t.as) !== null && _t_as !== void 0 ? _t_as : "div", _object_spread({
147
147
  className: (0, _classnames.default)(t.className, _aspectratiosupportcssmistica.container, {
148
148
  [_aspectratiosupportcssmistica.containerWithWrapper]: c
149
149
  }),
@@ -167,7 +167,7 @@ const u = /*#__PURE__*/ _react.createContext(!0), x = (param)=>{
167
167
  },
168
168
  className: _aspectratiosupportcssmistica.wrapper
169
169
  }, t.dataAttributes), {
170
- children: n
170
+ children: r
171
171
  }));
172
- } else return n;
172
+ } else return r;
173
173
  };
@@ -10,5 +10,5 @@ Object.defineProperty(exports, "redirect", {
10
10
  });
11
11
  const i = function(e) {
12
12
  let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
13
- o ? window.open(e, "_blank") : n ? window.open(e, "_top") : document.location.href = e;
13
+ o ? window.open(e, "_blank") : n ? window.open(e, "_top") : window.location.assign(e);
14
14
  };
package/dist/video.js CHANGED
@@ -137,7 +137,7 @@ const q = {
137
137
  "16:9": 16 / 9,
138
138
  "4:3": 4 / 3
139
139
  }, M = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAAtJREFUGFdjYAACAAAFAAGq1chRAAAAAElFTkSuQmCC", _ = /*#__PURE__*/ _react.forwardRef((_param, A)=>{
140
- var { src: s, poster: u, autoPlay: g = "when-loaded", muted: S = !0, loop: k = !0, preload: x = "none", loadingTimeout: b = 1e4, onLoad: y, onError: h, onPause: w, onPlay: v, aspectRatio: c = "1:1", dataAttributes: U } = _param, n = _object_without_properties(_param, [
140
+ var { src: s, poster: u, autoPlay: g = "when-loaded", muted: N = !0, loop: k = !0, preload: x = "none", loadingTimeout: b = 1e4, onLoad: y, onError: h, onPause: w, onPlay: v, aspectRatio: c = "1:1", dataAttributes: U } = _param, n = _object_without_properties(_param, [
141
141
  "src",
142
142
  "poster",
143
143
  "autoPlay",
@@ -189,7 +189,7 @@ const q = {
189
189
  playsInline: !0,
190
190
  disablePictureInPicture: !0,
191
191
  disableRemotePlayback: !0,
192
- muted: S,
192
+ muted: N,
193
193
  loop: k,
194
194
  className: (0, _classnames.default)(_videocssmistica.video, _imagecssmistica.defaultBorderRadius),
195
195
  preload: x,
package/dist-es/box.js CHANGED
@@ -53,9 +53,9 @@ function _object_spread_props(target, source) {
53
53
  import { jsx as k } from "react/jsx-runtime";
54
54
  import * as p from "react";
55
55
  import v from "classnames";
56
- import { sprinkles as N } from "./sprinkles.css-mistica.js";
57
- import { getPrefixedDataAttributes as z } from "./utils/dom.js";
58
- const A = /*#__PURE__*/ p.forwardRef((param, u)=>{
56
+ import { sprinkles as z } from "./sprinkles.css-mistica.js";
57
+ import { getPrefixedDataAttributes as A } from "./utils/dom.js";
58
+ const C = /*#__PURE__*/ p.forwardRef((param, u)=>{
59
59
  let { className: f, children: i, width: l, padding: b = 0, paddingX: m = b, paddingY: c = b, paddingTop: e = c, paddingBottom: o = c, paddingLeft: r = m, paddingRight: t = m, role: x, dataAttributes: y, "aria-label": j } = param;
60
60
  const S = {
61
61
  paddingTop: e,
@@ -65,7 +65,7 @@ const A = /*#__PURE__*/ p.forwardRef((param, u)=>{
65
65
  };
66
66
  let a = {}, s = "";
67
67
  try {
68
- s = N(S);
68
+ s = z(S);
69
69
  } catch (e1) {
70
70
  a = {
71
71
  paddingTop: typeof e == "object" ? e.mobile : e,
@@ -74,7 +74,7 @@ const A = /*#__PURE__*/ p.forwardRef((param, u)=>{
74
74
  paddingRight: typeof t == "object" ? t.mobile : t
75
75
  };
76
76
  }
77
- return /* @__PURE__ */ k("div", _object_spread_props(_object_spread({}, z(y)), {
77
+ return /* @__PURE__ */ k("div", _object_spread_props(_object_spread({}, A(y)), {
78
78
  role: x,
79
79
  "aria-label": j,
80
80
  ref: u,
@@ -85,5 +85,5 @@ const A = /*#__PURE__*/ p.forwardRef((param, u)=>{
85
85
  } : {}, s ? {} : a),
86
86
  children: i
87
87
  }));
88
- }), w = A;
89
- export { w as default };
88
+ }), q = C;
89
+ export { q as default };
package/dist-es/boxed.js CHANGED
@@ -89,7 +89,7 @@ const w = (e, r)=>e || r ? s({
89
89
  children: e
90
90
  })
91
91
  }));
92
- }), D = /*#__PURE__*/ i.forwardRef((e, r)=>/* @__PURE__ */ a(C, _object_spread_props(_object_spread({}, e), {
92
+ }), N = /*#__PURE__*/ i.forwardRef((e, r)=>/* @__PURE__ */ a(C, _object_spread_props(_object_spread({}, e), {
93
93
  ref: r
94
94
  })));
95
- export { D as Boxed, C as InternalBoxed };
95
+ export { N as Boxed, C as InternalBoxed };
@@ -52,14 +52,14 @@ function _object_spread_props(target, source) {
52
52
  }
53
53
  import { jsxs as o, jsx as i } from "react/jsx-runtime";
54
54
  import c from "classnames";
55
- import { getPrefixedDataAttributes as n } from "./utils/dom.js";
55
+ import { getPrefixedDataAttributes as r } from "./utils/dom.js";
56
56
  import { inline as a, container as h, buttons as f, buttonChild as l } from "./button-group.css-mistica.js";
57
57
  const u = (param)=>{
58
58
  let { primaryButton: s, secondaryButton: t, link: e, dataAttributes: d } = param;
59
- const m = !!s || !!t || !!e, r = !!s && !!t;
59
+ const m = !!s || !!t || !!e, n = !!s && !!t;
60
60
  return m ? /* @__PURE__ */ o("div", _object_spread_props(_object_spread({
61
61
  className: c(a, h)
62
- }, n(d, "ButtonGroup")), {
62
+ }, r(d, "ButtonGroup")), {
63
63
  children: [
64
64
  (s || t) && /* @__PURE__ */ o("div", {
65
65
  className: c(a, f),
@@ -77,7 +77,7 @@ const u = (param)=>{
77
77
  e && /* @__PURE__ */ i("div", {
78
78
  className: l,
79
79
  style: {
80
- width: r ? "100%" : "auto"
80
+ width: n ? "100%" : "auto"
81
81
  },
82
82
  children: e
83
83
  })
@@ -53,14 +53,14 @@ function _object_spread_props(target, source) {
53
53
  }
54
54
  import { jsx as a, jsxs as n, Fragment as o } from "react/jsx-runtime";
55
55
  import * as y from "react";
56
- import { ButtonPrimary as N, ButtonDanger as v, ButtonSecondary as w } from "./button.js";
56
+ import { ButtonPrimary as v, ButtonDanger as w, ButtonSecondary as L } from "./button.js";
57
57
  import g from "classnames";
58
- import { getPrefixedDataAttributes as L } from "./utils/dom.js";
58
+ import { getPrefixedDataAttributes as N } from "./utils/dom.js";
59
59
  import { linkWithTwoButtons as O, link as j, container as A, alignVariant as C, containerWithTwoButtons as D, margins as P } from "./button-layout.css-mistica.js";
60
60
  const p = [
61
- N,
62
61
  v,
63
- w
62
+ w,
63
+ L
64
64
  ], R = (param)=>{
65
65
  let { children: r, primaryButton: e, secondaryButton: s, align: t = "full-width", link: c, withMargins: x = !1, dataAttributes: B } = param;
66
66
  const l = y.Children.toArray(r).sort((b, k)=>{
@@ -84,7 +84,7 @@ const p = [
84
84
  className: g(A, C[t], {
85
85
  [D]: i > 1
86
86
  })
87
- }, L(B, "ButtonLayout")), {
87
+ }, N(B, "ButtonLayout")), {
88
88
  children: t !== "right" || i > 1 ? /* @__PURE__ */ n(o, {
89
89
  children: [
90
90
  u,