@ark-ui/solid 4.10.2 → 5.1.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 (261) hide show
  1. package/README.md +6 -9
  2. package/dist/chunk/{ATMUKDFF.js → 26K66CRD.js} +11 -12
  3. package/dist/chunk/{U3XJZI3X.jsx → 2LZKFXR5.jsx} +19 -26
  4. package/dist/chunk/{H4RSHLA7.jsx → 3FYZXSQZ.jsx} +14 -15
  5. package/dist/chunk/{MQDN267C.jsx → 3VO34CGN.jsx} +13 -13
  6. package/dist/chunk/{YV5BACLX.js → 46YZVE6D.js} +12 -11
  7. package/dist/chunk/{MBQQASZE.js → 4QFED3VE.js} +12 -12
  8. package/dist/chunk/{SWUA2VFC.js → 4UD3WT4B.js} +10 -12
  9. package/dist/chunk/{IQJBNZOX.jsx → 5T73FAJY.jsx} +13 -8
  10. package/dist/chunk/{IZC6PKGT.jsx → 65SQKHCI.jsx} +15 -16
  11. package/dist/chunk/{WM2IZOYM.jsx → 72UBZBQP.jsx} +53 -82
  12. package/dist/chunk/{F3QPTRGW.jsx → 7IHVZWMT.jsx} +32 -36
  13. package/dist/chunk/{X34KVQNW.js → 7KGMTGCS.js} +3 -2
  14. package/dist/chunk/{34MDPAG6.js → 7RR233CD.js} +30 -12
  15. package/dist/chunk/{7S43DIPW.js → 7S7524Q3.js} +15 -26
  16. package/dist/chunk/{E72NMPSK.jsx → A4744EEE.jsx} +9 -14
  17. package/dist/chunk/{BY62F4IV.jsx → AD2EIGNX.jsx} +13 -13
  18. package/dist/chunk/{3HMZSTYX.js → B246J3FR.js} +10 -11
  19. package/dist/chunk/{K54W24N6.jsx → B2KZ5VSW.jsx} +15 -17
  20. package/dist/chunk/{2GATVLPK.js → C4PG7WMU.js} +9 -9
  21. package/dist/chunk/{3LRXHWW2.js → C745EVQO.js} +32 -27
  22. package/dist/chunk/{TOVWS5LG.jsx → CA4LWAR2.jsx} +20 -26
  23. package/dist/chunk/{WKVZFHUH.jsx → CABZW4BQ.jsx} +19 -27
  24. package/dist/chunk/{Y4LH2CR6.jsx → CGBS64C2.jsx} +13 -13
  25. package/dist/chunk/{2HTNQLGP.jsx → CHLRHJV2.jsx} +13 -14
  26. package/dist/chunk/{SJSLQDBZ.jsx → CSDXHOTM.jsx} +15 -20
  27. package/dist/chunk/{5O4RWSWO.jsx → D2Z5BEON.jsx} +3 -3
  28. package/dist/chunk/{CPMYIT5J.jsx → D6BC5RCX.jsx} +16 -14
  29. package/dist/chunk/{6MXKM4GA.js → E4A5DGUC.js} +12 -12
  30. package/dist/chunk/{2J42A7KM.js → E5BXBABH.js} +2 -2
  31. package/dist/chunk/{U7SPBSDD.jsx → EEG3DZXG.jsx} +13 -15
  32. package/dist/chunk/{M2FICVVI.js → EI7I4DR6.js} +12 -13
  33. package/dist/chunk/{5CYHETDY.js → EWPKE75H.js} +10 -9
  34. package/dist/chunk/{2W32Z6JZ.js → F5GOQFKX.js} +12 -12
  35. package/dist/chunk/{CIPYIXIW.js → F7JP3DGZ.js} +11 -12
  36. package/dist/chunk/{PRMWTLUY.jsx → FUS6GOJL.jsx} +13 -11
  37. package/dist/chunk/{ASCGEGA5.jsx → GCDTOEZN.jsx} +16 -17
  38. package/dist/chunk/{G2WIACWP.js → GJSXT6PD.js} +11 -11
  39. package/dist/chunk/{LVPQ6GR4.js → GMNTJ5KE.js} +9 -9
  40. package/dist/chunk/{WPFSEVTX.js → I2RQ2435.js} +14 -16
  41. package/dist/chunk/{AIQFNVCU.jsx → IKA3JJFV.jsx} +14 -20
  42. package/dist/chunk/{3O5VTKDF.jsx → IYMTFLF3.jsx} +20 -33
  43. package/dist/chunk/{EHJDQTTW.jsx → JRMTU7C7.jsx} +3 -16
  44. package/dist/chunk/{VARNCRUN.js → JUYBJNX6.js} +19 -20
  45. package/dist/chunk/{FNEB2RAF.js → JWXGONCE.js} +12 -12
  46. package/dist/chunk/{SN5TXTB6.jsx → JZ7ZQZT4.jsx} +17 -54
  47. package/dist/chunk/{WQQVH7YG.jsx → KBHIJYMD.jsx} +34 -19
  48. package/dist/chunk/{MMS6MJ72.js → KFJJXGK6.js} +11 -13
  49. package/dist/chunk/{X3BMEEJH.js → KVVYU5Z3.js} +34 -14
  50. package/dist/chunk/{T4NRAKVA.jsx → KZCXBFHA.jsx} +14 -12
  51. package/dist/chunk/{5EVN6V64.js → LK5627GR.js} +15 -17
  52. package/dist/chunk/{5JS7LFUQ.js → LTZUX6NG.js} +12 -10
  53. package/dist/chunk/{NK4T7LIZ.jsx → MA35L6TV.jsx} +12 -13
  54. package/dist/chunk/{ZC6KWJ4T.jsx → MDJAL2LV.jsx} +12 -14
  55. package/dist/chunk/{CCA5XJM6.jsx → MERJALY6.jsx} +23 -38
  56. package/dist/chunk/MOG4V2NQ.jsx +15 -0
  57. package/dist/chunk/{2H4WHODR.js → MSLAT5GQ.js} +10 -12
  58. package/dist/chunk/{5ONYCKM3.jsx → NEBB7COJ.jsx} +1 -1
  59. package/dist/chunk/{DU4TY3XA.jsx → NEYCBIOW.jsx} +16 -17
  60. package/dist/chunk/{DXYB7RYX.js → NF3HZO6T.js} +12 -10
  61. package/dist/chunk/{5XD5ZSBX.js → NZEL4233.js} +15 -18
  62. package/dist/chunk/OAPCRIL5.js +8 -0
  63. package/dist/chunk/{LCESUDZB.js → OY4ARTMM.js} +7 -14
  64. package/dist/chunk/{Q7NPTAJI.js → QBFJVUX3.js} +10 -10
  65. package/dist/chunk/{HPDOBQ3V.js → QEMQBM6W.js} +1 -1
  66. package/dist/chunk/{L7OSYHVR.js → QFAL6GWC.js} +1 -1
  67. package/dist/chunk/{34OZO53S.js → QTSWXPKO.js} +12 -14
  68. package/dist/chunk/{JVXNYKNA.js → R5NPBVOA.js} +11 -12
  69. package/dist/chunk/{3QQZKR3F.jsx → RCXMZN3G.jsx} +1 -1
  70. package/dist/chunk/{5SRZ3YYC.js → ROXCI3ZP.js} +10 -10
  71. package/dist/chunk/{GZVCPLKK.jsx → RY6GW37O.jsx} +14 -12
  72. package/dist/chunk/SDD2HKR3.js +71 -0
  73. package/dist/chunk/{RAEDLHD3.js → TKGOCHK5.js} +14 -16
  74. package/dist/chunk/{I5UG2QUO.js → TROPIN4C.js} +1 -7
  75. package/dist/chunk/{AX5SMQMA.js → TRUQMF25.js} +19 -19
  76. package/dist/chunk/{NMGUCD2L.jsx → TVCIHLER.jsx} +2 -11
  77. package/dist/chunk/{YCYZZGN2.jsx → TZDLUIKR.jsx} +14 -10
  78. package/dist/chunk/{QGV2SUTQ.jsx → U3J33PVO.jsx} +21 -21
  79. package/dist/chunk/{P7I44WC4.jsx → UCYPIMZC.jsx} +21 -22
  80. package/dist/chunk/{GXWVYON6.js → UODFV2GS.js} +11 -12
  81. package/dist/chunk/{7YIHAT7J.jsx → V564AMKR.jsx} +39 -18
  82. package/dist/chunk/{PSLLOEMD.js → VLQWCBZM.js} +16 -29
  83. package/dist/chunk/{3WGLTS6O.js → VNK2NPTS.js} +10 -10
  84. package/dist/chunk/{WIVXL7HJ.jsx → WDXH3NHK.jsx} +14 -15
  85. package/dist/chunk/{QQUR4MWN.js → WGFUGTWA.js} +18 -19
  86. package/dist/chunk/{B7LE23PE.jsx → WNIFZKTJ.jsx} +13 -14
  87. package/dist/chunk/{IOTZAUDA.jsx → WUTUKX4C.jsx} +1 -1
  88. package/dist/chunk/{XUVXUPEH.js → XN3MSM3M.js} +14 -18
  89. package/dist/chunk/{MYMGOYXH.js → XR4WJDUT.js} +2 -2
  90. package/dist/chunk/{DOPROT6M.jsx → XZZ6TULR.jsx} +15 -10
  91. package/dist/chunk/{QZYE5W7T.jsx → Y7EY3OTU.jsx} +16 -21
  92. package/dist/chunk/{MRQ2UYM4.jsx → YIVTZ7BP.jsx} +12 -11
  93. package/dist/chunk/{QODB3C3M.js → YMMMHJJS.js} +3 -3
  94. package/dist/chunk/{HU7FZMJI.jsx → YPH7FBUN.jsx} +14 -16
  95. package/dist/chunk/{TC2QHQ47.jsx → Z254KIAA.jsx} +22 -44
  96. package/dist/chunk/{W43X4SNE.js → Z2TDX72A.js} +9 -8
  97. package/dist/chunk/{6YQ3EF2J.js → ZGXZNLX2.js} +12 -13
  98. package/dist/chunk/{R6RE56DG.jsx → ZJM2GZS7.jsx} +4 -1
  99. package/dist/chunk/{UGKLUHKU.js → ZOGAU3AQ.js} +11 -13
  100. package/dist/chunk/{7PKUSZKY.jsx → ZPSBF7S2.jsx} +14 -11
  101. package/dist/chunk/{RZBYC7DR.jsx → ZYF7GVNI.jsx} +21 -27
  102. package/dist/components/accordion/index.d.ts +4 -9
  103. package/dist/components/accordion/index.js +1 -1
  104. package/dist/components/accordion/index.jsx +7 -7
  105. package/dist/components/avatar/index.d.ts +4 -4
  106. package/dist/components/avatar/index.js +1 -1
  107. package/dist/components/avatar/index.jsx +5 -5
  108. package/dist/components/carousel/index.d.ts +4 -9
  109. package/dist/components/carousel/index.js +1 -1
  110. package/dist/components/carousel/index.jsx +5 -5
  111. package/dist/components/checkbox/index.d.ts +5 -10
  112. package/dist/components/checkbox/index.js +1 -1
  113. package/dist/components/checkbox/index.jsx +8 -8
  114. package/dist/components/clipboard/index.d.ts +4 -4
  115. package/dist/components/clipboard/index.js +1 -1
  116. package/dist/components/clipboard/index.jsx +5 -5
  117. package/dist/components/collapsible/index.d.ts +4 -9
  118. package/dist/components/collapsible/index.js +1 -1
  119. package/dist/components/collapsible/index.jsx +6 -6
  120. package/dist/components/collection.d.ts +3 -3
  121. package/dist/components/collection.js +1 -1
  122. package/dist/components/collection.jsx +1 -1
  123. package/dist/components/color-picker/index.d.ts +6 -16
  124. package/dist/components/color-picker/index.js +1 -1
  125. package/dist/components/color-picker/index.jsx +10 -9
  126. package/dist/components/combobox/index.d.ts +5 -15
  127. package/dist/components/combobox/index.js +2 -2
  128. package/dist/components/combobox/index.jsx +12 -11
  129. package/dist/components/date-picker/index.d.ts +6 -18
  130. package/dist/components/date-picker/index.js +1 -1
  131. package/dist/components/date-picker/index.jsx +7 -7
  132. package/dist/components/dialog/index.d.ts +5 -10
  133. package/dist/components/dialog/index.js +1 -1
  134. package/dist/components/dialog/index.jsx +7 -7
  135. package/dist/components/editable/index.d.ts +4 -14
  136. package/dist/components/editable/index.js +1 -1
  137. package/dist/components/editable/index.jsx +8 -7
  138. package/dist/components/factory.d.ts +1 -1
  139. package/dist/components/field/index.d.ts +4 -4
  140. package/dist/components/field/index.js +1 -1
  141. package/dist/components/field/index.jsx +5 -3
  142. package/dist/components/fieldset/index.d.ts +4 -4
  143. package/dist/components/fieldset/index.js +1 -1
  144. package/dist/components/fieldset/index.jsx +3 -2
  145. package/dist/components/file-upload/index.d.ts +4 -4
  146. package/dist/components/file-upload/index.js +1 -1
  147. package/dist/components/file-upload/index.jsx +8 -7
  148. package/dist/components/focus-trap/index.d.ts +2 -2
  149. package/dist/components/format/index.js +1 -1
  150. package/dist/components/format/index.jsx +4 -4
  151. package/dist/components/frame/index.d.ts +1 -1
  152. package/dist/components/frame/index.js +1 -1
  153. package/dist/components/frame/index.jsx +4 -4
  154. package/dist/components/highlight/index.d.ts +2 -2
  155. package/dist/components/highlight/index.js +1 -1
  156. package/dist/components/highlight/index.jsx +2 -1
  157. package/dist/components/hover-card/index.d.ts +5 -10
  158. package/dist/components/hover-card/index.js +1 -1
  159. package/dist/components/hover-card/index.jsx +7 -7
  160. package/dist/components/index.d.ts +3 -2
  161. package/dist/components/index.js +46 -46
  162. package/dist/components/index.jsx +289 -290
  163. package/dist/components/menu/index.d.ts +6 -11
  164. package/dist/components/menu/index.js +1 -1
  165. package/dist/components/menu/index.jsx +7 -7
  166. package/dist/components/number-input/index.d.ts +4 -9
  167. package/dist/components/number-input/index.js +1 -1
  168. package/dist/components/number-input/index.jsx +8 -7
  169. package/dist/components/pagination/index.d.ts +4 -9
  170. package/dist/components/pagination/index.js +1 -1
  171. package/dist/components/pagination/index.jsx +5 -5
  172. package/dist/components/pin-input/index.d.ts +4 -9
  173. package/dist/components/pin-input/index.js +1 -1
  174. package/dist/components/pin-input/index.jsx +8 -7
  175. package/dist/components/popover/index.d.ts +5 -10
  176. package/dist/components/popover/index.js +1 -1
  177. package/dist/components/popover/index.jsx +7 -7
  178. package/dist/components/presence/index.d.ts +3 -3
  179. package/dist/components/presence/index.js +1 -1
  180. package/dist/components/presence/index.jsx +4 -3
  181. package/dist/components/progress/index.d.ts +4 -9
  182. package/dist/components/progress/index.js +1 -1
  183. package/dist/components/progress/index.jsx +5 -5
  184. package/dist/components/qr-code/index.d.ts +4 -9
  185. package/dist/components/qr-code/index.js +1 -1
  186. package/dist/components/qr-code/index.jsx +5 -5
  187. package/dist/components/radio-group/index.d.ts +4 -9
  188. package/dist/components/radio-group/index.js +1 -1
  189. package/dist/components/radio-group/index.jsx +5 -5
  190. package/dist/components/rating-group/index.d.ts +6 -11
  191. package/dist/components/rating-group/index.js +1 -1
  192. package/dist/components/rating-group/index.jsx +8 -7
  193. package/dist/components/segment-group/index.d.ts +5 -10
  194. package/dist/components/segment-group/index.js +1 -1
  195. package/dist/components/segment-group/index.jsx +5 -5
  196. package/dist/components/select/index.d.ts +5 -15
  197. package/dist/components/select/index.js +2 -2
  198. package/dist/components/select/index.jsx +12 -11
  199. package/dist/components/signature-pad/index.d.ts +4 -4
  200. package/dist/components/signature-pad/index.js +1 -1
  201. package/dist/components/signature-pad/index.jsx +8 -7
  202. package/dist/components/slider/index.d.ts +4 -9
  203. package/dist/components/slider/index.js +1 -1
  204. package/dist/components/slider/index.jsx +5 -5
  205. package/dist/components/splitter/index.d.ts +4 -9
  206. package/dist/components/splitter/index.js +1 -1
  207. package/dist/components/splitter/index.jsx +5 -5
  208. package/dist/components/steps/index.d.ts +8 -12
  209. package/dist/components/steps/index.js +1 -1
  210. package/dist/components/steps/index.jsx +5 -5
  211. package/dist/components/switch/index.d.ts +4 -9
  212. package/dist/components/switch/index.js +1 -1
  213. package/dist/components/switch/index.jsx +8 -7
  214. package/dist/components/tabs/index.d.ts +4 -9
  215. package/dist/components/tabs/index.js +1 -1
  216. package/dist/components/tabs/index.jsx +7 -7
  217. package/dist/components/tags-input/index.d.ts +4 -9
  218. package/dist/components/tags-input/index.js +1 -1
  219. package/dist/components/tags-input/index.jsx +8 -7
  220. package/dist/components/time-picker/index.d.ts +5 -15
  221. package/dist/components/time-picker/index.js +1 -1
  222. package/dist/components/time-picker/index.jsx +7 -7
  223. package/dist/components/timer/index.d.ts +4 -4
  224. package/dist/components/timer/index.js +1 -1
  225. package/dist/components/timer/index.jsx +5 -5
  226. package/dist/components/toast/index.d.ts +6 -7
  227. package/dist/components/toast/index.js +1 -1
  228. package/dist/components/toast/index.jsx +6 -2
  229. package/dist/components/toggle/index.d.ts +7 -36
  230. package/dist/components/toggle/index.js +1 -1
  231. package/dist/components/toggle/index.jsx +2 -4
  232. package/dist/components/toggle-group/index.d.ts +4 -9
  233. package/dist/components/toggle-group/index.js +1 -1
  234. package/dist/components/toggle-group/index.jsx +5 -5
  235. package/dist/components/tooltip/index.d.ts +5 -10
  236. package/dist/components/tooltip/index.js +1 -1
  237. package/dist/components/tooltip/index.jsx +7 -7
  238. package/dist/components/tour/index.d.ts +6 -6
  239. package/dist/components/tour/index.js +1 -1
  240. package/dist/components/tour/index.jsx +7 -7
  241. package/dist/components/tree-view/index.d.ts +7 -17
  242. package/dist/components/tree-view/index.js +2 -2
  243. package/dist/components/tree-view/index.jsx +9 -9
  244. package/dist/index.d.ts +3 -2
  245. package/dist/index.js +48 -48
  246. package/dist/index.jsx +290 -291
  247. package/dist/providers/environment/index.js +1 -1
  248. package/dist/providers/environment/index.jsx +2 -2
  249. package/dist/providers/index.js +2 -2
  250. package/dist/providers/index.jsx +4 -4
  251. package/dist/providers/locale/index.js +1 -1
  252. package/dist/providers/locale/index.jsx +2 -2
  253. package/dist/types-CxryXVkR.d.ts +8 -0
  254. package/dist/{use-presence-Ct1onT3-.d.ts → use-presence-B6QV_j94.d.ts} +3 -3
  255. package/package.json +71 -78
  256. package/dist/chunk/52WUF3CY.jsx +0 -26
  257. package/dist/chunk/BSPFGETO.js +0 -21
  258. package/dist/chunk/CTTG4GSG.js +0 -30
  259. package/dist/chunk/JHG4EID2.jsx +0 -233
  260. package/dist/chunk/MV3KTL7M.js +0 -107
  261. package/dist/types-B277wCdv.d.ts +0 -5
@@ -1,14 +1,15 @@
1
- import { useFieldContext } from './X3BMEEJH.js';
2
- import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider } from './LCESUDZB.js';
1
+ import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './OY4ARTMM.js';
2
+ import { useFieldContext } from './KVVYU5Z3.js';
3
3
  import { createSplitProps } from './ZMHI4GDJ.js';
4
4
  import { ark } from './EPLBB4QN.js';
5
- import { useEnvironmentContext } from './QODB3C3M.js';
6
- import { useLocaleContext } from './HPDOBQ3V.js';
7
- import { createContext } from './I5UG2QUO.js';
5
+ import { useEnvironmentContext } from './YMMMHJJS.js';
6
+ import { useLocaleContext } from './QEMQBM6W.js';
7
+ import { createContext } from './TROPIN4C.js';
8
+ import { runIfFn } from './DT73WLR4.js';
8
9
  import { __export } from './ESLJRKWD.js';
9
10
  import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
10
11
  import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
11
- import { Show, createMemo, createUniqueId, splitProps, createEffect } from 'solid-js';
12
+ import { Show, createUniqueId, createMemo } from 'solid-js';
12
13
  import * as combobox from '@zag-js/combobox';
13
14
  export { anatomy } from '@zag-js/combobox';
14
15
 
@@ -57,12 +58,10 @@ var ComboboxInput = (props) => {
57
58
  };
58
59
 
59
60
  // src/components/combobox/use-combobox-item-context.ts
60
- var [ComboboxItemProvider, useComboboxItemContext] = createContext(
61
- {
62
- hookName: "useComboboxItemContext",
63
- providerName: "<ComboboxItemProvider />"
64
- }
65
- );
61
+ var [ComboboxItemProvider, useComboboxItemContext] = createContext({
62
+ hookName: "useComboboxItemContext",
63
+ providerName: "<ComboboxItemProvider />"
64
+ });
66
65
 
67
66
  // src/components/combobox/use-combobox-item-props-context.ts
68
67
  var [ComboboxItemPropsProvider, useComboboxItemPropsContext] = createContext({
@@ -161,7 +160,7 @@ var useCombobox = (props) => {
161
160
  const environment = useEnvironmentContext();
162
161
  const id = createUniqueId();
163
162
  const field = useFieldContext();
164
- const initialContext = createMemo(() => ({
163
+ const machineProps = createMemo(() => ({
165
164
  id,
166
165
  ids: {
167
166
  label: field?.().ids.label,
@@ -173,28 +172,16 @@ var useCombobox = (props) => {
173
172
  invalid: field?.().invalid,
174
173
  dir: locale().dir,
175
174
  getRootNode: environment().getRootNode,
176
- open: props.defaultOpen,
177
- value: props.defaultValue,
178
- "open.controlled": props.open !== void 0,
179
- ...props
175
+ ...runIfFn(props)
180
176
  }));
181
- const context = createMemo(() => {
182
- const [, restProps] = splitProps(initialContext(), ["collection"]);
183
- return restProps;
184
- });
185
- const [state, send, service] = useMachine(combobox.machine(initialContext()), {
186
- context
187
- });
188
- createEffect(() => {
189
- service.setContext({ collection: props.collection });
190
- });
191
- return createMemo(() => combobox.connect(state, send, normalizeProps));
177
+ const service = useMachine(combobox.machine, machineProps);
178
+ return createMemo(() => combobox.connect(service, normalizeProps));
192
179
  };
193
180
 
194
181
  // src/components/combobox/combobox-root.tsx
195
182
  var ComboboxRoot = (props) => {
196
183
  const [presenceProps, comboboxProps] = splitPresenceProps(props);
197
- const [useComboboxProps, localProps] = createSplitProps()(comboboxProps, ["allowCustomValue", "autoFocus", "closeOnSelect", "collection", "composite", "defaultOpen", "defaultValue", "disabled", "disableLayer", "form", "highlightedValue", "id", "ids", "inputBehavior", "inputValue", "invalid", "loopFocus", "multiple", "name", "navigate", "onFocusOutside", "onHighlightChange", "onInputValueChange", "onInteractOutside", "onOpenChange", "onOpenChange", "onPointerDownOutside", "onValueChange", "open", "openOnChange", "openOnClick", "openOnKeyPress", "placeholder", "positioning", "readOnly", "required", "scrollToIndexFn", "selectionBehavior", "translations", "value"]);
184
+ const [useComboboxProps, localProps] = createSplitProps()(comboboxProps, ["allowCustomValue", "autoFocus", "closeOnSelect", "collection", "composite", "defaultHighlightedValue", "defaultInputValue", "defaultOpen", "defaultValue", "disabled", "disableLayer", "form", "highlightedValue", "id", "ids", "inputBehavior", "inputValue", "invalid", "loopFocus", "multiple", "name", "navigate", "onFocusOutside", "onHighlightChange", "onInputValueChange", "onInteractOutside", "onOpenChange", "onOpenChange", "onPointerDownOutside", "onValueChange", "open", "openOnChange", "openOnClick", "openOnKeyPress", "placeholder", "positioning", "readOnly", "required", "scrollToIndexFn", "selectionBehavior", "translations", "value"]);
198
185
  const api = useCombobox(useComboboxProps);
199
186
  const apiPresence = usePresence(mergeProps(presenceProps, () => ({
200
187
  present: api().open
@@ -1,9 +1,10 @@
1
- import { useFieldContext } from './X3BMEEJH.js';
1
+ import { useFieldContext } from './KVVYU5Z3.js';
2
2
  import { createSplitProps } from './ZMHI4GDJ.js';
3
3
  import { ark } from './EPLBB4QN.js';
4
- import { useEnvironmentContext } from './QODB3C3M.js';
5
- import { useLocaleContext } from './HPDOBQ3V.js';
6
- import { createContext } from './I5UG2QUO.js';
4
+ import { useEnvironmentContext } from './YMMMHJJS.js';
5
+ import { useLocaleContext } from './QEMQBM6W.js';
6
+ import { createContext } from './TROPIN4C.js';
7
+ import { runIfFn } from './DT73WLR4.js';
7
8
  import { __export } from './ESLJRKWD.js';
8
9
  import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
9
10
  import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
@@ -49,12 +50,12 @@ var NumberInputLabel = (props) => {
49
50
  const mergedProps = mergeProps(() => api().getLabelProps(), props);
50
51
  return createComponent(ark.label, mergedProps);
51
52
  };
52
- var useNumberInput = (props = {}) => {
53
+ var useNumberInput = (props) => {
53
54
  const id = createUniqueId();
54
55
  const locale = useLocaleContext();
55
56
  const environment = useEnvironmentContext();
56
57
  const field = useFieldContext();
57
- const context = createMemo(() => ({
58
+ const machineProps = createMemo(() => ({
58
59
  id,
59
60
  ids: {
60
61
  label: field?.().ids.label,
@@ -67,11 +68,10 @@ var useNumberInput = (props = {}) => {
67
68
  dir: locale().dir,
68
69
  locale: locale().locale,
69
70
  getRootNode: environment().getRootNode,
70
- value: props.defaultValue,
71
- ...props
71
+ ...runIfFn(props)
72
72
  }));
73
- const [state, send] = useMachine(numberInput.machine(context()), { context });
74
- return createMemo(() => numberInput.connect(state, send, normalizeProps));
73
+ const service = useMachine(numberInput.machine, machineProps);
74
+ return createMemo(() => numberInput.connect(service, normalizeProps));
75
75
  };
76
76
 
77
77
  // src/components/number-input/number-input-root.tsx
@@ -3,7 +3,7 @@ import {
3
3
  splitPresenceProps,
4
4
  usePresence,
5
5
  usePresenceContext
6
- } from "./E72NMPSK.jsx";
6
+ } from "./A4744EEE.jsx";
7
7
  import {
8
8
  createSplitProps
9
9
  } from "./6WEDGJKQ.jsx";
@@ -12,13 +12,16 @@ import {
12
12
  } from "./UFYZ7HLU.jsx";
13
13
  import {
14
14
  useEnvironmentContext
15
- } from "./5O4RWSWO.jsx";
15
+ } from "./D2Z5BEON.jsx";
16
16
  import {
17
17
  useLocaleContext
18
- } from "./3QQZKR3F.jsx";
18
+ } from "./RCXMZN3G.jsx";
19
19
  import {
20
20
  createContext
21
- } from "./NMGUCD2L.jsx";
21
+ } from "./TVCIHLER.jsx";
22
+ import {
23
+ runIfFn
24
+ } from "./KGOB2IMX.jsx";
22
25
  import {
23
26
  __export
24
27
  } from "./7IUG3E2V.jsx";
@@ -85,20 +88,18 @@ import { mergeProps as mergeProps5 } from "@zag-js/solid";
85
88
  import { normalizeProps, useMachine } from "@zag-js/solid";
86
89
  import * as tooltip from "@zag-js/tooltip";
87
90
  import { createMemo, createUniqueId } from "solid-js";
88
- var useTooltip = (props = {}) => {
91
+ var useTooltip = (props) => {
92
+ const id = createUniqueId();
89
93
  const locale = useLocaleContext();
90
94
  const environment = useEnvironmentContext();
91
- const id = createUniqueId();
92
- const context = createMemo(() => ({
95
+ const machineProps = createMemo(() => ({
93
96
  id,
94
97
  dir: locale().dir,
95
98
  getRootNode: environment().getRootNode,
96
- open: props.defaultOpen,
97
- "open.controlled": props.open !== void 0,
98
- ...props
99
+ ...runIfFn(props)
99
100
  }));
100
- const [state, send] = useMachine(tooltip.machine(context()), { context });
101
- return createMemo(() => tooltip.connect(state, send, normalizeProps));
101
+ const service = useMachine(tooltip.machine, machineProps);
102
+ return createMemo(() => tooltip.connect(service, normalizeProps));
102
103
  };
103
104
 
104
105
  // src/components/tooltip/tooltip-root.tsx
@@ -132,9 +133,7 @@ var TooltipRoot = (props) => {
132
133
  import { mergeProps as mergeProps6 } from "@zag-js/solid";
133
134
  var TooltipRootProvider = (props) => {
134
135
  const [presenceProps, tooltipProps] = splitPresenceProps(props);
135
- const presence = usePresence(
136
- mergeProps6(presenceProps, () => ({ present: tooltipProps.value().open }))
137
- );
136
+ const presence = usePresence(mergeProps6(presenceProps, () => ({ present: tooltipProps.value().open })));
138
137
  return <TooltipProvider value={tooltipProps.value}>
139
138
  <PresenceProvider value={presence}>{tooltipProps.children}</PresenceProvider>
140
139
  </TooltipProvider>;
@@ -1,23 +1,22 @@
1
- import { useFieldContext } from './X3BMEEJH.js';
1
+ import { useFieldContext } from './KVVYU5Z3.js';
2
2
  import { createSplitProps } from './ZMHI4GDJ.js';
3
3
  import { ark } from './EPLBB4QN.js';
4
- import { useEnvironmentContext } from './QODB3C3M.js';
5
- import { useLocaleContext } from './HPDOBQ3V.js';
6
- import { createContext } from './I5UG2QUO.js';
4
+ import { useEnvironmentContext } from './YMMMHJJS.js';
5
+ import { useLocaleContext } from './QEMQBM6W.js';
6
+ import { createContext } from './TROPIN4C.js';
7
+ import { runIfFn } from './DT73WLR4.js';
7
8
  import { __export } from './ESLJRKWD.js';
8
- import { createComponent, mergeProps as mergeProps$1, spread, template } from 'solid-js/web';
9
+ import { createComponent, mergeProps as mergeProps$1, template, spread } from 'solid-js/web';
9
10
  import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
10
11
  import * as signaturePad from '@zag-js/signature-pad';
11
12
  export { anatomy } from '@zag-js/signature-pad';
12
- import { createUniqueId, createMemo, For, Show } from 'solid-js';
13
+ import { For, Show, createUniqueId, createMemo } from 'solid-js';
13
14
 
14
15
  // src/components/signature-pad/use-signature-pad-context.ts
15
- var [SignaturePadProvider, useSignaturePadContext] = createContext(
16
- {
17
- hookName: "useSignaturePadContext",
18
- providerName: "<SignaturePadProvider />"
19
- }
20
- );
16
+ var [SignaturePadProvider, useSignaturePadContext] = createContext({
17
+ hookName: "useSignaturePadContext",
18
+ providerName: "<SignaturePadProvider />"
19
+ });
21
20
 
22
21
  // src/components/signature-pad/signature-pad-clear-trigger.tsx
23
22
  var SignaturePadClearTrigger = (props) => {
@@ -54,12 +53,12 @@ var SignaturePadLabel = (props) => {
54
53
  const mergedProps = mergeProps(() => signaturePad2().getLabelProps(), props);
55
54
  return createComponent(ark.label, mergedProps);
56
55
  };
57
- var useSignaturePad = (props = {}) => {
56
+ var useSignaturePad = (props) => {
57
+ const id = createUniqueId();
58
58
  const locale = useLocaleContext();
59
59
  const environment = useEnvironmentContext();
60
- const id = createUniqueId();
61
60
  const field = useFieldContext();
62
- const context = createMemo(() => ({
61
+ const machineProps = createMemo(() => ({
63
62
  id,
64
63
  ids: {
65
64
  label: field?.().ids.label,
@@ -70,10 +69,10 @@ var useSignaturePad = (props = {}) => {
70
69
  required: field?.().required,
71
70
  dir: locale().dir,
72
71
  getRootNode: environment().getRootNode,
73
- ...props
72
+ ...runIfFn(props)
74
73
  }));
75
- const [state, send] = useMachine(signaturePad.machine(context()), { context });
76
- return createMemo(() => signaturePad.connect(state, send, normalizeProps));
74
+ const service = useMachine(signaturePad.machine, machineProps);
75
+ return createMemo(() => signaturePad.connect(service, normalizeProps));
77
76
  };
78
77
 
79
78
  // src/components/signature-pad/signature-pad-root.tsx
@@ -101,7 +100,7 @@ var SignaturePadRootProvider = (props) => {
101
100
  });
102
101
  };
103
102
  var _tmpl$ = /* @__PURE__ */ template(`<title>Signature`);
104
- var _tmpl$2 = /* @__PURE__ */ template(`<svg><path></svg>`, false, true);
103
+ var _tmpl$2 = /* @__PURE__ */ template(`<svg><path></svg>`, false, true, false);
105
104
  var SignaturePadSegment = (props) => {
106
105
  const signaturePad2 = useSignaturePadContext();
107
106
  const mergedProps = mergeProps(() => signaturePad2().getSegmentProps(), props);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  splitRenderStrategyProps
3
- } from "./5ONYCKM3.jsx";
3
+ } from "./NEBB7COJ.jsx";
4
4
  import {
5
5
  createSplitProps
6
6
  } from "./6WEDGJKQ.jsx";
@@ -9,13 +9,16 @@ import {
9
9
  } from "./UFYZ7HLU.jsx";
10
10
  import {
11
11
  useEnvironmentContext
12
- } from "./5O4RWSWO.jsx";
12
+ } from "./D2Z5BEON.jsx";
13
13
  import {
14
14
  useLocaleContext
15
- } from "./3QQZKR3F.jsx";
15
+ } from "./RCXMZN3G.jsx";
16
16
  import {
17
17
  createContext
18
- } from "./NMGUCD2L.jsx";
18
+ } from "./TVCIHLER.jsx";
19
+ import {
20
+ runIfFn
21
+ } from "./KGOB2IMX.jsx";
19
22
  import {
20
23
  __export
21
24
  } from "./7IUG3E2V.jsx";
@@ -50,25 +53,23 @@ import * as collapsible from "@zag-js/collapsible";
50
53
  import { normalizeProps, useMachine } from "@zag-js/solid";
51
54
  import { createEffect, createMemo, createSignal, createUniqueId } from "solid-js";
52
55
  var useCollapsible = (props = {}) => {
56
+ const id = createUniqueId();
53
57
  const locale = useLocaleContext();
54
58
  const environment = useEnvironmentContext();
55
- const [renderStrategyProps, collapsibleProps] = splitRenderStrategyProps(props);
56
- const id = createUniqueId();
57
- const context = createMemo(() => ({
59
+ const [renderStrategyProps, collapsibleProps] = splitRenderStrategyProps(runIfFn(props));
60
+ const machineProps = createMemo(() => ({
58
61
  id,
59
62
  dir: locale().dir,
60
63
  getRootNode: environment().getRootNode,
61
- open: props.defaultOpen,
62
- "open.controlled": props.open !== void 0,
63
64
  ...collapsibleProps
64
65
  }));
65
- const [state, send] = useMachine(collapsible.machine(context()), { context });
66
+ const service = useMachine(collapsible.machine, machineProps);
66
67
  const [wasVisible, setWasVisible] = createSignal(false);
67
68
  createEffect(() => {
68
69
  const isPresent = api().visible;
69
70
  if (isPresent) setWasVisible(true);
70
71
  });
71
- const api = createMemo(() => collapsible.connect(state, send, normalizeProps));
72
+ const api = createMemo(() => collapsible.connect(service, normalizeProps));
72
73
  return createMemo(() => ({
73
74
  ...api(),
74
75
  unmounted: !api().visible && !wasVisible() && renderStrategyProps.lazyMount || renderStrategyProps.unmountOnExit && !api().visible && wasVisible()
@@ -98,9 +99,7 @@ var CollapsibleRoot = (props) => {
98
99
  // src/components/collapsible/collapsible-root-provider.tsx
99
100
  import { mergeProps as mergeProps3 } from "@zag-js/solid";
100
101
  var CollapsibleRootProvider = (props) => {
101
- const [{ value: collapsible2 }, localProps] = createSplitProps()(props, [
102
- "value"
103
- ]);
102
+ const [{ value: collapsible2 }, localProps] = createSplitProps()(props, ["value"]);
104
103
  const mergedProps = mergeProps3(() => collapsible2().getRootProps(), localProps);
105
104
  return <CollapsibleProvider value={collapsible2}>
106
105
  <ark.div {...mergedProps} />
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useLocaleContext
3
- } from "./3QQZKR3F.jsx";
3
+ } from "./RCXMZN3G.jsx";
4
4
  import {
5
5
  __export
6
6
  } from "./7IUG3E2V.jsx";
@@ -1,10 +1,11 @@
1
1
  import { createSplitProps } from './ZMHI4GDJ.js';
2
2
  import { ark } from './EPLBB4QN.js';
3
- import { createContext } from './I5UG2QUO.js';
3
+ import { createContext } from './TROPIN4C.js';
4
+ import { runIfFn } from './DT73WLR4.js';
4
5
  import { __export } from './ESLJRKWD.js';
5
6
  import { createComponent } from 'solid-js/web';
6
7
  import { mergeProps } from '@zag-js/solid';
7
- import { Show, createUniqueId, createSignal, createEffect, createMemo } from 'solid-js';
8
+ import { Show, mergeProps as mergeProps$1, createUniqueId, createSignal, createEffect, createMemo } from 'solid-js';
8
9
  import { createAnatomy } from '@zag-js/anatomy';
9
10
 
10
11
  // src/components/fieldset/use-fieldset-context.ts
@@ -38,19 +39,14 @@ var FieldsetLegend = (props) => {
38
39
  const mergedProps = mergeProps(() => fieldset().getLegendProps(), props);
39
40
  return createComponent(ark.legend, mergedProps);
40
41
  };
41
- var fieldsetAnatomy = createAnatomy("fieldset").parts(
42
- "root",
43
- "errorText",
44
- "helperText",
45
- "legend"
46
- );
42
+ var fieldsetAnatomy = createAnatomy("fieldset").parts("root", "errorText", "helperText", "legend");
47
43
  var parts = fieldsetAnatomy.build();
48
44
 
49
45
  // src/components/fieldset/use-fieldset.ts
50
46
  var useFieldset = (props) => {
51
- const { disabled = false, invalid = false } = props;
47
+ const mergedProps = mergeProps$1({ disabled: false, invalid: false }, runIfFn(props));
52
48
  let rootRef;
53
- const id = props.id ?? createUniqueId();
49
+ const id = mergedProps.id ?? createUniqueId();
54
50
  const errorTextId = `fieldset::${id}::error-text`;
55
51
  const helperTextId = `fieldset::${id}::helper-text`;
56
52
  const [hasErrorText, setHasErrorText] = createSignal(false);
@@ -59,19 +55,19 @@ var useFieldset = (props) => {
59
55
  return;
60
56
  });
61
57
  const labelIds = [];
62
- if (hasErrorText() && invalid) labelIds.push(errorTextId);
58
+ if (hasErrorText() && mergedProps.invalid) labelIds.push(errorTextId);
63
59
  if (hasHelperText()) labelIds.push(helperTextId);
64
60
  const getRootProps = () => ({
65
61
  ...parts.root.attrs,
66
- disabled,
67
- "data-disabled": dataAttr(disabled),
68
- "data-invalid": dataAttr(invalid),
62
+ disabled: mergedProps.disabled,
63
+ "data-disabled": dataAttr(mergedProps.disabled),
64
+ "data-invalid": dataAttr(mergedProps.invalid),
69
65
  "aria-describedby": labelIds.join(" ") || void 0
70
66
  });
71
67
  const getLegendProps = () => ({
72
68
  ...parts.legend.attrs,
73
- "data-disabled": dataAttr(disabled),
74
- "data-invalid": dataAttr(invalid)
69
+ "data-disabled": dataAttr(mergedProps.disabled),
70
+ "data-invalid": dataAttr(mergedProps.invalid)
75
71
  });
76
72
  const getHelperTextProps = () => ({
77
73
  id: helperTextId,
@@ -86,8 +82,8 @@ var useFieldset = (props) => {
86
82
  refs: {
87
83
  rootRef
88
84
  },
89
- disabled,
90
- invalid,
85
+ disabled: mergedProps.disabled,
86
+ invalid: mergedProps.invalid,
91
87
  getRootProps,
92
88
  getLegendProps,
93
89
  getHelperTextProps,
@@ -1,6 +1,6 @@
1
- import { useLocaleContext } from './HPDOBQ3V.js';
1
+ import { useLocaleContext } from './QEMQBM6W.js';
2
2
  import { __export } from './ESLJRKWD.js';
3
- import { formatBytes, formatNumber } from '@zag-js/i18n-utils';
3
+ import { formatNumber, formatBytes } from '@zag-js/i18n-utils';
4
4
  import { splitProps, createMemo } from 'solid-js';
5
5
 
6
6
  var FormatByte = (props) => {
@@ -6,13 +6,16 @@ import {
6
6
  } from "./UFYZ7HLU.jsx";
7
7
  import {
8
8
  useEnvironmentContext
9
- } from "./5O4RWSWO.jsx";
9
+ } from "./D2Z5BEON.jsx";
10
10
  import {
11
11
  useLocaleContext
12
- } from "./3QQZKR3F.jsx";
12
+ } from "./RCXMZN3G.jsx";
13
13
  import {
14
14
  createContext
15
- } from "./NMGUCD2L.jsx";
15
+ } from "./TVCIHLER.jsx";
16
+ import {
17
+ runIfFn
18
+ } from "./KGOB2IMX.jsx";
16
19
  import {
17
20
  __export
18
21
  } from "./7IUG3E2V.jsx";
@@ -75,27 +78,29 @@ import { mergeProps as mergeProps6 } from "@zag-js/solid";
75
78
  import * as progress from "@zag-js/progress";
76
79
  import { normalizeProps, useMachine } from "@zag-js/solid";
77
80
  import { createMemo, createUniqueId } from "solid-js";
78
- var useProgress = (props = {}) => {
81
+ var useProgress = (props) => {
82
+ const id = createUniqueId();
79
83
  const locale = useLocaleContext();
80
84
  const environment = useEnvironmentContext();
81
- const id = createUniqueId();
82
- const context = createMemo(() => ({
85
+ const machineProps = createMemo(() => ({
83
86
  id,
84
87
  dir: locale().dir,
88
+ locale: locale().locale,
85
89
  getRootNode: environment().getRootNode,
86
- value: props.defaultValue,
87
- ...props
90
+ ...runIfFn(props)
88
91
  }));
89
- const [state, send] = useMachine(progress.machine(context()), { context });
90
- return createMemo(() => progress.connect(state, send, normalizeProps));
92
+ const service = useMachine(progress.machine, machineProps);
93
+ return createMemo(() => progress.connect(service, normalizeProps));
91
94
  };
92
95
 
93
96
  // src/components/progress/progress-root.tsx
94
97
  var ProgressRoot = (props) => {
95
98
  const [progressProps, localProps] = createSplitProps()(props, [
96
99
  "defaultValue",
100
+ "formatOptions",
97
101
  "id",
98
102
  "ids",
103
+ "locale",
99
104
  "max",
100
105
  "min",
101
106
  "onValueChange",
@@ -3,12 +3,12 @@ import {
3
3
  splitPresenceProps,
4
4
  usePresence,
5
5
  usePresenceContext
6
- } from "./E72NMPSK.jsx";
6
+ } from "./A4744EEE.jsx";
7
7
  import {
8
8
  RenderStrategyProvider,
9
9
  splitRenderStrategyProps,
10
10
  useRenderStrategyContext
11
- } from "./5ONYCKM3.jsx";
11
+ } from "./NEBB7COJ.jsx";
12
12
  import {
13
13
  createSplitProps
14
14
  } from "./6WEDGJKQ.jsx";
@@ -17,13 +17,16 @@ import {
17
17
  } from "./UFYZ7HLU.jsx";
18
18
  import {
19
19
  useEnvironmentContext
20
- } from "./5O4RWSWO.jsx";
20
+ } from "./D2Z5BEON.jsx";
21
21
  import {
22
22
  useLocaleContext
23
- } from "./3QQZKR3F.jsx";
23
+ } from "./RCXMZN3G.jsx";
24
24
  import {
25
25
  createContext
26
- } from "./NMGUCD2L.jsx";
26
+ } from "./TVCIHLER.jsx";
27
+ import {
28
+ runIfFn
29
+ } from "./KGOB2IMX.jsx";
27
30
  import {
28
31
  __export
29
32
  } from "./7IUG3E2V.jsx";
@@ -39,14 +42,10 @@ var [TourProvider, useTourContext] = createContext({
39
42
 
40
43
  // src/components/tour/tour-action-trigger.tsx
41
44
  var TourActionTrigger = (props) => {
42
- const [actionTriggerProps, localProps] = createSplitProps()(props, [
43
- "action"
44
- ]);
45
+ const [actionTriggerProps, localProps] = createSplitProps()(props, ["action"]);
45
46
  const tour2 = useTourContext();
46
47
  const mergedProps = mergeProps(() => tour2().getActionTriggerProps(actionTriggerProps), localProps);
47
- return <ark.button {...mergedProps}>
48
- {mergedProps.children || actionTriggerProps.action.label}
49
- </ark.button>;
48
+ return <ark.button {...mergedProps}>{mergedProps.children || actionTriggerProps.action.label}</ark.button>;
50
49
  };
51
50
 
52
51
  // src/components/tour/tour-actions.tsx
@@ -165,9 +164,7 @@ import { mergeProps as mergeProps11 } from "@zag-js/solid";
165
164
  var TourRoot = (props) => {
166
165
  const [presenceProps, rootProps] = splitPresenceProps(props);
167
166
  const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);
168
- const presence = usePresence(
169
- mergeProps11(presenceProps, () => ({ present: rootProps.tour().open }))
170
- );
167
+ const presence = usePresence(mergeProps11(presenceProps, () => ({ present: rootProps.tour().open })));
171
168
  return <TourProvider value={rootProps.tour}>
172
169
  <RenderStrategyProvider value={renderStrategyProps}>
173
170
  <PresenceProvider value={presence}>{rootProps.children}</PresenceProvider>
@@ -204,20 +201,18 @@ var TourTitle = (props) => {
204
201
  import { normalizeProps, useMachine } from "@zag-js/solid";
205
202
  import * as tour from "@zag-js/tour";
206
203
  import { createMemo, createUniqueId } from "solid-js";
207
- var useTour = (props = {}) => {
204
+ var useTour = (props) => {
208
205
  const id = createUniqueId();
209
206
  const locale = useLocaleContext();
210
207
  const environment = useEnvironmentContext();
211
- const context = createMemo(() => ({
208
+ const machineProps = createMemo(() => ({
212
209
  id,
213
210
  dir: locale().dir,
214
211
  getRootNode: environment().getRootNode,
215
- ...props
212
+ ...runIfFn(props)
216
213
  }));
217
- const [state, send] = useMachine(tour.machine(context()), {
218
- context
219
- });
220
- return createMemo(() => tour.connect(state, send, normalizeProps));
214
+ const service = useMachine(tour.machine, machineProps);
215
+ return createMemo(() => tour.connect(service, normalizeProps));
221
216
  };
222
217
 
223
218
  // src/components/tour/tour.ts
@@ -6,13 +6,16 @@ import {
6
6
  } from "./UFYZ7HLU.jsx";
7
7
  import {
8
8
  useEnvironmentContext
9
- } from "./5O4RWSWO.jsx";
9
+ } from "./D2Z5BEON.jsx";
10
10
  import {
11
11
  useLocaleContext
12
- } from "./3QQZKR3F.jsx";
12
+ } from "./RCXMZN3G.jsx";
13
13
  import {
14
14
  createContext
15
- } from "./NMGUCD2L.jsx";
15
+ } from "./TVCIHLER.jsx";
16
+ import {
17
+ runIfFn
18
+ } from "./KGOB2IMX.jsx";
16
19
  import {
17
20
  __export
18
21
  } from "./7IUG3E2V.jsx";
@@ -71,15 +74,14 @@ var usePagination = (props) => {
71
74
  const locale = useLocaleContext();
72
75
  const environment = useEnvironmentContext();
73
76
  const id = createUniqueId();
74
- const context = createMemo(() => ({
77
+ const machineProps = createMemo(() => ({
75
78
  id,
76
79
  dir: locale().dir,
77
80
  getRootNode: environment().getRootNode,
78
- page: props.defaultPage,
79
- ...props
81
+ ...runIfFn(props)
80
82
  }));
81
- const [state, send] = useMachine(pagination.machine(context()), { context });
82
- return createMemo(() => pagination.connect(state, send, normalizeProps));
83
+ const service = useMachine(pagination.machine, machineProps);
84
+ return createMemo(() => pagination.connect(service, normalizeProps));
83
85
  };
84
86
 
85
87
  // src/components/pagination/pagination-root.tsx
@@ -87,6 +89,7 @@ var PaginationRoot = (props) => {
87
89
  const [usePaginationProps, localProps] = createSplitProps()(props, [
88
90
  "count",
89
91
  "defaultPage",
92
+ "defaultPageSize",
90
93
  "id",
91
94
  "ids",
92
95
  "onPageChange",
@@ -107,9 +110,7 @@ var PaginationRoot = (props) => {
107
110
  // src/components/pagination/pagination-root-provider.tsx
108
111
  import { mergeProps as mergeProps6 } from "@zag-js/solid";
109
112
  var PaginationRootProvider = (props) => {
110
- const [{ value: pagination2 }, localProps] = createSplitProps()(props, [
111
- "value"
112
- ]);
113
+ const [{ value: pagination2 }, localProps] = createSplitProps()(props, ["value"]);
113
114
  const mergedProps = mergeProps6(() => pagination2().getRootProps(), localProps);
114
115
  return <PaginationProvider value={pagination2}>
115
116
  <ark.nav {...mergedProps} />
@@ -1,7 +1,7 @@
1
+ import { createContext } from './TROPIN4C.js';
1
2
  import { runIfFn } from './DT73WLR4.js';
2
- import { createContext } from './I5UG2QUO.js';
3
- import { createComponent, memo, use, template } from 'solid-js/web';
4
- import { getDocument, getWindow } from '@zag-js/dom-query';
3
+ import { createComponent, memo, template, use } from 'solid-js/web';
4
+ import { getWindow, getDocument } from '@zag-js/dom-query';
5
5
  import { createSignal, createMemo, Show } from 'solid-js';
6
6
 
7
7
  // src/providers/environment/use-environment-context.ts