@ark-ui/solid 4.7.0 → 4.9.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 (183) hide show
  1. package/dist/chunk/{HWURSPSE.js → 22UQ4DZC.js} +2 -2
  2. package/dist/chunk/{PZDCODVM.jsx → 2ILK4IFM.jsx} +20 -8
  3. package/dist/chunk/{JTHKX457.js → 2J42A7KM.js} +1 -14
  4. package/dist/chunk/{ZX3QOLR2.jsx → 2NEVBQW4.jsx} +4 -4
  5. package/dist/chunk/{SPA64RV2.js → 2W32Z6JZ.js} +2 -2
  6. package/dist/chunk/{FNDB3E7F.jsx → 34JAVC2R.jsx} +4 -4
  7. package/dist/chunk/{Q55I4ULB.js → 34OZO53S.js} +2 -2
  8. package/dist/chunk/{ND6ULTIP.js → 3V3HI6QW.js} +14 -6
  9. package/dist/chunk/{YBEQIVOS.js → 5CYHETDY.js} +12 -2
  10. package/dist/chunk/{OMC7ZZVY.js → 5XD5ZSBX.js} +2 -2
  11. package/dist/chunk/{34GYXRNO.js → 7KPVYYFT.js} +2 -2
  12. package/dist/chunk/ANUFR4QW.jsx +36 -0
  13. package/dist/chunk/{VKM3Y5SS.js → AWO62YTJ.js} +2 -2
  14. package/dist/chunk/CIPYIXIW.js +227 -0
  15. package/dist/chunk/{U6PDXLCA.jsx → CQN5S4C3.jsx} +4 -4
  16. package/dist/chunk/DOBZPYAN.jsx +18 -0
  17. package/dist/chunk/{YJZDRWMW.jsx → DOPROT6M.jsx} +6 -3
  18. package/dist/chunk/{DYAAMWKJ.js → DUDD2T7G.js} +2 -2
  19. package/dist/chunk/{VO46CN3P.js → DUYGPLFV.js} +2 -2
  20. package/dist/chunk/{YCESXPIN.jsx → EHJDQTTW.jsx} +3 -15
  21. package/dist/chunk/{LMMNUVZG.jsx → F3QPTRGW.jsx} +4 -3
  22. package/dist/chunk/{PAR3AJGR.js → FDN5MSFM.js} +2 -2
  23. package/dist/chunk/{AZBVL3C5.jsx → FS3LMJ37.jsx} +4 -4
  24. package/dist/chunk/FVMQXW27.jsx +265 -0
  25. package/dist/chunk/{CUHGQRR2.jsx → GWNETTAV.jsx} +7 -6
  26. package/dist/chunk/{R5ZNIQWU.jsx → HU7FZMJI.jsx} +34 -13
  27. package/dist/chunk/IL7WZATP.js +25 -0
  28. package/dist/chunk/{QX424BJV.jsx → IQJBNZOX.jsx} +11 -1
  29. package/dist/chunk/{LNX6MNBX.js → MJNR43Q5.js} +2 -2
  30. package/dist/chunk/{TY6NCPFG.jsx → MSHQY44G.jsx} +22 -22
  31. package/dist/chunk/{I5OAZLKD.js → NDY7YFV2.js} +2 -2
  32. package/dist/chunk/{YEVD47QN.js → QA6ZMN5Y.js} +3 -3
  33. package/dist/chunk/{UYIC346K.jsx → RH2PDRKN.jsx} +4 -4
  34. package/dist/chunk/{NEI5JM4A.jsx → RVUYRERH.jsx} +4 -4
  35. package/dist/chunk/{PSWXIR5X.jsx → SBPY26HV.jsx} +4 -4
  36. package/dist/chunk/{RSBH7AZU.jsx → SJSLQDBZ.jsx} +4 -4
  37. package/dist/chunk/{TEZSUL43.jsx → T433MZNC.jsx} +6 -6
  38. package/dist/chunk/{HXSFGTUH.jsx → T4NRAKVA.jsx} +4 -3
  39. package/dist/chunk/{CLZWNSRO.jsx → TDD2LTPZ.jsx} +6 -6
  40. package/dist/chunk/{ALKUQIFY.jsx → TMUQ6SLE.jsx} +4 -4
  41. package/dist/chunk/{3QKT7KP4.jsx → U3XJZI3X.jsx} +4 -4
  42. package/dist/chunk/{UZJR5LMS.js → UGKLUHKU.js} +11 -3
  43. package/dist/chunk/{WEGHFH3B.js → VARNCRUN.js} +2 -2
  44. package/dist/chunk/{LUJELJ42.js → XCNALQF7.js} +2 -2
  45. package/dist/chunk/XN6EERRM.js +16 -0
  46. package/dist/chunk/{A7PQQPGA.js → XTV6ZFAA.js} +2 -2
  47. package/dist/chunk/{KKCBAUHZ.js → YV5BACLX.js} +3 -2
  48. package/dist/components/accordion/index.js +1 -1
  49. package/dist/components/accordion/index.jsx +4 -4
  50. package/dist/components/avatar/index.js +1 -1
  51. package/dist/components/avatar/index.jsx +3 -3
  52. package/dist/components/carousel/index.js +1 -1
  53. package/dist/components/carousel/index.jsx +3 -3
  54. package/dist/components/checkbox/index.js +1 -1
  55. package/dist/components/checkbox/index.jsx +4 -4
  56. package/dist/components/clipboard/index.d.ts +8 -2
  57. package/dist/components/clipboard/index.js +1 -1
  58. package/dist/components/clipboard/index.jsx +5 -3
  59. package/dist/components/collapsible/index.js +1 -1
  60. package/dist/components/collapsible/index.jsx +3 -3
  61. package/dist/components/color-picker/index.js +1 -1
  62. package/dist/components/color-picker/index.jsx +5 -5
  63. package/dist/components/combobox/index.js +1 -1
  64. package/dist/components/combobox/index.jsx +7 -7
  65. package/dist/components/date-picker/index.js +1 -1
  66. package/dist/components/date-picker/index.jsx +3 -3
  67. package/dist/components/dialog/index.js +1 -1
  68. package/dist/components/dialog/index.jsx +3 -3
  69. package/dist/components/editable/index.js +1 -1
  70. package/dist/components/editable/index.jsx +4 -4
  71. package/dist/components/field/index.d.ts +7 -7
  72. package/dist/components/field/index.js +1 -1
  73. package/dist/components/field/index.jsx +1 -1
  74. package/dist/components/file-upload/index.d.ts +5 -5
  75. package/dist/components/file-upload/index.js +1 -1
  76. package/dist/components/file-upload/index.jsx +4 -4
  77. package/dist/components/focus-trap/index.d.ts +18 -0
  78. package/dist/components/focus-trap/index.js +1 -0
  79. package/dist/components/focus-trap/index.jsx +10 -0
  80. package/dist/components/format/index.jsx +1 -1
  81. package/dist/components/frame/index.js +1 -1
  82. package/dist/components/frame/index.jsx +3 -2
  83. package/dist/components/hover-card/index.js +1 -1
  84. package/dist/components/hover-card/index.jsx +3 -3
  85. package/dist/components/index.d.ts +6 -2
  86. package/dist/components/index.js +42 -40
  87. package/dist/components/index.jsx +323 -274
  88. package/dist/components/menu/index.js +1 -1
  89. package/dist/components/menu/index.jsx +3 -3
  90. package/dist/components/number-input/index.js +1 -1
  91. package/dist/components/number-input/index.jsx +4 -4
  92. package/dist/components/pagination/index.js +1 -1
  93. package/dist/components/pagination/index.jsx +3 -3
  94. package/dist/components/pin-input/index.js +1 -1
  95. package/dist/components/pin-input/index.jsx +4 -4
  96. package/dist/components/popover/index.js +1 -1
  97. package/dist/components/popover/index.jsx +3 -3
  98. package/dist/components/progress/index.d.ts +5 -0
  99. package/dist/components/progress/index.js +1 -1
  100. package/dist/components/progress/index.jsx +3 -3
  101. package/dist/components/qr-code/index.d.ts +14 -3
  102. package/dist/components/qr-code/index.js +1 -1
  103. package/dist/components/qr-code/index.jsx +5 -3
  104. package/dist/components/radio-group/index.js +1 -1
  105. package/dist/components/radio-group/index.jsx +3 -3
  106. package/dist/components/rating-group/index.js +1 -1
  107. package/dist/components/rating-group/index.jsx +4 -4
  108. package/dist/components/segment-group/index.js +1 -1
  109. package/dist/components/segment-group/index.jsx +3 -3
  110. package/dist/components/select/index.js +1 -1
  111. package/dist/components/select/index.jsx +7 -7
  112. package/dist/components/signature-pad/index.js +1 -1
  113. package/dist/components/signature-pad/index.jsx +4 -4
  114. package/dist/components/slider/index.js +1 -1
  115. package/dist/components/slider/index.jsx +3 -3
  116. package/dist/components/splitter/index.js +1 -1
  117. package/dist/components/splitter/index.jsx +3 -3
  118. package/dist/components/steps/index.js +1 -1
  119. package/dist/components/steps/index.jsx +3 -3
  120. package/dist/components/switch/index.js +1 -1
  121. package/dist/components/switch/index.jsx +4 -4
  122. package/dist/components/tabs/index.js +1 -1
  123. package/dist/components/tabs/index.jsx +3 -3
  124. package/dist/components/tags-input/index.js +1 -1
  125. package/dist/components/tags-input/index.jsx +4 -4
  126. package/dist/components/time-picker/index.js +1 -1
  127. package/dist/components/time-picker/index.jsx +3 -3
  128. package/dist/components/timer/index.jsx +2 -2
  129. package/dist/components/toggle/index.d.ts +5 -5
  130. package/dist/components/toggle/index.js +1 -1
  131. package/dist/components/toggle/index.jsx +1 -1
  132. package/dist/components/toggle-group/index.js +1 -1
  133. package/dist/components/toggle-group/index.jsx +3 -3
  134. package/dist/components/tooltip/index.js +1 -1
  135. package/dist/components/tooltip/index.jsx +3 -3
  136. package/dist/components/tour/index.d.ts +136 -0
  137. package/dist/components/tour/index.js +1 -0
  138. package/dist/components/tour/index.jsx +52 -0
  139. package/dist/components/tree-view/index.js +1 -1
  140. package/dist/components/tree-view/index.jsx +6 -6
  141. package/dist/index.d.ts +6 -2
  142. package/dist/index.js +43 -41
  143. package/dist/index.jsx +326 -277
  144. package/dist/providers/index.js +1 -1
  145. package/dist/providers/index.jsx +4 -4
  146. package/package.json +59 -56
  147. package/dist/chunk/{Y37DXSEE.jsx → 27RTXL55.jsx} +3 -3
  148. package/dist/chunk/{TM6MNCJB.js → 2GATVLPK.js} +1 -1
  149. package/dist/chunk/{JSMOACQ5.js → 2H4WHODR.js} +1 -1
  150. package/dist/chunk/{EZ7NDY7U.jsx → 2HTNQLGP.jsx} +3 -3
  151. package/dist/chunk/{KQLVMRLF.js → 3HMZSTYX.js} +1 -1
  152. package/dist/chunk/{AK2LUFHG.js → 5SRZ3YYC.js} +1 -1
  153. package/dist/chunk/{PBJ7MGGS.js → 632HFNZF.js} +19 -19
  154. package/dist/chunk/{YN36NFIE.js → 6YQ3EF2J.js} +1 -1
  155. package/dist/chunk/{Q3STMYMV.jsx → AIQFNVCU.jsx} +3 -3
  156. package/dist/chunk/{WLUB7JYL.js → ATMUKDFF.js} +1 -1
  157. package/dist/chunk/{PQ3UNZE4.jsx → B7LE23PE.jsx} +3 -3
  158. package/dist/chunk/{ZSWRRXUI.jsx → BY62F4IV.jsx} +3 -3
  159. package/dist/chunk/{YQ7OK72K.jsx → CPMYIT5J.jsx} +3 -3
  160. package/dist/chunk/{YKYATBPX.js → FNEB2RAF.js} +1 -1
  161. package/dist/chunk/{UW63M5GW.js → GXWVYON6.js} +1 -1
  162. package/dist/chunk/{6GRTONVL.jsx → GZVCPLKK.jsx} +3 -3
  163. package/dist/chunk/{4ICFJW2D.jsx → H4RSHLA7.jsx} +3 -3
  164. package/dist/chunk/{T7DQP6DT.jsx → IZC6PKGT.jsx} +3 -3
  165. package/dist/chunk/{L6HRKS4V.js → JVXNYKNA.js} +1 -1
  166. package/dist/chunk/{CRUV7XPV.jsx → K54W24N6.jsx} +3 -3
  167. package/dist/chunk/{R3KGHDYR.js → LVPQ6GR4.js} +1 -1
  168. package/dist/chunk/{KF5ALSYW.js → M2FICVVI.js} +1 -1
  169. package/dist/chunk/{GRSRDWXO.jsx → MRQ2UYM4.jsx} +3 -3
  170. package/dist/chunk/{7KBRNVZ6.js → MV3KTL7M.js} +9 -9
  171. package/dist/chunk/{4TNW4LNT.jsx → NK4T7LIZ.jsx} +3 -3
  172. package/dist/chunk/{3XNNMNPS.js → Q7NPTAJI.js} +1 -1
  173. package/dist/chunk/{QVBQZJF6.js → QLGAAWNC.js} +1 -1
  174. package/dist/chunk/{2PEBPAD5.jsx → R2YVXMP7.jsx} +0 -0
  175. package/dist/chunk/{4DPMLML4.js → RAEDLHD3.js} +1 -1
  176. package/dist/chunk/{CFEFSYGC.jsx → SN5TXTB6.jsx} +9 -9
  177. package/dist/chunk/{ENHIBLQ6.js → SWUA2VFC.js} +1 -1
  178. package/dist/chunk/{6EY2Z73Y.jsx → TC2QHQ47.jsx} +3 -3
  179. package/dist/chunk/{LKZXE4D5.jsx → U7SPBSDD.jsx} +3 -3
  180. package/dist/chunk/{KUTJELYB.js → W43X4SNE.js} +1 -1
  181. package/dist/chunk/{HQFEUYOV.jsx → WIVXL7HJ.jsx} +3 -3
  182. package/dist/chunk/{VI2C2YY7.jsx → ZC6KWJ4T.jsx} +3 -3
  183. /package/dist/chunk/{FE2WXPJR.js → ZWNW7ARB.js} +0 -0
@@ -1,8 +1,8 @@
1
- import { useFieldContext } from './PBJ7MGGS.js';
1
+ import { useFieldContext } from './632HFNZF.js';
2
2
  import { createSplitProps } from './ZMHI4GDJ.js';
3
3
  import { ark } from './EPLBB4QN.js';
4
- import { useLocaleContext } from './HPDOBQ3V.js';
5
4
  import { useEnvironmentContext } from './QODB3C3M.js';
5
+ import { useLocaleContext } from './HPDOBQ3V.js';
6
6
  import { createContext } from './I5UG2QUO.js';
7
7
  import { __export } from './ESLJRKWD.js';
8
8
  import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
@@ -1,3 +1,6 @@
1
+ import {
2
+ composeRefs
3
+ } from "./DOBZPYAN.jsx";
1
4
  import {
2
5
  EnvironmentProvider
3
6
  } from "./5O4RWSWO.jsx";
@@ -13,21 +16,6 @@ import {
13
16
  } from "solid-js";
14
17
  import { Portal } from "solid-js/web";
15
18
 
16
- // src/utils/compose-refs.ts
17
- var isRefFn = (ref) => typeof ref === "function";
18
- function setRef(ref, value) {
19
- if (isRefFn(ref)) {
20
- ref(value);
21
- }
22
- }
23
- function composeRefs(...refs) {
24
- return (node) => {
25
- for (const ref of refs) {
26
- setRef(ref, node);
27
- }
28
- };
29
- }
30
-
31
19
  // src/components/frame/frame-content.tsx
32
20
  import { createEffect, onCleanup } from "solid-js";
33
21
  var FrameContent = (props) => {
@@ -10,12 +10,12 @@ import {
10
10
  import {
11
11
  ark
12
12
  } from "./UFYZ7HLU.jsx";
13
- import {
14
- useLocaleContext
15
- } from "./3QQZKR3F.jsx";
16
13
  import {
17
14
  useEnvironmentContext
18
15
  } from "./5O4RWSWO.jsx";
16
+ import {
17
+ useLocaleContext
18
+ } from "./3QQZKR3F.jsx";
19
19
  import {
20
20
  createContext
21
21
  } from "./NMGUCD2L.jsx";
@@ -313,6 +313,7 @@ var MenuRoot = (props) => {
313
313
  "onPointerDownOutside",
314
314
  "onSelect",
315
315
  "open",
316
+ "navigate",
316
317
  "positioning",
317
318
  "typeahead"
318
319
  ]);
@@ -1,8 +1,8 @@
1
- import { useFieldContext } from './PBJ7MGGS.js';
1
+ import { useFieldContext } from './632HFNZF.js';
2
2
  import { createSplitProps } from './ZMHI4GDJ.js';
3
3
  import { ark } from './EPLBB4QN.js';
4
- import { useLocaleContext } from './HPDOBQ3V.js';
5
4
  import { useEnvironmentContext } from './QODB3C3M.js';
5
+ import { useLocaleContext } from './HPDOBQ3V.js';
6
6
  import { createContext } from './I5UG2QUO.js';
7
7
  import { __export } from './ESLJRKWD.js';
8
8
  import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  useFieldContext
3
- } from "./TY6NCPFG.jsx";
3
+ } from "./MSHQY44G.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
- useLocaleContext
12
- } from "./3QQZKR3F.jsx";
13
10
  import {
14
11
  useEnvironmentContext
15
12
  } from "./5O4RWSWO.jsx";
13
+ import {
14
+ useLocaleContext
15
+ } from "./3QQZKR3F.jsx";
16
16
  import {
17
17
  createContext
18
18
  } from "./NMGUCD2L.jsx";
@@ -0,0 +1,265 @@
1
+ import {
2
+ PresenceProvider,
3
+ splitPresenceProps,
4
+ usePresence,
5
+ usePresenceContext
6
+ } from "./E72NMPSK.jsx";
7
+ import {
8
+ RenderStrategyProvider,
9
+ splitRenderStrategyProps,
10
+ useRenderStrategyContext
11
+ } from "./5ONYCKM3.jsx";
12
+ import {
13
+ createSplitProps
14
+ } from "./6WEDGJKQ.jsx";
15
+ import {
16
+ ark
17
+ } from "./UFYZ7HLU.jsx";
18
+ import {
19
+ useEnvironmentContext
20
+ } from "./5O4RWSWO.jsx";
21
+ import {
22
+ useLocaleContext
23
+ } from "./3QQZKR3F.jsx";
24
+ import {
25
+ createContext
26
+ } from "./NMGUCD2L.jsx";
27
+ import {
28
+ __export
29
+ } from "./7IUG3E2V.jsx";
30
+
31
+ // src/components/tour/tour-action-trigger.tsx
32
+ import { mergeProps } from "@zag-js/solid";
33
+
34
+ // src/components/tour/use-tour-context.ts
35
+ var [TourProvider, useTourContext] = createContext({
36
+ hookName: "useTourContext",
37
+ providerName: "<TourProvider />"
38
+ });
39
+
40
+ // src/components/tour/tour-action-trigger.tsx
41
+ var TourActionTrigger = (props) => {
42
+ const [actionTriggerProps, localProps] = createSplitProps()(props, [
43
+ "action"
44
+ ]);
45
+ const tour2 = useTourContext();
46
+ const mergedProps = mergeProps(() => tour2().getActionTriggerProps(actionTriggerProps), localProps);
47
+ return <ark.button {...mergedProps}>
48
+ {mergedProps.children || actionTriggerProps.action.label}
49
+ </ark.button>;
50
+ };
51
+
52
+ // src/components/tour/tour-actions.tsx
53
+ var TourActions = (props) => {
54
+ const tour2 = useTourContext();
55
+ return props.children(() => tour2().step?.actions ?? []);
56
+ };
57
+
58
+ // src/components/tour/tour-arrow.tsx
59
+ import { mergeProps as mergeProps2 } from "@zag-js/solid";
60
+ import { Show } from "solid-js";
61
+ var TourArrow = (props) => {
62
+ const tour2 = useTourContext();
63
+ const mergedProps = mergeProps2(() => tour2().getArrowProps(), props);
64
+ return <Show when={tour2().step?.arrow}>
65
+ <ark.div {...mergedProps} />
66
+ </Show>;
67
+ };
68
+
69
+ // src/components/tour/tour-arrow-tip.tsx
70
+ import { mergeProps as mergeProps3 } from "@zag-js/solid";
71
+ var TourArrowTip = (props) => {
72
+ const tour2 = useTourContext();
73
+ const mergedProps = mergeProps3(() => tour2().getArrowTipProps(), props);
74
+ return <ark.div {...mergedProps} />;
75
+ };
76
+
77
+ // src/components/tour/tour-backdrop.tsx
78
+ import { mergeProps as mergeProps4 } from "@zag-js/solid";
79
+ import { Show as Show2 } from "solid-js";
80
+ var TourBackdrop = (props) => {
81
+ const tour2 = useTourContext();
82
+ const renderStrategyProps = useRenderStrategyContext();
83
+ const presence = usePresence(mergeProps4(renderStrategyProps, () => ({ present: tour2().open })));
84
+ const mergedProps = mergeProps4(
85
+ () => tour2().getBackdropProps(),
86
+ () => presence().presenceProps,
87
+ props
88
+ );
89
+ return <Show2 when={!presence().unmounted}>
90
+ <ark.div {...mergedProps} hidden={!tour2().step?.backdrop} />
91
+ </Show2>;
92
+ };
93
+
94
+ // src/components/tour/tour-close-trigger.tsx
95
+ import { mergeProps as mergeProps5 } from "@zag-js/solid";
96
+ var TourCloseTrigger = (props) => {
97
+ const tour2 = useTourContext();
98
+ const mergedProps = mergeProps5(() => tour2().getCloseTriggerProps(), props);
99
+ return <ark.button {...mergedProps} />;
100
+ };
101
+
102
+ // src/components/tour/tour-content.tsx
103
+ import { mergeProps as mergeProps6 } from "@zag-js/solid";
104
+ import { Show as Show3 } from "solid-js";
105
+ var TourContent = (props) => {
106
+ const tour2 = useTourContext();
107
+ const renderStrategyProps = useRenderStrategyContext();
108
+ const presence = usePresence(mergeProps6(renderStrategyProps, () => ({ present: tour2().open })));
109
+ const mergedProps = mergeProps6(
110
+ () => tour2().getContentProps(),
111
+ () => presence().presenceProps,
112
+ props
113
+ );
114
+ return <Show3 when={!presence().unmounted}>
115
+ <ark.div {...mergedProps} />
116
+ </Show3>;
117
+ };
118
+
119
+ // src/components/tour/tour-context.tsx
120
+ var TourContext = (props) => props.children(useTourContext());
121
+
122
+ // src/components/tour/tour-control.tsx
123
+ import { mergeProps as mergeProps7 } from "@zag-js/solid";
124
+
125
+ // src/components/tour/tour.anatomy.ts
126
+ import { anatomy } from "@zag-js/tour";
127
+ var tourAnatomy = anatomy.extendWith("control");
128
+
129
+ // src/components/tour/tour-control.tsx
130
+ var TourControl = (props) => {
131
+ const mergedProps = mergeProps7(() => tourAnatomy.build().control.attrs, props);
132
+ return <ark.div {...mergedProps} />;
133
+ };
134
+
135
+ // src/components/tour/tour-description.tsx
136
+ import { mergeProps as mergeProps8 } from "@zag-js/solid";
137
+ var TourDescription = (props) => {
138
+ const tour2 = useTourContext();
139
+ const mergedProps = mergeProps8(() => tour2().getDescriptionProps(), props);
140
+ return <ark.div {...mergedProps}>{mergedProps.children || tour2().step?.description}</ark.div>;
141
+ };
142
+
143
+ // src/components/tour/tour-positioner.tsx
144
+ import { mergeProps as mergeProps9 } from "@zag-js/solid";
145
+ import { Show as Show4 } from "solid-js";
146
+ var TourPositioner = (props) => {
147
+ const tour2 = useTourContext();
148
+ const presence = usePresenceContext();
149
+ const mergedProps = mergeProps9(() => tour2().getPositionerProps(), props);
150
+ return <Show4 when={!presence().unmounted}>
151
+ <ark.div {...mergedProps} />
152
+ </Show4>;
153
+ };
154
+
155
+ // src/components/tour/tour-progress-text.tsx
156
+ import { mergeProps as mergeProps10 } from "@zag-js/solid";
157
+ var TourProgressText = (props) => {
158
+ const tour2 = useTourContext();
159
+ const mergedProps = mergeProps10(() => tour2().getProgressTextProps(), props);
160
+ return <ark.div {...mergedProps}>
161
+ {mergedProps.children || tour2().getProgressText()}
162
+ </ark.div>;
163
+ };
164
+
165
+ // src/components/tour/tour-root.tsx
166
+ import { mergeProps as mergeProps11 } from "@zag-js/solid";
167
+ var TourRoot = (props) => {
168
+ const [presenceProps, rootProps] = splitPresenceProps(props);
169
+ const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);
170
+ const presence = usePresence(
171
+ mergeProps11(presenceProps, () => ({ present: rootProps.tour().open }))
172
+ );
173
+ return <TourProvider value={rootProps.tour}>
174
+ <RenderStrategyProvider value={renderStrategyProps}>
175
+ <PresenceProvider value={presence}>{rootProps.children}</PresenceProvider>
176
+ </RenderStrategyProvider>
177
+ </TourProvider>;
178
+ };
179
+
180
+ // src/components/tour/tour-spotlight.tsx
181
+ import { mergeProps as mergeProps12 } from "@zag-js/solid";
182
+ import { Show as Show5 } from "solid-js";
183
+ var TourSpotlight = (props) => {
184
+ const tour2 = useTourContext();
185
+ const renderStrategyProps = useRenderStrategyContext();
186
+ const presenceApi = usePresence(mergeProps12(renderStrategyProps, () => ({ present: tour2().open })));
187
+ const mergedProps = mergeProps12(
188
+ () => tour2().getSpotlightProps(),
189
+ () => presenceApi().presenceProps,
190
+ props
191
+ );
192
+ return <Show5 when={!presenceApi().unmounted}>
193
+ <ark.div {...mergedProps} hidden={!tour2().open || !tour2().step?.target?.()} />
194
+ </Show5>;
195
+ };
196
+
197
+ // src/components/tour/tour-title.tsx
198
+ import { mergeProps as mergeProps13 } from "@zag-js/solid";
199
+ var TourTitle = (props) => {
200
+ const tour2 = useTourContext();
201
+ const mergedProps = mergeProps13(() => tour2().getTitleProps(), props);
202
+ return <ark.h2 {...mergedProps}>{mergedProps.children || tour2().step?.title}</ark.h2>;
203
+ };
204
+
205
+ // src/components/tour/use-tour.ts
206
+ import { normalizeProps, useMachine } from "@zag-js/solid";
207
+ import * as tour from "@zag-js/tour";
208
+ import { createMemo, createUniqueId } from "solid-js";
209
+ var useTour = (props = {}) => {
210
+ const id = createUniqueId();
211
+ const locale = useLocaleContext();
212
+ const environment = useEnvironmentContext();
213
+ const context = createMemo(() => ({
214
+ id,
215
+ dir: locale().dir,
216
+ getRootNode: environment().getRootNode,
217
+ ...props
218
+ }));
219
+ const [state, send] = useMachine(tour.machine(context()), {
220
+ context
221
+ });
222
+ return createMemo(() => tour.connect(state, send, normalizeProps));
223
+ };
224
+
225
+ // src/components/tour/tour.ts
226
+ var tour_exports = {};
227
+ __export(tour_exports, {
228
+ ActionTrigger: () => TourActionTrigger,
229
+ Actions: () => TourActions,
230
+ Arrow: () => TourArrow,
231
+ ArrowTip: () => TourArrowTip,
232
+ Backdrop: () => TourBackdrop,
233
+ CloseTrigger: () => TourCloseTrigger,
234
+ Content: () => TourContent,
235
+ Context: () => TourContext,
236
+ Control: () => TourControl,
237
+ Description: () => TourDescription,
238
+ Positioner: () => TourPositioner,
239
+ ProgressText: () => TourProgressText,
240
+ Root: () => TourRoot,
241
+ Spotlight: () => TourSpotlight,
242
+ Title: () => TourTitle
243
+ });
244
+
245
+ export {
246
+ useTourContext,
247
+ TourActionTrigger,
248
+ TourActions,
249
+ TourArrow,
250
+ TourArrowTip,
251
+ TourBackdrop,
252
+ TourCloseTrigger,
253
+ TourContent,
254
+ TourContext,
255
+ tourAnatomy,
256
+ TourControl,
257
+ TourDescription,
258
+ TourPositioner,
259
+ TourProgressText,
260
+ TourRoot,
261
+ TourSpotlight,
262
+ TourTitle,
263
+ useTour,
264
+ tour_exports
265
+ };
@@ -1,24 +1,24 @@
1
- import {
2
- useFieldContext
3
- } from "./TY6NCPFG.jsx";
4
1
  import {
5
2
  PresenceProvider,
6
3
  splitPresenceProps,
7
4
  usePresence,
8
5
  usePresenceContext
9
6
  } from "./E72NMPSK.jsx";
7
+ import {
8
+ useFieldContext
9
+ } from "./MSHQY44G.jsx";
10
10
  import {
11
11
  createSplitProps
12
12
  } from "./6WEDGJKQ.jsx";
13
13
  import {
14
14
  ark
15
15
  } from "./UFYZ7HLU.jsx";
16
- import {
17
- useLocaleContext
18
- } from "./3QQZKR3F.jsx";
19
16
  import {
20
17
  useEnvironmentContext
21
18
  } from "./5O4RWSWO.jsx";
19
+ import {
20
+ useLocaleContext
21
+ } from "./3QQZKR3F.jsx";
22
22
  import {
23
23
  createContext
24
24
  } from "./NMGUCD2L.jsx";
@@ -256,6 +256,7 @@ var ComboboxRoot = (props) => {
256
256
  "loopFocus",
257
257
  "multiple",
258
258
  "name",
259
+ "navigate",
259
260
  "onFocusOutside",
260
261
  "onHighlightChange",
261
262
  "onInputValueChange",
@@ -4,12 +4,12 @@ import {
4
4
  import {
5
5
  ark
6
6
  } from "./UFYZ7HLU.jsx";
7
- import {
8
- useLocaleContext
9
- } from "./3QQZKR3F.jsx";
10
7
  import {
11
8
  useEnvironmentContext
12
9
  } from "./5O4RWSWO.jsx";
10
+ import {
11
+ useLocaleContext
12
+ } from "./3QQZKR3F.jsx";
13
13
  import {
14
14
  createContext
15
15
  } from "./NMGUCD2L.jsx";
@@ -26,32 +26,48 @@ var [QrCodeProvider, useQrCodeContext] = createContext({
26
26
  // src/components/qr-code/qr-code-context.ts
27
27
  var QrCodeContext = (props) => props.children(useQrCodeContext());
28
28
 
29
- // src/components/qr-code/qr-code-frame.tsx
29
+ // src/components/qr-code/qr-code-download-trigger.tsx
30
30
  import { mergeProps } from "@zag-js/solid";
31
+ var QrCodeDownloadTrigger = (props) => {
32
+ const [downloadTriggerProps, localProps] = createSplitProps()(props, [
33
+ "fileName",
34
+ "mimeType",
35
+ "quality"
36
+ ]);
37
+ const qrCode2 = useQrCodeContext();
38
+ const mergedProps = mergeProps(
39
+ () => qrCode2().getDownloadTriggerProps(downloadTriggerProps),
40
+ localProps
41
+ );
42
+ return <ark.button {...mergedProps} />;
43
+ };
44
+
45
+ // src/components/qr-code/qr-code-frame.tsx
46
+ import { mergeProps as mergeProps2 } from "@zag-js/solid";
31
47
  var QrCodeFrame = (props) => {
32
48
  const qrCode2 = useQrCodeContext();
33
- const mergedProps = mergeProps(() => qrCode2().getFrameProps(), props);
49
+ const mergedProps = mergeProps2(() => qrCode2().getFrameProps(), props);
34
50
  return <ark.svg {...mergedProps} />;
35
51
  };
36
52
 
37
53
  // src/components/qr-code/qr-code-overlay.tsx
38
- import { mergeProps as mergeProps2 } from "@zag-js/solid";
54
+ import { mergeProps as mergeProps3 } from "@zag-js/solid";
39
55
  var QrCodeOverlay = (props) => {
40
56
  const qrCode2 = useQrCodeContext();
41
- const mergedProps = mergeProps2(() => qrCode2().getOverlayProps(), props);
57
+ const mergedProps = mergeProps3(() => qrCode2().getOverlayProps(), props);
42
58
  return <ark.div {...mergedProps} />;
43
59
  };
44
60
 
45
61
  // src/components/qr-code/qr-code-pattern.tsx
46
- import { mergeProps as mergeProps3 } from "@zag-js/solid";
62
+ import { mergeProps as mergeProps4 } from "@zag-js/solid";
47
63
  var QrCodePattern = (props) => {
48
64
  const qrCode2 = useQrCodeContext();
49
- const mergedProps = mergeProps3(() => qrCode2().getPatternProps(), props);
65
+ const mergedProps = mergeProps4(() => qrCode2().getPatternProps(), props);
50
66
  return <ark.path {...mergedProps} />;
51
67
  };
52
68
 
53
69
  // src/components/qr-code/qr-code-root.tsx
54
- import { mergeProps as mergeProps4 } from "@zag-js/solid";
70
+ import { mergeProps as mergeProps5 } from "@zag-js/solid";
55
71
 
56
72
  // src/components/qr-code/use-qr-code.ts
57
73
  import * as qrCode from "@zag-js/qr-code";
@@ -65,6 +81,7 @@ var useQrCode = (props = {}) => {
65
81
  id,
66
82
  dir: locale().dir,
67
83
  getRootNode: environment().getRootNode,
84
+ value: props.defaultValue,
68
85
  ...props
69
86
  }));
70
87
  const [state, send] = useMachine(qrCode.machine(context()), {
@@ -76,23 +93,25 @@ var useQrCode = (props = {}) => {
76
93
  // src/components/qr-code/qr-code-root.tsx
77
94
  var QrCodeRoot = (props) => {
78
95
  const [useQrCodeProps, restProps] = createSplitProps()(props, [
96
+ "defaultValue",
79
97
  "encoding",
80
98
  "id",
81
99
  "ids",
100
+ "onValueChange",
82
101
  "value"
83
102
  ]);
84
103
  const api = useQrCode(useQrCodeProps);
85
- const mergedProps = mergeProps4(() => api().getRootProps(), restProps);
104
+ const mergedProps = mergeProps5(() => api().getRootProps(), restProps);
86
105
  return <QrCodeProvider value={api}>
87
106
  <ark.div {...mergedProps} />
88
107
  </QrCodeProvider>;
89
108
  };
90
109
 
91
110
  // src/components/qr-code/qr-code-root-provider.tsx
92
- import { mergeProps as mergeProps5 } from "@zag-js/solid";
111
+ import { mergeProps as mergeProps6 } from "@zag-js/solid";
93
112
  var QrCodeRootProvider = (props) => {
94
113
  const [{ value: qrCode2 }, localProps] = createSplitProps()(props, ["value"]);
95
- const mergedProps = mergeProps5(() => qrCode2().getRootProps(), localProps);
114
+ const mergedProps = mergeProps6(() => qrCode2().getRootProps(), localProps);
96
115
  return <QrCodeProvider value={qrCode2}>
97
116
  <ark.div {...mergedProps} />
98
117
  </QrCodeProvider>;
@@ -105,6 +124,7 @@ import { anatomy } from "@zag-js/qr-code";
105
124
  var qr_code_exports = {};
106
125
  __export(qr_code_exports, {
107
126
  Context: () => QrCodeContext,
127
+ DownloadTrigger: () => QrCodeDownloadTrigger,
108
128
  Frame: () => QrCodeFrame,
109
129
  Overlay: () => QrCodeOverlay,
110
130
  Pattern: () => QrCodePattern,
@@ -115,6 +135,7 @@ __export(qr_code_exports, {
115
135
  export {
116
136
  useQrCodeContext,
117
137
  QrCodeContext,
138
+ QrCodeDownloadTrigger,
118
139
  QrCodeFrame,
119
140
  QrCodeOverlay,
120
141
  QrCodePattern,
@@ -0,0 +1,25 @@
1
+ import { composeRefs } from './XN6EERRM.js';
2
+ import { createSplitProps } from './ZMHI4GDJ.js';
3
+ import { ark } from './EPLBB4QN.js';
4
+ import { createComponent, mergeProps } from 'solid-js/web';
5
+ import { trapFocus } from '@zag-js/focus-trap';
6
+ import { createEffect, onCleanup } from 'solid-js';
7
+
8
+ var FocusTrap = (props) => {
9
+ let localNode;
10
+ const [trapProps, localProps] = createSplitProps()(props, ["disabled", "onActivate", "onDeactivate", "initialFocus", "fallbackFocus", "returnFocusOnDeactivate", "setReturnFocus"]);
11
+ createEffect(() => {
12
+ if (!localNode || trapProps.disabled) return;
13
+ const autoFocusNode = localNode.querySelector("[autofocus], [data-autofocus]");
14
+ trapProps.initialFocus ||= autoFocusNode ?? void 0;
15
+ onCleanup(trapFocus(localNode, trapProps));
16
+ });
17
+ return createComponent(ark.div, mergeProps(localProps, {
18
+ ref(r$) {
19
+ var _ref$ = composeRefs((el) => localNode = el, props.ref);
20
+ typeof _ref$ === "function" && _ref$(r$);
21
+ }
22
+ }));
23
+ };
24
+
25
+ export { FocusTrap };
@@ -115,6 +115,14 @@ var ClipboardTrigger = (props) => {
115
115
  return <ark.button {...mergedProps} />;
116
116
  };
117
117
 
118
+ // src/components/clipboard/clipboard-value-text.tsx
119
+ import { mergeProps as mergeProps8 } from "@zag-js/solid";
120
+ var ClipboardValueText = (props) => {
121
+ const api = useClipboardContext();
122
+ const mergedProps = mergeProps8(props);
123
+ return <ark.span {...mergedProps}>{props.children || api().value}</ark.span>;
124
+ };
125
+
118
126
  // src/components/clipboard/clipboard.anatomy.ts
119
127
  import { anatomy } from "@zag-js/clipboard";
120
128
 
@@ -128,7 +136,8 @@ __export(clipboard_exports, {
128
136
  Label: () => ClipboardLabel,
129
137
  Root: () => ClipboardRoot,
130
138
  RootProvider: () => ClipboardRootProvider,
131
- Trigger: () => ClipboardTrigger
139
+ Trigger: () => ClipboardTrigger,
140
+ ValueText: () => ClipboardValueText
132
141
  });
133
142
 
134
143
  export {
@@ -142,6 +151,7 @@ export {
142
151
  ClipboardRoot,
143
152
  ClipboardRootProvider,
144
153
  ClipboardTrigger,
154
+ ClipboardValueText,
145
155
  anatomy,
146
156
  clipboard_exports
147
157
  };
@@ -1,9 +1,9 @@
1
- import { useFieldContext } from './PBJ7MGGS.js';
1
+ import { useFieldContext } from './632HFNZF.js';
2
2
  import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider } from './LCESUDZB.js';
3
3
  import { createSplitProps } from './ZMHI4GDJ.js';
4
4
  import { ark } from './EPLBB4QN.js';
5
- import { useLocaleContext } from './HPDOBQ3V.js';
6
5
  import { useEnvironmentContext } from './QODB3C3M.js';
6
+ import { useLocaleContext } from './HPDOBQ3V.js';
7
7
  import { createContext } from './I5UG2QUO.js';
8
8
  import { __export } from './ESLJRKWD.js';
9
9
  import { createComponent, mergeProps as mergeProps$1, effect, template } from 'solid-js/web';