@kopexa/theme 1.4.2 → 1.4.3
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-5FI7W32M.mjs → chunk-25CHZW25.mjs} +3 -12
- package/dist/{chunk-HQ27V5V4.mjs → chunk-2C5EQ4P3.mjs} +4 -0
- package/dist/{chunk-IL3JFLE2.mjs → chunk-4UDOCFU5.mjs} +7 -0
- package/dist/chunk-JWF5ABNP.mjs +56 -0
- package/dist/chunk-PQSL3W26.mjs +96 -0
- package/dist/chunk-XSN6P5JL.mjs +0 -0
- package/dist/components/button.js +0 -9
- package/dist/components/button.mjs +2 -2
- package/dist/components/calendar.d.mts +124 -0
- package/dist/components/calendar.d.ts +124 -0
- package/dist/components/calendar.js +80 -0
- package/dist/components/calendar.mjs +6 -0
- package/dist/components/dropdown-menu.d.mts +6 -6
- package/dist/components/dropdown-menu.d.ts +6 -6
- package/dist/components/index.d.mts +2 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +173 -25
- package/dist/components/index.mjs +17 -7
- package/dist/components/input.d.mts +177 -0
- package/dist/components/input.d.ts +177 -0
- package/dist/components/input.js +124 -0
- package/dist/components/input.mjs +9 -0
- package/dist/components/spinner.d.mts +21 -0
- package/dist/components/spinner.d.ts +21 -0
- package/dist/components/spinner.js +7 -0
- package/dist/components/spinner.mjs +1 -1
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +173 -25
- package/dist/index.mjs +18 -7
- package/dist/utils/classes.d.mts +2 -1
- package/dist/utils/classes.d.ts +2 -1
- package/dist/utils/classes.js +7 -2
- package/dist/utils/classes.mjs +5 -3
- package/dist/utils/index.d.mts +2 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +18 -0
- package/dist/utils/index.mjs +1 -0
- package/dist/utils/types.d.mts +10 -0
- package/dist/utils/types.d.ts +10 -0
- package/dist/utils/types.js +18 -0
- package/dist/utils/types.mjs +0 -0
- package/package.json +2 -2
- /package/dist/{chunk-KIDK6JOG.mjs → chunk-HNTFXPSN.mjs} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
focusVisibleClasses
|
|
3
|
-
} from "./chunk-HQ27V5V4.mjs";
|
|
4
1
|
import {
|
|
5
2
|
colorVariants
|
|
6
3
|
} from "./chunk-U6ONJKJY.mjs";
|
|
4
|
+
import {
|
|
5
|
+
focusVisibleClasses
|
|
6
|
+
} from "./chunk-2C5EQ4P3.mjs";
|
|
7
7
|
|
|
8
8
|
// src/components/button.ts
|
|
9
9
|
import { tv } from "tailwind-variants";
|
|
@@ -26,15 +26,6 @@ var button = tv({
|
|
|
26
26
|
ghost: "",
|
|
27
27
|
outline: "border-2 bg-transparent",
|
|
28
28
|
link: ""
|
|
29
|
-
// destructive:
|
|
30
|
-
// "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
31
|
-
// outline:
|
|
32
|
-
// "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
33
|
-
// secondary:
|
|
34
|
-
// "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
|
|
35
|
-
// ghost:
|
|
36
|
-
// "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
37
|
-
// link: "text-primary underline-offset-4 hover:underline",
|
|
38
29
|
},
|
|
39
30
|
size: {
|
|
40
31
|
sm: "px-3 min-w-16 h-8 text-xs gap-2 rounded-sm has-[>svg]:px-2.5",
|
|
@@ -3,9 +3,13 @@ var focusVisibleClasses = [
|
|
|
3
3
|
"focus-visible:outline-2 focus-visible:outline-ring focus-visible:outline-offset-2"
|
|
4
4
|
//"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
5
5
|
];
|
|
6
|
+
var focusWithinClasses = [
|
|
7
|
+
"focus-within:outline-2 focus-within:outline-ring focus-within:outline-offset-2"
|
|
8
|
+
];
|
|
6
9
|
var dataFocusVisibleClasses = ["outline-hidden"];
|
|
7
10
|
|
|
8
11
|
export {
|
|
9
12
|
focusVisibleClasses,
|
|
13
|
+
focusWithinClasses,
|
|
10
14
|
dataFocusVisibleClasses
|
|
11
15
|
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// src/components/calendar.ts
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
var calendar = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
base: [
|
|
6
|
+
"bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
|
|
7
|
+
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
8
|
+
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`
|
|
9
|
+
],
|
|
10
|
+
icon: "size-4",
|
|
11
|
+
root: "w-fit",
|
|
12
|
+
months: "flex gap-4 flex-col md:flex-row relative",
|
|
13
|
+
month: "flex flex-col w-full gap-4",
|
|
14
|
+
nav: "flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",
|
|
15
|
+
buttonPrevious: "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
16
|
+
buttonNext: "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
17
|
+
monthCaption: "flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
|
|
18
|
+
dropdown: "absolute bg-popover inset-0 opacity-0",
|
|
19
|
+
dropdowns: "w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
|
|
20
|
+
dropdownRoot: "relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",
|
|
21
|
+
captionLabel: "select-none font-medium",
|
|
22
|
+
table: "w-full border-collapse",
|
|
23
|
+
weekdays: "flex",
|
|
24
|
+
weekday: "text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",
|
|
25
|
+
week: "flex w-full mt-2",
|
|
26
|
+
weekNumberWrapper: "flex size-(--cell-size) items-center justify-center text-center",
|
|
27
|
+
weekNumberHeader: "select-none w-(--cell-size)",
|
|
28
|
+
weekNumber: "text-[0.8rem] select-none text-muted-foreground",
|
|
29
|
+
day: "relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",
|
|
30
|
+
dayButton: "data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",
|
|
31
|
+
rangeStart: "rounded-l-md bg-accent",
|
|
32
|
+
rangeMiddle: "rounded-none",
|
|
33
|
+
rangeEnd: "rounded-r-md bg-accent",
|
|
34
|
+
today: "bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
|
|
35
|
+
outside: "text-muted-foreground aria-selected:text-muted-foreground",
|
|
36
|
+
disabled: "text-muted-foreground opacity-50",
|
|
37
|
+
hidden: "invisible"
|
|
38
|
+
},
|
|
39
|
+
variants: {
|
|
40
|
+
captionLayout: {
|
|
41
|
+
label: {
|
|
42
|
+
captionLabel: "text-sm"
|
|
43
|
+
},
|
|
44
|
+
default: {
|
|
45
|
+
captionLabel: "rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
defaultVariants: {
|
|
50
|
+
captionLayout: "default"
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export {
|
|
55
|
+
calendar
|
|
56
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import {
|
|
2
|
+
focusWithinClasses
|
|
3
|
+
} from "./chunk-2C5EQ4P3.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/input.ts
|
|
6
|
+
import { tv } from "tailwind-variants";
|
|
7
|
+
var passwordInput = tv({
|
|
8
|
+
slots: {
|
|
9
|
+
button: "focus:outline-hidden",
|
|
10
|
+
icon: "pointer-events-none text-muted-foreground"
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
var input = tv({
|
|
14
|
+
base: [],
|
|
15
|
+
slots: {
|
|
16
|
+
inputWrapper: [
|
|
17
|
+
"relative w-full inline-flex flex-row items-center shadow-xs px-3 gap-3 [&_svg]:shrink-0",
|
|
18
|
+
"border-input border dark:bg-input/30 data-[hidden=true]:hidden transition-[color,box-shadow]",
|
|
19
|
+
"data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50",
|
|
20
|
+
...focusWithinClasses
|
|
21
|
+
],
|
|
22
|
+
innerWrapper: "inline-flex w-full items-center h-full box-border",
|
|
23
|
+
input: [
|
|
24
|
+
"w-full font-normal outline-hidden focus-visible:outline-hidden",
|
|
25
|
+
"data-[has-start-content=true]:ps-1.5",
|
|
26
|
+
"data-[has-end-content=true]:pe-1.5",
|
|
27
|
+
"file:cursor-pointer file:bg-transparent file:border-0",
|
|
28
|
+
"autofill:bg-transparent bg-clip-text",
|
|
29
|
+
// legacy
|
|
30
|
+
"selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground",
|
|
31
|
+
"flex",
|
|
32
|
+
// file
|
|
33
|
+
"file:text-foreground file:inline-flex file:text-sm file:font-medium",
|
|
34
|
+
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive"
|
|
35
|
+
],
|
|
36
|
+
clearButton: [
|
|
37
|
+
"p-2 -m-2 z-10 absolute end-3 start-auto pointer-events-none",
|
|
38
|
+
"appearance-none outline-hidden select-none opacity-0 cursor-pointer",
|
|
39
|
+
"active:!opacity-70 rounded-full"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
variants: {
|
|
43
|
+
size: {
|
|
44
|
+
sm: {
|
|
45
|
+
inputWrapper: ["h-8 min-h-8 px-2 rounded-sm [&_svg]:size-4"],
|
|
46
|
+
input: "text-sm file:h-6"
|
|
47
|
+
},
|
|
48
|
+
md: {
|
|
49
|
+
inputWrapper: "h-10 min-10 rounded-md [&_svg]:size-4",
|
|
50
|
+
input: "text-base md:text-sm file:h-8",
|
|
51
|
+
clearButton: "hover:opacity-100"
|
|
52
|
+
},
|
|
53
|
+
lg: {
|
|
54
|
+
inputWrapper: "h-12 min-h-12 rounded-lg [&_svg]:size-4",
|
|
55
|
+
input: "text-base file:h-10",
|
|
56
|
+
clearButton: "hover:opacity-100"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
radius: {
|
|
60
|
+
none: {
|
|
61
|
+
inputWrapper: "rounded-none"
|
|
62
|
+
},
|
|
63
|
+
sm: {
|
|
64
|
+
inputWrapper: "rounded-sm"
|
|
65
|
+
},
|
|
66
|
+
md: {
|
|
67
|
+
inputWrapper: "rounded-md"
|
|
68
|
+
},
|
|
69
|
+
lg: {
|
|
70
|
+
inputWrapper: "rounded-lg"
|
|
71
|
+
},
|
|
72
|
+
full: {
|
|
73
|
+
inputWrapper: "rounded-full"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
isClearable: {
|
|
77
|
+
true: {
|
|
78
|
+
input: "peer pe-6",
|
|
79
|
+
clearButton: [
|
|
80
|
+
"peer-data-[filled=true]:pointer-events-auto",
|
|
81
|
+
"peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block",
|
|
82
|
+
"peer-data-[filled=true]:scale-100"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
false: {}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
defaultVariants: {
|
|
89
|
+
size: "md"
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
export {
|
|
94
|
+
passwordInput,
|
|
95
|
+
input
|
|
96
|
+
};
|
|
File without changes
|
|
@@ -79,15 +79,6 @@ var button = (0, import_tailwind_variants.tv)({
|
|
|
79
79
|
ghost: "",
|
|
80
80
|
outline: "border-2 bg-transparent",
|
|
81
81
|
link: ""
|
|
82
|
-
// destructive:
|
|
83
|
-
// "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
84
|
-
// outline:
|
|
85
|
-
// "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
86
|
-
// secondary:
|
|
87
|
-
// "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
|
|
88
|
-
// ghost:
|
|
89
|
-
// "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
90
|
-
// link: "text-primary underline-offset-4 hover:underline",
|
|
91
82
|
},
|
|
92
83
|
size: {
|
|
93
84
|
sm: "px-3 min-w-16 h-8 text-xs gap-2 rounded-sm has-[>svg]:px-2.5",
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const calendar: tailwind_variants.TVReturnType<{
|
|
5
|
+
captionLayout: {
|
|
6
|
+
label: {
|
|
7
|
+
captionLabel: string;
|
|
8
|
+
};
|
|
9
|
+
default: {
|
|
10
|
+
captionLabel: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}, {
|
|
14
|
+
base: string[];
|
|
15
|
+
icon: string;
|
|
16
|
+
root: string;
|
|
17
|
+
months: string;
|
|
18
|
+
month: string;
|
|
19
|
+
nav: string;
|
|
20
|
+
buttonPrevious: string;
|
|
21
|
+
buttonNext: string;
|
|
22
|
+
monthCaption: string;
|
|
23
|
+
dropdown: string;
|
|
24
|
+
dropdowns: string;
|
|
25
|
+
dropdownRoot: string;
|
|
26
|
+
captionLabel: string;
|
|
27
|
+
table: string;
|
|
28
|
+
weekdays: string;
|
|
29
|
+
weekday: string;
|
|
30
|
+
week: string;
|
|
31
|
+
weekNumberWrapper: string;
|
|
32
|
+
weekNumberHeader: string;
|
|
33
|
+
weekNumber: string;
|
|
34
|
+
day: string;
|
|
35
|
+
dayButton: string;
|
|
36
|
+
rangeStart: string;
|
|
37
|
+
rangeMiddle: string;
|
|
38
|
+
rangeEnd: string;
|
|
39
|
+
today: string;
|
|
40
|
+
outside: string;
|
|
41
|
+
disabled: string;
|
|
42
|
+
hidden: string;
|
|
43
|
+
}, undefined, {
|
|
44
|
+
captionLayout: {
|
|
45
|
+
label: {
|
|
46
|
+
captionLabel: string;
|
|
47
|
+
};
|
|
48
|
+
default: {
|
|
49
|
+
captionLabel: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
}, {
|
|
53
|
+
base: string[];
|
|
54
|
+
icon: string;
|
|
55
|
+
root: string;
|
|
56
|
+
months: string;
|
|
57
|
+
month: string;
|
|
58
|
+
nav: string;
|
|
59
|
+
buttonPrevious: string;
|
|
60
|
+
buttonNext: string;
|
|
61
|
+
monthCaption: string;
|
|
62
|
+
dropdown: string;
|
|
63
|
+
dropdowns: string;
|
|
64
|
+
dropdownRoot: string;
|
|
65
|
+
captionLabel: string;
|
|
66
|
+
table: string;
|
|
67
|
+
weekdays: string;
|
|
68
|
+
weekday: string;
|
|
69
|
+
week: string;
|
|
70
|
+
weekNumberWrapper: string;
|
|
71
|
+
weekNumberHeader: string;
|
|
72
|
+
weekNumber: string;
|
|
73
|
+
day: string;
|
|
74
|
+
dayButton: string;
|
|
75
|
+
rangeStart: string;
|
|
76
|
+
rangeMiddle: string;
|
|
77
|
+
rangeEnd: string;
|
|
78
|
+
today: string;
|
|
79
|
+
outside: string;
|
|
80
|
+
disabled: string;
|
|
81
|
+
hidden: string;
|
|
82
|
+
}, tailwind_variants.TVReturnType<{
|
|
83
|
+
captionLayout: {
|
|
84
|
+
label: {
|
|
85
|
+
captionLabel: string;
|
|
86
|
+
};
|
|
87
|
+
default: {
|
|
88
|
+
captionLabel: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
}, {
|
|
92
|
+
base: string[];
|
|
93
|
+
icon: string;
|
|
94
|
+
root: string;
|
|
95
|
+
months: string;
|
|
96
|
+
month: string;
|
|
97
|
+
nav: string;
|
|
98
|
+
buttonPrevious: string;
|
|
99
|
+
buttonNext: string;
|
|
100
|
+
monthCaption: string;
|
|
101
|
+
dropdown: string;
|
|
102
|
+
dropdowns: string;
|
|
103
|
+
dropdownRoot: string;
|
|
104
|
+
captionLabel: string;
|
|
105
|
+
table: string;
|
|
106
|
+
weekdays: string;
|
|
107
|
+
weekday: string;
|
|
108
|
+
week: string;
|
|
109
|
+
weekNumberWrapper: string;
|
|
110
|
+
weekNumberHeader: string;
|
|
111
|
+
weekNumber: string;
|
|
112
|
+
day: string;
|
|
113
|
+
dayButton: string;
|
|
114
|
+
rangeStart: string;
|
|
115
|
+
rangeMiddle: string;
|
|
116
|
+
rangeEnd: string;
|
|
117
|
+
today: string;
|
|
118
|
+
outside: string;
|
|
119
|
+
disabled: string;
|
|
120
|
+
hidden: string;
|
|
121
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
122
|
+
type CalendarVariantProps = VariantProps<typeof calendar>;
|
|
123
|
+
|
|
124
|
+
export { type CalendarVariantProps, calendar };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const calendar: tailwind_variants.TVReturnType<{
|
|
5
|
+
captionLayout: {
|
|
6
|
+
label: {
|
|
7
|
+
captionLabel: string;
|
|
8
|
+
};
|
|
9
|
+
default: {
|
|
10
|
+
captionLabel: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}, {
|
|
14
|
+
base: string[];
|
|
15
|
+
icon: string;
|
|
16
|
+
root: string;
|
|
17
|
+
months: string;
|
|
18
|
+
month: string;
|
|
19
|
+
nav: string;
|
|
20
|
+
buttonPrevious: string;
|
|
21
|
+
buttonNext: string;
|
|
22
|
+
monthCaption: string;
|
|
23
|
+
dropdown: string;
|
|
24
|
+
dropdowns: string;
|
|
25
|
+
dropdownRoot: string;
|
|
26
|
+
captionLabel: string;
|
|
27
|
+
table: string;
|
|
28
|
+
weekdays: string;
|
|
29
|
+
weekday: string;
|
|
30
|
+
week: string;
|
|
31
|
+
weekNumberWrapper: string;
|
|
32
|
+
weekNumberHeader: string;
|
|
33
|
+
weekNumber: string;
|
|
34
|
+
day: string;
|
|
35
|
+
dayButton: string;
|
|
36
|
+
rangeStart: string;
|
|
37
|
+
rangeMiddle: string;
|
|
38
|
+
rangeEnd: string;
|
|
39
|
+
today: string;
|
|
40
|
+
outside: string;
|
|
41
|
+
disabled: string;
|
|
42
|
+
hidden: string;
|
|
43
|
+
}, undefined, {
|
|
44
|
+
captionLayout: {
|
|
45
|
+
label: {
|
|
46
|
+
captionLabel: string;
|
|
47
|
+
};
|
|
48
|
+
default: {
|
|
49
|
+
captionLabel: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
}, {
|
|
53
|
+
base: string[];
|
|
54
|
+
icon: string;
|
|
55
|
+
root: string;
|
|
56
|
+
months: string;
|
|
57
|
+
month: string;
|
|
58
|
+
nav: string;
|
|
59
|
+
buttonPrevious: string;
|
|
60
|
+
buttonNext: string;
|
|
61
|
+
monthCaption: string;
|
|
62
|
+
dropdown: string;
|
|
63
|
+
dropdowns: string;
|
|
64
|
+
dropdownRoot: string;
|
|
65
|
+
captionLabel: string;
|
|
66
|
+
table: string;
|
|
67
|
+
weekdays: string;
|
|
68
|
+
weekday: string;
|
|
69
|
+
week: string;
|
|
70
|
+
weekNumberWrapper: string;
|
|
71
|
+
weekNumberHeader: string;
|
|
72
|
+
weekNumber: string;
|
|
73
|
+
day: string;
|
|
74
|
+
dayButton: string;
|
|
75
|
+
rangeStart: string;
|
|
76
|
+
rangeMiddle: string;
|
|
77
|
+
rangeEnd: string;
|
|
78
|
+
today: string;
|
|
79
|
+
outside: string;
|
|
80
|
+
disabled: string;
|
|
81
|
+
hidden: string;
|
|
82
|
+
}, tailwind_variants.TVReturnType<{
|
|
83
|
+
captionLayout: {
|
|
84
|
+
label: {
|
|
85
|
+
captionLabel: string;
|
|
86
|
+
};
|
|
87
|
+
default: {
|
|
88
|
+
captionLabel: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
}, {
|
|
92
|
+
base: string[];
|
|
93
|
+
icon: string;
|
|
94
|
+
root: string;
|
|
95
|
+
months: string;
|
|
96
|
+
month: string;
|
|
97
|
+
nav: string;
|
|
98
|
+
buttonPrevious: string;
|
|
99
|
+
buttonNext: string;
|
|
100
|
+
monthCaption: string;
|
|
101
|
+
dropdown: string;
|
|
102
|
+
dropdowns: string;
|
|
103
|
+
dropdownRoot: string;
|
|
104
|
+
captionLabel: string;
|
|
105
|
+
table: string;
|
|
106
|
+
weekdays: string;
|
|
107
|
+
weekday: string;
|
|
108
|
+
week: string;
|
|
109
|
+
weekNumberWrapper: string;
|
|
110
|
+
weekNumberHeader: string;
|
|
111
|
+
weekNumber: string;
|
|
112
|
+
day: string;
|
|
113
|
+
dayButton: string;
|
|
114
|
+
rangeStart: string;
|
|
115
|
+
rangeMiddle: string;
|
|
116
|
+
rangeEnd: string;
|
|
117
|
+
today: string;
|
|
118
|
+
outside: string;
|
|
119
|
+
disabled: string;
|
|
120
|
+
hidden: string;
|
|
121
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
122
|
+
type CalendarVariantProps = VariantProps<typeof calendar>;
|
|
123
|
+
|
|
124
|
+
export { type CalendarVariantProps, calendar };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/components/calendar.ts
|
|
21
|
+
var calendar_exports = {};
|
|
22
|
+
__export(calendar_exports, {
|
|
23
|
+
calendar: () => calendar
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(calendar_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
var calendar = (0, import_tailwind_variants.tv)({
|
|
28
|
+
slots: {
|
|
29
|
+
base: [
|
|
30
|
+
"bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
|
|
31
|
+
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
32
|
+
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`
|
|
33
|
+
],
|
|
34
|
+
icon: "size-4",
|
|
35
|
+
root: "w-fit",
|
|
36
|
+
months: "flex gap-4 flex-col md:flex-row relative",
|
|
37
|
+
month: "flex flex-col w-full gap-4",
|
|
38
|
+
nav: "flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",
|
|
39
|
+
buttonPrevious: "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
40
|
+
buttonNext: "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
41
|
+
monthCaption: "flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
|
|
42
|
+
dropdown: "absolute bg-popover inset-0 opacity-0",
|
|
43
|
+
dropdowns: "w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
|
|
44
|
+
dropdownRoot: "relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",
|
|
45
|
+
captionLabel: "select-none font-medium",
|
|
46
|
+
table: "w-full border-collapse",
|
|
47
|
+
weekdays: "flex",
|
|
48
|
+
weekday: "text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",
|
|
49
|
+
week: "flex w-full mt-2",
|
|
50
|
+
weekNumberWrapper: "flex size-(--cell-size) items-center justify-center text-center",
|
|
51
|
+
weekNumberHeader: "select-none w-(--cell-size)",
|
|
52
|
+
weekNumber: "text-[0.8rem] select-none text-muted-foreground",
|
|
53
|
+
day: "relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",
|
|
54
|
+
dayButton: "data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",
|
|
55
|
+
rangeStart: "rounded-l-md bg-accent",
|
|
56
|
+
rangeMiddle: "rounded-none",
|
|
57
|
+
rangeEnd: "rounded-r-md bg-accent",
|
|
58
|
+
today: "bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
|
|
59
|
+
outside: "text-muted-foreground aria-selected:text-muted-foreground",
|
|
60
|
+
disabled: "text-muted-foreground opacity-50",
|
|
61
|
+
hidden: "invisible"
|
|
62
|
+
},
|
|
63
|
+
variants: {
|
|
64
|
+
captionLayout: {
|
|
65
|
+
label: {
|
|
66
|
+
captionLabel: "text-sm"
|
|
67
|
+
},
|
|
68
|
+
default: {
|
|
69
|
+
captionLabel: "rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
defaultVariants: {
|
|
74
|
+
captionLayout: "default"
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
78
|
+
0 && (module.exports = {
|
|
79
|
+
calendar
|
|
80
|
+
});
|
|
@@ -4,17 +4,17 @@ import { VariantProps } from 'tailwind-variants';
|
|
|
4
4
|
declare const dropdownMenu: tailwind_variants.TVReturnType<{
|
|
5
5
|
[key: string]: {
|
|
6
6
|
[key: string]: tailwind_variants.ClassValue | {
|
|
7
|
+
icon?: tailwind_variants.ClassValue;
|
|
7
8
|
root?: tailwind_variants.ClassValue;
|
|
9
|
+
label?: tailwind_variants.ClassValue;
|
|
8
10
|
separator?: tailwind_variants.ClassValue;
|
|
9
11
|
item?: tailwind_variants.ClassValue;
|
|
10
12
|
shortcut?: tailwind_variants.ClassValue;
|
|
11
13
|
content?: tailwind_variants.ClassValue;
|
|
12
14
|
checkboxItem?: tailwind_variants.ClassValue;
|
|
13
15
|
iconWrapper?: tailwind_variants.ClassValue;
|
|
14
|
-
icon?: tailwind_variants.ClassValue;
|
|
15
16
|
radioItem?: tailwind_variants.ClassValue;
|
|
16
17
|
radioItemIcon?: tailwind_variants.ClassValue;
|
|
17
|
-
label?: tailwind_variants.ClassValue;
|
|
18
18
|
subTrigger?: tailwind_variants.ClassValue;
|
|
19
19
|
subTriggerIcon?: tailwind_variants.ClassValue;
|
|
20
20
|
subContent?: tailwind_variants.ClassValue;
|
|
@@ -23,17 +23,17 @@ declare const dropdownMenu: tailwind_variants.TVReturnType<{
|
|
|
23
23
|
} | {
|
|
24
24
|
[x: string]: {
|
|
25
25
|
[x: string]: tailwind_variants.ClassValue | {
|
|
26
|
+
icon?: tailwind_variants.ClassValue;
|
|
26
27
|
root?: tailwind_variants.ClassValue;
|
|
28
|
+
label?: tailwind_variants.ClassValue;
|
|
27
29
|
separator?: tailwind_variants.ClassValue;
|
|
28
30
|
item?: tailwind_variants.ClassValue;
|
|
29
31
|
shortcut?: tailwind_variants.ClassValue;
|
|
30
32
|
content?: tailwind_variants.ClassValue;
|
|
31
33
|
checkboxItem?: tailwind_variants.ClassValue;
|
|
32
34
|
iconWrapper?: tailwind_variants.ClassValue;
|
|
33
|
-
icon?: tailwind_variants.ClassValue;
|
|
34
35
|
radioItem?: tailwind_variants.ClassValue;
|
|
35
36
|
radioItemIcon?: tailwind_variants.ClassValue;
|
|
36
|
-
label?: tailwind_variants.ClassValue;
|
|
37
37
|
subTrigger?: tailwind_variants.ClassValue;
|
|
38
38
|
subTriggerIcon?: tailwind_variants.ClassValue;
|
|
39
39
|
subContent?: tailwind_variants.ClassValue;
|
|
@@ -57,17 +57,17 @@ declare const dropdownMenu: tailwind_variants.TVReturnType<{
|
|
|
57
57
|
}, undefined, {
|
|
58
58
|
[key: string]: {
|
|
59
59
|
[key: string]: tailwind_variants.ClassValue | {
|
|
60
|
+
icon?: tailwind_variants.ClassValue;
|
|
60
61
|
root?: tailwind_variants.ClassValue;
|
|
62
|
+
label?: tailwind_variants.ClassValue;
|
|
61
63
|
separator?: tailwind_variants.ClassValue;
|
|
62
64
|
item?: tailwind_variants.ClassValue;
|
|
63
65
|
shortcut?: tailwind_variants.ClassValue;
|
|
64
66
|
content?: tailwind_variants.ClassValue;
|
|
65
67
|
checkboxItem?: tailwind_variants.ClassValue;
|
|
66
68
|
iconWrapper?: tailwind_variants.ClassValue;
|
|
67
|
-
icon?: tailwind_variants.ClassValue;
|
|
68
69
|
radioItem?: tailwind_variants.ClassValue;
|
|
69
70
|
radioItemIcon?: tailwind_variants.ClassValue;
|
|
70
|
-
label?: tailwind_variants.ClassValue;
|
|
71
71
|
subTrigger?: tailwind_variants.ClassValue;
|
|
72
72
|
subTriggerIcon?: tailwind_variants.ClassValue;
|
|
73
73
|
subContent?: tailwind_variants.ClassValue;
|