@kopexa/theme 1.4.1 → 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-E5AF4JZZ.mjs → chunk-25CHZW25.mjs} +4 -13
- package/dist/{chunk-HQ27V5V4.mjs → chunk-2C5EQ4P3.mjs} +4 -0
- package/dist/{chunk-IL3JFLE2.mjs → chunk-4UDOCFU5.mjs} +7 -0
- package/dist/{chunk-OEVKY5EP.mjs → chunk-5DF3M5JP.mjs} +3 -2
- package/dist/chunk-EXBKQDH5.mjs +24 -0
- package/dist/chunk-JWF5ABNP.mjs +56 -0
- package/dist/chunk-PQSL3W26.mjs +96 -0
- package/dist/{chunk-V74N5X6Z.mjs → chunk-UI2M2MFB.mjs} +1 -1
- package/dist/chunk-XSN6P5JL.mjs +0 -0
- package/dist/components/button.js +1 -10
- 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/dialog.js +3 -2
- package/dist/components/dialog.mjs +1 -1
- package/dist/components/drawer.js +3 -2
- package/dist/components/drawer.mjs +2 -2
- package/dist/components/dropdown-menu.d.mts +109 -0
- package/dist/components/dropdown-menu.d.ts +109 -0
- package/dist/components/dropdown-menu.js +48 -0
- package/dist/components/dropdown-menu.mjs +6 -0
- package/dist/components/index.d.mts +3 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +198 -26
- package/dist/components/index.mjs +25 -11
- 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 +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +198 -26
- package/dist/index.mjs +26 -11
- 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-ZKEY52ZF.mjs → chunk-HNTFXPSN.mjs} +0 -0
|
@@ -31,9 +31,10 @@ var dialog = (0, import_tailwind_variants.tv)({
|
|
|
31
31
|
slots: {
|
|
32
32
|
overlay: ["fixed inset-0 z-50 bg-black/25"],
|
|
33
33
|
content: [
|
|
34
|
+
"flex flex-col",
|
|
34
35
|
"bg-background fixed top-[50%] left-[50%] z-50",
|
|
35
|
-
"
|
|
36
|
-
"
|
|
36
|
+
"w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%]",
|
|
37
|
+
"border shadow-lg",
|
|
37
38
|
// mobile animation vars
|
|
38
39
|
"[--scale-enter:100%]",
|
|
39
40
|
"[--scale-exit:100%]",
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const dropdownMenu: tailwind_variants.TVReturnType<{
|
|
5
|
+
[key: string]: {
|
|
6
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
7
|
+
icon?: tailwind_variants.ClassValue;
|
|
8
|
+
root?: tailwind_variants.ClassValue;
|
|
9
|
+
label?: tailwind_variants.ClassValue;
|
|
10
|
+
separator?: tailwind_variants.ClassValue;
|
|
11
|
+
item?: tailwind_variants.ClassValue;
|
|
12
|
+
shortcut?: tailwind_variants.ClassValue;
|
|
13
|
+
content?: tailwind_variants.ClassValue;
|
|
14
|
+
checkboxItem?: tailwind_variants.ClassValue;
|
|
15
|
+
iconWrapper?: tailwind_variants.ClassValue;
|
|
16
|
+
radioItem?: tailwind_variants.ClassValue;
|
|
17
|
+
radioItemIcon?: tailwind_variants.ClassValue;
|
|
18
|
+
subTrigger?: tailwind_variants.ClassValue;
|
|
19
|
+
subTriggerIcon?: tailwind_variants.ClassValue;
|
|
20
|
+
subContent?: tailwind_variants.ClassValue;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
} | {
|
|
24
|
+
[x: string]: {
|
|
25
|
+
[x: string]: tailwind_variants.ClassValue | {
|
|
26
|
+
icon?: tailwind_variants.ClassValue;
|
|
27
|
+
root?: tailwind_variants.ClassValue;
|
|
28
|
+
label?: tailwind_variants.ClassValue;
|
|
29
|
+
separator?: tailwind_variants.ClassValue;
|
|
30
|
+
item?: tailwind_variants.ClassValue;
|
|
31
|
+
shortcut?: tailwind_variants.ClassValue;
|
|
32
|
+
content?: tailwind_variants.ClassValue;
|
|
33
|
+
checkboxItem?: tailwind_variants.ClassValue;
|
|
34
|
+
iconWrapper?: tailwind_variants.ClassValue;
|
|
35
|
+
radioItem?: tailwind_variants.ClassValue;
|
|
36
|
+
radioItemIcon?: tailwind_variants.ClassValue;
|
|
37
|
+
subTrigger?: tailwind_variants.ClassValue;
|
|
38
|
+
subTriggerIcon?: tailwind_variants.ClassValue;
|
|
39
|
+
subContent?: tailwind_variants.ClassValue;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
} | {}, {
|
|
43
|
+
root: string;
|
|
44
|
+
content: string;
|
|
45
|
+
item: string;
|
|
46
|
+
checkboxItem: string;
|
|
47
|
+
iconWrapper: string;
|
|
48
|
+
icon: string;
|
|
49
|
+
radioItem: string;
|
|
50
|
+
radioItemIcon: string;
|
|
51
|
+
label: string;
|
|
52
|
+
separator: string;
|
|
53
|
+
shortcut: string;
|
|
54
|
+
subTrigger: string;
|
|
55
|
+
subTriggerIcon: string;
|
|
56
|
+
subContent: string;
|
|
57
|
+
}, undefined, {
|
|
58
|
+
[key: string]: {
|
|
59
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
60
|
+
icon?: tailwind_variants.ClassValue;
|
|
61
|
+
root?: tailwind_variants.ClassValue;
|
|
62
|
+
label?: tailwind_variants.ClassValue;
|
|
63
|
+
separator?: tailwind_variants.ClassValue;
|
|
64
|
+
item?: tailwind_variants.ClassValue;
|
|
65
|
+
shortcut?: tailwind_variants.ClassValue;
|
|
66
|
+
content?: tailwind_variants.ClassValue;
|
|
67
|
+
checkboxItem?: tailwind_variants.ClassValue;
|
|
68
|
+
iconWrapper?: tailwind_variants.ClassValue;
|
|
69
|
+
radioItem?: tailwind_variants.ClassValue;
|
|
70
|
+
radioItemIcon?: tailwind_variants.ClassValue;
|
|
71
|
+
subTrigger?: tailwind_variants.ClassValue;
|
|
72
|
+
subTriggerIcon?: tailwind_variants.ClassValue;
|
|
73
|
+
subContent?: tailwind_variants.ClassValue;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
} | {}, {
|
|
77
|
+
root: string;
|
|
78
|
+
content: string;
|
|
79
|
+
item: string;
|
|
80
|
+
checkboxItem: string;
|
|
81
|
+
iconWrapper: string;
|
|
82
|
+
icon: string;
|
|
83
|
+
radioItem: string;
|
|
84
|
+
radioItemIcon: string;
|
|
85
|
+
label: string;
|
|
86
|
+
separator: string;
|
|
87
|
+
shortcut: string;
|
|
88
|
+
subTrigger: string;
|
|
89
|
+
subTriggerIcon: string;
|
|
90
|
+
subContent: string;
|
|
91
|
+
}, tailwind_variants.TVReturnType<unknown, {
|
|
92
|
+
root: string;
|
|
93
|
+
content: string;
|
|
94
|
+
item: string;
|
|
95
|
+
checkboxItem: string;
|
|
96
|
+
iconWrapper: string;
|
|
97
|
+
icon: string;
|
|
98
|
+
radioItem: string;
|
|
99
|
+
radioItemIcon: string;
|
|
100
|
+
label: string;
|
|
101
|
+
separator: string;
|
|
102
|
+
shortcut: string;
|
|
103
|
+
subTrigger: string;
|
|
104
|
+
subTriggerIcon: string;
|
|
105
|
+
subContent: string;
|
|
106
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
107
|
+
type DropdownMenuVariantProps = VariantProps<typeof dropdownMenu>;
|
|
108
|
+
|
|
109
|
+
export { type DropdownMenuVariantProps, dropdownMenu };
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const dropdownMenu: tailwind_variants.TVReturnType<{
|
|
5
|
+
[key: string]: {
|
|
6
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
7
|
+
icon?: tailwind_variants.ClassValue;
|
|
8
|
+
root?: tailwind_variants.ClassValue;
|
|
9
|
+
label?: tailwind_variants.ClassValue;
|
|
10
|
+
separator?: tailwind_variants.ClassValue;
|
|
11
|
+
item?: tailwind_variants.ClassValue;
|
|
12
|
+
shortcut?: tailwind_variants.ClassValue;
|
|
13
|
+
content?: tailwind_variants.ClassValue;
|
|
14
|
+
checkboxItem?: tailwind_variants.ClassValue;
|
|
15
|
+
iconWrapper?: tailwind_variants.ClassValue;
|
|
16
|
+
radioItem?: tailwind_variants.ClassValue;
|
|
17
|
+
radioItemIcon?: tailwind_variants.ClassValue;
|
|
18
|
+
subTrigger?: tailwind_variants.ClassValue;
|
|
19
|
+
subTriggerIcon?: tailwind_variants.ClassValue;
|
|
20
|
+
subContent?: tailwind_variants.ClassValue;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
} | {
|
|
24
|
+
[x: string]: {
|
|
25
|
+
[x: string]: tailwind_variants.ClassValue | {
|
|
26
|
+
icon?: tailwind_variants.ClassValue;
|
|
27
|
+
root?: tailwind_variants.ClassValue;
|
|
28
|
+
label?: tailwind_variants.ClassValue;
|
|
29
|
+
separator?: tailwind_variants.ClassValue;
|
|
30
|
+
item?: tailwind_variants.ClassValue;
|
|
31
|
+
shortcut?: tailwind_variants.ClassValue;
|
|
32
|
+
content?: tailwind_variants.ClassValue;
|
|
33
|
+
checkboxItem?: tailwind_variants.ClassValue;
|
|
34
|
+
iconWrapper?: tailwind_variants.ClassValue;
|
|
35
|
+
radioItem?: tailwind_variants.ClassValue;
|
|
36
|
+
radioItemIcon?: tailwind_variants.ClassValue;
|
|
37
|
+
subTrigger?: tailwind_variants.ClassValue;
|
|
38
|
+
subTriggerIcon?: tailwind_variants.ClassValue;
|
|
39
|
+
subContent?: tailwind_variants.ClassValue;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
} | {}, {
|
|
43
|
+
root: string;
|
|
44
|
+
content: string;
|
|
45
|
+
item: string;
|
|
46
|
+
checkboxItem: string;
|
|
47
|
+
iconWrapper: string;
|
|
48
|
+
icon: string;
|
|
49
|
+
radioItem: string;
|
|
50
|
+
radioItemIcon: string;
|
|
51
|
+
label: string;
|
|
52
|
+
separator: string;
|
|
53
|
+
shortcut: string;
|
|
54
|
+
subTrigger: string;
|
|
55
|
+
subTriggerIcon: string;
|
|
56
|
+
subContent: string;
|
|
57
|
+
}, undefined, {
|
|
58
|
+
[key: string]: {
|
|
59
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
60
|
+
icon?: tailwind_variants.ClassValue;
|
|
61
|
+
root?: tailwind_variants.ClassValue;
|
|
62
|
+
label?: tailwind_variants.ClassValue;
|
|
63
|
+
separator?: tailwind_variants.ClassValue;
|
|
64
|
+
item?: tailwind_variants.ClassValue;
|
|
65
|
+
shortcut?: tailwind_variants.ClassValue;
|
|
66
|
+
content?: tailwind_variants.ClassValue;
|
|
67
|
+
checkboxItem?: tailwind_variants.ClassValue;
|
|
68
|
+
iconWrapper?: tailwind_variants.ClassValue;
|
|
69
|
+
radioItem?: tailwind_variants.ClassValue;
|
|
70
|
+
radioItemIcon?: tailwind_variants.ClassValue;
|
|
71
|
+
subTrigger?: tailwind_variants.ClassValue;
|
|
72
|
+
subTriggerIcon?: tailwind_variants.ClassValue;
|
|
73
|
+
subContent?: tailwind_variants.ClassValue;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
} | {}, {
|
|
77
|
+
root: string;
|
|
78
|
+
content: string;
|
|
79
|
+
item: string;
|
|
80
|
+
checkboxItem: string;
|
|
81
|
+
iconWrapper: string;
|
|
82
|
+
icon: string;
|
|
83
|
+
radioItem: string;
|
|
84
|
+
radioItemIcon: string;
|
|
85
|
+
label: string;
|
|
86
|
+
separator: string;
|
|
87
|
+
shortcut: string;
|
|
88
|
+
subTrigger: string;
|
|
89
|
+
subTriggerIcon: string;
|
|
90
|
+
subContent: string;
|
|
91
|
+
}, tailwind_variants.TVReturnType<unknown, {
|
|
92
|
+
root: string;
|
|
93
|
+
content: string;
|
|
94
|
+
item: string;
|
|
95
|
+
checkboxItem: string;
|
|
96
|
+
iconWrapper: string;
|
|
97
|
+
icon: string;
|
|
98
|
+
radioItem: string;
|
|
99
|
+
radioItemIcon: string;
|
|
100
|
+
label: string;
|
|
101
|
+
separator: string;
|
|
102
|
+
shortcut: string;
|
|
103
|
+
subTrigger: string;
|
|
104
|
+
subTriggerIcon: string;
|
|
105
|
+
subContent: string;
|
|
106
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
107
|
+
type DropdownMenuVariantProps = VariantProps<typeof dropdownMenu>;
|
|
108
|
+
|
|
109
|
+
export { type DropdownMenuVariantProps, dropdownMenu };
|
|
@@ -0,0 +1,48 @@
|
|
|
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/dropdown-menu.ts
|
|
21
|
+
var dropdown_menu_exports = {};
|
|
22
|
+
__export(dropdown_menu_exports, {
|
|
23
|
+
dropdownMenu: () => dropdownMenu
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(dropdown_menu_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
var dropdownMenu = (0, import_tailwind_variants.tv)({
|
|
28
|
+
slots: {
|
|
29
|
+
root: "",
|
|
30
|
+
content: "min-w-56 bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
31
|
+
item: "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
32
|
+
checkboxItem: "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
33
|
+
iconWrapper: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
34
|
+
icon: "size-4",
|
|
35
|
+
radioItem: "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
36
|
+
radioItemIcon: "size-4 fill-current",
|
|
37
|
+
label: "px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
38
|
+
separator: "bg-border -mx-1 my-1 h-px",
|
|
39
|
+
shortcut: "text-muted-foreground ml-auto text-xs tracking-widest",
|
|
40
|
+
subTrigger: "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",
|
|
41
|
+
subTriggerIcon: "size-4 ml-auto",
|
|
42
|
+
subContent: "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg"
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
46
|
+
0 && (module.exports = {
|
|
47
|
+
dropdownMenu
|
|
48
|
+
});
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export { ButtonVariantProps, button } from './button.mjs';
|
|
2
|
+
export { CalendarVariantProps, calendar } from './calendar.mjs';
|
|
2
3
|
export { CommandVariants, command } from './command.mjs';
|
|
3
4
|
export { DialogSlots, DialogVariantProps, dialog } from './dialog.mjs';
|
|
4
5
|
export { DrawerVariantProps, drawer } from './drawer.mjs';
|
|
6
|
+
export { DropdownMenuVariantProps, dropdownMenu } from './dropdown-menu.mjs';
|
|
7
|
+
export { InputVariantProps, input, passwordInput } from './input.mjs';
|
|
5
8
|
export { PageLayoutVariantProps, pageLayout } from './page-layout.mjs';
|
|
6
9
|
export { PopoverVariants, popover } from './popover.mjs';
|
|
7
10
|
export { SpinnerVariants, spinner } from './spinner.mjs';
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export { ButtonVariantProps, button } from './button.js';
|
|
2
|
+
export { CalendarVariantProps, calendar } from './calendar.js';
|
|
2
3
|
export { CommandVariants, command } from './command.js';
|
|
3
4
|
export { DialogSlots, DialogVariantProps, dialog } from './dialog.js';
|
|
4
5
|
export { DrawerVariantProps, drawer } from './drawer.js';
|
|
6
|
+
export { DropdownMenuVariantProps, dropdownMenu } from './dropdown-menu.js';
|
|
7
|
+
export { InputVariantProps, input, passwordInput } from './input.js';
|
|
5
8
|
export { PageLayoutVariantProps, pageLayout } from './page-layout.js';
|
|
6
9
|
export { PopoverVariants, popover } from './popover.js';
|
|
7
10
|
export { SpinnerVariants, spinner } from './spinner.js';
|
package/dist/components/index.js
CHANGED
|
@@ -21,10 +21,14 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var components_exports = {};
|
|
22
22
|
__export(components_exports, {
|
|
23
23
|
button: () => button,
|
|
24
|
+
calendar: () => calendar,
|
|
24
25
|
command: () => command,
|
|
25
26
|
dialog: () => dialog,
|
|
26
27
|
drawer: () => drawer,
|
|
28
|
+
dropdownMenu: () => dropdownMenu,
|
|
29
|
+
input: () => input,
|
|
27
30
|
pageLayout: () => pageLayout,
|
|
31
|
+
passwordInput: () => passwordInput,
|
|
28
32
|
popover: () => popover,
|
|
29
33
|
spinner: () => spinner,
|
|
30
34
|
tooltip: () => tooltip
|
|
@@ -39,6 +43,9 @@ var focusVisibleClasses = [
|
|
|
39
43
|
"focus-visible:outline-2 focus-visible:outline-ring focus-visible:outline-offset-2"
|
|
40
44
|
//"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
41
45
|
];
|
|
46
|
+
var focusWithinClasses = [
|
|
47
|
+
"focus-within:outline-2 focus-within:outline-ring focus-within:outline-offset-2"
|
|
48
|
+
];
|
|
42
49
|
|
|
43
50
|
// src/utils/variants.ts
|
|
44
51
|
var solid = {
|
|
@@ -74,7 +81,7 @@ var button = (0, import_tailwind_variants.tv)({
|
|
|
74
81
|
"group relative inline-flex items-center justify-center select-none",
|
|
75
82
|
"box-border appearance-none",
|
|
76
83
|
"whitespace-nowrap min-w-max font-normal subpixel-antialiased",
|
|
77
|
-
"transform-gpu cursor-pointer hover:opacity-80",
|
|
84
|
+
"transform-gpu cursor-pointer hover:opacity-80 overflow-hidden",
|
|
78
85
|
...focusVisibleClasses,
|
|
79
86
|
// shadcn below
|
|
80
87
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
@@ -88,15 +95,6 @@ var button = (0, import_tailwind_variants.tv)({
|
|
|
88
95
|
ghost: "",
|
|
89
96
|
outline: "border-2 bg-transparent",
|
|
90
97
|
link: ""
|
|
91
|
-
// destructive:
|
|
92
|
-
// "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",
|
|
93
|
-
// outline:
|
|
94
|
-
// "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
95
|
-
// secondary:
|
|
96
|
-
// "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
|
|
97
|
-
// ghost:
|
|
98
|
-
// "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
99
|
-
// link: "text-primary underline-offset-4 hover:underline",
|
|
100
98
|
},
|
|
101
99
|
size: {
|
|
102
100
|
sm: "px-3 min-w-16 h-8 text-xs gap-2 rounded-sm has-[>svg]:px-2.5",
|
|
@@ -224,9 +222,62 @@ var button = (0, import_tailwind_variants.tv)({
|
|
|
224
222
|
]
|
|
225
223
|
});
|
|
226
224
|
|
|
227
|
-
// src/components/
|
|
225
|
+
// src/components/calendar.ts
|
|
228
226
|
var import_tailwind_variants2 = require("tailwind-variants");
|
|
229
|
-
var
|
|
227
|
+
var calendar = (0, import_tailwind_variants2.tv)({
|
|
228
|
+
slots: {
|
|
229
|
+
base: [
|
|
230
|
+
"bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
|
|
231
|
+
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
232
|
+
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`
|
|
233
|
+
],
|
|
234
|
+
icon: "size-4",
|
|
235
|
+
root: "w-fit",
|
|
236
|
+
months: "flex gap-4 flex-col md:flex-row relative",
|
|
237
|
+
month: "flex flex-col w-full gap-4",
|
|
238
|
+
nav: "flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",
|
|
239
|
+
buttonPrevious: "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
240
|
+
buttonNext: "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
241
|
+
monthCaption: "flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
|
|
242
|
+
dropdown: "absolute bg-popover inset-0 opacity-0",
|
|
243
|
+
dropdowns: "w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
|
|
244
|
+
dropdownRoot: "relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",
|
|
245
|
+
captionLabel: "select-none font-medium",
|
|
246
|
+
table: "w-full border-collapse",
|
|
247
|
+
weekdays: "flex",
|
|
248
|
+
weekday: "text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",
|
|
249
|
+
week: "flex w-full mt-2",
|
|
250
|
+
weekNumberWrapper: "flex size-(--cell-size) items-center justify-center text-center",
|
|
251
|
+
weekNumberHeader: "select-none w-(--cell-size)",
|
|
252
|
+
weekNumber: "text-[0.8rem] select-none text-muted-foreground",
|
|
253
|
+
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",
|
|
254
|
+
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",
|
|
255
|
+
rangeStart: "rounded-l-md bg-accent",
|
|
256
|
+
rangeMiddle: "rounded-none",
|
|
257
|
+
rangeEnd: "rounded-r-md bg-accent",
|
|
258
|
+
today: "bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
|
|
259
|
+
outside: "text-muted-foreground aria-selected:text-muted-foreground",
|
|
260
|
+
disabled: "text-muted-foreground opacity-50",
|
|
261
|
+
hidden: "invisible"
|
|
262
|
+
},
|
|
263
|
+
variants: {
|
|
264
|
+
captionLayout: {
|
|
265
|
+
label: {
|
|
266
|
+
captionLabel: "text-sm"
|
|
267
|
+
},
|
|
268
|
+
default: {
|
|
269
|
+
captionLabel: "rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5"
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
defaultVariants: {
|
|
274
|
+
captionLayout: "default"
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
|
|
278
|
+
// src/components/command.ts
|
|
279
|
+
var import_tailwind_variants3 = require("tailwind-variants");
|
|
280
|
+
var command = (0, import_tailwind_variants3.tv)({
|
|
230
281
|
slots: {
|
|
231
282
|
root: "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
|
|
232
283
|
inputWrapper: "flex h-9 items-center gap-2 border-b px-3",
|
|
@@ -245,14 +296,15 @@ var command = (0, import_tailwind_variants2.tv)({
|
|
|
245
296
|
});
|
|
246
297
|
|
|
247
298
|
// src/components/dialog.ts
|
|
248
|
-
var
|
|
249
|
-
var dialog = (0,
|
|
299
|
+
var import_tailwind_variants4 = require("tailwind-variants");
|
|
300
|
+
var dialog = (0, import_tailwind_variants4.tv)({
|
|
250
301
|
slots: {
|
|
251
302
|
overlay: ["fixed inset-0 z-50 bg-black/25"],
|
|
252
303
|
content: [
|
|
304
|
+
"flex flex-col",
|
|
253
305
|
"bg-background fixed top-[50%] left-[50%] z-50",
|
|
254
|
-
"
|
|
255
|
-
"
|
|
306
|
+
"w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%]",
|
|
307
|
+
"border shadow-lg",
|
|
256
308
|
// mobile animation vars
|
|
257
309
|
"[--scale-enter:100%]",
|
|
258
310
|
"[--scale-exit:100%]",
|
|
@@ -336,8 +388,8 @@ var dialog = (0, import_tailwind_variants3.tv)({
|
|
|
336
388
|
});
|
|
337
389
|
|
|
338
390
|
// src/components/drawer.ts
|
|
339
|
-
var
|
|
340
|
-
var drawer = (0,
|
|
391
|
+
var import_tailwind_variants5 = require("tailwind-variants");
|
|
392
|
+
var drawer = (0, import_tailwind_variants5.tv)({
|
|
341
393
|
slots: {
|
|
342
394
|
overlay: dialog.slots.overlay,
|
|
343
395
|
content: [
|
|
@@ -416,9 +468,118 @@ var drawer = (0, import_tailwind_variants4.tv)({
|
|
|
416
468
|
}
|
|
417
469
|
});
|
|
418
470
|
|
|
471
|
+
// src/components/dropdown-menu.ts
|
|
472
|
+
var import_tailwind_variants6 = require("tailwind-variants");
|
|
473
|
+
var dropdownMenu = (0, import_tailwind_variants6.tv)({
|
|
474
|
+
slots: {
|
|
475
|
+
root: "",
|
|
476
|
+
content: "min-w-56 bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
477
|
+
item: "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
478
|
+
checkboxItem: "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
479
|
+
iconWrapper: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
480
|
+
icon: "size-4",
|
|
481
|
+
radioItem: "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
482
|
+
radioItemIcon: "size-4 fill-current",
|
|
483
|
+
label: "px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
484
|
+
separator: "bg-border -mx-1 my-1 h-px",
|
|
485
|
+
shortcut: "text-muted-foreground ml-auto text-xs tracking-widest",
|
|
486
|
+
subTrigger: "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",
|
|
487
|
+
subTriggerIcon: "size-4 ml-auto",
|
|
488
|
+
subContent: "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg"
|
|
489
|
+
}
|
|
490
|
+
});
|
|
491
|
+
|
|
492
|
+
// src/components/input.ts
|
|
493
|
+
var import_tailwind_variants7 = require("tailwind-variants");
|
|
494
|
+
var passwordInput = (0, import_tailwind_variants7.tv)({
|
|
495
|
+
slots: {
|
|
496
|
+
button: "focus:outline-hidden",
|
|
497
|
+
icon: "pointer-events-none text-muted-foreground"
|
|
498
|
+
}
|
|
499
|
+
});
|
|
500
|
+
var input = (0, import_tailwind_variants7.tv)({
|
|
501
|
+
base: [],
|
|
502
|
+
slots: {
|
|
503
|
+
inputWrapper: [
|
|
504
|
+
"relative w-full inline-flex flex-row items-center shadow-xs px-3 gap-3 [&_svg]:shrink-0",
|
|
505
|
+
"border-input border dark:bg-input/30 data-[hidden=true]:hidden transition-[color,box-shadow]",
|
|
506
|
+
"data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50",
|
|
507
|
+
...focusWithinClasses
|
|
508
|
+
],
|
|
509
|
+
innerWrapper: "inline-flex w-full items-center h-full box-border",
|
|
510
|
+
input: [
|
|
511
|
+
"w-full font-normal outline-hidden focus-visible:outline-hidden",
|
|
512
|
+
"data-[has-start-content=true]:ps-1.5",
|
|
513
|
+
"data-[has-end-content=true]:pe-1.5",
|
|
514
|
+
"file:cursor-pointer file:bg-transparent file:border-0",
|
|
515
|
+
"autofill:bg-transparent bg-clip-text",
|
|
516
|
+
// legacy
|
|
517
|
+
"selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground",
|
|
518
|
+
"flex",
|
|
519
|
+
// file
|
|
520
|
+
"file:text-foreground file:inline-flex file:text-sm file:font-medium",
|
|
521
|
+
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive"
|
|
522
|
+
],
|
|
523
|
+
clearButton: [
|
|
524
|
+
"p-2 -m-2 z-10 absolute end-3 start-auto pointer-events-none",
|
|
525
|
+
"appearance-none outline-hidden select-none opacity-0 cursor-pointer",
|
|
526
|
+
"active:!opacity-70 rounded-full"
|
|
527
|
+
]
|
|
528
|
+
},
|
|
529
|
+
variants: {
|
|
530
|
+
size: {
|
|
531
|
+
sm: {
|
|
532
|
+
inputWrapper: ["h-8 min-h-8 px-2 rounded-sm [&_svg]:size-4"],
|
|
533
|
+
input: "text-sm file:h-6"
|
|
534
|
+
},
|
|
535
|
+
md: {
|
|
536
|
+
inputWrapper: "h-10 min-10 rounded-md [&_svg]:size-4",
|
|
537
|
+
input: "text-base md:text-sm file:h-8",
|
|
538
|
+
clearButton: "hover:opacity-100"
|
|
539
|
+
},
|
|
540
|
+
lg: {
|
|
541
|
+
inputWrapper: "h-12 min-h-12 rounded-lg [&_svg]:size-4",
|
|
542
|
+
input: "text-base file:h-10",
|
|
543
|
+
clearButton: "hover:opacity-100"
|
|
544
|
+
}
|
|
545
|
+
},
|
|
546
|
+
radius: {
|
|
547
|
+
none: {
|
|
548
|
+
inputWrapper: "rounded-none"
|
|
549
|
+
},
|
|
550
|
+
sm: {
|
|
551
|
+
inputWrapper: "rounded-sm"
|
|
552
|
+
},
|
|
553
|
+
md: {
|
|
554
|
+
inputWrapper: "rounded-md"
|
|
555
|
+
},
|
|
556
|
+
lg: {
|
|
557
|
+
inputWrapper: "rounded-lg"
|
|
558
|
+
},
|
|
559
|
+
full: {
|
|
560
|
+
inputWrapper: "rounded-full"
|
|
561
|
+
}
|
|
562
|
+
},
|
|
563
|
+
isClearable: {
|
|
564
|
+
true: {
|
|
565
|
+
input: "peer pe-6",
|
|
566
|
+
clearButton: [
|
|
567
|
+
"peer-data-[filled=true]:pointer-events-auto",
|
|
568
|
+
"peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block",
|
|
569
|
+
"peer-data-[filled=true]:scale-100"
|
|
570
|
+
]
|
|
571
|
+
},
|
|
572
|
+
false: {}
|
|
573
|
+
}
|
|
574
|
+
},
|
|
575
|
+
defaultVariants: {
|
|
576
|
+
size: "md"
|
|
577
|
+
}
|
|
578
|
+
});
|
|
579
|
+
|
|
419
580
|
// src/components/page-layout.ts
|
|
420
|
-
var
|
|
421
|
-
var pageLayout = (0,
|
|
581
|
+
var import_tailwind_variants8 = require("tailwind-variants");
|
|
582
|
+
var pageLayout = (0, import_tailwind_variants8.tv)({
|
|
422
583
|
slots: {
|
|
423
584
|
root: "",
|
|
424
585
|
wrapper: "flex mx-auto flex-wrap",
|
|
@@ -515,8 +676,8 @@ var pageLayout = (0, import_tailwind_variants5.tv)({
|
|
|
515
676
|
});
|
|
516
677
|
|
|
517
678
|
// src/components/popover.ts
|
|
518
|
-
var
|
|
519
|
-
var popover = (0,
|
|
679
|
+
var import_tailwind_variants9 = require("tailwind-variants");
|
|
680
|
+
var popover = (0, import_tailwind_variants9.tv)({
|
|
520
681
|
slots: {
|
|
521
682
|
content: [
|
|
522
683
|
"bg-popover text-popover-foreground z-50 w-72",
|
|
@@ -527,8 +688,8 @@ var popover = (0, import_tailwind_variants6.tv)({
|
|
|
527
688
|
});
|
|
528
689
|
|
|
529
690
|
// src/components/spinner.ts
|
|
530
|
-
var
|
|
531
|
-
var spinner = (0,
|
|
691
|
+
var import_tailwind_variants10 = require("tailwind-variants");
|
|
692
|
+
var spinner = (0, import_tailwind_variants10.tv)({
|
|
532
693
|
slots: {
|
|
533
694
|
base: "relative inline-flex flex-col gap-2 items-center justify-center",
|
|
534
695
|
wrapper: "relative flex",
|
|
@@ -539,6 +700,13 @@ var spinner = (0, import_tailwind_variants7.tv)({
|
|
|
539
700
|
},
|
|
540
701
|
variants: {
|
|
541
702
|
size: {
|
|
703
|
+
xs: {
|
|
704
|
+
wrapper: "w-4 h-4",
|
|
705
|
+
circle1: "border-2",
|
|
706
|
+
circle2: "border-2",
|
|
707
|
+
dots: "size-1",
|
|
708
|
+
label: "text-xs"
|
|
709
|
+
},
|
|
542
710
|
sm: {
|
|
543
711
|
wrapper: "w-5 h-5",
|
|
544
712
|
circle1: "border-2",
|
|
@@ -638,8 +806,8 @@ var spinner = (0, import_tailwind_variants7.tv)({
|
|
|
638
806
|
});
|
|
639
807
|
|
|
640
808
|
// src/components/tooltip.ts
|
|
641
|
-
var
|
|
642
|
-
var tooltip = (0,
|
|
809
|
+
var import_tailwind_variants11 = require("tailwind-variants");
|
|
810
|
+
var tooltip = (0, import_tailwind_variants11.tv)({
|
|
643
811
|
slots: {
|
|
644
812
|
content: [
|
|
645
813
|
"bg-primary text-primary-foreground",
|
|
@@ -652,10 +820,14 @@ var tooltip = (0, import_tailwind_variants8.tv)({
|
|
|
652
820
|
// Annotate the CommonJS export names for ESM import in node:
|
|
653
821
|
0 && (module.exports = {
|
|
654
822
|
button,
|
|
823
|
+
calendar,
|
|
655
824
|
command,
|
|
656
825
|
dialog,
|
|
657
826
|
drawer,
|
|
827
|
+
dropdownMenu,
|
|
828
|
+
input,
|
|
658
829
|
pageLayout,
|
|
830
|
+
passwordInput,
|
|
659
831
|
popover,
|
|
660
832
|
spinner,
|
|
661
833
|
tooltip
|