@telefonica/mistica 16.31.0 → 16.32.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 (259) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/accordion.css-mistica.js +6 -6
  3. package/dist/align.css-mistica.js +1 -1
  4. package/dist/avatar.css-mistica.js +1 -1
  5. package/dist/badge.css-mistica.js +1 -1
  6. package/dist/box.css-mistica.js +13 -13
  7. package/dist/box.js +5 -5
  8. package/dist/boxed.css-mistica.js +24 -24
  9. package/dist/button-group.css-mistica.js +1 -1
  10. package/dist/button-group.js +2 -2
  11. package/dist/button-layout.css-mistica.js +13 -13
  12. package/dist/button.css-mistica.js +16 -16
  13. package/dist/callout.css-mistica.js +5 -5
  14. package/dist/card.css-mistica.js +3 -3
  15. package/dist/carousel.css-mistica.js +99 -44
  16. package/dist/carousel.css.d.ts +35 -16
  17. package/dist/carousel.d.ts +43 -5
  18. package/dist/carousel.js +570 -384
  19. package/dist/checkbox.css-mistica.js +7 -7
  20. package/dist/checkbox.js +2 -2
  21. package/dist/chip.css-mistica.js +12 -12
  22. package/dist/circle.css-mistica.js +1 -1
  23. package/dist/community/advanced-data-card.css-mistica.js +6 -6
  24. package/dist/community/advanced-data-card.js +4 -4
  25. package/dist/community/blocks.css-mistica.js +1 -1
  26. package/dist/community/example-component.css-mistica.js +1 -1
  27. package/dist/counter.css-mistica.js +1 -1
  28. package/dist/counter.js +8 -8
  29. package/dist/cover-hero.css-mistica.js +14 -15
  30. package/dist/credit-card-number-field.css-mistica.js +3 -3
  31. package/dist/date-field.css-mistica.js +1 -1
  32. package/dist/date-time-picker.css-mistica.js +1 -1
  33. package/dist/dialog.css-mistica.js +4 -4
  34. package/dist/dialog.js +14 -14
  35. package/dist/divider.css-mistica.js +2 -2
  36. package/dist/double-field.css-mistica.js +2 -2
  37. package/dist/drawer.css-mistica.js +1 -1
  38. package/dist/empty-state-card.css-mistica.js +1 -1
  39. package/dist/empty-state.css-mistica.js +5 -5
  40. package/dist/fade-in.css-mistica.js +1 -1
  41. package/dist/feedback.css-mistica.js +1 -1
  42. package/dist/fixed-footer-layout.css-mistica.js +4 -4
  43. package/dist/fixed-footer-layout.js +5 -5
  44. package/dist/form.css-mistica.js +1 -1
  45. package/dist/form.js +5 -5
  46. package/dist/grid-layout.css-mistica.js +3 -3
  47. package/dist/grid.css-mistica.js +122 -122
  48. package/dist/grid.js +9 -9
  49. package/dist/header.css-mistica.js +1 -1
  50. package/dist/hero.css-mistica.js +2 -2
  51. package/dist/highlighted-card.css-mistica.js +4 -4
  52. package/dist/horizontal-scroll.css-mistica.js +1 -1
  53. package/dist/horizontal-scroll.js +2 -2
  54. package/dist/icon-button.css-mistica.js +42 -42
  55. package/dist/icon-button.js +3 -3
  56. package/dist/icons/icon-chevron.css-mistica.js +2 -2
  57. package/dist/icons/icon-error.css-mistica.js +1 -1
  58. package/dist/image.css-mistica.js +3 -3
  59. package/dist/image.js +5 -5
  60. package/dist/index.d.ts +1 -1
  61. package/dist/index.js +6 -0
  62. package/dist/inline.css-mistica.js +10 -10
  63. package/dist/list.css-mistica.js +1 -1
  64. package/dist/loading-bar.css-mistica.js +1 -1
  65. package/dist/loading-bar.js +2 -2
  66. package/dist/loading-screen.css-mistica.js +4 -4
  67. package/dist/loading-screen.js +3 -3
  68. package/dist/logo.css-mistica.js +5 -5
  69. package/dist/maybe-dismissable.css-mistica.js +1 -1
  70. package/dist/menu.css-mistica.js +12 -12
  71. package/dist/menu.js +7 -7
  72. package/dist/mosaic.css-mistica.js +1 -1
  73. package/dist/mosaic.d.ts +2 -1
  74. package/dist/mosaic.js +33 -32
  75. package/dist/navigation-bar.css-mistica.js +16 -16
  76. package/dist/navigation-breadcrumbs.css-mistica.js +1 -1
  77. package/dist/package-version.js +1 -1
  78. package/dist/pin-field.css-mistica.js +1 -1
  79. package/dist/pin-field.js +2 -2
  80. package/dist/popover.css-mistica.js +1 -1
  81. package/dist/progress-bar.css-mistica.js +4 -4
  82. package/dist/progress-bar.js +2 -2
  83. package/dist/radio-button.css-mistica.js +14 -14
  84. package/dist/radio-button.d.ts +1 -0
  85. package/dist/radio-button.js +72 -61
  86. package/dist/rating.css-mistica.js +2 -2
  87. package/dist/rating.js +8 -8
  88. package/dist/responsive-layout.css-mistica.js +4 -4
  89. package/dist/responsive-layout.js +6 -6
  90. package/dist/screen-reader-only.css-mistica.js +1 -1
  91. package/dist/select.css-mistica.js +15 -15
  92. package/dist/select.js +9 -9
  93. package/dist/sheet-action-row.css-mistica.js +1 -1
  94. package/dist/sheet-common.css-mistica.js +1 -1
  95. package/dist/sheet-info.css-mistica.js +1 -1
  96. package/dist/skeletons.css-mistica.js +4 -4
  97. package/dist/skins/skin-contract.css-mistica.js +354 -354
  98. package/dist/slider.css-mistica.js +10 -10
  99. package/dist/slider.js +9 -9
  100. package/dist/snackbar.css-mistica.js +4 -4
  101. package/dist/spinner.css-mistica.js +1 -1
  102. package/dist/stack.css-mistica.js +5 -5
  103. package/dist/stacking-group.css-mistica.js +1 -1
  104. package/dist/stepper.css-mistica.js +2 -2
  105. package/dist/stepper.js +3 -3
  106. package/dist/switch-component.css-mistica.js +26 -26
  107. package/dist/table.css-mistica.js +8 -8
  108. package/dist/table.js +8 -8
  109. package/dist/tabs.css-mistica.js +12 -12
  110. package/dist/tag.css-mistica.js +1 -1
  111. package/dist/text-field-base.css-mistica.js +1 -1
  112. package/dist/text-field-base.js +126 -115
  113. package/dist/text-field-components.css-mistica.js +6 -6
  114. package/dist/text-field-components.js +2 -2
  115. package/dist/text-link.css-mistica.js +5 -5
  116. package/dist/text-tokens.d.ts +8 -0
  117. package/dist/text-tokens.js +142 -110
  118. package/dist/text.css-mistica.js +7 -7
  119. package/dist/text.js +7 -7
  120. package/dist/theme-context.css-mistica.js +394 -394
  121. package/dist/timeline.css-mistica.js +10 -10
  122. package/dist/timer.css-mistica.js +6 -6
  123. package/dist/tooltip.css-mistica.js +1 -1
  124. package/dist/touchable.css-mistica.js +1 -1
  125. package/dist/utils/aspect-ratio-support.css-mistica.js +3 -3
  126. package/dist/utils/aspect-ratio-support.js +3 -3
  127. package/dist/video.css-mistica.js +1 -1
  128. package/dist/video.js +2 -2
  129. package/dist/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +1 -1
  130. package/dist-es/accordion.css-mistica.js +6 -6
  131. package/dist-es/align.css-mistica.js +1 -1
  132. package/dist-es/avatar.css-mistica.js +1 -1
  133. package/dist-es/badge.css-mistica.js +1 -1
  134. package/dist-es/box.css-mistica.js +13 -13
  135. package/dist-es/box.js +9 -9
  136. package/dist-es/boxed.css-mistica.js +23 -23
  137. package/dist-es/button-group.css-mistica.js +1 -1
  138. package/dist-es/button-group.js +4 -4
  139. package/dist-es/button-layout.css-mistica.js +13 -13
  140. package/dist-es/button.css-mistica.js +16 -16
  141. package/dist-es/callout.css-mistica.js +5 -5
  142. package/dist-es/callout.js +5 -5
  143. package/dist-es/card.css-mistica.js +3 -3
  144. package/dist-es/carousel.css-mistica.js +9 -8
  145. package/dist-es/carousel.js +587 -407
  146. package/dist-es/checkbox.css-mistica.js +7 -7
  147. package/dist-es/checkbox.js +6 -6
  148. package/dist-es/chip.css-mistica.js +12 -12
  149. package/dist-es/circle.css-mistica.js +1 -1
  150. package/dist-es/community/advanced-data-card.css-mistica.js +6 -6
  151. package/dist-es/community/advanced-data-card.js +11 -11
  152. package/dist-es/community/blocks.css-mistica.js +1 -1
  153. package/dist-es/community/example-component.css-mistica.js +1 -1
  154. package/dist-es/counter.css-mistica.js +1 -1
  155. package/dist-es/counter.js +8 -8
  156. package/dist-es/cover-hero.css-mistica.js +4 -5
  157. package/dist-es/credit-card-number-field.css-mistica.js +3 -3
  158. package/dist-es/date-field.css-mistica.js +1 -1
  159. package/dist-es/date-time-picker.css-mistica.js +1 -1
  160. package/dist-es/dialog.css-mistica.js +4 -4
  161. package/dist-es/dialog.js +31 -31
  162. package/dist-es/divider.css-mistica.js +2 -2
  163. package/dist-es/double-field.css-mistica.js +2 -2
  164. package/dist-es/drawer.css-mistica.js +1 -1
  165. package/dist-es/empty-state-card.css-mistica.js +1 -1
  166. package/dist-es/empty-state.css-mistica.js +5 -5
  167. package/dist-es/empty-state.js +7 -7
  168. package/dist-es/fade-in.css-mistica.js +1 -1
  169. package/dist-es/feedback.css-mistica.js +1 -1
  170. package/dist-es/fixed-footer-layout.css-mistica.js +4 -4
  171. package/dist-es/fixed-footer-layout.js +5 -5
  172. package/dist-es/form.css-mistica.js +1 -1
  173. package/dist-es/form.js +5 -5
  174. package/dist-es/grid-layout.css-mistica.js +3 -3
  175. package/dist-es/grid.css-mistica.js +122 -122
  176. package/dist-es/grid.js +10 -10
  177. package/dist-es/header.css-mistica.js +1 -1
  178. package/dist-es/hero.css-mistica.js +2 -2
  179. package/dist-es/highlighted-card.css-mistica.js +4 -4
  180. package/dist-es/horizontal-scroll.css-mistica.js +1 -1
  181. package/dist-es/horizontal-scroll.js +2 -2
  182. package/dist-es/icon-button.css-mistica.js +42 -42
  183. package/dist-es/icon-button.js +3 -3
  184. package/dist-es/icons/icon-chevron.css-mistica.js +2 -2
  185. package/dist-es/icons/icon-error.css-mistica.js +1 -1
  186. package/dist-es/image.css-mistica.js +3 -3
  187. package/dist-es/image.js +5 -5
  188. package/dist-es/index.js +1843 -1843
  189. package/dist-es/inline.css-mistica.js +10 -10
  190. package/dist-es/list.css-mistica.js +1 -1
  191. package/dist-es/list.js +18 -18
  192. package/dist-es/loading-bar.css-mistica.js +1 -1
  193. package/dist-es/loading-bar.js +6 -6
  194. package/dist-es/loading-screen.css-mistica.js +4 -4
  195. package/dist-es/loading-screen.js +8 -8
  196. package/dist-es/logo.css-mistica.js +5 -5
  197. package/dist-es/maybe-dismissable.css-mistica.js +1 -1
  198. package/dist-es/menu.css-mistica.js +12 -12
  199. package/dist-es/menu.js +7 -7
  200. package/dist-es/mosaic.css-mistica.js +1 -1
  201. package/dist-es/mosaic.js +47 -46
  202. package/dist-es/navigation-bar.css-mistica.js +16 -16
  203. package/dist-es/navigation-breadcrumbs.css-mistica.js +1 -1
  204. package/dist-es/package-version.js +1 -1
  205. package/dist-es/pin-field.css-mistica.js +1 -1
  206. package/dist-es/pin-field.js +8 -8
  207. package/dist-es/popover.css-mistica.js +1 -1
  208. package/dist-es/progress-bar.css-mistica.js +4 -4
  209. package/dist-es/progress-bar.js +10 -10
  210. package/dist-es/radio-button.css-mistica.js +14 -14
  211. package/dist-es/radio-button.js +98 -88
  212. package/dist-es/rating.css-mistica.js +2 -2
  213. package/dist-es/rating.js +12 -12
  214. package/dist-es/responsive-layout.css-mistica.js +4 -4
  215. package/dist-es/responsive-layout.js +15 -15
  216. package/dist-es/screen-reader-only.css-mistica.js +1 -1
  217. package/dist-es/select.css-mistica.js +15 -15
  218. package/dist-es/select.js +15 -15
  219. package/dist-es/sheet-action-row.css-mistica.js +1 -1
  220. package/dist-es/sheet-common.css-mistica.js +1 -1
  221. package/dist-es/sheet-common.js +6 -6
  222. package/dist-es/sheet-info.css-mistica.js +1 -1
  223. package/dist-es/skeletons.css-mistica.js +4 -4
  224. package/dist-es/skins/skin-contract.css-mistica.js +354 -354
  225. package/dist-es/slider.css-mistica.js +10 -10
  226. package/dist-es/slider.js +9 -9
  227. package/dist-es/snackbar.css-mistica.js +4 -4
  228. package/dist-es/spinner.css-mistica.js +1 -1
  229. package/dist-es/stack.css-mistica.js +5 -5
  230. package/dist-es/stacking-group.css-mistica.js +1 -1
  231. package/dist-es/stepper.css-mistica.js +2 -2
  232. package/dist-es/stepper.js +3 -3
  233. package/dist-es/style.css +1 -1
  234. package/dist-es/switch-component.css-mistica.js +26 -26
  235. package/dist-es/table.css-mistica.js +8 -8
  236. package/dist-es/table.js +12 -12
  237. package/dist-es/tabs.css-mistica.js +12 -12
  238. package/dist-es/tag.css-mistica.js +1 -1
  239. package/dist-es/tag.js +8 -8
  240. package/dist-es/text-field-base.css-mistica.js +1 -1
  241. package/dist-es/text-field-base.js +153 -141
  242. package/dist-es/text-field-components.css-mistica.js +5 -5
  243. package/dist-es/text-field-components.js +4 -4
  244. package/dist-es/text-link.css-mistica.js +5 -5
  245. package/dist-es/text-tokens.js +79 -59
  246. package/dist-es/text.css-mistica.js +7 -7
  247. package/dist-es/text.js +6 -6
  248. package/dist-es/theme-context.css-mistica.js +394 -394
  249. package/dist-es/timeline.css-mistica.js +10 -10
  250. package/dist-es/timeline.js +4 -4
  251. package/dist-es/timer.css-mistica.js +6 -6
  252. package/dist-es/tooltip.css-mistica.js +1 -1
  253. package/dist-es/touchable.css-mistica.js +1 -1
  254. package/dist-es/utils/aspect-ratio-support.css-mistica.js +3 -3
  255. package/dist-es/utils/aspect-ratio-support.js +10 -10
  256. package/dist-es/video.css-mistica.js +1 -1
  257. package/dist-es/video.js +5 -5
  258. package/dist-es/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +1 -1
  259. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
  import "./inline.css.ts.vanilla.css-mistica.js";
2
- var a = "v16_31_kkfbnva", k = "v16_31_kkfbnv9", _ = "v16_31_kkfbnv8", r = "v16_31_kkfbnvc", e = "v16_31_kkfbnvd", n = "v16_31_kkfbnve", b = {
3
- space: "var(--v16_31_kkfbnv0)",
4
- spaceMobile: "var(--v16_31_kkfbnv1)",
5
- spaceTablet: "var(--v16_31_kkfbnv2)",
6
- spaceDesktop: "var(--v16_31_kkfbnv3)",
7
- verticalSpace: "var(--v16_31_kkfbnv4)",
8
- verticalSpaceMobile: "var(--v16_31_kkfbnv5)",
9
- verticalSpaceTablet: "var(--v16_31_kkfbnv6)",
10
- verticalSpaceDesktop: "var(--v16_31_kkfbnv7)"
11
- }, f = "v16_31_kkfbnvb";
2
+ var a = "v16_32_kkfbnva", k = "v16_32_kkfbnv9", _ = "v16_32_kkfbnv8", r = "v16_32_kkfbnvc", e = "v16_32_kkfbnvd", n = "v16_32_kkfbnve", b = {
3
+ space: "var(--v16_32_kkfbnv0)",
4
+ spaceMobile: "var(--v16_32_kkfbnv1)",
5
+ spaceTablet: "var(--v16_32_kkfbnv2)",
6
+ spaceDesktop: "var(--v16_32_kkfbnv3)",
7
+ verticalSpace: "var(--v16_32_kkfbnv4)",
8
+ verticalSpaceMobile: "var(--v16_32_kkfbnv5)",
9
+ verticalSpaceTablet: "var(--v16_32_kkfbnv6)",
10
+ verticalSpaceDesktop: "var(--v16_32_kkfbnv7)"
11
+ }, f = "v16_32_kkfbnvb";
12
12
  export { a as fullWidth, k as inline, _ as marginInline, r as noFullWidth, e as stringSpace, n as stringSpaceWithWrap, b as vars, f as wrap };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./list.css.ts.vanilla.css-mistica.js";
3
- var n = "v16_31_1y2v1nfis v16_31_1y2v1nfja v16_31_1y2v1nfjc", f = "v16_31_1y2v1nfcr", y = "v16_31_1y2v1nfis v16_31_1y2v1nfj7 v16_31_1y2v1nfj1 v16_31_1y2v1nfki v16_31_1y2v1nfjw v16_31_1y2v1nfja", a = "v16_31_2buj9g2", r = "v16_31_1y2v1nfis v16_31_1y2v1nfj7", i = "v16_31_1y2v1nf90 v16_31_1y2v1nfa9 v16_31_1y2v1nfis v16_31_1y2v1nfjf v16_31_1y2v1nfl5", t = "v16_31_2buj9gj v16_31_1y2v1nfis v16_31_1y2v1nfj7", j = "v16_31_2buj9gi", e = "v16_31_2buj9g0", u = "v16_31_1y2v1nfis v16_31_1y2v1nfix v16_31_1y2v1nfjw", o = "v16_31_2buj9gp v16_31_1y2v1nfis", b = "v16_31_2buj9gn v16_31_1y2v1nf8l v16_31_1y2v1nf9u v16_31_1y2v1nfb3 v16_31_1y2v1nfcc v16_31_1y2v1nfla v16_31_1y2v1nf8k v16_31_1y2v1nfbi v16_31_1y2v1nfcr v16_31_1y2v1nfiu v16_31_1y2v1nfjd", c = "v16_31_2buj9gr v16_31_1y2v1nf8l v16_31_1y2v1nf9u v16_31_1y2v1nfb3 v16_31_1y2v1nfcc v16_31_1y2v1nfla v16_31_1y2v1nf8k v16_31_1y2v1nfbi v16_31_1y2v1nfcr v16_31_1y2v1nfis v16_31_1y2v1nfj7 v16_31_1y2v1nfjc v16_31_1y2v1nfjg v16_31_1y2v1nfjw", g = "v16_31_1y2v1nflt", d = "v16_31_2buj9gg", l = "v16_31_2buj9gh", s = "v16_31_1y2v1nfjf", h = "v16_31_1y2v1nfis v16_31_1y2v1nfiy v16_31_1y2v1nfje", w = "v16_31_2buj9g7 v16_31_1y2v1nf8l v16_31_1y2v1nf9u v16_31_1y2v1nfb3 v16_31_1y2v1nfcc v16_31_1y2v1nfjf v16_31_1y2v1nfla v16_31_1y2v1nf8k v16_31_1y2v1nfiu v16_31_1y2v1nfjw", k = "v16_31_1y2v1nfbi v16_31_1y2v1nfcr", p = "v16_31_2buj9g3", C = "v16_31_2buj9g4";
3
+ var n = "v16_32_1y2v1nfis v16_32_1y2v1nfja v16_32_1y2v1nfjc", f = "v16_32_1y2v1nfcr", y = "v16_32_1y2v1nfis v16_32_1y2v1nfj7 v16_32_1y2v1nfj1 v16_32_1y2v1nfki v16_32_1y2v1nfjw v16_32_1y2v1nfja", a = "v16_32_2buj9g2", r = "v16_32_1y2v1nfis v16_32_1y2v1nfj7", i = "v16_32_1y2v1nf90 v16_32_1y2v1nfa9 v16_32_1y2v1nfis v16_32_1y2v1nfjf v16_32_1y2v1nfl5", t = "v16_32_2buj9gj v16_32_1y2v1nfis v16_32_1y2v1nfj7", j = "v16_32_2buj9gi", e = "v16_32_2buj9g0", u = "v16_32_1y2v1nfis v16_32_1y2v1nfix v16_32_1y2v1nfjw", o = "v16_32_2buj9gp v16_32_1y2v1nfis", b = "v16_32_2buj9gn v16_32_1y2v1nf8l v16_32_1y2v1nf9u v16_32_1y2v1nfb3 v16_32_1y2v1nfcc v16_32_1y2v1nfla v16_32_1y2v1nf8k v16_32_1y2v1nfbi v16_32_1y2v1nfcr v16_32_1y2v1nfiu v16_32_1y2v1nfjd", c = "v16_32_2buj9gr v16_32_1y2v1nf8l v16_32_1y2v1nf9u v16_32_1y2v1nfb3 v16_32_1y2v1nfcc v16_32_1y2v1nfla v16_32_1y2v1nf8k v16_32_1y2v1nfbi v16_32_1y2v1nfcr v16_32_1y2v1nfis v16_32_1y2v1nfj7 v16_32_1y2v1nfjc v16_32_1y2v1nfjg v16_32_1y2v1nfjw", g = "v16_32_1y2v1nflt", d = "v16_32_2buj9gg", l = "v16_32_2buj9gh", s = "v16_32_1y2v1nfjf", h = "v16_32_1y2v1nfis v16_32_1y2v1nfiy v16_32_1y2v1nfje", w = "v16_32_2buj9g7 v16_32_1y2v1nf8l v16_32_1y2v1nf9u v16_32_1y2v1nfb3 v16_32_1y2v1nfcc v16_32_1y2v1nfjf v16_32_1y2v1nfla v16_32_1y2v1nf8k v16_32_1y2v1nfiu v16_32_1y2v1nfjw", k = "v16_32_1y2v1nfbi v16_32_1y2v1nfcr", p = "v16_32_2buj9g3", C = "v16_32_2buj9g4";
4
4
  export { n as asset, f as assetContainer, y as badge, a as boxed, r as center, i as content, t as detail, j as detailRight, e as disabled, u as dualActionContainer, o as dualActionDivider, b as dualActionLeft, c as dualActionRight, g as pointer, d as rightContent, l as rightRestrictedWidth, s as row, h as rowBody, w as rowContent, k as rowContentPadding, p as touchableBackground, C as touchableBackgroundInverse };
package/dist-es/list.js CHANGED
@@ -84,17 +84,17 @@ import c from "classnames";
84
84
  import { BaseTouchable as ae } from "./touchable.js";
85
85
  import { Text3 as ye, Text1 as we, Text2 as q } from "./text.js";
86
86
  import s from "./box.js";
87
- import N from "./stack.js";
87
+ import T from "./stack.js";
88
88
  import Re from "./badge.js";
89
89
  import { useIsInverseOrMediaVariant as oe } from "./theme-variant-context.js";
90
90
  import Be from "./generated/mistica-icons/icon-chevron-right-filled.js";
91
91
  import Ie from "./switch-component.js";
92
92
  import ie, { useRadioContext as Ce } from "./radio-button.js";
93
- import Te from "./checkbox.js";
94
- import { InternalBoxed as Ne } from "./boxed.js";
93
+ import Ne from "./checkbox.js";
94
+ import { InternalBoxed as Te } from "./boxed.js";
95
95
  import Ae from "./divider.js";
96
96
  import { getPrefixedDataAttributes as D } from "./utils/dom.js";
97
- import { rowContent as G, touchableBackground as J, touchableBackgroundInverse as K, pointer as re, rowContentPadding as Le, row as ke, boxed as Se, content as Ve, assetContainer as Ee, center as Q, disabled as T, asset as Oe, rowBody as Xe, badge as De, rightContent as Me, rightRestrictedWidth as We, detail as je, detailRight as Fe, dualActionContainer as He, dualActionLeft as Pe, dualActionDivider as ze, dualActionRight as qe } from "./list.css-mistica.js";
97
+ import { rowContent as G, touchableBackground as J, touchableBackgroundInverse as K, pointer as re, rowContentPadding as Le, row as ke, boxed as Se, content as Ve, assetContainer as Ee, center as Q, disabled as N, asset as Oe, rowBody as Xe, badge as De, rightContent as Me, rightRestrictedWidth as We, detail as je, detailRight as Fe, dualActionContainer as He, dualActionLeft as Pe, dualActionDivider as ze, dualActionRight as qe } from "./list.css-mistica.js";
98
98
  import { vars as Ge } from "./image.css-mistica.js";
99
99
  import { vars as o } from "./skins/skin-contract.css-mistica.js";
100
100
  import { applyCssVars as Je } from "./utils/css.js";
@@ -127,7 +127,7 @@ const Qe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
127
127
  X && /* @__PURE__ */ t("div", {
128
128
  className: c(Ee, {
129
129
  [Q]: B,
130
- [T]: g
130
+ [N]: g
131
131
  }),
132
132
  "aria-hidden": !0,
133
133
  "data-testid": "asset",
@@ -142,7 +142,7 @@ const Qe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
142
142
  }),
143
143
  /* @__PURE__ */ A("div", {
144
144
  className: c(Xe, {
145
- [T]: g
145
+ [N]: g
146
146
  }),
147
147
  style: {
148
148
  justifyContent: B ? "center" : "flex-start"
@@ -215,7 +215,7 @@ const Qe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
215
215
  paddingLeft: 16,
216
216
  children: /* @__PURE__ */ t("div", {
217
217
  className: c(De, {
218
- [T]: g
218
+ [N]: g
219
219
  }),
220
220
  children: /* @__PURE__ */ t(Re, {
221
221
  value: S === !0 ? void 0 : S
@@ -229,7 +229,7 @@ const Qe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
229
229
  children: [
230
230
  h && /* @__PURE__ */ t("div", {
231
231
  className: c(je, {
232
- [T]: g
232
+ [N]: g
233
233
  }),
234
234
  children: /* @__PURE__ */ t(q, {
235
235
  regular: !0,
@@ -244,7 +244,7 @@ const Qe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
244
244
  R && /* @__PURE__ */ t("div", {
245
245
  className: c({
246
246
  [Fe]: !!h,
247
- [T]: g
247
+ [N]: g
248
248
  }),
249
249
  ref: u,
250
250
  "data-testid": "endSlot",
@@ -255,7 +255,7 @@ const Qe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
255
255
  paddingLeft: h || R ? 4 : 0
256
256
  },
257
257
  className: c(Q, {
258
- [T]: g
258
+ [N]: g
259
259
  }),
260
260
  "data-testid": "chevron",
261
261
  children: /* @__PURE__ */ t(Be, {
@@ -399,7 +399,7 @@ const Qe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
399
399
  }));
400
400
  if (e.switch || e.checkbox) {
401
401
  var _ref, _ref1;
402
- const r = e.switch ? Ie : Te, n = (_ref1 = (_ref = (ee = e.switch) == null ? void 0 : ee.name) !== null && _ref !== void 0 ? _ref : (te = e.checkbox) == null ? void 0 : te.name) !== null && _ref1 !== void 0 ? _ref1 : i;
402
+ const r = e.switch ? Ie : Ne, n = (_ref1 = (_ref = (ee = e.switch) == null ? void 0 : ee.name) !== null && _ref !== void 0 ? _ref : (te = e.checkbox) == null ? void 0 : te.name) !== null && _ref1 !== void 0 ? _ref1 : i;
403
403
  return O ? H(/* @__PURE__ */ t(r, {
404
404
  disabled: v,
405
405
  name: n,
@@ -428,7 +428,7 @@ const Qe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
428
428
  role: u,
429
429
  children: C({
430
430
  labelId: ge,
431
- control: /* @__PURE__ */ t(N, {
431
+ control: /* @__PURE__ */ t(T, {
432
432
  space: "around",
433
433
  children: z
434
434
  })
@@ -443,7 +443,7 @@ const Qe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
443
443
  "aria-labelledby": i,
444
444
  render: (param)=>{
445
445
  let { controlElement: r } = param;
446
- return /* @__PURE__ */ t(N, {
446
+ return /* @__PURE__ */ t(T, {
447
447
  space: "around",
448
448
  children: /* @__PURE__ */ t(s, {
449
449
  paddingX: 16,
@@ -462,7 +462,7 @@ const Qe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
462
462
  role: u,
463
463
  children: C({
464
464
  labelId: i,
465
- control: /* @__PURE__ */ t(N, {
465
+ control: /* @__PURE__ */ t(T, {
466
466
  space: "around",
467
467
  children: r
468
468
  })
@@ -472,7 +472,7 @@ const Qe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
472
472
  }), !0);
473
473
  if (e.iconButton) return O ? H(/* @__PURE__ */ t(s, {
474
474
  padding: 16,
475
- children: /* @__PURE__ */ t(N, {
475
+ children: /* @__PURE__ */ t(T, {
476
476
  space: "around",
477
477
  children: e.iconButton.Icon ? /* @__PURE__ */ t(ne, _object_spread_props(_object_spread({}, e.iconButton), {
478
478
  disabled: e.disabled
@@ -484,7 +484,7 @@ const Qe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
484
484
  paddingX: 16,
485
485
  children: C({
486
486
  labelId: i,
487
- control: /* @__PURE__ */ t(N, {
487
+ control: /* @__PURE__ */ t(T, {
488
488
  space: "around",
489
489
  children: e.iconButton.Icon ? /* @__PURE__ */ t(ne, _object_spread_props(_object_spread({}, e.iconButton), {
490
490
  disabled: e.disabled,
@@ -556,7 +556,7 @@ const Qe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
556
556
  var { dataAttributes: e } = _param, a = _object_without_properties(_param, [
557
557
  "dataAttributes"
558
558
  ]);
559
- return /* @__PURE__ */ t(Ne, {
559
+ return /* @__PURE__ */ t(Te, {
560
560
  overflow: "visible",
561
561
  className: Se,
562
562
  variant: a.isInverse ? "inverse" : "default",
@@ -569,7 +569,7 @@ const Qe = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
569
569
  });
570
570
  }), Rt = (param)=>{
571
571
  let { children: e, ariaLabelledby: a, role: i = "list", dataAttributes: l, "aria-live": d = "off", "aria-atomic": b = !1 } = param;
572
- return /* @__PURE__ */ t(N, {
572
+ return /* @__PURE__ */ t(T, {
573
573
  space: 16,
574
574
  role: i,
575
575
  "aria-labelledby": a,
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./loading-bar.css.ts.vanilla.css-mistica.js";
3
- var n = "v16_31_1num3qg3", f = "v16_31_1num3qg2 v16_31_1y2v1nfio v16_31_1y2v1nfm0 v16_31_1y2v1nfmf v16_31_1y2v1nfmu", r = "v16_31_1num3qg7 v16_31_1y2v1nfin v16_31_1y2v1nfjf v16_31_1y2v1nfjw", y = "v16_31_1y2v1nfjf v16_31_1y2v1nflu v16_31_1y2v1nfim v16_31_1y2v1nf5t v16_31_1y2v1nfjz";
3
+ var n = "v16_32_1num3qg3", f = "v16_32_1num3qg2 v16_32_1y2v1nfio v16_32_1y2v1nfm0 v16_32_1y2v1nfmf v16_32_1y2v1nfmu", r = "v16_32_1num3qg7 v16_32_1y2v1nfin v16_32_1y2v1nfjf v16_32_1y2v1nfjw", y = "v16_32_1y2v1nfjf v16_32_1y2v1nflu v16_32_1y2v1nfim v16_32_1y2v1nf5t v16_32_1y2v1nfjz";
4
4
  export { n as hidden, f as portal, r as progress, y as progressContainer };
@@ -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 n } from "./utils/dom.js";
58
- import d from "classnames";
57
+ import { getPrefixedDataAttributes as d } from "./utils/dom.js";
58
+ import n from "classnames";
59
59
  const l = (param)=>{
60
60
  let { visible: a, dataAttributes: o } = param;
61
61
  return /* @__PURE__ */ r(s, {
62
- className: d(t, {
62
+ className: n(t, {
63
63
  [e]: !a
64
64
  }),
65
65
  children: /* @__PURE__ */ r("div", _object_spread_props(_object_spread({
66
66
  className: i
67
- }, n(o, "LoadingBar")), {
67
+ }, d(o, "LoadingBar")), {
68
68
  children: /* @__PURE__ */ r("div", {
69
69
  className: m
70
70
  })
71
71
  }))
72
72
  });
73
- }, u = l;
74
- export { u as default };
73
+ }, h = l;
74
+ export { h as default };
@@ -1,7 +1,7 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./loading-screen.css.ts.vanilla.css-mistica.js";
3
- var _ = 500, n = "v16_31_flke8b1 v16_31_1y2v1nfis v16_31_1y2v1nfiy v16_31_1y2v1nfj7", r = "v16_31_1y2v1nfje v16_31_1y2v1nfis v16_31_1y2v1nfiy v16_31_1y2v1nfj7 v16_31_1y2v1nfj1", a = "v16_31_flke8b9 v16_31_1y2v1nf96", f = "v16_31_flke8bb", i = "v16_31_flke8bc", l = "v16_31_flke8bf", o = "v16_31_flke8be", d = {
4
- default: "v16_31_flke8b4",
5
- inverse: "v16_31_flke8b5"
6
- }, t = "v16_31_flke8b3", k = "v16_31_flke8b6";
3
+ var _ = 500, n = "v16_32_flke8b1 v16_32_1y2v1nfis v16_32_1y2v1nfiy v16_32_1y2v1nfj7", r = "v16_32_1y2v1nfje v16_32_1y2v1nfis v16_32_1y2v1nfiy v16_32_1y2v1nfj7 v16_32_1y2v1nfj1", a = "v16_32_flke8b9 v16_32_1y2v1nf96", f = "v16_32_flke8bb", i = "v16_32_flke8bc", l = "v16_32_flke8bf", o = "v16_32_flke8be", d = {
4
+ default: "v16_32_flke8b4",
5
+ inverse: "v16_32_flke8b5"
6
+ }, t = "v16_32_flke8b3", k = "v16_32_flke8b6";
7
7
  export { _ as inOutAnimationMs, n as loadingScreen, r as loadingScreenChildren, a as loadingScreenText, f as loadingScreenTextAnimated, i as loadingScreenTextAnimatedOut, l as logo, o as pulseLogo, d as screenBackground, t as screenBackgroundAnimated, k as screenBackgroundFadeOut };
@@ -80,13 +80,13 @@ 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 N } from "./overscroll-color-context.js";
83
+ import { useSetOverscrollColor as x } from "./overscroll-color-context.js";
84
84
  import { ThemeVariant as B } from "./theme-variant-context.js";
85
85
  import { vars as h } from "./skins/skin-contract.css-mistica.js";
86
86
  import E from "./responsive-layout.js";
87
87
  import { Text4 as I, Text2 as O } from "./text.js";
88
88
  import w from "./stack.js";
89
- import { inOutAnimationMs as k, loadingScreen as V, screenBackground as j, screenBackgroundFadeOut as z, screenBackgroundAnimated as D, loadingScreenChildren as P, loadingScreenText as _, loadingScreenTextAnimatedOut as F, loadingScreenTextAnimated as R, logo as K, pulseLogo as L } from "./loading-screen.css-mistica.js";
89
+ import { inOutAnimationMs as k, loadingScreen as V, screenBackground as j, screenBackgroundFadeOut as z, screenBackgroundAnimated as D, loadingScreenChildren as P, loadingScreenText as _, loadingScreenTextAnimatedOut as F, loadingScreenTextAnimated as N, logo as K, pulseLogo as L } from "./loading-screen.css-mistica.js";
90
90
  import M from "./spinner.js";
91
91
  import T from "classnames";
92
92
  import { Logo as W } from "./logo.js";
@@ -143,7 +143,7 @@ const J = (param)=>{
143
143
  space: 8,
144
144
  children: [
145
145
  f && /* @__PURE__ */ n("div", {
146
- className: e ? R : void 0,
146
+ className: e ? N : void 0,
147
147
  children: /* @__PURE__ */ n(I, {
148
148
  textAlign: "center",
149
149
  regular: !0,
@@ -152,7 +152,7 @@ const J = (param)=>{
152
152
  })
153
153
  }),
154
154
  d && /* @__PURE__ */ n("div", {
155
- className: e ? R : void 0,
155
+ className: e ? N : void 0,
156
156
  style: {
157
157
  animationDelay: "200ms"
158
158
  },
@@ -168,7 +168,7 @@ const J = (param)=>{
168
168
  })
169
169
  }, c)
170
170
  });
171
- }, x = /*#__PURE__*/ o.forwardRef((param, f)=>{
171
+ }, R = /*#__PURE__*/ o.forwardRef((param, f)=>{
172
172
  let { isInverse: e, children: r, isLoading: t = !0, animateText: i, animateBackground: c, onClose: s, dataAttributes: a, title: u, description: l, texts: m = [
173
173
  {
174
174
  title: u,
@@ -213,7 +213,7 @@ const J = (param)=>{
213
213
  s
214
214
  ]);
215
215
  const y = !r;
216
- return N(e ? {
216
+ return x(e ? {
217
217
  topColor: h.colors.backgroundBrandTop
218
218
  } : {}), /* @__PURE__ */ S(B, {
219
219
  isInverse: e,
@@ -259,7 +259,7 @@ const J = (param)=>{
259
259
  })
260
260
  ]
261
261
  });
262
- }), he = /*#__PURE__*/ o.forwardRef((e, r)=>/* @__PURE__ */ n(x, _object_spread_props(_object_spread({
262
+ }), he = /*#__PURE__*/ o.forwardRef((e, r)=>/* @__PURE__ */ n(R, _object_spread_props(_object_spread({
263
263
  ref: r
264
264
  }, e), {
265
265
  dataAttributes: _object_spread({
@@ -313,7 +313,7 @@ const J = (param)=>{
313
313
  }, d = ()=>{
314
314
  l.current && m.current && (r == null || r());
315
315
  };
316
- return /* @__PURE__ */ n(x, _object_spread_props(_object_spread({
316
+ return /* @__PURE__ */ n(R, _object_spread_props(_object_spread({
317
317
  ref: c,
318
318
  isInverse: s.brandLoadingScreen === "inverse"
319
319
  }, i), {
@@ -1,8 +1,8 @@
1
1
  import "./logo.css.ts.vanilla.css-mistica.js";
2
- var _ = "v16_31_140ft6x5", r = "v16_31_140ft6x4", t = {
3
- size: "var(--v16_31_140ft6x0)",
4
- sizeMobile: "var(--v16_31_140ft6x1)",
5
- sizeTablet: "var(--v16_31_140ft6x2)",
6
- sizeDesktop: "var(--v16_31_140ft6x3)"
2
+ var _ = "v16_32_140ft6x5", r = "v16_32_140ft6x4", t = {
3
+ size: "var(--v16_32_140ft6x0)",
4
+ sizeMobile: "var(--v16_32_140ft6x1)",
5
+ sizeTablet: "var(--v16_32_140ft6x2)",
6
+ sizeDesktop: "var(--v16_32_140ft6x3)"
7
7
  };
8
8
  export { _ as logoContainer, r as svg, t as vars };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./maybe-dismissable.css.ts.vanilla.css-mistica.js";
3
- var n = "v16_31_cim30m2 v16_31_1y2v1nf8u v16_31_1y2v1nfa3 v16_31_1y2v1nfbc v16_31_1y2v1nfcl v16_31_1y2v1nfin v16_31_1y2v1nfm0 v16_31_1y2v1nfmu", i = "v16_31_1y2v1nfim v16_31_1y2v1nfis v16_31_1y2v1nfja";
3
+ var n = "v16_32_cim30m2 v16_32_1y2v1nf8u v16_32_1y2v1nfa3 v16_32_1y2v1nfbc v16_32_1y2v1nfcl v16_32_1y2v1nfin v16_32_1y2v1nfm0 v16_32_1y2v1nfmu", i = "v16_32_1y2v1nfim v16_32_1y2v1nfis v16_32_1y2v1nfja";
4
4
  export { n as dismissableButton, i as dismissableContainer };
@@ -1,17 +1,17 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./menu.css.ts.vanilla.css-mistica.js";
3
- var k = "v16_31_2k0k3uk", e = "v16_31_2k0k3uj", n = "v16_31_2k0k3u8 v16_31_1y2v1nf8u v16_31_1y2v1nfa3 v16_31_1y2v1nfbc v16_31_1y2v1nfcl v16_31_1y2v1nf4c v16_31_1y2v1nflm v16_31_1y2v1nfis v16_31_1y2v1nfiy v16_31_1y2v1nfin", r = "v16_31_2k0k3ud", a = "v16_31_2k0k3ug", t = "v16_31_2k0k3uf", u = "v16_31_2k0k3ue", i = "v16_31_2k0k3ui v16_31_1y2v1nf8u v16_31_1y2v1nfa3", m = {
4
- enter: "v16_31_2k0k3u9",
5
- enterActive: "v16_31_2k0k3ua",
6
- exit: "v16_31_2k0k3ub",
7
- exitActive: "v16_31_2k0k3uc"
3
+ var k = "v16_32_2k0k3uk", e = "v16_32_2k0k3uj", n = "v16_32_2k0k3u8 v16_32_1y2v1nf8u v16_32_1y2v1nfa3 v16_32_1y2v1nfbc v16_32_1y2v1nfcl v16_32_1y2v1nf4c v16_32_1y2v1nflm v16_32_1y2v1nfis v16_32_1y2v1nfiy v16_32_1y2v1nfin", r = "v16_32_2k0k3ud", a = "v16_32_2k0k3ug", t = "v16_32_2k0k3uf", u = "v16_32_2k0k3ue", i = "v16_32_2k0k3ui v16_32_1y2v1nf8u v16_32_1y2v1nfa3", m = {
4
+ enter: "v16_32_2k0k3u9",
5
+ enterActive: "v16_32_2k0k3ua",
6
+ exit: "v16_32_2k0k3ub",
7
+ exitActive: "v16_32_2k0k3uc"
8
8
  }, f = {
9
- top: "var(--v16_31_2k0k3u0)",
10
- bottom: "var(--v16_31_2k0k3u1)",
11
- left: "var(--v16_31_2k0k3u2)",
12
- right: "var(--v16_31_2k0k3u4)",
13
- width: "var(--v16_31_2k0k3u3)",
14
- maxHeight: "var(--v16_31_2k0k3u5)",
15
- transformOrigin: "var(--v16_31_2k0k3u6)"
9
+ top: "var(--v16_32_2k0k3u0)",
10
+ bottom: "var(--v16_32_2k0k3u1)",
11
+ left: "var(--v16_32_2k0k3u2)",
12
+ right: "var(--v16_32_2k0k3u4)",
13
+ width: "var(--v16_32_2k0k3u3)",
14
+ maxHeight: "var(--v16_32_2k0k3u5)",
15
+ transformOrigin: "var(--v16_32_2k0k3u6)"
16
16
  };
17
17
  export { k as iconContainer, e as itemContent, n as menuContainer, r as menuItem, a as menuItemDisabled, t as menuItemEnabled, u as menuItemHovered, i as menuSectionDivider, m as menuTransitionClasses, f as vars };
package/dist-es/menu.js CHANGED
@@ -76,20 +76,20 @@ const ke = 120, Z = /*#__PURE__*/ s.createContext({
76
76
  isMenuOpen: !1,
77
77
  setFocusedItem: ()=>{},
78
78
  closeMenu: ()=>{}
79
- }), Ae = ()=>s.useContext(Z), y = (i)=>i ? Array.from(i.querySelectorAll("[role=menuitem],[role=menuitemcheckbox]")) : [], Ne = (i, d)=>{
79
+ }), Ne = ()=>s.useContext(Z), y = (i)=>i ? Array.from(i.querySelectorAll("[role=menuitem],[role=menuitemcheckbox]")) : [], Ae = (i, d)=>{
80
80
  if (!d) return null;
81
81
  const f = y(i).indexOf(d);
82
82
  return f < 0 ? null : f;
83
83
  }, qe = (param)=>{
84
84
  let { label: i, Icon: d, destructive: f, disabled: a, onPress: C, controlType: r, checked: p, dataAttributes: o } = param;
85
- const { focusedItem: k, setFocusedItem: c, closeMenu: A, isMenuOpen: u } = Ae(), m = s.useRef(null), x = f ? V.colors.textLinkDanger : V.colors.neutralHigh, h = m == null ? void 0 : m.current, N = (h == null ? void 0 : h.closest("[role=menu]")) || null, t = Ne(N, h), M = _object_spread({
85
+ const { focusedItem: k, setFocusedItem: c, closeMenu: N, isMenuOpen: u } = Ne(), m = s.useRef(null), x = f ? V.colors.textLinkDanger : V.colors.neutralHigh, h = m == null ? void 0 : m.current, A = (h == null ? void 0 : h.closest("[role=menu]")) || null, t = Ae(A, h), M = _object_spread({
86
86
  testid: "MenuItem"
87
87
  }, o), I = ()=>r === "checkbox" ? /* @__PURE__ */ e(Oe, {
88
88
  ref: m,
89
89
  name: i,
90
90
  checked: p,
91
91
  onChange: ()=>{
92
- u && t !== null && (C(t), A());
92
+ u && t !== null && (C(t), N());
93
93
  },
94
94
  disabled: a,
95
95
  role: "menuitemcheckbox",
@@ -131,7 +131,7 @@ const ke = 120, Z = /*#__PURE__*/ s.createContext({
131
131
  }) : /* @__PURE__ */ e(ve, {
132
132
  ref: m,
133
133
  onPress: ()=>{
134
- u && t !== null && (C(t), A());
134
+ u && t !== null && (C(t), N());
135
135
  },
136
136
  disabled: a,
137
137
  role: "menuitem",
@@ -181,7 +181,7 @@ const ke = 120, Z = /*#__PURE__*/ s.createContext({
181
181
  }) : /* @__PURE__ */ e(W, {});
182
182
  }, J = 12, Q = 8, Je = (param)=>{
183
183
  let { renderTarget: i, renderMenu: d, width: f, position: a = "left", dataAttributes: C } = param;
184
- const [r, p] = s.useState(!1), [o, k] = s.useState(null), [c, A] = s.useState(null), [u, m] = s.useState(null), [x, h] = s.useState(!1), N = s.useRef(null), [t, M] = s.useState(null), I = xe();
184
+ const [r, p] = s.useState(!1), [o, k] = s.useState(null), [c, N] = s.useState(null), [u, m] = s.useState(null), [x, h] = s.useState(!1), A = s.useRef(null), [t, M] = s.useState(null), I = xe();
185
185
  s.useEffect(()=>{
186
186
  const l = o == null ? void 0 : o.getBoundingClientRect();
187
187
  if (!c || !l || !r) return;
@@ -218,7 +218,7 @@ const ke = 120, Z = /*#__PURE__*/ s.createContext({
218
218
  k,
219
219
  r
220
220
  ]), ee = {
221
- ref: Se(A, N),
221
+ ref: Se(N, A),
222
222
  className: ge,
223
223
  close: ()=>p(!1)
224
224
  }, _ = s.useCallback(()=>{
@@ -294,7 +294,7 @@ const ke = 120, Z = /*#__PURE__*/ s.createContext({
294
294
  /* @__PURE__ */ e(be, {
295
295
  children: /* @__PURE__ */ e(Te, {
296
296
  in: r,
297
- nodeRef: N,
297
+ nodeRef: A,
298
298
  timeout: Ce() ? 0 : ke,
299
299
  classNames: he,
300
300
  mountOnEnter: !0,
@@ -1,3 +1,3 @@
1
1
  import "./mosaic.css.ts.vanilla.css-mistica.js";
2
- var r = "v16_31_1j2q6te2", t = "v16_31_1j2q6te1", a = "v16_31_1j2q6te0";
2
+ var r = "v16_32_1j2q6te2", t = "v16_32_1j2q6te1", a = "v16_32_1j2q6te0";
3
3
  export { r as fourItemsContainer, t as singleItemRowContainer, a as squareContainer };
package/dist-es/mosaic.js CHANGED
@@ -50,25 +50,25 @@ function _object_spread_props(target, source) {
50
50
  }
51
51
  return target;
52
52
  }
53
- import { jsx as r, jsxs as g, Fragment as v } from "react/jsx-runtime";
54
- import { Grid as i, GridItem as e } from "./grid.js";
55
- import { Carousel as w } from "./carousel.js";
56
- import { singleItemRowContainer as m, squareContainer as f, fourItemsContainer as q } from "./mosaic.css-mistica.js";
57
- const u = {
53
+ import { jsx as r, jsxs as m, Fragment as w } from "react/jsx-runtime";
54
+ import { Grid as h, GridItem as e } from "./grid.js";
55
+ import { Carousel as q } from "./carousel.js";
56
+ import { singleItemRowContainer as f, squareContainer as M, fourItemsContainer as C } from "./mosaic.css-mistica.js";
57
+ const s = {
58
58
  mobile: 8,
59
59
  desktop: 16
60
60
  }, t = (n, o)=>typeof n == "function" ? n({
61
61
  gridMode: o
62
- }) : n, C = (param)=>{
62
+ }) : n, S = (param)=>{
63
63
  let { items: n, isEven: o } = param;
64
64
  return /* @__PURE__ */ r("div", {
65
- className: n.length === 1 ? m : f,
66
- children: /* @__PURE__ */ r(i, {
67
- gap: u,
65
+ className: n.length === 1 ? f : M,
66
+ children: /* @__PURE__ */ r(h, {
67
+ gap: s,
68
68
  rows: 2,
69
69
  columns: 2,
70
70
  height: "100%",
71
- children: n.length === 3 ? /* @__PURE__ */ g(v, {
71
+ children: n.length === 3 ? /* @__PURE__ */ m(w, {
72
72
  children: [
73
73
  /* @__PURE__ */ r(e, {
74
74
  columnSpan: o ? 2 : void 0,
@@ -82,43 +82,44 @@ const u = {
82
82
  children: t(n[2], o ? "square" : "horizontal")
83
83
  })
84
84
  ]
85
- }) : n.map((a, s)=>/* @__PURE__ */ r(e, {
85
+ }) : n.map((a, i)=>/* @__PURE__ */ r(e, {
86
86
  columnSpan: n.length === 4 ? void 0 : 2,
87
87
  rowSpan: n.length === 1 ? 2 : void 0,
88
88
  children: t(a, n.length === 4 ? "square" : "horizontal")
89
- }, s))
89
+ }, i))
90
90
  })
91
91
  });
92
- }, G = (param)=>{
93
- let { items: n, withBullets: o, free: a, dataAttributes: s } = param;
94
- const c = n.length, l = c < 5 ? Math.min(c, 1) : Math.floor((c + 1) / 3), h = Array.from({
92
+ }, N = (param)=>{
93
+ let { items: n, withBullets: o, withControls: a = !0, free: i, dataAttributes: u } = param;
94
+ const c = n.length, l = c < 5 ? Math.min(c, 1) : Math.floor((c + 1) / 3), d = Array.from({
95
95
  length: l
96
96
  }, ()=>[]);
97
- return n.forEach((d, p)=>{
98
- const M = Math.min(l - 1, Math.floor(p / 3));
99
- h[M].push(d);
100
- }), /* @__PURE__ */ r(w, {
101
- dataAttributes: _object_spread_props(_object_spread({}, s), {
97
+ return n.forEach((g, p)=>{
98
+ const v = Math.min(l - 1, Math.floor(p / 3));
99
+ d[v].push(g);
100
+ }), /* @__PURE__ */ r(q, {
101
+ dataAttributes: _object_spread_props(_object_spread({}, u), {
102
102
  "component-name": "HorizontalMosaic"
103
103
  }),
104
- items: h.map((d, p)=>/* @__PURE__ */ r(i, {
105
- children: /* @__PURE__ */ r(C, {
106
- items: d,
104
+ items: d.map((g, p)=>/* @__PURE__ */ r(h, {
105
+ children: /* @__PURE__ */ r(S, {
106
+ items: g,
107
107
  isEven: p % 2 === 0
108
108
  }, p)
109
109
  })),
110
110
  withBullets: o,
111
- free: a
111
+ withControls: a,
112
+ free: i
112
113
  });
113
- }, S = (param)=>{
114
+ }, z = (param)=>{
114
115
  let { items: n } = param;
115
116
  switch(n.length){
116
117
  case 1:
117
118
  case 2:
118
119
  return /* @__PURE__ */ r("div", {
119
- className: m,
120
- children: /* @__PURE__ */ r(i, {
121
- gap: u,
120
+ className: f,
121
+ children: /* @__PURE__ */ r(h, {
122
+ gap: s,
122
123
  columns: 2,
123
124
  height: "100%",
124
125
  children: n.map((o, a)=>/* @__PURE__ */ r(e, {
@@ -129,9 +130,9 @@ const u = {
129
130
  });
130
131
  case 3:
131
132
  return /* @__PURE__ */ r("div", {
132
- className: f,
133
- children: /* @__PURE__ */ r(i, {
134
- gap: u,
133
+ className: M,
134
+ children: /* @__PURE__ */ r(h, {
135
+ gap: s,
135
136
  columns: 2,
136
137
  flow: "column",
137
138
  height: "100%",
@@ -144,9 +145,9 @@ const u = {
144
145
  case 4:
145
146
  default:
146
147
  return /* @__PURE__ */ r("div", {
147
- className: q,
148
- children: /* @__PURE__ */ g(i, {
149
- gap: u,
148
+ className: C,
149
+ children: /* @__PURE__ */ m(h, {
150
+ gap: s,
150
151
  rows: 3,
151
152
  columns: 2,
152
153
  height: "100%",
@@ -169,23 +170,23 @@ const u = {
169
170
  })
170
171
  });
171
172
  }
172
- }, N = (param)=>{
173
+ }, b = (param)=>{
173
174
  let { items: n, dataAttributes: o } = param;
174
- const a = n.length, s = Math.ceil(a / 4), c = Array.from({
175
- length: s
175
+ const a = n.length, i = Math.ceil(a / 4), u = Array.from({
176
+ length: i
176
177
  }, ()=>[]);
177
- return n.forEach((l, h)=>{
178
- const d = Math.floor(h / 4);
179
- c[d].push(l);
180
- }), /* @__PURE__ */ r(i, {
178
+ return n.forEach((c, l)=>{
179
+ const d = Math.floor(l / 4);
180
+ u[d].push(c);
181
+ }), /* @__PURE__ */ r(h, {
181
182
  rows: 1,
182
- gap: u,
183
+ gap: s,
183
184
  dataAttributes: _object_spread_props(_object_spread({}, o), {
184
185
  "component-name": "VerticalMosaic"
185
186
  }),
186
- children: c.map((l, h)=>/* @__PURE__ */ r(S, {
187
- items: l
188
- }, h))
187
+ children: u.map((c, l)=>/* @__PURE__ */ r(z, {
188
+ items: c
189
+ }, l))
189
190
  });
190
191
  };
191
- export { G as HorizontalMosaic, N as VerticalMosaic };
192
+ export { N as HorizontalMosaic, b as VerticalMosaic };