@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-es/image.js CHANGED
@@ -80,9 +80,9 @@ function _object_without_properties_loose(source, excluded) {
80
80
  }
81
81
  import { jsx as t, jsxs as R, Fragment as k } from "react/jsx-runtime";
82
82
  import * as r from "react";
83
- import z from "classnames";
84
- import { SkeletonAnimation as F } from "./skeletons.js";
85
- import { AspectRatioContainer as L } from "./utils/aspect-ratio-support.js";
83
+ import F from "classnames";
84
+ import { SkeletonAnimation as L } from "./skeletons.js";
85
+ import { AspectRatioContainer as N } from "./utils/aspect-ratio-support.js";
86
86
  import { getPrefixedDataAttributes as W } from "./utils/dom.js";
87
87
  import { useIsInverseVariant as M } from "./theme-variant-context.js";
88
88
  import { useTheme as V, useAriaId as D } from "./hooks.js";
@@ -163,7 +163,7 @@ const X = (param)=>{
163
163
  "errorFallback"
164
164
  ]);
165
165
  var v;
166
- const h = D(), l = r.useRef(), u = i.circular ? $ : m ? P : U, [I, f] = r.useState(!o), [H, g] = r.useState(!1), C = i.width && i.height ? void 0 : i.circular ? 1 : typeof e == "number" ? e : S[e], b = A && !!(C !== 0 || i.width && i.height), N = B && !!(C !== 0 || i.width && i.height), w = r.useCallback(()=>{
166
+ const h = D(), l = r.useRef(), u = i.circular ? $ : m ? P : U, [I, f] = r.useState(!o), [H, g] = r.useState(!1), C = i.width && i.height ? void 0 : i.circular ? 1 : typeof e == "number" ? e : S[e], b = A && !!(C !== 0 || i.width && i.height), T = B && !!(C !== 0 || i.width && i.height), w = r.useCallback(()=>{
167
167
  f(!1), l.current && (l.current.style.opacity = "1"), setTimeout(()=>{
168
168
  g(!0);
169
169
  }, K), n == null || n();
@@ -180,17 +180,17 @@ const X = (param)=>{
180
180
  }, [
181
181
  w
182
182
  ]);
183
- const T = Q() || !((v = document.getElementById(h)) != null && v.complete), _ = /* @__PURE__ */ R(k, {
183
+ const _ = Q() || !((v = document.getElementById(h)) != null && v.complete), z = /* @__PURE__ */ R(k, {
184
184
  children: [
185
185
  /* @__PURE__ */ t("img", {
186
186
  suppressHydrationWarning: !0,
187
187
  id: h,
188
188
  style: {
189
- opacity: T && b ? 0 : 1
189
+ opacity: _ && b ? 0 : 1
190
190
  },
191
191
  ref: G(l, E),
192
192
  src: o,
193
- className: z(u, Z, {
193
+ className: F(u, Z, {
194
194
  [q]: i.border
195
195
  }, j({
196
196
  position: C !== 0 ? "absolute" : "static"
@@ -215,19 +215,21 @@ const X = (param)=>{
215
215
  style: {
216
216
  position: "absolute",
217
217
  width: "100%",
218
- height: "100%"
218
+ height: "100%",
219
+ overflow: "hidden"
219
220
  },
220
- children: /* @__PURE__ */ t(F, {
221
+ className: u,
222
+ children: /* @__PURE__ */ t(L, {
221
223
  height: (_i_height = i.height) !== null && _i_height !== void 0 ? _i_height : "100%",
222
224
  width: (_i_width = i.width) !== null && _i_width !== void 0 ? _i_width : "100%",
223
225
  children: /* @__PURE__ */ t(J, {
224
226
  height: "100%",
225
227
  width: "100%",
226
- className: u
228
+ noBorderRadius: !0
227
229
  })
228
230
  })
229
231
  }),
230
- I && N && /* @__PURE__ */ t("div", {
232
+ I && T && /* @__PURE__ */ t("div", {
231
233
  style: {
232
234
  position: "absolute",
233
235
  width: "100%",
@@ -239,13 +241,13 @@ const X = (param)=>{
239
241
  className: u
240
242
  })
241
243
  }),
242
- !I && _
244
+ !I && z
243
245
  ]
244
246
  });
245
247
  }), e1 = /*#__PURE__*/ r.forwardRef((e, d)=>{
246
248
  var _e_aspectRatio;
247
249
  const c = e.width && e.height ? void 0 : e.circular ? 1 : typeof e.aspectRatio == "number" ? e.aspectRatio : S[(_e_aspectRatio = e.aspectRatio) !== null && _e_aspectRatio !== void 0 ? _e_aspectRatio : x];
248
- return /* @__PURE__ */ t(L, {
250
+ return /* @__PURE__ */ t(N, {
249
251
  style: {
250
252
  position: "relative"
251
253
  },
package/dist-es/list.js CHANGED
@@ -100,6 +100,7 @@ import { vars as Ne } from "./image.css-mistica.js";
100
100
  import { vars as N } from "./skins/skin-contract.css-mistica.js";
101
101
  import { applyCssVars as Re } from "./utils/css.js";
102
102
  import { IconButton as $, ToggleIconButton as p } from "./icon-button.js";
103
+ import { sprinkles as Ce } from "./sprinkles.css-mistica.js";
103
104
  const ee = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
104
105
  centerY: n
105
106
  }) : n ? /* @__PURE__ */ t("div", {
@@ -109,7 +110,7 @@ const ee = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
109
110
  height: "100%"
110
111
  },
111
112
  children: e
112
- }) : e, Ce = (param)=>{
113
+ }) : e, ke = (param)=>{
113
114
  let { withChevron: e, headline: n, title: r, titleAs: c, titleLinesMax: m, subtitle: g, subtitleLinesMax: v, description: A, descriptionLinesMax: M, detail: f, asset: S, type: x = "basic", badge: E, right: V, extra: l, labelId: W, disabled: o } = param;
114
115
  const j = te(), d = [
115
116
  n,
@@ -239,7 +240,7 @@ const ee = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
239
240
  })
240
241
  ]
241
242
  });
242
- }, ke = (param)=>{
243
+ }, Ie = (param)=>{
243
244
  let { value: e, defaultValue: n, onChange: r } = param;
244
245
  const c = e !== void 0, [m, g] = I.useState(!!n), v = ()=>{
245
246
  c || g(!m), r && r(c ? !e : !m);
@@ -251,10 +252,10 @@ const ee = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
251
252
  m,
252
253
  v
253
254
  ];
254
- }, Ie = (e)=>e.switch !== void 0, Pe = (e)=>e.checkbox !== void 0, Le = (e)=>e.radioValue !== void 0, Ae = (e)=>e.iconButton !== void 0, ne = /*#__PURE__*/ I.forwardRef((e, n)=>{
255
- const r = oe(), c = te(), { asset: m, headline: g, title: v, titleLinesMax: A, subtitle: M, subtitleLinesMax: f, description: S, descriptionLinesMax: x, detail: E, badge: V, role: l, extra: W, dataAttributes: o } = e, j = le(), i = e.disabled || e.radioValue !== void 0 && j.disabled, d = !i && !c, u = !i && c, [G, J] = ke(e.switch || e.checkbox || {}), b = (param)=>{
255
+ }, Pe = (e)=>e.switch !== void 0, Le = (e)=>e.checkbox !== void 0, Ae = (e)=>e.radioValue !== void 0, Ee = (e)=>e.iconButton !== void 0, ne = /*#__PURE__*/ I.forwardRef((e, n)=>{
256
+ const r = oe(), c = te(), { asset: m, headline: g, title: v, titleLinesMax: A, subtitle: M, subtitleLinesMax: f, description: S, descriptionLinesMax: x, detail: E, badge: V, role: l, extra: W, dataAttributes: o } = e, j = le(), i = e.disabled || e.radioValue !== void 0 && j.disabled, d = !i && !c, u = !i && c, [G, J] = Ie(e.switch || e.checkbox || {}), b = (param)=>{
256
257
  let { type: s, right: w, labelId: X } = param;
257
- return /* @__PURE__ */ t(Ce, {
258
+ return /* @__PURE__ */ t(ke, {
258
259
  asset: m,
259
260
  headline: g,
260
261
  title: v,
@@ -283,7 +284,7 @@ const ee = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
283
284
  })
284
285
  });
285
286
  };
286
- if (e.onPress && !Ie(e) && !Pe(e) && !Le(e) && !Ae(e)) return /* @__PURE__ */ t(P, {
287
+ if (e.onPress && !Pe(e) && !Le(e) && !Ae(e) && !Ee(e)) return /* @__PURE__ */ t(P, {
287
288
  ref: n,
288
289
  className: a(k, {
289
290
  [y]: d,
@@ -523,13 +524,16 @@ const ee = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
523
524
  type: "basic"
524
525
  })
525
526
  });
526
- }), _e = /*#__PURE__*/ I.forwardRef((_param, c)=>{
527
+ }), pe = /*#__PURE__*/ I.forwardRef((_param, c)=>{
527
528
  var { dataAttributes: e, role: n = "listitem" } = _param, r = _object_without_properties(_param, [
528
529
  "dataAttributes",
529
530
  "role"
530
531
  ]);
531
532
  return /* @__PURE__ */ t("div", {
532
533
  role: n,
534
+ className: Ce({
535
+ width: "100%"
536
+ }),
533
537
  children: /* @__PURE__ */ t(ne, _object_spread_props(_object_spread({}, r), {
534
538
  ref: c,
535
539
  dataAttributes: _object_spread({
@@ -537,7 +541,7 @@ const ee = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
537
541
  }, e)
538
542
  }))
539
543
  });
540
- }), $e = (param)=>{
544
+ }), et = (param)=>{
541
545
  let { children: e, ariaLabelledby: n, role: r = "list", dataAttributes: c } = param;
542
546
  const m = I.Children.count(e) - 1;
543
547
  return /* @__PURE__ */ t("div", _object_spread_props(_object_spread({
@@ -554,7 +558,7 @@ const ee = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
554
558
  ]
555
559
  }, v))
556
560
  }));
557
- }, pe = /*#__PURE__*/ I.forwardRef((_param, r)=>{
561
+ }, tt = /*#__PURE__*/ I.forwardRef((_param, r)=>{
558
562
  var { dataAttributes: e } = _param, n = _object_without_properties(_param, [
559
563
  "dataAttributes"
560
564
  ]);
@@ -566,7 +570,7 @@ const ee = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
566
570
  }, e),
567
571
  children: /* @__PURE__ */ t(ne, _object_spread({}, n))
568
572
  });
569
- }), et = (param)=>{
573
+ }), nt = (param)=>{
570
574
  let { children: e, ariaLabelledby: n, role: r = "list", dataAttributes: c } = param;
571
575
  return /* @__PURE__ */ t(R, {
572
576
  space: 16,
@@ -578,4 +582,4 @@ const ee = (e, n)=>typeof e == "function" ? e == null ? void 0 : e({
578
582
  children: e
579
583
  });
580
584
  };
581
- export { pe as BoxedRow, et as BoxedRowList, Ce as Content, _e as Row, $e as RowList };
585
+ export { tt as BoxedRow, nt as BoxedRowList, ke as Content, pe as Row, et as RowList };
@@ -54,21 +54,21 @@ function _object_spread_props(target, source) {
54
54
  import { jsx as r } from "react/jsx-runtime";
55
55
  import { Portal as s } from "./portal.js";
56
56
  import { portal as t, hidden as e, progressContainer as i, progress as m } from "./loading-bar.css-mistica.js";
57
- import { getPrefixedDataAttributes as d } from "./utils/dom.js";
58
- import n from "classnames";
57
+ import { getPrefixedDataAttributes as n } from "./utils/dom.js";
58
+ import d from "classnames";
59
59
  const l = (param)=>{
60
60
  let { visible: a, dataAttributes: o } = param;
61
61
  return /* @__PURE__ */ r(s, {
62
- className: n(t, {
62
+ className: d(t, {
63
63
  [e]: !a
64
64
  }),
65
65
  children: /* @__PURE__ */ r("div", _object_spread_props(_object_spread({
66
66
  className: i
67
- }, d(o, "LoadingBar")), {
67
+ }, n(o, "LoadingBar")), {
68
68
  children: /* @__PURE__ */ r("div", {
69
69
  className: m
70
70
  })
71
71
  }))
72
72
  });
73
- }, h = l;
74
- export { h as default };
73
+ }, u = l;
74
+ export { u as default };
@@ -80,7 +80,7 @@ function _object_without_properties_loose(source, excluded) {
80
80
  }
81
81
  import { jsxs as S, jsx as n } from "react/jsx-runtime";
82
82
  import * as o from "react";
83
- import { useSetOverscrollColor as x } from "./overscroll-color-context.js";
83
+ import { useSetOverscrollColor as N } from "./overscroll-color-context.js";
84
84
  import { ThemeVariant as B } from "./theme-variant-context.js";
85
85
  import { vars as f } from "./skins/skin-contract.css-mistica.js";
86
86
  import E from "./responsive-layout.js";
@@ -92,7 +92,7 @@ import T from "classnames";
92
92
  import { sprinkles as $ } from "./sprinkles.css-mistica.js";
93
93
  import { Logo as q } from "./logo.js";
94
94
  import G from "./screen-reader-only.js";
95
- import { useTheme as N } from "./hooks.js";
95
+ import { useTheme as R } from "./hooks.js";
96
96
  import { VIVO_NEW_SKIN as H } from "./skins/constants.js";
97
97
  import { getPrefixedDataAttributes as J } from "./utils/dom.js";
98
98
  const L = (param)=>{
@@ -168,7 +168,7 @@ const L = (param)=>{
168
168
  })
169
169
  }, c)
170
170
  });
171
- }, R = /*#__PURE__*/ o.forwardRef((param, d)=>{
171
+ }, x = /*#__PURE__*/ o.forwardRef((param, d)=>{
172
172
  let { isInverse: e, children: r, isLoading: t = !0, animateText: i, animateBackground: c, onClose: s, dataAttributes: a, title: l, description: u, texts: m = [
173
173
  {
174
174
  title: l,
@@ -213,7 +213,7 @@ const L = (param)=>{
213
213
  s
214
214
  ]);
215
215
  const b = !r;
216
- return x(e ? {
216
+ return N(e ? {
217
217
  topColor: f.colors.backgroundBrandTop
218
218
  } : {}), /* @__PURE__ */ S(B, {
219
219
  isInverse: e,
@@ -258,7 +258,7 @@ const L = (param)=>{
258
258
  })
259
259
  ]
260
260
  });
261
- }), pe = /*#__PURE__*/ o.forwardRef((e, r)=>/* @__PURE__ */ n(R, _object_spread_props(_object_spread({
261
+ }), pe = /*#__PURE__*/ o.forwardRef((e, r)=>/* @__PURE__ */ n(x, _object_spread_props(_object_spread({
262
262
  ref: r
263
263
  }, e), {
264
264
  dataAttributes: _object_spread({
@@ -267,7 +267,7 @@ const L = (param)=>{
267
267
  animateBackground: !0
268
268
  }))), U = (param)=>{
269
269
  let { isLoading: e, onCloseStart: r, onCloseEnd: t } = param;
270
- const { texts: i } = N(), [c, s] = o.useState(!0), a = ()=>{
270
+ const { texts: i } = R(), [c, s] = o.useState(!0), a = ()=>{
271
271
  e || (r == null || r(), s(!1), t == null || t());
272
272
  };
273
273
  return /* @__PURE__ */ S("div", {
@@ -288,7 +288,7 @@ const L = (param)=>{
288
288
  });
289
289
  }, X = /*#__PURE__*/ o.lazy(()=>import("./vivinho-loading-animation/index.js")), Y = (param)=>{
290
290
  let { isLoading: e, onCloseStart: r, onCloseEnd: t } = param;
291
- const { skinName: i } = N();
291
+ const { skinName: i } = R();
292
292
  return i === H ? /* @__PURE__ */ n(o.Suspense, {
293
293
  fallback: null,
294
294
  children: /* @__PURE__ */ n(X, {
@@ -312,7 +312,7 @@ const L = (param)=>{
312
312
  }, d = ()=>{
313
313
  l.current && u.current && (r == null || r());
314
314
  };
315
- return /* @__PURE__ */ n(R, _object_spread_props(_object_spread({
315
+ return /* @__PURE__ */ n(x, _object_spread_props(_object_spread({
316
316
  ref: c,
317
317
  isInverse: !0
318
318
  }, i), {
@@ -1,2 +1,2 @@
1
- const o = "15.2.0";
1
+ const o = "15.3.0";
2
2
  export { o as PACKAGE_VERSION };
@@ -51,10 +51,10 @@ function _object_spread_props(target, source) {
51
51
  }
52
52
  return target;
53
53
  }
54
- import { jsxs as N, jsx as n } from "react/jsx-runtime";
55
- import $ from "classnames";
54
+ import { jsxs as $, jsx as n } from "react/jsx-runtime";
55
+ import D from "classnames";
56
56
  import * as m from "react";
57
- import H from "./inline.js";
57
+ import N from "./inline.js";
58
58
  import { input as B } from "./text-field-base.css-mistica.js";
59
59
  import { fieldContainer as E, disabled as L, readOnlyField as j, focusedField as O, field as W, input as q, passwordInput as z, pinInputLineHeight as h, passwordDot as K } from "./pin-field.css-mistica.js";
60
60
  import { useAriaId as M, useTheme as _ } from "./hooks.js";
@@ -115,7 +115,7 @@ const x = (param)=>{
115
115
  l,
116
116
  d
117
117
  ]);
118
- const D = (s)=>(e)=>{
118
+ const H = (s)=>(e)=>{
119
119
  var k;
120
120
  const r = e.target.value;
121
121
  if (r === "") return;
@@ -131,13 +131,13 @@ const x = (param)=>{
131
131
  c(P);
132
132
  }), v !== s && v <= l - 1 && ((k = a[v]) == null || k.focus()));
133
133
  };
134
- return /* @__PURE__ */ n(H, {
134
+ return /* @__PURE__ */ n(N, {
135
135
  space: 8,
136
136
  children: Array.from({
137
137
  length: l
138
138
  }).map((s, e)=>/* @__PURE__ */ {
139
139
  var _t_e;
140
- return N("div", {
140
+ return $("div", {
141
141
  className: y ? j : e === w ? O : W,
142
142
  children: [
143
143
  /* @__PURE__ */ n(J, {
@@ -156,7 +156,7 @@ const x = (param)=>{
156
156
  inputRef: (r)=>{
157
157
  a[e] = r, e === 0 && A(r);
158
158
  },
159
- className: $(B, q, {
159
+ className: D(B, q, {
160
160
  [z]: f
161
161
  }),
162
162
  style: {
@@ -170,7 +170,7 @@ const x = (param)=>{
170
170
  readOnly: y,
171
171
  autoComplete: d ? "one-time-code" : void 0,
172
172
  value: (_t_e = t[e]) !== null && _t_e !== void 0 ? _t_e : "",
173
- onChange: D(e),
173
+ onChange: H(e),
174
174
  onKeyDown: (r)=>{
175
175
  switch(r.key){
176
176
  case "Backspace":
@@ -219,10 +219,10 @@ const x = (param)=>{
219
219
  onChangeValue: R,
220
220
  onChange: S
221
221
  }), t = M();
222
- return /* @__PURE__ */ N("div", _object_spread_props(_object_spread({
222
+ return /* @__PURE__ */ $("div", _object_spread_props(_object_spread({
223
223
  role: "group",
224
224
  "aria-labelledby": I !== null && I !== void 0 ? I : t,
225
- className: $(E, {
225
+ className: D(E, {
226
226
  [L]: g
227
227
  })
228
228
  }, U(a, "PinField")), {
@@ -55,9 +55,9 @@ import { jsx as t } from "react/jsx-runtime";
55
55
  import * as b from "react";
56
56
  import { useTheme as f } from "./hooks.js";
57
57
  import { vars as h } from "./skins/skin-contract.css-mistica.js";
58
- import { barBackground as B, bar as S, inverse as $, normal as x, progressBarSteppedContainer as A } from "./progress-bar.css-mistica.js";
58
+ import { barBackground as B, bar as S, inverse as $, normal as x, progressBarSteppedContainer as N } from "./progress-bar.css-mistica.js";
59
59
  import { getPrefixedDataAttributes as C } from "./utils/dom.js";
60
- import N from "classnames";
60
+ import k from "classnames";
61
61
  import P from "./inline.js";
62
62
  const E = (param)=>{
63
63
  let { progressPercent: r, color: o, "aria-label": d, "aria-labelledby": l, dataAttributes: i, reverse: n = !1 } = param;
@@ -71,7 +71,7 @@ const E = (param)=>{
71
71
  "aria-label": s,
72
72
  "aria-labelledby": l,
73
73
  children: /* @__PURE__ */ t("div", {
74
- className: N(S, n ? $ : x),
74
+ className: k(S, n ? $ : x),
75
75
  style: {
76
76
  maxWidth: `${a}%`,
77
77
  backgroundColor: o !== null && o !== void 0 ? o : h.colors.controlActivated
@@ -80,16 +80,16 @@ const E = (param)=>{
80
80
  }));
81
81
  }, R = (param)=>{
82
82
  let { steps: r, currentStep: o = 0, color: d, dataAttributes: l, "aria-label": i, "aria-labelledby": n } = param;
83
- const { texts: c } = f(), [a, p] = b.useState(Math.ceil(o)), [s, k] = b.useState(!1);
83
+ const { texts: c } = f(), [a, p] = b.useState(Math.ceil(o)), [s, y] = b.useState(!1);
84
84
  b.useEffect(()=>{
85
85
  const e = Math.ceil(o);
86
- a !== e && (k(e < a), p(e));
86
+ a !== e && (y(e < a), p(e));
87
87
  }, [
88
88
  o,
89
89
  r,
90
90
  a
91
91
  ]);
92
- const y = n ? void 0 : (()=>{
92
+ const A = n ? void 0 : (()=>{
93
93
  const e = c.progressBarStepLabel.replace("1$s", String(a)).replace("2$s", String(r));
94
94
  return i ? `${i}, ${e.toLowerCase()}` : e;
95
95
  })();
@@ -98,9 +98,9 @@ const E = (param)=>{
98
98
  "aria-valuenow": a,
99
99
  "aria-valuemin": 0,
100
100
  "aria-valuemax": r,
101
- "aria-label": y,
101
+ "aria-label": A,
102
102
  "aria-labelledby": n,
103
- className: A,
103
+ className: N,
104
104
  children: /* @__PURE__ */ t(P, {
105
105
  space: 8,
106
106
  fullWidth: !0,
@@ -112,7 +112,7 @@ const E = (param)=>{
112
112
  className: B,
113
113
  "aria-hidden": "true",
114
114
  children: (u || g) && /* @__PURE__ */ t("div", {
115
- className: N(S, {
115
+ className: k(S, {
116
116
  [x]: v && !s,
117
117
  [$]: g && s
118
118
  }),
@@ -87,16 +87,16 @@ import { Text3 as k } from "./text.js";
87
87
  import j from "./inline.js";
88
88
  import P from "classnames";
89
89
  import { useAriaId as F, useTheme as K } from "./hooks.js";
90
- import { getPrefixedDataAttributes as A } from "./utils/dom.js";
91
- import { outerCircleVariants as I, outerCircleCheckedVariants as $, disabled as N, innerCircle as H, innerCircleChecked as L, radioButtonContainerDisabled as U, radioButton as W } from "./radio-button.css-mistica.js";
92
- const D = /*#__PURE__*/ i.createContext({
90
+ import { getPrefixedDataAttributes as D } from "./utils/dom.js";
91
+ import { outerCircleVariants as I, outerCircleCheckedVariants as $, disabled as A, innerCircle as H, innerCircleChecked as L, radioButtonContainerDisabled as U, radioButton as W } from "./radio-button.css-mistica.js";
92
+ const N = /*#__PURE__*/ i.createContext({
93
93
  disabled: !1,
94
94
  selectedValue: null,
95
95
  focusableValue: null,
96
96
  select: ()=>{},
97
97
  selectNext: ()=>{},
98
98
  selectPrev: ()=>{}
99
- }), z = ()=>i.useContext(D), J = (_param)=>{
99
+ }), z = ()=>i.useContext(N), J = (_param)=>{
100
100
  var { value: e, id: s, dataAttributes: C, "aria-labelledby": R } = _param, d = _object_without_properties(_param, [
101
101
  "value",
102
102
  "id",
@@ -120,7 +120,7 @@ const D = /*#__PURE__*/ i.createContext({
120
120
  }, a = /* @__PURE__ */ n("div", {
121
121
  className: P(h ? I.ios : I.default, {
122
122
  [$[h ? "ios" : "default"]]: c,
123
- [N]: l
123
+ [A]: l
124
124
  }),
125
125
  children: !h && /* @__PURE__ */ n("div", {
126
126
  className: P(H, {
@@ -143,7 +143,7 @@ const D = /*#__PURE__*/ i.createContext({
143
143
  },
144
144
  onKeyDown: l ? void 0 : t,
145
145
  className: l ? U : W
146
- }, A(C, "RadioButton")), {
146
+ }, D(C, "RadioButton")), {
147
147
  children: d.render ? d.render({
148
148
  controlElement: a,
149
149
  disabled: !!l,
@@ -168,7 +168,7 @@ const D = /*#__PURE__*/ i.createContext({
168
168
  as: "div",
169
169
  id: m,
170
170
  children: /* @__PURE__ */ n("span", {
171
- className: l ? N : "",
171
+ className: l ? A : "",
172
172
  children: d.children
173
173
  })
174
174
  })
@@ -219,8 +219,8 @@ const D = /*#__PURE__*/ i.createContext({
219
219
  ref: O(r, d),
220
220
  role: "radiogroup",
221
221
  "aria-labelledby": e["aria-labelledby"]
222
- }, A(e.dataAttributes, "RadioGroup")), {
223
- children: /* @__PURE__ */ n(D.Provider, {
222
+ }, D(e.dataAttributes, "RadioGroup")), {
223
+ children: /* @__PURE__ */ n(N.Provider, {
224
224
  value: {
225
225
  disabled: l,
226
226
  selectedValue: p !== null && p !== void 0 ? p : C,
@@ -1,7 +1,7 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./responsive-layout.css.ts.vanilla.css-mistica.js";
3
- var e = {
3
+ var e = 16, r = 40, n = 32, v = {
4
4
  inverse: "_1y2v1nf3t",
5
5
  alternative: "_1y2v1nf3y"
6
- }, n = "_17lofg74", r = "_17lofg73", t = "_17lofg7a _1y2v1nfhx", v = "_17lofg75", i = "_17lofg78", f = "_17lofg72 _1y2v1nfhx";
7
- export { e as backgroundVariant, n as expandedResponsiveLayoutContainerDesktop, r as expandedResponsiveLayoutContainerMobile, t as fullWidth, v as fullwidthContainer, i as responsiveLayout, f as responsiveLayoutContainer };
6
+ }, t = "_17lofg74", _ = "_17lofg73", i = "_17lofg7a _1y2v1nfhx", f = "_17lofg75", l = "_17lofg78", p = "_17lofg72 _1y2v1nfhx";
7
+ export { e as MOBILE_SIDE_MARGIN, r as SMALL_DESKTOP_SIDE_MARGIN, n as TABLET_SIDE_MARGIN, v as backgroundVariant, t as expandedResponsiveLayoutContainerDesktop, _ as expandedResponsiveLayoutContainerMobile, i as fullWidth, f as fullwidthContainer, l as responsiveLayout, p as responsiveLayoutContainer };
@@ -79,37 +79,37 @@ function _object_without_properties_loose(source, excluded) {
79
79
  return target;
80
80
  }
81
81
  import { jsx as a } from "react/jsx-runtime";
82
- import m from "classnames";
83
- import { getPrefixedDataAttributes as v } from "./utils/dom.js";
84
- import { fullwidthContainer as l, responsiveLayoutContainer as c, backgroundVariant as f, expandedResponsiveLayoutContainerMobile as y, expandedResponsiveLayoutContainerDesktop as L, fullWidth as x, responsiveLayout as R } from "./responsive-layout.css-mistica.js";
85
- import { useThemeVariant as V, ThemeVariant as h } from "./theme-variant-context.js";
86
- const b = (param)=>{
87
- let { children: o, isInverse: n = !1, variant: r, backgroundColor: s, className: p, fullWidth: e, dataAttributes: u, shouldExpandWhenNested: i = !1 } = param;
88
- const d = V(), t = r || n && "inverse" || void 0;
89
- return /* @__PURE__ */ a(h, {
90
- variant: t !== null && t !== void 0 ? t : d,
82
+ import r from "classnames";
83
+ import { getPrefixedDataAttributes as l } from "./utils/dom.js";
84
+ import { fullwidthContainer as c, responsiveLayoutContainer as f, backgroundVariant as y, expandedResponsiveLayoutContainerMobile as L, expandedResponsiveLayoutContainerDesktop as x, fullWidth as R, responsiveLayout as V } from "./responsive-layout.css-mistica.js";
85
+ import { useThemeVariant as h, ThemeVariant as b } from "./theme-variant-context.js";
86
+ const C = (param)=>{
87
+ let { children: n, isInverse: o = !1, variant: p, backgroundColor: s, className: u, fullWidth: e, dataAttributes: d, shouldExpandWhenNested: i = !1, innerDivClassName: m } = param;
88
+ const v = h(), t = p || o && "inverse" || void 0;
89
+ return /* @__PURE__ */ a(b, {
90
+ variant: t !== null && t !== void 0 ? t : v,
91
91
  children: /* @__PURE__ */ a("div", _object_spread_props(_object_spread({
92
- className: m(e ? l : c, p, t && t !== "default" && f[t], {
93
- [y]: i === !0 && !e,
94
- [L]: i && !e
92
+ className: r(e ? c : f, u, t && t !== "default" && y[t], {
93
+ [L]: i === !0 && !e,
94
+ [x]: i && !e
95
95
  }),
96
96
  style: s ? {
97
97
  background: s
98
98
  } : void 0
99
- }, v(u)), {
99
+ }, l(d)), {
100
100
  children: /* @__PURE__ */ a("div", {
101
- className: e ? x : R,
102
- children: o
101
+ className: r(e ? R : V, m),
102
+ children: n
103
103
  })
104
104
  }))
105
105
  });
106
- }, C = (_param)=>{
107
- var { children: o } = _param, n = _object_without_properties(_param, [
106
+ }, g = (_param)=>{
107
+ var { children: n } = _param, o = _object_without_properties(_param, [
108
108
  "children"
109
109
  ]);
110
- return /* @__PURE__ */ a(b, _object_spread_props(_object_spread({}, n), {
110
+ return /* @__PURE__ */ a(C, _object_spread_props(_object_spread({}, o), {
111
111
  shouldExpandWhenNested: !0,
112
- children: o
112
+ children: n
113
113
  }));
114
- }, j = C;
115
- export { b as InternalResponsiveLayout, j as default };
114
+ }, w = g;
115
+ export { C as InternalResponsiveLayout, w as default };