@telefonica/mistica 14.34.0 → 14.35.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 (156) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/avatar.css-mistica.js +1 -1
  3. package/dist/button.css-mistica.js +7 -7
  4. package/dist/callout.css-mistica.js +1 -1
  5. package/dist/callout.js +17 -12
  6. package/dist/card.js +277 -244
  7. package/dist/carousel.css-mistica.js +5 -5
  8. package/dist/carousel.js +54 -52
  9. package/dist/checkbox.js +18 -18
  10. package/dist/community/advanced-data-card.css-mistica.js +3 -3
  11. package/dist/community/advanced-data-card.js +57 -50
  12. package/dist/community/blocks.js +42 -35
  13. package/dist/counter.css-mistica.js +1 -1
  14. package/dist/cvv-field.js +1 -1
  15. package/dist/dialog.css-mistica.js +3 -3
  16. package/dist/dialog.js +2 -2
  17. package/dist/hero.js +34 -30
  18. package/dist/hooks.d.ts +12 -1
  19. package/dist/hooks.js +85 -48
  20. package/dist/image.css-mistica.js +7 -2
  21. package/dist/image.css.d.ts +3 -0
  22. package/dist/image.d.ts +1 -7
  23. package/dist/image.js +55 -66
  24. package/dist/list.css-mistica.js +1 -1
  25. package/dist/list.js +80 -75
  26. package/dist/loading-bar.css-mistica.js +6 -6
  27. package/dist/maybe-dismissable.css-mistica.js +1 -1
  28. package/dist/menu.js +32 -32
  29. package/dist/navigation-bar.css-mistica.js +10 -10
  30. package/dist/overlay.js +10 -10
  31. package/dist/package-version.js +1 -1
  32. package/dist/pin-field.css-mistica.js +3 -3
  33. package/dist/popover.css-mistica.js +4 -4
  34. package/dist/radio-button.css-mistica.js +5 -5
  35. package/dist/radio-button.js +7 -7
  36. package/dist/screen-reader-only.css-mistica.js +1 -1
  37. package/dist/select.css-mistica.js +7 -7
  38. package/dist/select.js +65 -53
  39. package/dist/sheet.css-mistica.js +8 -8
  40. package/dist/skeletons.d.ts +9 -1
  41. package/dist/skeletons.js +3 -0
  42. package/dist/skins/blau.js +2 -1
  43. package/dist/skins/defaults.js +2 -1
  44. package/dist/skins/movistar-legacy.js +2 -1
  45. package/dist/skins/movistar.js +2 -1
  46. package/dist/skins/o2.js +2 -1
  47. package/dist/skins/skin-contract.css-mistica.js +2 -1
  48. package/dist/skins/skin-contract.css.d.ts +1 -0
  49. package/dist/skins/telefonica.js +2 -1
  50. package/dist/skins/types/index.d.ts +1 -0
  51. package/dist/skins/vivo-new.js +2 -1
  52. package/dist/skins/vivo.js +2 -1
  53. package/dist/slider.css-mistica.js +19 -19
  54. package/dist/slider.css.d.ts +8 -8
  55. package/dist/slider.d.ts +28 -8
  56. package/dist/slider.js +226 -106
  57. package/dist/snackbar.css-mistica.js +5 -5
  58. package/dist/sprinkles.css-mistica.js +71 -68
  59. package/dist/stacking-group.js +31 -24
  60. package/dist/stepper.css-mistica.js +3 -3
  61. package/dist/switch-component.css-mistica.js +17 -17
  62. package/dist/switch-component.js +12 -12
  63. package/dist/tab-focus.js +12 -12
  64. package/dist/tabs.css-mistica.js +1 -1
  65. package/dist/text-field-base.css-mistica.js +1 -1
  66. package/dist/text-field-components.css-mistica.js +7 -7
  67. package/dist/text-link.css-mistica.js +3 -3
  68. package/dist/theme-context-provider.js +39 -36
  69. package/dist/tooltip-context-provider.d.ts +14 -0
  70. package/dist/tooltip-context-provider.js +90 -0
  71. package/dist/tooltip.css-mistica.js +25 -54
  72. package/dist/tooltip.css.d.ts +19 -26
  73. package/dist/tooltip.d.ts +15 -1
  74. package/dist/tooltip.js +255 -207
  75. package/dist/touchable.css-mistica.js +1 -1
  76. package/dist/touchable.js +8 -8
  77. package/dist/utils/aspect-ratio-support.css-mistica.js +2 -2
  78. package/dist/utils/environment.d.ts +1 -0
  79. package/dist/utils/environment.js +4 -1
  80. package/dist/utils/keys.d.ts +8 -0
  81. package/dist/utils/{key-codes.js → keys.js} +6 -6
  82. package/dist/video.css-mistica.js +1 -1
  83. package/dist/video.js +33 -31
  84. package/dist-es/avatar.css-mistica.js +1 -1
  85. package/dist-es/button.css-mistica.js +7 -7
  86. package/dist-es/callout.css-mistica.js +1 -1
  87. package/dist-es/callout.js +33 -28
  88. package/dist-es/card.js +416 -383
  89. package/dist-es/carousel.css-mistica.js +2 -2
  90. package/dist-es/carousel.js +84 -82
  91. package/dist-es/checkbox.js +18 -18
  92. package/dist-es/community/advanced-data-card.css-mistica.js +2 -2
  93. package/dist-es/community/advanced-data-card.js +83 -76
  94. package/dist-es/community/blocks.js +77 -70
  95. package/dist-es/counter.css-mistica.js +1 -1
  96. package/dist-es/cvv-field.js +1 -1
  97. package/dist-es/dialog.css-mistica.js +3 -3
  98. package/dist-es/dialog.js +2 -2
  99. package/dist-es/hero.js +69 -65
  100. package/dist-es/hooks.js +83 -49
  101. package/dist-es/image.css-mistica.js +4 -2
  102. package/dist-es/image.js +74 -79
  103. package/dist-es/list.css-mistica.js +1 -1
  104. package/dist-es/list.js +116 -111
  105. package/dist-es/loading-bar.css-mistica.js +2 -2
  106. package/dist-es/maybe-dismissable.css-mistica.js +1 -1
  107. package/dist-es/menu.js +41 -41
  108. package/dist-es/navigation-bar.css-mistica.js +6 -6
  109. package/dist-es/overlay.js +14 -14
  110. package/dist-es/package-version.js +1 -1
  111. package/dist-es/pin-field.css-mistica.js +2 -2
  112. package/dist-es/popover.css-mistica.js +2 -2
  113. package/dist-es/radio-button.css-mistica.js +4 -4
  114. package/dist-es/radio-button.js +2 -2
  115. package/dist-es/screen-reader-only.css-mistica.js +1 -1
  116. package/dist-es/select.css-mistica.js +7 -7
  117. package/dist-es/select.js +89 -77
  118. package/dist-es/sheet.css-mistica.js +2 -2
  119. package/dist-es/skeletons.js +1 -1
  120. package/dist-es/skins/blau.js +2 -1
  121. package/dist-es/skins/defaults.js +2 -1
  122. package/dist-es/skins/movistar-legacy.js +2 -1
  123. package/dist-es/skins/movistar.js +2 -1
  124. package/dist-es/skins/o2.js +2 -1
  125. package/dist-es/skins/skin-contract.css-mistica.js +2 -1
  126. package/dist-es/skins/telefonica.js +2 -1
  127. package/dist-es/skins/vivo-new.js +2 -1
  128. package/dist-es/skins/vivo.js +2 -1
  129. package/dist-es/slider.css-mistica.js +2 -8
  130. package/dist-es/slider.js +231 -111
  131. package/dist-es/snackbar.css-mistica.js +4 -4
  132. package/dist-es/sprinkles.css-mistica.js +71 -68
  133. package/dist-es/stacking-group.js +37 -30
  134. package/dist-es/stepper.css-mistica.js +2 -2
  135. package/dist-es/style.css +1 -1
  136. package/dist-es/switch-component.css-mistica.js +13 -13
  137. package/dist-es/switch-component.js +14 -14
  138. package/dist-es/tab-focus.js +14 -14
  139. package/dist-es/tabs.css-mistica.js +1 -1
  140. package/dist-es/text-field-base.css-mistica.js +1 -1
  141. package/dist-es/text-field-components.css-mistica.js +2 -2
  142. package/dist-es/text-link.css-mistica.js +3 -3
  143. package/dist-es/theme-context-provider.js +53 -50
  144. package/dist-es/tooltip-context-provider.js +29 -0
  145. package/dist-es/tooltip.css-mistica.js +16 -9
  146. package/dist-es/tooltip.js +264 -216
  147. package/dist-es/touchable.css-mistica.js +1 -1
  148. package/dist-es/touchable.js +8 -8
  149. package/dist-es/utils/aspect-ratio-support.css-mistica.js +2 -2
  150. package/dist-es/utils/environment.js +2 -2
  151. package/dist-es/utils/keys.js +2 -0
  152. package/dist-es/video.css-mistica.js +1 -1
  153. package/dist-es/video.js +41 -39
  154. package/package.json +1 -1
  155. package/dist/utils/key-codes.d.ts +0 -8
  156. package/dist-es/utils/key-codes.js +0 -2
@@ -52,16 +52,16 @@ _export(exports, {
52
52
  return p;
53
53
  },
54
54
  slideshowContainer: function() {
55
- return w;
55
+ return m;
56
56
  },
57
57
  slideshowItem: function() {
58
- return m;
58
+ return w;
59
59
  },
60
60
  slideshowNextArrowButton: function() {
61
- return h;
61
+ return P;
62
62
  },
63
63
  slideshowPrevArrowButton: function() {
64
- return P;
64
+ return h;
65
65
  },
66
66
  vars: function() {
67
67
  return j;
@@ -71,7 +71,7 @@ require("./sprinkles.css.ts.vanilla.css-mistica.js");
71
71
  require("./responsive-layout.css.ts.vanilla.css-mistica.js");
72
72
  require("./grid-layout.css.ts.vanilla.css-mistica.js");
73
73
  require("./carousel.css.ts.vanilla.css-mistica.js");
74
- var f = "_1abcu71 _1y2v1nfc2 _1y2v1nfci _1y2v1nfdt _1y2v1nf46", b = "_1abcu72 _1abcu71 _1y2v1nfc2 _1y2v1nfci _1y2v1nfdt _1y2v1nf47", y = "_1abcu72 _1abcu71 _1y2v1nfc2 _1y2v1nfci _1y2v1nfdt _1y2v1nf4o", r = "_1abcu75 _1abcu71 _1y2v1nfc2 _1y2v1nfci _1y2v1nfdt", c = "_1abcu7m _1abcu7b _1y2v1nfba _1y2v1nfcu", e = "_1y2v1nfba _1y2v1nfbj", u = "_1y2v1nfb3 _1y2v1nfd7 _1y2v1nfb4", t = "_1abcu7p", o = "_1abcu7t _1abcu7r _1abcu7d _1y2v1nfba _1y2v1nfbp _1y2v1nfbj _1y2v1nfdt _1y2v1nf33 _1y2v1nfc8 _1y2v1nfco _1y2v1nfdr _1y2v1nfb5", s = "_1abcu7s _1abcu7r _1abcu7d _1y2v1nfba _1y2v1nfbp _1y2v1nfbj _1y2v1nfdt _1y2v1nf33 _1y2v1nfc8 _1y2v1nfco _1y2v1nfdr _1y2v1nfb5", l = "_1abcu7n", i = "_1abcu7o", d = "_1abcu7w _1abcu7b _1y2v1nfba _1y2v1nfcu", p = "_1abcu714 _1y2v1nfb5 _1y2v1nffw _1y2v1nfba _1y2v1nfbj _1y2v1nfbx", w = "_1y2v1nfb4", m = "_1abcu7y _1y2v1nfbx _1y2v1nfbs", h = "_1abcu712 _1abcu7r _1abcu7d _1y2v1nfba _1y2v1nfbp _1y2v1nfbj _1y2v1nfdt _1y2v1nf33 _1y2v1nfc8 _1y2v1nfco _1y2v1nfdr _1y2v1nfb5 _1y2v1nffh", P = "_1abcu710 _1abcu7r _1abcu7d _1y2v1nfba _1y2v1nfbp _1y2v1nfbj _1y2v1nfdt _1y2v1nf33 _1y2v1nfc8 _1y2v1nfco _1y2v1nfdr _1y2v1nfb5 _1y2v1nff2", j = {
74
+ var f = "_1abcu71 _1y2v1nfc2 _1y2v1nfci _1y2v1nfdt _1y2v1nf46", b = "_1abcu72 _1abcu71 _1y2v1nfc2 _1y2v1nfci _1y2v1nfdt _1y2v1nf47", y = "_1abcu72 _1abcu71 _1y2v1nfc2 _1y2v1nfci _1y2v1nfdt _1y2v1nf4o", r = "_1abcu75 _1abcu71 _1y2v1nfc2 _1y2v1nfci _1y2v1nfdt", c = "_1abcu7m _1abcu7b _1y2v1nfba _1y2v1nfcu", e = "_1y2v1nfba _1y2v1nfbj", u = "_1y2v1nfb3 _1y2v1nfd7 _1y2v1nfb4", t = "_1abcu7p", o = "_1abcu7t _1abcu7r _1abcu7d _1y2v1nfba _1y2v1nfbp _1y2v1nfbj _1y2v1nfdt _1y2v1nf33 _1y2v1nfc8 _1y2v1nfco _1y2v1nfdr _1y2v1nfb5", s = "_1abcu7s _1abcu7r _1abcu7d _1y2v1nfba _1y2v1nfbp _1y2v1nfbj _1y2v1nfdt _1y2v1nf33 _1y2v1nfc8 _1y2v1nfco _1y2v1nfdr _1y2v1nfb5", l = "_1abcu7n", i = "_1abcu7o", d = "_1abcu7w _1abcu7b _1y2v1nfba _1y2v1nfcu", p = "_1abcu714 _1y2v1nfb5 _1y2v1nffx _1y2v1nfba _1y2v1nfbj _1y2v1nfbx", m = "_1y2v1nfb4", w = "_1abcu7y _1y2v1nfbx _1y2v1nfbs", P = "_1abcu712 _1abcu7r _1abcu7d _1y2v1nfba _1y2v1nfbp _1y2v1nfbj _1y2v1nfdt _1y2v1nf33 _1y2v1nfc8 _1y2v1nfco _1y2v1nfdr _1y2v1nfb5 _1y2v1nffi", h = "_1abcu710 _1abcu7r _1abcu7d _1y2v1nfba _1y2v1nfbp _1y2v1nfbj _1y2v1nfdt _1y2v1nf33 _1y2v1nfc8 _1y2v1nfco _1y2v1nfdr _1y2v1nfb5 _1y2v1nff3", j = {
75
75
  itemsPerPageMobile: "var(--_1abcu7g)",
76
76
  itemsPerPageTablet: "var(--_1abcu7h)",
77
77
  itemsPerPageDesktop: "var(--_1abcu7i)",
package/dist/carousel.js CHANGED
@@ -20,7 +20,7 @@ _export(exports, {
20
20
  return et;
21
21
  },
22
22
  PageBullets: function() {
23
- return ie;
23
+ return ae;
24
24
  },
25
25
  Slideshow: function() {
26
26
  return wt;
@@ -39,11 +39,11 @@ const _stack = /*#__PURE__*/ _interop_require_default(require("./stack.js"));
39
39
  const _touchable = require("./touchable.js");
40
40
  const _classnames = /*#__PURE__*/ _interop_require_default(require("classnames"));
41
41
  const _themevariantcontext = require("./theme-variant-context.js");
42
- const _image = require("./image.js");
43
42
  const _dom = require("./utils/dom.js");
44
43
  const _platform = require("./utils/platform.js");
45
44
  const _documentvisibility = require("./utils/document-visibility.js");
46
45
  const _carouselcssmistica = require("./carousel.css-mistica.js");
46
+ const _imagecssmistica = require("./image.css-mistica.js");
47
47
  const _sprinklescssmistica = require("./sprinkles.css-mistica.js");
48
48
  const _desktopcontainertypecontext = require("./desktop-container-type-context.js");
49
49
  const _constants = require("./skins/constants.js");
@@ -146,13 +146,13 @@ function _object_spread_props(target, source) {
146
146
  }
147
147
  return target;
148
148
  }
149
- const ce = (e, r)=>{
149
+ const ie = (e, r)=>{
150
150
  const t = (0, _documentvisibility.useDocumentVisibility)();
151
151
  return (0, _hooks.useIsInViewport)(r, !1) && t && !!e;
152
- }, ie = (param)=>{
152
+ }, ae = (param)=>{
153
153
  let { currentIndex: e, numPages: r, onPress: t } = param;
154
- const o = (0, _themevariantcontext.useIsInverseVariant)(), { isDesktopOrBigger: f } = (0, _hooks.useScreenSize)(), m = (b)=>{
155
- const d = b === e;
154
+ const o = (0, _themevariantcontext.useIsInverseVariant)(), { isDesktopOrBigger: f } = (0, _hooks.useScreenSize)(), m = (v)=>{
155
+ const d = v === e;
156
156
  return o ? d ? _carouselcssmistica.bulletActiveInverse : _carouselcssmistica.bulletInverse : d ? _carouselcssmistica.bulletActive : _carouselcssmistica.bullet;
157
157
  };
158
158
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(_inline.default, {
@@ -163,7 +163,7 @@ const ce = (e, r)=>{
163
163
  },
164
164
  children: Array.from({
165
165
  length: r
166
- }, (b, d)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, {
166
+ }, (v, d)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, {
167
167
  className: (0, _sprinklescssmistica.sprinkles)({
168
168
  display: "block",
169
169
  padding: 0,
@@ -177,7 +177,7 @@ const ce = (e, r)=>{
177
177
  })
178
178
  }, d))
179
179
  });
180
- }, $ = (e, r, t)=>t ? typeof t == "number" ? t : t[e] || r[e] : r[e], Ze = (e, r)=>{
180
+ }, Z = (e, r, t)=>t ? typeof t == "number" ? t : t[e] || r[e] : r[e], Xe = (e, r)=>{
181
181
  const t = {
182
182
  mobile: 1,
183
183
  tablet: 2,
@@ -188,14 +188,14 @@ const ce = (e, r)=>{
188
188
  }
189
189
  };
190
190
  if (!r) return _object_spread_props(_object_spread({}, t), {
191
- desktop: $(e, t.desktop)
191
+ desktop: Z(e, t.desktop)
192
192
  });
193
193
  if (typeof r == "number") return {
194
194
  mobile: r,
195
195
  tablet: r,
196
196
  desktop: r
197
197
  };
198
- const o = $(e, t.desktop, r.desktop);
198
+ const o = Z(e, t.desktop, r.desktop);
199
199
  return _object_spread_props(_object_spread({}, t, r), {
200
200
  desktop: o
201
201
  });
@@ -204,34 +204,34 @@ const ce = (e, r)=>{
204
204
  const t = Math.ceil(e.length / r), o = [];
205
205
  for(let f = 0; f < e.length; f += t)o.push(e[f]);
206
206
  return o[o.length - 1] = e[e.length - t], o;
207
- }, $e = (e, r)=>{
207
+ }, Ze = (e, r)=>{
208
208
  const t = [];
209
209
  for(let o = 0; o < r.length; o++)o === 0 ? t.push(r[0]) : t.push((r[o] + r[o - 1]) / 2);
210
210
  for(let o = t.length - 1; o >= 0; o--)if (e - t[o] >= -1) return o;
211
211
  return 0;
212
- }, ae = 5e3, ue = (param)=>{
213
- let { items: e, itemStyle: r, itemClassName: t, withBullets: o, renderBullets: f, initialActiveItem: m, itemsPerPage: b, itemsToScroll: d, mobilePageOffset: p, gap: N, free: R, centered: A, autoplay: v, onPageChange: P, dataAttributes: F } = param;
214
- const { texts: T, platformOverrides: x, skinName: y } = (0, _hooks.useTheme)(), c = (0, _desktopcontainertypecontext.useDesktopContainerType)(), i = Ze(c || "large", b), { isDesktopOrBigger: w, isTablet: C } = (0, _hooks.useScreenSize)(), U = C ? i.tablet : i.mobile, I = Math.max(Math.floor(w ? i.desktop : U), 1), g = _react.useRef(null), S = Math.ceil(e.length / I), [{ scrollLeft: H, scrollRight: q }, de] = _react.useState({
212
+ }, ue = 5e3, fe = (param)=>{
213
+ let { items: e, itemStyle: r, itemClassName: t, withBullets: o, renderBullets: f, initialActiveItem: m, itemsPerPage: v, itemsToScroll: d, mobilePageOffset: p, gap: N, free: R, centered: A, autoplay: b, onPageChange: P, dataAttributes: F } = param;
214
+ const { texts: T, platformOverrides: x, skinName: y } = (0, _hooks.useTheme)(), c = (0, _desktopcontainertypecontext.useDesktopContainerType)(), i = Xe(c || "large", v), { isDesktopOrBigger: w, isTablet: C } = (0, _hooks.useScreenSize)(), U = C ? i.tablet : i.mobile, I = Math.max(Math.floor(w ? i.desktop : U), 1), g = _react.useRef(null), S = Math.ceil(e.length / I), [{ scrollLeft: G, scrollRight: q }, he] = _react.useState({
215
215
  scrollLeft: 0,
216
216
  scrollRight: 0
217
- }), [K, he] = _react.useState([]), W = _react.useMemo(()=>ee(K, S), [
217
+ }), [K, me] = _react.useState([]), W = _react.useMemo(()=>ee(K, S), [
218
218
  K,
219
219
  S
220
- ]), O = d ? ee(K, Math.ceil(e.length / d)) : W, me = q !== 0, pe = H !== 0;
220
+ ]), O = d ? ee(K, Math.ceil(e.length / d)) : W, pe = q !== 0, ge = G !== 0;
221
221
  _react.useEffect(()=>{
222
222
  if (g.current) {
223
223
  const l = g.current, a = ()=>{
224
- const { scrollWidth: z, clientWidth: M } = l, _ = Math.round(l.scrollLeft), j = Math.round(z - (_ + M));
225
- de({
224
+ const { scrollWidth: z, clientWidth: B } = l, _ = Math.round(l.scrollLeft), j = Math.round(z - (_ + B));
225
+ he({
226
226
  scrollLeft: _,
227
227
  scrollRight: j
228
228
  });
229
229
  }, u = ()=>{
230
230
  const z = l.scrollWidth - l.clientWidth;
231
- he(Array.from(l.querySelectorAll("[data-item]")).map((M, _)=>{
231
+ me(Array.from(l.querySelectorAll("[data-item]")).map((B, _)=>{
232
232
  if (_ === e.length - 1) return z;
233
- const j = M.offsetLeft, Ie = parseInt(getComputedStyle(M).scrollMargin), Pe = A && !w ? j - M.clientWidth / 2 : j;
234
- return Math.min(Pe - Ie - l.offsetLeft, z);
233
+ const j = B.offsetLeft, Pe = parseInt(getComputedStyle(B).scrollMargin), xe = A && !w ? j - B.clientWidth / 2 : j;
234
+ return Math.min(xe - Pe - l.offsetLeft, z);
235
235
  }));
236
236
  };
237
237
  a(), u(), l.addEventListener("scroll", a);
@@ -265,7 +265,7 @@ const ce = (e, r)=>{
265
265
  }
266
266
  }, [
267
267
  W
268
- ]), ge = _react.useCallback(()=>{
268
+ ]), ve = _react.useCallback(()=>{
269
269
  const l = g.current;
270
270
  if (l) {
271
271
  const { scrollLeft: a } = l, u = [
@@ -289,7 +289,7 @@ const ce = (e, r)=>{
289
289
  }
290
290
  }, [
291
291
  O
292
- ]), J = ce(!!v, g);
292
+ ]), H = ie(!!b, g);
293
293
  _react.useEffect(()=>{
294
294
  m !== void 0 && D(Math.floor(m / I), !1);
295
295
  }, [
@@ -297,8 +297,8 @@ const ce = (e, r)=>{
297
297
  D,
298
298
  I
299
299
  ]), _react.useEffect(()=>{
300
- if (J && v) {
301
- const l = typeof v == "boolean" ? ae : v.time, a = typeof v == "object" && v.loop, u = setInterval(()=>{
300
+ if (H && b) {
301
+ const l = typeof b == "boolean" ? ue : b.time, a = typeof b == "object" && b.loop, u = setInterval(()=>{
302
302
  var h;
303
303
  q !== 0 ? Y() : a && ((h = g.current) == null || h.scrollTo({
304
304
  left: 0,
@@ -308,12 +308,12 @@ const ce = (e, r)=>{
308
308
  return ()=>clearInterval(u);
309
309
  }
310
310
  }, [
311
- v,
311
+ b,
312
312
  Y,
313
313
  q,
314
- J
314
+ H
315
315
  ]);
316
- const k = $e(H, W), Q = _react.useRef(!m), X = _react.useRef(0);
316
+ const k = Ze(G, W), J = _react.useRef(!m), Q = _react.useRef(0);
317
317
  _react.useEffect(()=>{
318
318
  if (P) {
319
319
  const l = Math.min((k + 1) * I - 1, e.length - 1), a = [];
@@ -321,10 +321,10 @@ const ce = (e, r)=>{
321
321
  const h = l - u;
322
322
  h >= 0 && a.unshift(h);
323
323
  }
324
- Q.current ? X.current !== k && P({
324
+ J.current ? Q.current !== k && P({
325
325
  pageIndex: k,
326
326
  shownItemIndexes: a
327
- }) : Q.current = a.includes(m || 0), X.current = k;
327
+ }) : J.current = a.includes(m || 0), Q.current = k;
328
328
  }
329
329
  }, [
330
330
  k,
@@ -338,12 +338,12 @@ const ce = (e, r)=>{
338
338
  numPages: S,
339
339
  currentIndex: k,
340
340
  onPress: D
341
- }) : o && (V = S > 1 && /* @__PURE__ */ (0, _jsxruntime.jsx)(ie, {
341
+ }) : o && (V = S > 1 && /* @__PURE__ */ (0, _jsxruntime.jsx)(ae, {
342
342
  numPages: S,
343
343
  currentIndex: k,
344
344
  onPress: D
345
345
  }));
346
- const be = "64px", ve = "36px";
346
+ const be = "64px", Ie = "36px";
347
347
  return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
348
348
  space: 24,
349
349
  dataAttributes: _object_spread({
@@ -358,8 +358,8 @@ const ce = (e, r)=>{
358
358
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, {
359
359
  className: _carouselcssmistica.carouselPrevArrowButton,
360
360
  "aria-label": T.carouselPrevButton,
361
- onPress: ge,
362
- disabled: !pe,
361
+ onPress: ve,
362
+ disabled: !ge,
363
363
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconchevronleftregular.default, {})
364
364
  })
365
365
  }),
@@ -375,7 +375,7 @@ const ce = (e, r)=>{
375
375
  }, p === "large" ? {
376
376
  [_carouselcssmistica.vars.mobilePageOffset]: be
377
377
  } : y === _constants.VIVO_NEW_SKIN ? {
378
- [_carouselcssmistica.vars.mobilePageOffset]: ve
378
+ [_carouselcssmistica.vars.mobilePageOffset]: Ie
379
379
  } : {}, N !== void 0 ? {
380
380
  [_carouselcssmistica.vars.gap]: String(N)
381
381
  } : {}))), {
@@ -403,7 +403,7 @@ const ce = (e, r)=>{
403
403
  className: _carouselcssmistica.carouselNextArrowButton,
404
404
  "aria-label": T.carouselNextButton,
405
405
  onPress: Y,
406
- disabled: !me,
406
+ disabled: !pe,
407
407
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconchevronrightregular.default, {})
408
408
  })
409
409
  })
@@ -415,9 +415,9 @@ const ce = (e, r)=>{
415
415
  })
416
416
  ]
417
417
  });
418
- }, It = (e)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(ue, _object_spread({}, e)), Pt = (param)=>/* @__PURE__ */ {
419
- let { items: e, itemStyle: r, itemClassName: t, withBullets: o, renderBullets: f, initialActiveItem: m, onPageChange: b, dataAttributes: d } = param;
420
- return (0, _jsxruntime.jsx)(ue, {
418
+ }, It = (e)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(fe, _object_spread({}, e)), Pt = (param)=>/* @__PURE__ */ {
419
+ let { items: e, itemStyle: r, itemClassName: t, withBullets: o, renderBullets: f, initialActiveItem: m, onPageChange: v, dataAttributes: d } = param;
420
+ return (0, _jsxruntime.jsx)(fe, {
421
421
  items: e,
422
422
  itemStyle: r,
423
423
  itemClassName: t,
@@ -432,21 +432,21 @@ const ce = (e, r)=>{
432
432
  withBullets: o,
433
433
  renderBullets: f,
434
434
  initialActiveItem: m,
435
- onPageChange: b,
435
+ onPageChange: v,
436
436
  dataAttributes: d
437
437
  });
438
- }, fe = /*#__PURE__*/ _react.createContext(!1), xt = ()=>_react.useContext(fe), et = (param)=>/* @__PURE__ */ {
438
+ }, de = /*#__PURE__*/ _react.createContext(!1), xt = ()=>_react.useContext(de), et = (param)=>/* @__PURE__ */ {
439
439
  let { children: e } = param;
440
- return (0, _jsxruntime.jsx)(fe.Provider, {
440
+ return (0, _jsxruntime.jsx)(de.Provider, {
441
441
  value: !0,
442
442
  children: e
443
443
  });
444
444
  }, wt = (param)=>{
445
445
  let { items: e, withBullets: r, autoplay: t, onPageChange: o, dataAttributes: f, inverseBullets: m = !0 } = param;
446
- const { texts: b, platformOverrides: d } = (0, _hooks.useTheme)(), p = _react.useRef(null), [{ scrollLeft: N, scrollRight: R }, A] = _react.useState({
446
+ const { texts: v, platformOverrides: d } = (0, _hooks.useTheme)(), p = _react.useRef(null), [{ scrollLeft: N, scrollRight: R }, A] = _react.useState({
447
447
  scrollLeft: 0,
448
448
  scrollRight: 0
449
- }), v = _react.useCallback(()=>{
449
+ }), b = _react.useCallback(()=>{
450
450
  const c = p.current;
451
451
  c && c.scrollBy({
452
452
  left: -c.clientWidth,
@@ -478,10 +478,10 @@ const ce = (e, r)=>{
478
478
  }, [
479
479
  e.length
480
480
  ]);
481
- const y = ce(!!t, p);
481
+ const y = ie(!!t, p);
482
482
  return _react.useEffect(()=>{
483
483
  if (y && t) {
484
- const c = typeof t == "boolean" ? ae : t.time, i = typeof t == "object" && t.loop, w = setInterval(()=>{
484
+ const c = typeof t == "boolean" ? ue : t.time, i = typeof t == "object" && t.loop, w = setInterval(()=>{
485
485
  var C;
486
486
  R !== 0 ? P() : i && ((C = p.current) == null || C.scrollTo({
487
487
  left: 0,
@@ -509,14 +509,16 @@ const ce = (e, r)=>{
509
509
  isInverse: !1,
510
510
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, {
511
511
  className: _carouselcssmistica.slideshowPrevArrowButton,
512
- "aria-label": b.carouselPrevButton,
513
- onPress: v,
512
+ "aria-label": v.carouselPrevButton,
513
+ onPress: b,
514
514
  disabled: !T,
515
515
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconchevronleftregular.default, {})
516
516
  })
517
517
  }),
518
- /* @__PURE__ */ (0, _jsxruntime.jsx)(_image.MediaBorderRadiusProvider, {
519
- value: !1,
518
+ /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
519
+ style: (0, _css.applyCssVars)({
520
+ [_imagecssmistica.vars.mediaBorderRadius]: "0px"
521
+ }),
520
522
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
521
523
  className: _carouselcssmistica.slideshow,
522
524
  ref: p,
@@ -533,7 +535,7 @@ const ce = (e, r)=>{
533
535
  isInverse: !1,
534
536
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, {
535
537
  className: _carouselcssmistica.slideshowNextArrowButton,
536
- "aria-label": b.carouselNextButton,
538
+ "aria-label": v.carouselNextButton,
537
539
  onPress: P,
538
540
  disabled: !F,
539
541
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconchevronrightregular.default, {})
@@ -543,7 +545,7 @@ const ce = (e, r)=>{
543
545
  isInverse: m,
544
546
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
545
547
  className: _carouselcssmistica.slideshowBullets,
546
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(ie, {
548
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(ae, {
547
549
  numPages: e.length,
548
550
  currentIndex: x
549
551
  })
package/dist/checkbox.js CHANGED
@@ -11,7 +11,7 @@ Object.defineProperty(exports, "default", {
11
11
  });
12
12
  const _jsxruntime = require("react/jsx-runtime");
13
13
  const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
14
- const _keycodes = require("./utils/key-codes.js");
14
+ const _keys = require("./utils/keys.js");
15
15
  const _formcontext = require("./form-context.js");
16
16
  const _inline = /*#__PURE__*/ _interop_require_default(require("./inline.js"));
17
17
  const _text = require("./text.js");
@@ -121,7 +121,7 @@ function _object_spread_props(target, source) {
121
121
  }
122
122
  const B = (param)=>{
123
123
  let { isChecked: e, disabled: c } = param;
124
- const { isIos: o } = (0, _hooks.useTheme)(), l = o ? /* @__PURE__ */ (0, _jsxruntime.jsx)("svg", {
124
+ const { isIos: l } = (0, _hooks.useTheme)(), o = l ? /* @__PURE__ */ (0, _jsxruntime.jsx)("svg", {
125
125
  viewBox: "0 0 10 8",
126
126
  width: "10",
127
127
  height: "8",
@@ -145,46 +145,46 @@ const B = (param)=>{
145
145
  })
146
146
  });
147
147
  return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
148
- className: (0, _classnames.default)(_checkboxcssmistica.boxVariant[e ? "checked" : o ? "ios" : "rest"], {
148
+ className: (0, _classnames.default)(_checkboxcssmistica.boxVariant[e ? "checked" : l ? "ios" : "rest"], {
149
149
  [_checkboxcssmistica.disabled]: c
150
150
  }),
151
- children: l
151
+ children: o
152
152
  });
153
153
  }, K = /*#__PURE__*/ _react.forwardRef((e, c)=>{
154
- const o = (0, _hooks.useAriaId)(e["aria-labelledby"]), l = e["aria-label"], C = l || e["aria-labelledby"], { defaultValue: g, value: t, onChange: s, focusableRef: w, disabled: i } = (0, _formcontext.useControlProps)({
154
+ const l = (0, _hooks.useAriaId)(e["aria-labelledby"]), o = e["aria-label"], C = o || e["aria-labelledby"], { defaultValue: g, value: t, onChange: s, focusableRef: w, disabled: i } = (0, _formcontext.useControlProps)({
155
155
  name: e.name,
156
156
  value: e.checked,
157
157
  defaultValue: e.defaultChecked,
158
158
  onChange: e.onChange,
159
159
  disabled: e.disabled
160
- }), [d, y] = _react.useState(!!g), h = ()=>{
161
- t === void 0 ? (y(!d), s(!d)) : s(!t);
162
- }, I = (r)=>{
163
- r.keyCode === _keycodes.SPACE && (r.preventDefault(), r.stopPropagation(), h());
160
+ }), [r, y] = _react.useState(!!g), h = ()=>{
161
+ t === void 0 ? (y(!r), s(!r)) : s(!t);
162
+ }, I = (d)=>{
163
+ d.key === _keys.SPACE && (d.preventDefault(), d.stopPropagation(), h());
164
164
  }, b = /* @__PURE__ */ (0, _jsxruntime.jsx)(B, {
165
165
  disabled: i,
166
- isChecked: t !== null && t !== void 0 ? t : d
166
+ isChecked: t !== null && t !== void 0 ? t : r
167
167
  });
168
168
  return(// eslint-disable-next-line jsx-a11y/no-static-element-interactions
169
169
  /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({
170
170
  id: e.id,
171
171
  role: e.role || "checkbox",
172
- "aria-checked": t !== null && t !== void 0 ? t : d,
172
+ "aria-checked": t !== null && t !== void 0 ? t : r,
173
173
  onKeyDown: i ? void 0 : I,
174
- onClick: (r)=>{
175
- r.stopPropagation(), i || h();
174
+ onClick: (d)=>{
175
+ d.stopPropagation(), i || h();
176
176
  },
177
177
  tabIndex: i ? void 0 : 0,
178
178
  ref: (0, _common.combineRefs)(c, w),
179
179
  className: i ? _checkboxcssmistica.checkboxContainerDisabled : _checkboxcssmistica.checkboxContainer,
180
- "aria-label": l,
181
- "aria-labelledby": l ? void 0 : o,
180
+ "aria-label": o,
181
+ "aria-labelledby": o ? void 0 : l,
182
182
  "aria-disabled": i
183
183
  }, (0, _dom.getPrefixedDataAttributes)(e.dataAttributes, "Checkbox")), {
184
184
  children: e.render ? e.render({
185
185
  controlElement: b,
186
- labelId: o,
187
- checked: t !== null && t !== void 0 ? t : d,
186
+ labelId: l,
187
+ checked: t !== null && t !== void 0 ? t : r,
188
188
  disabled: !!i
189
189
  }) : /* @__PURE__ */ (0, _jsxruntime.jsxs)(_inline.default, {
190
190
  space: 16,
@@ -203,7 +203,7 @@ const B = (param)=>{
203
203
  e.children && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text3, {
204
204
  regular: !0,
205
205
  as: "div",
206
- id: o,
206
+ id: l,
207
207
  role: C ? "presentation" : void 0,
208
208
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("span", {
209
209
  className: i ? _checkboxcssmistica.disabled : "",
@@ -55,10 +55,10 @@ _export(exports, {
55
55
  return l;
56
56
  },
57
57
  touchableCardOverlay: function() {
58
- return m;
58
+ return g;
59
59
  },
60
60
  touchableContainer: function() {
61
- return g;
61
+ return m;
62
62
  },
63
63
  zindex: function() {
64
64
  return h;
@@ -69,4 +69,4 @@ require("./advanced-data-card.css.ts.vanilla.css-mistica.js");
69
69
  var a = "_1x00fru3 _1x00fru1 _1y2v1nf90 _1y2v1nfa9 _1y2v1nfba _1y2v1nfbw _1y2v1nfbm _1y2v1nf7x", _ = {
70
70
  default: "_1x00fruk",
71
71
  mobile: "_1x00frul"
72
- }, n = "_1x00frur", v = "_1x00frun", t = "_1x00fruo _1x00frun", u = "_1x00fru9 _1x00fru1 _1y2v1nf90 _1y2v1nfa9 _1y2v1nf6c _1y2v1nf7x", x = "_1x00frud _1y2v1nfb4 _1y2v1nfba _1y2v1nfbw _1y2v1nfbg _1y2v1nfbx _1y2v1nfce _1x00frub", y = "_1x00frui", o = "_1x00fruq _1y2v1nfba _1y2v1nfbf", b = "_1y2v1nfba _1y2v1nfbw _1y2v1nfbp _1y2v1nfdj", i = "_1x00frum", e = "_1y2v1nfff", d = "_1x00frub", c = "_1x00fru1 _1y2v1nf90 _1y2v1nfa9", l = "_1x00fru4", m = "_1x00fru7", g = "_1x00fru5", h = "_1x00frua";
72
+ }, n = "_1x00frur", v = "_1x00frun", t = "_1x00fruo _1x00frun", u = "_1x00fru9 _1x00fru1 _1y2v1nf90 _1y2v1nfa9 _1y2v1nf6c _1y2v1nf7x", x = "_1x00frud _1y2v1nfb4 _1y2v1nfba _1y2v1nfbw _1y2v1nfbg _1y2v1nfbx _1y2v1nfce _1x00frub", y = "_1x00frui", o = "_1x00fruq _1y2v1nfba _1y2v1nfbf", b = "_1y2v1nfba _1y2v1nfbw _1y2v1nfbp _1y2v1nfdj", i = "_1x00frum", e = "_1y2v1nffg", d = "_1x00frub", c = "_1x00fru1 _1y2v1nf90 _1y2v1nfa9", l = "_1x00fru4", g = "_1x00fru7", m = "_1x00fru5", h = "_1x00frua";