@ark-ui/solid 5.5.0 → 5.6.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 (173) hide show
  1. package/dist/chunk/DJIEVIL4.jsx +175 -0
  2. package/dist/chunk/DPTBH7NV.js +116 -0
  3. package/dist/chunk/G2DDCQSJ.jsx +1783 -0
  4. package/dist/chunk/{SPPHU23S.jsx → MM2I4S7S.jsx} +4 -4
  5. package/dist/chunk/{BZLIWOGC.jsx → N4O7ZKCJ.jsx} +4 -4
  6. package/dist/chunk/SSZEXBY3.js +1670 -0
  7. package/dist/chunk/{FPYZVUFW.js → U67NSVQP.js} +2 -2
  8. package/dist/chunk/{6VPRFZA4.js → YGOJI6HV.js} +2 -2
  9. package/dist/components/accordion/index.js +1 -1
  10. package/dist/components/accordion/index.jsx +3 -3
  11. package/dist/components/angle-slider/index.d.ts +86 -0
  12. package/dist/components/angle-slider/index.js +1 -0
  13. package/dist/components/angle-slider/index.jsx +40 -0
  14. package/dist/components/avatar/index.js +1 -1
  15. package/dist/components/avatar/index.jsx +2 -2
  16. package/dist/components/carousel/index.js +1 -1
  17. package/dist/components/carousel/index.jsx +2 -2
  18. package/dist/components/checkbox/index.d.ts +1 -1
  19. package/dist/components/checkbox/index.js +1 -1
  20. package/dist/components/checkbox/index.jsx +2 -2
  21. package/dist/components/clipboard/index.jsx +1 -1
  22. package/dist/components/collapsible/index.js +1 -1
  23. package/dist/components/collapsible/index.jsx +2 -2
  24. package/dist/components/color-picker/index.d.ts +1 -1
  25. package/dist/components/color-picker/index.js +1 -1
  26. package/dist/components/color-picker/index.jsx +2 -2
  27. package/dist/components/combobox/index.js +1 -1
  28. package/dist/components/combobox/index.jsx +2 -2
  29. package/dist/components/date-picker/index.d.ts +1 -1
  30. package/dist/components/date-picker/index.js +1 -1
  31. package/dist/components/date-picker/index.jsx +2 -2
  32. package/dist/components/dialog/index.js +1 -1
  33. package/dist/components/dialog/index.jsx +2 -2
  34. package/dist/components/download-trigger/index.jsx +1 -1
  35. package/dist/components/editable/index.js +1 -1
  36. package/dist/components/editable/index.jsx +2 -2
  37. package/dist/components/file-upload/index.js +1 -1
  38. package/dist/components/file-upload/index.jsx +2 -2
  39. package/dist/components/floating-panel/index.d.ts +119 -0
  40. package/dist/components/floating-panel/index.js +1 -0
  41. package/dist/components/floating-panel/index.jsx +51 -0
  42. package/dist/components/format/index.jsx +1 -1
  43. package/dist/components/frame/index.jsx +1 -1
  44. package/dist/components/hover-card/index.js +1 -1
  45. package/dist/components/hover-card/index.jsx +2 -2
  46. package/dist/components/index.d.ts +4 -0
  47. package/dist/components/index.js +42 -40
  48. package/dist/components/index.jsx +443 -375
  49. package/dist/components/menu/index.js +1 -1
  50. package/dist/components/menu/index.jsx +2 -2
  51. package/dist/components/number-input/index.js +1 -1
  52. package/dist/components/number-input/index.jsx +2 -2
  53. package/dist/components/pagination/index.js +1 -1
  54. package/dist/components/pagination/index.jsx +2 -2
  55. package/dist/components/pin-input/index.js +1 -1
  56. package/dist/components/pin-input/index.jsx +2 -2
  57. package/dist/components/popover/index.js +1 -1
  58. package/dist/components/popover/index.jsx +2 -2
  59. package/dist/components/progress/index.js +1 -1
  60. package/dist/components/progress/index.jsx +2 -2
  61. package/dist/components/qr-code/index.js +1 -1
  62. package/dist/components/qr-code/index.jsx +2 -2
  63. package/dist/components/radio-group/index.js +1 -1
  64. package/dist/components/radio-group/index.jsx +2 -2
  65. package/dist/components/rating-group/index.js +1 -1
  66. package/dist/components/rating-group/index.jsx +2 -2
  67. package/dist/components/segment-group/index.js +1 -1
  68. package/dist/components/segment-group/index.jsx +2 -2
  69. package/dist/components/select/index.js +1 -1
  70. package/dist/components/select/index.jsx +2 -2
  71. package/dist/components/signature-pad/index.js +1 -1
  72. package/dist/components/signature-pad/index.jsx +2 -2
  73. package/dist/components/slider/index.js +1 -1
  74. package/dist/components/slider/index.jsx +2 -2
  75. package/dist/components/splitter/index.js +1 -1
  76. package/dist/components/splitter/index.jsx +2 -2
  77. package/dist/components/steps/index.js +1 -1
  78. package/dist/components/steps/index.jsx +2 -2
  79. package/dist/components/switch/index.js +1 -1
  80. package/dist/components/switch/index.jsx +2 -2
  81. package/dist/components/tabs/index.js +1 -1
  82. package/dist/components/tabs/index.jsx +2 -2
  83. package/dist/components/tags-input/index.js +1 -1
  84. package/dist/components/tags-input/index.jsx +2 -2
  85. package/dist/components/time-picker/index.js +1 -1
  86. package/dist/components/time-picker/index.jsx +2 -2
  87. package/dist/components/timer/index.jsx +1 -1
  88. package/dist/components/toast/index.js +1 -1
  89. package/dist/components/toast/index.jsx +2 -2
  90. package/dist/components/toggle-group/index.js +1 -1
  91. package/dist/components/toggle-group/index.jsx +2 -2
  92. package/dist/components/tooltip/index.js +1 -1
  93. package/dist/components/tooltip/index.jsx +2 -2
  94. package/dist/components/tour/index.js +1 -1
  95. package/dist/components/tour/index.jsx +2 -2
  96. package/dist/components/tree-view/index.js +1 -1
  97. package/dist/components/tree-view/index.jsx +3 -3
  98. package/dist/index.d.ts +4 -0
  99. package/dist/index.js +43 -41
  100. package/dist/index.jsx +440 -372
  101. package/dist/providers/index.js +1 -1
  102. package/dist/providers/index.jsx +4 -4
  103. package/package.json +64 -64
  104. package/dist/chunk/{HQJBHHB6.js → 24OEHSBA.js} +1 -1
  105. package/dist/chunk/{YIOS67AB.jsx → 2H2BP2D4.jsx} +3 -3
  106. package/dist/chunk/{6NYYJAMS.js → 2HLGNCOQ.js} +1 -1
  107. package/dist/chunk/{LPWKZJG2.js → 2WVEDTEK.js} +1 -1
  108. package/dist/chunk/{DBIUMOLI.js → 46YZVE6D.js} +1 -1
  109. package/dist/chunk/{ROA4DJEO.jsx → 4QD4ZSJK.jsx} +3 -3
  110. package/dist/chunk/{XC5EGHL5.js → 4UD3WT4B.js} +1 -1
  111. package/dist/chunk/{I2ZEUUSZ.js → 4VSNWWYK.js} +1 -1
  112. package/dist/chunk/{TANQ4FPM.js → 74VQO5NB.js} +1 -1
  113. package/dist/chunk/{ASFHFF7Y.jsx → 7LCINU3A.jsx} +3 -3
  114. package/dist/chunk/{JZVFV4VZ.jsx → 7TPJ7KWF.jsx} +3 -3
  115. package/dist/chunk/{RNLJK7FO.js → ABSJMCRQ.js} +1 -1
  116. package/dist/chunk/{3RSBQIQ3.jsx → AD2EIGNX.jsx} +3 -3
  117. package/dist/chunk/{EX2VGSCG.jsx → AMEMCPNB.jsx} +3 -3
  118. package/dist/chunk/{FUGFSIYK.jsx → AYESR2LP.jsx} +3 -3
  119. package/dist/chunk/{OBLSSYMA.js → BT2NIRPC.js} +1 -1
  120. package/dist/chunk/{MXJSLVKN.js → BVKIR2P4.js} +1 -1
  121. package/dist/chunk/{XME7TKM2.js → C4PG7WMU.js} +1 -1
  122. package/dist/chunk/{5X7KNFCM.js → C5HFE3OV.js} +1 -1
  123. package/dist/chunk/{5FWNSCWP.js → CGUVAYKV.js} +1 -1
  124. package/dist/chunk/{FHEJON2W.jsx → CHLRHJV2.jsx} +3 -3
  125. package/dist/chunk/{SMZBI5QA.jsx → CRYRP5LM.jsx} +3 -3
  126. package/dist/chunk/{FVIF7LDE.js → DUMB6XV5.js} +1 -1
  127. package/dist/chunk/{OE7Y5R5I.js → DW4NU34Z.js} +1 -1
  128. package/dist/chunk/{VWUOL2OR.jsx → DXWAFMGQ.jsx} +3 -3
  129. package/dist/chunk/{MPNDTPUK.js → E2CL7JEV.js} +1 -1
  130. package/dist/chunk/{XUQC4TSL.js → E7EIHMW2.js} +0 -0
  131. package/dist/chunk/{5EV3OVL7.jsx → EEG3DZXG.jsx} +3 -3
  132. package/dist/chunk/{KRJNIKO2.jsx → F4L2MTJA.jsx} +3 -3
  133. package/dist/chunk/{OMTG2F6B.js → GNQB7IOU.js} +1 -1
  134. package/dist/chunk/{ENH3JQLY.jsx → IKA3JJFV.jsx} +3 -3
  135. package/dist/chunk/{RXOSUP6U.js → IXXDQXSI.js} +1 -1
  136. package/dist/chunk/{MTVAX7XO.jsx → JN5MJP56.jsx} +3 -3
  137. package/dist/chunk/{L3SIBBML.jsx → JTNTC6FF.jsx} +3 -3
  138. package/dist/chunk/{ACHQ3WMT.js → JWXGONCE.js} +1 -1
  139. package/dist/chunk/{LKX2UAMN.jsx → K5AG7O7B.jsx} +3 -3
  140. package/dist/chunk/{WKJMOIA7.jsx → KLURGV6W.jsx} +3 -3
  141. package/dist/chunk/{GA7FOJZW.js → KOWWX76D.js} +1 -1
  142. package/dist/chunk/{3GZBI3C7.jsx → MA35L6TV.jsx} +3 -3
  143. package/dist/chunk/{BWOFNO5N.jsx → MSINFF7E.jsx} +3 -3
  144. package/dist/chunk/{YIY75WWN.js → MSLAT5GQ.js} +1 -1
  145. package/dist/chunk/{POK6DGO4.js → N3FF6O2Y.js} +1 -1
  146. package/dist/chunk/{64OEA2DF.jsx → O6XGGFFV.jsx} +3 -3
  147. package/dist/chunk/{45OXUET3.js → OF3ALDDY.js} +1 -1
  148. package/dist/chunk/{ATMLAY2Z.js → QBFJVUX3.js} +1 -1
  149. package/dist/chunk/{CMXNP72H.jsx → QN2KHWAW.jsx} +3 -3
  150. package/dist/chunk/{HNF2QPQ2.jsx → ROFVSOHA.jsx} +3 -3
  151. package/dist/chunk/{4ALLEGBR.js → ROXCI3ZP.js} +1 -1
  152. package/dist/chunk/{ISCBIWKW.jsx → RY6GW37O.jsx} +3 -3
  153. package/dist/chunk/{YECHEPH3.js → S42D66WQ.js} +1 -1
  154. package/dist/chunk/{IMKHRMUF.js → SUOC3NNA.js} +1 -1
  155. package/dist/chunk/{TKQSSFZN.jsx → T3IKIVSG.jsx} +3 -3
  156. package/dist/chunk/{JCVIA4KI.js → TKGOCHK5.js} +1 -1
  157. package/dist/chunk/{CLX4TELO.jsx → TM5I6GID.jsx} +3 -3
  158. package/dist/chunk/{PDTJBVF6.jsx → UGS5HMDP.jsx} +3 -3
  159. package/dist/chunk/{R6BII3KO.jsx → VDDVCRFC.jsx} +3 -3
  160. package/dist/chunk/{ZKM4DTGM.js → WOSTAOH5.js} +1 -1
  161. package/dist/chunk/{N26ZXGSY.jsx → WR7AKRSO.jsx} +3 -3
  162. package/dist/chunk/{QRODT7WM.js → WW35AWP2.js} +1 -1
  163. package/dist/chunk/{PDYWOA6Y.js → WXJYBPWI.js} +1 -1
  164. package/dist/chunk/{6G6HOPPW.jsx → XH6HBC54.jsx} +0 -0
  165. package/dist/chunk/{MD7PHDJK.jsx → XZZ6TULR.jsx} +3 -3
  166. package/dist/chunk/{IOLALG7A.jsx → Y3WE2S3D.jsx} +3 -3
  167. package/dist/chunk/{QXPKPCGG.jsx → YIVTZ7BP.jsx} +3 -3
  168. package/dist/chunk/{D4UVDNW5.jsx → YPH7FBUN.jsx} +3 -3
  169. package/dist/chunk/{2ZIPSG6O.jsx → Z254KIAA.jsx} +3 -3
  170. package/dist/chunk/{K2GRJC27.js → Z2TDX72A.js} +1 -1
  171. package/dist/chunk/{UIEL6LO3.js → Z3MPOJ5X.js} +1 -1
  172. package/dist/chunk/{KWT5RGLQ.jsx → ZDKSAOA5.jsx} +3 -3
  173. package/dist/chunk/{L7KH34DE.js → ZOGAU3AQ.js} +1 -1
@@ -0,0 +1,175 @@
1
+ import {
2
+ createSplitProps
3
+ } from "./6WEDGJKQ.jsx";
4
+ import {
5
+ ark
6
+ } from "./UFYZ7HLU.jsx";
7
+ import {
8
+ useEnvironmentContext
9
+ } from "./D2Z5BEON.jsx";
10
+ import {
11
+ useLocaleContext
12
+ } from "./RCXMZN3G.jsx";
13
+ import {
14
+ createContext
15
+ } from "./TVCIHLER.jsx";
16
+ import {
17
+ runIfFn
18
+ } from "./KGOB2IMX.jsx";
19
+ import {
20
+ __export
21
+ } from "./7IUG3E2V.jsx";
22
+
23
+ // src/components/angle-slider/use-angle-slider-context.ts
24
+ var [AngleSliderProvider, useAngleSliderContext] = createContext({
25
+ hookName: "useAngleSliderContext",
26
+ providerName: "<AngleSliderProvider />"
27
+ });
28
+
29
+ // src/components/angle-slider/angle-slider-context.tsx
30
+ var AngleSliderContext = (props) => props.children(useAngleSliderContext());
31
+
32
+ // src/components/angle-slider/angle-slider-control.tsx
33
+ import { mergeProps } from "@zag-js/solid";
34
+ var AngleSliderControl = (props) => {
35
+ const api = useAngleSliderContext();
36
+ const mergedProps = mergeProps(() => api().getControlProps(), props);
37
+ return <ark.div {...mergedProps} />;
38
+ };
39
+
40
+ // src/components/angle-slider/angle-slider-hidden-input.tsx
41
+ import { mergeProps as mergeProps2 } from "@zag-js/solid";
42
+ var AngleSliderHiddenInput = (props) => {
43
+ const api = useAngleSliderContext();
44
+ const mergedProps = mergeProps2(() => api().getHiddenInputProps(), props);
45
+ return <ark.input {...mergedProps} />;
46
+ };
47
+
48
+ // src/components/angle-slider/angle-slider-label.tsx
49
+ import { mergeProps as mergeProps3 } from "@zag-js/solid";
50
+ var AngleSliderLabel = (props) => {
51
+ const api = useAngleSliderContext();
52
+ const mergedProps = mergeProps3(() => api().getLabelProps(), props);
53
+ return <ark.label {...mergedProps} />;
54
+ };
55
+
56
+ // src/components/angle-slider/angle-slider-marker.tsx
57
+ import { mergeProps as mergeProps4 } from "@zag-js/solid";
58
+ var AngleSliderMarker = (props) => {
59
+ const [markerProps, localProps] = createSplitProps()(props, ["value"]);
60
+ const api = useAngleSliderContext();
61
+ const mergedProps = mergeProps4(() => api().getMarkerProps(markerProps), localProps);
62
+ return <ark.div {...mergedProps} />;
63
+ };
64
+
65
+ // src/components/angle-slider/angle-slider-marker-group.tsx
66
+ import { mergeProps as mergeProps5 } from "@zag-js/solid";
67
+ var AngleSliderMarkerGroup = (props) => {
68
+ const api = useAngleSliderContext();
69
+ const mergedProps = mergeProps5(() => api().getMarkerGroupProps(), props);
70
+ return <ark.div {...mergedProps} />;
71
+ };
72
+
73
+ // src/components/angle-slider/angle-slider-root.tsx
74
+ import { mergeProps as mergeProps6 } from "@zag-js/solid";
75
+
76
+ // src/components/angle-slider/use-angle-slider.ts
77
+ import * as angleSlider from "@zag-js/angle-slider";
78
+ import { normalizeProps, useMachine } from "@zag-js/solid";
79
+ import { createMemo, createUniqueId } from "solid-js";
80
+ var useAngleSlider = (props) => {
81
+ const id = createUniqueId();
82
+ const locale = useLocaleContext();
83
+ const environment = useEnvironmentContext();
84
+ const machineProps = createMemo(() => ({
85
+ id,
86
+ dir: locale().dir,
87
+ getRootNode: environment().getRootNode,
88
+ ...runIfFn(props)
89
+ }));
90
+ const service = useMachine(angleSlider.machine, machineProps);
91
+ return createMemo(() => angleSlider.connect(service, normalizeProps));
92
+ };
93
+
94
+ // src/components/angle-slider/angle-slider-root.tsx
95
+ var AngleSliderRoot = (props) => {
96
+ const [useAngleSliderProps, localProps] = createSplitProps()(props, [
97
+ "id",
98
+ "ids",
99
+ "name",
100
+ "invalid",
101
+ "readOnly",
102
+ "disabled",
103
+ "onValueChangeEnd",
104
+ "onValueChange",
105
+ "defaultValue",
106
+ "value",
107
+ "step"
108
+ ]);
109
+ const angleSlider2 = useAngleSlider(useAngleSliderProps);
110
+ const mergedProps = mergeProps6(() => angleSlider2().getRootProps(), localProps);
111
+ return <AngleSliderProvider value={angleSlider2}>
112
+ <ark.div {...mergedProps} />
113
+ </AngleSliderProvider>;
114
+ };
115
+
116
+ // src/components/angle-slider/angle-slider-root-provider.tsx
117
+ import { mergeProps as mergeProps7 } from "@zag-js/solid";
118
+ var AngleSliderRootProvider = (props) => {
119
+ const [rootProps, localProps] = createSplitProps()(props, ["value"]);
120
+ const mergedProps = mergeProps7(() => rootProps.value().getRootProps(), localProps);
121
+ return <AngleSliderProvider value={rootProps.value}>
122
+ <ark.div {...mergedProps} />
123
+ </AngleSliderProvider>;
124
+ };
125
+
126
+ // src/components/angle-slider/angle-slider-thumb.tsx
127
+ import { mergeProps as mergeProps8 } from "@zag-js/solid";
128
+ var AngleSliderThumb = (props) => {
129
+ const api = useAngleSliderContext();
130
+ const mergedProps = mergeProps8(() => api().getThumbProps(), props);
131
+ return <ark.div {...mergedProps} />;
132
+ };
133
+
134
+ // src/components/angle-slider/angle-slider-value-text.tsx
135
+ import { mergeProps as mergeProps9 } from "@zag-js/solid";
136
+ var AngleSliderValueText = (props) => {
137
+ const api = useAngleSliderContext();
138
+ const mergedProps = mergeProps9(() => api().getValueTextProps(), props);
139
+ return <ark.div {...mergedProps}>{props.children || api().valueAsDegree}</ark.div>;
140
+ };
141
+
142
+ // src/components/angle-slider/angle-slider.anatomy.tsx
143
+ import { anatomy } from "@zag-js/angle-slider";
144
+
145
+ // src/components/angle-slider/angle-slider.ts
146
+ var angle_slider_exports = {};
147
+ __export(angle_slider_exports, {
148
+ Context: () => AngleSliderContext,
149
+ Control: () => AngleSliderControl,
150
+ HiddenInput: () => AngleSliderHiddenInput,
151
+ Label: () => AngleSliderLabel,
152
+ Marker: () => AngleSliderMarker,
153
+ MarkerGroup: () => AngleSliderMarkerGroup,
154
+ Root: () => AngleSliderRoot,
155
+ RootProvider: () => AngleSliderRootProvider,
156
+ Thumb: () => AngleSliderThumb,
157
+ ValueText: () => AngleSliderValueText
158
+ });
159
+
160
+ export {
161
+ useAngleSliderContext,
162
+ AngleSliderContext,
163
+ AngleSliderControl,
164
+ AngleSliderHiddenInput,
165
+ AngleSliderLabel,
166
+ AngleSliderMarker,
167
+ AngleSliderMarkerGroup,
168
+ useAngleSlider,
169
+ AngleSliderRoot,
170
+ AngleSliderRootProvider,
171
+ AngleSliderThumb,
172
+ AngleSliderValueText,
173
+ anatomy,
174
+ angle_slider_exports
175
+ };
@@ -0,0 +1,116 @@
1
+ import { createSplitProps } from './ZMHI4GDJ.js';
2
+ import { ark } from './EPLBB4QN.js';
3
+ import { useEnvironmentContext } from './YMMMHJJS.js';
4
+ import { useLocaleContext } from './QEMQBM6W.js';
5
+ import { createContext } from './TROPIN4C.js';
6
+ import { runIfFn } from './DT73WLR4.js';
7
+ import { __export } from './ESLJRKWD.js';
8
+ import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
9
+ import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
10
+ import * as angleSlider from '@zag-js/angle-slider';
11
+ export { anatomy } from '@zag-js/angle-slider';
12
+ import { createUniqueId, createMemo } from 'solid-js';
13
+
14
+ // src/components/angle-slider/use-angle-slider-context.ts
15
+ var [AngleSliderProvider, useAngleSliderContext] = createContext({
16
+ hookName: "useAngleSliderContext",
17
+ providerName: "<AngleSliderProvider />"
18
+ });
19
+
20
+ // src/components/angle-slider/angle-slider-context.tsx
21
+ var AngleSliderContext = (props) => props.children(useAngleSliderContext());
22
+ var AngleSliderControl = (props) => {
23
+ const api = useAngleSliderContext();
24
+ const mergedProps = mergeProps(() => api().getControlProps(), props);
25
+ return createComponent(ark.div, mergedProps);
26
+ };
27
+ var AngleSliderHiddenInput = (props) => {
28
+ const api = useAngleSliderContext();
29
+ const mergedProps = mergeProps(() => api().getHiddenInputProps(), props);
30
+ return createComponent(ark.input, mergedProps);
31
+ };
32
+ var AngleSliderLabel = (props) => {
33
+ const api = useAngleSliderContext();
34
+ const mergedProps = mergeProps(() => api().getLabelProps(), props);
35
+ return createComponent(ark.label, mergedProps);
36
+ };
37
+ var AngleSliderMarker = (props) => {
38
+ const [markerProps, localProps] = createSplitProps()(props, ["value"]);
39
+ const api = useAngleSliderContext();
40
+ const mergedProps = mergeProps(() => api().getMarkerProps(markerProps), localProps);
41
+ return createComponent(ark.div, mergedProps);
42
+ };
43
+ var AngleSliderMarkerGroup = (props) => {
44
+ const api = useAngleSliderContext();
45
+ const mergedProps = mergeProps(() => api().getMarkerGroupProps(), props);
46
+ return createComponent(ark.div, mergedProps);
47
+ };
48
+ var useAngleSlider = (props) => {
49
+ const id = createUniqueId();
50
+ const locale = useLocaleContext();
51
+ const environment = useEnvironmentContext();
52
+ const machineProps = createMemo(() => ({
53
+ id,
54
+ dir: locale().dir,
55
+ getRootNode: environment().getRootNode,
56
+ ...runIfFn(props)
57
+ }));
58
+ const service = useMachine(angleSlider.machine, machineProps);
59
+ return createMemo(() => angleSlider.connect(service, normalizeProps));
60
+ };
61
+
62
+ // src/components/angle-slider/angle-slider-root.tsx
63
+ var AngleSliderRoot = (props) => {
64
+ const [useAngleSliderProps, localProps] = createSplitProps()(props, ["id", "ids", "name", "invalid", "readOnly", "disabled", "onValueChangeEnd", "onValueChange", "defaultValue", "value", "step"]);
65
+ const angleSlider2 = useAngleSlider(useAngleSliderProps);
66
+ const mergedProps = mergeProps(() => angleSlider2().getRootProps(), localProps);
67
+ return createComponent(AngleSliderProvider, {
68
+ value: angleSlider2,
69
+ get children() {
70
+ return createComponent(ark.div, mergedProps);
71
+ }
72
+ });
73
+ };
74
+ var AngleSliderRootProvider = (props) => {
75
+ const [rootProps, localProps] = createSplitProps()(props, ["value"]);
76
+ const mergedProps = mergeProps(() => rootProps.value().getRootProps(), localProps);
77
+ return createComponent(AngleSliderProvider, {
78
+ get value() {
79
+ return rootProps.value;
80
+ },
81
+ get children() {
82
+ return createComponent(ark.div, mergedProps);
83
+ }
84
+ });
85
+ };
86
+ var AngleSliderThumb = (props) => {
87
+ const api = useAngleSliderContext();
88
+ const mergedProps = mergeProps(() => api().getThumbProps(), props);
89
+ return createComponent(ark.div, mergedProps);
90
+ };
91
+ var AngleSliderValueText = (props) => {
92
+ const api = useAngleSliderContext();
93
+ const mergedProps = mergeProps(() => api().getValueTextProps(), props);
94
+ return createComponent(ark.div, mergeProps$1(mergedProps, {
95
+ get children() {
96
+ return props.children || api().valueAsDegree;
97
+ }
98
+ }));
99
+ };
100
+
101
+ // src/components/angle-slider/angle-slider.ts
102
+ var angle_slider_exports = {};
103
+ __export(angle_slider_exports, {
104
+ Context: () => AngleSliderContext,
105
+ Control: () => AngleSliderControl,
106
+ HiddenInput: () => AngleSliderHiddenInput,
107
+ Label: () => AngleSliderLabel,
108
+ Marker: () => AngleSliderMarker,
109
+ MarkerGroup: () => AngleSliderMarkerGroup,
110
+ Root: () => AngleSliderRoot,
111
+ RootProvider: () => AngleSliderRootProvider,
112
+ Thumb: () => AngleSliderThumb,
113
+ ValueText: () => AngleSliderValueText
114
+ });
115
+
116
+ export { AngleSliderContext, AngleSliderControl, AngleSliderHiddenInput, AngleSliderLabel, AngleSliderMarker, AngleSliderMarkerGroup, AngleSliderRoot, AngleSliderRootProvider, AngleSliderThumb, AngleSliderValueText, angle_slider_exports, useAngleSlider, useAngleSliderContext };