@ark-ui/solid 5.1.0 → 5.2.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 (200) hide show
  1. package/dist/chunk/{D6BC5RCX.jsx → 2FDSOAL6.jsx} +9 -6
  2. package/dist/chunk/{FUS6GOJL.jsx → 2ZNYOQIC.jsx} +5 -5
  3. package/dist/chunk/{5T73FAJY.jsx → 356AM4NT.jsx} +4 -4
  4. package/dist/chunk/{V564AMKR.jsx → 4G65Z7EU.jsx} +5 -5
  5. package/dist/chunk/{WDXH3NHK.jsx → 4GAEMXVU.jsx} +9 -6
  6. package/dist/chunk/{Y7EY3OTU.jsx → 53HPEI6C.jsx} +15 -8
  7. package/dist/chunk/{KFJJXGK6.js → 5GDLVWNX.js} +1 -1
  8. package/dist/chunk/{UCYPIMZC.jsx → 5KEAUWCK.jsx} +2 -1
  9. package/dist/chunk/{ZGXZNLX2.js → 5N6RITOU.js} +15 -4
  10. package/dist/chunk/{7S7524Q3.js → 7QS2CMYY.js} +9 -3
  11. package/dist/chunk/{72UBZBQP.jsx → 7XUWO7NR.jsx} +12 -9
  12. package/dist/chunk/{IYMTFLF3.jsx → BJVPZDAL.jsx} +12 -9
  13. package/dist/chunk/{LK5627GR.js → BPPSBY3Z.js} +8 -2
  14. package/dist/chunk/BUX3MXSX.js +40 -0
  15. package/dist/chunk/{KVVYU5Z3.js → CIIDKCDP.js} +1 -1
  16. package/dist/chunk/{WNIFZKTJ.jsx → DQKYYDJY.jsx} +4 -4
  17. package/dist/chunk/{3FYZXSQZ.jsx → DQTWKOSF.jsx} +9 -6
  18. package/dist/chunk/{MDJAL2LV.jsx → DVSH7A7L.jsx} +14 -8
  19. package/dist/chunk/{CGBS64C2.jsx → DXGRBGHM.jsx} +5 -5
  20. package/dist/chunk/{ZPSBF7S2.jsx → FEUZDHU2.jsx} +5 -5
  21. package/dist/chunk/{4QFED3VE.js → FMI5WHH2.js} +1 -1
  22. package/dist/chunk/{TRUQMF25.js → FZIYLDQP.js} +1 -1
  23. package/dist/chunk/{VLQWCBZM.js → GP7PBPSV.js} +9 -3
  24. package/dist/chunk/{I2RQ2435.js → HRBMLTL6.js} +9 -3
  25. package/dist/chunk/{GCDTOEZN.jsx → IJHRDDI5.jsx} +5 -5
  26. package/dist/chunk/{XZZ6TULR.jsx → ILQH74NT.jsx} +4 -4
  27. package/dist/chunk/{2LZKFXR5.jsx → IYFZDL3F.jsx} +5 -5
  28. package/dist/chunk/{CHLRHJV2.jsx → JBBHDVFZ.jsx} +4 -4
  29. package/dist/chunk/{AD2EIGNX.jsx → JDKXSGP6.jsx} +4 -4
  30. package/dist/chunk/{OY4ARTMM.js → JSBTYBVG.js} +6 -1
  31. package/dist/chunk/{EI7I4DR6.js → KVZN5EIK.js} +9 -3
  32. package/dist/chunk/{F5GOQFKX.js → L6IGMFHF.js} +9 -3
  33. package/dist/chunk/{CA4LWAR2.jsx → LJ6EHJR3.jsx} +5 -5
  34. package/dist/chunk/{U3J33PVO.jsx → LYAU75M2.jsx} +5 -5
  35. package/dist/chunk/{GJSXT6PD.js → MBJCX2DE.js} +1 -1
  36. package/dist/chunk/{RY6GW37O.jsx → MNHPXDZV.jsx} +4 -4
  37. package/dist/chunk/{CSDXHOTM.jsx → MTZNXILF.jsx} +5 -5
  38. package/dist/chunk/{GMNTJ5KE.js → N3FF6O2Y.js} +3 -3
  39. package/dist/chunk/{Z254KIAA.jsx → NQLZI36R.jsx} +4 -4
  40. package/dist/chunk/{C745EVQO.js → OF3ALDDY.js} +3 -3
  41. package/dist/chunk/{MA35L6TV.jsx → OPRWSVMJ.jsx} +4 -4
  42. package/dist/chunk/{B2KZ5VSW.jsx → ORM2J7MT.jsx} +9 -6
  43. package/dist/chunk/{A4744EEE.jsx → PHH4JVAQ.jsx} +8 -5
  44. package/dist/chunk/{NEYCBIOW.jsx → PJMEM6IP.jsx} +5 -5
  45. package/dist/chunk/{NF3HZO6T.js → QB2OYQ6F.js} +1 -1
  46. package/dist/chunk/{R5NPBVOA.js → QCBVLVTA.js} +9 -3
  47. package/dist/chunk/{YPH7FBUN.jsx → QVLKI3LC.jsx} +4 -4
  48. package/dist/chunk/QYAKJNEK.jsx +38 -0
  49. package/dist/chunk/{JRMTU7C7.jsx → R6OIHEOD.jsx} +1 -1
  50. package/dist/chunk/{7RR233CD.js → RIHGRA4D.js} +1 -1
  51. package/dist/chunk/{TZDLUIKR.jsx → SIMDMQSR.jsx} +4 -4
  52. package/dist/chunk/{VNK2NPTS.js → SPF2T7O4.js} +1 -1
  53. package/dist/chunk/{E4A5DGUC.js → T7DC3WIE.js} +1 -1
  54. package/dist/chunk/{EEG3DZXG.jsx → TDJM3IRG.jsx} +4 -4
  55. package/dist/chunk/{26K66CRD.js → TVG6ZU7O.js} +9 -3
  56. package/dist/chunk/{7IHVZWMT.jsx → UN6AEOOQ.jsx} +9 -6
  57. package/dist/chunk/{CABZW4BQ.jsx → USB7GKYK.jsx} +9 -6
  58. package/dist/chunk/{IKA3JJFV.jsx → V5BZ3V7L.jsx} +4 -4
  59. package/dist/chunk/{F7JP3DGZ.js → WEP4LIH4.js} +16 -2
  60. package/dist/chunk/{JUYBJNX6.js → WXY3QNZF.js} +9 -3
  61. package/dist/chunk/{WGFUGTWA.js → XF64K6LQ.js} +1 -1
  62. package/dist/chunk/{KZCXBFHA.jsx → XPKZUA4I.jsx} +9 -6
  63. package/dist/chunk/{MERJALY6.jsx → XQTUHUMS.jsx} +12 -9
  64. package/dist/chunk/{YIVTZ7BP.jsx → XWB4HZV3.jsx} +4 -4
  65. package/dist/chunk/{KBHIJYMD.jsx → XWXTZFLM.jsx} +4 -4
  66. package/dist/chunk/{3VO34CGN.jsx → YQSWID53.jsx} +5 -5
  67. package/dist/chunk/{65SQKHCI.jsx → ZVGO7HAT.jsx} +10 -7
  68. package/dist/chunk/{UODFV2GS.js → ZVM34F6R.js} +9 -3
  69. package/dist/components/accordion/index.d.ts +1 -1
  70. package/dist/components/accordion/index.jsx +5 -5
  71. package/dist/components/avatar/index.d.ts +1 -1
  72. package/dist/components/avatar/index.jsx +4 -4
  73. package/dist/components/carousel/index.d.ts +1 -1
  74. package/dist/components/carousel/index.jsx +4 -4
  75. package/dist/components/checkbox/index.d.ts +1 -1
  76. package/dist/components/checkbox/index.js +1 -1
  77. package/dist/components/checkbox/index.jsx +6 -6
  78. package/dist/components/clipboard/index.d.ts +1 -1
  79. package/dist/components/clipboard/index.jsx +4 -4
  80. package/dist/components/collapsible/index.d.ts +1 -1
  81. package/dist/components/collapsible/index.jsx +4 -4
  82. package/dist/components/color-picker/index.d.ts +2 -2
  83. package/dist/components/color-picker/index.js +1 -1
  84. package/dist/components/color-picker/index.jsx +7 -7
  85. package/dist/components/combobox/index.d.ts +2 -2
  86. package/dist/components/combobox/index.js +1 -1
  87. package/dist/components/combobox/index.jsx +9 -9
  88. package/dist/components/date-picker/index.d.ts +2 -2
  89. package/dist/components/date-picker/index.js +1 -1
  90. package/dist/components/date-picker/index.jsx +6 -5
  91. package/dist/components/dialog/index.d.ts +2 -2
  92. package/dist/components/dialog/index.js +1 -1
  93. package/dist/components/dialog/index.jsx +6 -5
  94. package/dist/components/download-trigger/index.d.ts +25 -0
  95. package/dist/components/download-trigger/index.js +1 -0
  96. package/dist/components/download-trigger/index.jsx +13 -0
  97. package/dist/components/editable/index.d.ts +1 -1
  98. package/dist/components/editable/index.js +1 -1
  99. package/dist/components/editable/index.jsx +6 -6
  100. package/dist/components/factory.d.ts +1 -1
  101. package/dist/components/field/index.d.ts +2 -2
  102. package/dist/components/field/index.js +1 -1
  103. package/dist/components/field/index.jsx +5 -3
  104. package/dist/components/fieldset/index.d.ts +1 -1
  105. package/dist/components/fieldset/index.jsx +2 -2
  106. package/dist/components/file-upload/index.d.ts +1 -1
  107. package/dist/components/file-upload/index.js +1 -1
  108. package/dist/components/file-upload/index.jsx +6 -6
  109. package/dist/components/focus-trap/index.d.ts +1 -1
  110. package/dist/components/format/index.jsx +2 -2
  111. package/dist/components/frame/index.d.ts +1 -1
  112. package/dist/components/frame/index.jsx +3 -3
  113. package/dist/components/highlight/index.d.ts +1 -1
  114. package/dist/components/hover-card/index.d.ts +2 -2
  115. package/dist/components/hover-card/index.js +1 -1
  116. package/dist/components/hover-card/index.jsx +6 -5
  117. package/dist/components/index.d.ts +6 -4
  118. package/dist/components/index.js +32 -31
  119. package/dist/components/index.jsx +318 -312
  120. package/dist/components/menu/index.d.ts +2 -2
  121. package/dist/components/menu/index.js +1 -1
  122. package/dist/components/menu/index.jsx +6 -5
  123. package/dist/components/number-input/index.d.ts +1 -1
  124. package/dist/components/number-input/index.js +1 -1
  125. package/dist/components/number-input/index.jsx +6 -6
  126. package/dist/components/pagination/index.d.ts +1 -1
  127. package/dist/components/pagination/index.jsx +4 -4
  128. package/dist/components/pin-input/index.d.ts +1 -1
  129. package/dist/components/pin-input/index.js +1 -1
  130. package/dist/components/pin-input/index.jsx +6 -6
  131. package/dist/components/popover/index.d.ts +2 -2
  132. package/dist/components/popover/index.js +1 -1
  133. package/dist/components/popover/index.jsx +6 -5
  134. package/dist/components/presence/index.d.ts +3 -3
  135. package/dist/components/presence/index.js +1 -1
  136. package/dist/components/presence/index.jsx +3 -2
  137. package/dist/components/progress/index.d.ts +1 -1
  138. package/dist/components/progress/index.jsx +4 -4
  139. package/dist/components/qr-code/index.d.ts +1 -1
  140. package/dist/components/qr-code/index.jsx +4 -4
  141. package/dist/components/radio-group/index.d.ts +1 -1
  142. package/dist/components/radio-group/index.jsx +4 -4
  143. package/dist/components/rating-group/index.d.ts +1 -1
  144. package/dist/components/rating-group/index.js +1 -1
  145. package/dist/components/rating-group/index.jsx +6 -6
  146. package/dist/components/segment-group/index.d.ts +1 -1
  147. package/dist/components/segment-group/index.jsx +4 -4
  148. package/dist/components/select/index.d.ts +2 -2
  149. package/dist/components/select/index.js +1 -1
  150. package/dist/components/select/index.jsx +9 -9
  151. package/dist/components/signature-pad/index.d.ts +1 -1
  152. package/dist/components/signature-pad/index.js +1 -1
  153. package/dist/components/signature-pad/index.jsx +6 -6
  154. package/dist/components/slider/index.d.ts +1 -1
  155. package/dist/components/slider/index.jsx +4 -4
  156. package/dist/components/splitter/index.d.ts +9 -6
  157. package/dist/components/splitter/index.js +1 -1
  158. package/dist/components/splitter/index.jsx +4 -4
  159. package/dist/components/steps/index.d.ts +1 -1
  160. package/dist/components/steps/index.jsx +4 -4
  161. package/dist/components/switch/index.d.ts +1 -1
  162. package/dist/components/switch/index.js +1 -1
  163. package/dist/components/switch/index.jsx +6 -6
  164. package/dist/components/tabs/index.d.ts +1 -1
  165. package/dist/components/tabs/index.js +1 -1
  166. package/dist/components/tabs/index.jsx +6 -5
  167. package/dist/components/tags-input/index.d.ts +1 -1
  168. package/dist/components/tags-input/index.js +1 -1
  169. package/dist/components/tags-input/index.jsx +6 -6
  170. package/dist/components/time-picker/index.d.ts +2 -2
  171. package/dist/components/time-picker/index.js +1 -1
  172. package/dist/components/time-picker/index.jsx +6 -5
  173. package/dist/components/timer/index.d.ts +1 -1
  174. package/dist/components/timer/index.jsx +4 -4
  175. package/dist/components/toast/index.d.ts +1 -1
  176. package/dist/components/toast/index.js +1 -1
  177. package/dist/components/toast/index.jsx +4 -4
  178. package/dist/components/toggle/index.d.ts +1 -1
  179. package/dist/components/toggle-group/index.d.ts +1 -1
  180. package/dist/components/toggle-group/index.jsx +4 -4
  181. package/dist/components/tooltip/index.d.ts +2 -2
  182. package/dist/components/tooltip/index.js +1 -1
  183. package/dist/components/tooltip/index.jsx +6 -5
  184. package/dist/components/tour/index.d.ts +2 -2
  185. package/dist/components/tour/index.js +1 -1
  186. package/dist/components/tour/index.jsx +6 -5
  187. package/dist/components/tree-view/index.d.ts +1 -1
  188. package/dist/components/tree-view/index.jsx +7 -7
  189. package/dist/index.d.ts +6 -4
  190. package/dist/index.js +32 -31
  191. package/dist/index.jsx +318 -312
  192. package/dist/providers/environment/index.jsx +2 -2
  193. package/dist/providers/index.jsx +2 -2
  194. package/dist/{types-CxryXVkR.d.ts → types-Bc0WfPsv.d.ts} +2 -1
  195. package/dist/{use-presence-B6QV_j94.d.ts → use-presence-BUVPqaFu.d.ts} +2 -2
  196. package/package.json +62 -60
  197. package/dist/chunk/{R2YVXMP7.jsx → 6G6HOPPW.jsx} +0 -0
  198. package/dist/chunk/{D2Z5BEON.jsx → HD73LMEZ.jsx} +3 -3
  199. package/dist/chunk/{ZYF7GVNI.jsx → NLXZ3NC4.jsx} +3 -3
  200. /package/dist/chunk/{ZWNW7ARB.js → XUQC4TSL.js} +0 -0
@@ -0,0 +1,38 @@
1
+ import {
2
+ ark
3
+ } from "./UFYZ7HLU.jsx";
4
+ import {
5
+ useEnvironmentContext
6
+ } from "./HD73LMEZ.jsx";
7
+
8
+ // src/components/download-trigger/download-trigger.tsx
9
+ import { downloadFile } from "@zag-js/file-utils";
10
+ import { splitProps } from "solid-js";
11
+ function DownloadTrigger(props) {
12
+ const [downloadProps, restProps] = splitProps(props, ["fileName", "data", "mimeType", "onClick"]);
13
+ const env = useEnvironmentContext();
14
+ const download = (data) => {
15
+ downloadFile({ file: data, name: downloadProps.fileName, type: downloadProps.mimeType, win: env().getWindow() });
16
+ };
17
+ const handleClick = (e) => {
18
+ if (typeof downloadProps.onClick === "function") {
19
+ downloadProps.onClick(e);
20
+ }
21
+ if (e.defaultPrevented) return;
22
+ if (typeof downloadProps.data === "function") {
23
+ const maybePromise = downloadProps.data();
24
+ if (maybePromise instanceof Promise) {
25
+ maybePromise.then((data) => download(data));
26
+ } else {
27
+ download(maybePromise);
28
+ }
29
+ } else {
30
+ download(downloadProps.data);
31
+ }
32
+ };
33
+ return <ark.button {...restProps} type="button" onClick={handleClick} />;
34
+ }
35
+
36
+ export {
37
+ DownloadTrigger
38
+ };
@@ -3,7 +3,7 @@ import {
3
3
  } from "./DOBZPYAN.jsx";
4
4
  import {
5
5
  EnvironmentProvider
6
- } from "./D2Z5BEON.jsx";
6
+ } from "./HD73LMEZ.jsx";
7
7
 
8
8
  // src/components/frame/frame.tsx
9
9
  import { Show, createEffect as createEffect2, createMemo, createSignal, onCleanup as onCleanup2, splitProps } from "solid-js";
@@ -1,4 +1,4 @@
1
- import { useFieldContext } from './KVVYU5Z3.js';
1
+ import { useFieldContext } from './CIIDKCDP.js';
2
2
  import { createSplitProps } from './ZMHI4GDJ.js';
3
3
  import { ark } from './EPLBB4QN.js';
4
4
  import { useEnvironmentContext } from './YMMMHJJS.js';
@@ -6,13 +6,13 @@ import {
6
6
  } from "./UFYZ7HLU.jsx";
7
7
  import {
8
8
  useEnvironmentContext
9
- } from "./D2Z5BEON.jsx";
10
- import {
11
- createContext
12
- } from "./TVCIHLER.jsx";
9
+ } from "./HD73LMEZ.jsx";
13
10
  import {
14
11
  runIfFn
15
12
  } from "./KGOB2IMX.jsx";
13
+ import {
14
+ createContext
15
+ } from "./TVCIHLER.jsx";
16
16
  import {
17
17
  __export
18
18
  } from "./7IUG3E2V.jsx";
@@ -1,4 +1,4 @@
1
- import { useFieldContext } from './KVVYU5Z3.js';
1
+ import { useFieldContext } from './CIIDKCDP.js';
2
2
  import { createSplitProps } from './ZMHI4GDJ.js';
3
3
  import { ark } from './EPLBB4QN.js';
4
4
  import { useEnvironmentContext } from './YMMMHJJS.js';
@@ -1,4 +1,4 @@
1
- import { useFieldContext } from './KVVYU5Z3.js';
1
+ import { useFieldContext } from './CIIDKCDP.js';
2
2
  import { createSplitProps } from './ZMHI4GDJ.js';
3
3
  import { ark } from './EPLBB4QN.js';
4
4
  import { useEnvironmentContext } from './YMMMHJJS.js';
@@ -6,16 +6,16 @@ import {
6
6
  } from "./UFYZ7HLU.jsx";
7
7
  import {
8
8
  useEnvironmentContext
9
- } from "./D2Z5BEON.jsx";
9
+ } from "./HD73LMEZ.jsx";
10
+ import {
11
+ runIfFn
12
+ } from "./KGOB2IMX.jsx";
10
13
  import {
11
14
  useLocaleContext
12
15
  } from "./RCXMZN3G.jsx";
13
16
  import {
14
17
  createContext
15
18
  } from "./TVCIHLER.jsx";
16
- import {
17
- runIfFn
18
- } from "./KGOB2IMX.jsx";
19
19
  import {
20
20
  __export
21
21
  } from "./7IUG3E2V.jsx";
@@ -1,4 +1,5 @@
1
- import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './OY4ARTMM.js';
1
+ import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './JSBTYBVG.js';
2
+ import { composeRefs } from './XN6EERRM.js';
2
3
  import { createSplitProps } from './ZMHI4GDJ.js';
3
4
  import { ark } from './EPLBB4QN.js';
4
5
  import { useEnvironmentContext } from './YMMMHJJS.js';
@@ -6,7 +7,7 @@ import { useLocaleContext } from './QEMQBM6W.js';
6
7
  import { createContext } from './TROPIN4C.js';
7
8
  import { runIfFn } from './DT73WLR4.js';
8
9
  import { __export } from './ESLJRKWD.js';
9
- import { createComponent } from 'solid-js/web';
10
+ import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
10
11
  import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
11
12
  import { Show, createUniqueId, createMemo } from 'solid-js';
12
13
  import * as hoverCard from '@zag-js/hover-card';
@@ -38,7 +39,12 @@ var HoverCardContent = (props) => {
38
39
  return !presenceApi().unmounted;
39
40
  },
40
41
  get children() {
41
- return createComponent(ark.div, mergedProps);
42
+ return createComponent(ark.div, mergeProps$1(mergedProps, {
43
+ ref(r$) {
44
+ var _ref$ = composeRefs(presenceApi().ref, props.ref);
45
+ typeof _ref$ === "function" && _ref$(r$);
46
+ }
47
+ }));
42
48
  }
43
49
  });
44
50
  };
@@ -3,7 +3,10 @@ import {
3
3
  splitPresenceProps,
4
4
  usePresence,
5
5
  usePresenceContext
6
- } from "./A4744EEE.jsx";
6
+ } from "./PHH4JVAQ.jsx";
7
+ import {
8
+ composeRefs
9
+ } from "./DOBZPYAN.jsx";
7
10
  import {
8
11
  createSplitProps
9
12
  } from "./6WEDGJKQ.jsx";
@@ -12,16 +15,16 @@ import {
12
15
  } from "./UFYZ7HLU.jsx";
13
16
  import {
14
17
  useEnvironmentContext
15
- } from "./D2Z5BEON.jsx";
18
+ } from "./HD73LMEZ.jsx";
19
+ import {
20
+ runIfFn
21
+ } from "./KGOB2IMX.jsx";
16
22
  import {
17
23
  useLocaleContext
18
24
  } from "./RCXMZN3G.jsx";
19
25
  import {
20
26
  createContext
21
27
  } from "./TVCIHLER.jsx";
22
- import {
23
- runIfFn
24
- } from "./KGOB2IMX.jsx";
25
28
  import {
26
29
  __export
27
30
  } from "./7IUG3E2V.jsx";
@@ -102,7 +105,7 @@ var MenuContent = (props) => {
102
105
  props
103
106
  );
104
107
  return <Show when={!presenceContext().unmounted}>
105
- <ark.div {...mergedProps} />
108
+ <ark.div {...mergedProps} ref={composeRefs(presenceContext().ref, props.ref)} />
106
109
  </Show>;
107
110
  };
108
111
 
@@ -3,7 +3,10 @@ import {
3
3
  splitPresenceProps,
4
4
  usePresence,
5
5
  usePresenceContext
6
- } from "./A4744EEE.jsx";
6
+ } from "./PHH4JVAQ.jsx";
7
+ import {
8
+ composeRefs
9
+ } from "./DOBZPYAN.jsx";
7
10
  import {
8
11
  createSplitProps
9
12
  } from "./6WEDGJKQ.jsx";
@@ -12,16 +15,16 @@ import {
12
15
  } from "./UFYZ7HLU.jsx";
13
16
  import {
14
17
  useEnvironmentContext
15
- } from "./D2Z5BEON.jsx";
18
+ } from "./HD73LMEZ.jsx";
19
+ import {
20
+ runIfFn
21
+ } from "./KGOB2IMX.jsx";
16
22
  import {
17
23
  useLocaleContext
18
24
  } from "./RCXMZN3G.jsx";
19
25
  import {
20
26
  createContext
21
27
  } from "./TVCIHLER.jsx";
22
- import {
23
- runIfFn
24
- } from "./KGOB2IMX.jsx";
25
28
  import {
26
29
  __export
27
30
  } from "./7IUG3E2V.jsx";
@@ -57,7 +60,7 @@ var DatePickerContent = (props) => {
57
60
  props
58
61
  );
59
62
  return <Show when={!presenceApi().unmounted}>
60
- <ark.div {...mergedProps} />
63
+ <ark.div {...mergedProps} ref={composeRefs(presenceApi().ref, props.ref)} />
61
64
  </Show>;
62
65
  };
63
66
 
@@ -6,16 +6,16 @@ import {
6
6
  } from "./UFYZ7HLU.jsx";
7
7
  import {
8
8
  useEnvironmentContext
9
- } from "./D2Z5BEON.jsx";
9
+ } from "./HD73LMEZ.jsx";
10
+ import {
11
+ runIfFn
12
+ } from "./KGOB2IMX.jsx";
10
13
  import {
11
14
  useLocaleContext
12
15
  } from "./RCXMZN3G.jsx";
13
16
  import {
14
17
  createContext
15
18
  } from "./TVCIHLER.jsx";
16
- import {
17
- runIfFn
18
- } from "./KGOB2IMX.jsx";
19
19
  import {
20
20
  __export
21
21
  } from "./7IUG3E2V.jsx";
@@ -1,4 +1,5 @@
1
- import { usePresence, splitPresenceProps, PresenceProvider, usePresenceContext } from './OY4ARTMM.js';
1
+ import { usePresence, splitPresenceProps, PresenceProvider, usePresenceContext } from './JSBTYBVG.js';
2
+ import { composeRefs } from './XN6EERRM.js';
2
3
  import { useRenderStrategyContext, splitRenderStrategyProps, RenderStrategyProvider } from './QFAL6GWC.js';
3
4
  import { createSplitProps } from './ZMHI4GDJ.js';
4
5
  import { ark } from './EPLBB4QN.js';
@@ -68,6 +69,10 @@ var TourBackdrop = (props) => {
68
69
  return createComponent(ark.div, mergeProps$1(mergedProps, {
69
70
  get hidden() {
70
71
  return !tour2().step?.backdrop;
72
+ },
73
+ ref(r$) {
74
+ var _ref$ = composeRefs(presence().ref, props.ref);
75
+ typeof _ref$ === "function" && _ref$(r$);
71
76
  }
72
77
  }));
73
78
  }
@@ -90,7 +95,12 @@ var TourContent = (props) => {
90
95
  return !presence().unmounted;
91
96
  },
92
97
  get children() {
93
- return createComponent(ark.div, mergedProps);
98
+ return createComponent(ark.div, mergeProps$1(mergedProps, {
99
+ ref(r$) {
100
+ var _ref$ = composeRefs(presence().ref, props.ref);
101
+ typeof _ref$ === "function" && _ref$(r$);
102
+ }
103
+ }));
94
104
  }
95
105
  });
96
106
  };
@@ -175,6 +185,10 @@ var TourSpotlight = (props) => {
175
185
  return createComponent(ark.div, mergeProps$1(mergedProps, {
176
186
  get hidden() {
177
187
  return !tour2().open || !tour2().step?.target?.();
188
+ },
189
+ ref(r$) {
190
+ var _ref$ = composeRefs(presenceApi().ref, props.ref);
191
+ typeof _ref$ === "function" && _ref$(r$);
178
192
  }
179
193
  }));
180
194
  }
@@ -1,4 +1,5 @@
1
- import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider } from './OY4ARTMM.js';
1
+ import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider } from './JSBTYBVG.js';
2
+ import { composeRefs } from './XN6EERRM.js';
2
3
  import { createSplitProps } from './ZMHI4GDJ.js';
3
4
  import { ark } from './EPLBB4QN.js';
4
5
  import { useEnvironmentContext } from './YMMMHJJS.js';
@@ -6,7 +7,7 @@ import { useLocaleContext } from './QEMQBM6W.js';
6
7
  import { createContext } from './TROPIN4C.js';
7
8
  import { runIfFn } from './DT73WLR4.js';
8
9
  import { __export } from './ESLJRKWD.js';
9
- import { createComponent } from 'solid-js/web';
10
+ import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
10
11
  import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
11
12
  import { createEffect, onMount, createUniqueId, createMemo, Show } from 'solid-js';
12
13
  import * as menu from '@zag-js/menu';
@@ -73,7 +74,12 @@ var MenuContent = (props) => {
73
74
  return !presenceContext().unmounted;
74
75
  },
75
76
  get children() {
76
- return createComponent(ark.div, mergedProps);
77
+ return createComponent(ark.div, mergeProps$1(mergedProps, {
78
+ ref(r$) {
79
+ var _ref$ = composeRefs(presenceContext().ref, props.ref);
80
+ typeof _ref$ === "function" && _ref$(r$);
81
+ }
82
+ }));
77
83
  }
78
84
  });
79
85
  };
@@ -1,4 +1,4 @@
1
- import { useFieldContext } from './KVVYU5Z3.js';
1
+ import { useFieldContext } from './CIIDKCDP.js';
2
2
  import { createSplitProps } from './ZMHI4GDJ.js';
3
3
  import { ark } from './EPLBB4QN.js';
4
4
  import { useEnvironmentContext } from './YMMMHJJS.js';
@@ -1,7 +1,10 @@
1
1
  import {
2
2
  PresenceProvider,
3
3
  usePresence
4
- } from "./A4744EEE.jsx";
4
+ } from "./PHH4JVAQ.jsx";
5
+ import {
6
+ composeRefs
7
+ } from "./DOBZPYAN.jsx";
5
8
  import {
6
9
  RenderStrategyProvider,
7
10
  splitRenderStrategyProps,
@@ -15,16 +18,16 @@ import {
15
18
  } from "./UFYZ7HLU.jsx";
16
19
  import {
17
20
  useEnvironmentContext
18
- } from "./D2Z5BEON.jsx";
21
+ } from "./HD73LMEZ.jsx";
22
+ import {
23
+ runIfFn
24
+ } from "./KGOB2IMX.jsx";
19
25
  import {
20
26
  useLocaleContext
21
27
  } from "./RCXMZN3G.jsx";
22
28
  import {
23
29
  createContext
24
30
  } from "./TVCIHLER.jsx";
25
- import {
26
- runIfFn
27
- } from "./KGOB2IMX.jsx";
28
31
  import {
29
32
  __export
30
33
  } from "./7IUG3E2V.jsx";
@@ -57,7 +60,7 @@ var TabContent = (props) => {
57
60
  );
58
61
  return <PresenceProvider value={presenceApi}>
59
62
  <Show when={!presenceApi().unmounted}>
60
- <ark.div {...mergedProps} />
63
+ <ark.div {...mergedProps} ref={composeRefs(presenceApi().ref, props.ref)} />
61
64
  </Show>
62
65
  </PresenceProvider>;
63
66
  };
@@ -1,12 +1,15 @@
1
- import {
2
- useFieldContext
3
- } from "./UCYPIMZC.jsx";
4
1
  import {
5
2
  PresenceProvider,
6
3
  splitPresenceProps,
7
4
  usePresence,
8
5
  usePresenceContext
9
- } from "./A4744EEE.jsx";
6
+ } from "./PHH4JVAQ.jsx";
7
+ import {
8
+ useFieldContext
9
+ } from "./5KEAUWCK.jsx";
10
+ import {
11
+ composeRefs
12
+ } from "./DOBZPYAN.jsx";
10
13
  import {
11
14
  createSplitProps
12
15
  } from "./6WEDGJKQ.jsx";
@@ -15,16 +18,16 @@ import {
15
18
  } from "./UFYZ7HLU.jsx";
16
19
  import {
17
20
  useEnvironmentContext
18
- } from "./D2Z5BEON.jsx";
21
+ } from "./HD73LMEZ.jsx";
22
+ import {
23
+ runIfFn
24
+ } from "./KGOB2IMX.jsx";
19
25
  import {
20
26
  useLocaleContext
21
27
  } from "./RCXMZN3G.jsx";
22
28
  import {
23
29
  createContext
24
30
  } from "./TVCIHLER.jsx";
25
- import {
26
- runIfFn
27
- } from "./KGOB2IMX.jsx";
28
31
  import {
29
32
  __export
30
33
  } from "./7IUG3E2V.jsx";
@@ -57,7 +60,7 @@ var ComboboxContent = (props) => {
57
60
  props
58
61
  );
59
62
  return <Show when={!presenceApi().unmounted}>
60
- <ark.div {...mergedProps} />
63
+ <ark.div {...mergedProps} ref={composeRefs(presenceApi().ref, props.ref)} />
61
64
  </Show>;
62
65
  };
63
66
 
@@ -6,16 +6,16 @@ import {
6
6
  } from "./UFYZ7HLU.jsx";
7
7
  import {
8
8
  useEnvironmentContext
9
- } from "./D2Z5BEON.jsx";
9
+ } from "./HD73LMEZ.jsx";
10
+ import {
11
+ runIfFn
12
+ } from "./KGOB2IMX.jsx";
10
13
  import {
11
14
  useLocaleContext
12
15
  } from "./RCXMZN3G.jsx";
13
16
  import {
14
17
  createContext
15
18
  } from "./TVCIHLER.jsx";
16
- import {
17
- runIfFn
18
- } from "./KGOB2IMX.jsx";
19
19
  import {
20
20
  __export
21
21
  } from "./7IUG3E2V.jsx";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./UFYZ7HLU.jsx";
4
4
  import {
5
5
  useEnvironmentContext
6
- } from "./D2Z5BEON.jsx";
6
+ } from "./HD73LMEZ.jsx";
7
7
  import {
8
8
  useLocaleContext
9
9
  } from "./RCXMZN3G.jsx";
@@ -90,11 +90,11 @@ var Toaster = (props) => {
90
90
  store: toasterProps.toaster,
91
91
  id: createUniqueId(),
92
92
  dir: locale()?.dir,
93
- getRootNode: () => env()?.getDocument()
93
+ getRootNode: env()?.getRootNode
94
94
  }));
95
95
  const api = createMemo(() => toast2.group.connect(service, normalizeProps));
96
96
  const toasts = createMemo(() => api().getToasts());
97
- const mergedProps = mergeProps6(api().getGroupProps(), localProps);
97
+ const mergedProps = mergeProps6(() => api().getGroupProps(), localProps);
98
98
  return <ark.div {...mergedProps}>
99
99
  <Key each={toasts()} by="id">
100
100
  {(toast3, index) => <ToastActor value={toast3} index={index} parent={service}>
@@ -107,7 +107,7 @@ var ToastActor = (props) => {
107
107
  const localProps = createMemo(() => ({
108
108
  ...props.value(),
109
109
  parent: props.parent,
110
- index: props.index
110
+ index: props.index()
111
111
  }));
112
112
  const service = useMachine(toast2.machine, localProps);
113
113
  const api = createMemo(() => toast2.connect(service, normalizeProps));
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useFieldContext
3
- } from "./UCYPIMZC.jsx";
3
+ } from "./5KEAUWCK.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 "./D2Z5BEON.jsx";
12
+ } from "./HD73LMEZ.jsx";
13
+ import {
14
+ runIfFn
15
+ } from "./KGOB2IMX.jsx";
13
16
  import {
14
17
  useLocaleContext
15
18
  } from "./RCXMZN3G.jsx";
16
19
  import {
17
20
  createContext
18
21
  } from "./TVCIHLER.jsx";
19
- import {
20
- runIfFn
21
- } from "./KGOB2IMX.jsx";
22
22
  import {
23
23
  __export
24
24
  } from "./7IUG3E2V.jsx";
@@ -3,7 +3,10 @@ import {
3
3
  splitPresenceProps,
4
4
  usePresence,
5
5
  usePresenceContext
6
- } from "./A4744EEE.jsx";
6
+ } from "./PHH4JVAQ.jsx";
7
+ import {
8
+ composeRefs
9
+ } from "./DOBZPYAN.jsx";
7
10
  import {
8
11
  RenderStrategyProvider,
9
12
  splitRenderStrategyProps,
@@ -17,16 +20,16 @@ import {
17
20
  } from "./UFYZ7HLU.jsx";
18
21
  import {
19
22
  useEnvironmentContext
20
- } from "./D2Z5BEON.jsx";
23
+ } from "./HD73LMEZ.jsx";
24
+ import {
25
+ runIfFn
26
+ } from "./KGOB2IMX.jsx";
21
27
  import {
22
28
  useLocaleContext
23
29
  } from "./RCXMZN3G.jsx";
24
30
  import {
25
31
  createContext
26
32
  } from "./TVCIHLER.jsx";
27
- import {
28
- runIfFn
29
- } from "./KGOB2IMX.jsx";
30
33
  import {
31
34
  __export
32
35
  } from "./7IUG3E2V.jsx";
@@ -52,7 +55,7 @@ var DialogBackdrop = (props) => {
52
55
  props
53
56
  );
54
57
  return <Show when={!presenceApi().unmounted}>
55
- <ark.div {...mergedProps} />
58
+ <ark.div {...mergedProps} ref={composeRefs(presenceApi().ref, props.ref)} />
56
59
  </Show>;
57
60
  };
58
61
 
@@ -76,7 +79,7 @@ var DialogContent = (props) => {
76
79
  props
77
80
  );
78
81
  return <Show2 when={!presenceApi().unmounted}>
79
- <ark.div {...mergedProps} />
82
+ <ark.div {...mergedProps} ref={composeRefs(presenceApi().ref, props.ref)} />
80
83
  </Show2>;
81
84
  };
82
85
 
@@ -1,4 +1,5 @@
1
- import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './OY4ARTMM.js';
1
+ import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './JSBTYBVG.js';
2
+ import { composeRefs } from './XN6EERRM.js';
2
3
  import { createSplitProps } from './ZMHI4GDJ.js';
3
4
  import { ark } from './EPLBB4QN.js';
4
5
  import { useEnvironmentContext } from './YMMMHJJS.js';
@@ -6,7 +7,7 @@ import { useLocaleContext } from './QEMQBM6W.js';
6
7
  import { createContext } from './TROPIN4C.js';
7
8
  import { runIfFn } from './DT73WLR4.js';
8
9
  import { __export } from './ESLJRKWD.js';
9
- import { createComponent } from 'solid-js/web';
10
+ import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
10
11
  import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
11
12
  import { Show, createUniqueId, createMemo } from 'solid-js';
12
13
  import * as tooltip from '@zag-js/tooltip';
@@ -38,7 +39,12 @@ var TooltipContent = (props) => {
38
39
  return !presenceApi().unmounted;
39
40
  },
40
41
  get children() {
41
- return createComponent(ark.div, mergedProps);
42
+ return createComponent(ark.div, mergeProps$1(mergedProps, {
43
+ ref(r$) {
44
+ var _ref$ = composeRefs(presenceApi().ref, props.ref);
45
+ typeof _ref$ === "function" && _ref$(r$);
46
+ }
47
+ }));
42
48
  }
43
49
  });
44
50
  };
@@ -4,7 +4,7 @@ export { FocusChangeDetails as AccordionFocusChangeDetails, ValueChangeDetails a
4
4
  import * as solid_js from 'solid-js';
5
5
  import { Accessor, JSX } from 'solid-js';
6
6
  import { PropTypes } from '@zag-js/solid';
7
- import { O as Optional, M as MaybeAccessor } from '../../types-CxryXVkR.js';
7
+ import { O as Optional, M as MaybeAccessor } from '../../types-Bc0WfPsv.js';
8
8
  import { HTMLProps, PolymorphicProps } from '../factory.js';
9
9
  import { R as RenderStrategyProps } from '../../render-strategy-B5MqQP3X.js';
10
10
 
@@ -12,16 +12,16 @@ import {
12
12
  useAccordion,
13
13
  useAccordionContext,
14
14
  useAccordionItemContext
15
- } from "../../chunk/CSDXHOTM.jsx";
16
- import "../../chunk/WNIFZKTJ.jsx";
15
+ } from "../../chunk/MTZNXILF.jsx";
16
+ import "../../chunk/DQKYYDJY.jsx";
17
17
  import "../../chunk/NEBB7COJ.jsx";
18
18
  import "../../chunk/6WEDGJKQ.jsx";
19
- import "../../chunk/UFYZ7HLU.jsx";
20
19
  import "../../chunk/ODQYYKL5.jsx";
21
- import "../../chunk/D2Z5BEON.jsx";
20
+ import "../../chunk/UFYZ7HLU.jsx";
21
+ import "../../chunk/HD73LMEZ.jsx";
22
+ import "../../chunk/KGOB2IMX.jsx";
22
23
  import "../../chunk/RCXMZN3G.jsx";
23
24
  import "../../chunk/TVCIHLER.jsx";
24
- import "../../chunk/KGOB2IMX.jsx";
25
25
  import "../../chunk/7IUG3E2V.jsx";
26
26
  export {
27
27
  accordion_exports as Accordion,
@@ -4,7 +4,7 @@ export { StatusChangeDetails as AvatarStatusChangeDetails, anatomy as avatarAnat
4
4
  import * as solid_js from 'solid-js';
5
5
  import { Accessor, JSX } from 'solid-js';
6
6
  import { PropTypes } from '@zag-js/solid';
7
- import { O as Optional, M as MaybeAccessor } from '../../types-CxryXVkR.js';
7
+ import { O as Optional, M as MaybeAccessor } from '../../types-Bc0WfPsv.js';
8
8
  import { HTMLProps, PolymorphicProps } from '../factory.js';
9
9
 
10
10
  interface UseAvatarProps extends Optional<Omit<avatar$1.Props, 'dir' | 'getRootNode'>, 'id'> {
@@ -8,14 +8,14 @@ import {
8
8
  avatar_exports,
9
9
  useAvatar,
10
10
  useAvatarContext
11
- } from "../../chunk/MA35L6TV.jsx";
11
+ } from "../../chunk/OPRWSVMJ.jsx";
12
12
  import "../../chunk/6WEDGJKQ.jsx";
13
- import "../../chunk/UFYZ7HLU.jsx";
14
13
  import "../../chunk/ODQYYKL5.jsx";
15
- import "../../chunk/D2Z5BEON.jsx";
14
+ import "../../chunk/UFYZ7HLU.jsx";
15
+ import "../../chunk/HD73LMEZ.jsx";
16
+ import "../../chunk/KGOB2IMX.jsx";
16
17
  import "../../chunk/RCXMZN3G.jsx";
17
18
  import "../../chunk/TVCIHLER.jsx";
18
- import "../../chunk/KGOB2IMX.jsx";
19
19
  import "../../chunk/7IUG3E2V.jsx";
20
20
  export {
21
21
  avatar_exports as Avatar,
@@ -5,7 +5,7 @@ import * as solid_js from 'solid-js';
5
5
  import { Accessor, JSX } from 'solid-js';
6
6
  import { HTMLProps, PolymorphicProps } from '../factory.js';
7
7
  import { PropTypes } from '@zag-js/solid';
8
- import { O as Optional, M as MaybeAccessor } from '../../types-CxryXVkR.js';
8
+ import { O as Optional, M as MaybeAccessor } from '../../types-Bc0WfPsv.js';
9
9
 
10
10
  interface CarouselAutoplayTriggerBaseProps extends PolymorphicProps<'button'> {
11
11
  }