@ark-ui/solid 5.31.0 → 5.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 (243) hide show
  1. package/dist/chunk/{7LG5FPBU.js → 25QG5G6C.js} +4 -3
  2. package/dist/chunk/{VUOC2LCL.js → 3EUGCOMV.js} +1 -1
  3. package/dist/chunk/{G7BHQPOC.js → 3WVUTGI5.js} +1 -1
  4. package/dist/chunk/{YQOHTJFL.js → 5ATP7B75.js} +1 -1
  5. package/dist/chunk/5BSMJBO7.jsx +136 -0
  6. package/dist/chunk/{TQCLH765.jsx → 5GO6NUQR.jsx} +9 -6
  7. package/dist/chunk/{KMYFS63G.js → 5IIB2LYP.js} +20 -4
  8. package/dist/chunk/{DFHJBZM6.js → 5V7JAJ5W.js} +3 -2
  9. package/dist/chunk/{5SEYLBQQ.jsx → 5ZAKDNMV.jsx} +4 -4
  10. package/dist/chunk/{O6CMUPUG.js → 6C2FCXTS.js} +1 -1
  11. package/dist/chunk/{UGSFGPFW.jsx → 6FX4SECK.jsx} +4 -4
  12. package/dist/chunk/{OSFE5N7D.js → 6QV6SS6W.js} +1 -1
  13. package/dist/chunk/{ZSFOKQ3Z.jsx → 77IURBLR.jsx} +3 -3
  14. package/dist/chunk/{UGCFDJSO.jsx → 7YVDASKP.jsx} +3 -3
  15. package/dist/chunk/{6N44QPMY.jsx → 7Z6YKSMY.jsx} +11 -9
  16. package/dist/chunk/{S7ILHA7C.jsx → 7ZEKGJLZ.jsx} +7 -5
  17. package/dist/chunk/{TAEJBOHF.js → A5BBGDPW.js} +2 -2
  18. package/dist/chunk/{RY7KBPRA.jsx → ABFLCPUB.jsx} +3 -3
  19. package/dist/chunk/{MMBOU3ZC.jsx → ACLCLMIV.jsx} +4 -4
  20. package/dist/chunk/{EOQC4OFF.js → BGKLKY77.js} +1 -1
  21. package/dist/chunk/BTUFV5YJ.jsx +306 -0
  22. package/dist/chunk/{IM2L53FZ.jsx → BUMQJLFN.jsx} +7 -5
  23. package/dist/chunk/{4GOETTVP.js → BVQ6NO6X.js} +1 -1
  24. package/dist/chunk/{5QVNY35H.js → CBYVQ7YD.js} +1 -1
  25. package/dist/chunk/{YRAJJHEJ.jsx → CC4VXMN5.jsx} +4 -4
  26. package/dist/chunk/{4GELDCEE.jsx → DGI75TEJ.jsx} +4 -4
  27. package/dist/chunk/{CMGVBYH6.jsx → E54U43LI.jsx} +38 -10
  28. package/dist/chunk/{RVOPDSQY.js → EM5SH6A3.js} +12 -1
  29. package/dist/chunk/{IHT5Q6Q3.jsx → ESQ2KC4M.jsx} +4 -4
  30. package/dist/chunk/{GOJHNXPD.jsx → G7XBXLRA.jsx} +4 -4
  31. package/dist/chunk/{76UE3KN4.jsx → GSOOONDM.jsx} +6 -6
  32. package/dist/chunk/{ZYS6A6GV.jsx → GYKEGNPI.jsx} +3 -3
  33. package/dist/chunk/{5LGVYTH5.js → HFIUYKXK.js} +1 -1
  34. package/dist/chunk/{NYBDSWDH.js → HJJ6M6JE.js} +1 -1
  35. package/dist/chunk/{4UQ4BNTC.js → HKJ2U4GE.js} +1 -1
  36. package/dist/chunk/{JFOWNFC7.jsx → HOPBYFHD.jsx} +20 -3
  37. package/dist/chunk/{A7ULUG37.jsx → HSKAUH3N.jsx} +4 -4
  38. package/dist/chunk/{YJZT56R5.js → HUB2Z2WJ.js} +1 -1
  39. package/dist/chunk/{G2UMJWTM.js → IKIPTYFY.js} +1 -1
  40. package/dist/chunk/{5O3D32XK.jsx → IPJK2PWY.jsx} +6 -6
  41. package/dist/chunk/{GXLS3QZ4.js → IRBAVIVZ.js} +3 -2
  42. package/dist/chunk/{2WRCIBVP.js → JBLHW7IM.js} +4 -29
  43. package/dist/chunk/{BV6RNXMH.js → JLP6NZTO.js} +3 -2
  44. package/dist/chunk/{RBYLWQEE.js → JR3CTJ4R.js} +1 -1
  45. package/dist/chunk/KWLZPDF4.jsx +6 -0
  46. package/dist/chunk/{CGB5YI3F.jsx → LBXPKVCB.jsx} +1 -1
  47. package/dist/chunk/LRDE5RNI.js +239 -0
  48. package/dist/chunk/{AOAGDS53.jsx → M2R7NELL.jsx} +3 -3
  49. package/dist/chunk/{DON7WJR6.jsx → MLPK6MO2.jsx} +3 -3
  50. package/dist/chunk/{2TPQPUX6.jsx → MU5CM6ZP.jsx} +3 -3
  51. package/dist/chunk/{XTL34GZH.js → N2ACHFKW.js} +1 -1
  52. package/dist/chunk/NEU4F4NG.jsx +52 -0
  53. package/dist/chunk/NJVZNV63.js +121 -0
  54. package/dist/chunk/{CTYC3XVM.js → NMS6DWX3.js} +3 -2
  55. package/dist/chunk/{3JI3LEL3.js → NTHXB7S3.js} +3 -2
  56. package/dist/chunk/{VTTFCXVC.jsx → OEGORBLT.jsx} +1 -47
  57. package/dist/chunk/{VVSGL3B5.js → ONLLL7WZ.js} +1 -1
  58. package/dist/chunk/{T4C4OLH5.jsx → ONZ5KPSW.jsx} +6 -6
  59. package/dist/chunk/ORFQCCEF.js +7 -0
  60. package/dist/chunk/{V6TUJPSE.jsx → ORZMPJPC.jsx} +3 -3
  61. package/dist/chunk/{DM5NMT5Y.jsx → P466TCYN.jsx} +7 -5
  62. package/dist/chunk/{EV7COIUN.jsx → P7K6CA55.jsx} +4 -4
  63. package/dist/chunk/{VQAY7ALM.js → PDHNW6SC.js} +3 -2
  64. package/dist/chunk/{WJ3SED2J.js → PEIMGDXM.js} +1 -1
  65. package/dist/chunk/{XMIVUAEB.jsx → PKRIUPWN.jsx} +4 -4
  66. package/dist/chunk/{C56T2HRV.jsx → PPH4D7AF.jsx} +4 -4
  67. package/dist/chunk/{VUSRNP23.js → PSO6FY3T.js} +3 -2
  68. package/dist/chunk/{KQGHYOLW.jsx → PWV2MRRH.jsx} +3 -3
  69. package/dist/chunk/{Z326BLVT.js → QC2RXUV4.js} +7 -4
  70. package/dist/chunk/{5WXM756C.js → QUQ6VBQO.js} +2 -2
  71. package/dist/chunk/{SLOK7RQU.js → RDZRRODO.js} +1 -1
  72. package/dist/chunk/{VPKUVVDM.js → RJPVNWZG.js} +3 -2
  73. package/dist/chunk/{TJ7E237D.js → RL5TZPAG.js} +1 -1
  74. package/dist/chunk/{WMMVKZHK.jsx → RNGP6PKE.jsx} +4 -4
  75. package/dist/chunk/{NHSNBGCC.js → RSDHPGPT.js} +1 -1
  76. package/dist/chunk/RT4GKNE7.js +1 -0
  77. package/dist/chunk/{TZA2XQYK.jsx → RVP446XN.jsx} +1 -1
  78. package/dist/chunk/{7LBRKLXW.js → SCCZRXWX.js} +1 -1
  79. package/dist/chunk/{KH2XV4KM.jsx → SCJBXRUZ.jsx} +7 -5
  80. package/dist/chunk/{5LDIC54T.jsx → TD72MSSI.jsx} +3 -3
  81. package/dist/chunk/{DNRJCAR4.jsx → TG3BV4FJ.jsx} +3 -3
  82. package/dist/chunk/{D4GWWUQY.jsx → TPTP4FRI.jsx} +7 -5
  83. package/dist/chunk/{Q67V4SSK.js → UJ4FU6HV.js} +1 -1
  84. package/dist/chunk/{ZOKZFKHJ.jsx → V62PHVT3.jsx} +4 -4
  85. package/dist/chunk/{NT6ZYH25.js → VIERJSCF.js} +1 -1
  86. package/dist/chunk/{BHJYCERG.js → WGHZEJIT.js} +3 -2
  87. package/dist/chunk/{CCBSY5FU.js → WLWKI62C.js} +3 -2
  88. package/dist/chunk/{AFGSUR6R.js → WTS7KK6L.js} +1 -1
  89. package/dist/chunk/{MDSG7I6V.js → WX3PPB36.js} +1 -1
  90. package/dist/chunk/X22PRPOR.js +31 -0
  91. package/dist/chunk/{FQY342YD.jsx → X63FZDID.jsx} +11 -9
  92. package/dist/chunk/{RLUEXDAM.jsx → XLKDWQZ2.jsx} +7 -5
  93. package/dist/chunk/{WYVADPK7.js → XNIXPFXJ.js} +1 -1
  94. package/dist/chunk/{YTEBGEQ4.jsx → XRBGB3XP.jsx} +10 -8
  95. package/dist/chunk/XVU3GCCX.jsx +9 -0
  96. package/dist/chunk/{Q2EC4X24.jsx → YLT3EBQZ.jsx} +7 -5
  97. package/dist/chunk/{CKMDA3R6.js → YVERN3NM.js} +1 -1
  98. package/dist/chunk/{2KCVIKG7.jsx → YW4KS3S5.jsx} +3 -3
  99. package/dist/chunk/{LYCTCPBV.js → YXEZ562D.js} +1 -1
  100. package/dist/chunk/{SCMBWJVC.jsx → Z253N6GA.jsx} +3 -3
  101. package/dist/chunk/{2SGHC324.js → ZJOFPTIM.js} +1 -1
  102. package/dist/chunk/{ZQJU3MNB.jsx → ZLSYUPYN.jsx} +15 -11
  103. package/dist/chunk/{EMHNANVE.jsx → ZOCG4ZHL.jsx} +3 -3
  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 +19 -18
  109. package/dist/components/anatomy.jsx +68 -64
  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 +9 -8
  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 +11 -6
  130. package/dist/components/dialog/index.js +1 -1
  131. package/dist/components/dialog/index.jsx +7 -6
  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.jsx +5 -5
  139. package/dist/components/fieldset/index.jsx +4 -4
  140. package/dist/components/file-upload/index.js +1 -1
  141. package/dist/components/file-upload/index.jsx +6 -6
  142. package/dist/components/floating-panel/index.js +1 -1
  143. package/dist/components/floating-panel/index.jsx +7 -6
  144. package/dist/components/format/index.js +1 -1
  145. package/dist/components/format/index.jsx +2 -2
  146. package/dist/components/frame/index.jsx +1 -1
  147. package/dist/components/hover-card/index.js +1 -1
  148. package/dist/components/hover-card/index.jsx +7 -6
  149. package/dist/components/image-cropper/index.js +1 -1
  150. package/dist/components/image-cropper/index.jsx +4 -4
  151. package/dist/components/index.d.ts +9 -7
  152. package/dist/components/index.js +71 -68
  153. package/dist/components/index.jsx +619 -585
  154. package/dist/components/json-tree-view/index.js +1 -1
  155. package/dist/components/json-tree-view/index.jsx +6 -6
  156. package/dist/components/listbox/index.js +1 -1
  157. package/dist/components/listbox/index.jsx +4 -4
  158. package/dist/components/marquee/index.js +1 -1
  159. package/dist/components/marquee/index.jsx +4 -4
  160. package/dist/components/menu/index.js +1 -1
  161. package/dist/components/menu/index.jsx +7 -6
  162. package/dist/components/navigation-menu/index.js +3 -2
  163. package/dist/components/navigation-menu/index.jsx +7 -5
  164. package/dist/components/number-input/index.js +1 -1
  165. package/dist/components/number-input/index.jsx +6 -6
  166. package/dist/components/pagination/index.js +1 -1
  167. package/dist/components/pagination/index.jsx +4 -4
  168. package/dist/components/password-input/index.js +1 -1
  169. package/dist/components/password-input/index.jsx +6 -6
  170. package/dist/components/pin-input/index.js +1 -1
  171. package/dist/components/pin-input/index.jsx +6 -6
  172. package/dist/components/popover/index.js +1 -1
  173. package/dist/components/popover/index.jsx +7 -6
  174. package/dist/components/presence/index.js +2 -1
  175. package/dist/components/presence/index.jsx +4 -2
  176. package/dist/components/progress/index.js +1 -1
  177. package/dist/components/progress/index.jsx +4 -4
  178. package/dist/components/qr-code/index.js +1 -1
  179. package/dist/components/qr-code/index.jsx +4 -4
  180. package/dist/components/radio-group/index.js +1 -1
  181. package/dist/components/radio-group/index.jsx +5 -5
  182. package/dist/components/rating-group/index.js +1 -1
  183. package/dist/components/rating-group/index.jsx +6 -6
  184. package/dist/components/scroll-area/index.js +1 -1
  185. package/dist/components/scroll-area/index.jsx +4 -4
  186. package/dist/components/segment-group/index.js +1 -1
  187. package/dist/components/segment-group/index.jsx +4 -4
  188. package/dist/components/select/index.js +1 -1
  189. package/dist/components/select/index.jsx +9 -8
  190. package/dist/components/signature-pad/index.js +1 -1
  191. package/dist/components/signature-pad/index.jsx +6 -6
  192. package/dist/components/slider/index.js +1 -1
  193. package/dist/components/slider/index.jsx +4 -4
  194. package/dist/components/splitter/index.js +1 -1
  195. package/dist/components/splitter/index.jsx +4 -4
  196. package/dist/components/steps/index.js +1 -1
  197. package/dist/components/steps/index.jsx +4 -4
  198. package/dist/components/swap/index.d.ts +74 -0
  199. package/dist/components/swap/index.js +2 -0
  200. package/dist/components/swap/index.jsx +28 -0
  201. package/dist/components/switch/index.js +1 -1
  202. package/dist/components/switch/index.jsx +6 -6
  203. package/dist/components/tabs/index.js +1 -1
  204. package/dist/components/tabs/index.jsx +7 -6
  205. package/dist/components/tags-input/index.js +1 -1
  206. package/dist/components/tags-input/index.jsx +6 -6
  207. package/dist/components/timer/index.jsx +3 -3
  208. package/dist/components/toast/index.js +1 -1
  209. package/dist/components/toast/index.jsx +3 -3
  210. package/dist/components/toggle/index.jsx +2 -2
  211. package/dist/components/toggle-group/index.js +1 -1
  212. package/dist/components/toggle-group/index.jsx +4 -4
  213. package/dist/components/tooltip/index.js +1 -1
  214. package/dist/components/tooltip/index.jsx +7 -6
  215. package/dist/components/tour/index.d.ts +1 -1
  216. package/dist/components/tour/index.js +1 -1
  217. package/dist/components/tour/index.jsx +7 -6
  218. package/dist/components/tree-view/index.js +1 -1
  219. package/dist/components/tree-view/index.jsx +6 -6
  220. package/dist/{date-picker.anatomy-DPHKzZh7.d.ts → date-picker.anatomy-DMDOrz3v.d.ts} +1 -1
  221. package/dist/index.d.ts +11 -8
  222. package/dist/index.js +72 -69
  223. package/dist/index.jsx +622 -586
  224. package/dist/providers/index.d.ts +3 -1
  225. package/dist/providers/index.js +1 -1
  226. package/dist/providers/index.jsx +5 -3
  227. package/dist/providers/locale/index.d.ts +10 -1
  228. package/dist/providers/locale/index.js +1 -1
  229. package/dist/providers/locale/index.jsx +4 -1
  230. package/dist/swap.anatomy-BTCTOTbL.d.ts +5 -0
  231. package/dist/{tour.anatomy-BwE3XSIU.d.ts → tour.anatomy-B2Ub0NWQ.d.ts} +1 -1
  232. package/package.json +75 -74
  233. package/dist/chunk/2R6SK2X3.js +0 -1
  234. package/dist/chunk/52P3DPTR.js +0 -178
  235. package/dist/chunk/DLQR7VNM.jsx +0 -231
  236. package/dist/chunk/WMZBRARY.jsx +0 -6
  237. package/dist/components/bottom-sheet/index.d.ts +0 -92
  238. package/dist/components/bottom-sheet/index.js +0 -2
  239. package/dist/components/bottom-sheet/index.jsx +0 -45
  240. package/dist/chunk/{TEKM4RER.jsx → AIK4SKXT.jsx} +3 -3
  241. package/dist/chunk/{PJLQLDQ3.js → PMEYD5LG.js} +0 -0
  242. package/dist/chunk/{EDXDNGEO.jsx → S6EAXNU4.jsx} +0 -0
  243. package/dist/chunk/{CG273YBB.jsx → WZBYH43M.jsx} +3 -3
@@ -1,8 +1,9 @@
1
- import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './2WRCIBVP.js';
2
1
  import { useFieldContext } from './S3VN2YFH.js';
2
+ import { splitPresenceProps, PresenceProvider, usePresenceContext } from './JBLHW7IM.js';
3
+ import { usePresence } from './X22PRPOR.js';
3
4
  import { composeRefs } from './ROP6QZQ7.js';
4
5
  import { createSplitProps } from './ZMHI4GDJ.js';
5
- import { useLocaleContext } from './RVOPDSQY.js';
6
+ import { useLocaleContext } from './EM5SH6A3.js';
6
7
  import { useEnvironmentContext } from './3P5T77QU.js';
7
8
  import { runIfFn } from './DT73WLR4.js';
8
9
  import { ark } from './EPLBB4QN.js';
@@ -220,7 +221,7 @@ var useSelect = (props) => {
220
221
  // src/components/select/select-root.tsx
221
222
  var SelectRoot = (props) => {
222
223
  const [presenceProps, selectProps] = splitPresenceProps(props);
223
- const [useSelectProps, localProps] = createSplitProps()(selectProps, ["closeOnSelect", "collection", "composite", "defaultHighlightedValue", "defaultOpen", "defaultValue", "deselectable", "disabled", "form", "highlightedValue", "id", "ids", "invalid", "loopFocus", "multiple", "name", "onFocusOutside", "onHighlightChange", "onInteractOutside", "onOpenChange", "onPointerDownOutside", "onSelect", "onValueChange", "open", "positioning", "readOnly", "required", "scrollToIndexFn", "value"]);
224
+ const [useSelectProps, localProps] = createSplitProps()(selectProps, ["autoComplete", "closeOnSelect", "collection", "composite", "defaultHighlightedValue", "defaultOpen", "defaultValue", "deselectable", "disabled", "form", "highlightedValue", "id", "ids", "invalid", "loopFocus", "multiple", "name", "onFocusOutside", "onHighlightChange", "onInteractOutside", "onOpenChange", "onPointerDownOutside", "onSelect", "onValueChange", "open", "positioning", "readOnly", "required", "scrollToIndexFn", "value"]);
224
225
  const select2 = useSelect(useSelectProps);
225
226
  const presenceApi = usePresence(mergeProps(() => ({
226
227
  present: select2().open
@@ -1,6 +1,6 @@
1
1
  import { splitRenderStrategyProps } from './GUFIKGZ6.js';
2
2
  import { createSplitProps } from './ZMHI4GDJ.js';
3
- import { useLocaleContext } from './RVOPDSQY.js';
3
+ import { useLocaleContext } from './EM5SH6A3.js';
4
4
  import { useEnvironmentContext } from './3P5T77QU.js';
5
5
  import { runIfFn } from './DT73WLR4.js';
6
6
  import { ark } from './EPLBB4QN.js';
@@ -1,4 +1,4 @@
1
- import { useLocaleContext } from './RVOPDSQY.js';
1
+ import { useLocaleContext } from './EM5SH6A3.js';
2
2
  import { __export } from './ESLJRKWD.js';
3
3
  import { memo } from 'solid-js/web';
4
4
  import { formatRelativeTime, formatNumber, formatBytes } from '@zag-js/i18n-utils';
@@ -1,5 +1,5 @@
1
1
  import { createSplitProps } from './ZMHI4GDJ.js';
2
- import { useLocaleContext } from './RVOPDSQY.js';
2
+ import { useLocaleContext } from './EM5SH6A3.js';
3
3
  import { useEnvironmentContext } from './3P5T77QU.js';
4
4
  import { runIfFn } from './DT73WLR4.js';
5
5
  import { ark } from './EPLBB4QN.js';
@@ -0,0 +1,136 @@
1
+ import {
2
+ usePresence
3
+ } from "./OEGORBLT.jsx";
4
+ import {
5
+ composeRefs
6
+ } from "./PT2CJE3O.jsx";
7
+ import {
8
+ parts,
9
+ swapAnatomy
10
+ } from "./XVU3GCCX.jsx";
11
+ import {
12
+ runIfFn
13
+ } from "./KGOB2IMX.jsx";
14
+ import {
15
+ ark
16
+ } from "./UFYZ7HLU.jsx";
17
+ import {
18
+ createContext
19
+ } from "./UZJJWJQM.jsx";
20
+ import {
21
+ __export
22
+ } from "./7IUG3E2V.jsx";
23
+
24
+ // src/components/swap/swap.ts
25
+ var swap_exports = {};
26
+ __export(swap_exports, {
27
+ Indicator: () => SwapIndicator,
28
+ Root: () => SwapRoot,
29
+ RootProvider: () => SwapRootProvider,
30
+ swapAnatomy: () => swapAnatomy
31
+ });
32
+
33
+ // src/components/swap/swap-indicator.tsx
34
+ import { mergeProps } from "@zag-js/solid";
35
+ import { Show, splitProps } from "solid-js";
36
+
37
+ // src/components/swap/use-swap-context.ts
38
+ var [SwapProvider, useSwapContext] = createContext({
39
+ hookName: "useSwapContext",
40
+ providerName: "<SwapProvider />"
41
+ });
42
+
43
+ // src/components/swap/swap-indicator.tsx
44
+ var SwapIndicator = (props) => {
45
+ const [localProps, restProps] = splitProps(props, ["type", "ref"]);
46
+ const swap = useSwapContext();
47
+ const presence = () => {
48
+ const p = localProps.type === "on" ? swap().onPresence : swap().offPresence;
49
+ return p();
50
+ };
51
+ const mergedProps = mergeProps(() => swap().getIndicatorProps({ type: localProps.type }), restProps);
52
+ return <Show when={!presence().unmounted}>
53
+ <ark.span {...mergedProps} ref={composeRefs(presence().ref, localProps.ref)} />
54
+ </Show>;
55
+ };
56
+
57
+ // src/components/swap/swap-root.tsx
58
+ import { mergeProps as mergeProps3 } from "@zag-js/solid";
59
+ import { splitProps as splitProps2 } from "solid-js";
60
+
61
+ // src/components/swap/use-swap.ts
62
+ import { mergeProps as mergeProps2 } from "@zag-js/solid";
63
+ import { createMemo } from "solid-js";
64
+ var useSwap = (props = {}) => {
65
+ const resolved = createMemo(() => runIfFn(props));
66
+ const onPresence = usePresence(
67
+ mergeProps2(() => ({
68
+ present: resolved().swap ?? false,
69
+ lazyMount: resolved().lazyMount,
70
+ unmountOnExit: resolved().unmountOnExit,
71
+ skipAnimationOnMount: true
72
+ }))
73
+ );
74
+ const offPresence = usePresence(
75
+ mergeProps2(() => ({
76
+ present: !(resolved().swap ?? false),
77
+ lazyMount: resolved().lazyMount,
78
+ unmountOnExit: resolved().unmountOnExit,
79
+ skipAnimationOnMount: true
80
+ }))
81
+ );
82
+ return createMemo(() => {
83
+ const swap = resolved().swap ?? false;
84
+ return {
85
+ swap,
86
+ onPresence,
87
+ offPresence,
88
+ getRootProps() {
89
+ return {
90
+ ...parts.root.attrs,
91
+ "data-swap": swap ? "on" : "off",
92
+ style: { display: "inline-grid" }
93
+ };
94
+ },
95
+ getIndicatorProps({ type }) {
96
+ const presence = type === "on" ? onPresence() : offPresence();
97
+ return {
98
+ ...parts.indicator.attrs,
99
+ ...presence.presenceProps,
100
+ "data-type": type,
101
+ style: { "grid-area": "1 / 1", display: "inline-flex" }
102
+ };
103
+ }
104
+ };
105
+ });
106
+ };
107
+
108
+ // src/components/swap/swap-root.tsx
109
+ var SwapRoot = (props) => {
110
+ const [swapProps, localProps] = splitProps2(props, ["swap", "lazyMount", "unmountOnExit"]);
111
+ const swap = useSwap(() => swapProps);
112
+ const mergedProps = mergeProps3(() => swap().getRootProps(), localProps);
113
+ return <SwapProvider value={swap}>
114
+ <ark.span {...mergedProps} />
115
+ </SwapProvider>;
116
+ };
117
+
118
+ // src/components/swap/swap-root-provider.tsx
119
+ import { mergeProps as mergeProps4 } from "@zag-js/solid";
120
+ import { splitProps as splitProps3 } from "solid-js";
121
+ var SwapRootProvider = (props) => {
122
+ const [providerProps, localProps] = splitProps3(props, ["value"]);
123
+ const mergedProps = mergeProps4(() => providerProps.value().getRootProps(), localProps);
124
+ return <SwapProvider value={providerProps.value}>
125
+ <ark.span {...mergedProps} />
126
+ </SwapProvider>;
127
+ };
128
+
129
+ export {
130
+ useSwapContext,
131
+ SwapIndicator,
132
+ useSwap,
133
+ SwapRoot,
134
+ SwapRootProvider,
135
+ swap_exports
136
+ };
@@ -1,12 +1,14 @@
1
1
  import {
2
2
  PresenceProvider,
3
3
  splitPresenceProps,
4
- usePresence,
5
4
  usePresenceContext
6
- } from "./VTTFCXVC.jsx";
5
+ } from "./NEU4F4NG.jsx";
6
+ import {
7
+ usePresence
8
+ } from "./OEGORBLT.jsx";
7
9
  import {
8
10
  useFieldContext
9
- } from "./C56T2HRV.jsx";
11
+ } from "./PPH4D7AF.jsx";
10
12
  import {
11
13
  composeRefs
12
14
  } from "./PT2CJE3O.jsx";
@@ -16,15 +18,15 @@ import {
16
18
  import {
17
19
  useEnvironmentContext
18
20
  } from "./HDGILMRT.jsx";
21
+ import {
22
+ useLocaleContext
23
+ } from "./HOPBYFHD.jsx";
19
24
  import {
20
25
  runIfFn
21
26
  } from "./KGOB2IMX.jsx";
22
27
  import {
23
28
  ark
24
29
  } from "./UFYZ7HLU.jsx";
25
- import {
26
- useLocaleContext
27
- } from "./JFOWNFC7.jsx";
28
30
  import {
29
31
  createContext
30
32
  } from "./UZJJWJQM.jsx";
@@ -248,6 +250,7 @@ var useSelect = (props) => {
248
250
  var SelectRoot = (props) => {
249
251
  const [presenceProps, selectProps] = splitPresenceProps(props);
250
252
  const [useSelectProps, localProps] = createSplitProps()(selectProps, [
253
+ "autoComplete",
251
254
  "closeOnSelect",
252
255
  "collection",
253
256
  "composite",
@@ -1,8 +1,9 @@
1
- import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './2WRCIBVP.js';
1
+ import { splitPresenceProps, PresenceProvider, usePresenceContext } from './JBLHW7IM.js';
2
+ import { usePresence } from './X22PRPOR.js';
2
3
  import { composeRefs } from './ROP6QZQ7.js';
3
4
  import { datePickerAnatomy } from './YA3LD5QR.js';
4
5
  import { createSplitProps } from './ZMHI4GDJ.js';
5
- import { useLocaleContext } from './RVOPDSQY.js';
6
+ import { useLocaleContext } from './EM5SH6A3.js';
6
7
  import { useEnvironmentContext } from './3P5T77QU.js';
7
8
  import { runIfFn } from './DT73WLR4.js';
8
9
  import { ark } from './EPLBB4QN.js';
@@ -201,7 +202,7 @@ var useDatePicker = (props) => {
201
202
  // src/components/date-picker/date-picker-root.tsx
202
203
  var DatePickerRoot = (props) => {
203
204
  const [presenceProps, datePickerProps] = splitPresenceProps(props);
204
- const [useDatePickerProps, localProps] = createSplitProps()(datePickerProps, ["closeOnSelect", "defaultFocusedValue", "defaultOpen", "defaultValue", "defaultView", "disabled", "fixedWeeks", "focusedValue", "format", "id", "ids", "inline", "invalid", "isDateUnavailable", "locale", "max", "maxView", "min", "minView", "name", "numOfMonths", "onFocusChange", "onOpenChange", "onValueChange", "onViewChange", "onVisibleRangeChange", "open", "outsideDaySelectable", "parse", "placeholder", "positioning", "readOnly", "required", "selectionMode", "startOfWeek", "timeZone", "translations", "value", "view"]);
205
+ const [useDatePickerProps, localProps] = createSplitProps()(datePickerProps, ["closeOnSelect", "defaultFocusedValue", "defaultOpen", "defaultValue", "defaultView", "disabled", "fixedWeeks", "focusedValue", "format", "id", "ids", "inline", "invalid", "isDateUnavailable", "locale", "max", "maxSelectedDates", "maxView", "min", "minView", "name", "numOfMonths", "onFocusChange", "onOpenChange", "onValueChange", "onViewChange", "onVisibleRangeChange", "open", "openOnClick", "outsideDaySelectable", "parse", "placeholder", "positioning", "readOnly", "required", "selectionMode", "showWeekNumbers", "startOfWeek", "timeZone", "translations", "value", "view"]);
205
206
  const api = useDatePicker(useDatePickerProps);
206
207
  const apiPresence = usePresence(mergeProps(presenceProps, () => ({
207
208
  present: api().open
@@ -366,6 +367,19 @@ var DatePickerViewTrigger = (props) => {
366
367
  const mergedProps = mergeProps(() => api().getViewTriggerProps(viewProps), props);
367
368
  return createComponent(ark.button, mergedProps);
368
369
  };
370
+ var splitWeekNumberCellProps = createSplitProps();
371
+ var DatePickerWeekNumberCell = (props) => {
372
+ const [cellProps, localProps] = splitWeekNumberCellProps(props, ["weekIndex", "week"]);
373
+ const datePicker2 = useDatePickerContext();
374
+ const mergedProps = mergeProps(() => datePicker2().getWeekNumberCellProps(cellProps), localProps);
375
+ return createComponent(ark.td, mergedProps);
376
+ };
377
+ var DatePickerWeekNumberHeaderCell = (props) => {
378
+ const api = useDatePickerContext();
379
+ const tableProps = useDatePickerTableContext();
380
+ const mergedProps = mergeProps(() => api().getWeekNumberHeaderCellProps(tableProps), props);
381
+ return createComponent(ark.th, mergedProps);
382
+ };
369
383
  var DatePickerYearSelect = (props) => {
370
384
  const datePicker2 = useDatePickerContext();
371
385
  const mergedProps = mergeProps(() => datePicker2().getYearSelectProps(), props);
@@ -417,7 +431,9 @@ __export(date_picker_exports, {
417
431
  View: () => DatePickerView,
418
432
  ViewControl: () => DatePickerViewControl,
419
433
  ViewTrigger: () => DatePickerViewTrigger,
434
+ WeekNumberCell: () => DatePickerWeekNumberCell,
435
+ WeekNumberHeaderCell: () => DatePickerWeekNumberHeaderCell,
420
436
  YearSelect: () => DatePickerYearSelect
421
437
  });
422
438
 
423
- export { DatePickerClearTrigger, DatePickerContent, DatePickerContext, DatePickerControl, DatePickerInput, DatePickerLabel, DatePickerMonthSelect, DatePickerNextTrigger, DatePickerPositioner, DatePickerPresetTrigger, DatePickerPrevTrigger, DatePickerRangeText, DatePickerRoot, DatePickerRootProvider, DatePickerTable, DatePickerTableBody, DatePickerTableCell, DatePickerTableCellTrigger, DatePickerTableHead, DatePickerTableHeader, DatePickerTableRow, DatePickerTrigger, DatePickerValueText, DatePickerView, DatePickerViewControl, DatePickerViewTrigger, DatePickerYearSelect, date_picker_exports, useDatePicker, useDatePickerContext };
439
+ export { DatePickerClearTrigger, DatePickerContent, DatePickerContext, DatePickerControl, DatePickerInput, DatePickerLabel, DatePickerMonthSelect, DatePickerNextTrigger, DatePickerPositioner, DatePickerPresetTrigger, DatePickerPrevTrigger, DatePickerRangeText, DatePickerRoot, DatePickerRootProvider, DatePickerTable, DatePickerTableBody, DatePickerTableCell, DatePickerTableCellTrigger, DatePickerTableHead, DatePickerTableHeader, DatePickerTableRow, DatePickerTrigger, DatePickerValueText, DatePickerView, DatePickerViewControl, DatePickerViewTrigger, DatePickerWeekNumberCell, DatePickerWeekNumberHeaderCell, DatePickerYearSelect, date_picker_exports, useDatePicker, useDatePickerContext };
@@ -1,8 +1,9 @@
1
- import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider } from './2WRCIBVP.js';
1
+ import { usePresenceContext, splitPresenceProps, PresenceProvider } from './JBLHW7IM.js';
2
+ import { usePresence } from './X22PRPOR.js';
2
3
  import { composeRefs } from './ROP6QZQ7.js';
3
4
  import { splitRenderStrategyProps, RenderStrategyProvider, useRenderStrategyContext } from './GUFIKGZ6.js';
4
5
  import { createSplitProps } from './ZMHI4GDJ.js';
5
- import { useLocaleContext } from './RVOPDSQY.js';
6
+ import { useLocaleContext } from './EM5SH6A3.js';
6
7
  import { useEnvironmentContext } from './3P5T77QU.js';
7
8
  import { runIfFn } from './DT73WLR4.js';
8
9
  import { ark } from './EPLBB4QN.js';
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  useFieldContext
3
- } from "./C56T2HRV.jsx";
3
+ } from "./PPH4D7AF.jsx";
4
4
  import {
5
5
  createSplitProps
6
6
  } from "./6WEDGJKQ.jsx";
7
7
  import {
8
8
  useEnvironmentContext
9
9
  } from "./HDGILMRT.jsx";
10
+ import {
11
+ useLocaleContext
12
+ } from "./HOPBYFHD.jsx";
10
13
  import {
11
14
  runIfFn
12
15
  } from "./KGOB2IMX.jsx";
13
16
  import {
14
17
  ark
15
18
  } from "./UFYZ7HLU.jsx";
16
- import {
17
- useLocaleContext
18
- } from "./JFOWNFC7.jsx";
19
19
  import {
20
20
  createContext
21
21
  } from "./UZJJWJQM.jsx";
@@ -1,5 +1,5 @@
1
1
  import { createSplitProps } from './ZMHI4GDJ.js';
2
- import { useLocaleContext } from './RVOPDSQY.js';
2
+ import { useLocaleContext } from './EM5SH6A3.js';
3
3
  import { useEnvironmentContext } from './3P5T77QU.js';
4
4
  import { runIfFn } from './DT73WLR4.js';
5
5
  import { ark } from './EPLBB4QN.js';
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  useFieldContext
3
- } from "./C56T2HRV.jsx";
3
+ } from "./PPH4D7AF.jsx";
4
4
  import {
5
5
  createSplitProps
6
6
  } from "./6WEDGJKQ.jsx";
7
7
  import {
8
8
  useEnvironmentContext
9
9
  } from "./HDGILMRT.jsx";
10
+ import {
11
+ useLocaleContext
12
+ } from "./HOPBYFHD.jsx";
10
13
  import {
11
14
  runIfFn
12
15
  } from "./KGOB2IMX.jsx";
13
16
  import {
14
17
  ark
15
18
  } from "./UFYZ7HLU.jsx";
16
- import {
17
- useLocaleContext
18
- } from "./JFOWNFC7.jsx";
19
19
  import {
20
20
  createContext
21
21
  } from "./UZJJWJQM.jsx";
@@ -1,5 +1,5 @@
1
1
  import { createSplitProps } from './ZMHI4GDJ.js';
2
- import { useLocaleContext } from './RVOPDSQY.js';
2
+ import { useLocaleContext } from './EM5SH6A3.js';
3
3
  import { useEnvironmentContext } from './3P5T77QU.js';
4
4
  import { runIfFn } from './DT73WLR4.js';
5
5
  import { ark } from './EPLBB4QN.js';
@@ -4,15 +4,15 @@ import {
4
4
  import {
5
5
  useEnvironmentContext
6
6
  } from "./HDGILMRT.jsx";
7
+ import {
8
+ useLocaleContext
9
+ } from "./HOPBYFHD.jsx";
7
10
  import {
8
11
  runIfFn
9
12
  } from "./KGOB2IMX.jsx";
10
13
  import {
11
14
  ark
12
15
  } from "./UFYZ7HLU.jsx";
13
- import {
14
- useLocaleContext
15
- } from "./JFOWNFC7.jsx";
16
16
  import {
17
17
  createContext
18
18
  } from "./UZJJWJQM.jsx";
@@ -4,15 +4,15 @@ import {
4
4
  import {
5
5
  useEnvironmentContext
6
6
  } from "./HDGILMRT.jsx";
7
+ import {
8
+ useLocaleContext
9
+ } from "./HOPBYFHD.jsx";
7
10
  import {
8
11
  runIfFn
9
12
  } from "./KGOB2IMX.jsx";
10
13
  import {
11
14
  ark
12
15
  } from "./UFYZ7HLU.jsx";
13
- import {
14
- useLocaleContext
15
- } from "./JFOWNFC7.jsx";
16
16
  import {
17
17
  createContext
18
18
  } from "./UZJJWJQM.jsx";
@@ -1,33 +1,35 @@
1
1
  import {
2
2
  PresenceProvider,
3
3
  splitPresenceProps,
4
- usePresence,
5
4
  usePresenceContext
6
- } from "./VTTFCXVC.jsx";
5
+ } from "./NEU4F4NG.jsx";
6
+ import {
7
+ usePresence
8
+ } from "./OEGORBLT.jsx";
7
9
  import {
8
10
  useFieldContext
9
- } from "./C56T2HRV.jsx";
11
+ } from "./PPH4D7AF.jsx";
10
12
  import {
11
13
  composeRefs
12
14
  } from "./PT2CJE3O.jsx";
13
- import {
14
- createSplitProps
15
- } from "./6WEDGJKQ.jsx";
16
15
  import {
17
16
  comboboxAnatomy
18
17
  } from "./VQPWR4W5.jsx";
18
+ import {
19
+ createSplitProps
20
+ } from "./6WEDGJKQ.jsx";
19
21
  import {
20
22
  useEnvironmentContext
21
23
  } from "./HDGILMRT.jsx";
24
+ import {
25
+ useLocaleContext
26
+ } from "./HOPBYFHD.jsx";
22
27
  import {
23
28
  runIfFn
24
29
  } from "./KGOB2IMX.jsx";
25
30
  import {
26
31
  ark
27
32
  } from "./UFYZ7HLU.jsx";
28
- import {
29
- useLocaleContext
30
- } from "./JFOWNFC7.jsx";
31
33
  import {
32
34
  createContext
33
35
  } from "./UZJJWJQM.jsx";
@@ -1,9 +1,11 @@
1
1
  import {
2
2
  PresenceProvider,
3
3
  splitPresenceProps,
4
- usePresence,
5
4
  usePresenceContext
6
- } from "./VTTFCXVC.jsx";
5
+ } from "./NEU4F4NG.jsx";
6
+ import {
7
+ usePresence
8
+ } from "./OEGORBLT.jsx";
7
9
  import {
8
10
  composeRefs
9
11
  } from "./PT2CJE3O.jsx";
@@ -13,15 +15,15 @@ import {
13
15
  import {
14
16
  useEnvironmentContext
15
17
  } from "./HDGILMRT.jsx";
18
+ import {
19
+ useLocaleContext
20
+ } from "./HOPBYFHD.jsx";
16
21
  import {
17
22
  runIfFn
18
23
  } from "./KGOB2IMX.jsx";
19
24
  import {
20
25
  ark
21
26
  } from "./UFYZ7HLU.jsx";
22
- import {
23
- useLocaleContext
24
- } from "./JFOWNFC7.jsx";
25
27
  import {
26
28
  createContext
27
29
  } from "./UZJJWJQM.jsx";
@@ -1,7 +1,7 @@
1
- import { collapsible_exports } from './VUOC2LCL.js';
1
+ import { collapsible_exports } from './3EUGCOMV.js';
2
2
  import { splitRenderStrategyProps, RenderStrategyProvider, useRenderStrategyContext } from './GUFIKGZ6.js';
3
3
  import { createSplitProps } from './ZMHI4GDJ.js';
4
- import { useLocaleContext } from './RVOPDSQY.js';
4
+ import { useLocaleContext } from './EM5SH6A3.js';
5
5
  import { useEnvironmentContext } from './3P5T77QU.js';
6
6
  import { runIfFn } from './DT73WLR4.js';
7
7
  import { ark } from './EPLBB4QN.js';
@@ -4,15 +4,15 @@ import {
4
4
  import {
5
5
  useEnvironmentContext
6
6
  } from "./HDGILMRT.jsx";
7
+ import {
8
+ useLocaleContext
9
+ } from "./HOPBYFHD.jsx";
7
10
  import {
8
11
  runIfFn
9
12
  } from "./KGOB2IMX.jsx";
10
13
  import {
11
14
  ark
12
15
  } from "./UFYZ7HLU.jsx";
13
- import {
14
- useLocaleContext
15
- } from "./JFOWNFC7.jsx";
16
16
  import {
17
17
  createContext
18
18
  } from "./UZJJWJQM.jsx";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  collapsible_exports,
3
3
  useCollapsibleContext
4
- } from "./ZYS6A6GV.jsx";
4
+ } from "./GYKEGNPI.jsx";
5
5
  import {
6
6
  RenderStrategyProvider,
7
7
  splitRenderStrategyProps,
@@ -13,15 +13,15 @@ import {
13
13
  import {
14
14
  useEnvironmentContext
15
15
  } from "./HDGILMRT.jsx";
16
+ import {
17
+ useLocaleContext
18
+ } from "./HOPBYFHD.jsx";
16
19
  import {
17
20
  runIfFn
18
21
  } from "./KGOB2IMX.jsx";
19
22
  import {
20
23
  ark
21
24
  } from "./UFYZ7HLU.jsx";
22
- import {
23
- useLocaleContext
24
- } from "./JFOWNFC7.jsx";
25
25
  import {
26
26
  createContext
27
27
  } from "./UZJJWJQM.jsx";
@@ -1,5 +1,5 @@
1
1
  import { createSplitProps } from './ZMHI4GDJ.js';
2
- import { useLocaleContext } from './RVOPDSQY.js';
2
+ import { useLocaleContext } from './EM5SH6A3.js';
3
3
  import { useEnvironmentContext } from './3P5T77QU.js';
4
4
  import { runIfFn } from './DT73WLR4.js';
5
5
  import { ark } from './EPLBB4QN.js';