@deepnoid/ui 0.0.88 → 0.0.90
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/{chunk-4VIEZ5FT.mjs → chunk-2BCJZILI.mjs} +10 -9
- package/dist/chunk-2ZFHB4JM.mjs +76 -0
- package/dist/{chunk-4DLTBZUQ.mjs → chunk-3DRIHQOM.mjs} +7 -5
- package/dist/{chunk-IXFP2WQ4.mjs → chunk-6YE26GOI.mjs} +10 -8
- package/dist/chunk-75HLCORR.mjs +1 -0
- package/dist/{chunk-K6HPMTN4.mjs → chunk-7HHFRKJU.mjs} +1 -1
- package/dist/{chunk-H2HUJ4N2.mjs → chunk-A3RWT3JJ.mjs} +9 -4
- package/dist/{chunk-BE2OG6M4.mjs → chunk-ANYPMQH4.mjs} +28 -21
- package/dist/{chunk-5HSZ5AYM.mjs → chunk-B4KZBOGT.mjs} +16 -16
- package/dist/{chunk-KHWFCTPX.mjs → chunk-DWROPKZW.mjs} +6 -6
- package/dist/{chunk-FPCP4OOL.mjs → chunk-EDEV4IK4.mjs} +3 -3
- package/dist/{chunk-IOV7MEPG.mjs → chunk-IOCRFIQF.mjs} +30 -0
- package/dist/{chunk-SFNR4F3J.mjs → chunk-L6BQA6GI.mjs} +2 -2
- package/dist/{chunk-YGTJU3GD.mjs → chunk-L7P6OBUX.mjs} +10 -17
- package/dist/{chunk-PRUAIZTU.mjs → chunk-LCI6RPWE.mjs} +1 -1
- package/dist/{chunk-QVGXHUYW.mjs → chunk-N2JULHST.mjs} +9 -9
- package/dist/chunk-N6IEGD4K.mjs +119 -0
- package/dist/chunk-OJ2OEI5B.mjs +202 -0
- package/dist/chunk-P732YGHO.mjs +18 -0
- package/dist/{chunk-QRHT7MSO.mjs → chunk-PXUBPWKU.mjs} +1 -1
- package/dist/{chunk-PCIONGEJ.mjs → chunk-QWFOYO3D.mjs} +37 -19
- package/dist/{chunk-LY6LJRUX.mjs → chunk-RZZWHI6O.mjs} +1 -1
- package/dist/chunk-S2VUKVCH.mjs +319 -0
- package/dist/{chunk-IZOMH2SL.mjs → chunk-S3O52LLG.mjs} +14 -14
- package/dist/chunk-UR64ZUAU.mjs +671 -0
- package/dist/{chunk-PUFNT5LS.mjs → chunk-VG4644BG.mjs} +1 -1
- package/dist/chunk-WX32MAKV.mjs +219 -0
- package/dist/components/accordion/accordion.d.mts +3 -3
- package/dist/components/accordion/accordion.d.ts +3 -3
- package/dist/components/accordion/accordion.test.mjs +3 -3
- package/dist/components/accordion/accordionItem.d.mts +3 -3
- package/dist/components/accordion/accordionItem.d.ts +3 -3
- package/dist/components/accordion/accordionItem.js +31 -1
- package/dist/components/accordion/accordionItem.mjs +3 -3
- package/dist/components/accordion/index.js +31 -1
- package/dist/components/accordion/index.mjs +3 -3
- package/dist/components/button/button-group.d.mts +2 -2
- package/dist/components/button/button-group.d.ts +2 -2
- package/dist/components/button/button-group.test.js +4103 -167
- package/dist/components/button/button-group.test.mjs +7 -3
- package/dist/components/button/button.d.mts +360 -12
- package/dist/components/button/button.d.ts +360 -12
- package/dist/components/button/button.js +4054 -110
- package/dist/components/button/button.mjs +5 -1
- package/dist/components/button/button.test.js +4059 -125
- package/dist/components/button/button.test.mjs +7 -3
- package/dist/components/button/index.d.mts +3 -0
- package/dist/components/button/index.d.ts +3 -0
- package/dist/components/button/index.js +4046 -112
- package/dist/components/button/index.mjs +5 -1
- package/dist/components/card/card.d.mts +3 -3
- package/dist/components/card/card.d.ts +3 -3
- package/dist/components/checkbox/checkbox.d.mts +71 -71
- package/dist/components/checkbox/checkbox.d.ts +71 -71
- package/dist/components/checkbox/checkbox.js +28 -21
- package/dist/components/checkbox/checkbox.mjs +1 -1
- package/dist/components/checkbox/checkbox.test.js +28 -21
- package/dist/components/checkbox/checkbox.test.mjs +4 -4
- package/dist/components/checkbox/index.js +28 -21
- package/dist/components/checkbox/index.mjs +1 -1
- package/dist/components/dateTimePicker/calendar.d.mts +118 -0
- package/dist/components/dateTimePicker/calendar.d.ts +118 -0
- package/dist/components/dateTimePicker/calendar.js +3854 -0
- package/dist/components/dateTimePicker/calendar.mjs +16 -0
- package/dist/components/dateTimePicker/dateTimePicker.d.mts +443 -0
- package/dist/components/dateTimePicker/dateTimePicker.d.ts +443 -0
- package/dist/components/dateTimePicker/dateTimePicker.js +4486 -0
- package/dist/components/dateTimePicker/dateTimePicker.mjs +22 -0
- package/dist/components/dateTimePicker/index.d.mts +5 -0
- package/dist/components/dateTimePicker/index.d.ts +5 -0
- package/dist/components/dateTimePicker/index.js +4487 -0
- package/dist/components/dateTimePicker/index.mjs +21 -0
- package/dist/components/dateTimePicker/timePicker.d.mts +10 -0
- package/dist/components/dateTimePicker/timePicker.d.ts +10 -0
- package/dist/components/dateTimePicker/timePicker.js +342 -0
- package/dist/components/dateTimePicker/timePicker.mjs +13 -0
- package/dist/components/dateTimePicker/useDateTimePicker.d.mts +31 -0
- package/dist/components/dateTimePicker/useDateTimePicker.d.ts +31 -0
- package/dist/components/dateTimePicker/useDateTimePicker.js +106 -0
- package/dist/components/dateTimePicker/useDateTimePicker.mjs +9 -0
- package/dist/components/dateTimePicker/util.d.mts +4 -0
- package/dist/components/dateTimePicker/util.d.ts +4 -0
- package/dist/components/dateTimePicker/util.js +42 -0
- package/dist/components/dateTimePicker/util.mjs +10 -0
- package/dist/components/icon/Icon.d.mts +4 -0
- package/dist/components/icon/Icon.d.ts +4 -0
- package/dist/components/icon/Icon.js +30 -0
- package/dist/components/icon/Icon.mjs +2 -2
- package/dist/components/icon/index.js +30 -0
- package/dist/components/icon/index.mjs +2 -2
- package/dist/components/icon/template.d.mts +1 -0
- package/dist/components/icon/template.d.ts +1 -0
- package/dist/components/icon/template.js +30 -0
- package/dist/components/icon/template.mjs +1 -1
- package/dist/components/input/index.js +36 -4
- package/dist/components/input/index.mjs +3 -3
- package/dist/components/input/input.d.mts +9 -4
- package/dist/components/input/input.d.ts +9 -4
- package/dist/components/input/input.js +36 -4
- package/dist/components/input/input.mjs +3 -3
- package/dist/components/input/input.test.js +36 -4
- package/dist/components/input/input.test.mjs +6 -6
- package/dist/components/list/index.js +3 -3
- package/dist/components/list/index.mjs +1 -1
- package/dist/components/list/list.d.mts +3 -3
- package/dist/components/list/list.d.ts +3 -3
- package/dist/components/list/list.test.mjs +1 -1
- package/dist/components/list/listItem.d.mts +4 -4
- package/dist/components/list/listItem.d.ts +4 -4
- package/dist/components/list/listItem.js +3 -3
- package/dist/components/list/listItem.mjs +1 -1
- package/dist/components/modal/index.js +506 -128
- package/dist/components/modal/index.mjs +6 -5
- package/dist/components/modal/modal.d.mts +2 -2
- package/dist/components/modal/modal.d.ts +2 -2
- package/dist/components/modal/modal.js +506 -128
- package/dist/components/modal/modal.mjs +6 -5
- package/dist/components/modal/modal.test.js +498 -130
- package/dist/components/modal/modal.test.mjs +6 -5
- package/dist/components/pagination/index.js +16 -16
- package/dist/components/pagination/index.mjs +1 -1
- package/dist/components/pagination/pagination.d.mts +2 -2
- package/dist/components/pagination/pagination.d.ts +2 -2
- package/dist/components/pagination/pagination.js +16 -16
- package/dist/components/pagination/pagination.mjs +1 -1
- package/dist/components/pagination/pagination.test.js +16 -16
- package/dist/components/pagination/pagination.test.mjs +2 -2
- package/dist/components/progress/index.js +9 -9
- package/dist/components/progress/index.mjs +1 -1
- package/dist/components/progress/progress.d.mts +35 -35
- package/dist/components/progress/progress.d.ts +35 -35
- package/dist/components/progress/progress.js +9 -9
- package/dist/components/progress/progress.mjs +1 -1
- package/dist/components/progress/progress.test.js +9 -9
- package/dist/components/progress/progress.test.mjs +1 -1
- package/dist/components/radio/index.js +37 -19
- package/dist/components/radio/index.mjs +1 -1
- package/dist/components/radio/radio.d.mts +35 -35
- package/dist/components/radio/radio.d.ts +35 -35
- package/dist/components/radio/radio.js +37 -19
- package/dist/components/radio/radio.mjs +1 -1
- package/dist/components/radio/radio.test.js +37 -19
- package/dist/components/radio/radio.test.mjs +2 -2
- package/dist/components/select/index.js +36 -5
- package/dist/components/select/index.mjs +4 -4
- package/dist/components/select/option.js +30 -0
- package/dist/components/select/option.mjs +3 -3
- package/dist/components/select/select.d.mts +4 -4
- package/dist/components/select/select.d.ts +4 -4
- package/dist/components/select/select.js +36 -5
- package/dist/components/select/select.mjs +4 -4
- package/dist/components/select/select.test.js +36 -5
- package/dist/components/select/select.test.mjs +9 -9
- package/dist/components/select/useSelect.d.mts +3 -3
- package/dist/components/select/useSelect.d.ts +3 -3
- package/dist/components/slider/index.js +9 -4
- package/dist/components/slider/index.mjs +1 -1
- package/dist/components/slider/slider.d.mts +28 -2
- package/dist/components/slider/slider.d.ts +28 -2
- package/dist/components/slider/slider.js +9 -4
- package/dist/components/slider/slider.mjs +1 -1
- package/dist/components/slider/slider.test.js +9 -4
- package/dist/components/slider/slider.test.mjs +1 -1
- package/dist/components/switch/index.js +14 -14
- package/dist/components/switch/index.mjs +1 -1
- package/dist/components/switch/switch.d.mts +50 -50
- package/dist/components/switch/switch.d.ts +50 -50
- package/dist/components/switch/switch.js +14 -14
- package/dist/components/switch/switch.mjs +1 -1
- package/dist/components/switch/switch.test.js +14 -14
- package/dist/components/switch/switch.test.mjs +2 -2
- package/dist/components/table/index.js +66 -27
- package/dist/components/table/index.mjs +7 -7
- package/dist/components/table/table-body.d.mts +2 -2
- package/dist/components/table/table-body.d.ts +2 -2
- package/dist/components/table/table-body.js +60 -23
- package/dist/components/table/table-body.mjs +5 -5
- package/dist/components/table/table-head.js +28 -21
- package/dist/components/table/table-head.mjs +2 -2
- package/dist/components/table/table.d.mts +26 -12
- package/dist/components/table/table.d.ts +26 -12
- package/dist/components/table/table.js +66 -27
- package/dist/components/table/table.mjs +7 -7
- package/dist/components/table/table.test.js +66 -27
- package/dist/components/table/table.test.mjs +8 -8
- package/dist/components/tabs/tabs.d.mts +3 -3
- package/dist/components/tabs/tabs.d.ts +3 -3
- package/dist/components/tabs/tabs.test.mjs +4 -4
- package/dist/components/textarea/index.d.mts +3 -0
- package/dist/components/textarea/index.d.ts +3 -0
- package/dist/components/textarea/index.js +89 -30
- package/dist/components/textarea/index.mjs +2 -1
- package/dist/components/textarea/textarea.d.mts +512 -11
- package/dist/components/textarea/textarea.d.ts +512 -11
- package/dist/components/textarea/textarea.js +89 -30
- package/dist/components/textarea/textarea.mjs +2 -1
- package/dist/components/textarea/textarea.test.js +89 -30
- package/dist/components/textarea/textarea.test.mjs +3 -2
- package/dist/components/toast/index.js +30 -0
- package/dist/components/toast/index.mjs +4 -4
- package/dist/components/toast/toast.d.mts +2 -2
- package/dist/components/toast/toast.d.ts +2 -2
- package/dist/components/toast/toast.js +30 -0
- package/dist/components/toast/toast.mjs +3 -3
- package/dist/components/toast/toast.test.js +30 -0
- package/dist/components/toast/toast.test.mjs +5 -5
- package/dist/components/toast/use-toast.js +30 -0
- package/dist/components/toast/use-toast.mjs +4 -4
- package/dist/components/tooltip/index.d.mts +1 -1
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/tooltip/tooltip-utils.d.mts +1 -1
- package/dist/components/tooltip/tooltip-utils.d.ts +1 -1
- package/dist/components/tooltip/tooltip.d.mts +3 -3
- package/dist/components/tooltip/tooltip.d.ts +3 -3
- package/dist/components/tooltip/tooltip.test.js +4034 -118
- package/dist/components/tooltip/tooltip.test.mjs +7 -4
- package/dist/components/tooltip/useTooltip.d.mts +1 -1
- package/dist/components/tooltip/useTooltip.d.ts +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3741 -2611
- package/dist/index.mjs +71 -52
- package/dist/{tooltip-utils-DCKA5gnI.d.ts → tooltip-utils-CrCabndd.d.mts} +2 -2
- package/dist/{tooltip-utils-DCKA5gnI.d.mts → tooltip-utils-CrCabndd.d.ts} +2 -2
- package/package.json +1 -1
- package/dist/chunk-66WCZEEU.mjs +0 -320
- package/dist/chunk-WOX3SLJB.mjs +0 -162
|
@@ -111,10 +111,7 @@ var CheckBox = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
111
111
|
fill: "none",
|
|
112
112
|
points: "1 9 7 14 15 4",
|
|
113
113
|
stroke: "currentColor",
|
|
114
|
-
strokeDasharray: 22,
|
|
115
|
-
strokeDashoffset: isSelected ? 44 : 66,
|
|
116
114
|
strokeLinecap: "round",
|
|
117
|
-
strokeLinejoin: "round",
|
|
118
115
|
strokeWidth: 3,
|
|
119
116
|
style: isSelected ? {
|
|
120
117
|
transition: "stroke-dashoffset 250ms linear 0.2s"
|
|
@@ -132,7 +129,7 @@ CheckBox.displayName = "CheckBox";
|
|
|
132
129
|
var checkbox_default = CheckBox;
|
|
133
130
|
var checkbox = tv({
|
|
134
131
|
slots: {
|
|
135
|
-
base: "group relative inline-flex items-center cursor-pointer",
|
|
132
|
+
base: ["group", "relative", "inline-flex", "items-center", "cursor-pointer"],
|
|
136
133
|
wrapper: [
|
|
137
134
|
"relative",
|
|
138
135
|
"inline-flex",
|
|
@@ -159,33 +156,33 @@ var checkbox = tv({
|
|
|
159
156
|
"group-hover:before:bg-neutral-soft",
|
|
160
157
|
"before:transition duration-200"
|
|
161
158
|
],
|
|
162
|
-
icon: "z-10 opacity-0 group-has-[:checked]:opacity-100 text-white",
|
|
163
|
-
label: "relative text-foreground select-none"
|
|
159
|
+
icon: ["z-10", "opacity-0", "group-has-[:checked]:opacity-100", "text-white"],
|
|
160
|
+
label: ["relative", "text-foreground", "select-none"]
|
|
164
161
|
},
|
|
165
162
|
variants: {
|
|
166
163
|
color: {
|
|
167
164
|
primary: {
|
|
168
|
-
wrapper: "group-has-[:checked]:before:border-primary-main group-has-[:checked]:before:bg-primary-main"
|
|
165
|
+
wrapper: ["group-has-[:checked]:before:border-primary-main", "group-has-[:checked]:before:bg-primary-main"]
|
|
169
166
|
},
|
|
170
167
|
secondary: {
|
|
171
|
-
wrapper: "group-has-[:checked]:before:border-secondary-main group-has-[:checked]:before:bg-secondary-main"
|
|
168
|
+
wrapper: ["group-has-[:checked]:before:border-secondary-main", "group-has-[:checked]:before:bg-secondary-main"]
|
|
172
169
|
}
|
|
173
170
|
},
|
|
174
171
|
size: {
|
|
175
172
|
sm: {
|
|
176
|
-
wrapper: ["w-[15px] h-[15px] rounded-sm", "before:rounded-[
|
|
177
|
-
label: "text-sm ml-[
|
|
178
|
-
icon: "w-[10px] h-[10px]"
|
|
173
|
+
wrapper: ["w-[15px]", "h-[15px]", "rounded-sm", "before:rounded-[3px]", "after:rounded-[3px]"],
|
|
174
|
+
label: ["text-sm", "ml-[6px]"],
|
|
175
|
+
icon: ["w-[10px]", "h-[10px]"]
|
|
179
176
|
},
|
|
180
177
|
md: {
|
|
181
|
-
wrapper: ["w-[17px] h-[17px] rounded-md", "before:rounded-[
|
|
182
|
-
label: "text-md ml-[
|
|
183
|
-
icon: "w-[12px] h-[12px]"
|
|
178
|
+
wrapper: ["w-[17px]", "h-[17px]", "rounded-md", "before:rounded-[3px]", "after:rounded-[3px]"],
|
|
179
|
+
label: ["text-md", "ml-[8px]"],
|
|
180
|
+
icon: ["w-[12px]", "h-[12px]"]
|
|
184
181
|
},
|
|
185
182
|
lg: {
|
|
186
|
-
wrapper: ["w-[20px] h-[20px] rounded-lg", "before:rounded-[
|
|
187
|
-
label: "text-lg ml-[10px]",
|
|
188
|
-
icon: "w-[15px] h-[15px]"
|
|
183
|
+
wrapper: ["w-[20px]", "h-[20px]", "rounded-lg", "before:rounded-[4px]", "after:rounded-[4px]"],
|
|
184
|
+
label: ["text-lg", "ml-[10px]"],
|
|
185
|
+
icon: ["w-[15px]", "h-[15px]"]
|
|
189
186
|
}
|
|
190
187
|
},
|
|
191
188
|
lineThrough: {
|
|
@@ -206,14 +203,24 @@ var checkbox = tv({
|
|
|
206
203
|
},
|
|
207
204
|
isInvalid: {
|
|
208
205
|
true: {
|
|
209
|
-
wrapper:
|
|
206
|
+
wrapper: [
|
|
207
|
+
"before:border-danger-main",
|
|
208
|
+
"group-has-[:checked]:before:bg-danger-main",
|
|
209
|
+
"group-has-[:checked]:before:border-danger-main"
|
|
210
|
+
],
|
|
210
211
|
label: "text-danger-main"
|
|
211
212
|
}
|
|
212
213
|
},
|
|
213
214
|
isDisabled: {
|
|
214
215
|
true: {
|
|
215
216
|
base: "opacity-disabled pointer-events-none text-neutral-light",
|
|
216
|
-
wrapper:
|
|
217
|
+
wrapper: [
|
|
218
|
+
"after:bg-neutral-soft",
|
|
219
|
+
"before:border-neutral-light",
|
|
220
|
+
"before:bg-neutral-soft",
|
|
221
|
+
"group-has-[:checked]:before:bg-neutral-soft",
|
|
222
|
+
"group-has-[:checked]:before:border-neutral-light"
|
|
223
|
+
],
|
|
217
224
|
label: "text-neutral-light",
|
|
218
225
|
icon: "text-neutral-light"
|
|
219
226
|
}
|
|
@@ -234,8 +241,8 @@ var checkbox = tv({
|
|
|
234
241
|
"after:!duration-200",
|
|
235
242
|
"motion-reduce:transition-none"
|
|
236
243
|
],
|
|
237
|
-
icon: "transition-opacity motion-reduce:transition-none",
|
|
238
|
-
label: "transition-colors-opacity before:transition-width motion-reduce:transition-none"
|
|
244
|
+
icon: ["transition-opacity", "motion-reduce:transition-none"],
|
|
245
|
+
label: ["transition-colors-opacity", "before:transition-width", "motion-reduce:transition-none"]
|
|
239
246
|
}
|
|
240
247
|
}
|
|
241
248
|
},
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
+
import React__default, { ComponentProps } from 'react';
|
|
5
|
+
import { SlotsToClasses } from '../../utils/types.mjs';
|
|
6
|
+
|
|
7
|
+
interface Props extends Omit<ComponentProps<"input">, "size"> {
|
|
8
|
+
classNames?: SlotsToClasses<CalendarSlots>;
|
|
9
|
+
selectedDate?: string;
|
|
10
|
+
highlightWeekend?: boolean;
|
|
11
|
+
onChangeDate?: (date: string) => void;
|
|
12
|
+
}
|
|
13
|
+
type CalendarProps = Props & CalendarVariantProps;
|
|
14
|
+
declare const Calendar: React__default.ForwardRefExoticComponent<Omit<CalendarProps, "ref"> & React__default.RefAttributes<any>>;
|
|
15
|
+
|
|
16
|
+
declare const calendarStyle: tailwind_variants.TVReturnType<{
|
|
17
|
+
variant: {
|
|
18
|
+
solid: {};
|
|
19
|
+
};
|
|
20
|
+
color: {
|
|
21
|
+
primary: {
|
|
22
|
+
date: string[];
|
|
23
|
+
};
|
|
24
|
+
secondary: {
|
|
25
|
+
date: string[];
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
}, {
|
|
29
|
+
base: string[];
|
|
30
|
+
dateTitle: string[];
|
|
31
|
+
date: string[];
|
|
32
|
+
}, undefined, {
|
|
33
|
+
responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
|
|
34
|
+
variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
35
|
+
color?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
36
|
+
} | undefined;
|
|
37
|
+
} & tailwind_variants_dist_config.TWMConfig & {
|
|
38
|
+
twMergeConfig: {
|
|
39
|
+
classGroups: {
|
|
40
|
+
fontSize: {
|
|
41
|
+
text: string[];
|
|
42
|
+
}[];
|
|
43
|
+
borderRadius: {
|
|
44
|
+
rounded: string[];
|
|
45
|
+
}[];
|
|
46
|
+
boxShadow: {
|
|
47
|
+
shadow: string[];
|
|
48
|
+
}[];
|
|
49
|
+
padding: {
|
|
50
|
+
p: string[];
|
|
51
|
+
}[];
|
|
52
|
+
gap: {
|
|
53
|
+
gap: string[];
|
|
54
|
+
}[];
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
}, {
|
|
58
|
+
variant: {
|
|
59
|
+
solid: {};
|
|
60
|
+
};
|
|
61
|
+
color: {
|
|
62
|
+
primary: {
|
|
63
|
+
date: string[];
|
|
64
|
+
};
|
|
65
|
+
secondary: {
|
|
66
|
+
date: string[];
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
}, {
|
|
70
|
+
base: string[];
|
|
71
|
+
dateTitle: string[];
|
|
72
|
+
date: string[];
|
|
73
|
+
}, tailwind_variants.TVReturnType<{
|
|
74
|
+
variant: {
|
|
75
|
+
solid: {};
|
|
76
|
+
};
|
|
77
|
+
color: {
|
|
78
|
+
primary: {
|
|
79
|
+
date: string[];
|
|
80
|
+
};
|
|
81
|
+
secondary: {
|
|
82
|
+
date: string[];
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
}, {
|
|
86
|
+
base: string[];
|
|
87
|
+
dateTitle: string[];
|
|
88
|
+
date: string[];
|
|
89
|
+
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
90
|
+
variant: {
|
|
91
|
+
solid: {};
|
|
92
|
+
};
|
|
93
|
+
color: {
|
|
94
|
+
primary: {
|
|
95
|
+
date: string[];
|
|
96
|
+
};
|
|
97
|
+
secondary: {
|
|
98
|
+
date: string[];
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
}, {
|
|
102
|
+
variant: {
|
|
103
|
+
solid: {};
|
|
104
|
+
};
|
|
105
|
+
color: {
|
|
106
|
+
primary: {
|
|
107
|
+
date: string[];
|
|
108
|
+
};
|
|
109
|
+
secondary: {
|
|
110
|
+
date: string[];
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
}>, unknown, unknown, undefined>>;
|
|
114
|
+
type CalendarVariantProps = VariantProps<typeof calendarStyle>;
|
|
115
|
+
type CalendarSlots = keyof ReturnType<typeof calendarStyle>;
|
|
116
|
+
type CalendarReturnType = ReturnType<typeof calendarStyle>;
|
|
117
|
+
|
|
118
|
+
export { type CalendarProps, type CalendarReturnType, type CalendarSlots, type CalendarVariantProps, type Props, calendarStyle, Calendar as default };
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
+
import React__default, { ComponentProps } from 'react';
|
|
5
|
+
import { SlotsToClasses } from '../../utils/types.js';
|
|
6
|
+
|
|
7
|
+
interface Props extends Omit<ComponentProps<"input">, "size"> {
|
|
8
|
+
classNames?: SlotsToClasses<CalendarSlots>;
|
|
9
|
+
selectedDate?: string;
|
|
10
|
+
highlightWeekend?: boolean;
|
|
11
|
+
onChangeDate?: (date: string) => void;
|
|
12
|
+
}
|
|
13
|
+
type CalendarProps = Props & CalendarVariantProps;
|
|
14
|
+
declare const Calendar: React__default.ForwardRefExoticComponent<Omit<CalendarProps, "ref"> & React__default.RefAttributes<any>>;
|
|
15
|
+
|
|
16
|
+
declare const calendarStyle: tailwind_variants.TVReturnType<{
|
|
17
|
+
variant: {
|
|
18
|
+
solid: {};
|
|
19
|
+
};
|
|
20
|
+
color: {
|
|
21
|
+
primary: {
|
|
22
|
+
date: string[];
|
|
23
|
+
};
|
|
24
|
+
secondary: {
|
|
25
|
+
date: string[];
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
}, {
|
|
29
|
+
base: string[];
|
|
30
|
+
dateTitle: string[];
|
|
31
|
+
date: string[];
|
|
32
|
+
}, undefined, {
|
|
33
|
+
responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
|
|
34
|
+
variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
35
|
+
color?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
36
|
+
} | undefined;
|
|
37
|
+
} & tailwind_variants_dist_config.TWMConfig & {
|
|
38
|
+
twMergeConfig: {
|
|
39
|
+
classGroups: {
|
|
40
|
+
fontSize: {
|
|
41
|
+
text: string[];
|
|
42
|
+
}[];
|
|
43
|
+
borderRadius: {
|
|
44
|
+
rounded: string[];
|
|
45
|
+
}[];
|
|
46
|
+
boxShadow: {
|
|
47
|
+
shadow: string[];
|
|
48
|
+
}[];
|
|
49
|
+
padding: {
|
|
50
|
+
p: string[];
|
|
51
|
+
}[];
|
|
52
|
+
gap: {
|
|
53
|
+
gap: string[];
|
|
54
|
+
}[];
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
}, {
|
|
58
|
+
variant: {
|
|
59
|
+
solid: {};
|
|
60
|
+
};
|
|
61
|
+
color: {
|
|
62
|
+
primary: {
|
|
63
|
+
date: string[];
|
|
64
|
+
};
|
|
65
|
+
secondary: {
|
|
66
|
+
date: string[];
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
}, {
|
|
70
|
+
base: string[];
|
|
71
|
+
dateTitle: string[];
|
|
72
|
+
date: string[];
|
|
73
|
+
}, tailwind_variants.TVReturnType<{
|
|
74
|
+
variant: {
|
|
75
|
+
solid: {};
|
|
76
|
+
};
|
|
77
|
+
color: {
|
|
78
|
+
primary: {
|
|
79
|
+
date: string[];
|
|
80
|
+
};
|
|
81
|
+
secondary: {
|
|
82
|
+
date: string[];
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
}, {
|
|
86
|
+
base: string[];
|
|
87
|
+
dateTitle: string[];
|
|
88
|
+
date: string[];
|
|
89
|
+
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
90
|
+
variant: {
|
|
91
|
+
solid: {};
|
|
92
|
+
};
|
|
93
|
+
color: {
|
|
94
|
+
primary: {
|
|
95
|
+
date: string[];
|
|
96
|
+
};
|
|
97
|
+
secondary: {
|
|
98
|
+
date: string[];
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
}, {
|
|
102
|
+
variant: {
|
|
103
|
+
solid: {};
|
|
104
|
+
};
|
|
105
|
+
color: {
|
|
106
|
+
primary: {
|
|
107
|
+
date: string[];
|
|
108
|
+
};
|
|
109
|
+
secondary: {
|
|
110
|
+
date: string[];
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
}>, unknown, unknown, undefined>>;
|
|
114
|
+
type CalendarVariantProps = VariantProps<typeof calendarStyle>;
|
|
115
|
+
type CalendarSlots = keyof ReturnType<typeof calendarStyle>;
|
|
116
|
+
type CalendarReturnType = ReturnType<typeof calendarStyle>;
|
|
117
|
+
|
|
118
|
+
export { type CalendarProps, type CalendarReturnType, type CalendarSlots, type CalendarVariantProps, type Props, calendarStyle, Calendar as default };
|