@ark-ui/solid 5.3.1 → 5.5.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 (191) hide show
  1. package/dist/chunk/{NQLZI36R.jsx → 2ZIPSG6O.jsx} +6 -6
  2. package/dist/chunk/{OPRWSVMJ.jsx → 3GZBI3C7.jsx} +6 -6
  3. package/dist/chunk/{JDKXSGP6.jsx → 3RSBQIQ3.jsx} +6 -6
  4. package/dist/chunk/{5KEAUWCK.jsx → 4HPQVVRP.jsx} +8 -13
  5. package/dist/chunk/{TDJM3IRG.jsx → 5EV3OVL7.jsx} +6 -6
  6. package/dist/chunk/{WXY3QNZF.js → 5FWNSCWP.js} +11 -4
  7. package/dist/chunk/{356AM4NT.jsx → 5T73FAJY.jsx} +4 -4
  8. package/dist/chunk/{T7DC3WIE.js → 5X7KNFCM.js} +2 -2
  9. package/dist/chunk/{LYAU75M2.jsx → 64OEA2DF.jsx} +7 -7
  10. package/dist/chunk/{XF64K6LQ.js → 6NYYJAMS.js} +2 -2
  11. package/dist/chunk/{YGOJI6HV.js → 6VPRFZA4.js} +2 -2
  12. package/dist/chunk/{JSBTYBVG.js → 7S3N5UQH.js} +10 -3
  13. package/dist/chunk/{QYAKJNEK.jsx → A3VC6L75.jsx} +1 -1
  14. package/dist/chunk/{JZ7ZQZT4.jsx → A6A626ZB.jsx} +4 -7
  15. package/dist/chunk/{ZVGO7HAT.jsx → ASFHFF7Y.jsx} +7 -7
  16. package/dist/chunk/{DXGRBGHM.jsx → BWOFNO5N.jsx} +7 -7
  17. package/dist/chunk/{KMH2DP4D.jsx → BZLIWOGC.jsx} +7 -7
  18. package/dist/chunk/{2FDSOAL6.jsx → CLX4TELO.jsx} +7 -7
  19. package/dist/chunk/{LJ6EHJR3.jsx → CMXNP72H.jsx} +7 -7
  20. package/dist/chunk/{QVLKI3LC.jsx → D4UVDNW5.jsx} +6 -6
  21. package/dist/chunk/{V5BZ3V7L.jsx → ENH3JQLY.jsx} +6 -6
  22. package/dist/chunk/{YQSWID53.jsx → EX2VGSCG.jsx} +7 -7
  23. package/dist/chunk/{JBBHDVFZ.jsx → FHEJON2W.jsx} +6 -6
  24. package/dist/chunk/{U67NSVQP.js → FPYZVUFW.js} +2 -2
  25. package/dist/chunk/{YXY2VFNT.jsx → FUGFSIYK.jsx} +6 -6
  26. package/dist/chunk/{MBJCX2DE.js → FVIF7LDE.js} +2 -2
  27. package/dist/chunk/{7QS2CMYY.js → GA7FOJZW.js} +3 -3
  28. package/dist/chunk/{2ZNYOQIC.jsx → HNF2QPQ2.jsx} +7 -7
  29. package/dist/chunk/{L6IGMFHF.js → HQJBHHB6.js} +2 -2
  30. package/dist/chunk/{GP7PBPSV.js → I2ZEUUSZ.js} +4 -4
  31. package/dist/chunk/{SPF2T7O4.js → IMKHRMUF.js} +2 -2
  32. package/dist/chunk/{USB7GKYK.jsx → IOLALG7A.jsx} +10 -9
  33. package/dist/chunk/{MNHPXDZV.jsx → ISCBIWKW.jsx} +6 -6
  34. package/dist/chunk/{R6OIHEOD.jsx → JRMTU7C7.jsx} +1 -1
  35. package/dist/chunk/{BLTYQMQJ.jsx → JZVFV4VZ.jsx} +10 -10
  36. package/dist/chunk/{XPKZUA4I.jsx → KRJNIKO2.jsx} +7 -7
  37. package/dist/chunk/{IJHRDDI5.jsx → KWT5RGLQ.jsx} +7 -7
  38. package/dist/chunk/{ORM2J7MT.jsx → L3SIBBML.jsx} +7 -7
  39. package/dist/chunk/{UN6AEOOQ.jsx → LKX2UAMN.jsx} +16 -11
  40. package/dist/chunk/{WEP4LIH4.js → LPWKZJG2.js} +2 -2
  41. package/dist/chunk/{SDD2HKR3.js → LUMJHQNS.js} +8 -8
  42. package/dist/chunk/{ILQH74NT.jsx → MD7PHDJK.jsx} +6 -6
  43. package/dist/chunk/{ZVM34F6R.js → MPNDTPUK.js} +2 -2
  44. package/dist/chunk/{4G65Z7EU.jsx → MTVAX7XO.jsx} +7 -7
  45. package/dist/chunk/{KVZN5EIK.js → MXJSLVKN.js} +2 -2
  46. package/dist/chunk/{PJMEM6IP.jsx → N26ZXGSY.jsx} +7 -7
  47. package/dist/chunk/{RIHGRA4D.js → OBLSSYMA.js} +2 -2
  48. package/dist/chunk/{TVG6ZU7O.js → OMTG2F6B.js} +2 -2
  49. package/dist/chunk/{XQTUHUMS.jsx → PDTJBVF6.jsx} +11 -10
  50. package/dist/chunk/{5GDLVWNX.js → PDYWOA6Y.js} +2 -2
  51. package/dist/chunk/{QB2OYQ6F.js → QRODT7WM.js} +2 -2
  52. package/dist/chunk/{XWB4HZV3.jsx → QXPKPCGG.jsx} +6 -6
  53. package/dist/chunk/{XWXTZFLM.jsx → R6BII3KO.jsx} +3 -3
  54. package/dist/chunk/{BPPSBY3Z.js → RNLJK7FO.js} +8 -10
  55. package/dist/chunk/{FEUZDHU2.jsx → ROA4DJEO.jsx} +7 -7
  56. package/dist/chunk/{FMI5WHH2.js → RXOSUP6U.js} +2 -2
  57. package/dist/chunk/{BJVPZDAL.jsx → SMZBI5QA.jsx} +10 -10
  58. package/dist/chunk/{U2AFGSZ6.jsx → SPPHU23S.jsx} +7 -7
  59. package/dist/chunk/{FAC6JW4M.js → TANQ4FPM.js} +3 -3
  60. package/dist/chunk/{53HPEI6C.jsx → TKQSSFZN.jsx} +7 -7
  61. package/dist/chunk/{SIMDMQSR.jsx → TZDLUIKR.jsx} +4 -4
  62. package/dist/chunk/{FZIYLDQP.js → UIEL6LO3.js} +2 -2
  63. package/dist/chunk/{CIIDKCDP.js → UL6NTZA6.js} +9 -11
  64. package/dist/chunk/{DQTWKOSF.jsx → VWUOL2OR.jsx} +7 -7
  65. package/dist/chunk/{PHH4JVAQ.jsx → WC2HBDLJ.jsx} +13 -6
  66. package/dist/chunk/{4GAEMXVU.jsx → WKJMOIA7.jsx} +7 -7
  67. package/dist/chunk/{QCBVLVTA.js → YECHEPH3.js} +2 -2
  68. package/dist/chunk/{DVSH7A7L.jsx → YIOS67AB.jsx} +6 -6
  69. package/dist/chunk/{5N6RITOU.js → ZKM4DTGM.js} +2 -2
  70. package/dist/components/accordion/index.js +1 -1
  71. package/dist/components/accordion/index.jsx +5 -5
  72. package/dist/components/avatar/index.js +1 -1
  73. package/dist/components/avatar/index.jsx +4 -4
  74. package/dist/components/carousel/index.js +1 -1
  75. package/dist/components/carousel/index.jsx +4 -4
  76. package/dist/components/checkbox/index.js +1 -1
  77. package/dist/components/checkbox/index.jsx +6 -6
  78. package/dist/components/clipboard/index.jsx +4 -4
  79. package/dist/components/collapsible/index.js +1 -1
  80. package/dist/components/collapsible/index.jsx +4 -4
  81. package/dist/components/color-picker/index.d.ts +1 -1
  82. package/dist/components/color-picker/index.js +1 -1
  83. package/dist/components/color-picker/index.jsx +7 -7
  84. package/dist/components/combobox/index.d.ts +2 -2
  85. package/dist/components/combobox/index.js +1 -1
  86. package/dist/components/combobox/index.jsx +9 -9
  87. package/dist/components/date-picker/index.d.ts +1 -1
  88. package/dist/components/date-picker/index.js +1 -1
  89. package/dist/components/date-picker/index.jsx +5 -5
  90. package/dist/components/dialog/index.d.ts +1 -1
  91. package/dist/components/dialog/index.js +1 -1
  92. package/dist/components/dialog/index.jsx +5 -5
  93. package/dist/components/download-trigger/index.jsx +4 -4
  94. package/dist/components/editable/index.js +1 -1
  95. package/dist/components/editable/index.jsx +6 -6
  96. package/dist/components/field/index.js +1 -1
  97. package/dist/components/field/index.jsx +3 -3
  98. package/dist/components/fieldset/index.jsx +2 -2
  99. package/dist/components/file-upload/index.js +1 -1
  100. package/dist/components/file-upload/index.jsx +6 -6
  101. package/dist/components/format/index.jsx +2 -2
  102. package/dist/components/frame/index.jsx +3 -3
  103. package/dist/components/hover-card/index.d.ts +1 -1
  104. package/dist/components/hover-card/index.js +1 -1
  105. package/dist/components/hover-card/index.jsx +5 -5
  106. package/dist/components/index.d.ts +1 -1
  107. package/dist/components/index.js +40 -40
  108. package/dist/components/index.jsx +315 -315
  109. package/dist/components/menu/index.d.ts +10 -4
  110. package/dist/components/menu/index.js +1 -1
  111. package/dist/components/menu/index.jsx +5 -5
  112. package/dist/components/number-input/index.js +1 -1
  113. package/dist/components/number-input/index.jsx +6 -6
  114. package/dist/components/pagination/index.js +1 -1
  115. package/dist/components/pagination/index.jsx +4 -4
  116. package/dist/components/pin-input/index.js +1 -1
  117. package/dist/components/pin-input/index.jsx +6 -6
  118. package/dist/components/popover/index.d.ts +1 -1
  119. package/dist/components/popover/index.js +1 -1
  120. package/dist/components/popover/index.jsx +5 -5
  121. package/dist/components/presence/index.d.ts +3 -3
  122. package/dist/components/presence/index.js +1 -1
  123. package/dist/components/presence/index.jsx +2 -2
  124. package/dist/components/progress/index.js +1 -1
  125. package/dist/components/progress/index.jsx +4 -4
  126. package/dist/components/qr-code/index.js +1 -1
  127. package/dist/components/qr-code/index.jsx +4 -4
  128. package/dist/components/radio-group/index.js +1 -1
  129. package/dist/components/radio-group/index.jsx +4 -4
  130. package/dist/components/rating-group/index.js +1 -1
  131. package/dist/components/rating-group/index.jsx +6 -6
  132. package/dist/components/segment-group/index.js +1 -1
  133. package/dist/components/segment-group/index.jsx +4 -4
  134. package/dist/components/select/index.d.ts +1 -1
  135. package/dist/components/select/index.js +1 -1
  136. package/dist/components/select/index.jsx +9 -9
  137. package/dist/components/signature-pad/index.js +1 -1
  138. package/dist/components/signature-pad/index.jsx +6 -6
  139. package/dist/components/slider/index.js +1 -1
  140. package/dist/components/slider/index.jsx +4 -4
  141. package/dist/components/splitter/index.js +1 -1
  142. package/dist/components/splitter/index.jsx +4 -4
  143. package/dist/components/steps/index.js +1 -1
  144. package/dist/components/steps/index.jsx +4 -4
  145. package/dist/components/switch/index.js +1 -1
  146. package/dist/components/switch/index.jsx +6 -6
  147. package/dist/components/tabs/index.js +1 -1
  148. package/dist/components/tabs/index.jsx +5 -5
  149. package/dist/components/tags-input/index.js +1 -1
  150. package/dist/components/tags-input/index.jsx +6 -6
  151. package/dist/components/time-picker/index.d.ts +1 -1
  152. package/dist/components/time-picker/index.js +1 -1
  153. package/dist/components/time-picker/index.jsx +5 -5
  154. package/dist/components/timer/index.jsx +4 -4
  155. package/dist/components/toast/index.js +1 -1
  156. package/dist/components/toast/index.jsx +4 -4
  157. package/dist/components/toggle/index.js +1 -1
  158. package/dist/components/toggle/index.jsx +1 -1
  159. package/dist/components/toggle-group/index.js +1 -1
  160. package/dist/components/toggle-group/index.jsx +4 -4
  161. package/dist/components/tooltip/index.d.ts +1 -1
  162. package/dist/components/tooltip/index.js +1 -1
  163. package/dist/components/tooltip/index.jsx +5 -5
  164. package/dist/components/tour/index.d.ts +1 -1
  165. package/dist/components/tour/index.js +1 -1
  166. package/dist/components/tour/index.jsx +5 -5
  167. package/dist/components/tree-view/index.js +1 -1
  168. package/dist/components/tree-view/index.jsx +7 -7
  169. package/dist/index.d.ts +1 -1
  170. package/dist/index.js +41 -41
  171. package/dist/index.jsx +318 -318
  172. package/dist/providers/environment/index.jsx +2 -2
  173. package/dist/providers/index.js +1 -1
  174. package/dist/providers/index.jsx +5 -5
  175. package/dist/{use-presence-BUVPqaFu.d.ts → use-presence-CT1xpuuo.d.ts} +6 -1
  176. package/package.json +62 -62
  177. package/dist/chunk/{OF3ALDDY.js → 45OXUET3.js} +1 -1
  178. package/dist/chunk/{ROXCI3ZP.js → 4ALLEGBR.js} +1 -1
  179. package/dist/chunk/{JWXGONCE.js → ACHQ3WMT.js} +1 -1
  180. package/dist/chunk/{QBFJVUX3.js → ATMLAY2Z.js} +1 -1
  181. package/dist/chunk/{HD73LMEZ.jsx → D2Z5BEON.jsx} +3 -3
  182. package/dist/chunk/{46YZVE6D.js → DBIUMOLI.js} +1 -1
  183. package/dist/chunk/{TKGOCHK5.js → JCVIA4KI.js} +1 -1
  184. package/dist/chunk/{Z2TDX72A.js → K2GRJC27.js} +1 -1
  185. package/dist/chunk/{ZOGAU3AQ.js → L7KH34DE.js} +1 -1
  186. package/dist/chunk/{DW4NU34Z.js → OE7Y5R5I.js} +1 -1
  187. package/dist/chunk/{N3FF6O2Y.js → POK6DGO4.js} +1 -1
  188. package/dist/chunk/{4UD3WT4B.js → XC5EGHL5.js} +1 -1
  189. package/dist/chunk/{C4PG7WMU.js → XME7TKM2.js} +1 -1
  190. package/dist/chunk/{MSLAT5GQ.js → YIY75WWN.js} +1 -1
  191. package/dist/chunk/{NLXZ3NC4.jsx → ZYF7GVNI.jsx} +3 -3
@@ -4,18 +4,18 @@ import {
4
4
  import {
5
5
  ark
6
6
  } from "./UFYZ7HLU.jsx";
7
- import {
8
- useEnvironmentContext
9
- } from "./HD73LMEZ.jsx";
10
- import {
11
- runIfFn
12
- } from "./KGOB2IMX.jsx";
13
7
  import {
14
8
  useLocaleContext
15
9
  } from "./RCXMZN3G.jsx";
10
+ import {
11
+ useEnvironmentContext
12
+ } from "./D2Z5BEON.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";
@@ -4,18 +4,18 @@ import {
4
4
  import {
5
5
  ark
6
6
  } from "./UFYZ7HLU.jsx";
7
- import {
8
- useEnvironmentContext
9
- } from "./HD73LMEZ.jsx";
10
- import {
11
- runIfFn
12
- } from "./KGOB2IMX.jsx";
13
7
  import {
14
8
  useLocaleContext
15
9
  } from "./RCXMZN3G.jsx";
10
+ import {
11
+ useEnvironmentContext
12
+ } from "./D2Z5BEON.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";
@@ -4,18 +4,18 @@ import {
4
4
  import {
5
5
  ark
6
6
  } from "./UFYZ7HLU.jsx";
7
- import {
8
- useEnvironmentContext
9
- } from "./HD73LMEZ.jsx";
10
- import {
11
- runIfFn
12
- } from "./KGOB2IMX.jsx";
13
7
  import {
14
8
  useLocaleContext
15
9
  } from "./RCXMZN3G.jsx";
10
+ import {
11
+ useEnvironmentContext
12
+ } from "./D2Z5BEON.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";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useFieldsetContext
3
- } from "./NLXZ3NC4.jsx";
3
+ } from "./ZYF7GVNI.jsx";
4
4
  import {
5
5
  composeRefs
6
6
  } from "./DOBZPYAN.jsx";
@@ -246,27 +246,22 @@ var FieldSelect = (props) => {
246
246
  // src/components/field/field-textarea.tsx
247
247
  import { autoresizeTextarea } from "@zag-js/auto-resize";
248
248
  import { mergeProps as mergeProps10 } from "@zag-js/solid";
249
- import { createEffect } from "solid-js";
249
+ import { onCleanup as onCleanup2, onMount as onMount2, splitProps } from "solid-js";
250
250
  var FieldTextarea = (props) => {
251
251
  const field = useFieldContext();
252
252
  let textareaRef;
253
- const { autoresize, ...textareaProps } = props;
253
+ const [autoresizeProps, textareaProps] = splitProps(props, ["autoresize"]);
254
254
  const mergedProps = mergeProps10(
255
255
  () => field?.().getTextareaProps(),
256
- () => ({ style: { resize: autoresize ? "none" : void 0 } }),
256
+ () => ({ style: { resize: autoresizeProps.autoresize ? "none" : void 0 } }),
257
257
  textareaProps
258
258
  );
259
- createEffect(() => {
260
- if (!autoresize) return;
259
+ onMount2(() => {
260
+ if (!autoresizeProps.autoresize) return;
261
261
  const cleanup = autoresizeTextarea(textareaRef);
262
- return cleanup;
262
+ onCleanup2(() => cleanup?.());
263
263
  });
264
- return <ark.textarea
265
- {...mergedProps}
266
- ref={(el) => {
267
- textareaRef = el;
268
- }}
269
- />;
264
+ return <ark.textarea {...mergedProps} ref={composeRefs((el) => textareaRef = el, props.ref)} />;
270
265
  };
271
266
 
272
267
  // src/components/field/field.ts
@@ -4,18 +4,18 @@ import {
4
4
  import {
5
5
  ark
6
6
  } from "./UFYZ7HLU.jsx";
7
- import {
8
- useEnvironmentContext
9
- } from "./HD73LMEZ.jsx";
10
- import {
11
- runIfFn
12
- } from "./KGOB2IMX.jsx";
13
7
  import {
14
8
  useLocaleContext
15
9
  } from "./RCXMZN3G.jsx";
10
+ import {
11
+ useEnvironmentContext
12
+ } from "./D2Z5BEON.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";
@@ -1,15 +1,15 @@
1
- import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider } from './JSBTYBVG.js';
1
+ import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider } from './7S3N5UQH.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 './YMMMHJJS.js';
6
5
  import { useLocaleContext } from './QEMQBM6W.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';
10
10
  import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
11
11
  import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
12
- import { createEffect, onMount, createUniqueId, createMemo, Show } from 'solid-js';
12
+ import { createEffect, onMount, createUniqueId, createMemo, Show, onCleanup } from 'solid-js';
13
13
  import * as menu from '@zag-js/menu';
14
14
  export { anatomy } from '@zag-js/menu';
15
15
 
@@ -97,10 +97,17 @@ var MenuIndicator = (props) => {
97
97
  return createComponent(ark.div, mergedProps);
98
98
  };
99
99
  var MenuItem = (props) => {
100
- const [itemProps, localProps] = createSplitProps()(props, ["closeOnSelect", "disabled", "value", "valueText"]);
100
+ const [itemProps, localProps] = createSplitProps()(props, ["closeOnSelect", "disabled", "value", "valueText", "onSelect"]);
101
101
  const context = useMenuContext();
102
102
  const mergedProps = mergeProps(() => context().getItemProps(itemProps), localProps);
103
103
  const itemState = createMemo(() => context().getItemState(itemProps));
104
+ createEffect(() => {
105
+ const cleanup = context().addItemListener({
106
+ id: itemState().id,
107
+ onSelect: itemProps.onSelect
108
+ });
109
+ onCleanup(() => cleanup?.());
110
+ });
104
111
  return createComponent(MenuItemProvider, {
105
112
  value: itemState,
106
113
  get children() {
@@ -6,13 +6,13 @@ 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 "./D2Z5BEON.jsx";
13
10
  import {
14
11
  createContext
15
12
  } from "./TVCIHLER.jsx";
13
+ import {
14
+ runIfFn
15
+ } from "./KGOB2IMX.jsx";
16
16
  import {
17
17
  __export
18
18
  } from "./7IUG3E2V.jsx";
@@ -1,8 +1,8 @@
1
- import { useFieldContext } from './CIIDKCDP.js';
1
+ import { useFieldContext } from './UL6NTZA6.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 './QEMQBM6W.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,24 +1,24 @@
1
1
  import {
2
2
  useFieldContext
3
- } from "./5KEAUWCK.jsx";
3
+ } from "./4HPQVVRP.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 "./HD73LMEZ.jsx";
13
- import {
14
- runIfFn
15
- } from "./KGOB2IMX.jsx";
16
10
  import {
17
11
  useLocaleContext
18
12
  } from "./RCXMZN3G.jsx";
13
+ import {
14
+ useEnvironmentContext
15
+ } from "./D2Z5BEON.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,8 +1,8 @@
1
- import { useFieldContext } from './CIIDKCDP.js';
1
+ import { useFieldContext } from './UL6NTZA6.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 './QEMQBM6W.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,9 +1,9 @@
1
- import { collapsible_exports } from './DW4NU34Z.js';
1
+ import { collapsible_exports } from './OE7Y5R5I.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 './QEMQBM6W.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';
@@ -10,9 +10,16 @@ import { createSignal, createMemo, createEffect, Show } from 'solid-js';
10
10
  import * as presence from '@zag-js/presence';
11
11
 
12
12
  // src/components/presence/split-presence-props.ts
13
- var splitPresenceProps = (props) => createSplitProps()(props, ["immediate", "lazyMount", "onExitComplete", "present", "unmountOnExit"]);
13
+ var splitPresenceProps = (props) => createSplitProps()(props, [
14
+ "immediate",
15
+ "lazyMount",
16
+ "onExitComplete",
17
+ "present",
18
+ "skipAnimationOnMount",
19
+ "unmountOnExit"
20
+ ]);
14
21
  var usePresence = (props) => {
15
- const [renderStrategyProps, context] = splitRenderStrategyProps(runIfFn(props));
22
+ const [renderStrategyProps, localProps] = splitRenderStrategyProps(runIfFn(props));
16
23
  const [wasEverPresent, setWasEverPresent] = createSignal(false);
17
24
  const service = useMachine(presence.machine, props);
18
25
  const api = createMemo(() => presence.connect(service, normalizeProps));
@@ -26,7 +33,7 @@ var usePresence = (props) => {
26
33
  ref: api().setNode,
27
34
  presenceProps: {
28
35
  hidden: !api().present,
29
- "data-state": context.present ? "open" : "closed"
36
+ "data-state": api().skip && localProps.skipAnimationOnMount ? void 0 : localProps.present ? "open" : "closed"
30
37
  }
31
38
  }));
32
39
  };
@@ -3,7 +3,7 @@ import {
3
3
  } from "./UFYZ7HLU.jsx";
4
4
  import {
5
5
  useEnvironmentContext
6
- } from "./HD73LMEZ.jsx";
6
+ } from "./D2Z5BEON.jsx";
7
7
 
8
8
  // src/components/download-trigger/download-trigger.tsx
9
9
  import { downloadFile } from "@zag-js/file-utils";
@@ -31,17 +31,14 @@ var ToggleContext = (props) => props.children(useToggleContext());
31
31
 
32
32
  // src/components/toggle/toggle-indicator.tsx
33
33
  import { mergeProps } from "@zag-js/solid";
34
- import { Show } from "solid-js";
34
+ import { Show, splitProps } from "solid-js";
35
35
  var ToggleIndicator = (props) => {
36
- const { children, fallback, ...restProps } = props;
36
+ const [baseProps, restProps] = splitProps(props, ["children", "fallback"]);
37
37
  const toggle2 = useToggleContext();
38
38
  const mergedProps = mergeProps(() => toggle2().getIndicatorProps(), restProps);
39
39
  return <ark.div {...mergedProps}>
40
- {
41
- /* @ts-ignore */
42
- }
43
- <Show when={toggle2().pressed} fallback={fallback}>
44
- {children}
40
+ <Show when={toggle2().pressed} fallback={baseProps.fallback}>
41
+ {baseProps.children}
45
42
  </Show>
46
43
  </ark.div>;
47
44
  };
@@ -3,7 +3,7 @@ import {
3
3
  splitPresenceProps,
4
4
  usePresence,
5
5
  usePresenceContext
6
- } from "./PHH4JVAQ.jsx";
6
+ } from "./WC2HBDLJ.jsx";
7
7
  import {
8
8
  composeRefs
9
9
  } from "./DOBZPYAN.jsx";
@@ -18,18 +18,18 @@ import {
18
18
  import {
19
19
  ark
20
20
  } from "./UFYZ7HLU.jsx";
21
- import {
22
- useEnvironmentContext
23
- } from "./HD73LMEZ.jsx";
24
- import {
25
- runIfFn
26
- } from "./KGOB2IMX.jsx";
27
21
  import {
28
22
  useLocaleContext
29
23
  } from "./RCXMZN3G.jsx";
24
+ import {
25
+ useEnvironmentContext
26
+ } from "./D2Z5BEON.jsx";
30
27
  import {
31
28
  createContext
32
29
  } from "./TVCIHLER.jsx";
30
+ import {
31
+ runIfFn
32
+ } from "./KGOB2IMX.jsx";
33
33
  import {
34
34
  __export
35
35
  } from "./7IUG3E2V.jsx";
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  useFieldContext
3
- } from "./5KEAUWCK.jsx";
3
+ } from "./4HPQVVRP.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 "./HD73LMEZ.jsx";
13
- import {
14
- runIfFn
15
- } from "./KGOB2IMX.jsx";
16
10
  import {
17
11
  useLocaleContext
18
12
  } from "./RCXMZN3G.jsx";
13
+ import {
14
+ useEnvironmentContext
15
+ } from "./D2Z5BEON.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,7 +1,7 @@
1
1
  import {
2
2
  collapsible_exports,
3
3
  useCollapsibleContext
4
- } from "./YXY2VFNT.jsx";
4
+ } from "./FUGFSIYK.jsx";
5
5
  import {
6
6
  RenderStrategyProvider,
7
7
  splitRenderStrategyProps,
@@ -13,18 +13,18 @@ import {
13
13
  import {
14
14
  ark
15
15
  } from "./UFYZ7HLU.jsx";
16
- import {
17
- useEnvironmentContext
18
- } from "./HD73LMEZ.jsx";
19
- import {
20
- runIfFn
21
- } from "./KGOB2IMX.jsx";
22
16
  import {
23
17
  useLocaleContext
24
18
  } from "./RCXMZN3G.jsx";
19
+ import {
20
+ useEnvironmentContext
21
+ } from "./D2Z5BEON.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";
@@ -3,7 +3,7 @@ import {
3
3
  splitPresenceProps,
4
4
  usePresence,
5
5
  usePresenceContext
6
- } from "./PHH4JVAQ.jsx";
6
+ } from "./WC2HBDLJ.jsx";
7
7
  import {
8
8
  composeRefs
9
9
  } from "./DOBZPYAN.jsx";
@@ -13,18 +13,18 @@ import {
13
13
  import {
14
14
  ark
15
15
  } from "./UFYZ7HLU.jsx";
16
- import {
17
- useEnvironmentContext
18
- } from "./HD73LMEZ.jsx";
19
- import {
20
- runIfFn
21
- } from "./KGOB2IMX.jsx";
22
16
  import {
23
17
  useLocaleContext
24
18
  } from "./RCXMZN3G.jsx";
19
+ import {
20
+ useEnvironmentContext
21
+ } from "./D2Z5BEON.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,24 +1,24 @@
1
1
  import {
2
2
  useFieldContext
3
- } from "./5KEAUWCK.jsx";
3
+ } from "./4HPQVVRP.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 "./HD73LMEZ.jsx";
13
- import {
14
- runIfFn
15
- } from "./KGOB2IMX.jsx";
16
10
  import {
17
11
  useLocaleContext
18
12
  } from "./RCXMZN3G.jsx";
13
+ import {
14
+ useEnvironmentContext
15
+ } from "./D2Z5BEON.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";
@@ -4,18 +4,18 @@ import {
4
4
  import {
5
5
  ark
6
6
  } from "./UFYZ7HLU.jsx";
7
- import {
8
- useEnvironmentContext
9
- } from "./HD73LMEZ.jsx";
10
- import {
11
- runIfFn
12
- } from "./KGOB2IMX.jsx";
13
7
  import {
14
8
  useLocaleContext
15
9
  } from "./RCXMZN3G.jsx";
10
+ import {
11
+ useEnvironmentContext
12
+ } from "./D2Z5BEON.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";
@@ -4,18 +4,18 @@ import {
4
4
  import {
5
5
  ark
6
6
  } from "./UFYZ7HLU.jsx";
7
- import {
8
- useEnvironmentContext
9
- } from "./HD73LMEZ.jsx";
10
- import {
11
- runIfFn
12
- } from "./KGOB2IMX.jsx";
13
7
  import {
14
8
  useLocaleContext
15
9
  } from "./RCXMZN3G.jsx";
10
+ import {
11
+ useEnvironmentContext
12
+ } from "./D2Z5BEON.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";
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  useFieldContext
3
- } from "./5KEAUWCK.jsx";
3
+ } from "./4HPQVVRP.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 "./HD73LMEZ.jsx";
13
- import {
14
- runIfFn
15
- } from "./KGOB2IMX.jsx";
16
10
  import {
17
11
  useLocaleContext
18
12
  } from "./RCXMZN3G.jsx";
13
+ import {
14
+ useEnvironmentContext
15
+ } from "./D2Z5BEON.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";
@@ -4,18 +4,18 @@ import {
4
4
  import {
5
5
  ark
6
6
  } from "./UFYZ7HLU.jsx";
7
- import {
8
- useEnvironmentContext
9
- } from "./HD73LMEZ.jsx";
10
- import {
11
- runIfFn
12
- } from "./KGOB2IMX.jsx";
13
7
  import {
14
8
  useLocaleContext
15
9
  } from "./RCXMZN3G.jsx";
10
+ import {
11
+ useEnvironmentContext
12
+ } from "./D2Z5BEON.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";
@@ -1,9 +1,9 @@
1
- import { useCollapsibleContext, collapsible_exports } from './DW4NU34Z.js';
1
+ import { useCollapsibleContext, collapsible_exports } from './OE7Y5R5I.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 './QEMQBM6W.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';
@@ -7,18 +7,18 @@ import {
7
7
  import {
8
8
  ark
9
9
  } from "./UFYZ7HLU.jsx";
10
- import {
11
- useEnvironmentContext
12
- } from "./HD73LMEZ.jsx";
13
- import {
14
- runIfFn
15
- } from "./KGOB2IMX.jsx";
16
10
  import {
17
11
  useLocaleContext
18
12
  } from "./RCXMZN3G.jsx";
13
+ import {
14
+ useEnvironmentContext
15
+ } from "./D2Z5BEON.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,8 +1,8 @@
1
- import { useFieldContext } from './CIIDKCDP.js';
1
+ import { useFieldContext } from './UL6NTZA6.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 './QEMQBM6W.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,10 +1,10 @@
1
- import { useFieldContext } from './CIIDKCDP.js';
2
- import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './JSBTYBVG.js';
1
+ import { useFieldContext } from './UL6NTZA6.js';
2
+ import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './7S3N5UQH.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 './QEMQBM6W.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';