@telefonica/mistica 15.2.1 → 15.4.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 (290) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/accordion.css-mistica.js +5 -5
  3. package/dist/accordion.d.ts +3 -3
  4. package/dist/accordion.js +75 -71
  5. package/dist/avatar.css-mistica.js +3 -3
  6. package/dist/avatar.js +1 -1
  7. package/dist/badge.css-mistica.js +4 -4
  8. package/dist/box.d.ts +1 -0
  9. package/dist/box.js +13 -12
  10. package/dist/boxed.css-mistica.js +1 -1
  11. package/dist/boxed.js +2 -2
  12. package/dist/button-group.css-mistica.js +1 -1
  13. package/dist/button-group.js +2 -2
  14. package/dist/button-layout.css-mistica.js +10 -10
  15. package/dist/button.css-mistica.js +31 -31
  16. package/dist/button.js +62 -49
  17. package/dist/callout.css-mistica.js +1 -1
  18. package/dist/card.css-mistica.js +19 -16
  19. package/dist/card.css.d.ts +1 -0
  20. package/dist/card.d.ts +7 -5
  21. package/dist/card.js +376 -351
  22. package/dist/carousel.css-mistica.js +18 -18
  23. package/dist/carousel.d.ts +3 -4
  24. package/dist/carousel.js +95 -101
  25. package/dist/checkbox.css-mistica.js +10 -10
  26. package/dist/chip.css-mistica.js +15 -9
  27. package/dist/chip.css.d.ts +2 -0
  28. package/dist/chip.js +49 -47
  29. package/dist/circle.css-mistica.js +1 -1
  30. package/dist/community/advanced-data-card.css-mistica.js +20 -17
  31. package/dist/community/advanced-data-card.css.d.ts +1 -0
  32. package/dist/community/advanced-data-card.d.ts +8 -4
  33. package/dist/community/advanced-data-card.js +25 -24
  34. package/dist/community/blocks.css-mistica.js +1 -1
  35. package/dist/community/blocks.js +10 -8
  36. package/dist/counter.css-mistica.js +9 -9
  37. package/dist/counter.js +7 -7
  38. package/dist/credit-card-number-field.css-mistica.js +6 -6
  39. package/dist/dialog.css-mistica.js +9 -9
  40. package/dist/dialog.js +96 -94
  41. package/dist/double-field.css-mistica.js +4 -4
  42. package/dist/empty-state-card.css-mistica.js +4 -4
  43. package/dist/empty-state.css-mistica.js +6 -6
  44. package/dist/feedback.css-mistica.js +6 -6
  45. package/dist/feedback.d.ts +1 -1
  46. package/dist/feedback.js +87 -99
  47. package/dist/fixed-footer-layout.css-mistica.js +14 -8
  48. package/dist/fixed-footer-layout.css.d.ts +2 -0
  49. package/dist/fixed-footer-layout.d.ts +1 -1
  50. package/dist/fixed-footer-layout.js +79 -86
  51. package/dist/fixed-to-top.d.ts +1 -0
  52. package/dist/fixed-to-top.js +9 -6
  53. package/dist/form.js +6 -6
  54. package/dist/generated/mistica-icons/icon-ethernet-filled.d.ts +4 -0
  55. package/dist/generated/mistica-icons/icon-ethernet-filled.js +111 -0
  56. package/dist/generated/mistica-icons/icon-ethernet-light.d.ts +4 -0
  57. package/dist/generated/mistica-icons/icon-ethernet-light.js +111 -0
  58. package/dist/generated/mistica-icons/icon-ethernet-regular.d.ts +4 -0
  59. package/dist/generated/mistica-icons/icon-ethernet-regular.js +111 -0
  60. package/dist/generated/mistica-icons/icon-routine-filled.d.ts +4 -0
  61. package/dist/generated/mistica-icons/icon-routine-filled.js +111 -0
  62. package/dist/generated/mistica-icons/icon-routine-light.d.ts +4 -0
  63. package/dist/generated/mistica-icons/icon-routine-light.js +111 -0
  64. package/dist/generated/mistica-icons/icon-routine-regular.d.ts +4 -0
  65. package/dist/generated/mistica-icons/icon-routine-regular.js +111 -0
  66. package/dist/header.css-mistica.js +1 -1
  67. package/dist/hero.css-mistica.js +27 -6
  68. package/dist/hero.css.d.ts +5 -0
  69. package/dist/hero.d.ts +3 -2
  70. package/dist/hero.js +97 -99
  71. package/dist/highlighted-card.css-mistica.js +6 -6
  72. package/dist/hooks.d.ts +2 -0
  73. package/dist/hooks.js +39 -44
  74. package/dist/horizontal-scroll.css-mistica.js +1 -1
  75. package/dist/horizontal-scroll.js +2 -2
  76. package/dist/icon-button.css-mistica.js +7 -7
  77. package/dist/icons/icon-error.js +2 -0
  78. package/dist/icons/icon-info.js +2 -0
  79. package/dist/icons/icon-success-vivo-new.js +1 -0
  80. package/dist/icons/icon-success-vivo.js +9 -8
  81. package/dist/image.css-mistica.js +3 -3
  82. package/dist/image.d.ts +1 -0
  83. package/dist/image.js +54 -50
  84. package/dist/index.d.ts +6 -0
  85. package/dist/index.js +24 -0
  86. package/dist/list.css-mistica.js +13 -13
  87. package/dist/list.d.ts +3 -0
  88. package/dist/list.js +261 -217
  89. package/dist/loading-bar.css-mistica.js +5 -5
  90. package/dist/loading-bar.js +2 -2
  91. package/dist/loading-screen.css-mistica.js +8 -8
  92. package/dist/loading-screen.d.ts +1 -1
  93. package/dist/loading-screen.js +3 -3
  94. package/dist/logo.js +40 -27
  95. package/dist/maybe-dismissable.css-mistica.js +1 -1
  96. package/dist/menu.css-mistica.js +3 -3
  97. package/dist/navigation-bar.css-mistica.js +19 -19
  98. package/dist/navigation-breadcrumbs.css-mistica.js +5 -5
  99. package/dist/overscroll-color-context.d.ts +1 -0
  100. package/dist/overscroll-color-context.js +15 -12
  101. package/dist/package-version.js +1 -1
  102. package/dist/pin-field.css-mistica.js +5 -5
  103. package/dist/pin-field.js +2 -2
  104. package/dist/progress-bar.css-mistica.js +3 -3
  105. package/dist/progress-bar.js +4 -4
  106. package/dist/radio-button.css-mistica.js +10 -10
  107. package/dist/radio-button.d.ts +2 -0
  108. package/dist/radio-button.js +70 -68
  109. package/dist/responsive-layout.css-mistica.js +20 -11
  110. package/dist/responsive-layout.d.ts +1 -0
  111. package/dist/responsive-layout.js +15 -15
  112. package/dist/screen-reader-only.css-mistica.js +2 -2
  113. package/dist/select.css-mistica.js +10 -10
  114. package/dist/select.js +16 -16
  115. package/dist/sheet.css-mistica.js +9 -9
  116. package/dist/sheet.d.ts +8 -8
  117. package/dist/sheet.js +82 -81
  118. package/dist/skeletons.css-mistica.js +4 -4
  119. package/dist/skins/blau.js +11 -1
  120. package/dist/skins/movistar.js +11 -1
  121. package/dist/skins/o2-new.d.ts +0 -1
  122. package/dist/skins/o2-new.js +17 -8
  123. package/dist/skins/o2.js +11 -1
  124. package/dist/skins/skin-contract.css-mistica.js +268 -258
  125. package/dist/skins/skin-contract.css.d.ts +10 -0
  126. package/dist/skins/telefonica.js +11 -1
  127. package/dist/skins/tu.js +11 -1
  128. package/dist/skins/types/colors.d.ts +5 -0
  129. package/dist/skins/vivo-new.js +11 -1
  130. package/dist/skins/vivo.js +11 -1
  131. package/dist/slider.css-mistica.js +9 -9
  132. package/dist/slider.d.ts +1 -1
  133. package/dist/slider.js +8 -8
  134. package/dist/snackbar.css-mistica.js +15 -15
  135. package/dist/spinner.css-mistica.js +3 -3
  136. package/dist/sprinkles.css-mistica.js +833 -803
  137. package/dist/stacking-group.css-mistica.js +2 -2
  138. package/dist/stepper.css-mistica.js +9 -9
  139. package/dist/switch-component.css-mistica.js +21 -21
  140. package/dist/switch-component.d.ts +2 -0
  141. package/dist/switch-component.js +28 -27
  142. package/dist/tabs.css-mistica.js +10 -10
  143. package/dist/tag.css-mistica.js +2 -2
  144. package/dist/tag.js +2 -2
  145. package/dist/text-field-base.css-mistica.js +16 -16
  146. package/dist/text-field-base.js +3 -3
  147. package/dist/text-field-components.css-mistica.js +9 -9
  148. package/dist/text-field-components.js +10 -10
  149. package/dist/text-link.css-mistica.js +3 -3
  150. package/dist/text.js +142 -121
  151. package/dist/theme-context-provider.js +38 -34
  152. package/dist/theme.d.ts +2 -1
  153. package/dist/tooltip.css-mistica.js +4 -4
  154. package/dist/touchable.css-mistica.js +2 -2
  155. package/dist/utils/aspect-ratio-support.css-mistica.js +3 -3
  156. package/dist/utils/aspect-ratio-support.js +8 -8
  157. package/dist/utils/browser.js +1 -1
  158. package/dist/video.css-mistica.js +1 -1
  159. package/dist/video.js +3 -3
  160. package/dist-es/accordion.css-mistica.js +3 -3
  161. package/dist-es/accordion.js +87 -83
  162. package/dist-es/avatar.css-mistica.js +2 -2
  163. package/dist-es/avatar.js +1 -1
  164. package/dist-es/badge.css-mistica.js +2 -2
  165. package/dist-es/box.js +17 -16
  166. package/dist-es/boxed.css-mistica.js +1 -1
  167. package/dist-es/boxed.js +2 -2
  168. package/dist-es/button-group.css-mistica.js +1 -1
  169. package/dist-es/button-group.js +4 -4
  170. package/dist-es/button-layout.css-mistica.js +6 -6
  171. package/dist-es/button-layout.js +5 -5
  172. package/dist-es/button.css-mistica.js +18 -18
  173. package/dist-es/button.js +80 -67
  174. package/dist-es/callout.css-mistica.js +1 -1
  175. package/dist-es/callout.js +8 -8
  176. package/dist-es/card.css-mistica.js +2 -2
  177. package/dist-es/card.js +491 -466
  178. package/dist-es/carousel.css-mistica.js +2 -2
  179. package/dist-es/carousel.js +88 -91
  180. package/dist-es/checkbox.css-mistica.js +6 -6
  181. package/dist-es/checkbox.js +7 -7
  182. package/dist-es/chip.css-mistica.js +8 -8
  183. package/dist-es/chip.js +75 -72
  184. package/dist-es/circle.css-mistica.js +1 -1
  185. package/dist-es/community/advanced-data-card.css-mistica.js +7 -7
  186. package/dist-es/community/advanced-data-card.js +65 -64
  187. package/dist-es/community/blocks.css-mistica.js +1 -1
  188. package/dist-es/community/blocks.js +16 -14
  189. package/dist-es/counter.css-mistica.js +2 -2
  190. package/dist-es/counter.js +21 -21
  191. package/dist-es/credit-card-number-field.css-mistica.js +4 -4
  192. package/dist-es/dialog.css-mistica.js +5 -5
  193. package/dist-es/dialog.js +114 -112
  194. package/dist-es/double-field.css-mistica.js +4 -4
  195. package/dist-es/empty-state-card.css-mistica.js +2 -2
  196. package/dist-es/empty-state.css-mistica.js +3 -3
  197. package/dist-es/empty-state.js +12 -12
  198. package/dist-es/feedback.css-mistica.js +2 -2
  199. package/dist-es/feedback.js +118 -130
  200. package/dist-es/fixed-footer-layout.css-mistica.js +3 -3
  201. package/dist-es/fixed-footer-layout.js +97 -104
  202. package/dist-es/fixed-to-top.js +8 -8
  203. package/dist-es/form.js +9 -9
  204. package/dist-es/generated/mistica-icons/icon-ethernet-filled.js +102 -0
  205. package/dist-es/generated/mistica-icons/icon-ethernet-light.js +102 -0
  206. package/dist-es/generated/mistica-icons/icon-ethernet-regular.js +102 -0
  207. package/dist-es/generated/mistica-icons/icon-routine-filled.js +102 -0
  208. package/dist-es/generated/mistica-icons/icon-routine-light.js +102 -0
  209. package/dist-es/generated/mistica-icons/icon-routine-regular.js +102 -0
  210. package/dist-es/grid.js +3 -3
  211. package/dist-es/header.css-mistica.js +1 -1
  212. package/dist-es/hero.css-mistica.js +8 -2
  213. package/dist-es/hero.js +124 -126
  214. package/dist-es/highlighted-card.css-mistica.js +5 -5
  215. package/dist-es/hooks.js +41 -40
  216. package/dist-es/horizontal-scroll.css-mistica.js +1 -1
  217. package/dist-es/horizontal-scroll.js +2 -2
  218. package/dist-es/icon-button.css-mistica.js +7 -7
  219. package/dist-es/icons/icon-error.js +29 -27
  220. package/dist-es/icons/icon-info.js +2 -0
  221. package/dist-es/icons/icon-success-vivo-new.js +1 -0
  222. package/dist-es/icons/icon-success-vivo.js +9 -8
  223. package/dist-es/image.css-mistica.js +2 -2
  224. package/dist-es/image.js +73 -69
  225. package/dist-es/index.js +1088 -1082
  226. package/dist-es/list.css-mistica.js +2 -2
  227. package/dist-es/list.js +342 -298
  228. package/dist-es/loading-bar.css-mistica.js +2 -2
  229. package/dist-es/loading-bar.js +6 -6
  230. package/dist-es/loading-screen.css-mistica.js +3 -3
  231. package/dist-es/loading-screen.js +8 -8
  232. package/dist-es/logo.js +93 -80
  233. package/dist-es/maybe-dismissable.css-mistica.js +1 -1
  234. package/dist-es/menu.css-mistica.js +2 -2
  235. package/dist-es/navigation-bar.css-mistica.js +9 -9
  236. package/dist-es/navigation-breadcrumbs.css-mistica.js +2 -2
  237. package/dist-es/overscroll-color-context.js +12 -12
  238. package/dist-es/package-version.js +1 -1
  239. package/dist-es/pin-field.css-mistica.js +2 -2
  240. package/dist-es/pin-field.js +10 -10
  241. package/dist-es/progress-bar.css-mistica.js +2 -2
  242. package/dist-es/progress-bar.js +9 -9
  243. package/dist-es/radio-button.css-mistica.js +6 -6
  244. package/dist-es/radio-button.js +75 -73
  245. package/dist-es/responsive-layout.css-mistica.js +5 -5
  246. package/dist-es/responsive-layout.js +21 -21
  247. package/dist-es/screen-reader-only.css-mistica.js +2 -2
  248. package/dist-es/select.css-mistica.js +9 -9
  249. package/dist-es/select.js +22 -22
  250. package/dist-es/sheet.css-mistica.js +2 -2
  251. package/dist-es/sheet.js +124 -123
  252. package/dist-es/skeletons.css-mistica.js +2 -2
  253. package/dist-es/skins/blau.js +11 -1
  254. package/dist-es/skins/movistar.js +13 -3
  255. package/dist-es/skins/o2-new.js +17 -8
  256. package/dist-es/skins/o2.js +11 -1
  257. package/dist-es/skins/skin-contract.css-mistica.js +268 -258
  258. package/dist-es/skins/telefonica.js +11 -1
  259. package/dist-es/skins/tu.js +13 -3
  260. package/dist-es/skins/vivo-new.js +13 -3
  261. package/dist-es/skins/vivo.js +13 -3
  262. package/dist-es/slider.css-mistica.js +2 -2
  263. package/dist-es/slider.js +8 -8
  264. package/dist-es/snackbar.css-mistica.js +5 -5
  265. package/dist-es/spinner.css-mistica.js +2 -2
  266. package/dist-es/sprinkles.css-mistica.js +833 -803
  267. package/dist-es/stacking-group.css-mistica.js +2 -2
  268. package/dist-es/stepper.css-mistica.js +2 -2
  269. package/dist-es/style.css +1 -1
  270. package/dist-es/switch-component.css-mistica.js +19 -19
  271. package/dist-es/switch-component.js +32 -31
  272. package/dist-es/tabs.css-mistica.js +7 -7
  273. package/dist-es/tag.css-mistica.js +2 -2
  274. package/dist-es/tag.js +4 -4
  275. package/dist-es/text-field-base.css-mistica.js +2 -2
  276. package/dist-es/text-field-base.js +11 -11
  277. package/dist-es/text-field-components.css-mistica.js +2 -2
  278. package/dist-es/text-field-components.js +23 -23
  279. package/dist-es/text-link.css-mistica.js +3 -3
  280. package/dist-es/text-link.js +5 -5
  281. package/dist-es/text.js +141 -120
  282. package/dist-es/theme-context-provider.js +44 -40
  283. package/dist-es/tooltip.css-mistica.js +2 -2
  284. package/dist-es/touchable.css-mistica.js +2 -2
  285. package/dist-es/utils/aspect-ratio-support.css-mistica.js +3 -3
  286. package/dist-es/utils/aspect-ratio-support.js +14 -14
  287. package/dist-es/utils/browser.js +1 -1
  288. package/dist-es/video.css-mistica.js +1 -1
  289. package/dist-es/video.js +6 -6
  290. package/package.json +1 -1
@@ -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
  };
@@ -9,4 +9,4 @@ Object.defineProperty(exports, "video", {
9
9
  }
10
10
  });
11
11
  require("./sprinkles.css.ts.vanilla.css-mistica.js");
12
- var f = "_1y2v1nfkh _1y2v1nfkw _1y2v1nfhc _1y2v1nf72 _1y2v1nfjp _1y2v1nfjq _1y2v1nfm5";
12
+ var f = "_1y2v1nfkr _1y2v1nfl6 _1y2v1nfhm _1y2v1nf7c _1y2v1nfjz _1y2v1nfk0 _1y2v1nfmf";
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",
@@ -174,7 +174,7 @@ const q = {
174
174
  const C = ()=>{
175
175
  if (y == null || y(), l === "stopped") return;
176
176
  const e = i.current, t = g && !(0, _platform.isRunningAcceptanceTest)();
177
- o("finishLoad"), e && t && e.paused && (e.play(), o("play"));
177
+ o("finishLoad"), e && t && e.paused && e.play();
178
178
  }, V = (Array.isArray(s) ? s : [
179
179
  s
180
180
  ]).map((e)=>typeof e == "string" ? {
@@ -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,
@@ -1,9 +1,9 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./accordion.css.ts.vanilla.css-mistica.js";
3
- var e = "_8s3szx3", v = "_1y2v1nf73 _1y2v1nf8c _1y2v1nf9l _1y2v1nfau _1y2v1nfhx _1y2v1nfjs _1y2v1nf72 _1y2v1nfhc _1y2v1nfie", a = "_8s3szx9", r = "_8s3szx4", _ = {
3
+ var e = "_8s3szx3", v = "_1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfi7 _1y2v1nfk2 _1y2v1nf7c _1y2v1nfhm _1y2v1nfio", r = "_8s3szx9", a = "_8s3szx4", _ = {
4
4
  enter: "_8s3szx5",
5
5
  enterActive: "_8s3szx6",
6
6
  exit: "_8s3szx7",
7
7
  exitActive: "_8s3szx8"
8
- }, t = "_8s3szx1", x = "_8s3szx2";
9
- export { e as chevronContainer, v as itemContent, a as panel, r as panelContainer, _ as panelTransitionClasses, t as touchableBackground, x as touchableBackgroundInverse };
8
+ }, t = "_8s3szx1", i = "_8s3szx2";
9
+ export { e as chevronContainer, v as itemContent, r as panel, a as panelContainer, _ as panelTransitionClasses, t as touchableBackground, i as touchableBackgroundInverse };
@@ -78,202 +78,206 @@ function _object_without_properties_loose(source, excluded) {
78
78
  }
79
79
  return target;
80
80
  }
81
- import { jsxs as g, jsx as t } from "react/jsx-runtime";
81
+ import { jsxs as C, jsx as t } from "react/jsx-runtime";
82
82
  import * as i from "react";
83
83
  import { Content as N } from "./list.js";
84
84
  import S from "./icons/icon-chevron.js";
85
- import x from "./box.js";
86
- import { itemContent as T, touchableBackgroundInverse as y, touchableBackground as O, chevronContainer as D, panelTransitionClasses as P, panelContainer as V, panel as w } from "./accordion.css-mistica.js";
85
+ import h from "./box.js";
86
+ import { itemContent as T, touchableBackgroundInverse as y, touchableBackground as O, chevronContainer as w, panelTransitionClasses as D, panelContainer as P, panel as V } from "./accordion.css-mistica.js";
87
87
  import E from "./stack.js";
88
88
  import { BaseTouchable as _ } from "./touchable.js";
89
89
  import k from "classnames";
90
90
  import { vars as A } from "./skins/skin-contract.css-mistica.js";
91
- import { getPrefixedDataAttributes as C } from "./utils/dom.js";
91
+ import { getPrefixedDataAttributes as R } from "./utils/dom.js";
92
92
  import L from "./divider.js";
93
93
  import { Boxed as X } from "./boxed.js";
94
94
  import { useIsInverseVariant as j } from "./theme-variant-context.js";
95
- import { useAriaId as v } from "./hooks.js";
95
+ import { useAriaId as g } from "./hooks.js";
96
96
  import { CSSTransition as M } from "react-transition-group";
97
97
  import { isRunningAcceptanceTest as q } from "./utils/platform.js";
98
- const z = 400, h = /*#__PURE__*/ i.createContext({
98
+ const z = 400, v = /*#__PURE__*/ i.createContext({
99
99
  index: [],
100
100
  toogle: ()=>{}
101
- }), F = ()=>i.useContext(h), R = (param)=>{
102
- let { value: o, defaultValue: n, onChange: r, singleOpen: s } = param;
103
- const u = o !== void 0, d = (e)=>e === void 0 ? [] : typeof e == "number" ? [
104
- e
105
- ] : e, [c, l] = i.useState(d(n));
101
+ }), F = ()=>i.useContext(v), B = (param)=>{
102
+ let { value: e, defaultValue: r, onChange: n, singleOpen: s } = param;
103
+ const l = e !== void 0, d = (o)=>o === void 0 ? [] : typeof o == "number" ? [
104
+ o
105
+ ] : o, [c, a] = i.useState(d(r));
106
106
  i.useEffect(()=>{
107
- c.length > 1 && s && (c.splice(1), l([
108
- ...c
109
- ]));
107
+ if (c.length > 1 && s) {
108
+ const o = [
109
+ ...c
110
+ ];
111
+ o.splice(1), a(o);
112
+ }
110
113
  }, [
111
114
  s,
112
115
  c
113
116
  ]);
114
- const p = (e, a)=>{
115
- if (!a) return [
116
- e
117
+ const I = (o, u)=>{
118
+ if (!u) return [
119
+ o
117
120
  ];
118
- const f = a.indexOf(e);
119
- return f === -1 ? s ? a = [
120
- e
121
- ] : a.push(e) : a.splice(f, 1), [
122
- ...a
121
+ const f = u.indexOf(o);
122
+ let p = [
123
+ ...u
123
124
  ];
124
- }, m = (e)=>{
125
- if (u || l(p(e, c)), r) {
126
- const a = (u ? d(o) : c).includes(e);
127
- r(e, !a);
125
+ return f === -1 ? s ? p = [
126
+ o
127
+ ] : p.push(o) : p.splice(f, 1), p;
128
+ }, m = (o)=>{
129
+ if (l || a(I(o, c)), n) {
130
+ const u = (l ? d(e) : c).includes(o);
131
+ n(o, !u);
128
132
  }
129
133
  };
130
- return u ? [
131
- d(o),
134
+ return l ? [
135
+ d(e),
132
136
  m
133
137
  ] : [
134
138
  c,
135
139
  m
136
140
  ];
137
- }, H = (o)=>{
138
- const n = o == null ? void 0 : o.closest("[data-accordion]");
139
- if (n) return Array.from(n.querySelectorAll("[data-accordion-item]")).filter((r)=>r.closest("[data-accordion]") === n).findIndex((r)=>r === o);
140
- }, B = /*#__PURE__*/ i.forwardRef((_param, u)=>{
141
- var { content: o, dataAttributes: n, trackingEvent: r } = _param, s = _object_without_properties(_param, [
141
+ }, H = (e)=>{
142
+ const r = e == null ? void 0 : e.closest("[data-accordion]");
143
+ if (r) return Array.from(r.querySelectorAll("[data-accordion-item]")).filter((n)=>n.closest("[data-accordion]") === r).findIndex((n)=>n === e);
144
+ }, b = /*#__PURE__*/ i.forwardRef((_param, l)=>{
145
+ var { content: e, dataAttributes: r, trackingEvent: n } = _param, s = _object_without_properties(_param, [
142
146
  "content",
143
147
  "dataAttributes",
144
148
  "trackingEvent"
145
149
  ]);
146
- const d = i.useRef(null), c = i.useRef(null), { index: l, toogle: p } = F(), m = j(), e = v(), a = v(), [f, b] = i.useState(), I = f !== void 0 && (l == null ? void 0 : l.includes(f));
150
+ const d = i.useRef(null), c = i.useRef(null), { index: a, toogle: I } = F(), m = j(), o = g(), u = g(), [f, p] = i.useState(), x = f !== void 0 && (a == null ? void 0 : a.includes(f));
147
151
  return i.useEffect(()=>{
148
- b(H(c.current));
149
- }, []), /* @__PURE__ */ g("div", _object_spread_props(_object_spread({
152
+ p(H(c.current));
153
+ }, []), /* @__PURE__ */ C("div", _object_spread_props(_object_spread({
150
154
  ref: c
151
- }, C(_object_spread_props(_object_spread({}, n), {
155
+ }, R(_object_spread_props(_object_spread({}, r), {
152
156
  "accordion-item": !0
153
157
  }))), {
154
158
  children: [
155
159
  /* @__PURE__ */ t(_, {
156
- ref: u,
160
+ ref: l,
157
161
  className: k(T, m ? y : O),
158
162
  onPress: ()=>{
159
- f !== void 0 && p(f);
163
+ f !== void 0 && I(f);
160
164
  },
161
- trackingEvent: r,
162
- "aria-expanded": I,
163
- "aria-controls": a,
164
- children: /* @__PURE__ */ t(x, {
165
+ trackingEvent: n,
166
+ "aria-expanded": x,
167
+ "aria-controls": u,
168
+ children: /* @__PURE__ */ t(h, {
165
169
  paddingX: 16,
166
170
  children: /* @__PURE__ */ t(N, _object_spread_props(_object_spread({
167
- labelId: e,
171
+ labelId: o,
168
172
  type: "custom"
169
173
  }, s), {
170
174
  right: /* @__PURE__ */ t("div", {
171
- className: D,
175
+ className: w,
172
176
  children: /* @__PURE__ */ t(S, {
173
177
  size: 24,
174
178
  transitionDuration: 400,
175
- direction: I ? "up" : "down",
176
- color: m ? A.colors.inverse : I ? A.colors.neutralHigh : A.colors.neutralMedium
179
+ direction: x ? "up" : "down",
180
+ color: m ? A.colors.inverse : x ? A.colors.neutralHigh : A.colors.neutralMedium
177
181
  })
178
182
  })
179
183
  }))
180
184
  })
181
185
  }),
182
186
  /* @__PURE__ */ t(M, {
183
- in: I,
187
+ in: x,
184
188
  timeout: q() ? 0 : z,
185
189
  nodeRef: d,
186
- classNames: P,
190
+ classNames: D,
187
191
  mountOnEnter: !0,
188
192
  unmountOnExit: !0,
189
193
  children: /* @__PURE__ */ t("div", {
190
- className: V,
194
+ className: P,
191
195
  ref: d,
192
196
  children: /* @__PURE__ */ t("div", {
193
- className: w,
197
+ className: V,
194
198
  role: "region",
195
- "aria-labelledby": e,
196
- id: a,
197
- children: /* @__PURE__ */ t(x, {
199
+ "aria-labelledby": o,
200
+ id: u,
201
+ children: /* @__PURE__ */ t(h, {
198
202
  paddingX: 16,
199
203
  paddingBottom: 16,
200
- children: o
204
+ children: e
201
205
  })
202
206
  })
203
207
  })
204
208
  })
205
209
  ]
206
210
  }));
207
- }), so = /*#__PURE__*/ i.forwardRef((_param, r)=>{
208
- var { dataAttributes: o } = _param, n = _object_without_properties(_param, [
211
+ }), so = /*#__PURE__*/ i.forwardRef((_param, n)=>{
212
+ var { dataAttributes: e } = _param, r = _object_without_properties(_param, [
209
213
  "dataAttributes"
210
214
  ]);
211
- return /* @__PURE__ */ t(B, _object_spread_props(_object_spread({}, n), {
212
- ref: r,
215
+ return /* @__PURE__ */ t(b, _object_spread_props(_object_spread({}, r), {
216
+ ref: n,
213
217
  dataAttributes: _object_spread({
214
218
  "component-name": "AccordionItem"
215
- }, o)
219
+ }, e)
216
220
  }));
217
221
  }), ao = (param)=>{
218
- let { children: o, dataAttributes: n, index: r, defaultIndex: s, onChange: u, singleOpen: d } = param;
219
- const [c, l] = R({
220
- value: r,
222
+ let { children: e, dataAttributes: r, index: n, defaultIndex: s, onChange: l, singleOpen: d } = param;
223
+ const [c, a] = B({
224
+ value: n,
221
225
  defaultValue: s,
222
- onChange: u,
226
+ onChange: l,
223
227
  singleOpen: d
224
- }), p = i.Children.count(o) - 1;
225
- return /* @__PURE__ */ t(h.Provider, {
228
+ }), I = i.Children.count(e) - 1;
229
+ return /* @__PURE__ */ t(v.Provider, {
226
230
  value: {
227
231
  index: c,
228
- toogle: l
232
+ toogle: a
229
233
  },
230
- children: /* @__PURE__ */ t("div", _object_spread_props(_object_spread({}, C(_object_spread_props(_object_spread({}, n), {
234
+ children: /* @__PURE__ */ t("div", _object_spread_props(_object_spread({}, R(_object_spread_props(_object_spread({}, r), {
231
235
  accordion: !0
232
236
  }), "Accordion")), {
233
- children: i.Children.toArray(o).filter(Boolean).map((m, e)=>/* @__PURE__ */ g(i.Fragment, {
237
+ children: i.Children.toArray(e).filter(Boolean).map((m, o)=>/* @__PURE__ */ C(i.Fragment, {
234
238
  children: [
235
239
  m,
236
- e < p && /* @__PURE__ */ t(x, {
240
+ o < I && /* @__PURE__ */ t(h, {
237
241
  paddingX: 16,
238
242
  children: /* @__PURE__ */ t(L, {})
239
243
  })
240
244
  ]
241
- }, e))
245
+ }, o))
242
246
  }))
243
247
  });
244
248
  }, lo = /*#__PURE__*/ i.forwardRef((_param, s)=>{
245
- var { dataAttributes: o, isInverse: n } = _param, r = _object_without_properties(_param, [
249
+ var { dataAttributes: e, isInverse: r } = _param, n = _object_without_properties(_param, [
246
250
  "dataAttributes",
247
251
  "isInverse"
248
252
  ]);
249
253
  return /* @__PURE__ */ t(X, {
250
- isInverse: n,
254
+ isInverse: r,
251
255
  ref: s,
252
256
  dataAttributes: _object_spread({
253
257
  "component-name": "BoxedAccordionItem"
254
- }, o),
255
- children: /* @__PURE__ */ t(B, _object_spread({}, r))
258
+ }, e),
259
+ children: /* @__PURE__ */ t(b, _object_spread({}, n))
256
260
  });
257
261
  }), uo = (param)=>{
258
- let { children: o, dataAttributes: n, index: r, defaultIndex: s, onChange: u, singleOpen: d } = param;
259
- const [c, l] = R({
260
- value: r,
262
+ let { children: e, dataAttributes: r, index: n, defaultIndex: s, onChange: l, singleOpen: d } = param;
263
+ const [c, a] = B({
264
+ value: n,
261
265
  defaultValue: s,
262
- onChange: u,
266
+ onChange: l,
263
267
  singleOpen: d
264
268
  });
265
- return /* @__PURE__ */ t(h.Provider, {
269
+ return /* @__PURE__ */ t(v.Provider, {
266
270
  value: {
267
271
  index: c,
268
- toogle: l
272
+ toogle: a
269
273
  },
270
274
  children: /* @__PURE__ */ t(E, {
271
275
  space: 16,
272
276
  dataAttributes: _object_spread({
273
277
  "component-name": "BoxedAccordion",
274
278
  accordion: !0
275
- }, n),
276
- children: o
279
+ }, r),
280
+ children: e
277
281
  })
278
282
  });
279
283
  };
@@ -1,3 +1,3 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
- var a = "_1y2v1nfk8 _1y2v1nfha _1y2v1nfhp _1y2v1nfhj _1y2v1nfkb", f = "_1y2v1nfm5";
3
- export { a as avatar, f as image };
2
+ var f = "_1y2v1nfki _1y2v1nfhk _1y2v1nfhz _1y2v1nfht _1y2v1nfkl", a = "_1y2v1nfmf";
3
+ export { f as avatar, a as image };
package/dist-es/avatar.js CHANGED
@@ -112,7 +112,7 @@ const $ = (r, o)=>{
112
112
  "dataAttributes"
113
113
  ]);
114
114
  var _s_backgroundColor, _s_textColor;
115
- const l = E(), g = (_s_backgroundColor = s.backgroundColor) !== null && _s_backgroundColor !== void 0 ? _s_backgroundColor : l ? a.colors.brandHigh : a.colors.brandLow, b = (_s_textColor = s.textColor) !== null && _s_textColor !== void 0 ? _s_textColor : l ? a.colors.textPrimaryInverse : a.colors.brand, [h, i] = d.useState(!1);
115
+ const l = E(), g = (_s_backgroundColor = s.backgroundColor) !== null && _s_backgroundColor !== void 0 ? _s_backgroundColor : l ? a.colors.brandHigh : a.colors.brandLow, b = (_s_textColor = s.textColor) !== null && _s_textColor !== void 0 ? _s_textColor : l ? a.colors.textPrimaryInverse : a.colors.textBrand, [h, i] = d.useState(!1);
116
116
  d.useEffect(()=>{
117
117
  i(!1);
118
118
  }, [
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./badge.css.ts.vanilla.css-mistica.js";
3
- var a = "_17szrmd2 _1y2v1nf56", _ = "_17szrmd7", d = "_17szrmd3", e = "_17szrmd5 _17szrmd2 _1y2v1nf56 _1y2v1nfha _1y2v1nfhp _1y2v1nfhj", n = "_1y2v1nfh5", m = "_1y2v1nfh4 _1y2v1nfhe";
4
- export { a as badge, _ as badgeBigNumber, d as badgeBorder, e as badgeNumber, n as badgeWithChildren, m as container };
3
+ var v = "_17szrmd2 _1y2v1nf5d", _ = "_17szrmd7", a = "_17szrmd3", e = "_17szrmd5 _17szrmd2 _1y2v1nf5d _1y2v1nfhk _1y2v1nfhz _1y2v1nfht", n = "_1y2v1nfhf", f = "_1y2v1nfhe _1y2v1nfho";
4
+ export { v as badge, _ as badgeBigNumber, a as badgeBorder, e as badgeNumber, n as badgeWithChildren, f as container };
package/dist-es/box.js CHANGED
@@ -50,40 +50,41 @@ function _object_spread_props(target, source) {
50
50
  }
51
51
  return target;
52
52
  }
53
- import { jsx as k } from "react/jsx-runtime";
53
+ import { jsx as n } 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)=>{
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
- const S = {
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, S)=>{
59
+ let { className: i, children: f, width: l, padding: a = 0, paddingX: b = a, paddingY: m = a, paddingTop: e = m, paddingBottom: o = m, paddingLeft: r = b, paddingRight: t = b, role: x, dataAttributes: y, "aria-label": j, "aria-hidden": u } = param;
60
+ const k = {
61
61
  paddingTop: e,
62
62
  paddingBottom: o,
63
63
  paddingLeft: r,
64
64
  paddingRight: t
65
65
  };
66
- let a = {}, s = "";
66
+ let c = {}, s = "";
67
67
  try {
68
- s = N(S);
68
+ s = z(k);
69
69
  } catch (e1) {
70
- a = {
70
+ c = {
71
71
  paddingTop: typeof e == "object" ? e.mobile : e,
72
72
  paddingBottom: typeof o == "object" ? o.mobile : o,
73
73
  paddingLeft: typeof r == "object" ? r.mobile : r,
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__ */ n("div", _object_spread_props(_object_spread({}, A(y)), {
78
78
  role: x,
79
79
  "aria-label": j,
80
- ref: u,
81
- className: v(f, s),
80
+ "aria-hidden": u,
81
+ ref: S,
82
+ className: v(i, s),
82
83
  style: _object_spread({}, l !== void 0 ? {
83
84
  width: l,
84
85
  boxSizing: "border-box"
85
- } : {}, s ? {} : a),
86
- children: i
86
+ } : {}, s ? {} : c),
87
+ children: f
87
88
  }));
88
- }), w = A;
89
- export { w as default };
89
+ }), q = C;
90
+ export { q as default };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./boxed.css.ts.vanilla.css-mistica.js";
3
- var e = "_1y2v1nfjr", p = "ihbkeq1";
3
+ var e = "_1y2v1nfk1", p = "ihbkeq1";
4
4
  export { e as boxBorder, p as desktopOnly };
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 };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./button-group.css.ts.vanilla.css-mistica.js";
3
- var h = "_1xdd1h64", r = "_1xdd1h63", t = "_1xdd1h62", v = "_1xdd1h61 _1y2v1nfhb _1y2v1nfhp _1y2v1nfhf";
3
+ var h = "_1xdd1h64", r = "_1xdd1h63", t = "_1xdd1h62", v = "_1xdd1h61 _1y2v1nfhl _1y2v1nfhz _1y2v1nfhp";
4
4
  export { h as buttonChild, r as buttons, t as container, v as inline };
@@ -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
  })
@@ -2,9 +2,9 @@ import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./button.css.ts.vanilla.css-mistica.js";
3
3
  import "./button-layout.css.ts.vanilla.css-mistica.js";
4
4
  var y = {
5
- right: "kfxylh8 _1y2v1nfhk",
6
- left: "kfxylh9 _1y2v1nfhi",
7
- center: "kfxylha _1y2v1nfhj",
8
- "full-width": "kfxylhb _1y2v1nfhj"
9
- }, l = "kfxylh2 _1y2v1nfha _1y2v1nfhp", t = "kfxylh3", a = "kfxylhe kfxylhd _1y2v1nfha _1y2v1nfhx", r = "kfxylhf kfxylhd _1y2v1nfha _1y2v1nfhx", v = "kfxylh0";
10
- export { y as alignVariant, l as container, t as containerWithTwoButtons, a as link, r as linkWithTwoButtons, v as margins };
5
+ right: "kfxylh8 _1y2v1nfhu",
6
+ left: "kfxylh9 _1y2v1nfhs",
7
+ center: "kfxylha _1y2v1nfht",
8
+ "full-width": "kfxylhb _1y2v1nfht"
9
+ }, t = "kfxylh2 _1y2v1nfhk _1y2v1nfhz", l = "kfxylh3", i = "kfxylhe kfxylhd _1y2v1nfhk _1y2v1nfi7", k = "kfxylhf kfxylhd _1y2v1nfhk _1y2v1nfi7", r = "kfxylh0";
10
+ export { y as alignVariant, t as container, l as containerWithTwoButtons, i as link, k as linkWithTwoButtons, r as margins };
@@ -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,