@ark-ui/solid 5.31.0 → 5.33.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 (249) hide show
  1. package/dist/chunk/{AFGSUR6R.js → 26AFWRWR.js} +1 -1
  2. package/dist/chunk/{NHSNBGCC.js → 2DWWKUQD.js} +1 -1
  3. package/dist/chunk/{7LBRKLXW.js → 2HZTFCLA.js} +1 -1
  4. package/dist/chunk/{Q2EC4X24.jsx → 2KZV6B32.jsx} +7 -5
  5. package/dist/chunk/{DFHJBZM6.js → 3CGAZ37C.js} +3 -2
  6. package/dist/chunk/{WMMVKZHK.jsx → 3JJJT3ZB.jsx} +4 -4
  7. package/dist/chunk/{OSFE5N7D.js → 3QFD7O3R.js} +1 -1
  8. package/dist/chunk/{G7BHQPOC.js → 3WVUTGI5.js} +1 -1
  9. package/dist/chunk/{SLOK7RQU.js → 46J43BJK.js} +1 -1
  10. package/dist/chunk/{ZQJU3MNB.jsx → 4CRPJKY4.jsx} +14 -10
  11. package/dist/chunk/{XTL34GZH.js → 4NX2BXDE.js} +1 -1
  12. package/dist/chunk/{DNRJCAR4.jsx → 4OJLSY6B.jsx} +3 -3
  13. package/dist/chunk/{5O3D32XK.jsx → 4RPVBIDO.jsx} +6 -6
  14. package/dist/chunk/{CMGVBYH6.jsx → 4V5X4XYS.jsx} +38 -9
  15. package/dist/chunk/5BSMJBO7.jsx +136 -0
  16. package/dist/chunk/{5SEYLBQQ.jsx → 5UOOPLZE.jsx} +4 -4
  17. package/dist/chunk/{S7ILHA7C.jsx → 64BWQJ5X.jsx} +7 -5
  18. package/dist/chunk/{Q67V4SSK.js → 6CIJMDKA.js} +1 -1
  19. package/dist/chunk/{T4C4OLH5.jsx → 77WG4BKE.jsx} +6 -6
  20. package/dist/chunk/{NYBDSWDH.js → 7N7WQTZL.js} +2 -2
  21. package/dist/chunk/{SCMBWJVC.jsx → 7RLMGBOC.jsx} +3 -3
  22. package/dist/chunk/{D4GWWUQY.jsx → BB22DOQW.jsx} +7 -5
  23. package/dist/chunk/{XMIVUAEB.jsx → BKN7PQAU.jsx} +4 -4
  24. package/dist/chunk/{RBYLWQEE.js → BNK2OLFQ.js} +1 -1
  25. package/dist/chunk/{V6TUJPSE.jsx → BNSRP6TN.jsx} +3 -3
  26. package/dist/chunk/{AOAGDS53.jsx → BWUVF6ZV.jsx} +3 -3
  27. package/dist/chunk/{YJZT56R5.js → CSPYRAHE.js} +1 -1
  28. package/dist/chunk/{CTYC3XVM.js → CVZHE2SA.js} +3 -2
  29. package/dist/chunk/DIPPYNXP.jsx +306 -0
  30. package/dist/chunk/{RVOPDSQY.js → EM5SH6A3.js} +12 -1
  31. package/dist/chunk/{VQAY7ALM.js → EWZDTHD5.js} +3 -2
  32. package/dist/chunk/{NT6ZYH25.js → EZUEPSKL.js} +1 -1
  33. package/dist/chunk/{YTEBGEQ4.jsx → FPLD7TDU.jsx} +9 -7
  34. package/dist/chunk/{DM5NMT5Y.jsx → GOIBDXMD.jsx} +7 -5
  35. package/dist/chunk/{UGSFGPFW.jsx → GUAJ4JKS.jsx} +4 -4
  36. package/dist/chunk/{RY7KBPRA.jsx → GVJQBGKQ.jsx} +3 -3
  37. package/dist/chunk/{YRAJJHEJ.jsx → H72X6NDR.jsx} +5 -5
  38. package/dist/chunk/{VUOC2LCL.js → HBI6JRIQ.js} +1 -1
  39. package/dist/chunk/{A7ULUG37.jsx → HNGLQNVW.jsx} +4 -4
  40. package/dist/chunk/{JFOWNFC7.jsx → HOPBYFHD.jsx} +20 -3
  41. package/dist/chunk/{5WXM756C.js → IBHRQZGE.js} +2 -2
  42. package/dist/chunk/{KMYFS63G.js → IYV66IHX.js} +20 -4
  43. package/dist/chunk/{4GOETTVP.js → J6DQNRLJ.js} +1 -1
  44. package/dist/chunk/{2WRCIBVP.js → JBLHW7IM.js} +4 -29
  45. package/dist/chunk/{4GELDCEE.jsx → JBLKWLWL.jsx} +4 -4
  46. package/dist/chunk/{WJ3SED2J.js → JS3XBGMJ.js} +1 -1
  47. package/dist/chunk/{WYVADPK7.js → JTLQTUVA.js} +1 -1
  48. package/dist/chunk/{O6CMUPUG.js → JXG4T6X4.js} +1 -1
  49. package/dist/chunk/{TAEJBOHF.js → K3OREICY.js} +2 -2
  50. package/dist/chunk/{CCBSY5FU.js → K4UPRSXC.js} +3 -2
  51. package/dist/chunk/{3JI3LEL3.js → KLVISEUF.js} +3 -2
  52. package/dist/chunk/{LYCTCPBV.js → KQNSJPVJ.js} +1 -1
  53. package/dist/chunk/KWLZPDF4.jsx +6 -0
  54. package/dist/chunk/{CGB5YI3F.jsx → LBXPKVCB.jsx} +1 -1
  55. package/dist/chunk/{Z326BLVT.js → LDQ53A2W.js} +7 -4
  56. package/dist/chunk/{BHJYCERG.js → LGI6RFKK.js} +3 -2
  57. package/dist/chunk/{7LG5FPBU.js → LPVFYK7O.js} +4 -3
  58. package/dist/chunk/{TJ7E237D.js → LQ6WK4Z4.js} +1 -1
  59. package/dist/chunk/{EMHNANVE.jsx → MB6S2OKT.jsx} +3 -3
  60. package/dist/chunk/{2SGHC324.js → MKDWWRA5.js} +2 -2
  61. package/dist/chunk/{KH2XV4KM.jsx → MQWCA23U.jsx} +7 -5
  62. package/dist/chunk/NEU4F4NG.jsx +52 -0
  63. package/dist/chunk/{KQGHYOLW.jsx → NH3KCKN2.jsx} +4 -4
  64. package/dist/chunk/NJVZNV63.js +121 -0
  65. package/dist/chunk/{MDSG7I6V.js → NSXJ2QGV.js} +1 -1
  66. package/dist/chunk/{EV7COIUN.jsx → O6MULJWC.jsx} +4 -4
  67. package/dist/chunk/{ZSFOKQ3Z.jsx → OAH52JX6.jsx} +3 -3
  68. package/dist/chunk/{VTTFCXVC.jsx → OEGORBLT.jsx} +1 -47
  69. package/dist/chunk/ORFQCCEF.js +7 -0
  70. package/dist/chunk/{RLUEXDAM.jsx → OULN7AIR.jsx} +7 -5
  71. package/dist/chunk/{C56T2HRV.jsx → PPH4D7AF.jsx} +4 -4
  72. package/dist/chunk/{VPKUVVDM.js → QKALXKQ2.js} +3 -2
  73. package/dist/chunk/{IM2L53FZ.jsx → QM5PBW35.jsx} +7 -5
  74. package/dist/chunk/{5LGVYTH5.js → QP67RQ4U.js} +1 -1
  75. package/dist/chunk/{5QVNY35H.js → QXSMGAB3.js} +1 -1
  76. package/dist/chunk/{2KCVIKG7.jsx → QY2YSMFW.jsx} +3 -3
  77. package/dist/chunk/{TQCLH765.jsx → RJHFA54S.jsx} +9 -6
  78. package/dist/chunk/{ZYS6A6GV.jsx → RROG5OYX.jsx} +3 -3
  79. package/dist/chunk/RT4GKNE7.js +1 -0
  80. package/dist/chunk/{BV6RNXMH.js → RTMU5FC3.js} +3 -2
  81. package/dist/chunk/{UGCFDJSO.jsx → SFGMQBWT.jsx} +3 -3
  82. package/dist/chunk/{G2UMJWTM.js → SMG76T6Y.js} +2 -2
  83. package/dist/chunk/{2TPQPUX6.jsx → SPOOGCGR.jsx} +3 -3
  84. package/dist/chunk/{DON7WJR6.jsx → TFTY2V3E.jsx} +3 -3
  85. package/dist/chunk/{6N44QPMY.jsx → TGBMUR4Z.jsx} +10 -8
  86. package/dist/chunk/{YQOHTJFL.js → TKBMSQRY.js} +1 -1
  87. package/dist/chunk/UCE6BN4G.js +239 -0
  88. package/dist/chunk/{5LDIC54T.jsx → UQTBTRSG.jsx} +3 -3
  89. package/dist/chunk/{GXLS3QZ4.js → W5FJUJL2.js} +3 -2
  90. package/dist/chunk/{4UQ4BNTC.js → WEHZ7AD5.js} +1 -1
  91. package/dist/chunk/{ZOKZFKHJ.jsx → WHD7YP7Q.jsx} +4 -4
  92. package/dist/chunk/{VUSRNP23.js → WSIS4VPD.js} +3 -2
  93. package/dist/chunk/X22PRPOR.js +31 -0
  94. package/dist/chunk/{EOQC4OFF.js → XCCC6IWM.js} +1 -1
  95. package/dist/chunk/{VVSGL3B5.js → XUKSV26K.js} +2 -2
  96. package/dist/chunk/XVU3GCCX.jsx +9 -0
  97. package/dist/chunk/{FQY342YD.jsx → Z3LUEVRS.jsx} +10 -8
  98. package/dist/chunk/{76UE3KN4.jsx → Z5FQB54Q.jsx} +5 -5
  99. package/dist/chunk/{IHT5Q6Q3.jsx → ZG4V7QA5.jsx} +4 -4
  100. package/dist/chunk/{MMBOU3ZC.jsx → ZLZED63N.jsx} +4 -4
  101. package/dist/chunk/{TZA2XQYK.jsx → ZMQW6EBL.jsx} +1 -1
  102. package/dist/chunk/{GOJHNXPD.jsx → ZW5OSILD.jsx} +4 -4
  103. package/dist/chunk/{CKMDA3R6.js → ZZDF5GUB.js} +1 -1
  104. package/dist/{combobox.anatomy-CW3VXK4N.d.ts → combobox.anatomy-5H6l0CJs.d.ts} +1 -1
  105. package/dist/components/accordion/index.js +1 -1
  106. package/dist/components/accordion/index.jsx +5 -5
  107. package/dist/components/anatomy.d.ts +5 -4
  108. package/dist/components/anatomy.js +12 -11
  109. package/dist/components/anatomy.jsx +61 -57
  110. package/dist/components/angle-slider/index.js +1 -1
  111. package/dist/components/angle-slider/index.jsx +4 -4
  112. package/dist/components/avatar/index.js +1 -1
  113. package/dist/components/avatar/index.jsx +4 -4
  114. package/dist/components/carousel/index.js +1 -1
  115. package/dist/components/carousel/index.jsx +4 -4
  116. package/dist/components/checkbox/index.d.ts +4 -0
  117. package/dist/components/checkbox/index.js +1 -1
  118. package/dist/components/checkbox/index.jsx +6 -6
  119. package/dist/components/clipboard/index.jsx +3 -3
  120. package/dist/components/collapsible/index.js +1 -1
  121. package/dist/components/collapsible/index.jsx +4 -4
  122. package/dist/components/color-picker/index.js +1 -1
  123. package/dist/components/color-picker/index.jsx +8 -7
  124. package/dist/components/combobox/index.d.ts +1 -1
  125. package/dist/components/combobox/index.js +1 -1
  126. package/dist/components/combobox/index.jsx +9 -8
  127. package/dist/components/date-picker/index.d.ts +24 -5
  128. package/dist/components/date-picker/index.js +1 -1
  129. package/dist/components/date-picker/index.jsx +10 -5
  130. package/dist/components/dialog/index.js +1 -1
  131. package/dist/components/dialog/index.jsx +6 -5
  132. package/dist/components/download-trigger/index.jsx +1 -1
  133. package/dist/components/drawer/index.d.ts +121 -0
  134. package/dist/components/drawer/index.js +2 -0
  135. package/dist/components/drawer/index.jsx +56 -0
  136. package/dist/components/editable/index.js +1 -1
  137. package/dist/components/editable/index.jsx +6 -6
  138. package/dist/components/field/index.d.ts +18 -17
  139. package/dist/components/field/index.jsx +5 -5
  140. package/dist/components/fieldset/index.d.ts +5 -4
  141. package/dist/components/fieldset/index.jsx +4 -4
  142. package/dist/components/file-upload/index.js +1 -1
  143. package/dist/components/file-upload/index.jsx +6 -6
  144. package/dist/components/floating-panel/index.js +1 -1
  145. package/dist/components/floating-panel/index.jsx +6 -5
  146. package/dist/components/format/index.js +1 -1
  147. package/dist/components/format/index.jsx +2 -2
  148. package/dist/components/frame/index.jsx +1 -1
  149. package/dist/components/hover-card/index.js +1 -1
  150. package/dist/components/hover-card/index.jsx +6 -5
  151. package/dist/components/image-cropper/index.js +1 -1
  152. package/dist/components/image-cropper/index.jsx +4 -4
  153. package/dist/components/index.d.ts +10 -7
  154. package/dist/components/index.js +62 -59
  155. package/dist/components/index.jsx +514 -480
  156. package/dist/components/json-tree-view/index.js +1 -1
  157. package/dist/components/json-tree-view/index.jsx +6 -6
  158. package/dist/components/listbox/index.d.ts +2 -2
  159. package/dist/components/listbox/index.js +1 -1
  160. package/dist/components/listbox/index.jsx +4 -4
  161. package/dist/components/marquee/index.js +1 -1
  162. package/dist/components/marquee/index.jsx +4 -4
  163. package/dist/components/menu/index.js +1 -1
  164. package/dist/components/menu/index.jsx +6 -5
  165. package/dist/components/navigation-menu/index.js +3 -2
  166. package/dist/components/navigation-menu/index.jsx +7 -5
  167. package/dist/components/number-input/index.js +1 -1
  168. package/dist/components/number-input/index.jsx +6 -6
  169. package/dist/components/pagination/index.js +1 -1
  170. package/dist/components/pagination/index.jsx +4 -4
  171. package/dist/components/password-input/index.js +1 -1
  172. package/dist/components/password-input/index.jsx +6 -6
  173. package/dist/components/pin-input/index.js +1 -1
  174. package/dist/components/pin-input/index.jsx +6 -6
  175. package/dist/components/popover/index.js +1 -1
  176. package/dist/components/popover/index.jsx +6 -5
  177. package/dist/components/presence/index.js +2 -1
  178. package/dist/components/presence/index.jsx +4 -2
  179. package/dist/components/progress/index.d.ts +2 -2
  180. package/dist/components/progress/index.js +1 -1
  181. package/dist/components/progress/index.jsx +4 -4
  182. package/dist/components/qr-code/index.js +1 -1
  183. package/dist/components/qr-code/index.jsx +4 -4
  184. package/dist/components/radio-group/index.d.ts +2 -2
  185. package/dist/components/radio-group/index.js +1 -1
  186. package/dist/components/radio-group/index.jsx +5 -5
  187. package/dist/components/rating-group/index.js +1 -1
  188. package/dist/components/rating-group/index.jsx +6 -6
  189. package/dist/components/scroll-area/index.js +1 -1
  190. package/dist/components/scroll-area/index.jsx +4 -4
  191. package/dist/components/segment-group/index.d.ts +2 -2
  192. package/dist/components/segment-group/index.js +1 -1
  193. package/dist/components/segment-group/index.jsx +4 -4
  194. package/dist/components/select/index.js +1 -1
  195. package/dist/components/select/index.jsx +9 -8
  196. package/dist/components/signature-pad/index.js +1 -1
  197. package/dist/components/signature-pad/index.jsx +6 -6
  198. package/dist/components/slider/index.js +1 -1
  199. package/dist/components/slider/index.jsx +4 -4
  200. package/dist/components/splitter/index.js +1 -1
  201. package/dist/components/splitter/index.jsx +4 -4
  202. package/dist/components/steps/index.js +1 -1
  203. package/dist/components/steps/index.jsx +4 -4
  204. package/dist/components/swap/index.d.ts +74 -0
  205. package/dist/components/swap/index.js +2 -0
  206. package/dist/components/swap/index.jsx +28 -0
  207. package/dist/components/switch/index.js +1 -1
  208. package/dist/components/switch/index.jsx +6 -6
  209. package/dist/components/tabs/index.js +1 -1
  210. package/dist/components/tabs/index.jsx +6 -5
  211. package/dist/components/tags-input/index.js +1 -1
  212. package/dist/components/tags-input/index.jsx +6 -6
  213. package/dist/components/timer/index.jsx +3 -3
  214. package/dist/components/toast/index.js +1 -1
  215. package/dist/components/toast/index.jsx +3 -3
  216. package/dist/components/toggle/index.jsx +2 -2
  217. package/dist/components/toggle-group/index.js +1 -1
  218. package/dist/components/toggle-group/index.jsx +4 -4
  219. package/dist/components/tooltip/index.js +1 -1
  220. package/dist/components/tooltip/index.jsx +6 -5
  221. package/dist/components/tour/index.d.ts +1 -1
  222. package/dist/components/tour/index.js +1 -1
  223. package/dist/components/tour/index.jsx +6 -5
  224. package/dist/components/tree-view/index.js +1 -1
  225. package/dist/components/tree-view/index.jsx +5 -5
  226. package/dist/{date-picker.anatomy-DPHKzZh7.d.ts → date-picker.anatomy-DMDOrz3v.d.ts} +1 -1
  227. package/dist/index.d.ts +12 -8
  228. package/dist/index.js +63 -60
  229. package/dist/index.jsx +521 -485
  230. package/dist/providers/index.d.ts +3 -1
  231. package/dist/providers/index.js +1 -1
  232. package/dist/providers/index.jsx +8 -6
  233. package/dist/providers/locale/index.d.ts +10 -1
  234. package/dist/providers/locale/index.js +1 -1
  235. package/dist/providers/locale/index.jsx +4 -1
  236. package/dist/swap.anatomy-BTCTOTbL.d.ts +5 -0
  237. package/dist/{tour.anatomy-BwE3XSIU.d.ts → tour.anatomy-B2Ub0NWQ.d.ts} +1 -1
  238. package/package.json +77 -76
  239. package/dist/chunk/2R6SK2X3.js +0 -1
  240. package/dist/chunk/52P3DPTR.js +0 -178
  241. package/dist/chunk/DLQR7VNM.jsx +0 -231
  242. package/dist/chunk/WMZBRARY.jsx +0 -6
  243. package/dist/components/bottom-sheet/index.d.ts +0 -92
  244. package/dist/components/bottom-sheet/index.js +0 -2
  245. package/dist/components/bottom-sheet/index.jsx +0 -45
  246. package/dist/chunk/{TEKM4RER.jsx → AIK4SKXT.jsx} +3 -3
  247. package/dist/chunk/{PJLQLDQ3.js → PMEYD5LG.js} +0 -0
  248. package/dist/chunk/{EDXDNGEO.jsx → S6EAXNU4.jsx} +0 -0
  249. package/dist/chunk/{CG273YBB.jsx → WZBYH43M.jsx} +3 -3
@@ -1,4 +1,6 @@
1
1
  export { EnvironmentContext, EnvironmentProvider, EnvironmentProviderProps, RootNode, EnvironmentContext as UseEnvironmentContext, useEnvironmentContext } from './environment/index.js';
2
- export { LocaleProvider, LocaleProviderProps, UseCollatorProps, UseFilterProps, UseFilterReturn, UseLocaleContext, useCollator, useFilter, useLocaleContext } from './locale/index.js';
2
+ export { LocaleProvider, LocaleProviderProps, UseCollatorProps, UseDateFormatterProps, UseDateFormatterReturn, UseFilterProps, UseFilterReturn, UseLocaleContext, useCollator, useDateFormatter, useFilter, useLocaleContext } from './locale/index.js';
3
3
  import 'solid-js';
4
+ import '@internationalized/date';
5
+ import '../types-Sr_80hg9.js';
4
6
  import '@zag-js/i18n-utils';
@@ -1,2 +1,2 @@
1
- export { LocaleProvider, useCollator, useFilter, useLocaleContext } from '../chunk/RVOPDSQY.js';
2
1
  export { EnvironmentProvider, useEnvironmentContext } from '../chunk/3P5T77QU.js';
2
+ export { LocaleProvider, useCollator, useDateFormatter, useFilter, useLocaleContext } from '../chunk/EM5SH6A3.js';
@@ -1,22 +1,24 @@
1
1
  import "../chunk/ODQYYKL5.jsx";
2
+ import {
3
+ LocaleProvider,
4
+ useCollator,
5
+ useDateFormatter,
6
+ useFilter,
7
+ useLocaleContext
8
+ } from "../chunk/HOPBYFHD.jsx";
2
9
  import {
3
10
  EnvironmentProvider,
4
11
  useEnvironmentContext
5
12
  } from "../chunk/HDGILMRT.jsx";
6
13
  import "../chunk/KGOB2IMX.jsx";
7
14
  import "../chunk/UFYZ7HLU.jsx";
8
- import {
9
- LocaleProvider,
10
- useCollator,
11
- useFilter,
12
- useLocaleContext
13
- } from "../chunk/JFOWNFC7.jsx";
14
15
  import "../chunk/UZJJWJQM.jsx";
15
16
  import "../chunk/7IUG3E2V.jsx";
16
17
  export {
17
18
  EnvironmentProvider,
18
19
  LocaleProvider,
19
20
  useCollator,
21
+ useDateFormatter,
20
22
  useEnvironmentContext,
21
23
  useFilter,
22
24
  useLocaleContext
@@ -1,5 +1,7 @@
1
1
  import * as solid_js from 'solid-js';
2
2
  import { ParentProps, Accessor } from 'solid-js';
3
+ import { DateFormatter } from '@internationalized/date';
4
+ import { M as MaybeAccessor } from '../../types-Sr_80hg9.js';
3
5
  import { FilterOptions, FilterReturn, Locale } from '@zag-js/i18n-utils';
4
6
 
5
7
  interface LocaleProviderProps extends ParentProps {
@@ -18,6 +20,13 @@ interface UseCollatorReturn extends Accessor<Intl.Collator> {
18
20
  }
19
21
  declare function useCollator(props?: UseCollatorProps): UseCollatorReturn;
20
22
 
23
+ interface UseDateFormatterProps extends Intl.DateTimeFormatOptions {
24
+ locale?: string;
25
+ }
26
+ interface UseDateFormatterReturn extends Accessor<DateFormatter> {
27
+ }
28
+ declare function useDateFormatter(props?: MaybeAccessor<UseDateFormatterProps>): UseDateFormatterReturn;
29
+
21
30
  interface UseFilterProps extends FilterOptions {
22
31
  }
23
32
  declare function useFilter(props: UseFilterProps): UseFilterReturn;
@@ -28,4 +37,4 @@ interface UseLocaleContext extends Accessor<Locale> {
28
37
  }
29
38
  declare const useLocaleContext: () => UseLocaleContext;
30
39
 
31
- export { LocaleProvider, type LocaleProviderProps, type UseCollatorProps, type UseFilterProps, type UseFilterReturn, type UseLocaleContext, useCollator, useFilter, useLocaleContext };
40
+ export { LocaleProvider, type LocaleProviderProps, type UseCollatorProps, type UseDateFormatterProps, type UseDateFormatterReturn, type UseFilterProps, type UseFilterReturn, type UseLocaleContext, useCollator, useDateFormatter, useFilter, useLocaleContext };
@@ -1 +1 @@
1
- export { LocaleProvider, useCollator, useFilter, useLocaleContext } from '../../chunk/RVOPDSQY.js';
1
+ export { LocaleProvider, useCollator, useDateFormatter, useFilter, useLocaleContext } from '../../chunk/EM5SH6A3.js';
@@ -1,14 +1,17 @@
1
1
  import {
2
2
  LocaleProvider,
3
3
  useCollator,
4
+ useDateFormatter,
4
5
  useFilter,
5
6
  useLocaleContext
6
- } from "../../chunk/JFOWNFC7.jsx";
7
+ } from "../../chunk/HOPBYFHD.jsx";
8
+ import "../../chunk/KGOB2IMX.jsx";
7
9
  import "../../chunk/UZJJWJQM.jsx";
8
10
  import "../../chunk/7IUG3E2V.jsx";
9
11
  export {
10
12
  LocaleProvider,
11
13
  useCollator,
14
+ useDateFormatter,
12
15
  useFilter,
13
16
  useLocaleContext
14
17
  };
@@ -0,0 +1,5 @@
1
+ import * as _zag_js_anatomy from '@zag-js/anatomy';
2
+
3
+ declare const swapAnatomy: _zag_js_anatomy.Anatomy<"root" | "indicator">;
4
+
5
+ export { swapAnatomy as s };
@@ -1,5 +1,5 @@
1
1
  import * as _zag_js_anatomy from '@zag-js/anatomy';
2
2
 
3
- declare const tourAnatomy: _zag_js_anatomy.AnatomyInstance<"title" | "content" | "control" | "backdrop" | "closeTrigger" | "progressText" | "positioner" | "description" | "arrow" | "actionTrigger" | "arrowTip" | "spotlight">;
3
+ declare const tourAnatomy: _zag_js_anatomy.AnatomyInstance<"title" | "content" | "control" | "backdrop" | "positioner" | "closeTrigger" | "progressText" | "description" | "arrow" | "actionTrigger" | "arrowTip" | "spotlight">;
4
4
 
5
5
  export { tourAnatomy as t };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ark-ui/solid",
3
3
  "type": "module",
4
- "version": "5.31.0",
4
+ "version": "5.33.0",
5
5
  "description": "A collection of unstyled, accessible UI components for Solid, utilizing state machines for seamless interaction.",
6
6
  "keywords": [
7
7
  "accordion",
@@ -113,78 +113,79 @@
113
113
  },
114
114
  "sideEffects": false,
115
115
  "dependencies": {
116
- "@internationalized/date": "3.10.0",
117
- "@zag-js/accordion": "1.33.1",
118
- "@zag-js/anatomy": "1.33.1",
119
- "@zag-js/angle-slider": "1.33.1",
120
- "@zag-js/async-list": "1.33.1",
121
- "@zag-js/auto-resize": "1.33.1",
122
- "@zag-js/avatar": "1.33.1",
123
- "@zag-js/bottom-sheet": "1.33.1",
124
- "@zag-js/carousel": "1.33.1",
125
- "@zag-js/checkbox": "1.33.1",
126
- "@zag-js/clipboard": "1.33.1",
127
- "@zag-js/collapsible": "1.33.1",
128
- "@zag-js/collection": "1.33.1",
129
- "@zag-js/color-picker": "1.33.1",
130
- "@zag-js/color-utils": "1.33.1",
131
- "@zag-js/combobox": "1.33.1",
132
- "@zag-js/core": "1.33.1",
133
- "@zag-js/date-picker": "1.33.1",
134
- "@zag-js/date-utils": "1.33.1",
135
- "@zag-js/dialog": "1.33.1",
136
- "@zag-js/dom-query": "1.33.1",
137
- "@zag-js/editable": "1.33.1",
138
- "@zag-js/file-upload": "1.33.1",
139
- "@zag-js/file-utils": "1.33.1",
140
- "@zag-js/floating-panel": "1.33.1",
141
- "@zag-js/focus-trap": "1.33.1",
142
- "@zag-js/highlight-word": "1.33.1",
143
- "@zag-js/hover-card": "1.33.1",
144
- "@zag-js/image-cropper": "1.33.1",
145
- "@zag-js/i18n-utils": "1.33.1",
146
- "@zag-js/json-tree-utils": "1.33.1",
147
- "@zag-js/listbox": "1.33.1",
148
- "@zag-js/marquee": "1.33.1",
149
- "@zag-js/menu": "1.33.1",
150
- "@zag-js/navigation-menu": "1.33.1",
151
- "@zag-js/number-input": "1.33.1",
152
- "@zag-js/pagination": "1.33.1",
153
- "@zag-js/password-input": "1.33.1",
154
- "@zag-js/pin-input": "1.33.1",
155
- "@zag-js/popover": "1.33.1",
156
- "@zag-js/presence": "1.33.1",
157
- "@zag-js/progress": "1.33.1",
158
- "@zag-js/qr-code": "1.33.1",
159
- "@zag-js/radio-group": "1.33.1",
160
- "@zag-js/rating-group": "1.33.1",
161
- "@zag-js/scroll-area": "1.33.1",
162
- "@zag-js/select": "1.33.1",
163
- "@zag-js/signature-pad": "1.33.1",
164
- "@zag-js/slider": "1.33.1",
165
- "@zag-js/solid": "1.33.1",
166
- "@zag-js/splitter": "1.33.1",
167
- "@zag-js/steps": "1.33.1",
168
- "@zag-js/switch": "1.33.1",
169
- "@zag-js/tabs": "1.33.1",
170
- "@zag-js/tags-input": "1.33.1",
171
- "@zag-js/timer": "1.33.1",
172
- "@zag-js/toast": "1.33.1",
173
- "@zag-js/toggle": "1.33.1",
174
- "@zag-js/toggle-group": "1.33.1",
175
- "@zag-js/tooltip": "1.33.1",
176
- "@zag-js/tour": "1.33.1",
177
- "@zag-js/tree-view": "1.33.1",
178
- "@zag-js/types": "1.33.1",
179
- "@zag-js/utils": "1.33.1"
116
+ "@internationalized/date": "3.11.0",
117
+ "@zag-js/accordion": "1.35.1",
118
+ "@zag-js/anatomy": "1.35.1",
119
+ "@zag-js/angle-slider": "1.35.1",
120
+ "@zag-js/async-list": "1.35.1",
121
+ "@zag-js/auto-resize": "1.35.1",
122
+ "@zag-js/avatar": "1.35.1",
123
+ "@zag-js/carousel": "1.35.1",
124
+ "@zag-js/cascade-select": "1.35.1",
125
+ "@zag-js/checkbox": "1.35.1",
126
+ "@zag-js/clipboard": "1.35.1",
127
+ "@zag-js/collapsible": "1.35.1",
128
+ "@zag-js/collection": "1.35.1",
129
+ "@zag-js/color-picker": "1.35.1",
130
+ "@zag-js/color-utils": "1.35.1",
131
+ "@zag-js/combobox": "1.35.1",
132
+ "@zag-js/core": "1.35.1",
133
+ "@zag-js/date-picker": "1.35.1",
134
+ "@zag-js/date-utils": "1.35.1",
135
+ "@zag-js/dialog": "1.35.1",
136
+ "@zag-js/dom-query": "1.35.1",
137
+ "@zag-js/drawer": "1.35.1",
138
+ "@zag-js/editable": "1.35.1",
139
+ "@zag-js/file-upload": "1.35.1",
140
+ "@zag-js/file-utils": "1.35.1",
141
+ "@zag-js/floating-panel": "1.35.1",
142
+ "@zag-js/focus-trap": "1.35.1",
143
+ "@zag-js/highlight-word": "1.35.1",
144
+ "@zag-js/hover-card": "1.35.1",
145
+ "@zag-js/i18n-utils": "1.35.1",
146
+ "@zag-js/image-cropper": "1.35.1",
147
+ "@zag-js/json-tree-utils": "1.35.1",
148
+ "@zag-js/listbox": "1.35.1",
149
+ "@zag-js/marquee": "1.35.1",
150
+ "@zag-js/menu": "1.35.1",
151
+ "@zag-js/navigation-menu": "1.35.1",
152
+ "@zag-js/number-input": "1.35.1",
153
+ "@zag-js/pagination": "1.35.1",
154
+ "@zag-js/password-input": "1.35.1",
155
+ "@zag-js/pin-input": "1.35.1",
156
+ "@zag-js/popover": "1.35.1",
157
+ "@zag-js/presence": "1.35.1",
158
+ "@zag-js/progress": "1.35.1",
159
+ "@zag-js/qr-code": "1.35.1",
160
+ "@zag-js/radio-group": "1.35.1",
161
+ "@zag-js/rating-group": "1.35.1",
162
+ "@zag-js/scroll-area": "1.35.1",
163
+ "@zag-js/select": "1.35.1",
164
+ "@zag-js/signature-pad": "1.35.1",
165
+ "@zag-js/slider": "1.35.1",
166
+ "@zag-js/solid": "1.35.1",
167
+ "@zag-js/splitter": "1.35.1",
168
+ "@zag-js/steps": "1.35.1",
169
+ "@zag-js/switch": "1.35.1",
170
+ "@zag-js/tabs": "1.35.1",
171
+ "@zag-js/tags-input": "1.35.1",
172
+ "@zag-js/timer": "1.35.1",
173
+ "@zag-js/toast": "1.35.1",
174
+ "@zag-js/toggle": "1.35.1",
175
+ "@zag-js/toggle-group": "1.35.1",
176
+ "@zag-js/tooltip": "1.35.1",
177
+ "@zag-js/tour": "1.35.1",
178
+ "@zag-js/tree-view": "1.35.1",
179
+ "@zag-js/types": "1.35.1",
180
+ "@zag-js/utils": "1.35.1"
180
181
  },
181
182
  "devDependencies": {
182
- "@biomejs/biome": "2.3.8",
183
+ "@biomejs/biome": "2.4.4",
183
184
  "@modular-forms/solid": "0.25.1",
184
185
  "@solidjs/testing-library": "0.8.10",
185
- "@storybook/addon-a11y": "10.1.11",
186
- "@storybook/addon-links": "10.1.11",
187
- "@storybook/addon-vitest": "10.1.11",
186
+ "@storybook/addon-a11y": "10.2.10",
187
+ "@storybook/addon-links": "10.2.10",
188
+ "@storybook/addon-vitest": "10.2.10",
188
189
  "@tanstack/solid-virtual": "3.13.18",
189
190
  "@testing-library/dom": "10.4.1",
190
191
  "@testing-library/jest-dom": "6.9.1",
@@ -194,26 +195,26 @@
194
195
  "check-password-strength": "3.0.0",
195
196
  "clean-package": "2.2.0",
196
197
  "esbuild-plugin-solid": "0.6.0",
197
- "globby": "16.1.0",
198
+ "globby": "16.1.1",
198
199
  "image-conversion": "2.1.1",
199
200
  "jsdom": "26.1.0",
200
- "lucide-solid": "0.555.0",
201
+ "lucide-solid": "0.575.0",
201
202
  "resize-observer-polyfill": "1.5.1",
202
- "solid-js": "1.9.10",
203
- "storybook": "10.1.11",
203
+ "solid-js": "1.9.11",
204
+ "storybook": "10.2.10",
204
205
  "storybook-solidjs-vite": "10.0.9",
205
206
  "tsup": "8.5.1",
206
207
  "typescript": "5.9.3",
207
- "vite": "7.3.0",
208
+ "vite": "7.3.1",
208
209
  "vite-plugin-solid": "2.11.10",
209
- "vitest": "^4.0.0",
210
+ "vitest": "^4.0.18",
210
211
  "vitest-axe": "1.0.0-pre.5"
211
212
  },
212
213
  "peerDependencies": {
213
214
  "solid-js": ">=1.6.0"
214
215
  },
215
216
  "overrides": {
216
- "solid-js": "1.9.10"
217
+ "solid-js": "1.9.11"
217
218
  },
218
219
  "main": "dist/index.js",
219
220
  "module": "dist/index.js",
@@ -1 +0,0 @@
1
- export { anatomy } from '@zag-js/bottom-sheet';
@@ -1,178 +0,0 @@
1
- import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider } from './2WRCIBVP.js';
2
- import { composeRefs } from './ROP6QZQ7.js';
3
- import { splitRenderStrategyProps, RenderStrategyProvider, useRenderStrategyContext } from './GUFIKGZ6.js';
4
- import { createSplitProps } from './ZMHI4GDJ.js';
5
- import { useLocaleContext } from './RVOPDSQY.js';
6
- import { useEnvironmentContext } from './3P5T77QU.js';
7
- import { runIfFn } from './DT73WLR4.js';
8
- import { ark } from './EPLBB4QN.js';
9
- import { createContext } from './THN5C4U6.js';
10
- import { __export } from './ESLJRKWD.js';
11
- import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
12
- import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
13
- import { Show, createUniqueId, createMemo } from 'solid-js';
14
- import * as bottomSheet from '@zag-js/bottom-sheet';
15
-
16
- // src/components/bottom-sheet/use-bottom-sheet-context.ts
17
- var [BottomSheetProvider, useBottomSheetContext] = createContext({
18
- hookName: "useBottomSheetContext",
19
- providerName: "<BottomSheetProvider />"
20
- });
21
-
22
- // src/components/bottom-sheet/bottom-sheet-backdrop.tsx
23
- var BottomSheetBackdrop = (props) => {
24
- const bottomSheet2 = useBottomSheetContext();
25
- const renderStrategyProps = useRenderStrategyContext();
26
- const presence = usePresence(mergeProps(renderStrategyProps, () => ({
27
- present: bottomSheet2().open
28
- })));
29
- const mergedProps = mergeProps(() => bottomSheet2().getBackdropProps(), () => presence().presenceProps, props);
30
- return createComponent(Show, {
31
- get when() {
32
- return !presence().unmounted;
33
- },
34
- get children() {
35
- return createComponent(ark.div, mergeProps$1(mergedProps, {
36
- ref(r$) {
37
- var _ref$ = composeRefs(presence().ref, props.ref);
38
- typeof _ref$ === "function" && _ref$(r$);
39
- }
40
- }));
41
- }
42
- });
43
- };
44
- var BottomSheetCloseTrigger = (props) => {
45
- const context = useBottomSheetContext();
46
- const mergedProps = mergeProps(() => context().getCloseTriggerProps(), props);
47
- return createComponent(ark.button, mergedProps);
48
- };
49
- var BottomSheetContent = (props) => {
50
- const [contentProps, localProps] = createSplitProps()(props, ["draggable"]);
51
- const bottomSheet2 = useBottomSheetContext();
52
- const presence = usePresenceContext();
53
- const mergedProps = mergeProps(() => bottomSheet2().getContentProps({
54
- draggable: true,
55
- ...contentProps
56
- }), () => presence().presenceProps, localProps);
57
- return createComponent(Show, {
58
- get when() {
59
- return !presence().unmounted;
60
- },
61
- get children() {
62
- return createComponent(ark.div, mergeProps$1(mergedProps, {
63
- ref(r$) {
64
- var _ref$ = composeRefs(presence().ref, localProps.ref);
65
- typeof _ref$ === "function" && _ref$(r$);
66
- }
67
- }));
68
- }
69
- });
70
- };
71
-
72
- // src/components/bottom-sheet/bottom-sheet-context.tsx
73
- var BottomSheetContext = (props) => props.children(useBottomSheetContext());
74
- var BottomSheetGrabber = (props) => {
75
- const bottomSheet2 = useBottomSheetContext();
76
- const mergedProps = mergeProps(() => bottomSheet2().getGrabberProps(), props);
77
- return createComponent(ark.div, mergedProps);
78
- };
79
- var BottomSheetGrabberIndicator = (props) => {
80
- const bottomSheet2 = useBottomSheetContext();
81
- const mergedProps = mergeProps(() => bottomSheet2().getGrabberIndicatorProps(), props);
82
- return createComponent(ark.div, mergedProps);
83
- };
84
- var useBottomSheet = (props) => {
85
- const locale = useLocaleContext();
86
- const environment = useEnvironmentContext();
87
- const id = createUniqueId();
88
- const machineProps = createMemo(() => ({
89
- id,
90
- dir: locale().dir,
91
- getRootNode: environment().getRootNode,
92
- ...runIfFn(props)
93
- }));
94
- const service = useMachine(bottomSheet.machine, machineProps);
95
- return createMemo(() => bottomSheet.connect(service, normalizeProps));
96
- };
97
-
98
- // src/components/bottom-sheet/bottom-sheet-root.tsx
99
- var BottomSheetRoot = (props) => {
100
- const [presenceProps, bottomSheetProps] = splitPresenceProps(props);
101
- const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);
102
- const [useBottomSheetProps, localProps] = createSplitProps()(bottomSheetProps, ["id", "ids", "open", "defaultOpen", "onOpenChange", "closeOnInteractOutside", "closeOnEscape", "snapPoints", "swipeVelocityThreshold", "closeThreshold", "preventDragOnScroll", "activeSnapPoint", "defaultActiveSnapPoint", "onActiveSnapPointChange", "modal", "trapFocus", "restoreFocus", "preventScroll", "initialFocusEl", "finalFocusEl", "role", "onInteractOutside", "onEscapeKeyDown", "onPointerDownOutside", "onFocusOutside", "onRequestDismiss"]);
103
- const bottomSheet2 = useBottomSheet(useBottomSheetProps);
104
- const presence = usePresence(mergeProps(presenceProps, () => ({
105
- present: bottomSheet2().open
106
- })));
107
- return createComponent(BottomSheetProvider, {
108
- value: bottomSheet2,
109
- get children() {
110
- return createComponent(RenderStrategyProvider, {
111
- value: renderStrategyProps,
112
- get children() {
113
- return createComponent(PresenceProvider, {
114
- value: presence,
115
- get children() {
116
- return localProps.children;
117
- }
118
- });
119
- }
120
- });
121
- }
122
- });
123
- };
124
- var BottomSheetRootProvider = (props) => {
125
- const [presenceProps, bottomSheetProps] = splitPresenceProps(props);
126
- const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);
127
- const presence = usePresence(mergeProps(() => ({
128
- present: bottomSheetProps.value().open
129
- }), presenceProps));
130
- return createComponent(BottomSheetProvider, {
131
- get value() {
132
- return bottomSheetProps.value;
133
- },
134
- get children() {
135
- return createComponent(RenderStrategyProvider, {
136
- value: renderStrategyProps,
137
- get children() {
138
- return createComponent(PresenceProvider, {
139
- value: presence,
140
- get children() {
141
- return bottomSheetProps.children;
142
- }
143
- });
144
- }
145
- });
146
- }
147
- });
148
- };
149
- var BottomSheetTitle = (props) => {
150
- const bottomSheet2 = useBottomSheetContext();
151
- const mergedProps = mergeProps(() => bottomSheet2().getTitleProps(), props);
152
- return createComponent(ark.h2, mergedProps);
153
- };
154
- var BottomSheetTrigger = (props) => {
155
- const bottomSheet2 = useBottomSheetContext();
156
- const presence = usePresenceContext();
157
- const mergedProps = mergeProps(() => bottomSheet2().getTriggerProps(), () => ({
158
- "aria-controls": presence().unmounted && null
159
- }), props);
160
- return createComponent(ark.button, mergedProps);
161
- };
162
-
163
- // src/components/bottom-sheet/bottom-sheet.ts
164
- var bottom_sheet_exports = {};
165
- __export(bottom_sheet_exports, {
166
- Backdrop: () => BottomSheetBackdrop,
167
- CloseTrigger: () => BottomSheetCloseTrigger,
168
- Content: () => BottomSheetContent,
169
- Context: () => BottomSheetContext,
170
- Grabber: () => BottomSheetGrabber,
171
- GrabberIndicator: () => BottomSheetGrabberIndicator,
172
- Root: () => BottomSheetRoot,
173
- RootProvider: () => BottomSheetRootProvider,
174
- Title: () => BottomSheetTitle,
175
- Trigger: () => BottomSheetTrigger
176
- });
177
-
178
- export { BottomSheetBackdrop, BottomSheetCloseTrigger, BottomSheetContent, BottomSheetContext, BottomSheetGrabber, BottomSheetGrabberIndicator, BottomSheetRoot, BottomSheetRootProvider, BottomSheetTitle, BottomSheetTrigger, bottom_sheet_exports, useBottomSheet, useBottomSheetContext };