@telefonica/mistica 14.13.0 → 14.15.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 (231) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/avatar.css-mistica.js +1 -1
  3. package/dist/badge.css-mistica.js +3 -3
  4. package/dist/badge.js +19 -10
  5. package/dist/box.d.ts +1 -1
  6. package/dist/boxed.css-mistica.js +4 -4
  7. package/dist/boxed.css.d.ts +1 -1
  8. package/dist/boxed.js +12 -14
  9. package/dist/button-layout.css-mistica.js +4 -4
  10. package/dist/button.css-mistica.js +19 -19
  11. package/dist/button.js +112 -112
  12. package/dist/callout.css-mistica.js +1 -1
  13. package/dist/card.css-mistica.js +38 -15
  14. package/dist/card.css.d.ts +11 -0
  15. package/dist/card.d.ts +36 -34
  16. package/dist/card.js +631 -480
  17. package/dist/carousel.css-mistica.js +13 -13
  18. package/dist/checkbox.css-mistica.js +5 -5
  19. package/dist/chip.css-mistica.js +4 -4
  20. package/dist/chip.d.ts +1 -0
  21. package/dist/chip.js +57 -41
  22. package/dist/circle.css-mistica.js +1 -1
  23. package/dist/dialog.css-mistica.js +3 -3
  24. package/dist/double-field.css-mistica.js +2 -2
  25. package/dist/empty-state-card.css-mistica.js +1 -1
  26. package/dist/empty-state.css-mistica.js +3 -3
  27. package/dist/feedback.css-mistica.js +3 -3
  28. package/dist/fixed-footer-layout.css-mistica.js +1 -1
  29. package/dist/fixed-footer-layout.js +79 -26
  30. package/dist/generated/mistica-icons/icon-alert-filled.js +15 -5
  31. package/dist/generated/mistica-icons/icon-alert-light.js +24 -8
  32. package/dist/generated/mistica-icons/icon-alert-regular.js +30 -14
  33. package/dist/generated/mistica-icons/icon-bell-filled.js +19 -9
  34. package/dist/generated/mistica-icons/icon-bell-light.js +16 -6
  35. package/dist/generated/mistica-icons/icon-bell-regular.js +19 -9
  36. package/dist/generated/mistica-icons/icon-dollar-symbol-circle-light.js +28 -11
  37. package/dist/generated/mistica-icons/icon-dollar-symbol-circle-regular.js +20 -9
  38. package/dist/generated/mistica-icons/icon-edit-pencil-light.js +21 -10
  39. package/dist/generated/mistica-icons/icon-edit-pencil-regular.js +22 -12
  40. package/dist/generated/mistica-icons/icon-gift-filled.js +19 -9
  41. package/dist/generated/mistica-icons/icon-gift-light.js +20 -10
  42. package/dist/generated/mistica-icons/icon-gift-regular.js +19 -9
  43. package/dist/generated/mistica-icons/icon-heart-filled.js +16 -6
  44. package/dist/generated/mistica-icons/icon-heart-light.js +18 -8
  45. package/dist/generated/mistica-icons/icon-heart-regular.js +24 -14
  46. package/dist/generated/mistica-icons/icon-home-filled.js +23 -13
  47. package/dist/generated/mistica-icons/icon-home-light.js +24 -14
  48. package/dist/generated/mistica-icons/icon-home-regular.js +21 -11
  49. package/dist/generated/mistica-icons/icon-home-wifi-filled.js +24 -7
  50. package/dist/generated/mistica-icons/icon-home-wifi-light.js +25 -8
  51. package/dist/generated/mistica-icons/icon-home-wifi-regular.js +24 -7
  52. package/dist/generated/mistica-icons/icon-pause-regular.js +10 -12
  53. package/dist/generated/mistica-icons/icon-play-regular.js +14 -16
  54. package/dist/generated/mistica-icons/icon-reload-light.js +22 -12
  55. package/dist/generated/mistica-icons/icon-reload-regular.js +24 -14
  56. package/dist/generated/mistica-icons/icon-share-filled.js +20 -10
  57. package/dist/generated/mistica-icons/icon-share-light.js +21 -11
  58. package/dist/generated/mistica-icons/icon-share-regular.js +21 -11
  59. package/dist/generated/mistica-icons/icon-shopping-bag-filled.d.ts +4 -0
  60. package/dist/generated/mistica-icons/icon-shopping-bag-filled.js +110 -0
  61. package/dist/generated/mistica-icons/icon-shopping-bag-light.d.ts +4 -0
  62. package/dist/generated/mistica-icons/icon-shopping-bag-light.js +110 -0
  63. package/dist/generated/mistica-icons/icon-shopping-bag-regular.d.ts +4 -0
  64. package/dist/generated/mistica-icons/icon-shopping-bag-regular.js +110 -0
  65. package/dist/generated/mistica-icons/icon-tickets-filled.js +17 -7
  66. package/dist/generated/mistica-icons/icon-tickets-light.js +26 -10
  67. package/dist/generated/mistica-icons/icon-tickets-regular.js +35 -19
  68. package/dist/grid.css.d.ts +6 -6
  69. package/dist/hero.css-mistica.js +1 -1
  70. package/dist/highlighted-card.css-mistica.js +3 -3
  71. package/dist/hooks.js +57 -56
  72. package/dist/image.css-mistica.js +1 -1
  73. package/dist/index.d.ts +3 -0
  74. package/dist/index.js +14 -1
  75. package/dist/list.css-mistica.js +7 -7
  76. package/dist/loading-bar.css-mistica.js +4 -4
  77. package/dist/maybe-dismissable.css-mistica.js +3 -3
  78. package/dist/menu.css-mistica.js +1 -1
  79. package/dist/navigation-bar.css-mistica.js +11 -11
  80. package/dist/navigation-breadcrumbs.css-mistica.js +1 -1
  81. package/dist/package-version.js +1 -1
  82. package/dist/password-field.css-mistica.js +1 -1
  83. package/dist/popover.css-mistica.js +3 -3
  84. package/dist/progress-bar.css-mistica.js +1 -1
  85. package/dist/radio-button.css-mistica.js +5 -5
  86. package/dist/responsive-layout.css-mistica.js +2 -2
  87. package/dist/screen-reader-only.css-mistica.js +1 -1
  88. package/dist/select.css-mistica.js +13 -13
  89. package/dist/skins/blau.js +13 -1
  90. package/dist/skins/defaults.js +12 -0
  91. package/dist/skins/movistar-legacy.js +15 -3
  92. package/dist/skins/movistar.js +12 -0
  93. package/dist/skins/o2.js +12 -0
  94. package/dist/skins/telefonica.js +12 -0
  95. package/dist/skins/types/index.d.ts +15 -9
  96. package/dist/skins/vivo-new.js +12 -0
  97. package/dist/skins/vivo.js +12 -0
  98. package/dist/snackbar.css-mistica.js +3 -3
  99. package/dist/sprinkles.css-mistica.js +226 -190
  100. package/dist/sprinkles.css.d.ts +16 -16
  101. package/dist/stepper.css-mistica.js +3 -3
  102. package/dist/stepper.js +26 -26
  103. package/dist/switch-component.css-mistica.js +10 -10
  104. package/dist/tabs.css-mistica.js +7 -7
  105. package/dist/tag.css-mistica.js +1 -1
  106. package/dist/tag.js +15 -14
  107. package/dist/text-field-base.css-mistica.js +6 -6
  108. package/dist/text-field-components.css-mistica.js +6 -6
  109. package/dist/text-link.css-mistica.js +5 -5
  110. package/dist/text.d.ts +6 -8
  111. package/dist/text.js +8 -7
  112. package/dist/theme-context-provider.js +34 -30
  113. package/dist/title.js +27 -24
  114. package/dist/tooltip.css-mistica.js +6 -6
  115. package/dist/tooltip.js +35 -34
  116. package/dist/touchable.css-mistica.js +3 -3
  117. package/dist/utils/aspect-ratio-support.css-mistica.js +2 -2
  118. package/dist/utils/dom.js +10 -10
  119. package/dist/utils/environment.d.ts +1 -0
  120. package/dist/utils/environment.js +12 -4
  121. package/dist/video.css-mistica.js +1 -1
  122. package/dist-es/avatar.css-mistica.js +1 -1
  123. package/dist-es/badge.css-mistica.js +2 -2
  124. package/dist-es/badge.js +29 -20
  125. package/dist-es/boxed.css-mistica.js +3 -3
  126. package/dist-es/boxed.js +16 -18
  127. package/dist-es/button-layout.css-mistica.js +3 -3
  128. package/dist-es/button.css-mistica.js +9 -9
  129. package/dist-es/button.js +154 -154
  130. package/dist-es/callout.css-mistica.js +1 -1
  131. package/dist-es/card.css-mistica.js +4 -2
  132. package/dist-es/card.js +671 -521
  133. package/dist-es/carousel.css-mistica.js +2 -2
  134. package/dist-es/checkbox.css-mistica.js +5 -5
  135. package/dist-es/chip.css-mistica.js +4 -4
  136. package/dist-es/chip.js +77 -61
  137. package/dist-es/circle.css-mistica.js +1 -1
  138. package/dist-es/dialog.css-mistica.js +3 -3
  139. package/dist-es/double-field.css-mistica.js +2 -2
  140. package/dist-es/empty-state-card.css-mistica.js +1 -1
  141. package/dist-es/empty-state.css-mistica.js +2 -2
  142. package/dist-es/feedback.css-mistica.js +2 -2
  143. package/dist-es/fixed-footer-layout.css-mistica.js +1 -1
  144. package/dist-es/fixed-footer-layout.js +97 -44
  145. package/dist-es/generated/mistica-icons/icon-alert-filled.js +18 -8
  146. package/dist-es/generated/mistica-icons/icon-alert-light.js +30 -14
  147. package/dist-es/generated/mistica-icons/icon-alert-regular.js +36 -20
  148. package/dist-es/generated/mistica-icons/icon-bell-filled.js +26 -16
  149. package/dist-es/generated/mistica-icons/icon-bell-light.js +20 -10
  150. package/dist-es/generated/mistica-icons/icon-bell-regular.js +20 -10
  151. package/dist-es/generated/mistica-icons/icon-dollar-symbol-circle-light.js +33 -16
  152. package/dist-es/generated/mistica-icons/icon-dollar-symbol-circle-regular.js +25 -14
  153. package/dist-es/generated/mistica-icons/icon-edit-pencil-light.js +25 -14
  154. package/dist-es/generated/mistica-icons/icon-edit-pencil-regular.js +30 -20
  155. package/dist-es/generated/mistica-icons/icon-gift-filled.js +22 -12
  156. package/dist-es/generated/mistica-icons/icon-gift-light.js +23 -13
  157. package/dist-es/generated/mistica-icons/icon-gift-regular.js +22 -12
  158. package/dist-es/generated/mistica-icons/icon-heart-filled.js +18 -8
  159. package/dist-es/generated/mistica-icons/icon-heart-light.js +24 -14
  160. package/dist-es/generated/mistica-icons/icon-heart-regular.js +25 -15
  161. package/dist-es/generated/mistica-icons/icon-home-filled.js +30 -20
  162. package/dist-es/generated/mistica-icons/icon-home-light.js +27 -17
  163. package/dist-es/generated/mistica-icons/icon-home-regular.js +27 -17
  164. package/dist-es/generated/mistica-icons/icon-home-wifi-filled.js +28 -11
  165. package/dist-es/generated/mistica-icons/icon-home-wifi-light.js +29 -12
  166. package/dist-es/generated/mistica-icons/icon-home-wifi-regular.js +28 -11
  167. package/dist-es/generated/mistica-icons/icon-pause-regular.js +12 -14
  168. package/dist-es/generated/mistica-icons/icon-play-regular.js +19 -21
  169. package/dist-es/generated/mistica-icons/icon-reload-light.js +27 -17
  170. package/dist-es/generated/mistica-icons/icon-reload-regular.js +27 -17
  171. package/dist-es/generated/mistica-icons/icon-share-filled.js +25 -15
  172. package/dist-es/generated/mistica-icons/icon-share-light.js +28 -18
  173. package/dist-es/generated/mistica-icons/icon-share-regular.js +28 -18
  174. package/dist-es/generated/mistica-icons/icon-shopping-bag-filled.js +101 -0
  175. package/dist-es/generated/mistica-icons/icon-shopping-bag-light.js +101 -0
  176. package/dist-es/generated/mistica-icons/icon-shopping-bag-regular.js +101 -0
  177. package/dist-es/generated/mistica-icons/icon-tickets-filled.js +21 -11
  178. package/dist-es/generated/mistica-icons/icon-tickets-light.js +30 -14
  179. package/dist-es/generated/mistica-icons/icon-tickets-regular.js +43 -27
  180. package/dist-es/hero.css-mistica.js +1 -1
  181. package/dist-es/highlighted-card.css-mistica.js +3 -3
  182. package/dist-es/hooks.js +51 -50
  183. package/dist-es/image.css-mistica.js +1 -1
  184. package/dist-es/index.js +1762 -1758
  185. package/dist-es/list.css-mistica.js +2 -2
  186. package/dist-es/loading-bar.css-mistica.js +2 -2
  187. package/dist-es/maybe-dismissable.css-mistica.js +2 -2
  188. package/dist-es/menu.css-mistica.js +1 -1
  189. package/dist-es/navigation-bar.css-mistica.js +8 -8
  190. package/dist-es/navigation-breadcrumbs.css-mistica.js +1 -1
  191. package/dist-es/package-version.js +1 -1
  192. package/dist-es/password-field.css-mistica.js +1 -1
  193. package/dist-es/popover.css-mistica.js +2 -2
  194. package/dist-es/progress-bar.css-mistica.js +1 -1
  195. package/dist-es/radio-button.css-mistica.js +4 -4
  196. package/dist-es/responsive-layout.css-mistica.js +2 -2
  197. package/dist-es/screen-reader-only.css-mistica.js +1 -1
  198. package/dist-es/select.css-mistica.js +10 -10
  199. package/dist-es/skins/blau.js +13 -1
  200. package/dist-es/skins/defaults.js +12 -0
  201. package/dist-es/skins/movistar-legacy.js +15 -3
  202. package/dist-es/skins/movistar.js +12 -0
  203. package/dist-es/skins/o2.js +12 -0
  204. package/dist-es/skins/telefonica.js +12 -0
  205. package/dist-es/skins/vivo-new.js +12 -0
  206. package/dist-es/skins/vivo.js +12 -0
  207. package/dist-es/snackbar.css-mistica.js +2 -2
  208. package/dist-es/sprinkles.css-mistica.js +226 -190
  209. package/dist-es/stepper.css-mistica.js +2 -2
  210. package/dist-es/stepper.js +50 -50
  211. package/dist-es/style.css +1 -1
  212. package/dist-es/switch-component.css-mistica.js +10 -10
  213. package/dist-es/tabs.css-mistica.js +6 -6
  214. package/dist-es/tag.css-mistica.js +1 -1
  215. package/dist-es/tag.js +28 -27
  216. package/dist-es/text-field-base.css-mistica.js +2 -2
  217. package/dist-es/text-field-components.css-mistica.js +2 -2
  218. package/dist-es/text-link.css-mistica.js +5 -5
  219. package/dist-es/text.js +11 -10
  220. package/dist-es/theme-context-provider.js +72 -68
  221. package/dist-es/title.js +36 -33
  222. package/dist-es/tooltip.css-mistica.js +3 -3
  223. package/dist-es/tooltip.js +37 -36
  224. package/dist-es/touchable.css-mistica.js +2 -2
  225. package/dist-es/utils/aspect-ratio-support.css-mistica.js +2 -2
  226. package/dist-es/utils/dom.js +9 -9
  227. package/dist-es/utils/environment.js +2 -2
  228. package/dist-es/video.css-mistica.js +1 -1
  229. package/package.json +2 -1
  230. package/dist/boxed.css.ts.vanilla.css-mistica.js +0 -11
  231. package/dist-es/boxed.css.ts.vanilla.css-mistica.js +0 -2
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./text-field-base.css.ts.vanilla.css-mistica.js";
3
- var n = "rhey4tf _1y2v1nf7m _1y2v1nf82 _1y2v1nf64 _1y2v1nf6j", r = "rhey4t4", t = "rhey4ta _1y2v1nf5z _1y2v1nf8r rhey4t1 _1y2v1nfa2 _1y2v1nf97 _1y2v1nf1w _1y2v1nf8b", e = "rhey4tb", f = "rhey4tc", _ = "_1y2v1nf6w _1y2v1nf7a", a = "rhey4to _1y2v1nf91 _1y2v1nf64 _1y2v1nf6j _1y2v1nfaj", h = "_1y2v1nf3e", i = "rhey4tj _1y2v1nf7n _1y2v1nf82", o = "rhey4tl _1y2v1nf78", l = "_1y2v1nf6w _1y2v1nf7a", u = "rhey4th _1y2v1nf7n _1y2v1nf81 _1y2v1nf64 _1y2v1nf6j _1y2v1nf8r _1y2v1nf60", p = "rhey4tr _1y2v1nf60", b = "rhey4t6 _1y2v1nf6r _1y2v1nf75 _1y2v1nf7j _1y2v1nf7x rhey4t1 _1y2v1nfa2 _1y2v1nf97 _1y2v1nf1w _1y2v1nf8b", x = "rhey4t7", m = "rhey4t8";
4
- export { n as endIcon, r as fullWidth, t as input, e as inputFirefoxStyles, f as inputWithLabel, _ as inputWithoutLabel, a as menuItem, h as menuItemSelected, i as prefix, o as prefixWithLabel, l as prefixWithoutLabel, u as startIcon, p as suggestionsContainer, b as textArea, x as textAreaWithLabel, m as textAreaWithoutLabel };
3
+ var n = "rhey4tf _1y2v1nf7o _1y2v1nf85 _1y2v1nf64 _1y2v1nf6j", r = "rhey4t4", t = "rhey4ta _1y2v1nf5z _1y2v1nf8w rhey4t1 _1y2v1nfaa _1y2v1nf9d _1y2v1nf1w _1y2v1nf8f", f = "rhey4tb", e = "rhey4tc", _ = "_1y2v1nf6w _1y2v1nf7b", a = "rhey4to _1y2v1nf97 _1y2v1nf64 _1y2v1nf6j _1y2v1nfar", h = "_1y2v1nf3e", i = "rhey4tj _1y2v1nf7p _1y2v1nf85", o = "rhey4tl _1y2v1nf79", l = "_1y2v1nf6w _1y2v1nf7b", p = "rhey4th _1y2v1nf7p _1y2v1nf84 _1y2v1nf64 _1y2v1nf6j _1y2v1nf8w _1y2v1nf60", u = "rhey4tr _1y2v1nf60", b = "rhey4t6 _1y2v1nf6r _1y2v1nf76 _1y2v1nf7l _1y2v1nf80 rhey4t1 _1y2v1nfaa _1y2v1nf9d _1y2v1nf1w _1y2v1nf8f", x = "rhey4t7", W = "rhey4t8";
4
+ export { n as endIcon, r as fullWidth, t as input, f as inputFirefoxStyles, e as inputWithLabel, _ as inputWithoutLabel, a as menuItem, h as menuItemSelected, i as prefix, o as prefixWithLabel, l as prefixWithoutLabel, p as startIcon, u as suggestionsContainer, b as textArea, x as textAreaWithLabel, W as textAreaWithoutLabel };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./text-field-components.css.ts.vanilla.css-mistica.js";
3
- var _ = 328, a = 12, n = 0.78, f = 0.75, e = "_15k6ur97", y = "_1y2v1nfak _1y2v1nfa1 _1y2v1nf64 _1y2v1nfaa _1y2v1nf5z", i = "_15k6ur96 _1y2v1nf64 _1y2v1nf6a", l = "_15k6ur9e", t = "_15k6ur9d _1y2v1nf92", k = "_1y2v1nf8b", u = "_1y2v1nf7n _1y2v1nf82 _1y2v1nf64", L = "_15k6ur9g", d = "_15k6ur91 _1y2v1nf60 _1y2v1nfam _1y2v1nf8y _1y2v1nf64 _1y2v1nf69 _1y2v1nfb4", E = "_15k6ur93 _1y2v1nfak _1y2v1nf6n", T = "_15k6ur9h", h = "_15k6ur99 _1y2v1nf8b", o = "_15k6ur9i", b = "_15k6ur94";
4
- export { _ as DEFAULT_WIDTH, a as LABEL_LEFT_POSITION, n as LABEL_SCALE_DESKTOP, f as LABEL_SCALE_MOBILE, e as disabled, y as field, i as fieldContainer, l as fieldMulti, t as fieldSingle, k as fullWidth, u as helperContainer, L as helperText, d as labelContainer, E as labelText, T as leftText, h as normalWidth, o as rightText, b as shrinked };
3
+ var _ = 328, a = 12, n = 0.78, f = 0.75, e = "_15k6ur97", y = "_1y2v1nfas _1y2v1nfa9 _1y2v1nf64 _1y2v1nfai _1y2v1nf5z", i = "_15k6ur96 _1y2v1nf64 _1y2v1nf6a", l = "_15k6ur9e", t = "_15k6ur9d _1y2v1nf98", u = "_1y2v1nf8f", k = "_1y2v1nf7p _1y2v1nf85 _1y2v1nf64", d = "_15k6ur9g", L = "_15k6ur91 _1y2v1nf60 _1y2v1nfau _1y2v1nf94 _1y2v1nf64 _1y2v1nf69 _1y2v1nfbd", E = "_15k6ur93 _1y2v1nfas _1y2v1nf6n", T = "_15k6ur9h", h = "_15k6ur99 _1y2v1nf8f", o = "_15k6ur9i", p = "_15k6ur94";
4
+ export { _ as DEFAULT_WIDTH, a as LABEL_LEFT_POSITION, n as LABEL_SCALE_DESKTOP, f as LABEL_SCALE_MOBILE, e as disabled, y as field, i as fieldContainer, l as fieldMulti, t as fieldSingle, u as fullWidth, k as helperContainer, d as helperText, L as labelContainer, E as labelText, T as leftText, h as normalWidth, o as rightText, p as shrinked };
@@ -1,8 +1,8 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./text-link.css.ts.vanilla.css-mistica.js";
3
- var v = {
4
- default: "_1m1n0pr1 _1y2v1nf8c _1y2v1nf67 _1y2v1nfaj _1y2v1nf27",
5
- inverseLight: "_1m1n0pr6 _1m1n0pr1 _1y2v1nf8c _1y2v1nf67 _1y2v1nfaj _1y2v1nf28",
6
- inverseDark: "_1m1n0pr7 _1m1n0pr1 _1y2v1nf8c _1y2v1nf67 _1y2v1nfaj _1y2v1nf27"
3
+ var r = {
4
+ default: "_1m1n0pr1 _1y2v1nf8g _1y2v1nf67 _1y2v1nfar _1y2v1nf27",
5
+ inverseLight: "_1m1n0pr6 _1m1n0pr1 _1y2v1nf8g _1y2v1nf67 _1y2v1nfar _1y2v1nf28",
6
+ inverseDark: "_1m1n0pr7 _1m1n0pr1 _1y2v1nf8g _1y2v1nf67 _1y2v1nfar _1y2v1nf27"
7
7
  };
8
- export { v as variants };
8
+ export { r as variants };
package/dist-es/text.js CHANGED
@@ -80,7 +80,7 @@ function _object_without_properties_loose(source, excluded) {
80
80
  import { jsx as r } from "react/jsx-runtime";
81
81
  import * as R from "react";
82
82
  import $ from "classnames";
83
- import { assignInlineVars as S } from "@vanilla-extract/dynamic";
83
+ import { assignInlineVars as L } from "@vanilla-extract/dynamic";
84
84
  import { useIsInverseVariant as j } from "./theme-variant-context.js";
85
85
  import { pxToRem as p } from "./utils/css.js";
86
86
  import { getPrefixedDataAttributes as B } from "./utils/dom.js";
@@ -93,7 +93,7 @@ const J = {
93
93
  medium: 500,
94
94
  bold: 700
95
95
  }, K = (e)=>e === !0 ? 1 : e || "initial", n = (param)=>{
96
- let { weight: e , color: i = m.colors.textPrimary , decoration: t , truncate: o , transform: g , wordBreak: c = !0 , hyphens: f , as: z = "span" , children: h , size: d , mobileSize: u = d , desktopSize: b = d , lineHeight: T , mobileLineHeight: k = T , desktopLineHeight: L = T , letterSpacing: H , textAlign: w , textShadow: v , id: A , role: P , "aria-level": y , dataAttributes: I } = param;
96
+ let { weight: e , color: i = m.colors.textPrimary , decoration: t , truncate: o , transform: g , wordBreak: c = !0 , hyphens: S , as: z = "span" , children: h , size: u , mobileSize: d = u , desktopSize: b = u , lineHeight: T , mobileLineHeight: f = T , desktopLineHeight: k = T , letterSpacing: w , textAlign: H , textShadow: v , id: A , role: P , "aria-level": y , dataAttributes: I } = param;
97
97
  const W = j(), V = K(o), C = {
98
98
  [m.colors.textPrimary]: m.colors.textPrimaryInverse,
99
99
  [m.colors.textSecondary]: m.colors.textSecondaryInverse,
@@ -103,12 +103,12 @@ const J = {
103
103
  const D = $(E, c ? N : q, {
104
104
  [F]: o === 1 || o === !0,
105
105
  [G]: o && o > 1
106
- }), M = S({
107
- [x.mobileSize]: u ? p(u) : "",
108
- [x.mobileLineHeight]: k ? p(k) : "",
106
+ }), M = L({
107
+ [x.mobileSize]: d ? p(d) : "",
108
+ [x.mobileLineHeight]: f ? p(f) : "",
109
109
  [x.desktopSize]: b ? p(b) : "",
110
- [x.desktopLineHeight]: L ? p(L) : ""
111
- }), O = o ? S({
110
+ [x.desktopLineHeight]: k ? p(k) : ""
111
+ }), O = o ? L({
112
112
  [x.lineClamp]: String(V)
113
113
  }) : {};
114
114
  var _C_i;
@@ -119,14 +119,14 @@ const J = {
119
119
  "aria-level": y
120
120
  }, B(I)), {
121
121
  style: _object_spread_props(_object_spread({}, M, O), {
122
- hyphens: f,
123
- letterSpacing: H,
122
+ hyphens: S,
123
+ letterSpacing: w,
124
124
  fontWeight: e ? J[e] : "inherit",
125
125
  textTransform: g || "inherit",
126
126
  textDecoration: t !== null && t !== void 0 ? t : "inherit",
127
127
  overflowWrap: c ? "anywhere" : "inherit",
128
128
  color: W ? (_C_i = C[i]) !== null && _C_i !== void 0 ? _C_i : i : i,
129
- textAlign: w,
129
+ textAlign: H,
130
130
  textShadow: v
131
131
  })
132
132
  }), h);
@@ -134,6 +134,7 @@ const J = {
134
134
  if (e.light) return "light";
135
135
  if (e.regular) return "regular";
136
136
  if (e.medium) return "medium";
137
+ if (e.weight) return e.weight;
137
138
  }, s = (param)=>{
138
139
  let { forceMobileSizes: e , mobileSize: i , mobileLineHeight: t , desktopSize: o , desktopLineHeight: g } = param;
139
140
  return e ? {
@@ -26,107 +26,111 @@ function _object_spread(target) {
26
26
  }
27
27
  return target;
28
28
  }
29
- import { jsx as e, jsxs as E, Fragment as R } from "react/jsx-runtime";
29
+ import { jsx as r, jsxs as S, Fragment as y } from "react/jsx-runtime";
30
30
  import * as a from "react";
31
- import { assignInlineVars as h } from "@vanilla-extract/dynamic";
32
- import A from "./dialog.js";
33
- import H from "./screen-size-context-provider.js";
34
- import S from "./aria-id-getter-context.js";
35
- import { getTexts as y, dimensions as N, AnchorLink as O, NAVBAR_HEIGHT_MOBILE as L } from "./theme.js";
36
- import { getPlatform as g, isInsideNovumNativeApp as w } from "./utils/platform.js";
37
- import F from "./theme-context.js";
38
- import { useIsomorphicLayoutEffect as $ } from "./hooks.js";
39
- import V from "./tab-focus.js";
40
- import j from "./modal-context-provider.js";
41
- import { DocumentVisibilityProvider as _ } from "./utils/document-visibility.js";
42
- import { AspectRatioSupportProvider as B } from "./utils/aspect-ratio-support.js";
43
- import { TrackingConfig as z } from "./utils/analytics.js";
44
- import { vars as G } from "./skins/skin-contract.css-mistica.js";
45
- import { fromHexToRgb as q } from "./utils/color.js";
46
- import { defaultTextPresetsConfig as r, defaultBorderRadiiConfig as W } from "./skins/defaults.js";
47
- const J = "(prefers-color-scheme: dark)", K = ()=>{
31
+ import { assignInlineVars as N } from "@vanilla-extract/dynamic";
32
+ import O from "./dialog.js";
33
+ import L from "./screen-size-context-provider.js";
34
+ import w from "./aria-id-getter-context.js";
35
+ import { getTexts as F, dimensions as $, AnchorLink as h, NAVBAR_HEIGHT_MOBILE as V } from "./theme.js";
36
+ import { getPlatform as D, isInsideNovumNativeApp as j } from "./utils/platform.js";
37
+ import _ from "./theme-context.js";
38
+ import { useIsomorphicLayoutEffect as B } from "./hooks.js";
39
+ import z from "./tab-focus.js";
40
+ import G from "./modal-context-provider.js";
41
+ import { DocumentVisibilityProvider as q } from "./utils/document-visibility.js";
42
+ import { AspectRatioSupportProvider as W } from "./utils/aspect-ratio-support.js";
43
+ import { TrackingConfig as J } from "./utils/analytics.js";
44
+ import { vars as K } from "./skins/skin-contract.css-mistica.js";
45
+ import { fromHexToRgb as Q } from "./utils/color.js";
46
+ import { defaultTextPresetsConfig as e, defaultBorderRadiiConfig as U } from "./skins/defaults.js";
47
+ const X = "(prefers-color-scheme: dark)", Y = ()=>{
48
48
  const [t, c] = a.useState(!1);
49
- return $(()=>{
49
+ return B(()=>{
50
50
  if (!window.matchMedia) return;
51
- const o = window.matchMedia(J), s = ()=>{
51
+ const o = window.matchMedia(X), s = ()=>{
52
52
  c(o.matches);
53
53
  };
54
54
  return o.addListener(s), s(), ()=>o.removeListener(s);
55
55
  }, []), t;
56
- }, Q = ()=>(t)=>t, U = (t)=>({
57
- headerMobileHeight: (t == null ? void 0 : t.headerMobileHeight) === "mistica" ? L : t == null ? void 0 : t.headerMobileHeight
58
- }), X = (param)=>{
56
+ }, Z = ()=>(t)=>t, tt = (t)=>({
57
+ headerMobileHeight: (t == null ? void 0 : t.headerMobileHeight) === "mistica" ? V : t == null ? void 0 : t.headerMobileHeight
58
+ }), et = (param)=>{
59
59
  let { theme: t , children: c , as: o } = param;
60
60
  var _t_colorScheme, _t_skin_borderRadii;
61
- const s = a.useRef(1), M = a.useCallback(()=>`aria-id-hook-${s.current++}`, []), T = K(), u = (_t_colorScheme = t.colorScheme) !== null && _t_colorScheme !== void 0 ? _t_colorScheme : "auto", C = t.skin.colors, D = _object_spread({}, t.skin.colors, t.skin.darkModeColors), f = u === "auto" && T || u === "dark", p = f ? D : C, k = a.useMemo(()=>{
62
- var i, n, l, m, x, P, b;
63
- const d = _object_spread({
64
- platform: g(),
65
- insideNovumNativeApp: w()
61
+ const s = a.useRef(1), I = a.useCallback(()=>`aria-id-hook-${s.current++}`, []), E = Y(), m = (_t_colorScheme = t.colorScheme) !== null && _t_colorScheme !== void 0 ? _t_colorScheme : "auto", R = t.skin.colors, A = _object_spread({}, t.skin.colors, t.skin.darkModeColors), u = m === "auto" && E || m === "dark", k = u ? A : R, p = a.useMemo(()=>{
62
+ var i, n, d, x, f, P, b, g, M, T, C;
63
+ const l = _object_spread({
64
+ platform: D(),
65
+ insideNovumNativeApp: j()
66
66
  }, t.platformOverrides);
67
67
  var _t_Link, _t_useHrefDecorator;
68
68
  return {
69
69
  skinName: t.skin.name,
70
70
  i18n: t.i18n,
71
- platformOverrides: d,
72
- texts: _object_spread({}, y(t.i18n.locale), t.texts),
71
+ platformOverrides: l,
72
+ texts: _object_spread({}, F(t.i18n.locale), t.texts),
73
73
  analytics: _object_spread({
74
74
  logEvent: ()=>Promise.resolve(),
75
75
  eventFormat: "universal-analytics"
76
76
  }, t.analytics),
77
- dimensions: _object_spread({}, N, U(t.dimensions)),
77
+ dimensions: _object_spread({}, $, tt(t.dimensions)),
78
78
  textPresets: {
79
- text5: _object_spread({}, r.text5, (i = t.skin.textPresets) == null ? void 0 : i.text5),
80
- text6: _object_spread({}, r.text6, (n = t.skin.textPresets) == null ? void 0 : n.text6),
81
- text7: _object_spread({}, r.text7, (l = t.skin.textPresets) == null ? void 0 : l.text7),
82
- text8: _object_spread({}, r.text8, (m = t.skin.textPresets) == null ? void 0 : m.text8),
83
- text9: _object_spread({}, r.text9, (x = t.skin.textPresets) == null ? void 0 : x.text9),
84
- text10: _object_spread({}, r.text10, (P = t.skin.textPresets) == null ? void 0 : P.text10),
85
- cardTitle: _object_spread({}, r.cardTitle, (b = t.skin.textPresets) == null ? void 0 : b.cardTitle)
79
+ text5: _object_spread({}, e.text5, (i = t.skin.textPresets) == null ? void 0 : i.text5),
80
+ text6: _object_spread({}, e.text6, (n = t.skin.textPresets) == null ? void 0 : n.text6),
81
+ text7: _object_spread({}, e.text7, (d = t.skin.textPresets) == null ? void 0 : d.text7),
82
+ text8: _object_spread({}, e.text8, (x = t.skin.textPresets) == null ? void 0 : x.text8),
83
+ text9: _object_spread({}, e.text9, (f = t.skin.textPresets) == null ? void 0 : f.text9),
84
+ text10: _object_spread({}, e.text10, (P = t.skin.textPresets) == null ? void 0 : P.text10),
85
+ cardTitle: _object_spread({}, e.cardTitle, (b = t.skin.textPresets) == null ? void 0 : b.cardTitle),
86
+ button: _object_spread({}, e.button, (g = t.skin.textPresets) == null ? void 0 : g.button),
87
+ link: _object_spread({}, e.link, (M = t.skin.textPresets) == null ? void 0 : M.link),
88
+ title1: _object_spread({}, e.title1, (T = t.skin.textPresets) == null ? void 0 : T.title1),
89
+ indicator: _object_spread({}, e.indicator, (C = t.skin.textPresets) == null ? void 0 : C.indicator)
86
90
  },
87
- Link: (_t_Link = t.Link) !== null && _t_Link !== void 0 ? _t_Link : O,
88
- isDarkMode: f,
89
- isIos: g(d) === "ios",
90
- useHrefDecorator: (_t_useHrefDecorator = t.useHrefDecorator) !== null && _t_useHrefDecorator !== void 0 ? _t_useHrefDecorator : Q,
91
+ Link: (_t_Link = t.Link) !== null && _t_Link !== void 0 ? _t_Link : h,
92
+ isDarkMode: u,
93
+ isIos: D(l) === "ios",
94
+ useHrefDecorator: (_t_useHrefDecorator = t.useHrefDecorator) !== null && _t_useHrefDecorator !== void 0 ? _t_useHrefDecorator : Z,
91
95
  useId: t.useId
92
96
  };
93
97
  }, [
94
98
  t,
95
- f
96
- ]), I = Object.fromEntries(Object.entries(p).map((param)=>{
97
- let [d, i] = param;
99
+ u
100
+ ]), H = Object.fromEntries(Object.entries(k).map((param)=>{
101
+ let [l, i] = param;
98
102
  let n = "";
99
103
  if (i.startsWith("#")) {
100
- const [l, m, x] = q(i);
101
- n = `${l}, ${m}, ${x}`;
104
+ const [d, x, f] = Q(i);
105
+ n = `${d}, ${x}, ${f}`;
102
106
  }
103
107
  return [
104
- d,
108
+ l,
105
109
  n
106
110
  ];
107
- })), v = h(G, {
108
- colors: p,
109
- rawColors: I,
110
- borderRadii: (_t_skin_borderRadii = t.skin.borderRadii) !== null && _t_skin_borderRadii !== void 0 ? _t_skin_borderRadii : W
111
+ })), v = N(K, {
112
+ colors: k,
113
+ rawColors: H,
114
+ borderRadii: (_t_skin_borderRadii = t.skin.borderRadii) !== null && _t_skin_borderRadii !== void 0 ? _t_skin_borderRadii : U
111
115
  });
112
- return /* @__PURE__ */ e(V, {
116
+ return /* @__PURE__ */ r(z, {
113
117
  disabled: !t.enableTabFocus,
114
- children: /* @__PURE__ */ e(j, {
115
- children: /* @__PURE__ */ e(F.Provider, {
116
- value: k,
117
- children: /* @__PURE__ */ e(z, {
118
- eventFormat: k.analytics.eventFormat,
119
- children: /* @__PURE__ */ e(B, {
120
- children: /* @__PURE__ */ e(_, {
121
- children: /* @__PURE__ */ e(S.Provider, {
122
- value: M,
123
- children: /* @__PURE__ */ e(H, {
124
- children: /* @__PURE__ */ e(A, {
118
+ children: /* @__PURE__ */ r(G, {
119
+ children: /* @__PURE__ */ r(_.Provider, {
120
+ value: p,
121
+ children: /* @__PURE__ */ r(J, {
122
+ eventFormat: p.analytics.eventFormat,
123
+ children: /* @__PURE__ */ r(W, {
124
+ children: /* @__PURE__ */ r(q, {
125
+ children: /* @__PURE__ */ r(w.Provider, {
126
+ value: I,
127
+ children: /* @__PURE__ */ r(L, {
128
+ children: /* @__PURE__ */ r(O, {
125
129
  children: o ? /*#__PURE__*/ a.createElement(o, {
126
130
  style: v
127
- }, c) : /* @__PURE__ */ E(R, {
131
+ }, c) : /* @__PURE__ */ S(y, {
128
132
  children: [
129
- (process.env.NODE_ENV !== "test" || process.env.SSR_TEST) && /* @__PURE__ */ e("style", {
133
+ (process.env.NODE_ENV !== "test" || process.env.SSR_TEST) && /* @__PURE__ */ r("style", {
130
134
  children: `:root {${v}}`
131
135
  }),
132
136
  c
@@ -141,5 +145,5 @@ const J = "(prefers-color-scheme: dark)", K = ()=>{
141
145
  })
142
146
  })
143
147
  });
144
- }, pt = X;
145
- export { pt as default, K as useIsOsDarkModeEnabled };
148
+ }, bt = et;
149
+ export { bt as default, Y as useIsOsDarkModeEnabled };
package/dist-es/title.js CHANGED
@@ -26,56 +26,59 @@ function _object_spread(target) {
26
26
  }
27
27
  return target;
28
28
  }
29
- import { jsx as r, jsxs as m } from "react/jsx-runtime";
30
- import { Text1 as l, Text5 as s, Text2 as c } from "./text.js";
31
- import p from "./inline.js";
32
- import u from "./box.js";
33
- import { vars as d } from "./skins/skin-contract.css-mistica.js";
34
- const a = (param)=>{
35
- let { title: e , right: t } = param;
36
- return t ? /* @__PURE__ */ m(p, {
29
+ import { jsx as r, jsxs as l } from "react/jsx-runtime";
30
+ import { Text1 as c, Text5 as p, Text2 as f } from "./text.js";
31
+ import x from "./inline.js";
32
+ import d from "./box.js";
33
+ import { vars as h } from "./skins/skin-contract.css-mistica.js";
34
+ import { useTheme as s } from "./hooks.js";
35
+ const m = (param)=>{
36
+ let { title: t , right: e } = param;
37
+ const { textPresets: o } = s();
38
+ return e ? /* @__PURE__ */ l(x, {
37
39
  space: "between",
38
40
  alignItems: "baseline",
39
41
  children: [
40
- e,
41
- /* @__PURE__ */ r(u, {
42
+ t,
43
+ /* @__PURE__ */ r(d, {
42
44
  paddingLeft: 16,
43
- children: /* @__PURE__ */ r(c, {
44
- regular: !0,
45
- children: t
45
+ children: /* @__PURE__ */ r(f, {
46
+ weight: o.link.weight,
47
+ children: e
46
48
  })
47
49
  })
48
50
  ]
49
- }) : e;
50
- }, g = (param)=>/* @__PURE__ */ {
51
- let { children: e , as: t = "h3" , id: o , right: n , dataAttributes: i } = param;
52
- return r(a, {
53
- title: /* @__PURE__ */ r(l, {
54
- color: d.colors.textSecondary,
51
+ }) : t;
52
+ }, k = (param)=>{
53
+ let { children: t , as: e = "h3" , id: o , right: i , dataAttributes: n } = param;
54
+ const { textPresets: a } = s();
55
+ return /* @__PURE__ */ r(m, {
56
+ title: /* @__PURE__ */ r(c, {
57
+ color: h.colors.textSecondary,
55
58
  transform: "uppercase",
56
- medium: !0,
57
- as: t,
59
+ weight: a.title1.weight,
60
+ as: e,
58
61
  id: o,
59
62
  dataAttributes: _object_spread({
60
63
  "component-name": "Title1"
61
- }, i),
64
+ }, n),
62
65
  wordBreak: !1,
63
- children: e
66
+ children: t
64
67
  }),
65
- right: n
68
+ right: i
66
69
  });
67
- }, j = (param)=>/* @__PURE__ */ {
68
- let { children: e , as: t = "h3" , id: o , right: n , dataAttributes: i } = param;
69
- return r(a, {
70
- title: /* @__PURE__ */ r(s, {
71
- as: t,
70
+ }, y = (param)=>/* @__PURE__ */ {
71
+ let { children: t , as: e = "h3" , id: o , right: i , dataAttributes: n } = param;
72
+ return r(m, {
73
+ title: /* @__PURE__ */ r(p, {
74
+ as: e,
72
75
  id: o,
73
76
  dataAttributes: _object_spread({
74
77
  "component-name": "Title2"
75
- }, i),
76
- children: e
78
+ }, n),
79
+ children: t
77
80
  }),
78
- right: n
81
+ right: i
79
82
  });
80
83
  };
81
- export { g as Title1, j as Title2 };
84
+ export { k as Title1, y as Title2 };
@@ -1,11 +1,11 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./tooltip.css.ts.vanilla.css-mistica.js";
3
- var v = "_1xhatbpb _1y2v1nf60 _1y2v1nfam _1y2v1nf8h _1y2v1nf8w _1y2v1nfa4 _1y2v1nf31 _1y2v1nfa1", t = "_1xhatbpe", _ = "_1xhatbpf", n = "_1xhatbpd", e = "_1xhatbpc", f = "_1y2v1nf60 _1y2v1nf8j _1y2v1nf8w _1y2v1nfak _1y2v1nf2", p = "_1xhatbpj _1y2v1nf6u _1y2v1nf78 _1y2v1nf7m _1y2v1nf80 _1y2v1nf60 _1y2v1nfb5 _1y2v1nf8c _1y2v1nfad _1y2v1nfa1", o = "_1xhatbpk", h = "_1xhatbpl", x = "_1xhatbpm", y = "_1xhatbpn", b = "_1xhatbpo", m = "_1xhatbp6", i = "_1xhatbp7", w = "_1xhatbp8", s = {
3
+ var v = "_1xhatbpb _1y2v1nf60 _1y2v1nfau _1y2v1nf8l _1y2v1nf91 _1y2v1nfac _1y2v1nf31 _1y2v1nfa9", t = "_1xhatbpe", _ = "_1xhatbpf", n = "_1xhatbpd", e = "_1xhatbpc", f = "_1y2v1nf60 _1y2v1nf8o _1y2v1nf91 _1y2v1nfas _1y2v1nf2", p = "_1xhatbpj _1y2v1nf6u _1y2v1nf79 _1y2v1nf7o _1y2v1nf83 _1y2v1nf60 _1y2v1nfbe _1y2v1nf8g _1y2v1nfal _1y2v1nfa9", o = "_1xhatbpk", x = "_1xhatbpl", y = "_1xhatbpm", h = "_1xhatbpn", b = "_1xhatbpo", m = "_1xhatbp6", i = "_1xhatbp7", w = "_1xhatbp8", s = {
4
4
  shadowAlpha: "var(--_1xhatbp0)",
5
5
  enterTransform: "var(--_1xhatbp1)",
6
6
  enterDoneTransform: "var(--_1xhatbp2)",
7
7
  exitTransform: "var(--_1xhatbp3)",
8
8
  enterActiveAnimationName: "var(--_1xhatbp4)",
9
9
  arrowBoxShadow: "var(--_1xhatbp5)"
10
- }, d = "_1y2v1nf68";
11
- export { v as arrow, t as arrowBottom, _ as arrowLeft, n as arrowRight, e as arrowTop, f as arrowWrapper, p as container, o as enter, h as enterActive, x as enterDone, y as exit, b as exitActive, m as fadeInBottomKeyframes, i as fadeInTopKeyframes, w as fadeInXKeyframes, s as vars, d as wrapper };
10
+ }, c = "_1y2v1nf68";
11
+ export { v as arrow, t as arrowBottom, _ as arrowLeft, n as arrowRight, e as arrowTop, f as arrowWrapper, p as container, o as enter, x as enterActive, y as enterDone, h as exit, b as exitActive, m as fadeInBottomKeyframes, i as fadeInTopKeyframes, w as fadeInXKeyframes, s as vars, c as wrapper };
@@ -84,14 +84,15 @@ import { CSSTransition as V } from "react-transition-group";
84
84
  import { useTheme as j, useScreenSize as q, useAriaId as G } from "./hooks.js";
85
85
  import { Portal as H } from "./portal.js";
86
86
  import J from "./overlay.js";
87
- import { Text2 as S } from "./text.js";
87
+ import { Text2 as O } from "./text.js";
88
88
  import { TAB as Q } from "./utils/key-codes.js";
89
89
  import U from "./stack.js";
90
90
  import { vars as n, wrapper as Z, enter as _, enterActive as tt, enterDone as et, exit as rt, exitActive as nt, container as ot, arrowWrapper as at, arrow as it, fadeInTopKeyframes as st, fadeInBottomKeyframes as ct, fadeInXKeyframes as lt, arrowTop as ut, arrowBottom as ft, arrowLeft as mt, arrowRight as dt } from "./tooltip.css-mistica.js";
91
91
  import { assignInlineVars as pt } from "@vanilla-extract/dynamic";
92
92
  import { getPrefixedDataAttributes as ht } from "./utils/dom.js";
93
- const wt = "bottom", gt = "top", xt = 12, h = 4 + xt, w = 16, Tt = 340, bt = 500, d = 12, vt = 500, R = ()=>{}, At = (t)=>t || Tt, Yt = (t)=>t === "bottom" ? `translateY(${d}px)` : t === "top" ? `translateY(calc(-100% - ${d}px))` : t === "right" ? `translateX(${d}px) translateY(-50%)` : t === "left" ? `translateX(-${d}px) translateY(-50%)` : `translateY(-${d}px)`, yt = (t)=>t === "top" ? "translateY(-100%)" : t === "bottom" ? "translateY(0)" : "translateY(-50%)", Pt = (t)=>t === "bottom" ? "translateY(0)" : t === "top" ? "translateY(-100%)" : t === "right" || t === "left" ? "translateX(0px) translateY(-50%)" : "translateY(0px)", Dt = (t)=>t === "top" ? st : t === "bottom" ? ct : lt, Ot = (t)=>t ? "1" : "0.2", St = (t)=>t === "top" ? `2px 2px 4px 0 rgba(0, 0, 0, ${n.shadowAlpha})` : t === "right" ? `0 0 4px 0 rgba(0, 0, 0, ${n.shadowAlpha})` : t === "left" ? `0 0 4px 0 rgba(0, 0, 0, ${n.shadowAlpha})` : t === "bottom" ? `-1px -1px 4px 0 rgba(0, 0, 0, ${n.shadowAlpha})` : "", Rt = (_param)=>{
94
- var { children: t , extra: $ , description: g , target: I , title: x , targetLabel: B , delay: C = !0 , dataAttributes: E } = _param, Y = _object_without_properties(_param, [
93
+ import { isClientSide as gt, isServerSide as wt } from "./utils/environment.js";
94
+ const xt = "bottom", Tt = "top", bt = 12, h = 4 + bt, g = 16, vt = 340, At = 500, d = 12, Yt = 500, R = ()=>{}, Pt = (t)=>t || vt, St = (t)=>t === "bottom" ? `translateY(${d}px)` : t === "top" ? `translateY(calc(-100% - ${d}px))` : t === "right" ? `translateX(${d}px) translateY(-50%)` : t === "left" ? `translateX(-${d}px) translateY(-50%)` : `translateY(-${d}px)`, yt = (t)=>t === "top" ? "translateY(-100%)" : t === "bottom" ? "translateY(0)" : "translateY(-50%)", Dt = (t)=>t === "bottom" ? "translateY(0)" : t === "top" ? "translateY(-100%)" : t === "right" || t === "left" ? "translateX(0px) translateY(-50%)" : "translateY(0px)", Ot = (t)=>t === "top" ? st : t === "bottom" ? ct : lt, Rt = (t)=>t ? "1" : "0.2", $t = (t)=>t === "top" ? `2px 2px 4px 0 rgba(0, 0, 0, ${n.shadowAlpha})` : t === "right" ? `0 0 4px 0 rgba(0, 0, 0, ${n.shadowAlpha})` : t === "left" ? `0 0 4px 0 rgba(0, 0, 0, ${n.shadowAlpha})` : t === "bottom" ? `-1px -1px 4px 0 rgba(0, 0, 0, ${n.shadowAlpha})` : "", It = (_param)=>{
95
+ var { children: t , extra: $ , description: w , target: I , title: x , targetLabel: C , delay: B = !0 , dataAttributes: E } = _param, Y = _object_without_properties(_param, [
95
96
  "children",
96
97
  "extra",
97
98
  "description",
@@ -101,7 +102,7 @@ const wt = "bottom", gt = "top", xt = 12, h = 4 + xt, w = 16, Tt = 340, bt = 500
101
102
  "delay",
102
103
  "dataAttributes"
103
104
  ]);
104
- const { isDarkMode: M } = j(), [l, T] = c.useState(!1), { isTabletOrSmaller: u } = q(), y = G(), o = c.useRef(!1), r = c.useRef(null), f = c.useRef(null), b = c.useRef(null), e = c.useRef({
105
+ const { isDarkMode: M } = j(), [l, T] = c.useState(!1), { isTabletOrSmaller: u } = q(), P = G(), o = c.useRef(!1), r = c.useRef(null), f = c.useRef(null), b = c.useRef(null), e = c.useRef({
105
106
  top: 0,
106
107
  right: 0,
107
108
  left: 0,
@@ -109,23 +110,23 @@ const wt = "bottom", gt = "top", xt = 12, h = 4 + xt, w = 16, Tt = 340, bt = 500
109
110
  width: 0,
110
111
  height: 0
111
112
  }), a = function() {
112
- let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : wt;
113
- return u && (i === "left" || i === "right") ? gt : i;
114
- }(Y.position), v = typeof window < "u" ? window.matchMedia("(pointer: coarse)").matches : !1, P = ()=>{
113
+ let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : xt;
114
+ return u && (i === "left" || i === "right") ? Tt : i;
115
+ }(Y.position), v = gt() ? window.matchMedia("(pointer: coarse)").matches : !1, S = ()=>{
115
116
  l && T(!1);
116
117
  };
117
- c.useEffect(()=>(window.addEventListener("resize", P), ()=>{
118
- window.removeEventListener("resize", P);
118
+ c.useEffect(()=>(window.addEventListener("resize", S), ()=>{
119
+ window.removeEventListener("resize", S);
119
120
  }));
120
- const D = ()=>{
121
+ const y = ()=>{
121
122
  T(!1);
122
123
  }, m = ()=>{
123
124
  b.current && (e.current = b.current.getBoundingClientRect(), T(!l));
124
125
  }, N = ()=>{
125
126
  l || m();
126
127
  }, k = (i)=>{
127
- i.keyCode === Q && D();
128
- }, X = (i, A)=>typeof window > "u" ? {} : ({
128
+ i.keyCode === Q && y();
129
+ }, X = (i, A)=>wt() ? {} : ({
129
130
  right: {
130
131
  left: e.current.right + h,
131
132
  top: window.pageYOffset + e.current.top + e.current.height / 2
@@ -136,26 +137,26 @@ const wt = "bottom", gt = "top", xt = 12, h = 4 + xt, w = 16, Tt = 340, bt = 500
136
137
  },
137
138
  top: {
138
139
  top: window.pageYOffset + e.current.top - h,
139
- left: u ? w : window.pageXOffset + e.current.left + e.current.width / 2 - A / 2
140
+ left: u ? g : window.pageXOffset + e.current.left + e.current.width / 2 - A / 2
140
141
  },
141
142
  bottom: {
142
143
  top: window.pageYOffset + e.current.bottom + h,
143
- left: u ? w : window.pageXOffset + e.current.left + e.current.width / 2 - A / 2
144
+ left: u ? g : window.pageXOffset + e.current.left + e.current.width / 2 - A / 2
144
145
  }
145
146
  })[i], L = ()=>u ? {
146
- left: e.current.left + e.current.width / 2 - w
147
- } : {}, O = (()=>u ? window.innerWidth - w * 2 : At(Y.width))(), K = {
147
+ left: e.current.left + e.current.width / 2 - g
148
+ } : {}, D = (()=>u ? window.innerWidth - g * 2 : Pt(Y.width))(), K = {
148
149
  top: ut,
149
150
  bottom: ft,
150
151
  left: mt,
151
152
  right: dt
152
153
  }, W = pt({
153
- [n.enterTransform]: Yt(a),
154
- [n.exitTransform]: Pt(a),
155
- [n.enterActiveAnimationName]: Dt(a),
154
+ [n.enterTransform]: St(a),
155
+ [n.exitTransform]: Dt(a),
156
+ [n.enterActiveAnimationName]: Ot(a),
156
157
  [n.enterDoneTransform]: yt(a),
157
- [n.shadowAlpha]: Ot(M),
158
- [n.arrowBoxShadow]: St(a)
158
+ [n.shadowAlpha]: Rt(M),
159
+ [n.arrowBoxShadow]: $t(a)
159
160
  });
160
161
  return /* @__PURE__ */ p(z, {
161
162
  children: [
@@ -163,9 +164,9 @@ const wt = "bottom", gt = "top", xt = 12, h = 4 + xt, w = 16, Tt = 340, bt = 500
163
164
  ref: b,
164
165
  className: Z,
165
166
  onPointerOver: ()=>{
166
- r.current && (clearTimeout(r.current), r.current = null), !o.current && (o.current = !0, C ? f.current = setTimeout(()=>{
167
+ r.current && (clearTimeout(r.current), r.current = null), !o.current && (o.current = !0, B ? f.current = setTimeout(()=>{
167
168
  f.current = null, m();
168
- }, vt) : m());
169
+ }, Yt) : m());
169
170
  },
170
171
  onPointerLeave: v ? R : ()=>{
171
172
  if (f.current) {
@@ -181,19 +182,19 @@ const wt = "bottom", gt = "top", xt = 12, h = 4 + xt, w = 16, Tt = 340, bt = 500
181
182
  "touch-action": "auto",
182
183
  role: "button",
183
184
  tabIndex: 0,
184
- "aria-describedby": y,
185
+ "aria-describedby": P,
185
186
  "aria-expanded": l,
186
- "aria-label": B,
187
+ "aria-label": C,
187
188
  children: I
188
189
  }),
189
190
  /* @__PURE__ */ p(H, {
190
191
  children: [
191
192
  l && v && /* @__PURE__ */ s(J, {
192
- onPress: D
193
+ onPress: y
193
194
  }),
194
195
  /* @__PURE__ */ s(V, {
195
196
  in: l,
196
- timeout: bt,
197
+ timeout: At,
197
198
  classNames: {
198
199
  enter: _,
199
200
  enterActive: tt,
@@ -204,11 +205,11 @@ const wt = "bottom", gt = "top", xt = 12, h = 4 + xt, w = 16, Tt = 340, bt = 500
204
205
  unmountOnExit: !0,
205
206
  children: /* @__PURE__ */ p("div", _object_spread_props(_object_spread({}, ht(E, "Tooltip")), {
206
207
  role: "tooltip",
207
- id: y,
208
+ id: P,
208
209
  className: ot,
209
210
  style: _object_spread({
210
- width: O
211
- }, X(a, O), W),
211
+ width: D
212
+ }, X(a, D), W),
212
213
  onPointerOver: ()=>{
213
214
  r.current && (clearTimeout(r.current), r.current = null);
214
215
  },
@@ -225,16 +226,16 @@ const wt = "bottom", gt = "top", xt = 12, h = 4 + xt, w = 16, Tt = 340, bt = 500
225
226
  className: it
226
227
  })
227
228
  }),
228
- (x || g) && /* @__PURE__ */ p(U, {
229
+ (x || w) && /* @__PURE__ */ p(U, {
229
230
  space: 4,
230
231
  children: [
231
- x && /* @__PURE__ */ s(S, {
232
+ x && /* @__PURE__ */ s(O, {
232
233
  medium: !0,
233
234
  children: x
234
235
  }),
235
- g && /* @__PURE__ */ s(S, {
236
+ w && /* @__PURE__ */ s(O, {
236
237
  regular: !0,
237
- children: g
238
+ children: w
238
239
  })
239
240
  ]
240
241
  }),
@@ -246,5 +247,5 @@ const wt = "bottom", gt = "top", xt = 12, h = 4 + xt, w = 16, Tt = 340, bt = 500
246
247
  })
247
248
  ]
248
249
  });
249
- }, jt = Rt;
250
- export { jt as default };
250
+ }, Ht = It;
251
+ export { Ht as default };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./touchable.css.ts.vanilla.css-mistica.js";
3
- var n = "mhti6u1 _1y2v1nfaj", f = "mhti6u4", _ = "mhti6u1 _1y2v1nfaj _1y2v1nf6r _1y2v1nf75 _1y2v1nf7j _1y2v1nf7x _1y2v1nf66 _1y2v1nfa2 _1y2v1nf8b _1y2v1nf2y _1y2v1nf5y _1y2v1nfal";
4
- export { n as base, f as notTouchable, _ as touchable };
3
+ var f = "mhti6u1 _1y2v1nfar", n = "mhti6u4", _ = "mhti6u1 _1y2v1nfar _1y2v1nf6r _1y2v1nf76 _1y2v1nf7l _1y2v1nf80 _1y2v1nf66 _1y2v1nfaa _1y2v1nf8f _1y2v1nf2y _1y2v1nf5y _1y2v1nfat";
4
+ export { f as base, n as notTouchable, _ as touchable };
@@ -1,6 +1,6 @@
1
1
  import "../sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./aspect-ratio-support.css.ts.vanilla.css-mistica.js";
3
- var v = "yqswj62", n = "_1y2v1nf8b _1y2v1nf8r _1y2v1nfam _1y2v1nfb0", y = {
3
+ var v = "yqswj62", n = "_1y2v1nf8f _1y2v1nf8w _1y2v1nfau _1y2v1nfb9", y = {
4
4
  aspectRatio: "var(--yqswj60)"
5
- }, f = "_1y2v1nfak _1y2v1nf9z _1y2v1nfa0 _1y2v1nf5z";
5
+ }, f = "_1y2v1nfas _1y2v1nfa7 _1y2v1nfa8 _1y2v1nf5z";
6
6
  export { v as container, n as containerWithWrapper, y as vars, f as wrapper };