@ark-ui/solid 5.4.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 (85) hide show
  1. package/dist/chunk/{L6IGMFHF.js → 24OEHSBA.js} +1 -1
  2. package/dist/chunk/{WEP4LIH4.js → 2WVEDTEK.js} +1 -1
  3. package/dist/chunk/{CSQ4G2ZR.js → 4VSNWWYK.js} +2 -2
  4. package/dist/chunk/{YKX6LWQZ.js → 74VQO5NB.js} +1 -1
  5. package/dist/chunk/{H2PO7WYN.jsx → 7LCINU3A.jsx} +1 -1
  6. package/dist/chunk/{JSBTYBVG.js → 7S3N5UQH.js} +10 -3
  7. package/dist/chunk/{EDWTEZRE.jsx → 7TPJ7KWF.jsx} +1 -1
  8. package/dist/chunk/{QDNMUVUH.js → ABSJMCRQ.js} +1 -1
  9. package/dist/chunk/{KVZN5EIK.js → BVKIR2P4.js} +1 -1
  10. package/dist/chunk/{CCJXFSD4.js → CGUVAYKV.js} +1 -1
  11. package/dist/chunk/{SKLHGDXX.jsx → CRYRP5LM.jsx} +1 -1
  12. package/dist/chunk/DJIEVIL4.jsx +175 -0
  13. package/dist/chunk/DPTBH7NV.js +116 -0
  14. package/dist/chunk/{WNMJRJ4R.jsx → DXWAFMGQ.jsx} +1 -1
  15. package/dist/chunk/{ZVM34F6R.js → E2CL7JEV.js} +1 -1
  16. package/dist/chunk/{YUDHR2PE.jsx → F4L2MTJA.jsx} +1 -1
  17. package/dist/chunk/G2DDCQSJ.jsx +1783 -0
  18. package/dist/chunk/{TVG6ZU7O.js → GNQB7IOU.js} +1 -1
  19. package/dist/chunk/{DV4N466N.jsx → JTNTC6FF.jsx} +1 -1
  20. package/dist/chunk/{5EMVTPVL.jsx → K5AG7O7B.jsx} +1 -1
  21. package/dist/chunk/{E3OI2TND.jsx → KLURGV6W.jsx} +1 -1
  22. package/dist/chunk/{TOZ7BU2Z.js → KOWWX76D.js} +1 -1
  23. package/dist/chunk/{QCBVLVTA.js → S42D66WQ.js} +1 -1
  24. package/dist/chunk/SSZEXBY3.js +1670 -0
  25. package/dist/chunk/{T6XMELG3.jsx → T3IKIVSG.jsx} +1 -1
  26. package/dist/chunk/{YVFRVXSX.jsx → TM5I6GID.jsx} +1 -1
  27. package/dist/chunk/{BFPOA7P4.jsx → UGS5HMDP.jsx} +2 -1
  28. package/dist/chunk/{PSNFSH4B.jsx → WC2HBDLJ.jsx} +10 -3
  29. package/dist/chunk/{5N6RITOU.js → WOSTAOH5.js} +1 -1
  30. package/dist/chunk/{ZEKNH4J5.jsx → Y3WE2S3D.jsx} +1 -1
  31. package/dist/components/angle-slider/index.d.ts +86 -0
  32. package/dist/components/angle-slider/index.js +1 -0
  33. package/dist/components/angle-slider/index.jsx +40 -0
  34. package/dist/components/checkbox/index.d.ts +1 -1
  35. package/dist/components/color-picker/index.d.ts +2 -2
  36. package/dist/components/color-picker/index.js +1 -1
  37. package/dist/components/color-picker/index.jsx +2 -2
  38. package/dist/components/combobox/index.d.ts +2 -2
  39. package/dist/components/combobox/index.js +1 -1
  40. package/dist/components/combobox/index.jsx +2 -2
  41. package/dist/components/date-picker/index.d.ts +2 -2
  42. package/dist/components/date-picker/index.js +1 -1
  43. package/dist/components/date-picker/index.jsx +2 -2
  44. package/dist/components/dialog/index.d.ts +1 -1
  45. package/dist/components/dialog/index.js +1 -1
  46. package/dist/components/dialog/index.jsx +2 -2
  47. package/dist/components/floating-panel/index.d.ts +119 -0
  48. package/dist/components/floating-panel/index.js +1 -0
  49. package/dist/components/floating-panel/index.jsx +51 -0
  50. package/dist/components/hover-card/index.d.ts +1 -1
  51. package/dist/components/hover-card/index.js +1 -1
  52. package/dist/components/hover-card/index.jsx +2 -2
  53. package/dist/components/index.d.ts +5 -1
  54. package/dist/components/index.js +29 -27
  55. package/dist/components/index.jsx +385 -317
  56. package/dist/components/menu/index.d.ts +1 -1
  57. package/dist/components/menu/index.js +1 -1
  58. package/dist/components/menu/index.jsx +2 -2
  59. package/dist/components/popover/index.d.ts +1 -1
  60. package/dist/components/popover/index.js +1 -1
  61. package/dist/components/popover/index.jsx +2 -2
  62. package/dist/components/presence/index.d.ts +3 -3
  63. package/dist/components/presence/index.js +1 -1
  64. package/dist/components/presence/index.jsx +1 -1
  65. package/dist/components/select/index.d.ts +1 -1
  66. package/dist/components/select/index.js +1 -1
  67. package/dist/components/select/index.jsx +2 -2
  68. package/dist/components/tabs/index.js +1 -1
  69. package/dist/components/tabs/index.jsx +2 -2
  70. package/dist/components/time-picker/index.d.ts +1 -1
  71. package/dist/components/time-picker/index.js +1 -1
  72. package/dist/components/time-picker/index.jsx +2 -2
  73. package/dist/components/tooltip/index.d.ts +1 -1
  74. package/dist/components/tooltip/index.js +1 -1
  75. package/dist/components/tooltip/index.jsx +2 -2
  76. package/dist/components/tour/index.d.ts +1 -1
  77. package/dist/components/tour/index.js +1 -1
  78. package/dist/components/tour/index.jsx +2 -2
  79. package/dist/index.d.ts +5 -1
  80. package/dist/index.js +29 -27
  81. package/dist/index.jsx +385 -317
  82. package/dist/{use-presence-BUVPqaFu.d.ts → use-presence-CT1xpuuo.d.ts} +6 -1
  83. package/package.json +66 -66
  84. /package/dist/chunk/{XUQC4TSL.js → E7EIHMW2.js} +0 -0
  85. /package/dist/chunk/{6G6HOPPW.jsx → XH6HBC54.jsx} +0 -0
@@ -1,4 +1,4 @@
1
- import { usePresence, PresenceProvider } from './JSBTYBVG.js';
1
+ import { usePresence, PresenceProvider } from './7S3N5UQH.js';
2
2
  import { composeRefs } from './XN6EERRM.js';
3
3
  import { splitRenderStrategyProps, RenderStrategyProvider, useRenderStrategyContext } from './QFAL6GWC.js';
4
4
  import { createSplitProps } from './ZMHI4GDJ.js';
@@ -1,4 +1,4 @@
1
- import { usePresence, splitPresenceProps, PresenceProvider, usePresenceContext } from './JSBTYBVG.js';
1
+ import { usePresence, splitPresenceProps, PresenceProvider, usePresenceContext } from './7S3N5UQH.js';
2
2
  import { composeRefs } from './XN6EERRM.js';
3
3
  import { useRenderStrategyContext, splitRenderStrategyProps, RenderStrategyProvider } from './QFAL6GWC.js';
4
4
  import { createSplitProps } from './ZMHI4GDJ.js';
@@ -1,5 +1,5 @@
1
1
  import { useFieldContext } from './UL6NTZA6.js';
2
- import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './JSBTYBVG.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';
@@ -187,7 +187,7 @@ var useCombobox = (props) => {
187
187
  // src/components/combobox/combobox-root.tsx
188
188
  var ComboboxRoot = (props) => {
189
189
  const [presenceProps, comboboxProps] = splitPresenceProps(props);
190
- const [useComboboxProps, localProps] = createSplitProps()(comboboxProps, ["allowCustomValue", "autoFocus", "closeOnSelect", "collection", "composite", "defaultHighlightedValue", "defaultInputValue", "defaultOpen", "defaultValue", "disabled", "disableLayer", "form", "highlightedValue", "id", "ids", "inputBehavior", "inputValue", "invalid", "loopFocus", "multiple", "name", "navigate", "onFocusOutside", "onHighlightChange", "onInputValueChange", "onInteractOutside", "onOpenChange", "onOpenChange", "onPointerDownOutside", "onValueChange", "open", "openOnChange", "openOnClick", "openOnKeyPress", "placeholder", "positioning", "readOnly", "required", "scrollToIndexFn", "selectionBehavior", "translations", "value"]);
190
+ const [useComboboxProps, localProps] = createSplitProps()(comboboxProps, ["allowCustomValue", "autoFocus", "closeOnSelect", "collection", "composite", "defaultHighlightedValue", "defaultInputValue", "defaultOpen", "defaultValue", "disabled", "disableLayer", "form", "highlightedValue", "id", "ids", "inputBehavior", "inputValue", "invalid", "loopFocus", "multiple", "name", "navigate", "onFocusOutside", "onHighlightChange", "onInputValueChange", "onInteractOutside", "onOpenChange", "onOpenChange", "onPointerDownOutside", "onValueChange", "onSelect", "open", "openOnChange", "openOnClick", "openOnKeyPress", "placeholder", "positioning", "readOnly", "required", "scrollToIndexFn", "selectionBehavior", "translations", "value"]);
191
191
  const api = useCombobox(useComboboxProps);
192
192
  const apiPresence = usePresence(mergeProps(presenceProps, () => ({
193
193
  present: api().open
@@ -1,5 +1,5 @@
1
1
  import { useFieldContext } from './UL6NTZA6.js';
2
- import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './JSBTYBVG.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';
@@ -3,7 +3,7 @@ import {
3
3
  splitPresenceProps,
4
4
  usePresence,
5
5
  usePresenceContext
6
- } from "./PSNFSH4B.jsx";
6
+ } from "./WC2HBDLJ.jsx";
7
7
  import {
8
8
  composeRefs
9
9
  } from "./DOBZPYAN.jsx";
@@ -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
  };
@@ -6,7 +6,7 @@ import {
6
6
  splitPresenceProps,
7
7
  usePresence,
8
8
  usePresenceContext
9
- } from "./PSNFSH4B.jsx";
9
+ } from "./WC2HBDLJ.jsx";
10
10
  import {
11
11
  composeRefs
12
12
  } from "./DOBZPYAN.jsx";
@@ -1,4 +1,4 @@
1
- import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './JSBTYBVG.js';
1
+ import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './7S3N5UQH.js';
2
2
  import { composeRefs } from './XN6EERRM.js';
3
3
  import { createSplitProps } from './ZMHI4GDJ.js';
4
4
  import { ark } from './EPLBB4QN.js';
@@ -1,4 +1,4 @@
1
- import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './JSBTYBVG.js';
1
+ import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './7S3N5UQH.js';
2
2
  import { composeRefs } from './XN6EERRM.js';
3
3
  import { createSplitProps } from './ZMHI4GDJ.js';
4
4
  import { ark } from './EPLBB4QN.js';
@@ -1,4 +1,4 @@
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';
@@ -6,7 +6,7 @@ import {
6
6
  splitPresenceProps,
7
7
  usePresence,
8
8
  usePresenceContext
9
- } from "./PSNFSH4B.jsx";
9
+ } from "./WC2HBDLJ.jsx";
10
10
  import {
11
11
  composeRefs
12
12
  } from "./DOBZPYAN.jsx";
@@ -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 };
@@ -3,7 +3,7 @@ import {
3
3
  splitPresenceProps,
4
4
  usePresence,
5
5
  usePresenceContext
6
- } from "./PSNFSH4B.jsx";
6
+ } from "./WC2HBDLJ.jsx";
7
7
  import {
8
8
  composeRefs
9
9
  } from "./DOBZPYAN.jsx";
@@ -1,4 +1,4 @@
1
- import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './JSBTYBVG.js';
1
+ import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './7S3N5UQH.js';
2
2
  import { composeRefs } from './XN6EERRM.js';
3
3
  import { createSplitProps } from './ZMHI4GDJ.js';
4
4
  import { ark } from './EPLBB4QN.js';
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  PresenceProvider,
3
3
  usePresence
4
- } from "./PSNFSH4B.jsx";
4
+ } from "./WC2HBDLJ.jsx";
5
5
  import {
6
6
  composeRefs
7
7
  } from "./DOBZPYAN.jsx";