@moduix/solid 1.0.0 → 1.1.1
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/components/accordion/Accordion.js +19 -13
- package/dist/components/accordion/Accordion.jsx +7 -7
- package/dist/components/alert/Alert.js +19 -13
- package/dist/components/alert/Alert.jsx +6 -6
- package/dist/components/angle-slider/AngleSlider.d.ts +2 -6
- package/dist/components/angle-slider/AngleSlider.js +21 -16
- package/dist/components/angle-slider/AngleSlider.jsx +9 -10
- package/dist/components/avatar/Avatar.js +10 -7
- package/dist/components/avatar/Avatar.jsx +4 -4
- package/dist/components/button/Button.js +0 -5
- package/dist/components/button/Button.jsx +1 -3
- package/dist/components/button/Button_module.css +1 -3
- package/dist/components/card/Card.js +45 -36
- package/dist/components/card/Card.jsx +9 -9
- package/dist/components/card/Card_module.css +1 -1
- package/dist/components/carousel/Carousel.d.ts +1 -1
- package/dist/components/carousel/Carousel.js +32 -23
- package/dist/components/carousel/Carousel.jsx +12 -13
- package/dist/components/checkbox/Checkbox.js +16 -14
- package/dist/components/checkbox/Checkbox.jsx +6 -6
- package/dist/components/clipboard/Clipboard.js +28 -17
- package/dist/components/clipboard/Clipboard.jsx +12 -11
- package/dist/components/collapsible/Collapsible.js +16 -11
- package/dist/components/collapsible/Collapsible.jsx +6 -6
- package/dist/components/color-picker/ColorPicker.js +69 -48
- package/dist/components/color-picker/ColorPicker.jsx +28 -28
- package/dist/components/combobox/Combobox.js +44 -31
- package/dist/components/combobox/Combobox.jsx +18 -18
- package/dist/components/command-palette/CommandPalette.js +72 -53
- package/dist/components/command-palette/CommandPalette.jsx +29 -32
- package/dist/components/container/Container_module.css +1 -1
- package/dist/components/date-input/DateInput.js +18 -12
- package/dist/components/date-input/DateInput.jsx +7 -7
- package/dist/components/date-picker/DatePicker.js +73 -51
- package/dist/components/date-picker/DatePicker.jsx +29 -29
- package/dist/components/dialog/Dialog.js +30 -20
- package/dist/components/dialog/Dialog.jsx +10 -10
- package/dist/components/drawer/Drawer.js +45 -30
- package/dist/components/drawer/Drawer.jsx +15 -15
- package/dist/components/editable/Editable.js +24 -17
- package/dist/components/editable/Editable.jsx +10 -10
- package/dist/components/file-upload/FileUpload.js +39 -28
- package/dist/components/file-upload/FileUpload.jsx +17 -17
- package/dist/components/floating-panel/FloatingPanel.js +35 -23
- package/dist/components/floating-panel/FloatingPanel.jsx +12 -12
- package/dist/components/hover-card/HoverCard.js +16 -11
- package/dist/components/hover-card/HoverCard.jsx +6 -6
- package/dist/components/image-cropper/ImageCropper.js +21 -14
- package/dist/components/image-cropper/ImageCropper.jsx +7 -7
- package/dist/components/kbd/Kbd.js +8 -8
- package/dist/components/kbd/Kbd.jsx +2 -2
- package/dist/components/lightbox/Lightbox.d.ts +1 -0
- package/dist/components/lightbox/Lightbox.js +41 -27
- package/dist/components/lightbox/Lightbox.jsx +13 -12
- package/dist/components/listbox/Listbox.js +48 -32
- package/dist/components/listbox/Listbox.jsx +17 -17
- package/dist/components/marquee/Marquee.js +18 -12
- package/dist/components/marquee/Marquee.jsx +6 -6
- package/dist/components/menu/Menu.js +64 -43
- package/dist/components/menu/Menu.jsx +24 -24
- package/dist/components/navigation-menu/NavigationMenu.js +36 -24
- package/dist/components/navigation-menu/NavigationMenu.jsx +12 -12
- package/dist/components/number-input/NumberInput.js +19 -14
- package/dist/components/number-input/NumberInput.jsx +9 -9
- package/dist/components/pagination/Pagination.js +10 -9
- package/dist/components/pagination/Pagination.jsx +8 -8
- package/dist/components/password-input/PasswordInput.js +16 -11
- package/dist/components/password-input/PasswordInput.jsx +6 -6
- package/dist/components/pin-input/PinInput.js +15 -10
- package/dist/components/pin-input/PinInput.jsx +6 -6
- package/dist/components/popover/Popover.js +37 -25
- package/dist/components/popover/Popover.jsx +13 -13
- package/dist/components/progress-circular/ProgressCircular.js +18 -13
- package/dist/components/progress-circular/ProgressCircular.jsx +8 -8
- package/dist/components/progress-linear/ProgressLinear.js +21 -14
- package/dist/components/progress-linear/ProgressLinear.jsx +7 -7
- package/dist/components/qr-code/QrCode.js +8 -7
- package/dist/components/qr-code/QrCode.jsx +6 -6
- package/dist/components/rating-group/RatingGroup.js +15 -10
- package/dist/components/rating-group/RatingGroup.jsx +6 -6
- package/dist/components/segment-group/SegmentGroup.js +17 -12
- package/dist/components/segment-group/SegmentGroup.jsx +7 -7
- package/dist/components/select/Select.js +50 -35
- package/dist/components/select/Select.jsx +20 -20
- package/dist/components/sidebar/Sidebar.js +73 -43
- package/dist/components/sidebar/Sidebar.jsx +35 -27
- package/dist/components/signature-pad/SignaturePad.js +16 -12
- package/dist/components/signature-pad/SignaturePad.jsx +8 -8
- package/dist/components/slider/Slider.js +29 -20
- package/dist/components/slider/Slider.jsx +11 -11
- package/dist/components/split-button/SplitButton.d.ts +4 -3
- package/dist/components/split-button/SplitButton.js +21 -9
- package/dist/components/split-button/SplitButton.jsx +14 -7
- package/dist/components/splitter/Splitter.js +13 -9
- package/dist/components/splitter/Splitter.jsx +5 -5
- package/dist/components/steps/Steps.js +34 -23
- package/dist/components/steps/Steps.jsx +12 -12
- package/dist/components/swap/Swap.js +9 -6
- package/dist/components/swap/Swap.jsx +3 -3
- package/dist/components/switch/Switch.js +9 -7
- package/dist/components/switch/Switch.jsx +5 -5
- package/dist/components/tabs/Tabs.js +18 -12
- package/dist/components/tabs/Tabs.jsx +6 -6
- package/dist/components/tags-input/TagsInput.js +28 -20
- package/dist/components/tags-input/TagsInput.jsx +12 -12
- package/dist/components/timer/Timer.js +21 -14
- package/dist/components/timer/Timer.jsx +7 -7
- package/dist/components/toast/Toast.js +11 -9
- package/dist/components/toast/Toast.jsx +7 -7
- package/dist/components/toc/Toc.js +31 -20
- package/dist/components/toc/Toc.jsx +10 -10
- package/dist/components/tooltip/Tooltip.js +13 -9
- package/dist/components/tooltip/Tooltip.jsx +5 -5
- package/dist/components/tour/Tour.js +37 -25
- package/dist/components/tour/Tour.jsx +13 -13
- package/dist/components/tree-view/TreeView.js +39 -28
- package/dist/components/tree-view/TreeView.jsx +17 -17
- package/dist/styles/animations.css +8 -8
- package/package.json +9 -10
|
@@ -29,7 +29,6 @@ const Combobox_ComboboxRoot = function(props) {
|
|
|
29
29
|
get asChild () {
|
|
30
30
|
return local.asChild;
|
|
31
31
|
},
|
|
32
|
-
"data-slot": "combobox-root",
|
|
33
32
|
get ["class"] () {
|
|
34
33
|
return clsx(Combobox_module.root, local.class);
|
|
35
34
|
},
|
|
@@ -40,6 +39,7 @@ const Combobox_ComboboxRoot = function(props) {
|
|
|
40
39
|
return local.unmountOnExit ?? true;
|
|
41
40
|
}
|
|
42
41
|
}, others, {
|
|
42
|
+
"data-slot": "combobox-root",
|
|
43
43
|
get children () {
|
|
44
44
|
return local.children;
|
|
45
45
|
}
|
|
@@ -69,7 +69,6 @@ const Combobox_ComboboxRootProvider = function(props) {
|
|
|
69
69
|
get asChild () {
|
|
70
70
|
return local.asChild;
|
|
71
71
|
},
|
|
72
|
-
"data-slot": "combobox-root-provider",
|
|
73
72
|
get ["class"] () {
|
|
74
73
|
return clsx(Combobox_module.root, local.class);
|
|
75
74
|
},
|
|
@@ -80,6 +79,7 @@ const Combobox_ComboboxRootProvider = function(props) {
|
|
|
80
79
|
return local.unmountOnExit ?? true;
|
|
81
80
|
}
|
|
82
81
|
}, others, {
|
|
82
|
+
"data-slot": "combobox-root-provider",
|
|
83
83
|
get children () {
|
|
84
84
|
return local.children;
|
|
85
85
|
}
|
|
@@ -92,22 +92,24 @@ function ComboboxLabel(props) {
|
|
|
92
92
|
'class'
|
|
93
93
|
]);
|
|
94
94
|
return createComponent(Combobox.Label, mergeProps({
|
|
95
|
-
"data-slot": "combobox-label",
|
|
96
95
|
get ["class"] () {
|
|
97
96
|
return clsx(Combobox_module.label, local.class);
|
|
98
97
|
}
|
|
99
|
-
}, others
|
|
98
|
+
}, others, {
|
|
99
|
+
"data-slot": "combobox-label"
|
|
100
|
+
}));
|
|
100
101
|
}
|
|
101
102
|
function ComboboxControl(props) {
|
|
102
103
|
const [local, others] = splitProps(props, [
|
|
103
104
|
'class'
|
|
104
105
|
]);
|
|
105
106
|
return createComponent(Combobox.Control, mergeProps({
|
|
106
|
-
"data-slot": "combobox-control",
|
|
107
107
|
get ["class"] () {
|
|
108
108
|
return clsx(Combobox_module.control, local.class);
|
|
109
109
|
}
|
|
110
|
-
}, others
|
|
110
|
+
}, others, {
|
|
111
|
+
"data-slot": "combobox-control"
|
|
112
|
+
}));
|
|
111
113
|
}
|
|
112
114
|
function ComboboxInput(props) {
|
|
113
115
|
const [local, others] = splitProps(props, [
|
|
@@ -118,11 +120,12 @@ function ComboboxInput(props) {
|
|
|
118
120
|
get asChild () {
|
|
119
121
|
return local.asChild;
|
|
120
122
|
},
|
|
121
|
-
"data-slot": "combobox-input",
|
|
122
123
|
get ["class"] () {
|
|
123
124
|
return clsx(!local.asChild && Combobox_module.input, local.class);
|
|
124
125
|
}
|
|
125
|
-
}, others
|
|
126
|
+
}, others, {
|
|
127
|
+
"data-slot": "combobox-input"
|
|
128
|
+
}));
|
|
126
129
|
}
|
|
127
130
|
function ComboboxClearTrigger(props) {
|
|
128
131
|
const [local, others] = splitProps(props, [
|
|
@@ -144,9 +147,9 @@ function ComboboxClearTrigger(props) {
|
|
|
144
147
|
get ["aria-labelledby"] () {
|
|
145
148
|
return local['aria-labelledby'];
|
|
146
149
|
},
|
|
147
|
-
"data-slot": "combobox-clear-trigger",
|
|
148
150
|
class: triggerClass
|
|
149
151
|
}, others, {
|
|
152
|
+
"data-slot": "combobox-clear-trigger",
|
|
150
153
|
get children () {
|
|
151
154
|
return local.children;
|
|
152
155
|
}
|
|
@@ -166,9 +169,10 @@ function ComboboxClearTrigger(props) {
|
|
|
166
169
|
}
|
|
167
170
|
}));
|
|
168
171
|
},
|
|
169
|
-
"data-slot": "combobox-clear-trigger",
|
|
170
172
|
class: triggerClass
|
|
171
|
-
}, others
|
|
173
|
+
}, others, {
|
|
174
|
+
"data-slot": "combobox-clear-trigger"
|
|
175
|
+
}));
|
|
172
176
|
}
|
|
173
177
|
function ComboboxTrigger(props) {
|
|
174
178
|
const [local, others] = splitProps(props, [
|
|
@@ -177,11 +181,11 @@ function ComboboxTrigger(props) {
|
|
|
177
181
|
]);
|
|
178
182
|
const resolvedChildren = children(()=>local.children);
|
|
179
183
|
return createComponent(Combobox.Trigger, mergeProps({
|
|
180
|
-
"data-slot": "combobox-trigger",
|
|
181
184
|
get ["class"] () {
|
|
182
185
|
return clsx(Combobox_module.trigger, local.class);
|
|
183
186
|
}
|
|
184
187
|
}, others, {
|
|
188
|
+
"data-slot": "combobox-trigger",
|
|
185
189
|
get children () {
|
|
186
190
|
return resolvedChildren() ?? createComponent(ChevronUpDownIcon, {});
|
|
187
191
|
}
|
|
@@ -194,11 +198,12 @@ function ComboboxPositioner(props) {
|
|
|
194
198
|
return createComponent(OverlayPortal, {
|
|
195
199
|
get children () {
|
|
196
200
|
return createComponent(Combobox.Positioner, mergeProps({
|
|
197
|
-
"data-slot": "combobox-positioner",
|
|
198
201
|
get ["class"] () {
|
|
199
202
|
return clsx(Combobox_module.positioner, local.class);
|
|
200
203
|
}
|
|
201
|
-
}, others
|
|
204
|
+
}, others, {
|
|
205
|
+
"data-slot": "combobox-positioner"
|
|
206
|
+
}));
|
|
202
207
|
}
|
|
203
208
|
});
|
|
204
209
|
}
|
|
@@ -207,88 +212,96 @@ function ComboboxContent(props) {
|
|
|
207
212
|
'class'
|
|
208
213
|
]);
|
|
209
214
|
return createComponent(Combobox.Content, mergeProps({
|
|
210
|
-
"data-slot": "combobox-content",
|
|
211
215
|
get ["class"] () {
|
|
212
216
|
return clsx(Combobox_module.content, local.class);
|
|
213
217
|
}
|
|
214
|
-
}, others
|
|
218
|
+
}, others, {
|
|
219
|
+
"data-slot": "combobox-content"
|
|
220
|
+
}));
|
|
215
221
|
}
|
|
216
222
|
function ComboboxEmpty(props) {
|
|
217
223
|
const [local, others] = splitProps(props, [
|
|
218
224
|
'class'
|
|
219
225
|
]);
|
|
220
226
|
return createComponent(Combobox.Empty, mergeProps({
|
|
221
|
-
"data-slot": "combobox-empty",
|
|
222
227
|
get ["class"] () {
|
|
223
228
|
return clsx(Combobox_module.empty, local.class);
|
|
224
229
|
}
|
|
225
|
-
}, others
|
|
230
|
+
}, others, {
|
|
231
|
+
"data-slot": "combobox-empty"
|
|
232
|
+
}));
|
|
226
233
|
}
|
|
227
234
|
function ComboboxStatus(props) {
|
|
228
235
|
const [local, others] = splitProps(props, [
|
|
229
236
|
'class'
|
|
230
237
|
]);
|
|
231
238
|
return createComponent(ark.div, mergeProps({
|
|
232
|
-
"data-slot": "combobox-status",
|
|
233
239
|
get ["class"] () {
|
|
234
240
|
return clsx(Combobox_module.status, local.class);
|
|
235
241
|
}
|
|
236
|
-
}, others
|
|
242
|
+
}, others, {
|
|
243
|
+
"data-slot": "combobox-status"
|
|
244
|
+
}));
|
|
237
245
|
}
|
|
238
246
|
function ComboboxList(props) {
|
|
239
247
|
const [local, others] = splitProps(props, [
|
|
240
248
|
'class'
|
|
241
249
|
]);
|
|
242
250
|
return createComponent(Combobox.List, mergeProps({
|
|
243
|
-
"data-slot": "combobox-list",
|
|
244
251
|
get ["class"] () {
|
|
245
252
|
return clsx(Combobox_module.list, local.class);
|
|
246
253
|
}
|
|
247
|
-
}, others
|
|
254
|
+
}, others, {
|
|
255
|
+
"data-slot": "combobox-list"
|
|
256
|
+
}));
|
|
248
257
|
}
|
|
249
258
|
function ComboboxItemGroup(props) {
|
|
250
259
|
const [local, others] = splitProps(props, [
|
|
251
260
|
'class'
|
|
252
261
|
]);
|
|
253
262
|
return createComponent(Combobox.ItemGroup, mergeProps({
|
|
254
|
-
"data-slot": "combobox-item-group",
|
|
255
263
|
get ["class"] () {
|
|
256
264
|
return clsx(Combobox_module.itemGroup, local.class);
|
|
257
265
|
}
|
|
258
|
-
}, others
|
|
266
|
+
}, others, {
|
|
267
|
+
"data-slot": "combobox-item-group"
|
|
268
|
+
}));
|
|
259
269
|
}
|
|
260
270
|
function ComboboxItemGroupLabel(props) {
|
|
261
271
|
const [local, others] = splitProps(props, [
|
|
262
272
|
'class'
|
|
263
273
|
]);
|
|
264
274
|
return createComponent(Combobox.ItemGroupLabel, mergeProps({
|
|
265
|
-
"data-slot": "combobox-item-group-label",
|
|
266
275
|
get ["class"] () {
|
|
267
276
|
return clsx(Combobox_module.itemGroupLabel, local.class);
|
|
268
277
|
}
|
|
269
|
-
}, others
|
|
278
|
+
}, others, {
|
|
279
|
+
"data-slot": "combobox-item-group-label"
|
|
280
|
+
}));
|
|
270
281
|
}
|
|
271
282
|
function ComboboxItem(props) {
|
|
272
283
|
const [local, others] = splitProps(props, [
|
|
273
284
|
'class'
|
|
274
285
|
]);
|
|
275
286
|
return createComponent(Combobox.Item, mergeProps({
|
|
276
|
-
"data-slot": "combobox-item",
|
|
277
287
|
get ["class"] () {
|
|
278
288
|
return clsx(Combobox_module.item, local.class);
|
|
279
289
|
}
|
|
280
|
-
}, others
|
|
290
|
+
}, others, {
|
|
291
|
+
"data-slot": "combobox-item"
|
|
292
|
+
}));
|
|
281
293
|
}
|
|
282
294
|
function ComboboxItemText(props) {
|
|
283
295
|
const [local, others] = splitProps(props, [
|
|
284
296
|
'class'
|
|
285
297
|
]);
|
|
286
298
|
return createComponent(Combobox.ItemText, mergeProps({
|
|
287
|
-
"data-slot": "combobox-item-text",
|
|
288
299
|
get ["class"] () {
|
|
289
300
|
return clsx(Combobox_module.itemText, local.class);
|
|
290
301
|
}
|
|
291
|
-
}, others
|
|
302
|
+
}, others, {
|
|
303
|
+
"data-slot": "combobox-item-text"
|
|
304
|
+
}));
|
|
292
305
|
}
|
|
293
306
|
function ComboboxItemIndicator(props) {
|
|
294
307
|
const [local, others] = splitProps(props, [
|
|
@@ -297,11 +310,11 @@ function ComboboxItemIndicator(props) {
|
|
|
297
310
|
]);
|
|
298
311
|
const resolvedChildren = children(()=>local.children);
|
|
299
312
|
return createComponent(Combobox.ItemIndicator, mergeProps({
|
|
300
|
-
"data-slot": "combobox-item-indicator",
|
|
301
313
|
get ["class"] () {
|
|
302
314
|
return clsx(Combobox_module.itemIndicator, local.class);
|
|
303
315
|
}
|
|
304
316
|
}, others, {
|
|
317
|
+
"data-slot": "combobox-item-indicator",
|
|
305
318
|
get children () {
|
|
306
319
|
return resolvedChildren() ?? createComponent(CheckIcon, {});
|
|
307
320
|
}
|
|
@@ -17,7 +17,7 @@ const Combobox_ComboboxRoot = function(props) {
|
|
|
17
17
|
'unmountOnExit'
|
|
18
18
|
]);
|
|
19
19
|
return <OverlayPortalProvider portalled={local.portalled} portalRef={local.portalRef}>
|
|
20
|
-
<Combobox.Root asChild={local.asChild}
|
|
20
|
+
<Combobox.Root asChild={local.asChild} class={clsx(Combobox_module.root, local.class)} lazyMount={local.lazyMount ?? true} unmountOnExit={local.unmountOnExit ?? true} {...others} data-slot="combobox-root">
|
|
21
21
|
{local.children}
|
|
22
22
|
</Combobox.Root>
|
|
23
23
|
</OverlayPortalProvider>;
|
|
@@ -33,7 +33,7 @@ const Combobox_ComboboxRootProvider = function(props) {
|
|
|
33
33
|
'unmountOnExit'
|
|
34
34
|
]);
|
|
35
35
|
return <OverlayPortalProvider portalled={local.portalled} portalRef={local.portalRef}>
|
|
36
|
-
<Combobox.RootProvider asChild={local.asChild}
|
|
36
|
+
<Combobox.RootProvider asChild={local.asChild} class={clsx(Combobox_module.root, local.class)} lazyMount={local.lazyMount ?? true} unmountOnExit={local.unmountOnExit ?? true} {...others} data-slot="combobox-root-provider">
|
|
37
37
|
{local.children}
|
|
38
38
|
</Combobox.RootProvider>
|
|
39
39
|
</OverlayPortalProvider>;
|
|
@@ -42,20 +42,20 @@ function ComboboxLabel(props) {
|
|
|
42
42
|
const [local, others] = splitProps(props, [
|
|
43
43
|
'class'
|
|
44
44
|
]);
|
|
45
|
-
return <Combobox.Label
|
|
45
|
+
return <Combobox.Label class={clsx(Combobox_module.label, local.class)} {...others} data-slot="combobox-label"/>;
|
|
46
46
|
}
|
|
47
47
|
function ComboboxControl(props) {
|
|
48
48
|
const [local, others] = splitProps(props, [
|
|
49
49
|
'class'
|
|
50
50
|
]);
|
|
51
|
-
return <Combobox.Control
|
|
51
|
+
return <Combobox.Control class={clsx(Combobox_module.control, local.class)} {...others} data-slot="combobox-control"/>;
|
|
52
52
|
}
|
|
53
53
|
function ComboboxInput(props) {
|
|
54
54
|
const [local, others] = splitProps(props, [
|
|
55
55
|
'asChild',
|
|
56
56
|
'class'
|
|
57
57
|
]);
|
|
58
|
-
return <Combobox.Input asChild={local.asChild}
|
|
58
|
+
return <Combobox.Input asChild={local.asChild} class={clsx(!local.asChild && Combobox_module.input, local.class)} {...others} data-slot="combobox-input"/>;
|
|
59
59
|
}
|
|
60
60
|
function ComboboxClearTrigger(props) {
|
|
61
61
|
const [local, others] = splitProps(props, [
|
|
@@ -67,7 +67,7 @@ function ComboboxClearTrigger(props) {
|
|
|
67
67
|
]);
|
|
68
68
|
const resolvedChildren = children(()=>local.children);
|
|
69
69
|
const triggerClass = clsx(Combobox_module.clearTrigger, local.class);
|
|
70
|
-
if (local.asChild) return <Combobox.ClearTrigger asChild={local.asChild} aria-label={local['aria-label']} aria-labelledby={local['aria-labelledby']} data-slot="combobox-clear-trigger"
|
|
70
|
+
if (local.asChild) return <Combobox.ClearTrigger asChild={local.asChild} aria-label={local['aria-label']} aria-labelledby={local['aria-labelledby']} class={triggerClass} {...others} data-slot="combobox-clear-trigger">
|
|
71
71
|
{local.children}
|
|
72
72
|
</Combobox.ClearTrigger>;
|
|
73
73
|
return <Combobox.ClearTrigger asChild={(triggerProps)=>{
|
|
@@ -75,7 +75,7 @@ function ComboboxClearTrigger(props) {
|
|
|
75
75
|
return <CloseButton.Root {...resolvedProps} aria-label={local['aria-label'] ?? (null == local['aria-labelledby'] ? 'Clear selection' : void 0)} aria-labelledby={local['aria-labelledby']}>
|
|
76
76
|
{resolvedChildren()}
|
|
77
77
|
</CloseButton.Root>;
|
|
78
|
-
}} data-slot="combobox-clear-trigger"
|
|
78
|
+
}} class={triggerClass} {...others} data-slot="combobox-clear-trigger"/>;
|
|
79
79
|
}
|
|
80
80
|
function ComboboxTrigger(props) {
|
|
81
81
|
const [local, others] = splitProps(props, [
|
|
@@ -83,7 +83,7 @@ function ComboboxTrigger(props) {
|
|
|
83
83
|
'class'
|
|
84
84
|
]);
|
|
85
85
|
const resolvedChildren = children(()=>local.children);
|
|
86
|
-
return <Combobox.Trigger
|
|
86
|
+
return <Combobox.Trigger class={clsx(Combobox_module.trigger, local.class)} {...others} data-slot="combobox-trigger">
|
|
87
87
|
{resolvedChildren() ?? <ChevronUpDownIcon/>}
|
|
88
88
|
</Combobox.Trigger>;
|
|
89
89
|
}
|
|
@@ -92,56 +92,56 @@ function ComboboxPositioner(props) {
|
|
|
92
92
|
'class'
|
|
93
93
|
]);
|
|
94
94
|
return <OverlayPortal>
|
|
95
|
-
<Combobox.Positioner
|
|
95
|
+
<Combobox.Positioner class={clsx(Combobox_module.positioner, local.class)} {...others} data-slot="combobox-positioner"/>
|
|
96
96
|
</OverlayPortal>;
|
|
97
97
|
}
|
|
98
98
|
function ComboboxContent(props) {
|
|
99
99
|
const [local, others] = splitProps(props, [
|
|
100
100
|
'class'
|
|
101
101
|
]);
|
|
102
|
-
return <Combobox.Content
|
|
102
|
+
return <Combobox.Content class={clsx(Combobox_module.content, local.class)} {...others} data-slot="combobox-content"/>;
|
|
103
103
|
}
|
|
104
104
|
function ComboboxEmpty(props) {
|
|
105
105
|
const [local, others] = splitProps(props, [
|
|
106
106
|
'class'
|
|
107
107
|
]);
|
|
108
|
-
return <Combobox.Empty
|
|
108
|
+
return <Combobox.Empty class={clsx(Combobox_module.empty, local.class)} {...others} data-slot="combobox-empty"/>;
|
|
109
109
|
}
|
|
110
110
|
function ComboboxStatus(props) {
|
|
111
111
|
const [local, others] = splitProps(props, [
|
|
112
112
|
'class'
|
|
113
113
|
]);
|
|
114
|
-
return <ark.div
|
|
114
|
+
return <ark.div class={clsx(Combobox_module.status, local.class)} {...others} data-slot="combobox-status"/>;
|
|
115
115
|
}
|
|
116
116
|
function ComboboxList(props) {
|
|
117
117
|
const [local, others] = splitProps(props, [
|
|
118
118
|
'class'
|
|
119
119
|
]);
|
|
120
|
-
return <Combobox.List
|
|
120
|
+
return <Combobox.List class={clsx(Combobox_module.list, local.class)} {...others} data-slot="combobox-list"/>;
|
|
121
121
|
}
|
|
122
122
|
function ComboboxItemGroup(props) {
|
|
123
123
|
const [local, others] = splitProps(props, [
|
|
124
124
|
'class'
|
|
125
125
|
]);
|
|
126
|
-
return <Combobox.ItemGroup
|
|
126
|
+
return <Combobox.ItemGroup class={clsx(Combobox_module.itemGroup, local.class)} {...others} data-slot="combobox-item-group"/>;
|
|
127
127
|
}
|
|
128
128
|
function ComboboxItemGroupLabel(props) {
|
|
129
129
|
const [local, others] = splitProps(props, [
|
|
130
130
|
'class'
|
|
131
131
|
]);
|
|
132
|
-
return <Combobox.ItemGroupLabel
|
|
132
|
+
return <Combobox.ItemGroupLabel class={clsx(Combobox_module.itemGroupLabel, local.class)} {...others} data-slot="combobox-item-group-label"/>;
|
|
133
133
|
}
|
|
134
134
|
function ComboboxItem(props) {
|
|
135
135
|
const [local, others] = splitProps(props, [
|
|
136
136
|
'class'
|
|
137
137
|
]);
|
|
138
|
-
return <Combobox.Item
|
|
138
|
+
return <Combobox.Item class={clsx(Combobox_module.item, local.class)} {...others} data-slot="combobox-item"/>;
|
|
139
139
|
}
|
|
140
140
|
function ComboboxItemText(props) {
|
|
141
141
|
const [local, others] = splitProps(props, [
|
|
142
142
|
'class'
|
|
143
143
|
]);
|
|
144
|
-
return <Combobox.ItemText
|
|
144
|
+
return <Combobox.ItemText class={clsx(Combobox_module.itemText, local.class)} {...others} data-slot="combobox-item-text"/>;
|
|
145
145
|
}
|
|
146
146
|
function ComboboxItemIndicator(props) {
|
|
147
147
|
const [local, others] = splitProps(props, [
|
|
@@ -149,7 +149,7 @@ function ComboboxItemIndicator(props) {
|
|
|
149
149
|
'class'
|
|
150
150
|
]);
|
|
151
151
|
const resolvedChildren = children(()=>local.children);
|
|
152
|
-
return <Combobox.ItemIndicator
|
|
152
|
+
return <Combobox.ItemIndicator class={clsx(Combobox_module.itemIndicator, local.class)} {...others} data-slot="combobox-item-indicator">
|
|
153
153
|
{resolvedChildren() ?? <CheckIcon/>}
|
|
154
154
|
</Combobox.ItemIndicator>;
|
|
155
155
|
}
|