@ark-ui/solid 5.0.0 → 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 (237) hide show
  1. package/dist/chunk/{44YJVOL2.js → 26K66CRD.js} +5 -4
  2. package/dist/chunk/{I4VF53LH.jsx → 2LZKFXR5.jsx} +6 -3
  3. package/dist/chunk/{EH5LPBSV.jsx → 3FYZXSQZ.jsx} +7 -4
  4. package/dist/chunk/{7AJYNPOZ.jsx → 3VO34CGN.jsx} +7 -4
  5. package/dist/chunk/{OIGKROX4.js → 46YZVE6D.js} +4 -3
  6. package/dist/chunk/{GUQTNAZU.js → 4QFED3VE.js} +5 -4
  7. package/dist/chunk/{SAI3RCJY.js → 4UD3WT4B.js} +4 -3
  8. package/dist/chunk/{PES3MXH3.jsx → 5T73FAJY.jsx} +6 -3
  9. package/dist/chunk/{QZQUUXCF.jsx → 65SQKHCI.jsx} +7 -4
  10. package/dist/chunk/{RG3IJESS.jsx → 72UBZBQP.jsx} +8 -5
  11. package/dist/chunk/{EIGYBOW2.jsx → 7IHVZWMT.jsx} +7 -4
  12. package/dist/chunk/{X34KVQNW.js → 7KGMTGCS.js} +2 -1
  13. package/dist/chunk/{WT3OTYHP.js → 7RR233CD.js} +5 -3
  14. package/dist/chunk/{FX6TOMB3.js → 7S7524Q3.js} +5 -4
  15. package/dist/chunk/{2FYSIKNK.jsx → A4744EEE.jsx} +4 -1
  16. package/dist/chunk/{TEZHN26Z.jsx → AD2EIGNX.jsx} +6 -3
  17. package/dist/chunk/{PL4PGQFF.js → B246J3FR.js} +3 -2
  18. package/dist/chunk/{FHWNUAQM.jsx → B2KZ5VSW.jsx} +7 -4
  19. package/dist/chunk/{M63JXHU4.js → C4PG7WMU.js} +3 -2
  20. package/dist/chunk/{A6LAAZDX.js → C745EVQO.js} +1 -1
  21. package/dist/chunk/{XNZ7GOP4.jsx → CA4LWAR2.jsx} +7 -4
  22. package/dist/chunk/{PVOFTEOB.jsx → CABZW4BQ.jsx} +7 -4
  23. package/dist/chunk/{DS2MX7YY.jsx → CGBS64C2.jsx} +7 -4
  24. package/dist/chunk/{676ULDTZ.jsx → CHLRHJV2.jsx} +5 -2
  25. package/dist/chunk/{YE6V66JY.jsx → CSDXHOTM.jsx} +7 -4
  26. package/dist/chunk/{BPYAMTER.jsx → D2Z5BEON.jsx} +3 -5
  27. package/dist/chunk/{OAH52ZNM.jsx → D6BC5RCX.jsx} +7 -4
  28. package/dist/chunk/DT73WLR4.js +5 -0
  29. package/dist/chunk/{C4WAO4VB.js → E4A5DGUC.js} +5 -4
  30. package/dist/chunk/{OA5UZFKE.js → E5BXBABH.js} +1 -1
  31. package/dist/chunk/{6AKFQH4M.jsx → EEG3DZXG.jsx} +6 -3
  32. package/dist/chunk/{HQEG6EKY.js → EI7I4DR6.js} +5 -4
  33. package/dist/chunk/{UIAQFG6P.js → EWPKE75H.js} +4 -3
  34. package/dist/chunk/{DBAO7VQW.js → F5GOQFKX.js} +5 -4
  35. package/dist/chunk/{6NMPU3T3.js → F7JP3DGZ.js} +5 -4
  36. package/dist/chunk/{POFK2TVP.jsx → FUS6GOJL.jsx} +7 -4
  37. package/dist/chunk/{2TEQVFZN.jsx → GCDTOEZN.jsx} +7 -4
  38. package/dist/chunk/{JOWPVE6E.js → GJSXT6PD.js} +5 -4
  39. package/dist/chunk/{AIQ2GVFX.js → GMNTJ5KE.js} +4 -3
  40. package/dist/chunk/{LFWIA7VB.js → I2RQ2435.js} +6 -5
  41. package/dist/chunk/{BTPWLTJU.jsx → IKA3JJFV.jsx} +6 -3
  42. package/dist/chunk/{LKOJO4VB.jsx → IYMTFLF3.jsx} +7 -4
  43. package/dist/chunk/{7IAJIOJR.jsx → JRMTU7C7.jsx} +1 -1
  44. package/dist/chunk/{4E5OPUFZ.js → JUYBJNX6.js} +5 -4
  45. package/dist/chunk/{6VITT55B.js → JWXGONCE.js} +4 -3
  46. package/dist/chunk/{VLUE7XIS.jsx → KBHIJYMD.jsx} +1 -1
  47. package/dist/chunk/{R6Q7TUSQ.js → KFJJXGK6.js} +5 -4
  48. package/dist/chunk/KGOB2IMX.jsx +7 -0
  49. package/dist/chunk/{KMFRZGLF.js → KVVYU5Z3.js} +1 -1
  50. package/dist/chunk/{OEZAIQU2.jsx → KZCXBFHA.jsx} +7 -4
  51. package/dist/chunk/{TMTD3AUG.js → LK5627GR.js} +5 -4
  52. package/dist/chunk/{4GOBFWQB.js → LTZUX6NG.js} +4 -3
  53. package/dist/chunk/{H7SWP54F.jsx → MA35L6TV.jsx} +6 -3
  54. package/dist/chunk/{SBKJA5N2.jsx → MDJAL2LV.jsx} +6 -3
  55. package/dist/chunk/{DH5DKFFF.jsx → MERJALY6.jsx} +7 -4
  56. package/dist/chunk/{3CUJRNYI.js → MSLAT5GQ.js} +4 -3
  57. package/dist/chunk/{WZ7FNJXM.jsx → NEYCBIOW.jsx} +7 -4
  58. package/dist/chunk/{PJNGX4UT.js → NF3HZO6T.js} +5 -4
  59. package/dist/chunk/{M2C67TPA.js → NZEL4233.js} +4 -3
  60. package/dist/chunk/{WRLQ7Y6E.js → OY4ARTMM.js} +2 -1
  61. package/dist/chunk/{NNZQ2FQW.js → QBFJVUX3.js} +3 -2
  62. package/dist/chunk/{DVI7TRLG.js → QTSWXPKO.js} +5 -4
  63. package/dist/chunk/{ANDTZLCB.js → R5NPBVOA.js} +5 -4
  64. package/dist/chunk/{DEA5DIWS.js → ROXCI3ZP.js} +4 -3
  65. package/dist/chunk/{KQ4BIFPS.jsx → RY6GW37O.jsx} +6 -3
  66. package/dist/chunk/{55NHLACH.js → TKGOCHK5.js} +4 -3
  67. package/dist/chunk/{EUXWRO3A.js → TRUQMF25.js} +5 -4
  68. package/dist/chunk/{NCURFCYQ.jsx → TZDLUIKR.jsx} +6 -3
  69. package/dist/chunk/{O5AHG7DQ.jsx → U3J33PVO.jsx} +7 -4
  70. package/dist/chunk/{XHA6B6L2.jsx → UCYPIMZC.jsx} +1 -1
  71. package/dist/chunk/{V2YBSJKS.js → UODFV2GS.js} +5 -4
  72. package/dist/chunk/{4D76BVTD.jsx → V564AMKR.jsx} +7 -4
  73. package/dist/chunk/{QKFZ3XTM.js → VLQWCBZM.js} +5 -4
  74. package/dist/chunk/{SRPSYZUL.js → VNK2NPTS.js} +5 -4
  75. package/dist/chunk/{SL2ZPLSH.jsx → WDXH3NHK.jsx} +7 -4
  76. package/dist/chunk/{E2TLJMGI.js → WGFUGTWA.js} +5 -4
  77. package/dist/chunk/{H5QZC4VW.jsx → WNIFZKTJ.jsx} +5 -2
  78. package/dist/chunk/{MZD7ZKWI.js → XN3MSM3M.js} +12 -11
  79. package/dist/chunk/{SWZSXMPJ.jsx → XZZ6TULR.jsx} +6 -3
  80. package/dist/chunk/{ZOMTU4P2.jsx → Y7EY3OTU.jsx} +7 -4
  81. package/dist/chunk/{3VB4UGEY.jsx → YIVTZ7BP.jsx} +5 -2
  82. package/dist/chunk/{6MQ6S5JP.js → YMMMHJJS.js} +2 -5
  83. package/dist/chunk/{ENXUS2WG.jsx → YPH7FBUN.jsx} +6 -3
  84. package/dist/chunk/{WPEIDU6T.jsx → Z254KIAA.jsx} +6 -3
  85. package/dist/chunk/{YS6KIHEB.js → Z2TDX72A.js} +4 -3
  86. package/dist/chunk/{O62NKGT4.js → ZGXZNLX2.js} +5 -4
  87. package/dist/chunk/{R6RE56DG.jsx → ZJM2GZS7.jsx} +4 -1
  88. package/dist/chunk/{A4HLKXDW.js → ZOGAU3AQ.js} +4 -3
  89. package/dist/chunk/{USV2CYTP.jsx → ZPSBF7S2.jsx} +7 -4
  90. package/dist/chunk/{SBLZHOW2.jsx → ZYF7GVNI.jsx} +18 -15
  91. package/dist/components/accordion/index.d.ts +2 -2
  92. package/dist/components/accordion/index.js +1 -1
  93. package/dist/components/accordion/index.jsx +4 -3
  94. package/dist/components/avatar/index.d.ts +2 -2
  95. package/dist/components/avatar/index.js +1 -1
  96. package/dist/components/avatar/index.jsx +3 -2
  97. package/dist/components/carousel/index.d.ts +2 -2
  98. package/dist/components/carousel/index.js +1 -1
  99. package/dist/components/carousel/index.jsx +3 -2
  100. package/dist/components/checkbox/index.d.ts +2 -2
  101. package/dist/components/checkbox/index.js +1 -1
  102. package/dist/components/checkbox/index.jsx +5 -4
  103. package/dist/components/clipboard/index.d.ts +2 -2
  104. package/dist/components/clipboard/index.js +1 -1
  105. package/dist/components/clipboard/index.jsx +3 -2
  106. package/dist/components/collapsible/index.d.ts +2 -2
  107. package/dist/components/collapsible/index.js +1 -1
  108. package/dist/components/collapsible/index.jsx +3 -2
  109. package/dist/components/color-picker/index.d.ts +3 -3
  110. package/dist/components/color-picker/index.js +1 -1
  111. package/dist/components/color-picker/index.jsx +6 -5
  112. package/dist/components/combobox/index.d.ts +3 -3
  113. package/dist/components/combobox/index.js +1 -1
  114. package/dist/components/combobox/index.jsx +6 -5
  115. package/dist/components/date-picker/index.d.ts +3 -3
  116. package/dist/components/date-picker/index.js +1 -1
  117. package/dist/components/date-picker/index.jsx +4 -3
  118. package/dist/components/dialog/index.d.ts +3 -3
  119. package/dist/components/dialog/index.js +1 -1
  120. package/dist/components/dialog/index.jsx +4 -3
  121. package/dist/components/editable/index.d.ts +2 -2
  122. package/dist/components/editable/index.js +1 -1
  123. package/dist/components/editable/index.jsx +5 -4
  124. package/dist/components/factory.d.ts +1 -1
  125. package/dist/components/field/index.d.ts +2 -2
  126. package/dist/components/field/index.js +1 -1
  127. package/dist/components/field/index.jsx +3 -2
  128. package/dist/components/fieldset/index.d.ts +2 -2
  129. package/dist/components/fieldset/index.js +1 -1
  130. package/dist/components/fieldset/index.jsx +2 -1
  131. package/dist/components/file-upload/index.d.ts +2 -2
  132. package/dist/components/file-upload/index.js +1 -1
  133. package/dist/components/file-upload/index.jsx +5 -4
  134. package/dist/components/focus-trap/index.d.ts +1 -1
  135. package/dist/components/format/index.jsx +2 -1
  136. package/dist/components/frame/index.d.ts +1 -1
  137. package/dist/components/frame/index.js +1 -1
  138. package/dist/components/frame/index.jsx +3 -2
  139. package/dist/components/highlight/index.d.ts +2 -2
  140. package/dist/components/highlight/index.js +1 -1
  141. package/dist/components/highlight/index.jsx +2 -1
  142. package/dist/components/hover-card/index.d.ts +3 -3
  143. package/dist/components/hover-card/index.js +1 -1
  144. package/dist/components/hover-card/index.jsx +4 -3
  145. package/dist/components/index.d.ts +2 -2
  146. package/dist/components/index.js +43 -43
  147. package/dist/components/index.jsx +123 -122
  148. package/dist/components/menu/index.d.ts +3 -3
  149. package/dist/components/menu/index.js +1 -1
  150. package/dist/components/menu/index.jsx +4 -3
  151. package/dist/components/number-input/index.d.ts +2 -2
  152. package/dist/components/number-input/index.js +1 -1
  153. package/dist/components/number-input/index.jsx +5 -4
  154. package/dist/components/pagination/index.d.ts +2 -2
  155. package/dist/components/pagination/index.js +1 -1
  156. package/dist/components/pagination/index.jsx +3 -2
  157. package/dist/components/pin-input/index.d.ts +2 -2
  158. package/dist/components/pin-input/index.js +1 -1
  159. package/dist/components/pin-input/index.jsx +5 -4
  160. package/dist/components/popover/index.d.ts +3 -3
  161. package/dist/components/popover/index.js +1 -1
  162. package/dist/components/popover/index.jsx +4 -3
  163. package/dist/components/presence/index.d.ts +3 -3
  164. package/dist/components/presence/index.js +1 -1
  165. package/dist/components/presence/index.jsx +2 -1
  166. package/dist/components/progress/index.d.ts +2 -2
  167. package/dist/components/progress/index.js +1 -1
  168. package/dist/components/progress/index.jsx +3 -2
  169. package/dist/components/qr-code/index.d.ts +2 -2
  170. package/dist/components/qr-code/index.js +1 -1
  171. package/dist/components/qr-code/index.jsx +3 -2
  172. package/dist/components/radio-group/index.d.ts +2 -2
  173. package/dist/components/radio-group/index.js +1 -1
  174. package/dist/components/radio-group/index.jsx +3 -2
  175. package/dist/components/rating-group/index.d.ts +2 -2
  176. package/dist/components/rating-group/index.js +1 -1
  177. package/dist/components/rating-group/index.jsx +5 -4
  178. package/dist/components/segment-group/index.d.ts +2 -2
  179. package/dist/components/segment-group/index.js +1 -1
  180. package/dist/components/segment-group/index.jsx +3 -2
  181. package/dist/components/select/index.d.ts +3 -3
  182. package/dist/components/select/index.js +1 -1
  183. package/dist/components/select/index.jsx +6 -5
  184. package/dist/components/signature-pad/index.d.ts +2 -2
  185. package/dist/components/signature-pad/index.js +1 -1
  186. package/dist/components/signature-pad/index.jsx +5 -4
  187. package/dist/components/slider/index.d.ts +2 -2
  188. package/dist/components/slider/index.js +1 -1
  189. package/dist/components/slider/index.jsx +3 -2
  190. package/dist/components/splitter/index.d.ts +2 -2
  191. package/dist/components/splitter/index.js +1 -1
  192. package/dist/components/splitter/index.jsx +3 -2
  193. package/dist/components/steps/index.d.ts +2 -2
  194. package/dist/components/steps/index.js +1 -1
  195. package/dist/components/steps/index.jsx +3 -2
  196. package/dist/components/switch/index.d.ts +2 -2
  197. package/dist/components/switch/index.js +1 -1
  198. package/dist/components/switch/index.jsx +5 -4
  199. package/dist/components/tabs/index.d.ts +2 -2
  200. package/dist/components/tabs/index.js +1 -1
  201. package/dist/components/tabs/index.jsx +4 -3
  202. package/dist/components/tags-input/index.d.ts +2 -2
  203. package/dist/components/tags-input/index.js +1 -1
  204. package/dist/components/tags-input/index.jsx +5 -4
  205. package/dist/components/time-picker/index.d.ts +3 -3
  206. package/dist/components/time-picker/index.js +1 -1
  207. package/dist/components/time-picker/index.jsx +4 -3
  208. package/dist/components/timer/index.d.ts +2 -2
  209. package/dist/components/timer/index.js +1 -1
  210. package/dist/components/timer/index.jsx +3 -2
  211. package/dist/components/toast/index.d.ts +1 -1
  212. package/dist/components/toast/index.js +1 -1
  213. package/dist/components/toast/index.jsx +3 -2
  214. package/dist/components/toggle/index.d.ts +2 -2
  215. package/dist/components/toggle-group/index.d.ts +2 -2
  216. package/dist/components/toggle-group/index.js +1 -1
  217. package/dist/components/toggle-group/index.jsx +3 -2
  218. package/dist/components/tooltip/index.d.ts +3 -3
  219. package/dist/components/tooltip/index.js +1 -1
  220. package/dist/components/tooltip/index.jsx +4 -3
  221. package/dist/components/tour/index.d.ts +3 -3
  222. package/dist/components/tour/index.js +1 -1
  223. package/dist/components/tour/index.jsx +4 -3
  224. package/dist/components/tree-view/index.d.ts +2 -2
  225. package/dist/components/tree-view/index.js +1 -1
  226. package/dist/components/tree-view/index.jsx +4 -3
  227. package/dist/index.d.ts +2 -2
  228. package/dist/index.js +44 -44
  229. package/dist/index.jsx +123 -122
  230. package/dist/providers/environment/index.js +1 -1
  231. package/dist/providers/environment/index.jsx +2 -1
  232. package/dist/providers/index.js +1 -1
  233. package/dist/providers/index.jsx +2 -1
  234. package/dist/types-CxryXVkR.d.ts +8 -0
  235. package/dist/{use-presence-C07V_WCb.d.ts → use-presence-B6QV_j94.d.ts} +2 -2
  236. package/package.json +53 -53
  237. package/dist/types-B277wCdv.d.ts +0 -5
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useFieldContext
3
- } from "./XHA6B6L2.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 "./BPYAMTER.jsx";
12
+ } from "./D2Z5BEON.jsx";
13
13
  import {
14
14
  useLocaleContext
15
15
  } from "./RCXMZN3G.jsx";
16
16
  import {
17
17
  createContext
18
18
  } from "./TVCIHLER.jsx";
19
+ import {
20
+ runIfFn
21
+ } from "./KGOB2IMX.jsx";
19
22
  import {
20
23
  __export
21
24
  } from "./7IUG3E2V.jsx";
@@ -80,7 +83,7 @@ import { mergeProps as mergeProps6 } from "@zag-js/solid";
80
83
  import * as signaturePad from "@zag-js/signature-pad";
81
84
  import { normalizeProps, useMachine } from "@zag-js/solid";
82
85
  import { createMemo, createUniqueId } from "solid-js";
83
- var useSignaturePad = (props = {}) => {
86
+ var useSignaturePad = (props) => {
84
87
  const id = createUniqueId();
85
88
  const locale = useLocaleContext();
86
89
  const environment = useEnvironmentContext();
@@ -96,7 +99,7 @@ var useSignaturePad = (props = {}) => {
96
99
  required: field?.().required,
97
100
  dir: locale().dir,
98
101
  getRootNode: environment().getRootNode,
99
- ...props
102
+ ...runIfFn(props)
100
103
  }));
101
104
  const service = useMachine(signaturePad.machine, machineProps);
102
105
  return createMemo(() => signaturePad.connect(service, normalizeProps));
@@ -3,7 +3,7 @@ import {
3
3
  splitPresenceProps,
4
4
  usePresence,
5
5
  usePresenceContext
6
- } from "./2FYSIKNK.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 "./BPYAMTER.jsx";
15
+ } from "./D2Z5BEON.jsx";
16
16
  import {
17
17
  useLocaleContext
18
18
  } from "./RCXMZN3G.jsx";
19
19
  import {
20
20
  createContext
21
21
  } from "./TVCIHLER.jsx";
22
+ import {
23
+ runIfFn
24
+ } from "./KGOB2IMX.jsx";
22
25
  import {
23
26
  __export
24
27
  } from "./7IUG3E2V.jsx";
@@ -161,7 +164,7 @@ import { mergeProps as mergeProps12 } from "@zag-js/solid";
161
164
  import * as datePicker from "@zag-js/date-picker";
162
165
  import { normalizeProps, useMachine } from "@zag-js/solid";
163
166
  import { createMemo, createUniqueId } from "solid-js";
164
- var useDatePicker = (props = {}) => {
167
+ var useDatePicker = (props) => {
165
168
  const id = createUniqueId();
166
169
  const locale = useLocaleContext();
167
170
  const environment = useEnvironmentContext();
@@ -170,7 +173,7 @@ var useDatePicker = (props = {}) => {
170
173
  dir: locale().dir,
171
174
  locale: locale().locale,
172
175
  getRootNode: environment().getRootNode,
173
- ...props
176
+ ...runIfFn(props)
174
177
  }));
175
178
  const service = useMachine(datePicker.machine, machineProps);
176
179
  return createMemo(() => datePicker.connect(service, normalizeProps));
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useFieldContext
3
- } from "./XHA6B6L2.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 "./BPYAMTER.jsx";
12
+ } from "./D2Z5BEON.jsx";
13
13
  import {
14
14
  useLocaleContext
15
15
  } from "./RCXMZN3G.jsx";
16
16
  import {
17
17
  createContext
18
18
  } from "./TVCIHLER.jsx";
19
+ import {
20
+ runIfFn
21
+ } from "./KGOB2IMX.jsx";
19
22
  import {
20
23
  __export
21
24
  } from "./7IUG3E2V.jsx";
@@ -77,7 +80,7 @@ import { mergeProps as mergeProps6 } from "@zag-js/solid";
77
80
  import * as numberInput from "@zag-js/number-input";
78
81
  import { normalizeProps, useMachine } from "@zag-js/solid";
79
82
  import { createMemo, createUniqueId } from "solid-js";
80
- var useNumberInput = (props = {}) => {
83
+ var useNumberInput = (props) => {
81
84
  const id = createUniqueId();
82
85
  const locale = useLocaleContext();
83
86
  const environment = useEnvironmentContext();
@@ -95,7 +98,7 @@ var useNumberInput = (props = {}) => {
95
98
  dir: locale().dir,
96
99
  locale: locale().locale,
97
100
  getRootNode: environment().getRootNode,
98
- ...props
101
+ ...runIfFn(props)
99
102
  }));
100
103
  const service = useMachine(numberInput.machine, machineProps);
101
104
  return createMemo(() => numberInput.connect(service, normalizeProps));
@@ -6,13 +6,16 @@ import {
6
6
  } from "./UFYZ7HLU.jsx";
7
7
  import {
8
8
  useEnvironmentContext
9
- } from "./BPYAMTER.jsx";
9
+ } from "./D2Z5BEON.jsx";
10
10
  import {
11
11
  useLocaleContext
12
12
  } from "./RCXMZN3G.jsx";
13
13
  import {
14
14
  createContext
15
15
  } from "./TVCIHLER.jsx";
16
+ import {
17
+ runIfFn
18
+ } from "./KGOB2IMX.jsx";
16
19
  import {
17
20
  __export
18
21
  } from "./7IUG3E2V.jsx";
@@ -109,7 +112,7 @@ var useCarousel = (props) => {
109
112
  id,
110
113
  dir: locale().dir,
111
114
  getRootNode: environment().getRootNode,
112
- ...props
115
+ ...runIfFn(props)
113
116
  }));
114
117
  const service = useMachine(carousel.machine, machineProps);
115
118
  return createMemo(() => carousel.connect(service, normalizeProps));
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  collapsible_exports,
3
3
  useCollapsibleContext
4
- } from "./H5QZC4VW.jsx";
4
+ } from "./WNIFZKTJ.jsx";
5
5
  import {
6
6
  RenderStrategyProvider,
7
7
  splitRenderStrategyProps,
@@ -15,13 +15,16 @@ import {
15
15
  } from "./UFYZ7HLU.jsx";
16
16
  import {
17
17
  useEnvironmentContext
18
- } from "./BPYAMTER.jsx";
18
+ } from "./D2Z5BEON.jsx";
19
19
  import {
20
20
  useLocaleContext
21
21
  } from "./RCXMZN3G.jsx";
22
22
  import {
23
23
  createContext
24
24
  } from "./TVCIHLER.jsx";
25
+ import {
26
+ runIfFn
27
+ } from "./KGOB2IMX.jsx";
25
28
  import {
26
29
  __export
27
30
  } from "./7IUG3E2V.jsx";
@@ -118,7 +121,7 @@ import { mergeProps as mergeProps5 } from "@zag-js/solid";
118
121
  import * as accordion from "@zag-js/accordion";
119
122
  import { normalizeProps, useMachine } from "@zag-js/solid";
120
123
  import { createMemo as createMemo3, createUniqueId } from "solid-js";
121
- var useAccordion = (props = {}) => {
124
+ var useAccordion = (props) => {
122
125
  const id = createUniqueId();
123
126
  const locale = useLocaleContext();
124
127
  const environment = useEnvironmentContext();
@@ -126,7 +129,7 @@ var useAccordion = (props = {}) => {
126
129
  id,
127
130
  dir: locale().dir,
128
131
  getRootNode: environment().getRootNode,
129
- ...props
132
+ ...runIfFn(props)
130
133
  }));
131
134
  const service = useMachine(accordion.machine, machineProps);
132
135
  return createMemo3(() => accordion.connect(service, normalizeProps));
@@ -1,15 +1,14 @@
1
1
  import {
2
2
  createContext
3
3
  } from "./TVCIHLER.jsx";
4
+ import {
5
+ runIfFn
6
+ } from "./KGOB2IMX.jsx";
4
7
 
5
8
  // src/providers/environment/environment-provider.tsx
6
9
  import { getDocument, getWindow } from "@zag-js/dom-query";
7
10
  import { Show, createMemo, createSignal } from "solid-js";
8
11
 
9
- // src/utils/run-if-fn.ts
10
- var isFunction = (value) => typeof value === "function";
11
- var runIfFn = (valueOrFn, ...args) => isFunction(valueOrFn) ? valueOrFn(...args) : valueOrFn;
12
-
13
12
  // src/providers/environment/use-environment-context.ts
14
13
  var [EnvironmentContextProvider, useEnvironmentContext] = createContext({
15
14
  hookName: "useEnvironmentContext",
@@ -40,7 +39,6 @@ var EnvironmentProvider = (props) => {
40
39
  };
41
40
 
42
41
  export {
43
- runIfFn,
44
42
  useEnvironmentContext,
45
43
  EnvironmentProvider
46
44
  };
@@ -3,7 +3,7 @@ import {
3
3
  splitPresenceProps,
4
4
  usePresence,
5
5
  usePresenceContext
6
- } from "./2FYSIKNK.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 "./BPYAMTER.jsx";
15
+ } from "./D2Z5BEON.jsx";
16
16
  import {
17
17
  useLocaleContext
18
18
  } from "./RCXMZN3G.jsx";
19
19
  import {
20
20
  createContext
21
21
  } from "./TVCIHLER.jsx";
22
+ import {
23
+ runIfFn
24
+ } from "./KGOB2IMX.jsx";
22
25
  import {
23
26
  __export
24
27
  } from "./7IUG3E2V.jsx";
@@ -85,7 +88,7 @@ import { mergeProps as mergeProps5 } from "@zag-js/solid";
85
88
  import * as hoverCard from "@zag-js/hover-card";
86
89
  import { normalizeProps, useMachine } from "@zag-js/solid";
87
90
  import { createMemo, createUniqueId } from "solid-js";
88
- var useHoverCard = (props = {}) => {
91
+ var useHoverCard = (props) => {
89
92
  const locale = useLocaleContext();
90
93
  const environment = useEnvironmentContext();
91
94
  const id = createUniqueId();
@@ -93,7 +96,7 @@ var useHoverCard = (props = {}) => {
93
96
  id,
94
97
  dir: locale().dir,
95
98
  getRootNode: environment().getRootNode,
96
- ...props
99
+ ...runIfFn(props)
97
100
  }));
98
101
  const service = useMachine(hoverCard.machine, machineProps);
99
102
  return createMemo(() => hoverCard.connect(service, normalizeProps));
@@ -0,0 +1,5 @@
1
+ // src/utils/run-if-fn.ts
2
+ var isFunction = (value) => typeof value === "function";
3
+ var runIfFn = (valueOrFn, ...args) => isFunction(valueOrFn) ? valueOrFn(...args) : valueOrFn;
4
+
5
+ export { runIfFn };
@@ -1,9 +1,10 @@
1
- import { useFieldContext } from './KMFRZGLF.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 './6MQ6S5JP.js';
4
+ import { useEnvironmentContext } from './YMMMHJJS.js';
5
5
  import { useLocaleContext } from './QEMQBM6W.js';
6
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';
@@ -45,7 +46,7 @@ var PinInputLabel = (props) => {
45
46
  const mergedProps = mergeProps(() => api().getLabelProps(), props);
46
47
  return createComponent(ark.label, mergedProps);
47
48
  };
48
- var usePinInput = (props = {}) => {
49
+ var usePinInput = (props) => {
49
50
  const id = createUniqueId();
50
51
  const locale = useLocaleContext();
51
52
  const environment = useEnvironmentContext();
@@ -62,7 +63,7 @@ var usePinInput = (props = {}) => {
62
63
  invalid: field?.().invalid,
63
64
  dir: locale().dir,
64
65
  getRootNode: environment().getRootNode,
65
- ...props
66
+ ...runIfFn(props)
66
67
  }));
67
68
  const service = useMachine(pinInput.machine, machineProps);
68
69
  return createMemo(() => pinInput.connect(service, normalizeProps));
@@ -1,5 +1,5 @@
1
1
  import { composeRefs } from './XN6EERRM.js';
2
- import { EnvironmentProvider } from './6MQ6S5JP.js';
2
+ import { EnvironmentProvider } from './YMMMHJJS.js';
3
3
  import { createComponent, template, use, spread, insert, Portal } from 'solid-js/web';
4
4
  import { splitProps, createMemo, createSignal, createEffect, onCleanup, Show } from 'solid-js';
5
5
 
@@ -6,13 +6,16 @@ import {
6
6
  } from "./UFYZ7HLU.jsx";
7
7
  import {
8
8
  useEnvironmentContext
9
- } from "./BPYAMTER.jsx";
9
+ } from "./D2Z5BEON.jsx";
10
10
  import {
11
11
  useLocaleContext
12
12
  } from "./RCXMZN3G.jsx";
13
13
  import {
14
14
  createContext
15
15
  } from "./TVCIHLER.jsx";
16
+ import {
17
+ runIfFn
18
+ } from "./KGOB2IMX.jsx";
16
19
  import {
17
20
  __export
18
21
  } from "./7IUG3E2V.jsx";
@@ -42,7 +45,7 @@ import { mergeProps as mergeProps2 } from "@zag-js/solid";
42
45
  import { normalizeProps, useMachine } from "@zag-js/solid";
43
46
  import * as toggleGroup from "@zag-js/toggle-group";
44
47
  import { createMemo, createUniqueId } from "solid-js";
45
- var useToggleGroup = (props = {}) => {
48
+ var useToggleGroup = (props) => {
46
49
  const id = createUniqueId();
47
50
  const locale = useLocaleContext();
48
51
  const environment = useEnvironmentContext();
@@ -50,7 +53,7 @@ var useToggleGroup = (props = {}) => {
50
53
  id,
51
54
  dir: locale().dir,
52
55
  getRootNode: environment().getRootNode,
53
- ...props
56
+ ...runIfFn(props)
54
57
  }));
55
58
  const service = useMachine(toggleGroup.machine, machineProps);
56
59
  return createMemo(() => toggleGroup.connect(service, normalizeProps));
@@ -1,9 +1,10 @@
1
- import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './WRLQ7Y6E.js';
1
+ import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './OY4ARTMM.js';
2
2
  import { createSplitProps } from './ZMHI4GDJ.js';
3
3
  import { ark } from './EPLBB4QN.js';
4
- import { useEnvironmentContext } from './6MQ6S5JP.js';
4
+ import { useEnvironmentContext } from './YMMMHJJS.js';
5
5
  import { useLocaleContext } from './QEMQBM6W.js';
6
6
  import { createContext } from './TROPIN4C.js';
7
+ import { runIfFn } from './DT73WLR4.js';
7
8
  import { __export } from './ESLJRKWD.js';
8
9
  export { parseTime } from '@internationalized/date';
9
10
  import { createComponent } from 'solid-js/web';
@@ -98,7 +99,7 @@ var TimePickerPositioner = (props) => {
98
99
  }
99
100
  });
100
101
  };
101
- var useTimePicker = (props = {}) => {
102
+ var useTimePicker = (props) => {
102
103
  const id = createUniqueId();
103
104
  const locale = useLocaleContext();
104
105
  const environment = useEnvironmentContext();
@@ -107,7 +108,7 @@ var useTimePicker = (props = {}) => {
107
108
  dir: locale().dir,
108
109
  getRootNode: environment().getRootNode,
109
110
  locale: locale().locale,
110
- ...props
111
+ ...runIfFn(props)
111
112
  }));
112
113
  const service = useMachine(timePicker.machine, machineProps);
113
114
  return createMemo(() => timePicker.connect(service, normalizeProps));
@@ -1,7 +1,8 @@
1
1
  import { createSplitProps } from './ZMHI4GDJ.js';
2
2
  import { ark } from './EPLBB4QN.js';
3
- import { useEnvironmentContext } from './6MQ6S5JP.js';
3
+ import { useEnvironmentContext } from './YMMMHJJS.js';
4
4
  import { createContext } from './TROPIN4C.js';
5
+ import { runIfFn } from './DT73WLR4.js';
5
6
  import { __export } from './ESLJRKWD.js';
6
7
  import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
7
8
  import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
@@ -55,13 +56,13 @@ var ClipboardLabel = (props) => {
55
56
  const mergedProps = mergeProps(() => api().getLabelProps(), props);
56
57
  return createComponent(ark.label, mergedProps);
57
58
  };
58
- var useClipboard = (props = {}) => {
59
+ var useClipboard = (props) => {
59
60
  const id = createUniqueId();
60
61
  const environment = useEnvironmentContext();
61
62
  const machineProps = createMemo(() => ({
62
63
  id,
63
64
  getRootNode: environment().getRootNode,
64
- ...props
65
+ ...runIfFn(props)
65
66
  }));
66
67
  const service = useMachine(clipboard.machine, machineProps);
67
68
  return createMemo(() => clipboard.connect(service, normalizeProps));
@@ -1,10 +1,11 @@
1
- import { usePresence, PresenceProvider } from './WRLQ7Y6E.js';
1
+ import { usePresence, PresenceProvider } from './OY4ARTMM.js';
2
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 './6MQ6S5JP.js';
5
+ import { useEnvironmentContext } from './YMMMHJJS.js';
6
6
  import { useLocaleContext } from './QEMQBM6W.js';
7
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';
@@ -61,7 +62,7 @@ var TabTrigger = (props) => {
61
62
 
62
63
  // src/components/tabs/tabs-context.tsx
63
64
  var TabsContext = (props) => props.children(useTabsContext());
64
- var useTabs = (props = {}) => {
65
+ var useTabs = (props) => {
65
66
  const id = createUniqueId();
66
67
  const locale = useLocaleContext();
67
68
  const environment = useEnvironmentContext();
@@ -69,7 +70,7 @@ var useTabs = (props = {}) => {
69
70
  id,
70
71
  dir: locale().dir,
71
72
  getRootNode: environment().getRootNode,
72
- ...props
73
+ ...runIfFn(props)
73
74
  }));
74
75
  const service = useMachine(tabs.machine, machineProps);
75
76
  return createMemo(() => tabs.connect(service, normalizeProps));
@@ -1,10 +1,11 @@
1
- import { usePresence, splitPresenceProps, PresenceProvider, usePresenceContext } from './WRLQ7Y6E.js';
1
+ import { usePresence, splitPresenceProps, PresenceProvider, usePresenceContext } from './OY4ARTMM.js';
2
2
  import { useRenderStrategyContext, splitRenderStrategyProps, RenderStrategyProvider } from './QFAL6GWC.js';
3
3
  import { createSplitProps } from './ZMHI4GDJ.js';
4
4
  import { ark } from './EPLBB4QN.js';
5
- import { useEnvironmentContext } from './6MQ6S5JP.js';
5
+ import { useEnvironmentContext } from './YMMMHJJS.js';
6
6
  import { useLocaleContext } from './QEMQBM6W.js';
7
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';
@@ -188,7 +189,7 @@ var TourTitle = (props) => {
188
189
  }
189
190
  }));
190
191
  };
191
- var useTour = (props = {}) => {
192
+ var useTour = (props) => {
192
193
  const id = createUniqueId();
193
194
  const locale = useLocaleContext();
194
195
  const environment = useEnvironmentContext();
@@ -196,7 +197,7 @@ var useTour = (props = {}) => {
196
197
  id,
197
198
  dir: locale().dir,
198
199
  getRootNode: environment().getRootNode,
199
- ...props
200
+ ...runIfFn(props)
200
201
  }));
201
202
  const service = useMachine(tour.machine, machineProps);
202
203
  return createMemo(() => tour.connect(service, normalizeProps));
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useFieldContext
3
- } from "./XHA6B6L2.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 "./BPYAMTER.jsx";
12
+ } from "./D2Z5BEON.jsx";
13
13
  import {
14
14
  useLocaleContext
15
15
  } from "./RCXMZN3G.jsx";
16
16
  import {
17
17
  createContext
18
18
  } from "./TVCIHLER.jsx";
19
+ import {
20
+ runIfFn
21
+ } from "./KGOB2IMX.jsx";
19
22
  import {
20
23
  __export
21
24
  } from "./7IUG3E2V.jsx";
@@ -61,7 +64,7 @@ import { mergeProps as mergeProps4 } from "@zag-js/solid";
61
64
  import { normalizeProps, useMachine } from "@zag-js/solid";
62
65
  import * as zagSwitch from "@zag-js/switch";
63
66
  import { createMemo, createUniqueId } from "solid-js";
64
- var useSwitch = (props = {}) => {
67
+ var useSwitch = (props) => {
65
68
  const id = createUniqueId();
66
69
  const locale = useLocaleContext();
67
70
  const environment = useEnvironmentContext();
@@ -78,7 +81,7 @@ var useSwitch = (props = {}) => {
78
81
  required: field?.().required,
79
82
  dir: locale().dir,
80
83
  getRootNode: environment().getRootNode,
81
- ...props
84
+ ...runIfFn(props)
82
85
  }));
83
86
  const service = useMachine(zagSwitch.machine, machineProps);
84
87
  return createMemo(() => zagSwitch.connect(service, normalizeProps));
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useFieldContext
3
- } from "./XHA6B6L2.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 "./BPYAMTER.jsx";
12
+ } from "./D2Z5BEON.jsx";
13
13
  import {
14
14
  useLocaleContext
15
15
  } from "./RCXMZN3G.jsx";
16
16
  import {
17
17
  createContext
18
18
  } from "./TVCIHLER.jsx";
19
+ import {
20
+ runIfFn
21
+ } from "./KGOB2IMX.jsx";
19
22
  import {
20
23
  __export
21
24
  } from "./7IUG3E2V.jsx";
@@ -153,7 +156,7 @@ import { mergeProps as mergeProps12 } from "@zag-js/solid";
153
156
  import * as fileUpload from "@zag-js/file-upload";
154
157
  import { normalizeProps, useMachine } from "@zag-js/solid";
155
158
  import { createMemo, createUniqueId } from "solid-js";
156
- var useFileUpload = (props = {}) => {
159
+ var useFileUpload = (props) => {
157
160
  const id = createUniqueId();
158
161
  const locale = useLocaleContext();
159
162
  const environment = useEnvironmentContext();
@@ -170,7 +173,7 @@ var useFileUpload = (props = {}) => {
170
173
  required: field?.().required,
171
174
  invalid: field?.().invalid,
172
175
  getRootNode: environment().getRootNode,
173
- ...props
176
+ ...runIfFn(props)
174
177
  }));
175
178
  const service = useMachine(fileUpload.machine, machineProps);
176
179
  return createMemo(() => fileUpload.connect(service, normalizeProps));
@@ -1,9 +1,10 @@
1
- import { useFieldContext } from './KMFRZGLF.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 './6MQ6S5JP.js';
4
+ import { useEnvironmentContext } from './YMMMHJJS.js';
5
5
  import { useLocaleContext } from './QEMQBM6W.js';
6
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';
@@ -39,7 +40,7 @@ var SwitchLabel = (props) => {
39
40
  const mergedProps = mergeProps(() => api().getLabelProps(), props);
40
41
  return createComponent(ark.span, mergedProps);
41
42
  };
42
- var useSwitch = (props = {}) => {
43
+ var useSwitch = (props) => {
43
44
  const id = createUniqueId();
44
45
  const locale = useLocaleContext();
45
46
  const environment = useEnvironmentContext();
@@ -56,7 +57,7 @@ var useSwitch = (props = {}) => {
56
57
  required: field?.().required,
57
58
  dir: locale().dir,
58
59
  getRootNode: environment().getRootNode,
59
- ...props
60
+ ...runIfFn(props)
60
61
  }));
61
62
  const service = useMachine(zagSwitch.machine, machineProps);
62
63
  return createMemo(() => zagSwitch.connect(service, normalizeProps));
@@ -1,8 +1,9 @@
1
1
  import { createSplitProps } from './ZMHI4GDJ.js';
2
2
  import { ark } from './EPLBB4QN.js';
3
- import { useEnvironmentContext } from './6MQ6S5JP.js';
3
+ import { useEnvironmentContext } from './YMMMHJJS.js';
4
4
  import { useLocaleContext } from './QEMQBM6W.js';
5
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';
@@ -30,7 +31,7 @@ var SplitterResizeTrigger = (props) => {
30
31
  const mergedProps = mergeProps(() => api().getResizeTriggerProps(resizeTriggerProps), restProps);
31
32
  return createComponent(ark.button, mergedProps);
32
33
  };
33
- var useSplitter = (props = {}) => {
34
+ var useSplitter = (props) => {
34
35
  const locale = useLocaleContext();
35
36
  const environment = useEnvironmentContext();
36
37
  const id = createUniqueId();
@@ -38,7 +39,7 @@ var useSplitter = (props = {}) => {
38
39
  id,
39
40
  dir: locale().dir,
40
41
  getRootNode: environment().getRootNode,
41
- ...props
42
+ ...runIfFn(props)
42
43
  }));
43
44
  const service = useMachine(splitter.machine, machineProps);
44
45
  return createMemo(() => splitter.connect(service, normalizeProps));
@@ -1,10 +1,11 @@
1
- import { useFieldContext } from './KMFRZGLF.js';
2
- import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './WRLQ7Y6E.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 './6MQ6S5JP.js';
5
+ import { useEnvironmentContext } from './YMMMHJJS.js';
6
6
  import { useLocaleContext } from './QEMQBM6W.js';
7
7
  import { createContext } from './TROPIN4C.js';
8
+ import { runIfFn } from './DT73WLR4.js';
8
9
  import { __export } from './ESLJRKWD.js';
9
10
  import * as colorPicker from '@zag-js/color-picker';
10
11
  import { anatomy } from '@zag-js/color-picker';
@@ -194,7 +195,7 @@ var ColorPickerPositioner = (props) => {
194
195
  }
195
196
  });
196
197
  };
197
- var useColorPicker = (props = {}) => {
198
+ var useColorPicker = (props) => {
198
199
  const id = createUniqueId();
199
200
  const locale = useLocaleContext();
200
201
  const environment = useEnvironmentContext();
@@ -211,7 +212,7 @@ var useColorPicker = (props = {}) => {
211
212
  readOnly: field?.().readOnly,
212
213
  required: field?.().required,
213
214
  getRootNode: environment().getRootNode,
214
- ...props
215
+ ...runIfFn(props)
215
216
  }));
216
217
  const service = useMachine(colorPicker.machine, machineProps);
217
218
  return createMemo(() => colorPicker.connect(service, normalizeProps));