@sprawlify/solid 0.0.15 → 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.
- package/dist/{collapsible-Cg7zPadX.js → collapsible-CX2tnXKq.js} +8 -6
- package/dist/{collapsible-CjuC6xYl.jsx → collapsible-sG-Rzvf2.jsx} +8 -6
- package/dist/{collection-BlnS2UQy.jsx → collection-BRr4O2_i.jsx} +2 -1
- package/dist/{collection-BiyRTWsX.js → collection-zj3lxnwW.js} +2 -1
- package/dist/components/accordion/index.d.ts +11 -11
- package/dist/components/accordion/index.js +9 -7
- package/dist/components/accordion/index.jsx +9 -7
- package/dist/components/angle-slider/index.d.ts +13 -13
- package/dist/components/angle-slider/index.js +7 -5
- package/dist/components/angle-slider/index.jsx +7 -5
- package/dist/components/avatar/index.d.ts +8 -8
- package/dist/components/avatar/index.js +7 -5
- package/dist/components/avatar/index.jsx +7 -5
- package/dist/components/bottom-sheet/index.d.ts +13 -13
- package/dist/components/bottom-sheet/index.js +10 -8
- package/dist/components/bottom-sheet/index.jsx +10 -8
- package/dist/components/carousel/index.d.ts +17 -17
- package/dist/components/carousel/index.js +7 -5
- package/dist/components/carousel/index.jsx +7 -5
- package/dist/components/checkbox/index.d.ts +14 -14
- package/dist/components/checkbox/index.js +10 -8
- package/dist/components/checkbox/index.jsx +10 -8
- package/dist/components/clipboard/index.d.ts +11 -11
- package/dist/components/clipboard/index.js +7 -5
- package/dist/components/clipboard/index.jsx +7 -5
- package/dist/components/collapsible/index.d.ts +10 -10
- package/dist/components/collapsible/index.js +7 -6
- package/dist/components/collapsible/index.jsx +7 -6
- package/dist/components/collection/index.d.ts +2 -2
- package/dist/components/collection/index.js +2 -2
- package/dist/components/collection/index.jsx +2 -2
- package/dist/components/color-picker/index.d.ts +183 -0
- package/dist/components/color-picker/index.js +500 -0
- package/dist/components/color-picker/index.jsx +436 -0
- package/dist/components/combobox/index.d.ts +134 -0
- package/dist/components/combobox/index.js +357 -0
- package/dist/components/combobox/index.jsx +315 -0
- package/dist/components/date-picker/index.d.ts +165 -0
- package/dist/components/date-picker/index.js +476 -0
- package/dist/components/date-picker/index.jsx +415 -0
- package/dist/components/dialog/index.d.ts +80 -0
- package/dist/components/dialog/index.js +219 -0
- package/dist/components/dialog/index.jsx +173 -0
- package/dist/components/download-trigger/index.d.ts +25 -0
- package/dist/components/download-trigger/index.js +42 -0
- package/dist/components/download-trigger/index.jsx +38 -0
- package/dist/components/editable/index.d.ts +79 -0
- package/dist/components/editable/index.js +190 -0
- package/dist/components/editable/index.jsx +181 -0
- package/dist/components/field/index.d.ts +14 -14
- package/dist/components/field/index.js +8 -7
- package/dist/components/field/index.jsx +8 -7
- package/dist/components/fieldset/index.d.ts +12 -12
- package/dist/components/fieldset/index.js +7 -6
- package/dist/components/fieldset/index.jsx +7 -6
- package/dist/components/highlight/index.d.ts +15 -0
- package/dist/components/highlight/index.js +47 -0
- package/dist/components/highlight/index.jsx +31 -0
- package/dist/components/presence/index.d.ts +4 -4
- package/dist/components/presence/index.js +7 -6
- package/dist/components/presence/index.jsx +7 -6
- package/dist/components/select/index.d.ts +22 -22
- package/dist/components/select/index.js +13 -11
- package/dist/components/select/index.jsx +13 -11
- package/dist/{run-if-fn-eYlaegHy.js → core-DbInRfhI.jsx} +1 -6
- package/dist/{run-if-fn-DRWB51JE.jsx → core-oNB2jGcl.js} +1 -6
- package/dist/create-split-props-B8A7_AF7.jsx +7 -0
- package/dist/create-split-props-pQu7jijw.js +7 -0
- package/dist/{factory-B6RK6SH4.d.ts → factory-4A25bngy.d.ts} +1 -1
- package/dist/{create-split-props-CQVsvhvg.jsx → factory-Ch5jgk20.jsx} +2 -6
- package/dist/{factory-CEdj72aS.js → factory-PGDAvOKb.js} +2 -6
- package/dist/{field-CphvciGc.jsx → field-BRr9Zdes.jsx} +8 -7
- package/dist/{field-C_WuoXOj.js → field-CoYiA2ek.js} +8 -7
- package/dist/{fieldset-BG-0ZqWT.jsx → fieldset-B_LyllEa.jsx} +8 -6
- package/dist/{fieldset-D1BO0LmU.js → fieldset-BrJqMLEd.js} +8 -6
- package/dist/{index-DXheKbqg.d.ts → index-GEfvAmRc.d.ts} +1 -1
- package/dist/{index-NWiNyxpL.d.ts → index-j2avJy7D.d.ts} +8 -8
- package/dist/{index-vSwYtc2L.d.ts → index-oc8gLl07.d.ts} +4 -4
- package/dist/index.d.ts +5 -5
- package/dist/index.js +4 -4
- package/dist/index.jsx +4 -4
- package/dist/{presence-arWh1hVd.jsx → presence-Bmn43U_q.jsx} +7 -5
- package/dist/{presence-Bfjusgm3.js → presence-BpwBRlZW.js} +7 -5
- package/dist/{providers-CQkAUunr.js → providers-Bo0OFe08.js} +2 -2
- package/dist/{providers-CHqGPEsc.jsx → providers-DFaRRd80.jsx} +2 -2
- package/dist/{render-strategy-CZDG_yDi.jsx → render-strategy-CdJhRv3I.jsx} +2 -2
- package/dist/{render-strategy-COrlrUuR.js → render-strategy-DFlz7Uc4.js} +2 -2
- package/dist/run-if-fn-A3VwXy-o.jsx +6 -0
- package/dist/run-if-fn-D5794CxE.js +6 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.jsx +2 -2
- package/package.json +42 -2
- /package/dist/{chunk-C4aQI7lE.jsx → chunk-B5so6B0y.jsx} +0 -0
- /package/dist/{chunk-CKcAJnC7.js → chunk-B93cd-Dz.js} +0 -0
- /package/dist/{compose-refs-CzyOb8yH.jsx → compose-refs-BVVIB7xn.js} +0 -0
- /package/dist/{compose-refs-vsrTrt13.js → compose-refs-icUeuyHm.jsx} +0 -0
- /package/dist/{create-context-PS2j4mEo.js → create-context-C3rvZvkc.jsx} +0 -0
- /package/dist/{create-context-h3cXiEld.jsx → create-context-GfQ_MylE.js} +0 -0
- /package/dist/{index-B0YoIRC4.d.ts → index-B6dBCfnB.d.ts} +0 -0
- /package/dist/{index-C3ATynHc.d.ts → index-C7N791Fc.d.ts} +0 -0
- /package/dist/{render-strategy-CtRkdWei.d.ts → render-strategy-BNECKEQk.d.ts} +0 -0
- /package/dist/{types-bQRbEioA.d.ts → types-Dbw4va3W.d.ts} +0 -0
- /package/dist/{utils-DYer-9SY.js → utils-DQi-Cen5.js} +0 -0
- /package/dist/{utils-DrvO4Hk3.jsx → utils-vSjszv0W.jsx} +0 -0
|
@@ -0,0 +1,436 @@
|
|
|
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 "../../render-strategy-CdJhRv3I.jsx";
|
|
8
|
+
import { t as sprawlify } from "../../factory-Ch5jgk20.jsx";
|
|
9
|
+
import { t as composeRefs } from "../../compose-refs-icUeuyHm.jsx";
|
|
10
|
+
import { a as splitPresenceProps, i as usePresence, n as usePresenceContext, t as PresenceProvider } from "../../presence-Bmn43U_q.jsx";
|
|
11
|
+
import "../../fieldset-B_LyllEa.jsx";
|
|
12
|
+
import { m as useFieldContext } from "../../field-BRr9Zdes.jsx";
|
|
13
|
+
import { Index, Show, createMemo, createUniqueId } from "solid-js";
|
|
14
|
+
import * as colorPicker from "@sprawlify/primitives/machines/color-picker";
|
|
15
|
+
import { anatomy, parse as parseColor } from "@sprawlify/primitives/machines/color-picker";
|
|
16
|
+
|
|
17
|
+
//#region src/components/color-picker/use-color-picker-area-props-context.ts
|
|
18
|
+
const [ColorPickerAreaPropsProvider, useColorPickerAreaPropsContext] = createContext$1({
|
|
19
|
+
hookName: "useColorPickerAreaContext",
|
|
20
|
+
providerName: "<ColorPickerAreaProvider />"
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/components/color-picker/use-color-picker-context.ts
|
|
25
|
+
const [ColorPickerProvider, useColorPickerContext] = createContext$1({
|
|
26
|
+
hookName: "useColorPickerContext",
|
|
27
|
+
providerName: "<ColorPickerProvider />"
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/components/color-picker/color-picker-area.tsx
|
|
32
|
+
const ColorPickerArea = (props) => {
|
|
33
|
+
const [channelProps, divprops] = createSplitProps()(props, ["xChannel", "yChannel"]);
|
|
34
|
+
const api = useColorPickerContext();
|
|
35
|
+
const mergedProps = mergeProps$1(() => api().getAreaProps(channelProps), divprops);
|
|
36
|
+
return <ColorPickerAreaPropsProvider value={channelProps}>
|
|
37
|
+
<sprawlify.div {...mergedProps} />
|
|
38
|
+
</ColorPickerAreaPropsProvider>;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/components/color-picker/color-picker-area-background.tsx
|
|
43
|
+
const ColorPickerAreaBackground = (props) => {
|
|
44
|
+
const api = useColorPickerContext();
|
|
45
|
+
const areaProps = useColorPickerAreaPropsContext();
|
|
46
|
+
const mergedProps = mergeProps$1(() => api().getAreaBackgroundProps(areaProps), props);
|
|
47
|
+
return <sprawlify.div {...mergedProps} />;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/components/color-picker/color-picker-area-thumb.tsx
|
|
52
|
+
const ColorPickerAreaThumb = (props) => {
|
|
53
|
+
const api = useColorPickerContext();
|
|
54
|
+
const areaProps = useColorPickerAreaPropsContext();
|
|
55
|
+
const mergedProps = mergeProps$1(() => api().getAreaThumbProps(areaProps), props);
|
|
56
|
+
return <sprawlify.div {...mergedProps} />;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region src/components/color-picker/color-picker-channel-input.tsx
|
|
61
|
+
const ColorPickerChannelInput = (props) => {
|
|
62
|
+
const [channelProps, inputProps] = createSplitProps()(props, ["channel", "orientation"]);
|
|
63
|
+
const api = useColorPickerContext();
|
|
64
|
+
const mergedProps = mergeProps$1(() => api().getChannelInputProps(channelProps), inputProps);
|
|
65
|
+
return <sprawlify.input {...mergedProps} />;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region src/components/color-picker/use-color-picker-channel-props-context.ts
|
|
70
|
+
const [ColorPickerChannelPropsProvider, useColorPickerChannelPropsContext] = createContext$1({
|
|
71
|
+
hookName: "useColorPickerChannelSliderContext",
|
|
72
|
+
providerName: "<ColorPickerChannelSliderProvider />"
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region src/components/color-picker/use-color-picker-format-context.ts
|
|
77
|
+
const [ColorPickerFormatPropsProvider, useColorPickerFormatPropsContext] = createContext$1({
|
|
78
|
+
hookName: "useColorPickerFormatPropsContext",
|
|
79
|
+
providerName: "<ColorPickerFormatPropsProvider />",
|
|
80
|
+
strict: false
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/components/color-picker/color-picker-channel-slider.tsx
|
|
85
|
+
const ColorPickerChannelSlider = (props) => {
|
|
86
|
+
const [channelProps, localProps] = createSplitProps()(props, ["channel", "orientation"]);
|
|
87
|
+
const api = useColorPickerContext();
|
|
88
|
+
const channelSliderProps = mergeProps$1(channelProps, useColorPickerFormatPropsContext());
|
|
89
|
+
const mergedProps = mergeProps$1(() => api().getChannelSliderProps(channelSliderProps), localProps);
|
|
90
|
+
return <ColorPickerChannelPropsProvider value={channelProps}>
|
|
91
|
+
<sprawlify.div {...mergedProps} />
|
|
92
|
+
</ColorPickerChannelPropsProvider>;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region src/components/color-picker/color-picker-channel-slider-label.tsx
|
|
97
|
+
const ColorPickerChannelSliderLabel = (props) => {
|
|
98
|
+
const colorPicker$1 = useColorPickerContext();
|
|
99
|
+
const channelProps = useColorPickerChannelPropsContext();
|
|
100
|
+
const mergedProps = mergeProps$1(() => colorPicker$1().getChannelSliderLabelProps(channelProps), props);
|
|
101
|
+
return <sprawlify.label {...mergedProps} />;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region src/components/color-picker/color-picker-channel-slider-thumb.tsx
|
|
106
|
+
const ColorPickerChannelSliderThumb = (props) => {
|
|
107
|
+
const api = useColorPickerContext();
|
|
108
|
+
const formatProps = useColorPickerFormatPropsContext();
|
|
109
|
+
const channelSliderProps = mergeProps$1(useColorPickerChannelPropsContext(), formatProps);
|
|
110
|
+
const mergedProps = mergeProps$1(() => api().getChannelSliderThumbProps(channelSliderProps), props);
|
|
111
|
+
return <sprawlify.div {...mergedProps} />;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region src/components/color-picker/color-picker-channel-slider-track.tsx
|
|
116
|
+
const ColorPickerChannelSliderTrack = (props) => {
|
|
117
|
+
const api = useColorPickerContext();
|
|
118
|
+
const formatProps = useColorPickerFormatPropsContext();
|
|
119
|
+
const channelSliderProps = mergeProps$1(useColorPickerChannelPropsContext(), formatProps);
|
|
120
|
+
const mergedProps = mergeProps$1(() => api().getChannelSliderTrackProps(channelSliderProps), props);
|
|
121
|
+
return <sprawlify.div {...mergedProps} />;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
//#endregion
|
|
125
|
+
//#region src/components/color-picker/color-picker-channel-slider-value-text.tsx
|
|
126
|
+
const ColorPickerChannelSliderValueText = (props) => {
|
|
127
|
+
const colorPicker$1 = useColorPickerContext();
|
|
128
|
+
const localeContext = useLocaleContext();
|
|
129
|
+
const channelProps = useColorPickerChannelPropsContext();
|
|
130
|
+
const mergedProps = mergeProps$1(() => colorPicker$1().getChannelSliderValueTextProps(channelProps), props);
|
|
131
|
+
return <sprawlify.span {...mergedProps}>
|
|
132
|
+
{props.children || colorPicker$1().getChannelValueText(channelProps.channel, localeContext().locale)}
|
|
133
|
+
</sprawlify.span>;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
//#endregion
|
|
137
|
+
//#region src/components/color-picker/color-picker-content.tsx
|
|
138
|
+
const ColorPickerContent = (props) => {
|
|
139
|
+
const api = useColorPickerContext();
|
|
140
|
+
const presenceApi = usePresenceContext();
|
|
141
|
+
const mergedProps = mergeProps$1(() => api().getContentProps(), () => presenceApi().presenceProps, props);
|
|
142
|
+
return <Show when={!presenceApi().unmounted}>
|
|
143
|
+
<sprawlify.div {...mergedProps} ref={composeRefs(presenceApi().ref, props.ref)} />
|
|
144
|
+
</Show>;
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
//#endregion
|
|
148
|
+
//#region src/components/color-picker/color-picker-context.tsx
|
|
149
|
+
const ColorPickerContext = (props) => props.children(useColorPickerContext());
|
|
150
|
+
|
|
151
|
+
//#endregion
|
|
152
|
+
//#region src/components/color-picker/color-picker-control.tsx
|
|
153
|
+
const ColorPickerControl = (props) => {
|
|
154
|
+
const api = useColorPickerContext();
|
|
155
|
+
const mergedProps = mergeProps$1(() => api().getControlProps(), props);
|
|
156
|
+
return <sprawlify.div {...mergedProps} />;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
//#endregion
|
|
160
|
+
//#region src/components/color-picker/color-picker-eye-dropper-trigger.tsx
|
|
161
|
+
const ColorPickerEyeDropperTrigger = (props) => {
|
|
162
|
+
const api = useColorPickerContext();
|
|
163
|
+
const mergedProps = mergeProps$1(() => api().getEyeDropperTriggerProps(), props);
|
|
164
|
+
return <sprawlify.button {...mergedProps} />;
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
//#endregion
|
|
168
|
+
//#region src/components/color-picker/color-picker-format-select.tsx
|
|
169
|
+
const ColorPickerFormatSelect = (props) => {
|
|
170
|
+
const api = useColorPickerContext();
|
|
171
|
+
const mergedProps = mergeProps$1(() => api().getFormatSelectProps(), props);
|
|
172
|
+
return <sprawlify.select {...mergedProps}>
|
|
173
|
+
<Index each={[
|
|
174
|
+
"rgba",
|
|
175
|
+
"hsla",
|
|
176
|
+
"hsba"
|
|
177
|
+
]}>{(format) => <sprawlify.option value={format()}>{format()}</sprawlify.option>}</Index>
|
|
178
|
+
</sprawlify.select>;
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
//#endregion
|
|
182
|
+
//#region src/components/color-picker/color-picker-format-trigger.tsx
|
|
183
|
+
const ColorPickerFormatTrigger = (props) => {
|
|
184
|
+
const api = useColorPickerContext();
|
|
185
|
+
const mergedProps = mergeProps$1(() => api().getFormatTriggerProps(), props);
|
|
186
|
+
return <sprawlify.button {...mergedProps} />;
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region src/components/color-picker/color-picker-hidden-input.tsx
|
|
191
|
+
const ColorPickerHiddenInput = (props) => {
|
|
192
|
+
const colorPicker$1 = useColorPickerContext();
|
|
193
|
+
const mergedProps = mergeProps$1(() => colorPicker$1().getHiddenInputProps(), props);
|
|
194
|
+
const field = useFieldContext();
|
|
195
|
+
return <sprawlify.input aria-describedby={field?.().ariaDescribedby} {...mergedProps} />;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
//#endregion
|
|
199
|
+
//#region src/components/color-picker/color-picker-label.tsx
|
|
200
|
+
const ColorPickerLabel = (props) => {
|
|
201
|
+
const api = useColorPickerContext();
|
|
202
|
+
const mergedProps = mergeProps$1(() => api().getLabelProps(), props);
|
|
203
|
+
return <sprawlify.label {...mergedProps} />;
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
//#endregion
|
|
207
|
+
//#region src/components/color-picker/color-picker-positioner.tsx
|
|
208
|
+
const ColorPickerPositioner = (props) => {
|
|
209
|
+
const api = useColorPickerContext();
|
|
210
|
+
const presenceApi = usePresenceContext();
|
|
211
|
+
const mergedProps = mergeProps$1(() => api().getPositionerProps(), props);
|
|
212
|
+
return <Show when={!presenceApi().unmounted}>
|
|
213
|
+
<sprawlify.div {...mergedProps} />
|
|
214
|
+
</Show>;
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
//#endregion
|
|
218
|
+
//#region src/components/color-picker/use-color-picker.ts
|
|
219
|
+
const useColorPicker = (props) => {
|
|
220
|
+
const id = createUniqueId();
|
|
221
|
+
const locale = useLocaleContext();
|
|
222
|
+
const environment = useEnvironmentContext();
|
|
223
|
+
const field = useFieldContext();
|
|
224
|
+
const machineProps = createMemo(() => ({
|
|
225
|
+
id,
|
|
226
|
+
ids: {
|
|
227
|
+
label: field?.().ids.label,
|
|
228
|
+
input: field?.().ids.control
|
|
229
|
+
},
|
|
230
|
+
dir: locale().dir,
|
|
231
|
+
disabled: field?.().disabled,
|
|
232
|
+
invalid: field?.().invalid,
|
|
233
|
+
readOnly: field?.().readOnly,
|
|
234
|
+
required: field?.().required,
|
|
235
|
+
getRootNode: environment().getRootNode,
|
|
236
|
+
...runIfFn(props)
|
|
237
|
+
}));
|
|
238
|
+
const service = useMachine(colorPicker.machine, machineProps);
|
|
239
|
+
return createMemo(() => colorPicker.connect(service, normalizeProps));
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
//#endregion
|
|
243
|
+
//#region src/components/color-picker/color-picker-root.tsx
|
|
244
|
+
const ColorPickerRoot = (props) => {
|
|
245
|
+
const [presenceProps, colorPickerProps] = splitPresenceProps(props);
|
|
246
|
+
const [useColorPickerProps, localProps] = createSplitProps()(colorPickerProps, [
|
|
247
|
+
"closeOnSelect",
|
|
248
|
+
"defaultOpen",
|
|
249
|
+
"defaultValue",
|
|
250
|
+
"defaultFormat",
|
|
251
|
+
"disabled",
|
|
252
|
+
"format",
|
|
253
|
+
"id",
|
|
254
|
+
"ids",
|
|
255
|
+
"initialFocusEl",
|
|
256
|
+
"invalid",
|
|
257
|
+
"name",
|
|
258
|
+
"name",
|
|
259
|
+
"onFocusOutside",
|
|
260
|
+
"onFormatChange",
|
|
261
|
+
"onInteractOutside",
|
|
262
|
+
"onOpenChange",
|
|
263
|
+
"onPointerDownOutside",
|
|
264
|
+
"onValueChange",
|
|
265
|
+
"onValueChangeEnd",
|
|
266
|
+
"open",
|
|
267
|
+
"openAutoFocus",
|
|
268
|
+
"positioning",
|
|
269
|
+
"readOnly",
|
|
270
|
+
"required",
|
|
271
|
+
"inline",
|
|
272
|
+
"value"
|
|
273
|
+
]);
|
|
274
|
+
const api = useColorPicker(useColorPickerProps);
|
|
275
|
+
const apiPresence = usePresence(mergeProps$1(presenceProps, () => ({ present: api().open })));
|
|
276
|
+
const mergedProps = mergeProps$1(() => api().getRootProps(), localProps);
|
|
277
|
+
return <ColorPickerProvider value={api}>
|
|
278
|
+
<PresenceProvider value={apiPresence}>
|
|
279
|
+
<sprawlify.div {...mergedProps} />
|
|
280
|
+
</PresenceProvider>
|
|
281
|
+
</ColorPickerProvider>;
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
//#endregion
|
|
285
|
+
//#region src/components/color-picker/color-picker-root-provider.tsx
|
|
286
|
+
const ColorPickerRootProvider = (props) => {
|
|
287
|
+
const [presenceProps, colorPickerProps] = splitPresenceProps(props);
|
|
288
|
+
const [{ value: colorPicker$1 }, localProps] = createSplitProps()(colorPickerProps, ["value"]);
|
|
289
|
+
const apiPresence = usePresence(mergeProps$1(presenceProps, () => ({ present: colorPicker$1().open })));
|
|
290
|
+
const mergedProps = mergeProps$1(() => colorPicker$1().getRootProps(), localProps);
|
|
291
|
+
return <ColorPickerProvider value={colorPicker$1}>
|
|
292
|
+
<PresenceProvider value={apiPresence}>
|
|
293
|
+
<sprawlify.div {...mergedProps} />
|
|
294
|
+
</PresenceProvider>
|
|
295
|
+
</ColorPickerProvider>;
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
//#endregion
|
|
299
|
+
//#region src/components/color-picker/use-color-picker-swatch-props-context.ts
|
|
300
|
+
const [ColorPickerSwatchPropsProvider, useColorPickerSwatchPropsContext] = createContext$1({
|
|
301
|
+
hookName: "useColorPickerSwatchContext",
|
|
302
|
+
providerName: "<ColorPickerSwatchProvider />"
|
|
303
|
+
});
|
|
304
|
+
|
|
305
|
+
//#endregion
|
|
306
|
+
//#region src/components/color-picker/color-picker-swatch.tsx
|
|
307
|
+
const ColorPickerSwatch = (props) => {
|
|
308
|
+
const [swatchProps, localProps] = createSplitProps()(props, ["respectAlpha", "value"]);
|
|
309
|
+
const api = useColorPickerContext();
|
|
310
|
+
const mergedProps = mergeProps$1(() => api().getSwatchProps(swatchProps), localProps);
|
|
311
|
+
return <ColorPickerSwatchPropsProvider value={swatchProps}>
|
|
312
|
+
<sprawlify.div {...mergedProps} />
|
|
313
|
+
</ColorPickerSwatchPropsProvider>;
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
//#endregion
|
|
317
|
+
//#region src/components/color-picker/color-picker-swatch-group.tsx
|
|
318
|
+
const ColorPickerSwatchGroup = (props) => {
|
|
319
|
+
const api = useColorPickerContext();
|
|
320
|
+
const mergedProps = mergeProps$1(() => api().getSwatchGroupProps(), props);
|
|
321
|
+
return <sprawlify.div {...mergedProps} />;
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
//#endregion
|
|
325
|
+
//#region src/components/color-picker/color-picker-swatch-indicator.tsx
|
|
326
|
+
const ColorPickerSwatchIndicator = (props) => {
|
|
327
|
+
const api = useColorPickerContext();
|
|
328
|
+
const swatchProps = useColorPickerSwatchPropsContext();
|
|
329
|
+
const mergedProps = mergeProps$1(() => api().getSwatchIndicatorProps(swatchProps), props);
|
|
330
|
+
return <sprawlify.div {...mergedProps} />;
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
//#endregion
|
|
334
|
+
//#region src/components/color-picker/color-picker-swatch-trigger.tsx
|
|
335
|
+
const ColorPickerSwatchTrigger = (props) => {
|
|
336
|
+
const [triggerProps, localProps] = createSplitProps()(props, ["value", "disabled"]);
|
|
337
|
+
const api = useColorPickerContext();
|
|
338
|
+
const mergedProps = mergeProps$1(() => api().getSwatchTriggerProps(triggerProps), localProps);
|
|
339
|
+
return <sprawlify.button {...mergedProps} />;
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
//#endregion
|
|
343
|
+
//#region src/components/color-picker/color-picker-transparency-grid.tsx
|
|
344
|
+
const ColorPickerTransparencyGrid = (props) => {
|
|
345
|
+
const [gridProps, localProps] = createSplitProps()(props, ["size"]);
|
|
346
|
+
const api = useColorPickerContext();
|
|
347
|
+
const mergedProps = mergeProps$1(() => api().getTransparencyGridProps(gridProps), localProps);
|
|
348
|
+
return <sprawlify.div {...mergedProps} />;
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
//#endregion
|
|
352
|
+
//#region src/components/color-picker/color-picker-trigger.tsx
|
|
353
|
+
const ColorPickerTrigger = (props) => {
|
|
354
|
+
const api = useColorPickerContext();
|
|
355
|
+
const mergedProps = mergeProps$1(() => api().getTriggerProps(), props);
|
|
356
|
+
return <sprawlify.button {...mergedProps} />;
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
//#endregion
|
|
360
|
+
//#region src/components/color-picker/color-picker-value-swatch.tsx
|
|
361
|
+
const ColorPickerValueSwatch = (props) => {
|
|
362
|
+
const [{ respectAlpha }, localProps] = createSplitProps()(props, ["respectAlpha"]);
|
|
363
|
+
const colorPicker$1 = useColorPickerContext();
|
|
364
|
+
const swatchProps = createMemo(() => ({
|
|
365
|
+
respectAlpha,
|
|
366
|
+
value: colorPicker$1().value
|
|
367
|
+
}));
|
|
368
|
+
const mergedProps = mergeProps$1(() => colorPicker$1().getSwatchProps(swatchProps()), localProps);
|
|
369
|
+
return <ColorPickerSwatchPropsProvider value={swatchProps()}>
|
|
370
|
+
<sprawlify.div {...mergedProps} />
|
|
371
|
+
</ColorPickerSwatchPropsProvider>;
|
|
372
|
+
};
|
|
373
|
+
|
|
374
|
+
//#endregion
|
|
375
|
+
//#region src/components/color-picker/color-picker-value-text.tsx
|
|
376
|
+
const ColorPickerValueText = (props) => {
|
|
377
|
+
const colorPicker$1 = useColorPickerContext();
|
|
378
|
+
const [formatProps, localProps] = createSplitProps()(props, ["format"]);
|
|
379
|
+
const mergedProps = mergeProps$1(() => colorPicker$1().getValueTextProps(), localProps);
|
|
380
|
+
const valueAsString = createMemo(() => formatProps.format ? colorPicker$1().value.toString(formatProps.format) : colorPicker$1().valueAsString);
|
|
381
|
+
return <sprawlify.span {...mergedProps}>{props.children || valueAsString()}</sprawlify.span>;
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
//#endregion
|
|
385
|
+
//#region src/components/color-picker/color-picker-anatomy.ts
|
|
386
|
+
const colorPickerAnatomy = anatomy.extendWith("view");
|
|
387
|
+
|
|
388
|
+
//#endregion
|
|
389
|
+
//#region src/components/color-picker/color-picker-view.tsx
|
|
390
|
+
const ColorPickerView = (props) => {
|
|
391
|
+
const api = useColorPickerContext();
|
|
392
|
+
const [formatProps, localProps] = createSplitProps()(props, ["format"]);
|
|
393
|
+
const mergedProps = mergeProps$1(() => colorPickerAnatomy.build().view.attrs, localProps);
|
|
394
|
+
return <ColorPickerFormatPropsProvider value={formatProps}>
|
|
395
|
+
<Show when={api().format === props.format}>
|
|
396
|
+
<sprawlify.div data-format={props.format} {...mergedProps} />
|
|
397
|
+
</Show>
|
|
398
|
+
</ColorPickerFormatPropsProvider>;
|
|
399
|
+
};
|
|
400
|
+
|
|
401
|
+
//#endregion
|
|
402
|
+
//#region src/components/color-picker/color-picker.ts
|
|
403
|
+
var color_picker_exports = /* @__PURE__ */ __export({
|
|
404
|
+
Area: () => ColorPickerArea,
|
|
405
|
+
AreaBackground: () => ColorPickerAreaBackground,
|
|
406
|
+
AreaThumb: () => ColorPickerAreaThumb,
|
|
407
|
+
ChannelInput: () => ColorPickerChannelInput,
|
|
408
|
+
ChannelSlider: () => ColorPickerChannelSlider,
|
|
409
|
+
ChannelSliderLabel: () => ColorPickerChannelSliderLabel,
|
|
410
|
+
ChannelSliderThumb: () => ColorPickerChannelSliderThumb,
|
|
411
|
+
ChannelSliderTrack: () => ColorPickerChannelSliderTrack,
|
|
412
|
+
ChannelSliderValueText: () => ColorPickerChannelSliderValueText,
|
|
413
|
+
Content: () => ColorPickerContent,
|
|
414
|
+
Context: () => ColorPickerContext,
|
|
415
|
+
Control: () => ColorPickerControl,
|
|
416
|
+
EyeDropperTrigger: () => ColorPickerEyeDropperTrigger,
|
|
417
|
+
FormatSelect: () => ColorPickerFormatSelect,
|
|
418
|
+
FormatTrigger: () => ColorPickerFormatTrigger,
|
|
419
|
+
HiddenInput: () => ColorPickerHiddenInput,
|
|
420
|
+
Label: () => ColorPickerLabel,
|
|
421
|
+
Positioner: () => ColorPickerPositioner,
|
|
422
|
+
Root: () => ColorPickerRoot,
|
|
423
|
+
RootProvider: () => ColorPickerRootProvider,
|
|
424
|
+
Swatch: () => ColorPickerSwatch,
|
|
425
|
+
SwatchGroup: () => ColorPickerSwatchGroup,
|
|
426
|
+
SwatchIndicator: () => ColorPickerSwatchIndicator,
|
|
427
|
+
SwatchTrigger: () => ColorPickerSwatchTrigger,
|
|
428
|
+
TransparencyGrid: () => ColorPickerTransparencyGrid,
|
|
429
|
+
Trigger: () => ColorPickerTrigger,
|
|
430
|
+
ValueSwatch: () => ColorPickerValueSwatch,
|
|
431
|
+
ValueText: () => ColorPickerValueText,
|
|
432
|
+
View: () => ColorPickerView
|
|
433
|
+
});
|
|
434
|
+
|
|
435
|
+
//#endregion
|
|
436
|
+
export { color_picker_exports as ColorPicker, ColorPickerArea, ColorPickerAreaBackground, ColorPickerAreaThumb, ColorPickerChannelInput, ColorPickerChannelSlider, ColorPickerChannelSliderLabel, ColorPickerChannelSliderThumb, ColorPickerChannelSliderTrack, ColorPickerChannelSliderValueText, ColorPickerContent, ColorPickerContext, ColorPickerControl, ColorPickerEyeDropperTrigger, ColorPickerFormatSelect, ColorPickerFormatTrigger, ColorPickerHiddenInput, ColorPickerLabel, ColorPickerPositioner, ColorPickerRoot, ColorPickerRootProvider, ColorPickerSwatch, ColorPickerSwatchGroup, ColorPickerSwatchIndicator, ColorPickerSwatchTrigger, ColorPickerTransparencyGrid, ColorPickerTrigger, ColorPickerValueSwatch, ColorPickerValueText, ColorPickerView, colorPickerAnatomy, parseColor, useColorPicker, useColorPickerContext };
|
|
@@ -0,0 +1,134 @@
|
|
|
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 "../../render-strategy-BNECKEQk.js";
|
|
5
|
+
import { s as UsePresenceProps } from "../../index-j2avJy7D.js";
|
|
6
|
+
import { _ as CollectionItem, b as createListCollection, i as UseListCollectionProps, o as useListCollection, y as ListCollection } from "../../index-GEfvAmRc.js";
|
|
7
|
+
import * as solid_js138 from "solid-js";
|
|
8
|
+
import { Accessor, JSX } from "solid-js";
|
|
9
|
+
import * as _sprawlify_primitives_anatomy5 from "@sprawlify/primitives/anatomy";
|
|
10
|
+
import * as combobox from "@sprawlify/primitives/machines/combobox";
|
|
11
|
+
import { FocusOutsideEvent, FocusOutsideEvent as ComboboxFocusOutsideEvent, HighlightChangeDetails, HighlightChangeDetails as ComboboxHighlightChangeDetails, InputValueChangeDetails, InputValueChangeDetails as ComboboxInputValueChangeDetails, InteractOutsideEvent, InteractOutsideEvent as ComboboxInteractOutsideEvent, ItemProps, ItemState, OpenChangeDetails, OpenChangeDetails as ComboboxOpenChangeDetails, PointerDownOutsideEvent, PointerDownOutsideEvent as ComboboxPointerDownOutsideEvent, SelectionDetails, SelectionDetails as ComboboxSelectionDetails, TriggerProps, ValueChangeDetails, ValueChangeDetails as ComboboxValueChangeDetails } from "@sprawlify/primitives/machines/combobox";
|
|
12
|
+
import { JSX as JSX$1 } from "solid-js/jsx-runtime";
|
|
13
|
+
|
|
14
|
+
//#region src/components/combobox/combobox-clear-trigger.d.ts
|
|
15
|
+
interface ComboboxClearTriggerBaseProps extends PolymorphicProps<'button'> {}
|
|
16
|
+
interface ComboboxClearTriggerProps extends HTMLProps<'button'>, ComboboxClearTriggerBaseProps {}
|
|
17
|
+
declare const ComboboxClearTrigger: (props: ComboboxClearTriggerProps) => solid_js138.JSX.Element;
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/components/combobox/combobox-content.d.ts
|
|
20
|
+
interface ComboboxContentBaseProps extends PolymorphicProps<'div'> {}
|
|
21
|
+
interface ComboboxContentProps extends HTMLProps<'div'>, ComboboxContentBaseProps {}
|
|
22
|
+
declare const ComboboxContent: (props: ComboboxContentProps) => solid_js138.JSX.Element;
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/components/combobox/combobox-empty.d.ts
|
|
25
|
+
interface ComboboxEmptyBaseProps extends PolymorphicProps<'div'> {}
|
|
26
|
+
interface ComboboxEmptyProps extends HTMLProps<'div'>, ComboboxEmptyBaseProps {}
|
|
27
|
+
declare const ComboboxEmpty: (props: ComboboxEmptyProps) => solid_js138.JSX.Element;
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/components/combobox/use-combobox.d.ts
|
|
30
|
+
interface UseComboboxProps<T extends CollectionItem> extends Optional<Omit<combobox.Props<T>, 'collection' | 'dir' | 'getRootNode'>, 'id'> {
|
|
31
|
+
/**
|
|
32
|
+
* The collection of items
|
|
33
|
+
*/
|
|
34
|
+
collection: ListCollection<T>;
|
|
35
|
+
}
|
|
36
|
+
interface UseComboboxReturn<T extends CollectionItem> extends Accessor<combobox.Api<PropTypes, T>> {}
|
|
37
|
+
declare const useCombobox: <T extends CollectionItem>(props: MaybeAccessor<UseComboboxProps<T>>) => UseComboboxReturn<T>;
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/components/combobox/use-combobox-context.d.ts
|
|
40
|
+
interface UseComboboxContext<T extends CollectionItem> extends UseComboboxReturn<T> {}
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/components/combobox/combobox-context.d.ts
|
|
43
|
+
interface ComboboxContextProps<T extends CollectionItem> {
|
|
44
|
+
children: (context: UseComboboxContext<T>) => JSX.Element;
|
|
45
|
+
}
|
|
46
|
+
declare const ComboboxContext: <T extends CollectionItem>(props: ComboboxContextProps<T>) => JSX.Element;
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/components/combobox/combobox-control.d.ts
|
|
49
|
+
interface ComboboxControlBaseProps extends PolymorphicProps<'div'> {}
|
|
50
|
+
interface ComboboxControlProps extends HTMLProps<'div'>, ComboboxControlBaseProps {}
|
|
51
|
+
declare const ComboboxControl: (props: ComboboxControlProps) => solid_js138.JSX.Element;
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/components/combobox/combobox-input.d.ts
|
|
54
|
+
interface ComboboxInputBaseProps extends PolymorphicProps<'input'> {}
|
|
55
|
+
interface ComboboxInputProps extends HTMLProps<'input'>, ComboboxInputBaseProps {}
|
|
56
|
+
declare const ComboboxInput: (props: ComboboxInputProps) => solid_js138.JSX.Element;
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/components/combobox/combobox-item.d.ts
|
|
59
|
+
interface ComboboxItemBaseProps extends ItemProps, PolymorphicProps<'div'> {}
|
|
60
|
+
interface ComboboxItemProps extends HTMLProps<'div'>, ComboboxItemBaseProps {}
|
|
61
|
+
declare const ComboboxItem: (props: ComboboxItemProps) => solid_js138.JSX.Element;
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region src/components/combobox/use-combobox-item-context.d.ts
|
|
64
|
+
interface UseComboboxItemContext extends Accessor<ItemState> {}
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/components/combobox/combobox-item-context.d.ts
|
|
67
|
+
interface ComboboxItemContextProps {
|
|
68
|
+
children: (context: UseComboboxItemContext) => JSX.Element;
|
|
69
|
+
}
|
|
70
|
+
declare const ComboboxItemContext: (props: ComboboxItemContextProps) => JSX.Element;
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/components/combobox/combobox-item-group.d.ts
|
|
73
|
+
interface ComboboxItemGroupBaseProps extends PolymorphicProps<'div'> {}
|
|
74
|
+
interface ComboboxItemGroupProps extends HTMLProps<'div'>, ComboboxItemGroupBaseProps {}
|
|
75
|
+
declare const ComboboxItemGroup: (props: ComboboxItemGroupProps) => solid_js138.JSX.Element;
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/components/combobox/combobox-item-group-label.d.ts
|
|
78
|
+
interface ComboboxItemGroupLabelBaseProps extends PolymorphicProps<'div'> {}
|
|
79
|
+
interface ComboboxItemGroupLabelProps extends HTMLProps<'div'>, ComboboxItemGroupLabelBaseProps {}
|
|
80
|
+
declare const ComboboxItemGroupLabel: (props: ComboboxItemGroupLabelProps) => solid_js138.JSX.Element;
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region src/components/combobox/combobox-item-indicator.d.ts
|
|
83
|
+
interface ComboboxItemIndicatorBaseProps extends PolymorphicProps<'div'> {}
|
|
84
|
+
interface ComboboxItemIndicatorProps extends HTMLProps<'div'>, ComboboxItemIndicatorBaseProps {}
|
|
85
|
+
declare const ComboboxItemIndicator: (props: ComboboxItemIndicatorProps) => solid_js138.JSX.Element;
|
|
86
|
+
//#endregion
|
|
87
|
+
//#region src/components/combobox/combobox-item-text.d.ts
|
|
88
|
+
interface ComboboxItemTextBaseProps extends PolymorphicProps<'span'> {}
|
|
89
|
+
interface ComboboxItemTextProps extends HTMLProps<'span'>, ComboboxItemTextBaseProps {}
|
|
90
|
+
declare const ComboboxItemText: (props: ComboboxItemTextProps) => solid_js138.JSX.Element;
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region src/components/combobox/combobox-label.d.ts
|
|
93
|
+
interface ComboboxLabelBaseProps extends PolymorphicProps<'label'> {}
|
|
94
|
+
interface ComboboxLabelProps extends HTMLProps<'label'>, ComboboxLabelBaseProps {}
|
|
95
|
+
declare const ComboboxLabel: (props: ComboboxLabelProps) => solid_js138.JSX.Element;
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region src/components/combobox/combobox-list.d.ts
|
|
98
|
+
interface ComboboxListBaseProps extends PolymorphicProps<'div'> {}
|
|
99
|
+
interface ComboboxListProps extends HTMLProps<'div'>, ComboboxListBaseProps {}
|
|
100
|
+
declare const ComboboxList: (props: ComboboxListProps) => solid_js138.JSX.Element;
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region src/components/combobox/combobox-positioner.d.ts
|
|
103
|
+
interface ComboboxPositionerBaseProps extends PolymorphicProps<'div'> {}
|
|
104
|
+
interface ComboboxPositionerProps extends HTMLProps<'div'>, ComboboxPositionerBaseProps {}
|
|
105
|
+
declare const ComboboxPositioner: (props: ComboboxPositionerProps) => solid_js138.JSX.Element;
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region src/components/combobox/combobox-root.d.ts
|
|
108
|
+
interface ComboboxRootBaseProps<T extends CollectionItem> extends UseComboboxProps<T>, UsePresenceProps, PolymorphicProps<'div'> {}
|
|
109
|
+
interface ComboboxRootProps<T extends CollectionItem> extends Omit<HTMLProps<'div'>, 'onSelect'>, ComboboxRootBaseProps<T> {}
|
|
110
|
+
declare const ComboboxRoot: <T extends CollectionItem>(props: ComboboxRootProps<T>) => JSX$1.Element;
|
|
111
|
+
type ComboboxRootComponentProps<T extends CollectionItem = CollectionItem, P = {}> = Assign<ComboboxRootProps<T>, P>;
|
|
112
|
+
type ComboboxRootComponent<P = {}> = <T extends CollectionItem>(props: ComboboxRootComponentProps<T, P>) => JSX$1.Element;
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region src/components/combobox/combobox-root-provider.d.ts
|
|
115
|
+
interface RootProviderProps<T extends CollectionItem> {
|
|
116
|
+
value: UseComboboxReturn<T>;
|
|
117
|
+
}
|
|
118
|
+
interface ComboboxRootProviderBaseProps<T extends CollectionItem> extends RootProviderProps<T>, UsePresenceProps, PolymorphicProps<'div'> {}
|
|
119
|
+
interface ComboboxRootProviderProps<T extends CollectionItem> extends HTMLProps<'div'>, ComboboxRootProviderBaseProps<T> {}
|
|
120
|
+
declare const ComboboxRootProvider: <T extends CollectionItem>(props: ComboboxRootProviderProps<T>) => JSX$1.Element;
|
|
121
|
+
type ComboboxRootProviderComponent<P = {}> = <T extends CollectionItem>(props: Assign<ComboboxRootProviderProps<T>, P>) => JSX$1.Element;
|
|
122
|
+
//#endregion
|
|
123
|
+
//#region src/components/combobox/combobox-trigger.d.ts
|
|
124
|
+
interface ComboboxTriggerBaseProps extends TriggerProps, PolymorphicProps<'button'> {}
|
|
125
|
+
interface ComboboxTriggerProps extends HTMLProps<'button'>, ComboboxTriggerBaseProps {}
|
|
126
|
+
declare const ComboboxTrigger: (props: ComboboxTriggerProps) => solid_js138.JSX.Element;
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region src/components/combobox/combobox-anatomy.d.ts
|
|
129
|
+
declare const comboboxAnatomy: _sprawlify_primitives_anatomy5.AnatomyInstance<"root" | "input" | "label" | "control" | "trigger" | "content" | "clearTrigger" | "positioner" | "item" | "itemGroup" | "itemIndicator" | "itemText" | "list" | "itemGroupLabel" | "empty">;
|
|
130
|
+
declare namespace combobox_d_exports {
|
|
131
|
+
export { ComboboxClearTrigger as ClearTrigger, ComboboxClearTriggerBaseProps as ClearTriggerBaseProps, ComboboxClearTriggerProps as ClearTriggerProps, CollectionItem, ComboboxContent as Content, ComboboxContentBaseProps as ContentBaseProps, ComboboxContentProps as ContentProps, ComboboxContext as Context, ComboboxContextProps as ContextProps, ComboboxControl as Control, ComboboxControlBaseProps as ControlBaseProps, ComboboxControlProps as ControlProps, ComboboxEmpty as Empty, ComboboxEmptyBaseProps as EmptyBaseProps, ComboboxEmptyProps as EmptyProps, FocusOutsideEvent, HighlightChangeDetails, ComboboxInput as Input, ComboboxInputBaseProps as InputBaseProps, ComboboxInputProps as InputProps, InputValueChangeDetails, InteractOutsideEvent, ComboboxItem as Item, ComboboxItemBaseProps as ItemBaseProps, ComboboxItemContext as ItemContext, ComboboxItemContextProps as ItemContextProps, ComboboxItemGroup as ItemGroup, ComboboxItemGroupBaseProps as ItemGroupBaseProps, ComboboxItemGroupLabel as ItemGroupLabel, ComboboxItemGroupLabelBaseProps as ItemGroupLabelBaseProps, ComboboxItemGroupLabelProps as ItemGroupLabelProps, ComboboxItemGroupProps as ItemGroupProps, ComboboxItemIndicator as ItemIndicator, ComboboxItemIndicatorBaseProps as ItemIndicatorBaseProps, ComboboxItemIndicatorProps as ItemIndicatorProps, ComboboxItemProps as ItemProps, ComboboxItemText as ItemText, ComboboxItemTextBaseProps as ItemTextBaseProps, ComboboxItemTextProps as ItemTextProps, ComboboxLabel as Label, ComboboxLabelBaseProps as LabelBaseProps, ComboboxLabelProps as LabelProps, ComboboxList as List, ComboboxListBaseProps as ListBaseProps, ComboboxListProps as ListProps, OpenChangeDetails, PointerDownOutsideEvent, ComboboxPositioner as Positioner, ComboboxPositionerBaseProps as PositionerBaseProps, ComboboxPositionerProps as PositionerProps, ComboboxRoot as Root, ComboboxRootBaseProps as RootBaseProps, ComboboxRootComponent as RootComponent, ComboboxRootComponentProps as RootComponentProps, ComboboxRootProps as RootProps, ComboboxRootProvider as RootProvider, ComboboxRootProviderBaseProps as RootProviderBaseProps, ComboboxRootProviderComponent as RootProviderComponent, ComboboxRootProviderProps as RootProviderProps, SelectionDetails, ComboboxTrigger as Trigger, ComboboxTriggerBaseProps as TriggerBaseProps, ComboboxTriggerProps as TriggerProps, ValueChangeDetails };
|
|
132
|
+
}
|
|
133
|
+
//#endregion
|
|
134
|
+
export { type CollectionItem, combobox_d_exports as Combobox, ComboboxClearTrigger, type ComboboxClearTriggerBaseProps, type ComboboxClearTriggerProps, ComboboxContent, type ComboboxContentBaseProps, type ComboboxContentProps, ComboboxContext, type ComboboxContextProps, ComboboxControl, type ComboboxControlBaseProps, type ComboboxControlProps, ComboboxEmpty, type ComboboxEmptyBaseProps, type ComboboxEmptyProps, type ComboboxFocusOutsideEvent, type ComboboxHighlightChangeDetails, ComboboxInput, type ComboboxInputBaseProps, type ComboboxInputProps, type ComboboxInputValueChangeDetails, type ComboboxInteractOutsideEvent, ComboboxItem, type ComboboxItemBaseProps, ComboboxItemContext, type ComboboxItemContextProps, ComboboxItemGroup, type ComboboxItemGroupBaseProps, ComboboxItemGroupLabel, type ComboboxItemGroupLabelBaseProps, type ComboboxItemGroupLabelProps, type ComboboxItemGroupProps, ComboboxItemIndicator, type ComboboxItemIndicatorBaseProps, type ComboboxItemIndicatorProps, type ComboboxItemProps, ComboboxItemText, type ComboboxItemTextBaseProps, type ComboboxItemTextProps, ComboboxLabel, type ComboboxLabelBaseProps, type ComboboxLabelProps, ComboboxList, type ComboboxListBaseProps, type ComboboxListProps, type ComboboxOpenChangeDetails, type ComboboxPointerDownOutsideEvent, ComboboxPositioner, type ComboboxPositionerBaseProps, type ComboboxPositionerProps, ComboboxRoot, type ComboboxRootBaseProps, type ComboboxRootComponent, type ComboboxRootComponentProps, type ComboboxRootProps, ComboboxRootProvider, type ComboboxRootProviderBaseProps, type ComboboxRootProviderComponent, type ComboboxRootProviderProps, type ComboboxSelectionDetails, ComboboxTrigger, type ComboboxTriggerBaseProps, type ComboboxTriggerProps, type ComboboxValueChangeDetails, type ListCollection, type UseComboboxContext, type UseComboboxItemContext, type UseComboboxProps, type UseComboboxReturn, type UseListCollectionProps, comboboxAnatomy, createListCollection, useCombobox, useComboboxContext, useComboboxItemContext, useListCollection };
|