@ark-ui/solid 5.9.2 → 5.11.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 (210) hide show
  1. package/dist/chunk/{Q557L2RK.js → 25PYT2EL.js} +1 -1
  2. package/dist/chunk/{CWSU5VHJ.jsx → 2UVDYZIY.jsx} +4 -4
  3. package/dist/chunk/{BXECMIPR.jsx → 2WR5J3OZ.jsx} +8 -8
  4. package/dist/chunk/{N2RML4J6.jsx → 35XSFKD5.jsx} +4 -4
  5. package/dist/chunk/{VVFQKYUI.jsx → 3DOPQCHJ.jsx} +4 -4
  6. package/dist/chunk/{WOKAVEII.js → 4B42LT3B.js} +1 -1
  7. package/dist/chunk/{JSS5JFN7.js → 4B53AHD6.js} +1 -1
  8. package/dist/chunk/{TCX2JWKV.jsx → 4FUKCXPR.jsx} +5 -5
  9. package/dist/chunk/{7PZAG3KV.jsx → 4UNGYCFT.jsx} +4 -4
  10. package/dist/chunk/{G4LH4ERN.js → 4V2VMH2Z.js} +1 -1
  11. package/dist/chunk/{LU3IF34M.jsx → 5U4KEVIU.jsx} +4 -4
  12. package/dist/chunk/{K6SQP6D6.js → 5XIPATMW.js} +1 -1
  13. package/dist/chunk/{QTCJZQD2.js → 6HQNY7WM.js} +3 -1
  14. package/dist/chunk/{Y23TQ3QD.js → 74W4D3KY.js} +2 -2
  15. package/dist/chunk/{FFZTH4BQ.js → 7E5K2JFP.js} +2 -2
  16. package/dist/chunk/{K43DWOSN.js → 7YHVIYNP.js} +1 -1
  17. package/dist/chunk/{EWPKE75H.js → AIFOKNNI.js} +1 -1
  18. package/dist/chunk/{YJ6JVNXC.jsx → AKYIM67Z.jsx} +6 -5
  19. package/dist/chunk/{NUV5TWIS.js → ASBQTDT2.js} +1 -1
  20. package/dist/chunk/{KZCPP2UJ.jsx → AUVF4L3Q.jsx} +5 -5
  21. package/dist/chunk/{7WRB2BF6.jsx → C5TKHQPT.jsx} +5 -5
  22. package/dist/chunk/{CRRTWY6S.js → CDA7SUTE.js} +2 -2
  23. package/dist/chunk/{TCLYH3IR.js → CWTELADB.js} +1 -1
  24. package/dist/chunk/{OESRMFGZ.js → D65IYCJS.js} +2 -2
  25. package/dist/chunk/{HD73LMEZ.jsx → E2L62MKC.jsx} +4 -4
  26. package/dist/chunk/{PT4TFOAY.js → EJDY3MNV.js} +1 -1
  27. package/dist/chunk/{DSXX24ZB.js → FQGMWBGA.js} +3 -3
  28. package/dist/chunk/{DOU3J35G.js → GAB5O55Q.js} +1 -1
  29. package/dist/chunk/{4FQIG4V7.jsx → GDPPSUOA.jsx} +5 -5
  30. package/dist/chunk/{356AM4NT.jsx → GKS4JQZJ.jsx} +4 -4
  31. package/dist/chunk/{BLLB57FT.js → GQ6E3MY2.js} +1 -1
  32. package/dist/chunk/{6VSMEEYE.jsx → HDKSS6KE.jsx} +1 -1
  33. package/dist/chunk/{E22WHIVG.js → HKFF76YQ.js} +1 -1
  34. package/dist/chunk/{UNEUVTYY.jsx → HP3ZGMDZ.jsx} +4 -4
  35. package/dist/chunk/{RNEZ7CPM.jsx → HQOIDGRU.jsx} +10 -6
  36. package/dist/chunk/{LTZUX6NG.js → HX25P762.js} +1 -1
  37. package/dist/chunk/{C77V6LMM.js → HXBZ7BRX.js} +2 -2
  38. package/dist/chunk/{KVNEQSPE.js → J3ETCCNJ.js} +2 -2
  39. package/dist/chunk/{BUX3MXSX.js → J6KTD7C4.js} +1 -1
  40. package/dist/chunk/{JGEZ3CEJ.jsx → JEPST7BN.jsx} +5 -5
  41. package/dist/chunk/{MJTDOSTD.js → JFFJERKH.js} +2 -2
  42. package/dist/chunk/{XVFKSENF.jsx → JQSSQ4LS.jsx} +4 -4
  43. package/dist/chunk/{YTV53GNE.jsx → JUBTXT4B.jsx} +5 -5
  44. package/dist/chunk/{5B353N2U.js → JXJHXSF4.js} +1 -1
  45. package/dist/chunk/{G4YMJ55Z.jsx → JY6PMVAK.jsx} +11 -8
  46. package/dist/chunk/{PTQ2ZK6W.jsx → KAYDBHSW.jsx} +5 -5
  47. package/dist/chunk/{ERVD3RNL.js → L4PQJRRA.js} +2 -2
  48. package/dist/chunk/{LOVRMSUE.jsx → LKPEYZZO.jsx} +5 -5
  49. package/dist/chunk/{MTNAO4AP.js → LNLL2OTD.js} +1 -1
  50. package/dist/chunk/{TNFESXDP.jsx → MM6NNI6M.jsx} +4 -4
  51. package/dist/chunk/MTT5ESIK.jsx +400 -0
  52. package/dist/chunk/{YTOMOC2N.jsx → N3H47LNB.jsx} +4 -4
  53. package/dist/chunk/{PJOT65K5.js → N65DCNIH.js} +1 -1
  54. package/dist/chunk/{MNJ5H4O3.js → NC7W2KIE.js} +8 -6
  55. package/dist/chunk/{ODWQP5BE.js → NEP3K5KL.js} +2 -2
  56. package/dist/chunk/{4UCWZUKZ.jsx → NPHS6PVV.jsx} +4 -4
  57. package/dist/chunk/{LMAXB47P.js → O5A5KQPC.js} +1 -1
  58. package/dist/chunk/{BK7OIA6A.js → OA4CU2PL.js} +1 -1
  59. package/dist/chunk/{ZP3I6MQ6.jsx → OKNWZYMH.jsx} +5 -5
  60. package/dist/chunk/OO4YLIXE.js +352 -0
  61. package/dist/chunk/{ZS4PGVV2.js → OVFUGKNG.js} +1 -1
  62. package/dist/chunk/{AO67VHVB.js → P7WR6WX5.js} +2 -2
  63. package/dist/chunk/{TMFXEZZD.jsx → POJRD725.jsx} +4 -4
  64. package/dist/chunk/{SMCXE4F2.jsx → PPQSRJ6X.jsx} +9 -8
  65. package/dist/chunk/{ST2DCKFC.jsx → PVGCB42Y.jsx} +5 -5
  66. package/dist/chunk/{MMBCKNJD.jsx → QC5C6JJA.jsx} +5 -5
  67. package/dist/chunk/{YP3UNDRI.js → QJQKZL6X.js} +1 -1
  68. package/dist/chunk/{IPDSXUQA.jsx → RC4UV6HP.jsx} +5 -5
  69. package/dist/chunk/{MUCM2BGL.js → RFQ7YTWX.js} +3 -3
  70. package/dist/chunk/{SIMDMQSR.jsx → RULCXX3A.jsx} +4 -4
  71. package/dist/chunk/{GYVCXFG6.jsx → S4OS4UYL.jsx} +5 -5
  72. package/dist/chunk/{U6IISAPB.js → SFEMNN6F.js} +2 -2
  73. package/dist/chunk/{GD2T6MEV.js → SGY2KGDL.js} +1 -1
  74. package/dist/chunk/{ASMPKIFP.jsx → SRW6BLJ4.jsx} +5 -5
  75. package/dist/chunk/{E5BXBABH.js → T7G3DPEM.js} +1 -1
  76. package/dist/chunk/{R6OIHEOD.jsx → TTIVTOWQ.jsx} +1 -1
  77. package/dist/chunk/{SX447CAN.js → UAANHQJZ.js} +1 -1
  78. package/dist/chunk/{2A55KDMS.js → UU6XEYFI.js} +1 -1
  79. package/dist/chunk/{DPBPY5OV.jsx → UW5WJ2LL.jsx} +4 -4
  80. package/dist/chunk/{QYAKJNEK.jsx → V2GDFVDR.jsx} +1 -1
  81. package/dist/chunk/{JOQTXJFL.js → VALZYT6I.js} +1 -1
  82. package/dist/chunk/{JV6QCOSW.js → VEV5HF3M.js} +2 -2
  83. package/dist/chunk/{5O6KVLS3.jsx → WG67YHCV.jsx} +5 -5
  84. package/dist/chunk/{2ROWZ6DR.jsx → WHXDBQDP.jsx} +4 -4
  85. package/dist/chunk/{GMRKWCAS.jsx → WOUVNHGI.jsx} +5 -5
  86. package/dist/chunk/{IS2ORUHE.js → WTNRGPVN.js} +1 -1
  87. package/dist/chunk/{KEYZVEKA.jsx → XIT3ASUI.jsx} +8 -8
  88. package/dist/chunk/{KG6EEKBP.jsx → XKBIT7L5.jsx} +5 -5
  89. package/dist/chunk/{J2UZITPB.js → XQNGFJ2M.js} +1 -1
  90. package/dist/chunk/{T3UB5H27.jsx → XUH2TAUG.jsx} +5 -5
  91. package/dist/chunk/{2OHIK5BX.jsx → YAOPG62Z.jsx} +4 -4
  92. package/dist/chunk/{YMMMHJJS.js → YO2MCGXO.js} +1 -1
  93. package/dist/chunk/{QDMXYDMC.jsx → ZNBZTQ46.jsx} +5 -5
  94. package/dist/chunk/{5TX7UNRJ.jsx → ZTNABPZL.jsx} +5 -5
  95. package/dist/components/accordion/index.js +1 -1
  96. package/dist/components/accordion/index.jsx +5 -5
  97. package/dist/components/angle-slider/index.js +1 -1
  98. package/dist/components/angle-slider/index.jsx +4 -4
  99. package/dist/components/avatar/index.js +1 -1
  100. package/dist/components/avatar/index.jsx +4 -4
  101. package/dist/components/carousel/index.js +1 -1
  102. package/dist/components/carousel/index.jsx +4 -4
  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 +6 -6
  106. package/dist/components/clipboard/index.js +1 -1
  107. package/dist/components/clipboard/index.jsx +4 -4
  108. package/dist/components/collapsible/index.js +1 -1
  109. package/dist/components/collapsible/index.jsx +4 -4
  110. package/dist/components/color-picker/index.d.ts +1 -1
  111. package/dist/components/color-picker/index.js +1 -1
  112. package/dist/components/color-picker/index.jsx +7 -7
  113. package/dist/components/combobox/index.d.ts +4 -3
  114. package/dist/components/combobox/index.js +1 -1
  115. package/dist/components/combobox/index.jsx +9 -9
  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 +5 -5
  119. package/dist/components/dialog/index.js +1 -1
  120. package/dist/components/dialog/index.jsx +5 -5
  121. package/dist/components/download-trigger/index.js +1 -1
  122. package/dist/components/download-trigger/index.jsx +4 -4
  123. package/dist/components/editable/index.js +1 -1
  124. package/dist/components/editable/index.jsx +6 -6
  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 +6 -3
  128. package/dist/components/fieldset/index.d.ts +5 -6
  129. package/dist/components/fieldset/index.js +1 -1
  130. package/dist/components/fieldset/index.jsx +5 -2
  131. package/dist/components/file-upload/index.js +1 -1
  132. package/dist/components/file-upload/index.jsx +6 -6
  133. package/dist/components/floating-panel/index.js +1 -1
  134. package/dist/components/floating-panel/index.jsx +5 -5
  135. package/dist/components/format/index.jsx +2 -2
  136. package/dist/components/frame/index.js +1 -1
  137. package/dist/components/frame/index.jsx +3 -3
  138. package/dist/components/hover-card/index.js +1 -1
  139. package/dist/components/hover-card/index.jsx +5 -5
  140. package/dist/components/index.d.ts +3 -1
  141. package/dist/components/index.js +49 -48
  142. package/dist/components/index.jsx +414 -388
  143. package/dist/components/listbox/index.js +1 -1
  144. package/dist/components/listbox/index.jsx +5 -5
  145. package/dist/components/menu/index.js +1 -1
  146. package/dist/components/menu/index.jsx +5 -5
  147. package/dist/components/number-input/index.js +1 -1
  148. package/dist/components/number-input/index.jsx +6 -6
  149. package/dist/components/pagination/index.js +1 -1
  150. package/dist/components/pagination/index.jsx +4 -4
  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 +6 -6
  156. package/dist/components/popover/index.js +1 -1
  157. package/dist/components/popover/index.jsx +5 -5
  158. package/dist/components/presence/index.jsx +2 -2
  159. package/dist/components/progress/index.js +1 -1
  160. package/dist/components/progress/index.jsx +4 -4
  161. package/dist/components/qr-code/index.js +1 -1
  162. package/dist/components/qr-code/index.jsx +4 -4
  163. package/dist/components/radio-group/index.js +1 -1
  164. package/dist/components/radio-group/index.jsx +4 -4
  165. package/dist/components/rating-group/index.js +1 -1
  166. package/dist/components/rating-group/index.jsx +6 -6
  167. package/dist/components/segment-group/index.js +1 -1
  168. package/dist/components/segment-group/index.jsx +4 -4
  169. package/dist/components/select/index.d.ts +2 -2
  170. package/dist/components/select/index.js +1 -1
  171. package/dist/components/select/index.jsx +9 -9
  172. package/dist/components/signature-pad/index.js +1 -1
  173. package/dist/components/signature-pad/index.jsx +6 -6
  174. package/dist/components/slider/index.js +1 -1
  175. package/dist/components/slider/index.jsx +4 -4
  176. package/dist/components/splitter/index.js +1 -1
  177. package/dist/components/splitter/index.jsx +4 -4
  178. package/dist/components/steps/index.js +1 -1
  179. package/dist/components/steps/index.jsx +4 -4
  180. package/dist/components/switch/index.js +1 -1
  181. package/dist/components/switch/index.jsx +6 -6
  182. package/dist/components/tabs/index.js +1 -1
  183. package/dist/components/tabs/index.jsx +5 -5
  184. package/dist/components/tags-input/index.js +1 -1
  185. package/dist/components/tags-input/index.jsx +6 -6
  186. package/dist/components/time-picker/index.js +1 -1
  187. package/dist/components/time-picker/index.jsx +5 -5
  188. package/dist/components/timer/index.js +1 -1
  189. package/dist/components/timer/index.jsx +4 -4
  190. package/dist/components/toast/index.js +1 -1
  191. package/dist/components/toast/index.jsx +4 -4
  192. package/dist/components/toggle-group/index.js +1 -1
  193. package/dist/components/toggle-group/index.jsx +4 -4
  194. package/dist/components/tooltip/index.js +1 -1
  195. package/dist/components/tooltip/index.jsx +5 -5
  196. package/dist/components/tour/index.js +1 -1
  197. package/dist/components/tour/index.jsx +5 -5
  198. package/dist/components/tree-view/index.js +1 -1
  199. package/dist/components/tree-view/index.jsx +7 -7
  200. package/dist/index.d.ts +3 -1
  201. package/dist/index.js +50 -49
  202. package/dist/index.jsx +414 -388
  203. package/dist/providers/environment/index.js +1 -1
  204. package/dist/providers/environment/index.jsx +2 -2
  205. package/dist/providers/index.js +1 -1
  206. package/dist/providers/index.jsx +2 -2
  207. package/package.json +56 -55
  208. package/dist/chunk/{IEGQ2BAU.jsx → BJ3QT4LE.jsx} +0 -0
  209. package/dist/chunk/{5I3KMKOJ.js → QBN5FEQF.js} +0 -0
  210. package/dist/chunk/{RHCMSWDF.jsx → WC2HBDLJ.jsx} +3 -3
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useFieldsetContext
3
- } from "./G4YMJ55Z.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,10 +1,10 @@
1
- import { useFieldContext } from './MNJ5H4O3.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 './YMMMHJJS.js';
7
6
  import { useLocaleContext } from './OKZ64GSY.js';
7
+ import { useEnvironmentContext } from './YO2MCGXO.js';
8
8
  import { createContext } from './TROPIN4C.js';
9
9
  import { runIfFn } from './DT73WLR4.js';
10
10
  import { __export } from './ESLJRKWD.js';
@@ -1,9 +1,9 @@
1
- import { collapsible_exports } from './GD2T6MEV.js';
1
+ import { collapsible_exports } from './SGY2KGDL.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 './YMMMHJJS.js';
6
5
  import { useLocaleContext } from './OKZ64GSY.js';
6
+ import { useEnvironmentContext } from './YO2MCGXO.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';
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useFieldContext
3
- } from "./RNEZ7CPM.jsx";
3
+ } from "./HQOIDGRU.jsx";
4
4
  import {
5
5
  createSplitProps
6
6
  } from "./6WEDGJKQ.jsx";
@@ -9,16 +9,16 @@ import {
9
9
  } from "./UFYZ7HLU.jsx";
10
10
  import {
11
11
  useEnvironmentContext
12
- } from "./HD73LMEZ.jsx";
13
- import {
14
- runIfFn
15
- } from "./KGOB2IMX.jsx";
12
+ } from "./E2L62MKC.jsx";
16
13
  import {
17
14
  useLocaleContext
18
15
  } from "./YUC6JE7K.jsx";
19
16
  import {
20
17
  createContext
21
18
  } from "./TVCIHLER.jsx";
19
+ import {
20
+ runIfFn
21
+ } from "./KGOB2IMX.jsx";
22
22
  import {
23
23
  __export
24
24
  } from "./7IUG3E2V.jsx";
@@ -1,10 +1,10 @@
1
- import { useFieldContext } from './MNJ5H4O3.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 './YMMMHJJS.js';
7
6
  import { useLocaleContext } from './OKZ64GSY.js';
7
+ import { useEnvironmentContext } from './YO2MCGXO.js';
8
8
  import { createContext } from './TROPIN4C.js';
9
9
  import { runIfFn } from './DT73WLR4.js';
10
10
  import { __export } from './ESLJRKWD.js';
@@ -9,16 +9,16 @@ import {
9
9
  } from "./UFYZ7HLU.jsx";
10
10
  import {
11
11
  useEnvironmentContext
12
- } from "./HD73LMEZ.jsx";
13
- import {
14
- runIfFn
15
- } from "./KGOB2IMX.jsx";
12
+ } from "./E2L62MKC.jsx";
16
13
  import {
17
14
  useLocaleContext
18
15
  } from "./YUC6JE7K.jsx";
19
16
  import {
20
17
  createContext
21
18
  } from "./TVCIHLER.jsx";
19
+ import {
20
+ runIfFn
21
+ } from "./KGOB2IMX.jsx";
22
22
  import {
23
23
  __export
24
24
  } from "./7IUG3E2V.jsx";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useFieldContext
3
- } from "./RNEZ7CPM.jsx";
3
+ } from "./HQOIDGRU.jsx";
4
4
  import {
5
5
  createSplitProps
6
6
  } from "./6WEDGJKQ.jsx";
@@ -9,16 +9,16 @@ import {
9
9
  } from "./UFYZ7HLU.jsx";
10
10
  import {
11
11
  useEnvironmentContext
12
- } from "./HD73LMEZ.jsx";
13
- import {
14
- runIfFn
15
- } from "./KGOB2IMX.jsx";
12
+ } from "./E2L62MKC.jsx";
16
13
  import {
17
14
  useLocaleContext
18
15
  } from "./YUC6JE7K.jsx";
19
16
  import {
20
17
  createContext
21
18
  } from "./TVCIHLER.jsx";
19
+ import {
20
+ runIfFn
21
+ } from "./KGOB2IMX.jsx";
22
22
  import {
23
23
  __export
24
24
  } from "./7IUG3E2V.jsx";
@@ -3,8 +3,8 @@ import { composeRefs } from './XN6EERRM.js';
3
3
  import { useRenderStrategyContext, splitRenderStrategyProps, RenderStrategyProvider } from './QFAL6GWC.js';
4
4
  import { createSplitProps } from './ZMHI4GDJ.js';
5
5
  import { ark } from './EPLBB4QN.js';
6
- import { useEnvironmentContext } from './YMMMHJJS.js';
7
6
  import { useLocaleContext } from './OKZ64GSY.js';
7
+ import { useEnvironmentContext } from './YO2MCGXO.js';
8
8
  import { createContext } from './TROPIN4C.js';
9
9
  import { runIfFn } from './DT73WLR4.js';
10
10
  import { __export } from './ESLJRKWD.js';
@@ -5,11 +5,14 @@ import {
5
5
  ark
6
6
  } from "./UFYZ7HLU.jsx";
7
7
  import {
8
- runIfFn
9
- } from "./KGOB2IMX.jsx";
8
+ useEnvironmentContext
9
+ } from "./E2L62MKC.jsx";
10
10
  import {
11
11
  createContext
12
12
  } from "./TVCIHLER.jsx";
13
+ import {
14
+ runIfFn
15
+ } from "./KGOB2IMX.jsx";
13
16
  import {
14
17
  __export
15
18
  } from "./7IUG3E2V.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) => {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  collapsible_exports,
3
3
  useCollapsibleContext
4
- } from "./2ROWZ6DR.jsx";
4
+ } from "./WHXDBQDP.jsx";
5
5
  import {
6
6
  RenderStrategyProvider,
7
7
  splitRenderStrategyProps,
@@ -15,16 +15,16 @@ import {
15
15
  } from "./UFYZ7HLU.jsx";
16
16
  import {
17
17
  useEnvironmentContext
18
- } from "./HD73LMEZ.jsx";
19
- import {
20
- runIfFn
21
- } from "./KGOB2IMX.jsx";
18
+ } from "./E2L62MKC.jsx";
22
19
  import {
23
20
  useLocaleContext
24
21
  } from "./YUC6JE7K.jsx";
25
22
  import {
26
23
  createContext
27
24
  } from "./TVCIHLER.jsx";
25
+ import {
26
+ runIfFn
27
+ } from "./KGOB2IMX.jsx";
28
28
  import {
29
29
  __export
30
30
  } from "./7IUG3E2V.jsx";
@@ -1,8 +1,8 @@
1
- import { useFieldContext } from './MNJ5H4O3.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 './YMMMHJJS.js';
5
4
  import { useLocaleContext } from './OKZ64GSY.js';
5
+ import { useEnvironmentContext } from './YO2MCGXO.js';
6
6
  import { createContext } from './TROPIN4C.js';
7
7
  import { runIfFn } from './DT73WLR4.js';
8
8
  import { __export } from './ESLJRKWD.js';
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useFieldContext
3
- } from "./RNEZ7CPM.jsx";
3
+ } from "./HQOIDGRU.jsx";
4
4
  import {
5
5
  createSplitProps
6
6
  } from "./6WEDGJKQ.jsx";
@@ -9,16 +9,16 @@ import {
9
9
  } from "./UFYZ7HLU.jsx";
10
10
  import {
11
11
  useEnvironmentContext
12
- } from "./HD73LMEZ.jsx";
13
- import {
14
- runIfFn
15
- } from "./KGOB2IMX.jsx";
12
+ } from "./E2L62MKC.jsx";
16
13
  import {
17
14
  useLocaleContext
18
15
  } from "./YUC6JE7K.jsx";
19
16
  import {
20
17
  createContext
21
18
  } from "./TVCIHLER.jsx";
19
+ import {
20
+ runIfFn
21
+ } from "./KGOB2IMX.jsx";
22
22
  import {
23
23
  __export
24
24
  } from "./7IUG3E2V.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 './YMMMHJJS.js';
6
5
  import { useLocaleContext } from './OKZ64GSY.js';
6
+ import { useEnvironmentContext } from './YO2MCGXO.js';
7
7
  import { createContext } from './TROPIN4C.js';
8
8
  import { runIfFn } from './DT73WLR4.js';
9
9
  import { __export } from './ESLJRKWD.js';
@@ -6,16 +6,16 @@ import {
6
6
  } from "./UFYZ7HLU.jsx";
7
7
  import {
8
8
  useEnvironmentContext
9
- } from "./HD73LMEZ.jsx";
10
- import {
11
- runIfFn
12
- } from "./KGOB2IMX.jsx";
9
+ } from "./E2L62MKC.jsx";
13
10
  import {
14
11
  useLocaleContext
15
12
  } from "./YUC6JE7K.jsx";
16
13
  import {
17
14
  createContext
18
15
  } from "./TVCIHLER.jsx";
16
+ import {
17
+ runIfFn
18
+ } from "./KGOB2IMX.jsx";
19
19
  import {
20
20
  __export
21
21
  } from "./7IUG3E2V.jsx";