@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
|
@@ -3,7 +3,7 @@ import { DateInput, useDateInput, useDateInputContext } from "@ark-ui/solid/date
|
|
|
3
3
|
import { clsx } from "clsx";
|
|
4
4
|
import { splitProps } from "solid-js";
|
|
5
5
|
import DateInput_module from "./DateInput.module.js";
|
|
6
|
-
var _tmpl$ = /*#__PURE__*/ template("<span
|
|
6
|
+
var _tmpl$ = /*#__PURE__*/ template("<span>");
|
|
7
7
|
function DateInputRoot(props) {
|
|
8
8
|
const [local, others] = splitProps(props, [
|
|
9
9
|
'asChild',
|
|
@@ -14,11 +14,11 @@ function DateInputRoot(props) {
|
|
|
14
14
|
get asChild () {
|
|
15
15
|
return local.asChild;
|
|
16
16
|
},
|
|
17
|
-
"data-slot": "date-input-root",
|
|
18
17
|
get ["class"] () {
|
|
19
18
|
return clsx(DateInput_module.root, local.class);
|
|
20
19
|
}
|
|
21
20
|
}, others, {
|
|
21
|
+
"data-slot": "date-input-root",
|
|
22
22
|
get children () {
|
|
23
23
|
return local.children;
|
|
24
24
|
}
|
|
@@ -34,11 +34,11 @@ function DateInputRootProvider(props) {
|
|
|
34
34
|
get asChild () {
|
|
35
35
|
return local.asChild;
|
|
36
36
|
},
|
|
37
|
-
"data-slot": "date-input-root-provider",
|
|
38
37
|
get ["class"] () {
|
|
39
38
|
return clsx(DateInput_module.root, local.class);
|
|
40
39
|
}
|
|
41
40
|
}, others, {
|
|
41
|
+
"data-slot": "date-input-root-provider",
|
|
42
42
|
get children () {
|
|
43
43
|
return local.children;
|
|
44
44
|
}
|
|
@@ -49,44 +49,48 @@ function DateInputLabel(props) {
|
|
|
49
49
|
'class'
|
|
50
50
|
]);
|
|
51
51
|
return createComponent(DateInput.Label, mergeProps({
|
|
52
|
-
"data-slot": "date-input-label",
|
|
53
52
|
get ["class"] () {
|
|
54
53
|
return clsx(DateInput_module.label, local.class);
|
|
55
54
|
}
|
|
56
|
-
}, others
|
|
55
|
+
}, others, {
|
|
56
|
+
"data-slot": "date-input-label"
|
|
57
|
+
}));
|
|
57
58
|
}
|
|
58
59
|
function DateInputControl(props) {
|
|
59
60
|
const [local, others] = splitProps(props, [
|
|
60
61
|
'class'
|
|
61
62
|
]);
|
|
62
63
|
return createComponent(DateInput.Control, mergeProps({
|
|
63
|
-
"data-slot": "date-input-control",
|
|
64
64
|
get ["class"] () {
|
|
65
65
|
return clsx(DateInput_module.control, local.class);
|
|
66
66
|
}
|
|
67
|
-
}, others
|
|
67
|
+
}, others, {
|
|
68
|
+
"data-slot": "date-input-control"
|
|
69
|
+
}));
|
|
68
70
|
}
|
|
69
71
|
function DateInputSegmentGroup(props) {
|
|
70
72
|
const [local, others] = splitProps(props, [
|
|
71
73
|
'class'
|
|
72
74
|
]);
|
|
73
75
|
return createComponent(DateInput.SegmentGroup, mergeProps({
|
|
74
|
-
"data-slot": "date-input-segment-group",
|
|
75
76
|
get ["class"] () {
|
|
76
77
|
return clsx(DateInput_module.segmentGroup, local.class);
|
|
77
78
|
}
|
|
78
|
-
}, others
|
|
79
|
+
}, others, {
|
|
80
|
+
"data-slot": "date-input-segment-group"
|
|
81
|
+
}));
|
|
79
82
|
}
|
|
80
83
|
function DateInputSegment(props) {
|
|
81
84
|
const [local, others] = splitProps(props, [
|
|
82
85
|
'class'
|
|
83
86
|
]);
|
|
84
87
|
return createComponent(DateInput.Segment, mergeProps({
|
|
85
|
-
"data-slot": "date-input-segment",
|
|
86
88
|
get ["class"] () {
|
|
87
89
|
return clsx(DateInput_module.segment, local.class);
|
|
88
90
|
}
|
|
89
|
-
}, others
|
|
91
|
+
}, others, {
|
|
92
|
+
"data-slot": "date-input-segment"
|
|
93
|
+
}));
|
|
90
94
|
}
|
|
91
95
|
function DateInputSegments(props) {
|
|
92
96
|
return createComponent(DateInputSegmentGroup, mergeProps(props, {
|
|
@@ -117,7 +121,9 @@ function DateInputSeparator(props) {
|
|
|
117
121
|
get ["class"] () {
|
|
118
122
|
return clsx(DateInput_module.separator, local.class);
|
|
119
123
|
}
|
|
120
|
-
}, others
|
|
124
|
+
}, others, {
|
|
125
|
+
"data-slot": "date-input-separator"
|
|
126
|
+
}), false, false);
|
|
121
127
|
return _el$;
|
|
122
128
|
})();
|
|
123
129
|
}
|
|
@@ -8,7 +8,7 @@ function DateInputRoot(props) {
|
|
|
8
8
|
'children',
|
|
9
9
|
'class'
|
|
10
10
|
]);
|
|
11
|
-
return <DateInput.Root asChild={local.asChild}
|
|
11
|
+
return <DateInput.Root asChild={local.asChild} class={clsx(DateInput_module.root, local.class)} {...others} data-slot="date-input-root">
|
|
12
12
|
{local.children}
|
|
13
13
|
</DateInput.Root>;
|
|
14
14
|
}
|
|
@@ -18,7 +18,7 @@ function DateInputRootProvider(props) {
|
|
|
18
18
|
'children',
|
|
19
19
|
'class'
|
|
20
20
|
]);
|
|
21
|
-
return <DateInput.RootProvider asChild={local.asChild}
|
|
21
|
+
return <DateInput.RootProvider asChild={local.asChild} class={clsx(DateInput_module.root, local.class)} {...others} data-slot="date-input-root-provider">
|
|
22
22
|
{local.children}
|
|
23
23
|
</DateInput.RootProvider>;
|
|
24
24
|
}
|
|
@@ -26,25 +26,25 @@ function DateInputLabel(props) {
|
|
|
26
26
|
const [local, others] = splitProps(props, [
|
|
27
27
|
'class'
|
|
28
28
|
]);
|
|
29
|
-
return <DateInput.Label
|
|
29
|
+
return <DateInput.Label class={clsx(DateInput_module.label, local.class)} {...others} data-slot="date-input-label"/>;
|
|
30
30
|
}
|
|
31
31
|
function DateInputControl(props) {
|
|
32
32
|
const [local, others] = splitProps(props, [
|
|
33
33
|
'class'
|
|
34
34
|
]);
|
|
35
|
-
return <DateInput.Control
|
|
35
|
+
return <DateInput.Control class={clsx(DateInput_module.control, local.class)} {...others} data-slot="date-input-control"/>;
|
|
36
36
|
}
|
|
37
37
|
function DateInputSegmentGroup(props) {
|
|
38
38
|
const [local, others] = splitProps(props, [
|
|
39
39
|
'class'
|
|
40
40
|
]);
|
|
41
|
-
return <DateInput.SegmentGroup
|
|
41
|
+
return <DateInput.SegmentGroup class={clsx(DateInput_module.segmentGroup, local.class)} {...others} data-slot="date-input-segment-group"/>;
|
|
42
42
|
}
|
|
43
43
|
function DateInputSegment(props) {
|
|
44
44
|
const [local, others] = splitProps(props, [
|
|
45
45
|
'class'
|
|
46
46
|
]);
|
|
47
|
-
return <DateInput.Segment
|
|
47
|
+
return <DateInput.Segment class={clsx(DateInput_module.segment, local.class)} {...others} data-slot="date-input-segment"/>;
|
|
48
48
|
}
|
|
49
49
|
function DateInputSegments(props) {
|
|
50
50
|
return <DateInputSegmentGroup {...props}>
|
|
@@ -59,7 +59,7 @@ function DateInputSeparator(props) {
|
|
|
59
59
|
'class',
|
|
60
60
|
'role'
|
|
61
61
|
]);
|
|
62
|
-
return <span
|
|
62
|
+
return <span aria-hidden={local['aria-hidden'] ?? true} role={local.role ?? 'presentation'} class={clsx(DateInput_module.separator, local.class)} {...others} data-slot="date-input-separator"/>;
|
|
63
63
|
}
|
|
64
64
|
const DateInput_DateInput = Object.assign(DateInputRoot, {
|
|
65
65
|
Root: DateInputRoot,
|
|
@@ -36,7 +36,6 @@ function DatePickerRoot(props) {
|
|
|
36
36
|
get asChild () {
|
|
37
37
|
return local.asChild;
|
|
38
38
|
},
|
|
39
|
-
"data-slot": "date-picker-root",
|
|
40
39
|
get ["class"] () {
|
|
41
40
|
return clsx(DatePicker_module.root, local.class);
|
|
42
41
|
},
|
|
@@ -59,6 +58,7 @@ function DatePickerRoot(props) {
|
|
|
59
58
|
return local.unmountOnExit ?? true;
|
|
60
59
|
}
|
|
61
60
|
}, others, {
|
|
61
|
+
"data-slot": "date-picker-root",
|
|
62
62
|
get children () {
|
|
63
63
|
return local.children;
|
|
64
64
|
}
|
|
@@ -88,7 +88,6 @@ function DatePickerRootProvider(props) {
|
|
|
88
88
|
get asChild () {
|
|
89
89
|
return local.asChild;
|
|
90
90
|
},
|
|
91
|
-
"data-slot": "date-picker-root-provider",
|
|
92
91
|
get ["class"] () {
|
|
93
92
|
return clsx(DatePicker_module.root, local.class);
|
|
94
93
|
},
|
|
@@ -99,6 +98,7 @@ function DatePickerRootProvider(props) {
|
|
|
99
98
|
return local.unmountOnExit ?? true;
|
|
100
99
|
}
|
|
101
100
|
}, others, {
|
|
101
|
+
"data-slot": "date-picker-root-provider",
|
|
102
102
|
get children () {
|
|
103
103
|
return local.children;
|
|
104
104
|
}
|
|
@@ -111,22 +111,24 @@ function DatePickerLabel(props) {
|
|
|
111
111
|
'class'
|
|
112
112
|
]);
|
|
113
113
|
return createComponent(DatePicker.Label, mergeProps({
|
|
114
|
-
"data-slot": "date-picker-label",
|
|
115
114
|
get ["class"] () {
|
|
116
115
|
return clsx(DatePicker_module.label, local.class);
|
|
117
116
|
}
|
|
118
|
-
}, others
|
|
117
|
+
}, others, {
|
|
118
|
+
"data-slot": "date-picker-label"
|
|
119
|
+
}));
|
|
119
120
|
}
|
|
120
121
|
function DatePickerControl(props) {
|
|
121
122
|
const [local, others] = splitProps(props, [
|
|
122
123
|
'class'
|
|
123
124
|
]);
|
|
124
125
|
return createComponent(DatePicker.Control, mergeProps({
|
|
125
|
-
"data-slot": "date-picker-control",
|
|
126
126
|
get ["class"] () {
|
|
127
127
|
return clsx(DatePicker_module.control, local.class);
|
|
128
128
|
}
|
|
129
|
-
}, others
|
|
129
|
+
}, others, {
|
|
130
|
+
"data-slot": "date-picker-control"
|
|
131
|
+
}));
|
|
130
132
|
}
|
|
131
133
|
function DatePickerField(props) {
|
|
132
134
|
const [local, others] = splitProps(props, [
|
|
@@ -208,11 +210,12 @@ function DatePickerInput(props) {
|
|
|
208
210
|
'class'
|
|
209
211
|
]);
|
|
210
212
|
return createComponent(DatePicker.Input, mergeProps({
|
|
211
|
-
"data-slot": "date-picker-input",
|
|
212
213
|
get ["class"] () {
|
|
213
214
|
return clsx(DatePicker_module.input, local.class);
|
|
214
215
|
}
|
|
215
|
-
}, others
|
|
216
|
+
}, others, {
|
|
217
|
+
"data-slot": "date-picker-input"
|
|
218
|
+
}));
|
|
216
219
|
}
|
|
217
220
|
function DatePickerTrigger(props) {
|
|
218
221
|
const [local, others] = splitProps(props, [
|
|
@@ -225,11 +228,11 @@ function DatePickerTrigger(props) {
|
|
|
225
228
|
get asChild () {
|
|
226
229
|
return local.asChild;
|
|
227
230
|
},
|
|
228
|
-
"data-slot": "date-picker-trigger",
|
|
229
231
|
get ["class"] () {
|
|
230
232
|
return clsx(!local.asChild && DatePicker_module.trigger, local.class);
|
|
231
233
|
}
|
|
232
234
|
}, others, {
|
|
235
|
+
"data-slot": "date-picker-trigger",
|
|
233
236
|
get children () {
|
|
234
237
|
return resolvedChildren() ?? createComponent(CalendarIcon, {});
|
|
235
238
|
}
|
|
@@ -255,9 +258,9 @@ function DatePickerClearTrigger(props) {
|
|
|
255
258
|
get ["aria-labelledby"] () {
|
|
256
259
|
return local['aria-labelledby'];
|
|
257
260
|
},
|
|
258
|
-
"data-slot": "date-picker-clear-trigger",
|
|
259
261
|
class: triggerClass
|
|
260
262
|
}, others, {
|
|
263
|
+
"data-slot": "date-picker-clear-trigger",
|
|
261
264
|
get children () {
|
|
262
265
|
return local.children;
|
|
263
266
|
}
|
|
@@ -275,9 +278,10 @@ function DatePickerClearTrigger(props) {
|
|
|
275
278
|
}
|
|
276
279
|
}));
|
|
277
280
|
},
|
|
278
|
-
"data-slot": "date-picker-clear-trigger",
|
|
279
281
|
class: triggerClass
|
|
280
|
-
}, others
|
|
282
|
+
}, others, {
|
|
283
|
+
"data-slot": "date-picker-clear-trigger"
|
|
284
|
+
}));
|
|
281
285
|
}
|
|
282
286
|
function DatePickerPositioner(props) {
|
|
283
287
|
const [local, others] = splitProps(props, [
|
|
@@ -286,11 +290,12 @@ function DatePickerPositioner(props) {
|
|
|
286
290
|
return createComponent(OverlayPortal, {
|
|
287
291
|
get children () {
|
|
288
292
|
return createComponent(DatePicker.Positioner, mergeProps({
|
|
289
|
-
"data-slot": "date-picker-positioner",
|
|
290
293
|
get ["class"] () {
|
|
291
294
|
return clsx(DatePicker_module.positioner, local.class);
|
|
292
295
|
}
|
|
293
|
-
}, others
|
|
296
|
+
}, others, {
|
|
297
|
+
"data-slot": "date-picker-positioner"
|
|
298
|
+
}));
|
|
294
299
|
}
|
|
295
300
|
});
|
|
296
301
|
}
|
|
@@ -299,33 +304,36 @@ function DatePickerContent(props) {
|
|
|
299
304
|
'class'
|
|
300
305
|
]);
|
|
301
306
|
return createComponent(DatePicker.Content, mergeProps({
|
|
302
|
-
"data-slot": "date-picker-content",
|
|
303
307
|
get ["class"] () {
|
|
304
308
|
return clsx(DatePicker_module.content, local.class);
|
|
305
309
|
}
|
|
306
|
-
}, others
|
|
310
|
+
}, others, {
|
|
311
|
+
"data-slot": "date-picker-content"
|
|
312
|
+
}));
|
|
307
313
|
}
|
|
308
314
|
function DatePickerView(props) {
|
|
309
315
|
const [local, others] = splitProps(props, [
|
|
310
316
|
'class'
|
|
311
317
|
]);
|
|
312
318
|
return createComponent(DatePicker.View, mergeProps({
|
|
313
|
-
"data-slot": "date-picker-view",
|
|
314
319
|
get ["class"] () {
|
|
315
320
|
return clsx(DatePicker_module.view, local.class);
|
|
316
321
|
}
|
|
317
|
-
}, others
|
|
322
|
+
}, others, {
|
|
323
|
+
"data-slot": "date-picker-view"
|
|
324
|
+
}));
|
|
318
325
|
}
|
|
319
326
|
function DatePickerViewControl(props) {
|
|
320
327
|
const [local, others] = splitProps(props, [
|
|
321
328
|
'class'
|
|
322
329
|
]);
|
|
323
330
|
return createComponent(DatePicker.ViewControl, mergeProps({
|
|
324
|
-
"data-slot": "date-picker-view-control",
|
|
325
331
|
get ["class"] () {
|
|
326
332
|
return clsx(DatePicker_module.viewControl, local.class);
|
|
327
333
|
}
|
|
328
|
-
}, others
|
|
334
|
+
}, others, {
|
|
335
|
+
"data-slot": "date-picker-view-control"
|
|
336
|
+
}));
|
|
329
337
|
}
|
|
330
338
|
function DatePickerPrevTrigger(props) {
|
|
331
339
|
const [local, others] = splitProps(props, [
|
|
@@ -338,11 +346,11 @@ function DatePickerPrevTrigger(props) {
|
|
|
338
346
|
get asChild () {
|
|
339
347
|
return local.asChild;
|
|
340
348
|
},
|
|
341
|
-
"data-slot": "date-picker-prev-trigger",
|
|
342
349
|
get ["class"] () {
|
|
343
350
|
return clsx(!local.asChild && DatePicker_module.navTrigger, local.class);
|
|
344
351
|
}
|
|
345
352
|
}, others, {
|
|
353
|
+
"data-slot": "date-picker-prev-trigger",
|
|
346
354
|
get children () {
|
|
347
355
|
return resolvedChildren() ?? createComponent(ChevronLeftIcon, {});
|
|
348
356
|
}
|
|
@@ -359,11 +367,11 @@ function DatePickerNextTrigger(props) {
|
|
|
359
367
|
get asChild () {
|
|
360
368
|
return local.asChild;
|
|
361
369
|
},
|
|
362
|
-
"data-slot": "date-picker-next-trigger",
|
|
363
370
|
get ["class"] () {
|
|
364
371
|
return clsx(!local.asChild && DatePicker_module.navTrigger, local.class);
|
|
365
372
|
}
|
|
366
373
|
}, others, {
|
|
374
|
+
"data-slot": "date-picker-next-trigger",
|
|
367
375
|
get children () {
|
|
368
376
|
return resolvedChildren() ?? createComponent(ChevronRightIcon, {});
|
|
369
377
|
}
|
|
@@ -374,11 +382,12 @@ function DatePickerRangeText(props) {
|
|
|
374
382
|
'class'
|
|
375
383
|
]);
|
|
376
384
|
return createComponent(DatePicker.RangeText, mergeProps({
|
|
377
|
-
"data-slot": "date-picker-range-text",
|
|
378
385
|
get ["class"] () {
|
|
379
386
|
return clsx(DatePicker_module.rangeText, local.class);
|
|
380
387
|
}
|
|
381
|
-
}, others
|
|
388
|
+
}, others, {
|
|
389
|
+
"data-slot": "date-picker-range-text"
|
|
390
|
+
}));
|
|
382
391
|
}
|
|
383
392
|
function DatePickerViewTrigger(props) {
|
|
384
393
|
const [local, others] = splitProps(props, [
|
|
@@ -391,11 +400,11 @@ function DatePickerViewTrigger(props) {
|
|
|
391
400
|
get asChild () {
|
|
392
401
|
return local.asChild;
|
|
393
402
|
},
|
|
394
|
-
"data-slot": "date-picker-view-trigger",
|
|
395
403
|
get ["class"] () {
|
|
396
404
|
return clsx(!local.asChild && DatePicker_module.viewTrigger, local.class);
|
|
397
405
|
}
|
|
398
406
|
}, others, {
|
|
407
|
+
"data-slot": "date-picker-view-trigger",
|
|
399
408
|
get children () {
|
|
400
409
|
return resolvedChildren() ?? [
|
|
401
410
|
createComponent(DatePickerRangeText, {}),
|
|
@@ -409,99 +418,108 @@ function DatePickerTable(props) {
|
|
|
409
418
|
'class'
|
|
410
419
|
]);
|
|
411
420
|
return createComponent(DatePicker.Table, mergeProps({
|
|
412
|
-
"data-slot": "date-picker-table",
|
|
413
421
|
get ["class"] () {
|
|
414
422
|
return clsx(DatePicker_module.table, local.class);
|
|
415
423
|
}
|
|
416
|
-
}, others
|
|
424
|
+
}, others, {
|
|
425
|
+
"data-slot": "date-picker-table"
|
|
426
|
+
}));
|
|
417
427
|
}
|
|
418
428
|
function DatePickerTableHead(props) {
|
|
419
429
|
const [local, others] = splitProps(props, [
|
|
420
430
|
'class'
|
|
421
431
|
]);
|
|
422
432
|
return createComponent(DatePicker.TableHead, mergeProps({
|
|
423
|
-
"data-slot": "date-picker-table-head",
|
|
424
433
|
get ["class"] () {
|
|
425
434
|
return local.class;
|
|
426
435
|
}
|
|
427
|
-
}, others
|
|
436
|
+
}, others, {
|
|
437
|
+
"data-slot": "date-picker-table-head"
|
|
438
|
+
}));
|
|
428
439
|
}
|
|
429
440
|
function DatePickerTableBody(props) {
|
|
430
441
|
const [local, others] = splitProps(props, [
|
|
431
442
|
'class'
|
|
432
443
|
]);
|
|
433
444
|
return createComponent(DatePicker.TableBody, mergeProps({
|
|
434
|
-
"data-slot": "date-picker-table-body",
|
|
435
445
|
get ["class"] () {
|
|
436
446
|
return local.class;
|
|
437
447
|
}
|
|
438
|
-
}, others
|
|
448
|
+
}, others, {
|
|
449
|
+
"data-slot": "date-picker-table-body"
|
|
450
|
+
}));
|
|
439
451
|
}
|
|
440
452
|
function DatePickerTableRow(props) {
|
|
441
453
|
const [local, others] = splitProps(props, [
|
|
442
454
|
'class'
|
|
443
455
|
]);
|
|
444
456
|
return createComponent(DatePicker.TableRow, mergeProps({
|
|
445
|
-
"data-slot": "date-picker-table-row",
|
|
446
457
|
get ["class"] () {
|
|
447
458
|
return local.class;
|
|
448
459
|
}
|
|
449
|
-
}, others
|
|
460
|
+
}, others, {
|
|
461
|
+
"data-slot": "date-picker-table-row"
|
|
462
|
+
}));
|
|
450
463
|
}
|
|
451
464
|
function DatePickerTableHeader(props) {
|
|
452
465
|
const [local, others] = splitProps(props, [
|
|
453
466
|
'class'
|
|
454
467
|
]);
|
|
455
468
|
return createComponent(DatePicker.TableHeader, mergeProps({
|
|
456
|
-
"data-slot": "date-picker-table-header",
|
|
457
469
|
get ["class"] () {
|
|
458
470
|
return clsx(DatePicker_module.tableHeader, local.class);
|
|
459
471
|
}
|
|
460
|
-
}, others
|
|
472
|
+
}, others, {
|
|
473
|
+
"data-slot": "date-picker-table-header"
|
|
474
|
+
}));
|
|
461
475
|
}
|
|
462
476
|
function DatePickerWeekNumberHeaderCell(props) {
|
|
463
477
|
const [local, others] = splitProps(props, [
|
|
464
478
|
'class'
|
|
465
479
|
]);
|
|
466
480
|
return createComponent(DatePicker.WeekNumberHeaderCell, mergeProps({
|
|
467
|
-
"data-slot": "date-picker-week-number-header-cell",
|
|
468
481
|
get ["class"] () {
|
|
469
482
|
return clsx(DatePicker_module.tableHeader, DatePicker_module.weekNumberCell, local.class);
|
|
470
483
|
}
|
|
471
|
-
}, others
|
|
484
|
+
}, others, {
|
|
485
|
+
"data-slot": "date-picker-week-number-header-cell"
|
|
486
|
+
}));
|
|
472
487
|
}
|
|
473
488
|
function DatePickerWeekNumberCell(props) {
|
|
474
489
|
const [local, others] = splitProps(props, [
|
|
475
490
|
'class'
|
|
476
491
|
]);
|
|
477
492
|
return createComponent(DatePicker.WeekNumberCell, mergeProps({
|
|
478
|
-
"data-slot": "date-picker-week-number-cell",
|
|
479
493
|
get ["class"] () {
|
|
480
494
|
return clsx(DatePicker_module.weekNumberCell, local.class);
|
|
481
495
|
}
|
|
482
|
-
}, others
|
|
496
|
+
}, others, {
|
|
497
|
+
"data-slot": "date-picker-week-number-cell"
|
|
498
|
+
}));
|
|
483
499
|
}
|
|
484
500
|
function DatePickerTableCell(props) {
|
|
485
501
|
const [local, others] = splitProps(props, [
|
|
486
502
|
'class'
|
|
487
503
|
]);
|
|
488
504
|
return createComponent(DatePicker.TableCell, mergeProps({
|
|
489
|
-
"data-slot": "date-picker-table-cell",
|
|
490
505
|
get ["class"] () {
|
|
491
506
|
return clsx(DatePicker_module.tableCell, local.class);
|
|
492
507
|
}
|
|
493
|
-
}, others
|
|
508
|
+
}, others, {
|
|
509
|
+
"data-slot": "date-picker-table-cell"
|
|
510
|
+
}));
|
|
494
511
|
}
|
|
495
512
|
function DatePickerTableCellTrigger(props) {
|
|
496
513
|
const [local, others] = splitProps(props, [
|
|
497
514
|
'class'
|
|
498
515
|
]);
|
|
499
516
|
return createComponent(DatePicker.TableCellTrigger, mergeProps({
|
|
500
|
-
"data-slot": "date-picker-table-cell-trigger",
|
|
501
517
|
get ["class"] () {
|
|
502
518
|
return clsx(DatePicker_module.tableCellTrigger, local.class);
|
|
503
519
|
}
|
|
504
|
-
}, others
|
|
520
|
+
}, others, {
|
|
521
|
+
"data-slot": "date-picker-table-cell-trigger"
|
|
522
|
+
}));
|
|
505
523
|
}
|
|
506
524
|
function DatePickerDayTable(props) {
|
|
507
525
|
const [local, others] = splitProps(props, [
|
|
@@ -616,22 +634,24 @@ function DatePickerMonthSelect(props) {
|
|
|
616
634
|
'class'
|
|
617
635
|
]);
|
|
618
636
|
return createComponent(DatePicker.MonthSelect, mergeProps({
|
|
619
|
-
"data-slot": "date-picker-month-select",
|
|
620
637
|
get ["class"] () {
|
|
621
638
|
return clsx(DatePicker_module.select, local.class);
|
|
622
639
|
}
|
|
623
|
-
}, others
|
|
640
|
+
}, others, {
|
|
641
|
+
"data-slot": "date-picker-month-select"
|
|
642
|
+
}));
|
|
624
643
|
}
|
|
625
644
|
function DatePickerYearSelect(props) {
|
|
626
645
|
const [local, others] = splitProps(props, [
|
|
627
646
|
'class'
|
|
628
647
|
]);
|
|
629
648
|
return createComponent(DatePicker.YearSelect, mergeProps({
|
|
630
|
-
"data-slot": "date-picker-year-select",
|
|
631
649
|
get ["class"] () {
|
|
632
650
|
return clsx(DatePicker_module.select, local.class);
|
|
633
651
|
}
|
|
634
|
-
}, others
|
|
652
|
+
}, others, {
|
|
653
|
+
"data-slot": "date-picker-year-select"
|
|
654
|
+
}));
|
|
635
655
|
}
|
|
636
656
|
function DatePickerPresetTrigger(props) {
|
|
637
657
|
const [local, others] = splitProps(props, [
|
|
@@ -642,22 +662,24 @@ function DatePickerPresetTrigger(props) {
|
|
|
642
662
|
get asChild () {
|
|
643
663
|
return local.asChild;
|
|
644
664
|
},
|
|
645
|
-
"data-slot": "date-picker-preset-trigger",
|
|
646
665
|
get ["class"] () {
|
|
647
666
|
return clsx(!local.asChild && DatePicker_module.presetTrigger, local.class);
|
|
648
667
|
}
|
|
649
|
-
}, others
|
|
668
|
+
}, others, {
|
|
669
|
+
"data-slot": "date-picker-preset-trigger"
|
|
670
|
+
}));
|
|
650
671
|
}
|
|
651
672
|
function DatePickerValueText(props) {
|
|
652
673
|
const [local, others] = splitProps(props, [
|
|
653
674
|
'class'
|
|
654
675
|
]);
|
|
655
676
|
return createComponent(DatePicker.ValueText, mergeProps({
|
|
656
|
-
"data-slot": "date-picker-value-text",
|
|
657
677
|
get ["class"] () {
|
|
658
678
|
return clsx(DatePicker_module.valueText, local.class);
|
|
659
679
|
}
|
|
660
|
-
}, others
|
|
680
|
+
}, others, {
|
|
681
|
+
"data-slot": "date-picker-value-text"
|
|
682
|
+
}));
|
|
661
683
|
}
|
|
662
684
|
const DatePicker_DatePicker = Object.assign(DatePickerRoot, {
|
|
663
685
|
Root: DatePickerRoot,
|