@moduix/solid-tailwind 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 +7 -7
- 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 +10 -11
- package/dist/components/avatar/Avatar.js +10 -7
- package/dist/components/avatar/Avatar.jsx +6 -6
- package/dist/components/bleed/Bleed.js +1 -1
- package/dist/components/bleed/Bleed.jsx +1 -1
- package/dist/components/button/Button.js +1 -6
- package/dist/components/button/Button.jsx +2 -4
- package/dist/components/card/Card.js +54 -44
- package/dist/components/card/Card.jsx +12 -12
- 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.js +5 -5
- package/dist/components/container/Container.jsx +5 -5
- 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/empty/Empty.js +1 -1
- package/dist/components/empty/Empty.jsx +1 -1
- 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/input-group/InputGroup.js +3 -2
- package/dist/components/input-group/InputGroup.jsx +3 -2
- package/dist/components/json-tree-view/JsonTreeView.js +1 -1
- package/dist/components/json-tree-view/JsonTreeView.jsx +1 -1
- 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 +9 -9
- package/dist/components/menu/Menu.js +66 -44
- package/dist/components/menu/Menu.jsx +28 -28
- 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 +17 -12
- 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 +72 -43
- package/dist/components/sidebar/Sidebar.jsx +34 -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 +20 -9
- package/dist/components/split-button/SplitButton.jsx +13 -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 +38 -26
- 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 +10 -11
|
@@ -35,7 +35,6 @@ function DatePickerRoot(props) {
|
|
|
35
35
|
get asChild () {
|
|
36
36
|
return local.asChild;
|
|
37
37
|
},
|
|
38
|
-
"data-slot": "date-picker-root",
|
|
39
38
|
get ["class"] () {
|
|
40
39
|
return cn("group/date-picker inline-flex w-75 max-w-full flex-col items-start gap-1 text-foreground has-[input[data-index='1']]:w-96 data-disabled:opacity-50 data-readonly:opacity-50", local.class);
|
|
41
40
|
},
|
|
@@ -58,6 +57,7 @@ function DatePickerRoot(props) {
|
|
|
58
57
|
return local.unmountOnExit ?? true;
|
|
59
58
|
}
|
|
60
59
|
}, others, {
|
|
60
|
+
"data-slot": "date-picker-root",
|
|
61
61
|
get children () {
|
|
62
62
|
return local.children;
|
|
63
63
|
}
|
|
@@ -87,7 +87,6 @@ function DatePickerRootProvider(props) {
|
|
|
87
87
|
get asChild () {
|
|
88
88
|
return local.asChild;
|
|
89
89
|
},
|
|
90
|
-
"data-slot": "date-picker-root-provider",
|
|
91
90
|
get ["class"] () {
|
|
92
91
|
return cn("group/date-picker inline-flex w-75 max-w-full flex-col items-start gap-1 text-foreground has-[input[data-index='1']]:w-96 data-disabled:opacity-50 data-readonly:opacity-50", local.class);
|
|
93
92
|
},
|
|
@@ -98,6 +97,7 @@ function DatePickerRootProvider(props) {
|
|
|
98
97
|
return local.unmountOnExit ?? true;
|
|
99
98
|
}
|
|
100
99
|
}, others, {
|
|
100
|
+
"data-slot": "date-picker-root-provider",
|
|
101
101
|
get children () {
|
|
102
102
|
return local.children;
|
|
103
103
|
}
|
|
@@ -110,22 +110,24 @@ function DatePickerLabel(props) {
|
|
|
110
110
|
'class'
|
|
111
111
|
]);
|
|
112
112
|
return createComponent(DatePicker.Label, mergeProps({
|
|
113
|
-
"data-slot": "date-picker-label",
|
|
114
113
|
get ["class"] () {
|
|
115
114
|
return cn('inline-flex items-center text-sm leading-5 font-medium text-foreground select-none', local.class);
|
|
116
115
|
}
|
|
117
|
-
}, others
|
|
116
|
+
}, others, {
|
|
117
|
+
"data-slot": "date-picker-label"
|
|
118
|
+
}));
|
|
118
119
|
}
|
|
119
120
|
function DatePickerControl(props) {
|
|
120
121
|
const [local, others] = splitProps(props, [
|
|
121
122
|
'class'
|
|
122
123
|
]);
|
|
123
124
|
return createComponent(DatePicker.Control, mergeProps({
|
|
124
|
-
"data-slot": "date-picker-control",
|
|
125
125
|
get ["class"] () {
|
|
126
126
|
return cn('group/date-picker-control relative flex w-full min-w-0 items-center gap-2 text-foreground', local.class);
|
|
127
127
|
}
|
|
128
|
-
}, others
|
|
128
|
+
}, others, {
|
|
129
|
+
"data-slot": "date-picker-control"
|
|
130
|
+
}));
|
|
129
131
|
}
|
|
130
132
|
function DatePickerField(props) {
|
|
131
133
|
const [local, others] = splitProps(props, [
|
|
@@ -207,11 +209,12 @@ function DatePickerInput(props) {
|
|
|
207
209
|
'class'
|
|
208
210
|
]);
|
|
209
211
|
return createComponent(DatePicker.Input, mergeProps({
|
|
210
|
-
"data-slot": "date-picker-input",
|
|
211
212
|
get ["class"] () {
|
|
212
213
|
return cn("readonly:cursor-default h-control-md w-full min-w-30 flex-1 rounded-md border border-border bg-background ps-3.5 pe-17 text-md leading-6 text-current outline-1 -outline-offset-1 outline-transparent transition-[background-color,border-color,color,outline-color,opacity] duration-200 ease-in-out group-has-[input[data-index='1']]/date-picker:pe-3.5 group-data-focus/date-picker-control:border-ring group-data-focus/date-picker-control:outline-ring placeholder:text-muted-foreground focus:border-ring focus:outline-ring disabled:cursor-default aria-invalid:border-destructive aria-invalid:outline-destructive data-disabled:cursor-default data-invalid:border-destructive data-invalid:outline-destructive data-readonly:cursor-default data-[index='1']:pe-17 motion-reduce:transition-none", 'py-1', local.class);
|
|
213
214
|
}
|
|
214
|
-
}, others
|
|
215
|
+
}, others, {
|
|
216
|
+
"data-slot": "date-picker-input"
|
|
217
|
+
}));
|
|
215
218
|
}
|
|
216
219
|
function DatePickerTrigger(props) {
|
|
217
220
|
const [local, others] = splitProps(props, [
|
|
@@ -224,11 +227,11 @@ function DatePickerTrigger(props) {
|
|
|
224
227
|
get asChild () {
|
|
225
228
|
return local.asChild;
|
|
226
229
|
},
|
|
227
|
-
"data-slot": "date-picker-trigger",
|
|
228
230
|
get ["class"] () {
|
|
229
231
|
return cn(!local.asChild && 'absolute end-2 top-1/2 inline-flex size-control-xs shrink-0 -translate-y-1/2 cursor-pointer items-center justify-center rounded-sm bg-transparent p-0 leading-none text-muted-foreground outline-1 -outline-offset-1 outline-transparent transition-[background-color,color,outline-color,opacity] duration-200 ease-in-out focus-visible:outline-ring disabled:cursor-default disabled:opacity-50 data-disabled:cursor-default data-disabled:opacity-50 data-focus:outline-ring motion-reduce:transition-none [&>svg]:block [&>svg]:size-4 [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:bg-muted [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:text-foreground', local.class);
|
|
230
232
|
}
|
|
231
233
|
}, others, {
|
|
234
|
+
"data-slot": "date-picker-trigger",
|
|
232
235
|
get children () {
|
|
233
236
|
return resolvedChildren() ?? createComponent(CalendarIcon, {});
|
|
234
237
|
}
|
|
@@ -253,11 +256,11 @@ function DatePickerClearTrigger(props) {
|
|
|
253
256
|
get ["aria-labelledby"] () {
|
|
254
257
|
return local['aria-labelledby'];
|
|
255
258
|
},
|
|
256
|
-
"data-slot": "date-picker-clear-trigger",
|
|
257
259
|
get ["class"] () {
|
|
258
260
|
return cn('absolute end-[2.125rem] top-1/2 inline-flex size-control-xs shrink-0 -translate-y-1/2 cursor-pointer items-center justify-center rounded-sm bg-transparent p-0 leading-none text-muted-foreground outline-1 -outline-offset-1 outline-transparent transition-[background-color,color,outline-color,opacity] duration-200 ease-in-out focus-visible:outline-ring disabled:cursor-default disabled:opacity-50 data-disabled:cursor-default data-disabled:opacity-50 data-focus:outline-ring motion-reduce:transition-none [&>svg]:block [&>svg]:size-4 [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:bg-muted [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:text-foreground', local.class);
|
|
259
261
|
}
|
|
260
262
|
}, others, {
|
|
263
|
+
"data-slot": "date-picker-clear-trigger",
|
|
261
264
|
get children () {
|
|
262
265
|
return local.children;
|
|
263
266
|
}
|
|
@@ -278,11 +281,12 @@ function DatePickerClearTrigger(props) {
|
|
|
278
281
|
}
|
|
279
282
|
}));
|
|
280
283
|
},
|
|
281
|
-
"data-slot": "date-picker-clear-trigger",
|
|
282
284
|
get ["class"] () {
|
|
283
285
|
return cn('absolute end-[2.125rem] top-1/2 inline-flex size-control-xs shrink-0 -translate-y-1/2 cursor-pointer items-center justify-center rounded-sm bg-transparent p-0 leading-none text-muted-foreground outline-1 -outline-offset-1 outline-transparent transition-[background-color,color,outline-color,opacity] duration-200 ease-in-out focus-visible:outline-ring disabled:cursor-default disabled:opacity-50 data-disabled:cursor-default data-disabled:opacity-50 data-focus:outline-ring motion-reduce:transition-none [&>svg]:block [&>svg]:size-4 [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:bg-muted [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:text-foreground', local.class);
|
|
284
286
|
}
|
|
285
|
-
}, others
|
|
287
|
+
}, others, {
|
|
288
|
+
"data-slot": "date-picker-clear-trigger"
|
|
289
|
+
}));
|
|
286
290
|
}
|
|
287
291
|
function DatePickerPositioner(props) {
|
|
288
292
|
const [local, others] = splitProps(props, [
|
|
@@ -291,11 +295,12 @@ function DatePickerPositioner(props) {
|
|
|
291
295
|
return createComponent(OverlayPortal, {
|
|
292
296
|
get children () {
|
|
293
297
|
return createComponent(DatePicker.Positioner, mergeProps({
|
|
294
|
-
"data-slot": "date-picker-positioner",
|
|
295
298
|
get ["class"] () {
|
|
296
299
|
return cn('z-[var(--z-index)] outline-0', local.class);
|
|
297
300
|
}
|
|
298
|
-
}, others
|
|
301
|
+
}, others, {
|
|
302
|
+
"data-slot": "date-picker-positioner"
|
|
303
|
+
}));
|
|
299
304
|
}
|
|
300
305
|
});
|
|
301
306
|
}
|
|
@@ -304,33 +309,36 @@ function DatePickerContent(props) {
|
|
|
304
309
|
'class'
|
|
305
310
|
]);
|
|
306
311
|
return createComponent(DatePicker.Content, mergeProps({
|
|
307
|
-
"data-slot": "date-picker-content",
|
|
308
312
|
get ["class"] () {
|
|
309
313
|
return cn('z-[calc(60+var(--layer-index,0))] w-75 max-w-[min(calc(100vw-2rem),var(--available-width))] min-w-[min(18.75rem,var(--available-width))] origin-[var(--transform-origin)] rounded-md border border-border bg-popover p-3 text-popover-foreground shadow-lg outline-0 data-inline:min-w-72 data-inline:shadow-none data-[state=closed]:pointer-events-none data-[state=closed]:animate-moduix-menu-closed data-[state=open]:animate-moduix-menu-open motion-reduce:[animation-delay:0ms] motion-reduce:[animation-duration:1ms]', local.class);
|
|
310
314
|
}
|
|
311
|
-
}, others
|
|
315
|
+
}, others, {
|
|
316
|
+
"data-slot": "date-picker-content"
|
|
317
|
+
}));
|
|
312
318
|
}
|
|
313
319
|
function DatePickerView(props) {
|
|
314
320
|
const [local, others] = splitProps(props, [
|
|
315
321
|
'class'
|
|
316
322
|
]);
|
|
317
323
|
return createComponent(DatePicker.View, mergeProps({
|
|
318
|
-
"data-slot": "date-picker-view",
|
|
319
324
|
get ["class"] () {
|
|
320
325
|
return cn('grid gap-3', local.class);
|
|
321
326
|
}
|
|
322
|
-
}, others
|
|
327
|
+
}, others, {
|
|
328
|
+
"data-slot": "date-picker-view"
|
|
329
|
+
}));
|
|
323
330
|
}
|
|
324
331
|
function DatePickerViewControl(props) {
|
|
325
332
|
const [local, others] = splitProps(props, [
|
|
326
333
|
'class'
|
|
327
334
|
]);
|
|
328
335
|
return createComponent(DatePicker.ViewControl, mergeProps({
|
|
329
|
-
"data-slot": "date-picker-view-control",
|
|
330
336
|
get ["class"] () {
|
|
331
337
|
return cn('flex min-w-0 items-center justify-between gap-2', local.class);
|
|
332
338
|
}
|
|
333
|
-
}, others
|
|
339
|
+
}, others, {
|
|
340
|
+
"data-slot": "date-picker-view-control"
|
|
341
|
+
}));
|
|
334
342
|
}
|
|
335
343
|
function DatePickerPrevTrigger(props) {
|
|
336
344
|
const [local, others] = splitProps(props, [
|
|
@@ -343,11 +351,11 @@ function DatePickerPrevTrigger(props) {
|
|
|
343
351
|
get asChild () {
|
|
344
352
|
return local.asChild;
|
|
345
353
|
},
|
|
346
|
-
"data-slot": "date-picker-prev-trigger",
|
|
347
354
|
get ["class"] () {
|
|
348
355
|
return cn(!local.asChild && 'inline-flex size-control-sm shrink-0 cursor-pointer items-center justify-center rounded-sm bg-transparent p-0 leading-none text-muted-foreground outline-1 -outline-offset-1 outline-transparent transition-[background-color,color,outline-color,opacity] duration-200 ease-in-out focus-visible:outline-ring disabled:cursor-default disabled:opacity-50 data-disabled:cursor-default data-disabled:opacity-50 data-focus:outline-ring motion-reduce:transition-none [&>svg]:block [&>svg]:size-4 [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:bg-muted [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:text-foreground', local.class);
|
|
349
356
|
}
|
|
350
357
|
}, others, {
|
|
358
|
+
"data-slot": "date-picker-prev-trigger",
|
|
351
359
|
get children () {
|
|
352
360
|
return resolvedChildren() ?? createComponent(ChevronLeftIcon, {});
|
|
353
361
|
}
|
|
@@ -364,11 +372,11 @@ function DatePickerNextTrigger(props) {
|
|
|
364
372
|
get asChild () {
|
|
365
373
|
return local.asChild;
|
|
366
374
|
},
|
|
367
|
-
"data-slot": "date-picker-next-trigger",
|
|
368
375
|
get ["class"] () {
|
|
369
376
|
return cn(!local.asChild && 'inline-flex size-control-sm shrink-0 cursor-pointer items-center justify-center rounded-sm bg-transparent p-0 leading-none text-muted-foreground outline-1 -outline-offset-1 outline-transparent transition-[background-color,color,outline-color,opacity] duration-200 ease-in-out focus-visible:outline-ring disabled:cursor-default disabled:opacity-50 data-disabled:cursor-default data-disabled:opacity-50 data-focus:outline-ring motion-reduce:transition-none [&>svg]:block [&>svg]:size-4 [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:bg-muted [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:text-foreground', local.class);
|
|
370
377
|
}
|
|
371
378
|
}, others, {
|
|
379
|
+
"data-slot": "date-picker-next-trigger",
|
|
372
380
|
get children () {
|
|
373
381
|
return resolvedChildren() ?? createComponent(ChevronRightIcon, {});
|
|
374
382
|
}
|
|
@@ -379,11 +387,12 @@ function DatePickerRangeText(props) {
|
|
|
379
387
|
'class'
|
|
380
388
|
]);
|
|
381
389
|
return createComponent(DatePicker.RangeText, mergeProps({
|
|
382
|
-
"data-slot": "date-picker-range-text",
|
|
383
390
|
get ["class"] () {
|
|
384
391
|
return cn('min-w-0 overflow-hidden text-ellipsis whitespace-nowrap', local.class);
|
|
385
392
|
}
|
|
386
|
-
}, others
|
|
393
|
+
}, others, {
|
|
394
|
+
"data-slot": "date-picker-range-text"
|
|
395
|
+
}));
|
|
387
396
|
}
|
|
388
397
|
function DatePickerViewTrigger(props) {
|
|
389
398
|
const [local, others] = splitProps(props, [
|
|
@@ -396,11 +405,11 @@ function DatePickerViewTrigger(props) {
|
|
|
396
405
|
get asChild () {
|
|
397
406
|
return local.asChild;
|
|
398
407
|
},
|
|
399
|
-
"data-slot": "date-picker-view-trigger",
|
|
400
408
|
get ["class"] () {
|
|
401
409
|
return cn(!local.asChild && 'inline-flex min-h-control-sm min-w-0 flex-1 shrink-0 cursor-pointer items-center justify-center gap-2 rounded-sm bg-transparent px-2 text-sm leading-5 font-medium text-foreground outline-1 -outline-offset-1 outline-transparent transition-[background-color,color,outline-color,opacity] duration-200 ease-in-out focus-visible:outline-ring disabled:cursor-default disabled:opacity-50 data-disabled:cursor-default data-disabled:opacity-50 data-focus:outline-ring motion-reduce:transition-none [&>svg]:block [&>svg]:size-4 [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:bg-muted [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:text-foreground', local.class);
|
|
402
410
|
}
|
|
403
411
|
}, others, {
|
|
412
|
+
"data-slot": "date-picker-view-trigger",
|
|
404
413
|
get children () {
|
|
405
414
|
return resolvedChildren() ?? [
|
|
406
415
|
createComponent(DatePickerRangeText, {}),
|
|
@@ -414,99 +423,108 @@ function DatePickerTable(props) {
|
|
|
414
423
|
'class'
|
|
415
424
|
]);
|
|
416
425
|
return createComponent(DatePicker.Table, mergeProps({
|
|
417
|
-
"data-slot": "date-picker-table",
|
|
418
426
|
get ["class"] () {
|
|
419
427
|
return cn('w-full table-fixed border-separate border-spacing-0.5', local.class);
|
|
420
428
|
}
|
|
421
|
-
}, others
|
|
429
|
+
}, others, {
|
|
430
|
+
"data-slot": "date-picker-table"
|
|
431
|
+
}));
|
|
422
432
|
}
|
|
423
433
|
function DatePickerTableHead(props) {
|
|
424
434
|
const [local, others] = splitProps(props, [
|
|
425
435
|
'class'
|
|
426
436
|
]);
|
|
427
437
|
return createComponent(DatePicker.TableHead, mergeProps({
|
|
428
|
-
"data-slot": "date-picker-table-head",
|
|
429
438
|
get ["class"] () {
|
|
430
439
|
return local.class;
|
|
431
440
|
}
|
|
432
|
-
}, others
|
|
441
|
+
}, others, {
|
|
442
|
+
"data-slot": "date-picker-table-head"
|
|
443
|
+
}));
|
|
433
444
|
}
|
|
434
445
|
function DatePickerTableBody(props) {
|
|
435
446
|
const [local, others] = splitProps(props, [
|
|
436
447
|
'class'
|
|
437
448
|
]);
|
|
438
449
|
return createComponent(DatePicker.TableBody, mergeProps({
|
|
439
|
-
"data-slot": "date-picker-table-body",
|
|
440
450
|
get ["class"] () {
|
|
441
451
|
return local.class;
|
|
442
452
|
}
|
|
443
|
-
}, others
|
|
453
|
+
}, others, {
|
|
454
|
+
"data-slot": "date-picker-table-body"
|
|
455
|
+
}));
|
|
444
456
|
}
|
|
445
457
|
function DatePickerTableRow(props) {
|
|
446
458
|
const [local, others] = splitProps(props, [
|
|
447
459
|
'class'
|
|
448
460
|
]);
|
|
449
461
|
return createComponent(DatePicker.TableRow, mergeProps({
|
|
450
|
-
"data-slot": "date-picker-table-row",
|
|
451
462
|
get ["class"] () {
|
|
452
463
|
return local.class;
|
|
453
464
|
}
|
|
454
|
-
}, others
|
|
465
|
+
}, others, {
|
|
466
|
+
"data-slot": "date-picker-table-row"
|
|
467
|
+
}));
|
|
455
468
|
}
|
|
456
469
|
function DatePickerTableHeader(props) {
|
|
457
470
|
const [local, others] = splitProps(props, [
|
|
458
471
|
'class'
|
|
459
472
|
]);
|
|
460
473
|
return createComponent(DatePicker.TableHeader, mergeProps({
|
|
461
|
-
"data-slot": "date-picker-table-header",
|
|
462
474
|
get ["class"] () {
|
|
463
475
|
return cn('h-7 w-control-sm text-center text-xs leading-4 font-medium text-muted-foreground', local.class);
|
|
464
476
|
}
|
|
465
|
-
}, others
|
|
477
|
+
}, others, {
|
|
478
|
+
"data-slot": "date-picker-table-header"
|
|
479
|
+
}));
|
|
466
480
|
}
|
|
467
481
|
function DatePickerWeekNumberHeaderCell(props) {
|
|
468
482
|
const [local, others] = splitProps(props, [
|
|
469
483
|
'class'
|
|
470
484
|
]);
|
|
471
485
|
return createComponent(DatePicker.WeekNumberHeaderCell, mergeProps({
|
|
472
|
-
"data-slot": "date-picker-week-number-header-cell",
|
|
473
486
|
get ["class"] () {
|
|
474
487
|
return cn('h-7 w-control-sm text-center text-xs leading-4 font-medium text-muted-foreground tabular-nums', local.class);
|
|
475
488
|
}
|
|
476
|
-
}, others
|
|
489
|
+
}, others, {
|
|
490
|
+
"data-slot": "date-picker-week-number-header-cell"
|
|
491
|
+
}));
|
|
477
492
|
}
|
|
478
493
|
function DatePickerWeekNumberCell(props) {
|
|
479
494
|
const [local, others] = splitProps(props, [
|
|
480
495
|
'class'
|
|
481
496
|
]);
|
|
482
497
|
return createComponent(DatePicker.WeekNumberCell, mergeProps({
|
|
483
|
-
"data-slot": "date-picker-week-number-cell",
|
|
484
498
|
get ["class"] () {
|
|
485
499
|
return cn('h-7 w-control-sm text-center text-xs leading-4 font-medium text-muted-foreground tabular-nums', local.class);
|
|
486
500
|
}
|
|
487
|
-
}, others
|
|
501
|
+
}, others, {
|
|
502
|
+
"data-slot": "date-picker-week-number-cell"
|
|
503
|
+
}));
|
|
488
504
|
}
|
|
489
505
|
function DatePickerTableCell(props) {
|
|
490
506
|
const [local, others] = splitProps(props, [
|
|
491
507
|
'class'
|
|
492
508
|
]);
|
|
493
509
|
return createComponent(DatePicker.TableCell, mergeProps({
|
|
494
|
-
"data-slot": "date-picker-table-cell",
|
|
495
510
|
get ["class"] () {
|
|
496
511
|
return cn('h-control-sm w-control-sm p-0 text-center', local.class);
|
|
497
512
|
}
|
|
498
|
-
}, others
|
|
513
|
+
}, others, {
|
|
514
|
+
"data-slot": "date-picker-table-cell"
|
|
515
|
+
}));
|
|
499
516
|
}
|
|
500
517
|
function DatePickerTableCellTrigger(props) {
|
|
501
518
|
const [local, others] = splitProps(props, [
|
|
502
519
|
'class'
|
|
503
520
|
]);
|
|
504
521
|
return createComponent(DatePicker.TableCellTrigger, mergeProps({
|
|
505
|
-
"data-slot": "date-picker-table-cell-trigger",
|
|
506
522
|
get ["class"] () {
|
|
507
523
|
return cn('inline-flex h-control-sm w-full min-w-control-sm cursor-pointer items-center justify-center rounded-sm bg-transparent p-0 text-sm leading-5 text-foreground outline-1 -outline-offset-1 outline-transparent transition-[background-color,border-color,color,outline-color,opacity] duration-200 ease-in-out focus-visible:outline-ring disabled:cursor-default disabled:opacity-50 data-disabled:cursor-default data-disabled:opacity-50 data-focus:outline-ring data-in-hover-range:bg-muted data-in-hover-range:text-foreground data-in-range:bg-muted data-in-range:text-foreground data-outside-range:text-muted-foreground data-selected:bg-primary data-selected:text-primary-foreground data-today:border-ring data-unavailable:text-muted-foreground motion-reduce:transition-none [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):not([data-selected]):hover]:bg-accent [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):not([data-selected]):hover]:text-accent-foreground', local.class);
|
|
508
524
|
}
|
|
509
|
-
}, others
|
|
525
|
+
}, others, {
|
|
526
|
+
"data-slot": "date-picker-table-cell-trigger"
|
|
527
|
+
}));
|
|
510
528
|
}
|
|
511
529
|
function DatePickerDayTable(props) {
|
|
512
530
|
const [local, others] = splitProps(props, [
|
|
@@ -621,22 +639,24 @@ function DatePickerMonthSelect(props) {
|
|
|
621
639
|
'class'
|
|
622
640
|
]);
|
|
623
641
|
return createComponent(DatePicker.MonthSelect, mergeProps({
|
|
624
|
-
"data-slot": "date-picker-month-select",
|
|
625
642
|
get ["class"] () {
|
|
626
643
|
return cn('min-h-control-sm w-full min-w-0 flex-1 cursor-pointer rounded-sm border border-border bg-background px-2 py-1 text-sm leading-5 text-foreground outline-1 -outline-offset-1 outline-transparent transition-[background-color,border-color,outline-color] duration-200 ease-in-out focus:border-ring focus:outline-ring motion-reduce:transition-none', local.class);
|
|
627
644
|
}
|
|
628
|
-
}, others
|
|
645
|
+
}, others, {
|
|
646
|
+
"data-slot": "date-picker-month-select"
|
|
647
|
+
}));
|
|
629
648
|
}
|
|
630
649
|
function DatePickerYearSelect(props) {
|
|
631
650
|
const [local, others] = splitProps(props, [
|
|
632
651
|
'class'
|
|
633
652
|
]);
|
|
634
653
|
return createComponent(DatePicker.YearSelect, mergeProps({
|
|
635
|
-
"data-slot": "date-picker-year-select",
|
|
636
654
|
get ["class"] () {
|
|
637
655
|
return cn('min-h-control-sm w-full min-w-0 flex-1 cursor-pointer rounded-sm border border-border bg-background px-2 py-1 text-sm leading-5 text-foreground outline-1 -outline-offset-1 outline-transparent transition-[background-color,border-color,outline-color] duration-200 ease-in-out focus:border-ring focus:outline-ring motion-reduce:transition-none', local.class);
|
|
638
656
|
}
|
|
639
|
-
}, others
|
|
657
|
+
}, others, {
|
|
658
|
+
"data-slot": "date-picker-year-select"
|
|
659
|
+
}));
|
|
640
660
|
}
|
|
641
661
|
function DatePickerPresetTrigger(props) {
|
|
642
662
|
const [local, others] = splitProps(props, [
|
|
@@ -647,22 +667,24 @@ function DatePickerPresetTrigger(props) {
|
|
|
647
667
|
get asChild () {
|
|
648
668
|
return local.asChild;
|
|
649
669
|
},
|
|
650
|
-
"data-slot": "date-picker-preset-trigger",
|
|
651
670
|
get ["class"] () {
|
|
652
671
|
return cn(!local.asChild && 'inline-flex min-h-control-sm shrink-0 cursor-pointer items-center justify-center rounded-sm bg-muted px-2 text-sm leading-5 text-foreground outline-1 -outline-offset-1 outline-transparent transition-[background-color,color,outline-color,opacity] duration-200 ease-in-out focus-visible:outline-ring disabled:cursor-default disabled:opacity-50 data-disabled:cursor-default data-disabled:opacity-50 data-focus:outline-ring data-selected:bg-primary data-selected:text-primary-foreground motion-reduce:transition-none [&>svg]:block [&>svg]:size-4 [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:bg-muted [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:text-foreground [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):not([data-selected]):hover]:bg-accent', local.class);
|
|
653
672
|
}
|
|
654
|
-
}, others
|
|
673
|
+
}, others, {
|
|
674
|
+
"data-slot": "date-picker-preset-trigger"
|
|
675
|
+
}));
|
|
655
676
|
}
|
|
656
677
|
function DatePickerValueText(props) {
|
|
657
678
|
const [local, others] = splitProps(props, [
|
|
658
679
|
'class'
|
|
659
680
|
]);
|
|
660
681
|
return createComponent(DatePicker.ValueText, mergeProps({
|
|
661
|
-
"data-slot": "date-picker-value-text",
|
|
662
682
|
get ["class"] () {
|
|
663
683
|
return cn('min-w-0 overflow-hidden text-ellipsis whitespace-nowrap', local.class);
|
|
664
684
|
}
|
|
665
|
-
}, others
|
|
685
|
+
}, others, {
|
|
686
|
+
"data-slot": "date-picker-value-text"
|
|
687
|
+
}));
|
|
666
688
|
}
|
|
667
689
|
const DatePicker_DatePicker = Object.assign(DatePickerRoot, {
|
|
668
690
|
Root: DatePickerRoot,
|