@ark-ui/solid 5.9.1 → 5.10.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 (208) hide show
  1. package/dist/chunk/{CTU4RBCL.js → 2MXPLL4O.js} +1 -1
  2. package/dist/chunk/{GMQWLEMA.js → 364QFYBV.js} +1 -1
  3. package/dist/chunk/{XHRYU75E.js → 3IJ5QLEM.js} +1 -1
  4. package/dist/chunk/{XTKQCFXA.js → 4HQIDBKB.js} +1 -1
  5. package/dist/chunk/{ZCR6PEKU.jsx → 4L4266PL.jsx} +3 -3
  6. package/dist/chunk/{XN3MSM3M.js → 6HQNY7WM.js} +4 -2
  7. package/dist/chunk/{ZRDDUT25.jsx → 6XAZQVOY.jsx} +4 -4
  8. package/dist/chunk/{M2X4T5YI.js → 72JQEDEW.js} +2 -2
  9. package/dist/chunk/{MC7HLMCJ.js → 74TH35IC.js} +2 -2
  10. package/dist/chunk/{4JSIWK47.jsx → 7FASJWDK.jsx} +3 -3
  11. package/dist/chunk/{M22EJR7I.jsx → 7OXBQSIZ.jsx} +3 -3
  12. package/dist/chunk/{6RE6P43M.jsx → 7RYPC5LL.jsx} +3 -3
  13. package/dist/chunk/{BN6G7VZL.jsx → 7UNWOGPT.jsx} +4 -4
  14. package/dist/chunk/{Y3BMAUJ3.jsx → 7YSKY6W4.jsx} +4 -4
  15. package/dist/chunk/{P6BDMUWN.js → AD6K3UTR.js} +1 -1
  16. package/dist/chunk/{EWPKE75H.js → AIFOKNNI.js} +1 -1
  17. package/dist/chunk/AWEBBQKG.js +352 -0
  18. package/dist/chunk/{GAEOBWYL.js → BOR6VUN5.js} +1 -1
  19. package/dist/chunk/{4QDVLLAO.jsx → CINP4S7J.jsx} +3 -3
  20. package/dist/chunk/{Z2GBTKXP.js → CZGNNOWN.js} +1 -1
  21. package/dist/chunk/{4A7TP7UN.js → DAORON6X.js} +1 -1
  22. package/dist/chunk/{VVDIFQHR.jsx → DBQP7III.jsx} +3 -3
  23. package/dist/chunk/{UZZB2PYN.js → DJCDFKG4.js} +2 -2
  24. package/dist/chunk/{6KLF2C3G.jsx → DLZTFD37.jsx} +5 -4
  25. package/dist/chunk/{MDSDUOA7.js → DPP7XCXL.js} +1 -1
  26. package/dist/chunk/{CS2DO6YU.jsx → DQQRZ3DL.jsx} +4 -4
  27. package/dist/chunk/{D2Z5BEON.jsx → E2L62MKC.jsx} +1 -1
  28. package/dist/chunk/{HZ3APUBJ.jsx → FG427CLW.jsx} +3 -3
  29. package/dist/chunk/{U5K5ZANS.js → FJ5JNMAY.js} +1 -1
  30. package/dist/chunk/{AYGXT3GV.jsx → FOIEK72O.jsx} +3 -3
  31. package/dist/chunk/{5T73FAJY.jsx → GKS4JQZJ.jsx} +1 -1
  32. package/dist/chunk/{M27EDZVV.jsx → GLN6WFQR.jsx} +3 -3
  33. package/dist/chunk/{VJHB2FMZ.jsx → H4MJ4254.jsx} +3 -3
  34. package/dist/chunk/{ASSWYBX3.js → H5DXY5W4.js} +1 -1
  35. package/dist/chunk/{4HPQVVRP.jsx → HQOIDGRU.jsx} +10 -6
  36. package/dist/chunk/{LTZUX6NG.js → HX25P762.js} +1 -1
  37. package/dist/chunk/{2EMVL2IQ.js → I6UGYR2R.js} +1 -1
  38. package/dist/chunk/{FJ3FVOGG.jsx → IDNDLSEV.jsx} +4 -4
  39. package/dist/chunk/{QDOPZ5XF.js → IWBBR7PD.js} +1 -1
  40. package/dist/chunk/{BUX3MXSX.js → J6KTD7C4.js} +1 -1
  41. package/dist/chunk/{5P6VDRXB.jsx → JK6QXH6B.jsx} +3 -3
  42. package/dist/chunk/{DCGLD47I.jsx → JKM73NGJ.jsx} +3 -3
  43. package/dist/chunk/{ZYF7GVNI.jsx → JY6PMVAK.jsx} +10 -6
  44. package/dist/chunk/{CGIPQEC2.js → KBANDL4M.js} +3 -3
  45. package/dist/chunk/{CC4VX2SZ.js → KHRXJWYQ.js} +2 -2
  46. package/dist/chunk/{Z2ZI3WHM.jsx → KJ353BY6.jsx} +4 -4
  47. package/dist/chunk/{ZFEXDBTE.jsx → KNVMVQG6.jsx} +4 -4
  48. package/dist/chunk/{5TRVHZWX.js → LB3LJBHI.js} +1 -1
  49. package/dist/chunk/{45QX7ERS.js → LORIOKHL.js} +1 -1
  50. package/dist/chunk/{LIA677CA.js → LRA73ZZJ.js} +1 -1
  51. package/dist/chunk/{B5PX2A24.jsx → MJTOTU2A.jsx} +3 -3
  52. package/dist/chunk/{3T3CHFOI.js → MTVQZNY6.js} +2 -2
  53. package/dist/chunk/{UL6NTZA6.js → NC7W2KIE.js} +8 -6
  54. package/dist/chunk/{RQZ6U2UY.js → NQSCRM4A.js} +2 -2
  55. package/dist/chunk/{U72UWTCQ.js → O6YKGZWS.js} +7 -3
  56. package/dist/chunk/{FMKC62HV.js → OF23HNNE.js} +1 -1
  57. package/dist/chunk/{FH6GTC4M.js → OKT2RIHV.js} +1 -1
  58. package/dist/chunk/{P5KYIXBT.jsx → OM7DNJ6L.jsx} +4 -4
  59. package/dist/chunk/{7LGQHHQ6.jsx → OM7V7VVC.jsx} +4 -4
  60. package/dist/chunk/{46YZDDSK.js → OPAESICE.js} +2 -2
  61. package/dist/chunk/{JDQV34ZO.jsx → PDM4RNNF.jsx} +3 -3
  62. package/dist/chunk/{UO3H42QI.jsx → PRA2XFQE.jsx} +3 -3
  63. package/dist/chunk/{HGBQUNKZ.js → QKDU2AEK.js} +2 -2
  64. package/dist/chunk/{6BLNCF3J.jsx → QXYWHKF7.jsx} +3 -3
  65. package/dist/chunk/{N4LX6YTH.jsx → RBFSTWIA.jsx} +9 -5
  66. package/dist/chunk/{36SVH2NV.jsx → RBTSINKI.jsx} +3 -3
  67. package/dist/chunk/{3R544BNK.js → RGHRUX7P.js} +1 -1
  68. package/dist/chunk/{XJRN7Y3Y.js → ROUJC6XC.js} +1 -1
  69. package/dist/chunk/{TZDLUIKR.jsx → RULCXX3A.jsx} +1 -1
  70. package/dist/chunk/{TFSMBIVN.js → RVK7FAUI.js} +2 -2
  71. package/dist/chunk/{GTBZCIHJ.js → T4JGZ7KR.js} +1 -1
  72. package/dist/chunk/{E5BXBABH.js → T7G3DPEM.js} +1 -1
  73. package/dist/chunk/{XQCNW4F7.js → T7GUEJBF.js} +1 -1
  74. package/dist/chunk/{JRMTU7C7.jsx → TTIVTOWQ.jsx} +1 -1
  75. package/dist/chunk/{XCU56UHM.jsx → U7QDCJXT.jsx} +4 -4
  76. package/dist/chunk/{G2G63I5O.js → UI2TEQZM.js} +1 -1
  77. package/dist/chunk/{3Z45T6FD.js → UK24ZAUL.js} +2 -2
  78. package/dist/chunk/{A3VC6L75.jsx → V2GDFVDR.jsx} +1 -1
  79. package/dist/chunk/{HF5MDQXT.jsx → V6S3C3U7.jsx} +4 -4
  80. package/dist/chunk/{BNQLKUHI.jsx → V75EMOIC.jsx} +4 -4
  81. package/dist/chunk/{CYHSVU5J.js → VL4J24YY.js} +2 -2
  82. package/dist/chunk/{U7F3BISB.js → VQ3I3Z7G.js} +1 -1
  83. package/dist/chunk/{XXWTVBBC.jsx → VXQNQSLM.jsx} +3 -3
  84. package/dist/chunk/{QLFQEMNC.js → W3D4AMKT.js} +2 -2
  85. package/dist/chunk/{LD5DWBUI.jsx → WBLWV2L4.jsx} +4 -4
  86. package/dist/chunk/{HRGOITBL.js → WI6PP4EF.js} +2 -2
  87. package/dist/chunk/{WIF7CNPH.jsx → X5GWQYGE.jsx} +3 -3
  88. package/dist/chunk/{D4IKRCUD.jsx → XENPQFEN.jsx} +3 -3
  89. package/dist/chunk/{GYYFKFV2.jsx → XSGHIZ6Q.jsx} +3 -3
  90. package/dist/chunk/{JEGLR2GC.jsx → YJX4W6VT.jsx} +3 -3
  91. package/dist/chunk/{I2PTICVF.jsx → YM35RFYG.jsx} +3 -3
  92. package/dist/chunk/{YMMMHJJS.js → YO2MCGXO.js} +1 -1
  93. package/dist/chunk/{TXKDDZVE.jsx → Z2BXVXSV.jsx} +3 -3
  94. package/dist/chunk/ZG3NSN2X.jsx +400 -0
  95. package/dist/components/accordion/index.js +1 -1
  96. package/dist/components/accordion/index.jsx +3 -3
  97. package/dist/components/angle-slider/index.js +1 -1
  98. package/dist/components/angle-slider/index.jsx +2 -2
  99. package/dist/components/avatar/index.js +1 -1
  100. package/dist/components/avatar/index.jsx +2 -2
  101. package/dist/components/carousel/index.js +1 -1
  102. package/dist/components/carousel/index.jsx +2 -2
  103. package/dist/components/checkbox/index.d.ts +1 -1
  104. package/dist/components/checkbox/index.js +1 -1
  105. package/dist/components/checkbox/index.jsx +4 -4
  106. package/dist/components/clipboard/index.js +1 -1
  107. package/dist/components/clipboard/index.jsx +2 -2
  108. package/dist/components/collapsible/index.js +1 -1
  109. package/dist/components/collapsible/index.jsx +2 -2
  110. package/dist/components/collection.d.ts +1 -1
  111. package/dist/components/color-picker/index.d.ts +1 -1
  112. package/dist/components/color-picker/index.js +1 -1
  113. package/dist/components/color-picker/index.jsx +4 -4
  114. package/dist/components/combobox/index.js +1 -1
  115. package/dist/components/combobox/index.jsx +4 -4
  116. package/dist/components/date-picker/index.d.ts +1 -1
  117. package/dist/components/date-picker/index.js +1 -1
  118. package/dist/components/date-picker/index.jsx +2 -2
  119. package/dist/components/dialog/index.js +1 -1
  120. package/dist/components/dialog/index.jsx +2 -2
  121. package/dist/components/download-trigger/index.js +1 -1
  122. package/dist/components/download-trigger/index.jsx +2 -2
  123. package/dist/components/editable/index.js +1 -1
  124. package/dist/components/editable/index.jsx +4 -4
  125. package/dist/components/field/index.d.ts +1 -1
  126. package/dist/components/field/index.js +1 -1
  127. package/dist/components/field/index.jsx +5 -2
  128. package/dist/components/fieldset/index.d.ts +6 -7
  129. package/dist/components/fieldset/index.js +1 -1
  130. package/dist/components/fieldset/index.jsx +6 -1
  131. package/dist/components/file-upload/index.js +1 -1
  132. package/dist/components/file-upload/index.jsx +4 -4
  133. package/dist/components/floating-panel/index.js +1 -1
  134. package/dist/components/floating-panel/index.jsx +2 -2
  135. package/dist/components/format/index.jsx +1 -1
  136. package/dist/components/frame/index.js +1 -1
  137. package/dist/components/frame/index.jsx +2 -2
  138. package/dist/components/hover-card/index.js +1 -1
  139. package/dist/components/hover-card/index.jsx +2 -2
  140. package/dist/components/index.d.ts +3 -1
  141. package/dist/components/index.js +48 -47
  142. package/dist/components/index.jsx +448 -420
  143. package/dist/components/listbox/index.js +1 -1
  144. package/dist/components/listbox/index.jsx +2 -2
  145. package/dist/components/menu/index.js +1 -1
  146. package/dist/components/menu/index.jsx +2 -2
  147. package/dist/components/number-input/index.js +1 -1
  148. package/dist/components/number-input/index.jsx +4 -4
  149. package/dist/components/pagination/index.js +1 -1
  150. package/dist/components/pagination/index.jsx +2 -2
  151. package/dist/components/password-input/index.d.ts +78 -0
  152. package/dist/components/password-input/index.js +1 -0
  153. package/dist/components/password-input/index.jsx +40 -0
  154. package/dist/components/pin-input/index.js +1 -1
  155. package/dist/components/pin-input/index.jsx +4 -4
  156. package/dist/components/popover/index.js +1 -1
  157. package/dist/components/popover/index.jsx +2 -2
  158. package/dist/components/progress/index.js +1 -1
  159. package/dist/components/progress/index.jsx +2 -2
  160. package/dist/components/qr-code/index.js +1 -1
  161. package/dist/components/qr-code/index.jsx +2 -2
  162. package/dist/components/radio-group/index.js +1 -1
  163. package/dist/components/radio-group/index.jsx +2 -2
  164. package/dist/components/rating-group/index.js +1 -1
  165. package/dist/components/rating-group/index.jsx +4 -4
  166. package/dist/components/segment-group/index.js +1 -1
  167. package/dist/components/segment-group/index.jsx +2 -2
  168. package/dist/components/select/index.d.ts +2 -2
  169. package/dist/components/select/index.js +1 -1
  170. package/dist/components/select/index.jsx +4 -4
  171. package/dist/components/signature-pad/index.js +1 -1
  172. package/dist/components/signature-pad/index.jsx +4 -4
  173. package/dist/components/slider/index.js +1 -1
  174. package/dist/components/slider/index.jsx +2 -2
  175. package/dist/components/splitter/index.js +1 -1
  176. package/dist/components/splitter/index.jsx +2 -2
  177. package/dist/components/steps/index.js +1 -1
  178. package/dist/components/steps/index.jsx +2 -2
  179. package/dist/components/switch/index.js +1 -1
  180. package/dist/components/switch/index.jsx +4 -4
  181. package/dist/components/tabs/index.js +1 -1
  182. package/dist/components/tabs/index.jsx +2 -2
  183. package/dist/components/tags-input/index.js +1 -1
  184. package/dist/components/tags-input/index.jsx +4 -4
  185. package/dist/components/time-picker/index.js +1 -1
  186. package/dist/components/time-picker/index.jsx +2 -2
  187. package/dist/components/timer/index.js +1 -1
  188. package/dist/components/timer/index.jsx +2 -2
  189. package/dist/components/toast/index.js +1 -1
  190. package/dist/components/toast/index.jsx +2 -2
  191. package/dist/components/toggle-group/index.js +1 -1
  192. package/dist/components/toggle-group/index.jsx +2 -2
  193. package/dist/components/tooltip/index.js +1 -1
  194. package/dist/components/tooltip/index.jsx +2 -2
  195. package/dist/components/tour/index.js +1 -1
  196. package/dist/components/tour/index.jsx +2 -2
  197. package/dist/components/tree-view/index.js +1 -1
  198. package/dist/components/tree-view/index.jsx +3 -3
  199. package/dist/index.d.ts +3 -1
  200. package/dist/index.js +49 -48
  201. package/dist/index.jsx +451 -423
  202. package/dist/providers/environment/index.js +1 -1
  203. package/dist/providers/environment/index.jsx +1 -1
  204. package/dist/providers/index.js +1 -1
  205. package/dist/providers/index.jsx +4 -4
  206. package/package.json +55 -54
  207. /package/dist/chunk/{IEGQ2BAU.jsx → BJ3QT4LE.jsx} +0 -0
  208. /package/dist/chunk/{5I3KMKOJ.js → QBN5FEQF.js} +0 -0
@@ -1,10 +1,10 @@
1
- import { useFieldContext } from './UL6NTZA6.js';
2
1
  import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './7S3N5UQH.js';
2
+ import { useFieldContext } from './NC7W2KIE.js';
3
3
  import { composeRefs } from './XN6EERRM.js';
4
4
  import { createSplitProps } from './ZMHI4GDJ.js';
5
5
  import { ark } from './EPLBB4QN.js';
6
+ import { useEnvironmentContext } from './YO2MCGXO.js';
6
7
  import { useLocaleContext } from './OKZ64GSY.js';
7
- import { useEnvironmentContext } from './YMMMHJJS.js';
8
8
  import { createContext } from './TROPIN4C.js';
9
9
  import { runIfFn } from './DT73WLR4.js';
10
10
  import { __export } from './ESLJRKWD.js';
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useFieldContext
3
- } from "./4HPQVVRP.jsx";
3
+ } from "./HQOIDGRU.jsx";
4
4
  import {
5
5
  PresenceProvider,
6
6
  splitPresenceProps,
@@ -16,12 +16,12 @@ import {
16
16
  import {
17
17
  ark
18
18
  } from "./UFYZ7HLU.jsx";
19
- import {
20
- useEnvironmentContext
21
- } from "./D2Z5BEON.jsx";
22
19
  import {
23
20
  useLocaleContext
24
21
  } from "./YUC6JE7K.jsx";
22
+ import {
23
+ useEnvironmentContext
24
+ } from "./E2L62MKC.jsx";
25
25
  import {
26
26
  createContext
27
27
  } from "./TVCIHLER.jsx";
@@ -269,6 +269,7 @@ var SelectRoot = (props) => {
269
269
  "onInteractOutside",
270
270
  "onOpenChange",
271
271
  "onPointerDownOutside",
272
+ "onSelect",
272
273
  "onValueChange",
273
274
  "open",
274
275
  "positioning",
@@ -1,7 +1,7 @@
1
1
  import { createSplitProps } from './ZMHI4GDJ.js';
2
2
  import { ark } from './EPLBB4QN.js';
3
+ import { useEnvironmentContext } from './YO2MCGXO.js';
3
4
  import { useLocaleContext } from './OKZ64GSY.js';
4
- import { useEnvironmentContext } from './YMMMHJJS.js';
5
5
  import { createContext } from './TROPIN4C.js';
6
6
  import { runIfFn } from './DT73WLR4.js';
7
7
  import { __export } from './ESLJRKWD.js';
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  useFieldContext
3
- } from "./4HPQVVRP.jsx";
3
+ } from "./HQOIDGRU.jsx";
4
4
  import {
5
5
  createSplitProps
6
6
  } from "./6WEDGJKQ.jsx";
7
7
  import {
8
8
  ark
9
9
  } from "./UFYZ7HLU.jsx";
10
- import {
11
- useEnvironmentContext
12
- } from "./D2Z5BEON.jsx";
13
10
  import {
14
11
  useLocaleContext
15
12
  } from "./YUC6JE7K.jsx";
13
+ import {
14
+ useEnvironmentContext
15
+ } from "./E2L62MKC.jsx";
16
16
  import {
17
17
  createContext
18
18
  } from "./TVCIHLER.jsx";
@@ -24,7 +24,7 @@ var [EnvironmentContextProvider, useEnvironmentContext] = createContext({
24
24
  // src/providers/environment/environment-provider.tsx
25
25
  var EnvironmentProvider = (props) => {
26
26
  const [spanRef, setSpanRef] = createSignal();
27
- const getRootNode = () => runIfFn(props.value) ?? spanRef()?.ownerDocument ?? document;
27
+ const getRootNode = () => runIfFn(props.value) ?? spanRef()?.getRootNode() ?? document;
28
28
  const environment = createMemo(() => ({
29
29
  getRootNode,
30
30
  getDocument: () => getDocument(getRootNode()),
@@ -4,12 +4,12 @@ import {
4
4
  import {
5
5
  ark
6
6
  } from "./UFYZ7HLU.jsx";
7
- import {
8
- useEnvironmentContext
9
- } from "./D2Z5BEON.jsx";
10
7
  import {
11
8
  useLocaleContext
12
9
  } from "./YUC6JE7K.jsx";
10
+ import {
11
+ useEnvironmentContext
12
+ } from "./E2L62MKC.jsx";
13
13
  import {
14
14
  createContext
15
15
  } from "./TVCIHLER.jsx";
@@ -2,8 +2,8 @@ import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext }
2
2
  import { composeRefs } from './XN6EERRM.js';
3
3
  import { createSplitProps } from './ZMHI4GDJ.js';
4
4
  import { ark } from './EPLBB4QN.js';
5
+ import { useEnvironmentContext } from './YO2MCGXO.js';
5
6
  import { useLocaleContext } from './OKZ64GSY.js';
6
- import { useEnvironmentContext } from './YMMMHJJS.js';
7
7
  import { createContext } from './TROPIN4C.js';
8
8
  import { runIfFn } from './DT73WLR4.js';
9
9
  import { __export } from './ESLJRKWD.js';
@@ -4,12 +4,12 @@ import {
4
4
  import {
5
5
  ark
6
6
  } from "./UFYZ7HLU.jsx";
7
- import {
8
- useEnvironmentContext
9
- } from "./D2Z5BEON.jsx";
10
7
  import {
11
8
  useLocaleContext
12
9
  } from "./YUC6JE7K.jsx";
10
+ import {
11
+ useEnvironmentContext
12
+ } from "./E2L62MKC.jsx";
13
13
  import {
14
14
  createContext
15
15
  } from "./TVCIHLER.jsx";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./UFYZ7HLU.jsx";
7
7
  import {
8
8
  useEnvironmentContext
9
- } from "./D2Z5BEON.jsx";
9
+ } from "./E2L62MKC.jsx";
10
10
  import {
11
11
  createContext
12
12
  } from "./TVCIHLER.jsx";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  ark
3
3
  } from "./UFYZ7HLU.jsx";
4
- import {
5
- useEnvironmentContext
6
- } from "./D2Z5BEON.jsx";
7
4
  import {
8
5
  useLocaleContext
9
6
  } from "./YUC6JE7K.jsx";
7
+ import {
8
+ useEnvironmentContext
9
+ } from "./E2L62MKC.jsx";
10
10
  import {
11
11
  createContext
12
12
  } from "./TVCIHLER.jsx";
@@ -13,12 +13,12 @@ import {
13
13
  import {
14
14
  ark
15
15
  } from "./UFYZ7HLU.jsx";
16
- import {
17
- useEnvironmentContext
18
- } from "./D2Z5BEON.jsx";
19
16
  import {
20
17
  useLocaleContext
21
18
  } from "./YUC6JE7K.jsx";
19
+ import {
20
+ useEnvironmentContext
21
+ } from "./E2L62MKC.jsx";
22
22
  import {
23
23
  createContext
24
24
  } from "./TVCIHLER.jsx";
@@ -1,7 +1,7 @@
1
1
  import { createSplitProps } from './ZMHI4GDJ.js';
2
2
  import { ark } from './EPLBB4QN.js';
3
+ import { useEnvironmentContext } from './YO2MCGXO.js';
3
4
  import { useLocaleContext } from './OKZ64GSY.js';
4
- import { useEnvironmentContext } from './YMMMHJJS.js';
5
5
  import { createContext } from './TROPIN4C.js';
6
6
  import { runIfFn } from './DT73WLR4.js';
7
7
  import { __export } from './ESLJRKWD.js';
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useFieldsetContext
3
- } from "./ZYF7GVNI.jsx";
3
+ } from "./JY6PMVAK.jsx";
4
4
  import {
5
5
  composeRefs
6
6
  } from "./DOBZPYAN.jsx";
@@ -10,6 +10,9 @@ import {
10
10
  import {
11
11
  ark
12
12
  } from "./UFYZ7HLU.jsx";
13
+ import {
14
+ useEnvironmentContext
15
+ } from "./E2L62MKC.jsx";
13
16
  import {
14
17
  createContext
15
18
  } from "./TVCIHLER.jsx";
@@ -77,7 +80,7 @@ var FieldRequiredIndicator = (props) => {
77
80
  import { mergeProps as mergeProps7 } from "@zag-js/solid";
78
81
 
79
82
  // src/components/field/use-field.ts
80
- import { ariaAttr, dataAttr, getWindow } from "@zag-js/dom-query";
83
+ import { ariaAttr, dataAttr } from "@zag-js/dom-query";
81
84
  import { createMemo, createSignal, createUniqueId, mergeProps as mergeProps6, onCleanup, onMount } from "solid-js";
82
85
 
83
86
  // src/components/field/field.anatomy.ts
@@ -97,6 +100,7 @@ var parts = fieldAnatomy.build();
97
100
  // src/components/field/use-field.ts
98
101
  var useField = (props) => {
99
102
  const fieldset = useFieldsetContext();
103
+ const env = useEnvironmentContext();
100
104
  const fieldProps = mergeProps6(
101
105
  { disabled: Boolean(fieldset?.().disabled), required: false, invalid: false, readOnly: false },
102
106
  props
@@ -112,13 +116,13 @@ var useField = (props) => {
112
116
  onMount(() => {
113
117
  const rootNode = rootRef();
114
118
  if (!rootNode) return;
115
- const win = getWindow(rootNode);
116
- const doc = win.document;
117
119
  const checkTextElements = () => {
118
- setHasErrorText(!!doc.getElementById(errorTextId));
119
- setHasHelperText(!!doc.getElementById(helperTextId));
120
+ const docOrShadowRoot = env().getRootNode();
121
+ setHasErrorText(!!docOrShadowRoot.getElementById(errorTextId));
122
+ setHasHelperText(!!docOrShadowRoot.getElementById(helperTextId));
120
123
  };
121
124
  checkTextElements();
125
+ const win = env().getWindow();
122
126
  const observer = new win.MutationObserver(checkTextElements);
123
127
  observer.observe(rootNode, { childList: true, subtree: true });
124
128
  onCleanup(() => observer.disconnect());
@@ -1,6 +1,6 @@
1
1
  import { createSplitProps } from './ZMHI4GDJ.js';
2
2
  import { ark } from './EPLBB4QN.js';
3
- import { useEnvironmentContext } from './YMMMHJJS.js';
3
+ import { useEnvironmentContext } from './YO2MCGXO.js';
4
4
  import { createContext } from './TROPIN4C.js';
5
5
  import { runIfFn } from './DT73WLR4.js';
6
6
  import { __export } from './ESLJRKWD.js';
@@ -1,7 +1,7 @@
1
1
  import { createSplitProps } from './ZMHI4GDJ.js';
2
2
  import { ark } from './EPLBB4QN.js';
3
+ import { useEnvironmentContext } from './YO2MCGXO.js';
3
4
  import { useLocaleContext } from './OKZ64GSY.js';
4
- import { useEnvironmentContext } from './YMMMHJJS.js';
5
5
  import { createContext } from './TROPIN4C.js';
6
6
  import { runIfFn } from './DT73WLR4.js';
7
7
  import { __export } from './ESLJRKWD.js';
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  collapsible_exports,
3
3
  useCollapsibleContext
4
- } from "./TXKDDZVE.jsx";
4
+ } from "./Z2BXVXSV.jsx";
5
5
  import {
6
6
  RenderStrategyProvider,
7
7
  splitRenderStrategyProps,
@@ -13,12 +13,12 @@ import {
13
13
  import {
14
14
  ark
15
15
  } from "./UFYZ7HLU.jsx";
16
- import {
17
- useEnvironmentContext
18
- } from "./D2Z5BEON.jsx";
19
16
  import {
20
17
  useLocaleContext
21
18
  } from "./YUC6JE7K.jsx";
19
+ import {
20
+ useEnvironmentContext
21
+ } from "./E2L62MKC.jsx";
22
22
  import {
23
23
  createContext
24
24
  } from "./TVCIHLER.jsx";
@@ -2,8 +2,8 @@ import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext }
2
2
  import { composeRefs } from './XN6EERRM.js';
3
3
  import { createSplitProps } from './ZMHI4GDJ.js';
4
4
  import { ark } from './EPLBB4QN.js';
5
+ import { useEnvironmentContext } from './YO2MCGXO.js';
5
6
  import { useLocaleContext } from './OKZ64GSY.js';
6
- import { useEnvironmentContext } from './YMMMHJJS.js';
7
7
  import { createContext } from './TROPIN4C.js';
8
8
  import { runIfFn } from './DT73WLR4.js';
9
9
  import { __export } from './ESLJRKWD.js';
@@ -1,5 +1,5 @@
1
1
  import { ark } from './EPLBB4QN.js';
2
- import { useEnvironmentContext } from './YMMMHJJS.js';
2
+ import { useEnvironmentContext } from './YO2MCGXO.js';
3
3
  import { createComponent, mergeProps } from 'solid-js/web';
4
4
  import { downloadFile } from '@zag-js/file-utils';
5
5
  import { splitProps } from 'solid-js';
@@ -4,12 +4,12 @@ import {
4
4
  import {
5
5
  ark
6
6
  } from "./UFYZ7HLU.jsx";
7
- import {
8
- useEnvironmentContext
9
- } from "./D2Z5BEON.jsx";
10
7
  import {
11
8
  useLocaleContext
12
9
  } from "./YUC6JE7K.jsx";
10
+ import {
11
+ useEnvironmentContext
12
+ } from "./E2L62MKC.jsx";
13
13
  import {
14
14
  createContext
15
15
  } from "./TVCIHLER.jsx";
@@ -4,12 +4,12 @@ import {
4
4
  import {
5
5
  ark
6
6
  } from "./UFYZ7HLU.jsx";
7
- import {
8
- useEnvironmentContext
9
- } from "./D2Z5BEON.jsx";
10
7
  import {
11
8
  useLocaleContext
12
9
  } from "./YUC6JE7K.jsx";
10
+ import {
11
+ useEnvironmentContext
12
+ } from "./E2L62MKC.jsx";
13
13
  import {
14
14
  createContext
15
15
  } from "./TVCIHLER.jsx";
@@ -4,6 +4,9 @@ import {
4
4
  import {
5
5
  ark
6
6
  } from "./UFYZ7HLU.jsx";
7
+ import {
8
+ useEnvironmentContext
9
+ } from "./E2L62MKC.jsx";
7
10
  import {
8
11
  createContext
9
12
  } from "./TVCIHLER.jsx";
@@ -55,7 +58,7 @@ var FieldsetLegend = (props) => {
55
58
  import { mergeProps as mergeProps5 } from "@zag-js/solid";
56
59
 
57
60
  // src/components/fieldset/use-fieldset.ts
58
- import { getWindow } from "@zag-js/dom-query";
61
+ import { dataAttr } from "@zag-js/dom-query";
59
62
  import { createEffect, createMemo, createSignal, createUniqueId, mergeProps as mergeProps4, onCleanup } from "solid-js";
60
63
 
61
64
  // src/components/fieldset/fieldset.anatomy.ts
@@ -65,6 +68,7 @@ var parts = fieldsetAnatomy.build();
65
68
 
66
69
  // src/components/fieldset/use-fieldset.ts
67
70
  var useFieldset = (props) => {
71
+ const env = useEnvironmentContext();
68
72
  const mergedProps = mergeProps4({ disabled: false, invalid: false }, runIfFn(props));
69
73
  let rootRef;
70
74
  const id = mergedProps.id ?? createUniqueId();
@@ -75,13 +79,13 @@ var useFieldset = (props) => {
75
79
  createEffect(() => {
76
80
  const rootNode = rootRef;
77
81
  if (!rootNode) return;
78
- const win = getWindow(rootNode);
79
- const doc = win.document;
80
82
  const checkTextElements = () => {
81
- setHasErrorText(!!doc.getElementById(errorTextId));
82
- setHasHelperText(!!doc.getElementById(helperTextId));
83
+ const docOrShadowRoot = env().getRootNode();
84
+ setHasErrorText(!!docOrShadowRoot.getElementById(errorTextId));
85
+ setHasHelperText(!!docOrShadowRoot.getElementById(helperTextId));
83
86
  };
84
87
  checkTextElements();
88
+ const win = env().getWindow();
85
89
  const observer = new win.MutationObserver(checkTextElements);
86
90
  observer.observe(rootNode, { childList: true, subtree: true });
87
91
  onCleanup(() => observer.disconnect());
@@ -122,7 +126,6 @@ var useFieldset = (props) => {
122
126
  getErrorTextProps
123
127
  }));
124
128
  };
125
- var dataAttr = (condition) => condition ? "" : void 0;
126
129
 
127
130
  // src/components/fieldset/fieldset-root.tsx
128
131
  var FieldsetRoot = (props) => {
@@ -163,6 +166,7 @@ export {
163
166
  FieldsetHelperText,
164
167
  FieldsetLegend,
165
168
  fieldsetAnatomy,
169
+ useFieldset,
166
170
  FieldsetRoot,
167
171
  FieldsetRootProvider,
168
172
  fieldset_exports
@@ -1,10 +1,10 @@
1
- import { useFieldContext } from './UL6NTZA6.js';
2
1
  import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './7S3N5UQH.js';
2
+ import { useFieldContext } from './NC7W2KIE.js';
3
3
  import { composeRefs } from './XN6EERRM.js';
4
4
  import { createSplitProps } from './ZMHI4GDJ.js';
5
5
  import { ark } from './EPLBB4QN.js';
6
+ import { useEnvironmentContext } from './YO2MCGXO.js';
6
7
  import { useLocaleContext } from './OKZ64GSY.js';
7
- import { useEnvironmentContext } from './YMMMHJJS.js';
8
8
  import { createContext } from './TROPIN4C.js';
9
9
  import { runIfFn } from './DT73WLR4.js';
10
10
  import { __export } from './ESLJRKWD.js';
@@ -217,7 +217,7 @@ var useSelect = (props) => {
217
217
  // src/components/select/select-root.tsx
218
218
  var SelectRoot = (props) => {
219
219
  const [presenceProps, selectProps] = splitPresenceProps(props);
220
- const [useSelectProps, localProps] = createSplitProps()(selectProps, ["closeOnSelect", "collection", "composite", "defaultHighlightedValue", "defaultOpen", "defaultValue", "deselectable", "disabled", "form", "highlightedValue", "id", "ids", "invalid", "loopFocus", "multiple", "name", "onFocusOutside", "onHighlightChange", "onInteractOutside", "onOpenChange", "onPointerDownOutside", "onValueChange", "open", "positioning", "readOnly", "required", "scrollToIndexFn", "value"]);
220
+ const [useSelectProps, localProps] = createSplitProps()(selectProps, ["closeOnSelect", "collection", "composite", "defaultHighlightedValue", "defaultOpen", "defaultValue", "deselectable", "disabled", "form", "highlightedValue", "id", "ids", "invalid", "loopFocus", "multiple", "name", "onFocusOutside", "onHighlightChange", "onInteractOutside", "onOpenChange", "onPointerDownOutside", "onSelect", "onValueChange", "open", "positioning", "readOnly", "required", "scrollToIndexFn", "value"]);
221
221
  const select2 = useSelect(useSelectProps);
222
222
  const presenceApi = usePresence(mergeProps(() => ({
223
223
  present: select2().open
@@ -1,8 +1,8 @@
1
- import { useFieldContext } from './UL6NTZA6.js';
1
+ import { useFieldContext } from './NC7W2KIE.js';
2
2
  import { createSplitProps } from './ZMHI4GDJ.js';
3
3
  import { ark } from './EPLBB4QN.js';
4
+ import { useEnvironmentContext } from './YO2MCGXO.js';
4
5
  import { useLocaleContext } from './OKZ64GSY.js';
5
- import { useEnvironmentContext } from './YMMMHJJS.js';
6
6
  import { createContext } from './TROPIN4C.js';
7
7
  import { runIfFn } from './DT73WLR4.js';
8
8
  import { __export } from './ESLJRKWD.js';
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  useFieldContext
3
- } from "./4HPQVVRP.jsx";
3
+ } from "./HQOIDGRU.jsx";
4
4
  import {
5
5
  createSplitProps
6
6
  } from "./6WEDGJKQ.jsx";
7
7
  import {
8
8
  ark
9
9
  } from "./UFYZ7HLU.jsx";
10
- import {
11
- useEnvironmentContext
12
- } from "./D2Z5BEON.jsx";
13
10
  import {
14
11
  useLocaleContext
15
12
  } from "./YUC6JE7K.jsx";
13
+ import {
14
+ useEnvironmentContext
15
+ } from "./E2L62MKC.jsx";
16
16
  import {
17
17
  createContext
18
18
  } from "./TVCIHLER.jsx";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  useFieldContext
3
- } from "./4HPQVVRP.jsx";
3
+ } from "./HQOIDGRU.jsx";
4
4
  import {
5
5
  createSplitProps
6
6
  } from "./6WEDGJKQ.jsx";
7
7
  import {
8
8
  ark
9
9
  } from "./UFYZ7HLU.jsx";
10
- import {
11
- useEnvironmentContext
12
- } from "./D2Z5BEON.jsx";
13
10
  import {
14
11
  useLocaleContext
15
12
  } from "./YUC6JE7K.jsx";
13
+ import {
14
+ useEnvironmentContext
15
+ } from "./E2L62MKC.jsx";
16
16
  import {
17
17
  createContext
18
18
  } from "./TVCIHLER.jsx";
@@ -1,7 +1,7 @@
1
1
  import { createSplitProps } from './ZMHI4GDJ.js';
2
2
  import { ark } from './EPLBB4QN.js';
3
+ import { useEnvironmentContext } from './YO2MCGXO.js';
3
4
  import { useLocaleContext } from './OKZ64GSY.js';
4
- import { useEnvironmentContext } from './YMMMHJJS.js';
5
5
  import { createContext } from './TROPIN4C.js';
6
6
  import { runIfFn } from './DT73WLR4.js';
7
7
  import { __export } from './ESLJRKWD.js';
@@ -1,6 +1,6 @@
1
1
  import { ark } from './EPLBB4QN.js';
2
+ import { useEnvironmentContext } from './YO2MCGXO.js';
2
3
  import { useLocaleContext } from './OKZ64GSY.js';
3
- import { useEnvironmentContext } from './YMMMHJJS.js';
4
4
  import { createContext } from './TROPIN4C.js';
5
5
  import { __export } from './ESLJRKWD.js';
6
6
  import * as toast2 from '@zag-js/toast';
@@ -1,7 +1,7 @@
1
1
  import { createSplitProps } from './ZMHI4GDJ.js';
2
2
  import { ark } from './EPLBB4QN.js';
3
+ import { useEnvironmentContext } from './YO2MCGXO.js';
3
4
  import { useLocaleContext } from './OKZ64GSY.js';
4
- import { useEnvironmentContext } from './YMMMHJJS.js';
5
5
  import { createContext } from './TROPIN4C.js';
6
6
  import { runIfFn } from './DT73WLR4.js';
7
7
  import { __export } from './ESLJRKWD.js';
@@ -4,12 +4,12 @@ import {
4
4
  import {
5
5
  ark
6
6
  } from "./UFYZ7HLU.jsx";
7
- import {
8
- useEnvironmentContext
9
- } from "./D2Z5BEON.jsx";
10
7
  import {
11
8
  useLocaleContext
12
9
  } from "./YUC6JE7K.jsx";
10
+ import {
11
+ useEnvironmentContext
12
+ } from "./E2L62MKC.jsx";
13
13
  import {
14
14
  createContext
15
15
  } from "./TVCIHLER.jsx";
@@ -1,8 +1,8 @@
1
- import { useFieldContext } from './UL6NTZA6.js';
1
+ import { useFieldContext } from './NC7W2KIE.js';
2
2
  import { createSplitProps } from './ZMHI4GDJ.js';
3
3
  import { ark } from './EPLBB4QN.js';
4
+ import { useEnvironmentContext } from './YO2MCGXO.js';
4
5
  import { useLocaleContext } from './OKZ64GSY.js';
5
- import { useEnvironmentContext } from './YMMMHJJS.js';
6
6
  import { createContext } from './TROPIN4C.js';
7
7
  import { runIfFn } from './DT73WLR4.js';
8
8
  import { __export } from './ESLJRKWD.js';
@@ -1,13 +1,14 @@
1
- import { useFieldsetContext } from './XN3MSM3M.js';
1
+ import { useFieldsetContext } from './6HQNY7WM.js';
2
2
  import { composeRefs } from './XN6EERRM.js';
3
3
  import { createSplitProps } from './ZMHI4GDJ.js';
4
4
  import { ark } from './EPLBB4QN.js';
5
+ import { useEnvironmentContext } from './YO2MCGXO.js';
5
6
  import { createContext } from './TROPIN4C.js';
6
7
  import { __export } from './ESLJRKWD.js';
7
8
  import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
8
9
  import { mergeProps } from '@zag-js/solid';
9
10
  import { splitProps, onMount, onCleanup, Show, mergeProps as mergeProps$2, createSignal, createUniqueId, createMemo } from 'solid-js';
10
- import { getWindow, dataAttr, ariaAttr } from '@zag-js/dom-query';
11
+ import { dataAttr, ariaAttr } from '@zag-js/dom-query';
11
12
  import { createAnatomy } from '@zag-js/anatomy';
12
13
  import { autoresizeTextarea } from '@zag-js/auto-resize';
13
14
 
@@ -81,6 +82,7 @@ var parts = fieldAnatomy.build();
81
82
  // src/components/field/use-field.ts
82
83
  var useField = (props) => {
83
84
  const fieldset = useFieldsetContext();
85
+ const env = useEnvironmentContext();
84
86
  const fieldProps = mergeProps$2(
85
87
  { disabled: Boolean(fieldset?.().disabled), required: false, invalid: false, readOnly: false },
86
88
  props
@@ -96,13 +98,13 @@ var useField = (props) => {
96
98
  onMount(() => {
97
99
  const rootNode = rootRef();
98
100
  if (!rootNode) return;
99
- const win = getWindow(rootNode);
100
- const doc = win.document;
101
101
  const checkTextElements = () => {
102
- setHasErrorText(!!doc.getElementById(errorTextId));
103
- setHasHelperText(!!doc.getElementById(helperTextId));
102
+ const docOrShadowRoot = env().getRootNode();
103
+ setHasErrorText(!!docOrShadowRoot.getElementById(errorTextId));
104
+ setHasHelperText(!!docOrShadowRoot.getElementById(helperTextId));
104
105
  };
105
106
  checkTextElements();
107
+ const win = env().getWindow();
106
108
  const observer = new win.MutationObserver(checkTextElements);
107
109
  observer.observe(rootNode, { childList: true, subtree: true });
108
110
  onCleanup(() => observer.disconnect());
@@ -1,8 +1,8 @@
1
- import { useFieldContext } from './UL6NTZA6.js';
1
+ import { useFieldContext } from './NC7W2KIE.js';
2
2
  import { createSplitProps } from './ZMHI4GDJ.js';
3
3
  import { ark } from './EPLBB4QN.js';
4
+ import { useEnvironmentContext } from './YO2MCGXO.js';
4
5
  import { useLocaleContext } from './OKZ64GSY.js';
5
- import { useEnvironmentContext } from './YMMMHJJS.js';
6
6
  import { createContext } from './TROPIN4C.js';
7
7
  import { runIfFn } from './DT73WLR4.js';
8
8
  import { __export } from './ESLJRKWD.js';
@@ -1,8 +1,8 @@
1
1
  import { createMachine } from './PKUUD527.js';
2
2
  import { createSplitProps as createSplitProps$1 } from './ZMHI4GDJ.js';
3
3
  import { ark } from './EPLBB4QN.js';
4
+ import { useEnvironmentContext } from './YO2MCGXO.js';
4
5
  import { useLocaleContext } from './OKZ64GSY.js';
5
- import { useEnvironmentContext } from './YMMMHJJS.js';
6
6
  import { createContext } from './TROPIN4C.js';
7
7
  import { runIfFn } from './DT73WLR4.js';
8
8
  import { __export } from './ESLJRKWD.js';
@@ -182,12 +182,16 @@ function setupGlobalFocusEvents(root) {
182
182
  const win = getWindow(root);
183
183
  const doc = getDocument(root);
184
184
  let focus = win.HTMLElement.prototype.focus;
185
- win.HTMLElement.prototype.focus = function() {
185
+ function patchedFocus() {
186
186
  currentModality = "virtual";
187
187
  triggerChangeHandlers("virtual", null);
188
188
  hasEventBeforeFocus = true;
189
189
  focus.apply(this, arguments);
190
- };
190
+ }
191
+ Object.defineProperty(win.HTMLElement.prototype, "focus", {
192
+ configurable: true,
193
+ value: patchedFocus
194
+ });
191
195
  doc.addEventListener("keydown", handleKeyboardEvent, true);
192
196
  doc.addEventListener("keyup", handleKeyboardEvent, true);
193
197
  doc.addEventListener("click", handleClickEvent, true);
@@ -3,8 +3,8 @@ import { composeRefs } from './XN6EERRM.js';
3
3
  import { splitRenderStrategyProps, RenderStrategyProvider, useRenderStrategyContext } from './QFAL6GWC.js';
4
4
  import { createSplitProps } from './ZMHI4GDJ.js';
5
5
  import { ark } from './EPLBB4QN.js';
6
+ import { useEnvironmentContext } from './YO2MCGXO.js';
6
7
  import { useLocaleContext } from './OKZ64GSY.js';
7
- import { useEnvironmentContext } from './YMMMHJJS.js';
8
8
  import { createContext } from './TROPIN4C.js';
9
9
  import { runIfFn } from './DT73WLR4.js';
10
10
  import { __export } from './ESLJRKWD.js';
@@ -1,7 +1,7 @@
1
1
  import { createSplitProps } from './ZMHI4GDJ.js';
2
2
  import { ark } from './EPLBB4QN.js';
3
+ import { useEnvironmentContext } from './YO2MCGXO.js';
3
4
  import { useLocaleContext } from './OKZ64GSY.js';
4
- import { useEnvironmentContext } from './YMMMHJJS.js';
5
5
  import { createContext } from './TROPIN4C.js';
6
6
  import { runIfFn } from './DT73WLR4.js';
7
7
  import { __export } from './ESLJRKWD.js';