@sprawlify/solid 0.0.14 → 0.0.16

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 (108) hide show
  1. package/dist/chunk-B5so6B0y.jsx +18 -0
  2. package/dist/chunk-B93cd-Dz.js +18 -0
  3. package/dist/collapsible-CX2tnXKq.js +131 -0
  4. package/dist/collapsible-sG-Rzvf2.jsx +119 -0
  5. package/dist/collection-BRr4O2_i.jsx +220 -0
  6. package/dist/collection-zj3lxnwW.js +220 -0
  7. package/dist/components/accordion/index.d.ts +69 -0
  8. package/dist/components/accordion/index.js +185 -0
  9. package/dist/components/accordion/index.jsx +159 -0
  10. package/dist/components/angle-slider/index.d.ts +74 -0
  11. package/dist/components/angle-slider/index.js +157 -0
  12. package/dist/components/angle-slider/index.jsx +146 -0
  13. package/dist/components/avatar/index.d.ts +49 -0
  14. package/dist/components/avatar/index.js +97 -0
  15. package/dist/components/avatar/index.jsx +90 -0
  16. package/dist/components/bottom-sheet/index.d.ts +80 -0
  17. package/dist/components/bottom-sheet/index.js +220 -0
  18. package/dist/components/bottom-sheet/index.jsx +179 -0
  19. package/dist/components/carousel/index.d.ts +98 -0
  20. package/dist/components/carousel/index.js +209 -0
  21. package/dist/components/carousel/index.jsx +194 -0
  22. package/dist/components/checkbox/index.d.ts +138 -0
  23. package/dist/components/checkbox/index.js +267 -0
  24. package/dist/components/checkbox/index.jsx +249 -0
  25. package/dist/components/client-only/index.d.ts +10 -0
  26. package/dist/components/client-only/index.js +24 -0
  27. package/dist/components/client-only/index.jsx +15 -0
  28. package/dist/components/clipboard/index.d.ts +72 -0
  29. package/dist/components/clipboard/index.js +151 -0
  30. package/dist/components/clipboard/index.jsx +134 -0
  31. package/dist/components/collapsible/index.d.ts +60 -0
  32. package/dist/components/collapsible/index.js +9 -0
  33. package/dist/components/collapsible/index.jsx +9 -0
  34. package/dist/components/collection/index.d.ts +3 -0
  35. package/dist/components/collection/index.js +4 -0
  36. package/dist/components/collection/index.jsx +4 -0
  37. package/dist/components/color-picker/index.d.ts +183 -0
  38. package/dist/components/color-picker/index.js +500 -0
  39. package/dist/components/color-picker/index.jsx +436 -0
  40. package/dist/components/combobox/index.d.ts +134 -0
  41. package/dist/components/combobox/index.js +357 -0
  42. package/dist/components/combobox/index.jsx +315 -0
  43. package/dist/components/date-picker/index.d.ts +165 -0
  44. package/dist/components/date-picker/index.js +476 -0
  45. package/dist/components/date-picker/index.jsx +415 -0
  46. package/dist/components/dialog/index.d.ts +80 -0
  47. package/dist/components/dialog/index.js +219 -0
  48. package/dist/components/dialog/index.jsx +173 -0
  49. package/dist/components/download-trigger/index.d.ts +25 -0
  50. package/dist/components/download-trigger/index.js +42 -0
  51. package/dist/components/download-trigger/index.jsx +38 -0
  52. package/dist/components/editable/index.d.ts +79 -0
  53. package/dist/components/editable/index.js +190 -0
  54. package/dist/components/editable/index.jsx +181 -0
  55. package/dist/components/field/index.d.ts +201 -0
  56. package/dist/components/field/index.js +10 -0
  57. package/dist/components/field/index.jsx +10 -0
  58. package/dist/components/fieldset/index.d.ts +109 -0
  59. package/dist/components/fieldset/index.js +9 -0
  60. package/dist/components/fieldset/index.jsx +9 -0
  61. package/dist/components/highlight/index.d.ts +15 -0
  62. package/dist/components/highlight/index.js +47 -0
  63. package/dist/components/highlight/index.jsx +31 -0
  64. package/dist/components/presence/index.d.ts +5 -0
  65. package/dist/components/presence/index.js +9 -0
  66. package/dist/components/presence/index.jsx +9 -0
  67. package/dist/components/select/index.d.ts +134 -0
  68. package/dist/components/select/index.js +363 -0
  69. package/dist/components/select/index.jsx +312 -0
  70. package/dist/compose-refs-BVVIB7xn.js +20 -0
  71. package/dist/compose-refs-icUeuyHm.jsx +20 -0
  72. package/dist/core-DbInRfhI.jsx +416 -0
  73. package/dist/core-oNB2jGcl.js +416 -0
  74. package/dist/create-split-props-B8A7_AF7.jsx +7 -0
  75. package/dist/create-split-props-pQu7jijw.js +7 -0
  76. package/dist/factory-4A25bngy.d.ts +14 -0
  77. package/dist/factory-Ch5jgk20.jsx +37 -0
  78. package/dist/factory-PGDAvOKb.js +43 -0
  79. package/dist/field-BRr9Zdes.jsx +260 -0
  80. package/dist/field-CoYiA2ek.js +288 -0
  81. package/dist/fieldset-B_LyllEa.jsx +169 -0
  82. package/dist/fieldset-BrJqMLEd.js +184 -0
  83. package/dist/index-C7N791Fc.d.ts +23 -0
  84. package/dist/index-GEfvAmRc.d.ts +76 -0
  85. package/dist/index-j2avJy7D.d.ts +38 -0
  86. package/dist/index-oc8gLl07.d.ts +38 -0
  87. package/dist/index.d.ts +5 -29
  88. package/dist/index.js +4 -511
  89. package/dist/index.jsx +4 -497
  90. package/dist/presence-Bmn43U_q.jsx +68 -0
  91. package/dist/presence-BpwBRlZW.js +81 -0
  92. package/dist/providers-Bo0OFe08.js +96 -0
  93. package/dist/providers-DFaRRd80.jsx +82 -0
  94. package/dist/render-strategy-BNECKEQk.d.ts +9 -0
  95. package/dist/render-strategy-CdJhRv3I.jsx +12 -0
  96. package/dist/render-strategy-DFlz7Uc4.js +12 -0
  97. package/dist/run-if-fn-A3VwXy-o.jsx +6 -0
  98. package/dist/run-if-fn-D5794CxE.js +6 -0
  99. package/dist/types-Dbw4va3W.d.ts +9 -0
  100. package/dist/utils/index.d.ts +1 -1
  101. package/dist/utils/index.js +2 -1
  102. package/dist/utils/index.jsx +2 -1
  103. package/dist/utils-DQi-Cen5.js +0 -0
  104. package/dist/utils-vSjszv0W.jsx +0 -0
  105. package/package.json +102 -2
  106. /package/dist/{utils-DSKoW7eB.jsx → create-context-C3rvZvkc.jsx} +0 -0
  107. /package/dist/{utils-GEMuT7an.js → create-context-GfQ_MylE.js} +0 -0
  108. /package/dist/{index-C_ThrXdH.d.ts → index-B6dBCfnB.d.ts} +0 -0
@@ -0,0 +1,209 @@
1
+ import { t as __export } from "../../chunk-B93cd-Dz.js";
2
+ import { i as useMachine, n as normalizeProps, r as mergeProps$2 } from "../../core-oNB2jGcl.js";
3
+ import { t as runIfFn } from "../../run-if-fn-D5794CxE.js";
4
+ import { t as createContext$1 } from "../../create-context-GfQ_MylE.js";
5
+ import { i as useLocaleContext, o as useEnvironmentContext } from "../../providers-Bo0OFe08.js";
6
+ import { t as createSplitProps } from "../../create-split-props-pQu7jijw.js";
7
+ import { t as sprawlify } from "../../factory-PGDAvOKb.js";
8
+ import { Show, createMemo, createUniqueId } from "solid-js";
9
+ import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
10
+ import * as carousel from "@sprawlify/primitives/machines/carousel";
11
+ import { anatomy } from "@sprawlify/primitives/machines/carousel";
12
+
13
+ //#region src/components/carousel/carousel-anatomy.ts
14
+ const carouselAnatomy = anatomy.extendWith("progressText", "autoplayIndicator");
15
+
16
+ //#endregion
17
+ //#region src/components/carousel/use-carousel-context.ts
18
+ const [CarouselProvider, useCarouselContext] = createContext$1({
19
+ hookName: "useCarouselContext",
20
+ providerName: "<CarouselProvider />"
21
+ });
22
+
23
+ //#endregion
24
+ //#region src/components/carousel/carousel-autoplay-indicator.tsx
25
+ const parts$1 = carouselAnatomy.build();
26
+ const CarouselAutoplayIndicator = (props) => {
27
+ const api = useCarouselContext();
28
+ return createComponent(sprawlify.span, mergeProps$1(() => parts$1.autoplayIndicator.attrs, props, { get children() {
29
+ return createComponent(Show, {
30
+ get when() {
31
+ return api().isPlaying;
32
+ },
33
+ get fallback() {
34
+ return props.fallback;
35
+ },
36
+ get children() {
37
+ return props.children;
38
+ }
39
+ });
40
+ } }));
41
+ };
42
+
43
+ //#endregion
44
+ //#region src/components/carousel/carousel-progress-text.tsx
45
+ const parts = carouselAnatomy.build();
46
+ const CarouselProgressText = (props) => {
47
+ const api = useCarouselContext();
48
+ const progressText = createMemo(() => {
49
+ return `${api().page + 1} / ${api().pageSnapPoints.length}`;
50
+ });
51
+ return createComponent(sprawlify.span, mergeProps$1(() => parts.progressText.attrs, props, { get children() {
52
+ return props.children || progressText();
53
+ } }));
54
+ };
55
+
56
+ //#endregion
57
+ //#region src/components/carousel/carousel-autoplay-trigger.tsx
58
+ const CarouselAutoplayTrigger = (props) => {
59
+ const api = useCarouselContext();
60
+ const mergedProps = mergeProps$2(() => api().getAutoplayTriggerProps(), props);
61
+ return createComponent(sprawlify.button, mergedProps);
62
+ };
63
+
64
+ //#endregion
65
+ //#region src/components/carousel/carousel-context.tsx
66
+ const CarouselContext = (props) => props.children(useCarouselContext());
67
+
68
+ //#endregion
69
+ //#region src/components/carousel/carousel-control.tsx
70
+ const CarouselControl = (props) => {
71
+ const api = useCarouselContext();
72
+ const mergedProps = mergeProps$2(() => api().getControlProps(), props);
73
+ return createComponent(sprawlify.div, mergedProps);
74
+ };
75
+
76
+ //#endregion
77
+ //#region src/components/carousel/carousel-indicator.tsx
78
+ const CarouselIndicator = (props) => {
79
+ const [indicatorProps, localProps] = createSplitProps()(props, ["index", "readOnly"]);
80
+ const api = useCarouselContext();
81
+ const mergedProps = mergeProps$2(() => api().getIndicatorProps(indicatorProps), localProps);
82
+ return createComponent(sprawlify.button, mergedProps);
83
+ };
84
+
85
+ //#endregion
86
+ //#region src/components/carousel/carousel-indicator-group.tsx
87
+ const CarouselIndicatorGroup = (props) => {
88
+ const api = useCarouselContext();
89
+ const mergedProps = mergeProps$2(() => api().getIndicatorGroupProps(), props);
90
+ return createComponent(sprawlify.div, mergedProps);
91
+ };
92
+
93
+ //#endregion
94
+ //#region src/components/carousel/carousel-item.tsx
95
+ const CarouselItem = (props) => {
96
+ const [itemProps, localProps] = createSplitProps()(props, ["index", "snapAlign"]);
97
+ const api = useCarouselContext();
98
+ const mergedProps = mergeProps$2(() => api().getItemProps(itemProps), localProps);
99
+ return createComponent(sprawlify.div, mergedProps);
100
+ };
101
+
102
+ //#endregion
103
+ //#region src/components/carousel/carousel-item-group.tsx
104
+ const CarouselItemGroup = (props) => {
105
+ const api = useCarouselContext();
106
+ const mergedProps = mergeProps$2(() => api().getItemGroupProps(), props);
107
+ return createComponent(sprawlify.div, mergedProps);
108
+ };
109
+
110
+ //#endregion
111
+ //#region src/components/carousel/carousel-next-trigger.tsx
112
+ const CarouselNextTrigger = (props) => {
113
+ const api = useCarouselContext();
114
+ const mergedProps = mergeProps$2(() => api().getNextTriggerProps(), props);
115
+ return createComponent(sprawlify.button, mergedProps);
116
+ };
117
+
118
+ //#endregion
119
+ //#region src/components/carousel/carousel-prev-trigger.tsx
120
+ const CarouselPrevTrigger = (props) => {
121
+ const api = useCarouselContext();
122
+ const mergedProps = mergeProps$2(() => api().getPrevTriggerProps(), props);
123
+ return createComponent(sprawlify.button, mergedProps);
124
+ };
125
+
126
+ //#endregion
127
+ //#region src/components/carousel/use-carousel.ts
128
+ const useCarousel = (props) => {
129
+ const id = createUniqueId();
130
+ const locale = useLocaleContext();
131
+ const environment = useEnvironmentContext();
132
+ const machineProps = createMemo(() => ({
133
+ id,
134
+ dir: locale().dir,
135
+ getRootNode: environment().getRootNode,
136
+ ...runIfFn(props)
137
+ }));
138
+ const service = useMachine(carousel.machine, machineProps);
139
+ return createMemo(() => carousel.connect(service, normalizeProps));
140
+ };
141
+
142
+ //#endregion
143
+ //#region src/components/carousel/carousel-root.tsx
144
+ const CarouselRoot = (props) => {
145
+ const [useCarouselProps, localProps] = createSplitProps()(props, [
146
+ "allowMouseDrag",
147
+ "autoplay",
148
+ "autoSize",
149
+ "defaultPage",
150
+ "id",
151
+ "ids",
152
+ "inViewThreshold",
153
+ "loop",
154
+ "onAutoplayStatusChange",
155
+ "onDragStatusChange",
156
+ "onPageChange",
157
+ "orientation",
158
+ "padding",
159
+ "page",
160
+ "slideCount",
161
+ "slidesPerMove",
162
+ "slidesPerPage",
163
+ "snapType",
164
+ "spacing",
165
+ "translations"
166
+ ]);
167
+ const api = useCarousel(useCarouselProps);
168
+ const mergedProps = mergeProps$2(() => api().getRootProps(), localProps);
169
+ return createComponent(CarouselProvider, {
170
+ value: api,
171
+ get children() {
172
+ return createComponent(sprawlify.div, mergedProps);
173
+ }
174
+ });
175
+ };
176
+
177
+ //#endregion
178
+ //#region src/components/carousel/carousel-root-provider.tsx
179
+ const CarouselRootProvider = (props) => {
180
+ const [{ value: carousel$1 }, localProps] = createSplitProps()(props, ["value"]);
181
+ const mergedProps = mergeProps$2(() => carousel$1().getRootProps(), localProps);
182
+ return createComponent(CarouselProvider, {
183
+ value: carousel$1,
184
+ get children() {
185
+ return createComponent(sprawlify.div, mergedProps);
186
+ }
187
+ });
188
+ };
189
+
190
+ //#endregion
191
+ //#region src/components/carousel/carousel.ts
192
+ var carousel_exports = /* @__PURE__ */ __export({
193
+ AutoplayIndicator: () => CarouselAutoplayIndicator,
194
+ AutoplayTrigger: () => CarouselAutoplayTrigger,
195
+ Context: () => CarouselContext,
196
+ Control: () => CarouselControl,
197
+ Indicator: () => CarouselIndicator,
198
+ IndicatorGroup: () => CarouselIndicatorGroup,
199
+ Item: () => CarouselItem,
200
+ ItemGroup: () => CarouselItemGroup,
201
+ NextTrigger: () => CarouselNextTrigger,
202
+ PrevTrigger: () => CarouselPrevTrigger,
203
+ ProgressText: () => CarouselProgressText,
204
+ Root: () => CarouselRoot,
205
+ RootProvider: () => CarouselRootProvider
206
+ });
207
+
208
+ //#endregion
209
+ export { carousel_exports as Carousel, CarouselAutoplayIndicator, CarouselAutoplayTrigger, CarouselContext, CarouselControl, CarouselIndicator, CarouselIndicatorGroup, CarouselItem, CarouselItemGroup, CarouselNextTrigger, CarouselPrevTrigger, CarouselProgressText, CarouselRoot, CarouselRootProvider, carouselAnatomy, useCarousel, useCarouselContext };
@@ -0,0 +1,194 @@
1
+ import { t as __export } from "../../chunk-B5so6B0y.jsx";
2
+ import { i as useMachine, n as normalizeProps, r as mergeProps$1 } from "../../core-DbInRfhI.jsx";
3
+ import { t as runIfFn } from "../../run-if-fn-A3VwXy-o.jsx";
4
+ import { t as createContext$1 } from "../../create-context-C3rvZvkc.jsx";
5
+ import { i as useLocaleContext, o as useEnvironmentContext } from "../../providers-DFaRRd80.jsx";
6
+ import { t as createSplitProps } from "../../create-split-props-B8A7_AF7.jsx";
7
+ import { t as sprawlify } from "../../factory-Ch5jgk20.jsx";
8
+ import { Show, createMemo, createUniqueId } from "solid-js";
9
+ import * as carousel from "@sprawlify/primitives/machines/carousel";
10
+ import { anatomy } from "@sprawlify/primitives/machines/carousel";
11
+
12
+ //#region src/components/carousel/carousel-anatomy.ts
13
+ const carouselAnatomy = anatomy.extendWith("progressText", "autoplayIndicator");
14
+
15
+ //#endregion
16
+ //#region src/components/carousel/use-carousel-context.ts
17
+ const [CarouselProvider, useCarouselContext] = createContext$1({
18
+ hookName: "useCarouselContext",
19
+ providerName: "<CarouselProvider />"
20
+ });
21
+
22
+ //#endregion
23
+ //#region src/components/carousel/carousel-autoplay-indicator.tsx
24
+ const parts$1 = carouselAnatomy.build();
25
+ const CarouselAutoplayIndicator = (props) => {
26
+ const api = useCarouselContext();
27
+ return <sprawlify.span {...parts$1.autoplayIndicator.attrs} {...props}>
28
+ <Show when={api().isPlaying} fallback={props.fallback}>
29
+ {props.children}
30
+ </Show>
31
+ </sprawlify.span>;
32
+ };
33
+
34
+ //#endregion
35
+ //#region src/components/carousel/carousel-progress-text.tsx
36
+ const parts = carouselAnatomy.build();
37
+ const CarouselProgressText = (props) => {
38
+ const api = useCarouselContext();
39
+ const progressText = createMemo(() => {
40
+ return `${api().page + 1} / ${api().pageSnapPoints.length}`;
41
+ });
42
+ return <sprawlify.span {...parts.progressText.attrs} {...props}>
43
+ {props.children || progressText()}
44
+ </sprawlify.span>;
45
+ };
46
+
47
+ //#endregion
48
+ //#region src/components/carousel/carousel-autoplay-trigger.tsx
49
+ const CarouselAutoplayTrigger = (props) => {
50
+ const api = useCarouselContext();
51
+ const mergedProps = mergeProps$1(() => api().getAutoplayTriggerProps(), props);
52
+ return <sprawlify.button {...mergedProps} />;
53
+ };
54
+
55
+ //#endregion
56
+ //#region src/components/carousel/carousel-context.tsx
57
+ const CarouselContext = (props) => props.children(useCarouselContext());
58
+
59
+ //#endregion
60
+ //#region src/components/carousel/carousel-control.tsx
61
+ const CarouselControl = (props) => {
62
+ const api = useCarouselContext();
63
+ const mergedProps = mergeProps$1(() => api().getControlProps(), props);
64
+ return <sprawlify.div {...mergedProps} />;
65
+ };
66
+
67
+ //#endregion
68
+ //#region src/components/carousel/carousel-indicator.tsx
69
+ const CarouselIndicator = (props) => {
70
+ const [indicatorProps, localProps] = createSplitProps()(props, ["index", "readOnly"]);
71
+ const api = useCarouselContext();
72
+ const mergedProps = mergeProps$1(() => api().getIndicatorProps(indicatorProps), localProps);
73
+ return <sprawlify.button {...mergedProps} />;
74
+ };
75
+
76
+ //#endregion
77
+ //#region src/components/carousel/carousel-indicator-group.tsx
78
+ const CarouselIndicatorGroup = (props) => {
79
+ const api = useCarouselContext();
80
+ const mergedProps = mergeProps$1(() => api().getIndicatorGroupProps(), props);
81
+ return <sprawlify.div {...mergedProps} />;
82
+ };
83
+
84
+ //#endregion
85
+ //#region src/components/carousel/carousel-item.tsx
86
+ const CarouselItem = (props) => {
87
+ const [itemProps, localProps] = createSplitProps()(props, ["index", "snapAlign"]);
88
+ const api = useCarouselContext();
89
+ const mergedProps = mergeProps$1(() => api().getItemProps(itemProps), localProps);
90
+ return <sprawlify.div {...mergedProps} />;
91
+ };
92
+
93
+ //#endregion
94
+ //#region src/components/carousel/carousel-item-group.tsx
95
+ const CarouselItemGroup = (props) => {
96
+ const api = useCarouselContext();
97
+ const mergedProps = mergeProps$1(() => api().getItemGroupProps(), props);
98
+ return <sprawlify.div {...mergedProps} />;
99
+ };
100
+
101
+ //#endregion
102
+ //#region src/components/carousel/carousel-next-trigger.tsx
103
+ const CarouselNextTrigger = (props) => {
104
+ const api = useCarouselContext();
105
+ const mergedProps = mergeProps$1(() => api().getNextTriggerProps(), props);
106
+ return <sprawlify.button {...mergedProps} />;
107
+ };
108
+
109
+ //#endregion
110
+ //#region src/components/carousel/carousel-prev-trigger.tsx
111
+ const CarouselPrevTrigger = (props) => {
112
+ const api = useCarouselContext();
113
+ const mergedProps = mergeProps$1(() => api().getPrevTriggerProps(), props);
114
+ return <sprawlify.button {...mergedProps} />;
115
+ };
116
+
117
+ //#endregion
118
+ //#region src/components/carousel/use-carousel.ts
119
+ const useCarousel = (props) => {
120
+ const id = createUniqueId();
121
+ const locale = useLocaleContext();
122
+ const environment = useEnvironmentContext();
123
+ const machineProps = createMemo(() => ({
124
+ id,
125
+ dir: locale().dir,
126
+ getRootNode: environment().getRootNode,
127
+ ...runIfFn(props)
128
+ }));
129
+ const service = useMachine(carousel.machine, machineProps);
130
+ return createMemo(() => carousel.connect(service, normalizeProps));
131
+ };
132
+
133
+ //#endregion
134
+ //#region src/components/carousel/carousel-root.tsx
135
+ const CarouselRoot = (props) => {
136
+ const [useCarouselProps, localProps] = createSplitProps()(props, [
137
+ "allowMouseDrag",
138
+ "autoplay",
139
+ "autoSize",
140
+ "defaultPage",
141
+ "id",
142
+ "ids",
143
+ "inViewThreshold",
144
+ "loop",
145
+ "onAutoplayStatusChange",
146
+ "onDragStatusChange",
147
+ "onPageChange",
148
+ "orientation",
149
+ "padding",
150
+ "page",
151
+ "slideCount",
152
+ "slidesPerMove",
153
+ "slidesPerPage",
154
+ "snapType",
155
+ "spacing",
156
+ "translations"
157
+ ]);
158
+ const api = useCarousel(useCarouselProps);
159
+ const mergedProps = mergeProps$1(() => api().getRootProps(), localProps);
160
+ return <CarouselProvider value={api}>
161
+ <sprawlify.div {...mergedProps} />
162
+ </CarouselProvider>;
163
+ };
164
+
165
+ //#endregion
166
+ //#region src/components/carousel/carousel-root-provider.tsx
167
+ const CarouselRootProvider = (props) => {
168
+ const [{ value: carousel$1 }, localProps] = createSplitProps()(props, ["value"]);
169
+ const mergedProps = mergeProps$1(() => carousel$1().getRootProps(), localProps);
170
+ return <CarouselProvider value={carousel$1}>
171
+ <sprawlify.div {...mergedProps} />
172
+ </CarouselProvider>;
173
+ };
174
+
175
+ //#endregion
176
+ //#region src/components/carousel/carousel.ts
177
+ var carousel_exports = /* @__PURE__ */ __export({
178
+ AutoplayIndicator: () => CarouselAutoplayIndicator,
179
+ AutoplayTrigger: () => CarouselAutoplayTrigger,
180
+ Context: () => CarouselContext,
181
+ Control: () => CarouselControl,
182
+ Indicator: () => CarouselIndicator,
183
+ IndicatorGroup: () => CarouselIndicatorGroup,
184
+ Item: () => CarouselItem,
185
+ ItemGroup: () => CarouselItemGroup,
186
+ NextTrigger: () => CarouselNextTrigger,
187
+ PrevTrigger: () => CarouselPrevTrigger,
188
+ ProgressText: () => CarouselProgressText,
189
+ Root: () => CarouselRoot,
190
+ RootProvider: () => CarouselRootProvider
191
+ });
192
+
193
+ //#endregion
194
+ export { carousel_exports as Carousel, CarouselAutoplayIndicator, CarouselAutoplayTrigger, CarouselContext, CarouselControl, CarouselIndicator, CarouselIndicatorGroup, CarouselItem, CarouselItemGroup, CarouselNextTrigger, CarouselPrevTrigger, CarouselProgressText, CarouselRoot, CarouselRootProvider, carouselAnatomy, useCarousel, useCarouselContext };
@@ -0,0 +1,138 @@
1
+ import { n as PropTypes } from "../../index-C7N791Fc.js";
2
+ import { i as Optional, n as MaybeAccessor, t as Assign } from "../../types-Dbw4va3W.js";
3
+ import { n as PolymorphicProps, t as HTMLProps } from "../../factory-4A25bngy.js";
4
+ import * as solid_js73 from "solid-js";
5
+ import { Accessor, JSX } from "solid-js";
6
+ import * as checkbox from "@sprawlify/primitives/machines/checkbox";
7
+ import { CheckedChangeDetails, CheckedChangeDetails as CheckboxCheckedChangeDetails, CheckedState, CheckedState as CheckboxCheckedState } from "@sprawlify/primitives/machines/checkbox";
8
+ import * as _sprawlify_primitives_anatomy2 from "@sprawlify/primitives/anatomy";
9
+
10
+ //#region src/components/checkbox/use-checkbox.d.ts
11
+ interface UseCheckboxProps extends Optional<Omit<checkbox.Props, 'dir' | 'getRootNode'>, 'id'> {}
12
+ interface UseCheckboxReturn extends Accessor<checkbox.Api<PropTypes>> {}
13
+ declare const useCheckbox: (ownProps?: MaybeAccessor<UseCheckboxProps>) => UseCheckboxReturn;
14
+ //#endregion
15
+ //#region src/components/checkbox/use-checkbox-context.d.ts
16
+ interface UseCheckboxContext extends UseCheckboxReturn {}
17
+ //#endregion
18
+ //#region src/components/checkbox/checkbox-context.d.ts
19
+ interface CheckboxContextProps {
20
+ children: (context: UseCheckboxContext) => JSX.Element;
21
+ }
22
+ declare const CheckboxContext: (props: CheckboxContextProps) => JSX.Element;
23
+ //#endregion
24
+ //#region src/components/checkbox/checkbox-control.d.ts
25
+ interface CheckboxControlBaseProps extends PolymorphicProps<'div'> {}
26
+ interface CheckboxControlProps extends HTMLProps<'div'>, CheckboxControlBaseProps {}
27
+ declare const CheckboxControl: (props: CheckboxControlProps) => solid_js73.JSX.Element;
28
+ //#endregion
29
+ //#region src/components/checkbox/use-checkbox-group.d.ts
30
+ interface UseCheckboxGroupProps {
31
+ /**
32
+ * The initial value of `value` when uncontrolled
33
+ */
34
+ defaultValue?: Accessor<string[]> | string[];
35
+ /**
36
+ * The controlled value of the checkbox group
37
+ */
38
+ value?: Accessor<string[]>;
39
+ /**
40
+ * The name of the input fields in the checkbox group
41
+ * (Useful for form submission).
42
+ */
43
+ name?: string;
44
+ /**
45
+ * The callback to call when the value changes
46
+ */
47
+ onValueChange?: (value: string[]) => void;
48
+ /**
49
+ * If `true`, the checkbox group is disabled
50
+ */
51
+ disabled?: boolean;
52
+ /**
53
+ * If `true`, the checkbox group is read-only
54
+ */
55
+ readOnly?: boolean;
56
+ /**
57
+ * If `true`, the checkbox group is invalid
58
+ */
59
+ invalid?: boolean;
60
+ }
61
+ interface CheckboxGroupItemProps {
62
+ value: string | undefined;
63
+ }
64
+ declare function useCheckboxGroup(props?: UseCheckboxGroupProps): Accessor<{
65
+ isChecked: (val: string | undefined) => boolean;
66
+ value: Accessor<string[]>;
67
+ name: string | undefined;
68
+ disabled: boolean;
69
+ readOnly: boolean | undefined;
70
+ invalid: boolean;
71
+ setValue: (next: string[] | ((prev: string[]) => string[])) => void;
72
+ addValue: (val: string) => void;
73
+ toggleValue: (val: string) => void;
74
+ getItemProps: (itemProps: CheckboxGroupItemProps) => {
75
+ checked: boolean | undefined;
76
+ onCheckedChange(): void;
77
+ name: string | undefined;
78
+ disabled: boolean;
79
+ readOnly: boolean | undefined;
80
+ invalid: boolean;
81
+ };
82
+ }>;
83
+ type UseCheckboxGroupReturn = ReturnType<typeof useCheckboxGroup>;
84
+ //#endregion
85
+ //#region src/components/checkbox/checkbox-group.d.ts
86
+ interface CheckboxGroupBaseProps extends UseCheckboxGroupProps, PolymorphicProps<'div'> {}
87
+ interface CheckboxGroupProps extends HTMLProps<'div'>, CheckboxGroupBaseProps {}
88
+ declare const CheckboxGroup: (props: CheckboxGroupProps) => solid_js73.JSX.Element;
89
+ //#endregion
90
+ //#region src/components/checkbox/use-checkbox-group-context.d.ts
91
+ interface UseCheckboxGroupContext extends UseCheckboxGroupReturn {}
92
+ //#endregion
93
+ //#region src/components/checkbox/checkbox-group-provider.d.ts
94
+ interface ProviderProps {
95
+ value: UseCheckboxGroupContext;
96
+ }
97
+ interface CheckboxGroupProviderBaseProps extends ProviderProps, PolymorphicProps<'div'> {}
98
+ interface CheckboxGroupProviderProps extends Assign<HTMLProps<'div'>, CheckboxGroupProviderBaseProps> {}
99
+ declare const CheckboxGroupProvider: (props: CheckboxGroupProviderProps) => solid_js73.JSX.Element;
100
+ //#endregion
101
+ //#region src/components/checkbox/checkbox-hidden-input.d.ts
102
+ interface CheckboxHiddenInputBaseProps extends PolymorphicProps<'input'> {}
103
+ interface CheckboxHiddenInputProps extends HTMLProps<'input'>, CheckboxHiddenInputBaseProps {}
104
+ declare const CheckboxHiddenInput: (props: CheckboxHiddenInputProps) => solid_js73.JSX.Element;
105
+ //#endregion
106
+ //#region src/components/checkbox/checkbox-indicator.d.ts
107
+ interface IndicatorProps {
108
+ indeterminate?: boolean;
109
+ }
110
+ interface CheckboxIndicatorBaseProps extends IndicatorProps, PolymorphicProps<'div'> {}
111
+ interface CheckboxIndicatorProps extends HTMLProps<'div'>, CheckboxIndicatorBaseProps {}
112
+ declare const CheckboxIndicator: (props: CheckboxIndicatorProps) => solid_js73.JSX.Element;
113
+ //#endregion
114
+ //#region src/components/checkbox/checkbox-label.d.ts
115
+ interface CheckboxLabelBaseProps extends PolymorphicProps<'span'> {}
116
+ interface CheckboxLabelProps extends HTMLProps<'span'>, CheckboxLabelBaseProps {}
117
+ declare const CheckboxLabel: (props: CheckboxLabelProps) => solid_js73.JSX.Element;
118
+ //#endregion
119
+ //#region src/components/checkbox/checkbox-root.d.ts
120
+ interface CheckboxRootBaseProps extends UseCheckboxProps, PolymorphicProps<'label'> {}
121
+ interface CheckboxRootProps extends HTMLProps<'label'>, CheckboxRootBaseProps {}
122
+ declare const CheckboxRoot: (props: CheckboxRootProps) => solid_js73.JSX.Element;
123
+ //#endregion
124
+ //#region src/components/checkbox/checkbox-root-provider.d.ts
125
+ interface RootProviderProps {
126
+ value: UseCheckboxReturn;
127
+ }
128
+ interface CheckboxRootProviderBaseProps extends PolymorphicProps<'label'> {}
129
+ interface CheckboxRootProviderProps extends HTMLProps<'label'>, RootProviderProps, CheckboxRootProviderBaseProps {}
130
+ declare const CheckboxRootProvider: (props: CheckboxRootProviderProps) => solid_js73.JSX.Element;
131
+ //#endregion
132
+ //#region src/components/checkbox/checkbox-anatomy.d.ts
133
+ declare const checkboxAnatomy: _sprawlify_primitives_anatomy2.AnatomyInstance<"root" | "label" | "group" | "control" | "indicator">;
134
+ declare namespace checkbox_d_exports {
135
+ export { CheckedChangeDetails, CheckedState, CheckboxContext as Context, CheckboxContextProps as ContextProps, CheckboxControl as Control, CheckboxControlBaseProps as ControlBaseProps, CheckboxControlProps as ControlProps, CheckboxGroup as Group, CheckboxGroupBaseProps as GroupBaseProps, CheckboxGroupProps as GroupProps, CheckboxGroupProvider as GroupProvider, CheckboxGroupProviderBaseProps as GroupProviderBaseProps, CheckboxGroupProviderProps as GroupProviderProps, CheckboxHiddenInput as HiddenInput, CheckboxHiddenInputBaseProps as HiddenInputBaseProps, CheckboxHiddenInputProps as HiddenInputProps, CheckboxIndicator as Indicator, CheckboxIndicatorBaseProps as IndicatorBaseProps, CheckboxIndicatorProps as IndicatorProps, CheckboxLabel as Label, CheckboxLabelBaseProps as LabelBaseProps, CheckboxLabelProps as LabelProps, CheckboxRoot as Root, CheckboxRootBaseProps as RootBaseProps, CheckboxRootProps as RootProps, CheckboxRootProvider as RootProvider, CheckboxRootProviderBaseProps as RootProviderBaseProps, CheckboxRootProviderProps as RootProviderProps };
136
+ }
137
+ //#endregion
138
+ export { checkbox_d_exports as Checkbox, type CheckboxCheckedChangeDetails, type CheckboxCheckedState, CheckboxContext, type CheckboxContextProps, CheckboxControl, type CheckboxControlBaseProps, type CheckboxControlProps, CheckboxGroup, type CheckboxGroupBaseProps, type CheckboxGroupProps, CheckboxGroupProvider, type CheckboxGroupProviderBaseProps, type CheckboxGroupProviderProps, CheckboxHiddenInput, type CheckboxHiddenInputBaseProps, type CheckboxHiddenInputProps, CheckboxIndicator, type CheckboxIndicatorBaseProps, type CheckboxIndicatorProps, CheckboxLabel, type CheckboxLabelBaseProps, type CheckboxLabelProps, CheckboxRoot, type CheckboxRootBaseProps, type CheckboxRootProps, CheckboxRootProvider, type CheckboxRootProviderBaseProps, type CheckboxRootProviderProps, type UseCheckboxContext, type UseCheckboxGroupContext, type UseCheckboxGroupProps, type UseCheckboxGroupReturn, type UseCheckboxProps, type UseCheckboxReturn, checkboxAnatomy, useCheckbox, useCheckboxContext, useCheckboxGroup, useCheckboxGroupContext };