@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
@@ -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";
@@ -35,10 +38,7 @@ var QrCodeDownloadTrigger = (props) => {
35
38
  "quality"
36
39
  ]);
37
40
  const qrCode2 = useQrCodeContext();
38
- const mergedProps = mergeProps(
39
- () => qrCode2().getDownloadTriggerProps(downloadTriggerProps),
40
- localProps
41
- );
41
+ const mergedProps = mergeProps(() => qrCode2().getDownloadTriggerProps(downloadTriggerProps), localProps);
42
42
  return <ark.button {...mergedProps} />;
43
43
  };
44
44
 
@@ -73,21 +73,18 @@ import { mergeProps as mergeProps5 } from "@zag-js/solid";
73
73
  import * as qrCode from "@zag-js/qr-code";
74
74
  import { normalizeProps, useMachine } from "@zag-js/solid";
75
75
  import { createMemo, createUniqueId } from "solid-js";
76
- var useQrCode = (props = {}) => {
76
+ var useQrCode = (props) => {
77
+ const id = createUniqueId();
77
78
  const locale = useLocaleContext();
78
79
  const environment = useEnvironmentContext();
79
- const id = createUniqueId();
80
- const context = createMemo(() => ({
80
+ const machineProps = createMemo(() => ({
81
81
  id,
82
82
  dir: locale().dir,
83
83
  getRootNode: environment().getRootNode,
84
- value: props.defaultValue,
85
- ...props
84
+ ...runIfFn(props)
86
85
  }));
87
- const [state, send] = useMachine(qrCode.machine(context()), {
88
- context
89
- });
90
- return createMemo(() => qrCode.connect(state, send, normalizeProps));
86
+ const service = useMachine(qrCode.machine, machineProps);
87
+ return createMemo(() => qrCode.connect(service, normalizeProps));
91
88
  };
92
89
 
93
90
  // src/components/qr-code/qr-code-root.tsx
@@ -98,6 +95,7 @@ var QrCodeRoot = (props) => {
98
95
  "id",
99
96
  "ids",
100
97
  "onValueChange",
98
+ "pixelSize",
101
99
  "value"
102
100
  ]);
103
101
  const api = useQrCode(useQrCodeProps);
@@ -6,24 +6,25 @@ 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";
19
22
 
20
23
  // src/components/segment-group/use-segment-group-context.ts
21
- var [SegmentGroupProvider, useSegmentGroupContext] = createContext(
22
- {
23
- hookName: "useSegmentGroupContext",
24
- providerName: "<SegmentGroupProvider />"
25
- }
26
- );
24
+ var [SegmentGroupProvider, useSegmentGroupContext] = createContext({
25
+ hookName: "useSegmentGroupContext",
26
+ providerName: "<SegmentGroupProvider />"
27
+ });
27
28
 
28
29
  // src/components/segment-group/segment-group-context.tsx
29
30
  var SegmentGroupContext = (props) => props.children(useSegmentGroupContext());
@@ -39,11 +40,7 @@ var parts = segmentGroupAnatomy.build();
39
40
  // src/components/segment-group/segment-group-indicator.tsx
40
41
  var SegmentGroupIndicator = (props) => {
41
42
  const segmentGroup2 = useSegmentGroupContext();
42
- const mergedProps = mergeProps(
43
- () => segmentGroup2().getIndicatorProps(),
44
- parts.indicator.attrs,
45
- props
46
- );
43
+ const mergedProps = mergeProps(() => segmentGroup2().getIndicatorProps(), parts.indicator.attrs, props);
47
44
  return <ark.div {...mergedProps} />;
48
45
  };
49
46
 
@@ -65,17 +62,9 @@ var [SegmentGroupItemPropsProvider, useSegmentGroupItemPropsContext] = createCon
65
62
 
66
63
  // src/components/segment-group/segment-group-item.tsx
67
64
  var SegmentGroupItem = (props) => {
68
- const [itemProps, localProps] = createSplitProps()(props, [
69
- "value",
70
- "disabled",
71
- "invalid"
72
- ]);
65
+ const [itemProps, localProps] = createSplitProps()(props, ["value", "disabled", "invalid"]);
73
66
  const segmentGroup2 = useSegmentGroupContext();
74
- const mergedProps = mergeProps2(
75
- () => segmentGroup2().getItemProps(itemProps),
76
- parts.item.attrs,
77
- localProps
78
- );
67
+ const mergedProps = mergeProps2(() => segmentGroup2().getItemProps(itemProps), parts.item.attrs, localProps);
79
68
  const itemState = createMemo(() => segmentGroup2().getItemState(itemProps));
80
69
  return <SegmentGroupItemPropsProvider value={itemProps}>
81
70
  <SegmentGroupItemProvider value={itemState}>
@@ -92,11 +81,7 @@ import { mergeProps as mergeProps3 } from "@zag-js/solid";
92
81
  var SegmentGroupItemControl = (props) => {
93
82
  const segmentGroup2 = useSegmentGroupContext();
94
83
  const itemProps = useSegmentGroupItemPropsContext();
95
- const mergedProps = mergeProps3(
96
- () => segmentGroup2().getItemControlProps(itemProps),
97
- parts.itemControl.attrs,
98
- props
99
- );
84
+ const mergedProps = mergeProps3(() => segmentGroup2().getItemControlProps(itemProps), parts.itemControl.attrs, props);
100
85
  return <ark.div {...mergedProps} />;
101
86
  };
102
87
 
@@ -114,11 +99,7 @@ import { mergeProps as mergeProps5 } from "@zag-js/solid";
114
99
  var SegmentGroupItemText = (props) => {
115
100
  const segmentGroup2 = useSegmentGroupContext();
116
101
  const itemProps = useSegmentGroupItemPropsContext();
117
- const mergedProps = mergeProps5(
118
- () => segmentGroup2().getItemTextProps(itemProps),
119
- parts.itemText.attrs,
120
- props
121
- );
102
+ const mergedProps = mergeProps5(() => segmentGroup2().getItemTextProps(itemProps), parts.itemText.attrs, props);
122
103
  return <ark.span {...mergedProps} />;
123
104
  };
124
105
 
@@ -137,19 +118,18 @@ import { mergeProps as mergeProps7 } from "@zag-js/solid";
137
118
  import * as segmentGroup from "@zag-js/radio-group";
138
119
  import { normalizeProps, useMachine } from "@zag-js/solid";
139
120
  import { createMemo as createMemo2, createUniqueId } from "solid-js";
140
- var useSegmentGroup = (props = {}) => {
121
+ var useSegmentGroup = (props) => {
122
+ const id = createUniqueId();
141
123
  const locale = useLocaleContext();
142
124
  const environment = useEnvironmentContext();
143
- const id = createUniqueId();
144
- const context = createMemo2(() => ({
125
+ const machineProps = createMemo2(() => ({
145
126
  id,
146
127
  dir: locale().dir,
147
128
  getRootNode: environment().getRootNode,
148
- value: props.defaultValue,
149
- ...props
129
+ ...runIfFn(props)
150
130
  }));
151
- const [state, send] = useMachine(segmentGroup.machine(context()), { context });
152
- return createMemo2(() => segmentGroup.connect(state, send, normalizeProps));
131
+ const service = useMachine(segmentGroup.machine, machineProps);
132
+ return createMemo2(() => segmentGroup.connect(service, normalizeProps));
153
133
  };
154
134
 
155
135
  // src/components/segment-group/segment-group-root.tsx
@@ -176,9 +156,7 @@ var SegmentGroupRoot = (props) => {
176
156
  // src/components/segment-group/segment-group-root-provider.tsx
177
157
  import { mergeProps as mergeProps8 } from "@zag-js/solid";
178
158
  var SegmentGroupRootProvider = (props) => {
179
- const [{ value: segmentGroup2 }, localProps] = createSplitProps()(props, [
180
- "value"
181
- ]);
159
+ const [{ value: segmentGroup2 }, localProps] = createSplitProps()(props, ["value"]);
182
160
  const mergedProps = mergeProps8(() => segmentGroup2().getRootProps(), parts.root.attrs, localProps);
183
161
  return <SegmentGroupProvider value={segmentGroup2}>
184
162
  <ark.div {...mergedProps} />
@@ -1,8 +1,9 @@
1
1
  import { createSplitProps } from './ZMHI4GDJ.js';
2
2
  import { ark } from './EPLBB4QN.js';
3
- import { useEnvironmentContext } from './QODB3C3M.js';
4
- import { useLocaleContext } from './HPDOBQ3V.js';
5
- import { createContext } from './I5UG2QUO.js';
3
+ import { useEnvironmentContext } from './YMMMHJJS.js';
4
+ import { useLocaleContext } from './QEMQBM6W.js';
5
+ import { createContext } from './TROPIN4C.js';
6
+ import { runIfFn } from './DT73WLR4.js';
6
7
  import { __export } from './ESLJRKWD.js';
7
8
  import { createComponent } from 'solid-js/web';
8
9
  import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
@@ -28,18 +29,18 @@ var AvatarImage = (props) => {
28
29
  const mergedProps = mergeProps(() => context().getImageProps(), props);
29
30
  return createComponent(ark.img, mergedProps);
30
31
  };
31
- var useAvatar = (props = {}) => {
32
+ var useAvatar = (props) => {
32
33
  const locale = useLocaleContext();
33
34
  const environment = useEnvironmentContext();
34
35
  const id = createUniqueId();
35
- const context = createMemo(() => ({
36
+ const machineProps = createMemo(() => ({
36
37
  id,
37
38
  dir: locale().dir,
38
39
  getRootNode: environment().getRootNode,
39
- ...props
40
+ ...runIfFn(props)
40
41
  }));
41
- const [state, send] = useMachine(avatar.machine(context()), { context });
42
- return createMemo(() => avatar.connect(state, send, normalizeProps));
42
+ const service = useMachine(avatar.machine, machineProps);
43
+ return createMemo(() => avatar.connect(service, normalizeProps));
43
44
  };
44
45
 
45
46
  // src/components/avatar/avatar-root.tsx
@@ -1,10 +1,11 @@
1
- import { usePresence, usePresenceContext, splitPresenceProps, PresenceProvider } from './LCESUDZB.js';
2
- import { useRenderStrategyContext, splitRenderStrategyProps, RenderStrategyProvider } from './L7OSYHVR.js';
1
+ import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider } from './OY4ARTMM.js';
2
+ import { splitRenderStrategyProps, RenderStrategyProvider, useRenderStrategyContext } from './QFAL6GWC.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 } from 'solid-js/web';
10
11
  import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
@@ -74,20 +75,18 @@ var DialogPositioner = (props) => {
74
75
  }
75
76
  });
76
77
  };
77
- var useDialog = (props = {}) => {
78
+ var useDialog = (props) => {
79
+ const id = createUniqueId();
78
80
  const locale = useLocaleContext();
79
81
  const environment = useEnvironmentContext();
80
- const id = createUniqueId();
81
- const context = createMemo(() => ({
82
+ const machineProps = createMemo(() => ({
82
83
  id,
83
84
  dir: locale().dir,
84
85
  getRootNode: environment().getRootNode,
85
- open: props.defaultOpen,
86
- "open.controlled": props.open !== void 0,
87
- ...props
86
+ ...runIfFn(props)
88
87
  }));
89
- const [state, send] = useMachine(dialog.machine(context()), { context });
90
- return createMemo(() => dialog.connect(state, send, normalizeProps));
88
+ const service = useMachine(dialog.machine, machineProps);
89
+ return createMemo(() => dialog.connect(service, normalizeProps));
91
90
  };
92
91
 
93
92
  // src/components/dialog/dialog-root.tsx
@@ -1,6 +1,9 @@
1
1
  import {
2
2
  createSplitProps
3
3
  } from "./6WEDGJKQ.jsx";
4
+ import {
5
+ runIfFn
6
+ } from "./KGOB2IMX.jsx";
4
7
 
5
8
  // src/components/highlight/highlight.tsx
6
9
  import { For, Show } from "solid-js";
@@ -9,7 +12,7 @@ import { For, Show } from "solid-js";
9
12
  import { highlightWord } from "@zag-js/highlight-word";
10
13
  import { createMemo } from "solid-js";
11
14
  var useHighlight = (props) => {
12
- return createMemo(() => highlightWord(props));
15
+ return createMemo(() => highlightWord(runIfFn(props)));
13
16
  };
14
17
 
15
18
  // src/components/highlight/highlight.tsx
@@ -1,8 +1,9 @@
1
1
  import { createSplitProps } from './ZMHI4GDJ.js';
2
2
  import { ark } from './EPLBB4QN.js';
3
- import { useEnvironmentContext } from './QODB3C3M.js';
4
- import { useLocaleContext } from './HPDOBQ3V.js';
5
- import { createContext } from './I5UG2QUO.js';
3
+ import { useEnvironmentContext } from './YMMMHJJS.js';
4
+ import { useLocaleContext } from './QEMQBM6W.js';
5
+ import { createContext } from './TROPIN4C.js';
6
+ import { runIfFn } from './DT73WLR4.js';
6
7
  import { __export } from './ESLJRKWD.js';
7
8
  import { createComponent } from 'solid-js/web';
8
9
  import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
@@ -39,26 +40,23 @@ var QrCodePattern = (props) => {
39
40
  const mergedProps = mergeProps(() => qrCode2().getPatternProps(), props);
40
41
  return createComponent(ark.path, mergedProps);
41
42
  };
42
- var useQrCode = (props = {}) => {
43
+ var useQrCode = (props) => {
44
+ const id = createUniqueId();
43
45
  const locale = useLocaleContext();
44
46
  const environment = useEnvironmentContext();
45
- const id = createUniqueId();
46
- const context = createMemo(() => ({
47
+ const machineProps = createMemo(() => ({
47
48
  id,
48
49
  dir: locale().dir,
49
50
  getRootNode: environment().getRootNode,
50
- value: props.defaultValue,
51
- ...props
51
+ ...runIfFn(props)
52
52
  }));
53
- const [state, send] = useMachine(qrCode.machine(context()), {
54
- context
55
- });
56
- return createMemo(() => qrCode.connect(state, send, normalizeProps));
53
+ const service = useMachine(qrCode.machine, machineProps);
54
+ return createMemo(() => qrCode.connect(service, normalizeProps));
57
55
  };
58
56
 
59
57
  // src/components/qr-code/qr-code-root.tsx
60
58
  var QrCodeRoot = (props) => {
61
- const [useQrCodeProps, restProps] = createSplitProps()(props, ["defaultValue", "encoding", "id", "ids", "onValueChange", "value"]);
59
+ const [useQrCodeProps, restProps] = createSplitProps()(props, ["defaultValue", "encoding", "id", "ids", "onValueChange", "pixelSize", "value"]);
62
60
  const api = useQrCode(useQrCodeProps);
63
61
  const mergedProps = mergeProps(() => api().getRootProps(), restProps);
64
62
  return createComponent(QrCodeProvider, {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useFieldContext
3
- } from "./P7I44WC4.jsx";
3
+ } from "./UCYPIMZC.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";
@@ -70,12 +73,12 @@ import { mergeProps as mergeProps5 } from "@zag-js/solid";
70
73
  import * as pinInput from "@zag-js/pin-input";
71
74
  import { normalizeProps, useMachine } from "@zag-js/solid";
72
75
  import { createMemo, createUniqueId } from "solid-js";
73
- var usePinInput = (props = {}) => {
76
+ var usePinInput = (props) => {
77
+ const id = createUniqueId();
74
78
  const locale = useLocaleContext();
75
79
  const environment = useEnvironmentContext();
76
- const id = createUniqueId();
77
80
  const field = useFieldContext();
78
- const context = createMemo(() => ({
81
+ const machineProps = createMemo(() => ({
79
82
  id,
80
83
  ids: {
81
84
  label: field?.().ids.label,
@@ -87,11 +90,10 @@ var usePinInput = (props = {}) => {
87
90
  invalid: field?.().invalid,
88
91
  dir: locale().dir,
89
92
  getRootNode: environment().getRootNode,
90
- value: props.defaultValue,
91
- ...props
93
+ ...runIfFn(props)
92
94
  }));
93
- const [state, send] = useMachine(pinInput.machine(context()), { context });
94
- return createMemo(() => pinInput.connect(state, send, normalizeProps));
95
+ const service = useMachine(pinInput.machine, machineProps);
96
+ return createMemo(() => pinInput.connect(service, normalizeProps));
95
97
  };
96
98
 
97
99
  // src/components/pin-input/pin-input-root.tsx
@@ -99,6 +101,7 @@ var PinInputRoot = (props) => {
99
101
  const [usePinInputProps, localProps] = createSplitProps()(props, [
100
102
  "autoFocus",
101
103
  "blurOnComplete",
104
+ "count",
102
105
  "defaultValue",
103
106
  "disabled",
104
107
  "form",
@@ -6,7 +6,10 @@ import {
6
6
  } from "./UFYZ7HLU.jsx";
7
7
  import {
8
8
  createContext
9
- } from "./NMGUCD2L.jsx";
9
+ } from "./TVCIHLER.jsx";
10
+ import {
11
+ runIfFn
12
+ } from "./KGOB2IMX.jsx";
10
13
  import {
11
14
  __export
12
15
  } from "./7IUG3E2V.jsx";
@@ -49,27 +52,22 @@ var FieldsetLegend = (props) => {
49
52
  };
50
53
 
51
54
  // src/components/fieldset/fieldset-root.tsx
52
- import { mergeProps as mergeProps4 } from "@zag-js/solid";
55
+ import { mergeProps as mergeProps5 } from "@zag-js/solid";
53
56
 
54
57
  // src/components/fieldset/use-fieldset.ts
55
58
  import { getWindow } from "@zag-js/dom-query";
56
- import { createEffect, createMemo, createSignal, createUniqueId, onCleanup } from "solid-js";
59
+ import { createEffect, createMemo, createSignal, createUniqueId, mergeProps as mergeProps4, onCleanup } from "solid-js";
57
60
 
58
61
  // src/components/fieldset/fieldset.anatomy.ts
59
62
  import { createAnatomy } from "@zag-js/anatomy";
60
- var fieldsetAnatomy = createAnatomy("fieldset").parts(
61
- "root",
62
- "errorText",
63
- "helperText",
64
- "legend"
65
- );
63
+ var fieldsetAnatomy = createAnatomy("fieldset").parts("root", "errorText", "helperText", "legend");
66
64
  var parts = fieldsetAnatomy.build();
67
65
 
68
66
  // src/components/fieldset/use-fieldset.ts
69
67
  var useFieldset = (props) => {
70
- const { disabled = false, invalid = false } = props;
68
+ const mergedProps = mergeProps4({ disabled: false, invalid: false }, runIfFn(props));
71
69
  let rootRef;
72
- const id = props.id ?? createUniqueId();
70
+ const id = mergedProps.id ?? createUniqueId();
73
71
  const errorTextId = `fieldset::${id}::error-text`;
74
72
  const helperTextId = `fieldset::${id}::helper-text`;
75
73
  const [hasErrorText, setHasErrorText] = createSignal(false);
@@ -89,19 +87,19 @@ var useFieldset = (props) => {
89
87
  onCleanup(() => observer.disconnect());
90
88
  });
91
89
  const labelIds = [];
92
- if (hasErrorText() && invalid) labelIds.push(errorTextId);
90
+ if (hasErrorText() && mergedProps.invalid) labelIds.push(errorTextId);
93
91
  if (hasHelperText()) labelIds.push(helperTextId);
94
92
  const getRootProps = () => ({
95
93
  ...parts.root.attrs,
96
- disabled,
97
- "data-disabled": dataAttr(disabled),
98
- "data-invalid": dataAttr(invalid),
94
+ disabled: mergedProps.disabled,
95
+ "data-disabled": dataAttr(mergedProps.disabled),
96
+ "data-invalid": dataAttr(mergedProps.invalid),
99
97
  "aria-describedby": labelIds.join(" ") || void 0
100
98
  });
101
99
  const getLegendProps = () => ({
102
100
  ...parts.legend.attrs,
103
- "data-disabled": dataAttr(disabled),
104
- "data-invalid": dataAttr(invalid)
101
+ "data-disabled": dataAttr(mergedProps.disabled),
102
+ "data-invalid": dataAttr(mergedProps.invalid)
105
103
  });
106
104
  const getHelperTextProps = () => ({
107
105
  id: helperTextId,
@@ -116,8 +114,8 @@ var useFieldset = (props) => {
116
114
  refs: {
117
115
  rootRef
118
116
  },
119
- disabled,
120
- invalid,
117
+ disabled: mergedProps.disabled,
118
+ invalid: mergedProps.invalid,
121
119
  getRootProps,
122
120
  getLegendProps,
123
121
  getHelperTextProps,
@@ -128,13 +126,9 @@ var dataAttr = (condition) => condition ? "" : void 0;
128
126
 
129
127
  // src/components/fieldset/fieldset-root.tsx
130
128
  var FieldsetRoot = (props) => {
131
- const [useFieldsetProps, localProps] = createSplitProps()(props, [
132
- "id",
133
- "disabled",
134
- "invalid"
135
- ]);
129
+ const [useFieldsetProps, localProps] = createSplitProps()(props, ["id", "disabled", "invalid"]);
136
130
  const fieldset = useFieldset(useFieldsetProps);
137
- const mergedProps = mergeProps4(() => fieldset().getRootProps(), localProps);
131
+ const mergedProps = mergeProps5(() => fieldset().getRootProps(), localProps);
138
132
  return <FieldsetProvider value={fieldset}>
139
133
  <ark.fieldset {...mergedProps} />
140
134
  </FieldsetProvider>;
@@ -142,10 +136,10 @@ var FieldsetRoot = (props) => {
142
136
  FieldsetRoot.displayName = "FieldsetRoot";
143
137
 
144
138
  // src/components/fieldset/fieldset-root-provider.tsx
145
- import { mergeProps as mergeProps5 } from "@zag-js/solid";
139
+ import { mergeProps as mergeProps6 } from "@zag-js/solid";
146
140
  var FieldsetRootProvider = (props) => {
147
141
  const [{ value: fieldset }, localProps] = createSplitProps()(props, ["value"]);
148
- const mergedProps = mergeProps5(() => fieldset().getRootProps(), localProps);
142
+ const mergedProps = mergeProps6(() => fieldset().getRootProps(), localProps);
149
143
  return <FieldsetProvider value={fieldset}>
150
144
  <ark.fieldset {...mergedProps} />
151
145
  </FieldsetProvider>;
@@ -4,20 +4,15 @@ export { FocusChangeDetails as AccordionFocusChangeDetails, ValueChangeDetails a
4
4
  import * as solid_js from 'solid-js';
5
5
  import { Accessor, JSX } from 'solid-js';
6
6
  import { PropTypes } from '@zag-js/solid';
7
- import { O as Optional } from '../../types-B277wCdv.js';
8
- import { PolymorphicProps, HTMLProps } from '../factory.js';
7
+ import { O as Optional, M as MaybeAccessor } from '../../types-CxryXVkR.js';
8
+ import { HTMLProps, PolymorphicProps } from '../factory.js';
9
9
  import { R as RenderStrategyProps } from '../../render-strategy-B5MqQP3X.js';
10
10
 
11
- interface UseAccordionProps extends Optional<Omit<accordion$1.Context, 'dir' | 'getRootNode'>, 'id'> {
12
- /**
13
- * The initial value of the accordion when it is first rendered.
14
- * Use when you do not need to control the state of the color picker.
15
- */
16
- defaultValue?: accordion$1.Context['value'];
11
+ interface UseAccordionProps extends Optional<Omit<accordion$1.Props, 'dir' | 'getRootNode'>, 'id'> {
17
12
  }
18
13
  interface UseAccordionReturn extends Accessor<accordion$1.Api<PropTypes>> {
19
14
  }
20
- declare const useAccordion: (props?: UseAccordionProps) => UseAccordionReturn;
15
+ declare const useAccordion: (props?: MaybeAccessor<UseAccordionProps>) => UseAccordionReturn;
21
16
 
22
17
  interface UseAccordionContext extends UseAccordionReturn {
23
18
  }
@@ -1 +1 @@
1
- export { accordion_exports as Accordion, AccordionContext, AccordionItem, AccordionItemContent, AccordionItemContext, AccordionItemIndicator, AccordionItemTrigger, AccordionRoot, AccordionRootProvider, anatomy as accordionAnatomy, useAccordion, useAccordionContext, useAccordionItemContext } from '../../chunk/34OZO53S.js';
1
+ export { accordion_exports as Accordion, AccordionContext, AccordionItem, AccordionItemContent, AccordionItemContext, AccordionItemIndicator, AccordionItemTrigger, AccordionRoot, AccordionRootProvider, anatomy as accordionAnatomy, useAccordion, useAccordionContext, useAccordionItemContext } from '../../chunk/QTSWXPKO.js';
@@ -12,16 +12,16 @@ import {
12
12
  useAccordion,
13
13
  useAccordionContext,
14
14
  useAccordionItemContext
15
- } from "../../chunk/SJSLQDBZ.jsx";
16
- import "../../chunk/B7LE23PE.jsx";
17
- import "../../chunk/5ONYCKM3.jsx";
15
+ } from "../../chunk/CSDXHOTM.jsx";
16
+ import "../../chunk/WNIFZKTJ.jsx";
17
+ import "../../chunk/NEBB7COJ.jsx";
18
18
  import "../../chunk/6WEDGJKQ.jsx";
19
- import "../../chunk/ODQYYKL5.jsx";
20
19
  import "../../chunk/UFYZ7HLU.jsx";
21
- import "../../chunk/5O4RWSWO.jsx";
20
+ import "../../chunk/ODQYYKL5.jsx";
21
+ import "../../chunk/D2Z5BEON.jsx";
22
+ import "../../chunk/RCXMZN3G.jsx";
23
+ import "../../chunk/TVCIHLER.jsx";
22
24
  import "../../chunk/KGOB2IMX.jsx";
23
- import "../../chunk/3QQZKR3F.jsx";
24
- import "../../chunk/NMGUCD2L.jsx";
25
25
  import "../../chunk/7IUG3E2V.jsx";
26
26
  export {
27
27
  accordion_exports as Accordion,
@@ -4,14 +4,14 @@ export { StatusChangeDetails as AvatarStatusChangeDetails, anatomy as avatarAnat
4
4
  import * as solid_js from 'solid-js';
5
5
  import { Accessor, JSX } from 'solid-js';
6
6
  import { PropTypes } from '@zag-js/solid';
7
- import { O as Optional } from '../../types-B277wCdv.js';
8
- import { PolymorphicProps, HTMLProps } from '../factory.js';
7
+ import { O as Optional, M as MaybeAccessor } from '../../types-CxryXVkR.js';
8
+ import { HTMLProps, PolymorphicProps } from '../factory.js';
9
9
 
10
- interface UseAvatarProps extends Optional<Omit<avatar$1.Context, 'dir' | 'getRootNode'>, 'id'> {
10
+ interface UseAvatarProps extends Optional<Omit<avatar$1.Props, 'dir' | 'getRootNode'>, 'id'> {
11
11
  }
12
12
  interface UseAvatarReturn extends Accessor<avatar$1.Api<PropTypes>> {
13
13
  }
14
- declare const useAvatar: (props?: UseAvatarProps) => UseAvatarReturn;
14
+ declare const useAvatar: (props?: MaybeAccessor<UseAvatarProps>) => UseAvatarReturn;
15
15
 
16
16
  interface UseAvatarContext extends UseAvatarReturn {
17
17
  }
@@ -1 +1 @@
1
- export { avatar_exports as Avatar, AvatarContext, AvatarFallback, AvatarImage, AvatarRoot, AvatarRootProvider, anatomy as avatarAnatomy, useAvatar, useAvatarContext } from '../../chunk/W43X4SNE.js';
1
+ export { avatar_exports as Avatar, AvatarContext, AvatarFallback, AvatarImage, AvatarRoot, AvatarRootProvider, anatomy as avatarAnatomy, useAvatar, useAvatarContext } from '../../chunk/Z2TDX72A.js';
@@ -8,14 +8,14 @@ import {
8
8
  avatar_exports,
9
9
  useAvatar,
10
10
  useAvatarContext
11
- } from "../../chunk/NK4T7LIZ.jsx";
11
+ } from "../../chunk/MA35L6TV.jsx";
12
12
  import "../../chunk/6WEDGJKQ.jsx";
13
- import "../../chunk/ODQYYKL5.jsx";
14
13
  import "../../chunk/UFYZ7HLU.jsx";
15
- import "../../chunk/5O4RWSWO.jsx";
14
+ import "../../chunk/ODQYYKL5.jsx";
15
+ import "../../chunk/D2Z5BEON.jsx";
16
+ import "../../chunk/RCXMZN3G.jsx";
17
+ import "../../chunk/TVCIHLER.jsx";
16
18
  import "../../chunk/KGOB2IMX.jsx";
17
- import "../../chunk/3QQZKR3F.jsx";
18
- import "../../chunk/NMGUCD2L.jsx";
19
19
  import "../../chunk/7IUG3E2V.jsx";
20
20
  export {
21
21
  avatar_exports as Avatar,
@@ -3,9 +3,9 @@ import { IndicatorProps, ItemProps, AutoplayStatusDetails, DragStatusDetails, Pa
3
3
  export { AutoplayStatusDetails as CarouselAutoplayStatusDetails, DragStatusDetails as CarouselDragStatusDetails, PageChangeDetails as CarouselPageChangeDetails, anatomy as carouselAnatomy } from '@zag-js/carousel';
4
4
  import * as solid_js from 'solid-js';
5
5
  import { Accessor, JSX } from 'solid-js';
6
- import { PolymorphicProps, HTMLProps } from '../factory.js';
6
+ import { HTMLProps, PolymorphicProps } from '../factory.js';
7
7
  import { PropTypes } from '@zag-js/solid';
8
- import { O as Optional } from '../../types-B277wCdv.js';
8
+ import { O as Optional, M as MaybeAccessor } from '../../types-CxryXVkR.js';
9
9
 
10
10
  interface CarouselAutoplayTriggerBaseProps extends PolymorphicProps<'button'> {
11
11
  }
@@ -13,16 +13,11 @@ interface CarouselAutoplayTriggerProps extends HTMLProps<'button'>, CarouselAuto
13
13
  }
14
14
  declare const CarouselAutoplayTrigger: (props: CarouselAutoplayTriggerProps) => solid_js.JSX.Element;
15
15
 
16
- interface UseCarouselProps extends Optional<Omit<carousel$1.Context, 'dir' | 'getRootNode'>, 'id'> {
17
- /**
18
- * The initial page of the carousel when it is first rendered.
19
- * Use this when you do not need to control the state of the carousel.
20
- */
21
- defaultPage?: carousel$1.Context['page'];
16
+ interface UseCarouselProps extends Optional<Omit<carousel$1.Props, 'dir' | 'getRootNode'>, 'id'> {
22
17
  }
23
18
  interface UseCarouselReturn extends Accessor<carousel$1.Api<PropTypes>> {
24
19
  }
25
- declare const useCarousel: (props?: UseCarouselProps) => UseCarouselReturn;
20
+ declare const useCarousel: (props: MaybeAccessor<UseCarouselProps>) => UseCarouselReturn;
26
21
 
27
22
  interface UseCarouselContext extends UseCarouselReturn {
28
23
  }