@kopexa/theme 1.4.0 → 1.4.2
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-OEVKY5EP.mjs → chunk-5DF3M5JP.mjs} +3 -2
- package/dist/{chunk-E5AF4JZZ.mjs → chunk-5FI7W32M.mjs} +1 -1
- package/dist/chunk-EXBKQDH5.mjs +24 -0
- package/dist/{chunk-GWY5N4AY.mjs → chunk-GQV7INYX.mjs} +1 -1
- package/dist/{chunk-V74N5X6Z.mjs → chunk-UI2M2MFB.mjs} +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/button.mjs +1 -1
- 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 +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +36 -12
- package/dist/components/index.mjs +12 -8
- package/dist/components/page-layout.js +1 -1
- package/dist/components/page-layout.mjs +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +36 -12
- package/dist/index.mjs +12 -8
- package/package.json +1 -1
- /package/dist/{chunk-ZKEY52ZF.mjs → chunk-KIDK6JOG.mjs} +0 -0
|
@@ -4,9 +4,10 @@ var dialog = tv({
|
|
|
4
4
|
slots: {
|
|
5
5
|
overlay: ["fixed inset-0 z-50 bg-black/25"],
|
|
6
6
|
content: [
|
|
7
|
+
"flex flex-col",
|
|
7
8
|
"bg-background fixed top-[50%] left-[50%] z-50",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
9
|
+
"w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%]",
|
|
10
|
+
"border shadow-lg",
|
|
10
11
|
// mobile animation vars
|
|
11
12
|
"[--scale-enter:100%]",
|
|
12
13
|
"[--scale-exit:100%]",
|
|
@@ -12,7 +12,7 @@ var button = tv({
|
|
|
12
12
|
"group relative inline-flex items-center justify-center select-none",
|
|
13
13
|
"box-border appearance-none",
|
|
14
14
|
"whitespace-nowrap min-w-max font-normal subpixel-antialiased",
|
|
15
|
-
"transform-gpu cursor-pointer hover:opacity-80",
|
|
15
|
+
"transform-gpu cursor-pointer hover:opacity-80 overflow-hidden",
|
|
16
16
|
...focusVisibleClasses,
|
|
17
17
|
// shadcn below
|
|
18
18
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// src/components/dropdown-menu.ts
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
var dropdownMenu = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
root: "",
|
|
6
|
+
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",
|
|
7
|
+
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",
|
|
8
|
+
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",
|
|
9
|
+
iconWrapper: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
10
|
+
icon: "size-4",
|
|
11
|
+
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",
|
|
12
|
+
radioItemIcon: "size-4 fill-current",
|
|
13
|
+
label: "px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
14
|
+
separator: "bg-border -mx-1 my-1 h-px",
|
|
15
|
+
shortcut: "text-muted-foreground ml-auto text-xs tracking-widest",
|
|
16
|
+
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",
|
|
17
|
+
subTriggerIcon: "size-4 ml-auto",
|
|
18
|
+
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"
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
dropdownMenu
|
|
24
|
+
};
|
|
@@ -16,7 +16,7 @@ var pageLayout = tv({
|
|
|
16
16
|
"data-[position=end]:flex-col-reverse",
|
|
17
17
|
// md+
|
|
18
18
|
"md:w-auto md:mt-0 md:mb-0",
|
|
19
|
-
"md:data-[sticky=true]:sticky md:data-[sticky=true]:top-2 md:data-[sticky=true]:max-h-[calc(100dvh-
|
|
19
|
+
"md:data-[sticky=true]:sticky md:data-[sticky=true]:top-2 md:data-[sticky=true]:max-h-[calc(100dvh-1rem)]",
|
|
20
20
|
"md:data-[position=end]:flex-row-reverse",
|
|
21
21
|
"md:data-[position=start]:flex-row"
|
|
22
22
|
],
|
|
@@ -65,7 +65,7 @@ var button = (0, import_tailwind_variants.tv)({
|
|
|
65
65
|
"group relative inline-flex items-center justify-center select-none",
|
|
66
66
|
"box-border appearance-none",
|
|
67
67
|
"whitespace-nowrap min-w-max font-normal subpixel-antialiased",
|
|
68
|
-
"transform-gpu cursor-pointer hover:opacity-80",
|
|
68
|
+
"transform-gpu cursor-pointer hover:opacity-80 overflow-hidden",
|
|
69
69
|
...focusVisibleClasses,
|
|
70
70
|
// shadcn below
|
|
71
71
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
@@ -28,9 +28,10 @@ var dialog = (0, import_tailwind_variants.tv)({
|
|
|
28
28
|
slots: {
|
|
29
29
|
overlay: ["fixed inset-0 z-50 bg-black/25"],
|
|
30
30
|
content: [
|
|
31
|
+
"flex flex-col",
|
|
31
32
|
"bg-background fixed top-[50%] left-[50%] z-50",
|
|
32
|
-
"
|
|
33
|
-
"
|
|
33
|
+
"w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%]",
|
|
34
|
+
"border shadow-lg",
|
|
34
35
|
// mobile animation vars
|
|
35
36
|
"[--scale-enter:100%]",
|
|
36
37
|
"[--scale-exit:100%]",
|
|
@@ -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
|
+
root?: tailwind_variants.ClassValue;
|
|
8
|
+
separator?: tailwind_variants.ClassValue;
|
|
9
|
+
item?: tailwind_variants.ClassValue;
|
|
10
|
+
shortcut?: tailwind_variants.ClassValue;
|
|
11
|
+
content?: tailwind_variants.ClassValue;
|
|
12
|
+
checkboxItem?: tailwind_variants.ClassValue;
|
|
13
|
+
iconWrapper?: tailwind_variants.ClassValue;
|
|
14
|
+
icon?: tailwind_variants.ClassValue;
|
|
15
|
+
radioItem?: tailwind_variants.ClassValue;
|
|
16
|
+
radioItemIcon?: tailwind_variants.ClassValue;
|
|
17
|
+
label?: 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
|
+
root?: tailwind_variants.ClassValue;
|
|
27
|
+
separator?: tailwind_variants.ClassValue;
|
|
28
|
+
item?: tailwind_variants.ClassValue;
|
|
29
|
+
shortcut?: tailwind_variants.ClassValue;
|
|
30
|
+
content?: tailwind_variants.ClassValue;
|
|
31
|
+
checkboxItem?: tailwind_variants.ClassValue;
|
|
32
|
+
iconWrapper?: tailwind_variants.ClassValue;
|
|
33
|
+
icon?: tailwind_variants.ClassValue;
|
|
34
|
+
radioItem?: tailwind_variants.ClassValue;
|
|
35
|
+
radioItemIcon?: tailwind_variants.ClassValue;
|
|
36
|
+
label?: 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
|
+
root?: tailwind_variants.ClassValue;
|
|
61
|
+
separator?: tailwind_variants.ClassValue;
|
|
62
|
+
item?: tailwind_variants.ClassValue;
|
|
63
|
+
shortcut?: tailwind_variants.ClassValue;
|
|
64
|
+
content?: tailwind_variants.ClassValue;
|
|
65
|
+
checkboxItem?: tailwind_variants.ClassValue;
|
|
66
|
+
iconWrapper?: tailwind_variants.ClassValue;
|
|
67
|
+
icon?: tailwind_variants.ClassValue;
|
|
68
|
+
radioItem?: tailwind_variants.ClassValue;
|
|
69
|
+
radioItemIcon?: tailwind_variants.ClassValue;
|
|
70
|
+
label?: 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
|
+
root?: tailwind_variants.ClassValue;
|
|
8
|
+
separator?: tailwind_variants.ClassValue;
|
|
9
|
+
item?: tailwind_variants.ClassValue;
|
|
10
|
+
shortcut?: tailwind_variants.ClassValue;
|
|
11
|
+
content?: tailwind_variants.ClassValue;
|
|
12
|
+
checkboxItem?: tailwind_variants.ClassValue;
|
|
13
|
+
iconWrapper?: tailwind_variants.ClassValue;
|
|
14
|
+
icon?: tailwind_variants.ClassValue;
|
|
15
|
+
radioItem?: tailwind_variants.ClassValue;
|
|
16
|
+
radioItemIcon?: tailwind_variants.ClassValue;
|
|
17
|
+
label?: 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
|
+
root?: tailwind_variants.ClassValue;
|
|
27
|
+
separator?: tailwind_variants.ClassValue;
|
|
28
|
+
item?: tailwind_variants.ClassValue;
|
|
29
|
+
shortcut?: tailwind_variants.ClassValue;
|
|
30
|
+
content?: tailwind_variants.ClassValue;
|
|
31
|
+
checkboxItem?: tailwind_variants.ClassValue;
|
|
32
|
+
iconWrapper?: tailwind_variants.ClassValue;
|
|
33
|
+
icon?: tailwind_variants.ClassValue;
|
|
34
|
+
radioItem?: tailwind_variants.ClassValue;
|
|
35
|
+
radioItemIcon?: tailwind_variants.ClassValue;
|
|
36
|
+
label?: 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
|
+
root?: tailwind_variants.ClassValue;
|
|
61
|
+
separator?: tailwind_variants.ClassValue;
|
|
62
|
+
item?: tailwind_variants.ClassValue;
|
|
63
|
+
shortcut?: tailwind_variants.ClassValue;
|
|
64
|
+
content?: tailwind_variants.ClassValue;
|
|
65
|
+
checkboxItem?: tailwind_variants.ClassValue;
|
|
66
|
+
iconWrapper?: tailwind_variants.ClassValue;
|
|
67
|
+
icon?: tailwind_variants.ClassValue;
|
|
68
|
+
radioItem?: tailwind_variants.ClassValue;
|
|
69
|
+
radioItemIcon?: tailwind_variants.ClassValue;
|
|
70
|
+
label?: 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
|
+
});
|
|
@@ -2,6 +2,7 @@ export { ButtonVariantProps, button } from './button.mjs';
|
|
|
2
2
|
export { CommandVariants, command } from './command.mjs';
|
|
3
3
|
export { DialogSlots, DialogVariantProps, dialog } from './dialog.mjs';
|
|
4
4
|
export { DrawerVariantProps, drawer } from './drawer.mjs';
|
|
5
|
+
export { DropdownMenuVariantProps, dropdownMenu } from './dropdown-menu.mjs';
|
|
5
6
|
export { PageLayoutVariantProps, pageLayout } from './page-layout.mjs';
|
|
6
7
|
export { PopoverVariants, popover } from './popover.mjs';
|
|
7
8
|
export { SpinnerVariants, spinner } from './spinner.mjs';
|
|
@@ -2,6 +2,7 @@ export { ButtonVariantProps, button } from './button.js';
|
|
|
2
2
|
export { CommandVariants, command } from './command.js';
|
|
3
3
|
export { DialogSlots, DialogVariantProps, dialog } from './dialog.js';
|
|
4
4
|
export { DrawerVariantProps, drawer } from './drawer.js';
|
|
5
|
+
export { DropdownMenuVariantProps, dropdownMenu } from './dropdown-menu.js';
|
|
5
6
|
export { PageLayoutVariantProps, pageLayout } from './page-layout.js';
|
|
6
7
|
export { PopoverVariants, popover } from './popover.js';
|
|
7
8
|
export { SpinnerVariants, spinner } from './spinner.js';
|
package/dist/components/index.js
CHANGED
|
@@ -24,6 +24,7 @@ __export(components_exports, {
|
|
|
24
24
|
command: () => command,
|
|
25
25
|
dialog: () => dialog,
|
|
26
26
|
drawer: () => drawer,
|
|
27
|
+
dropdownMenu: () => dropdownMenu,
|
|
27
28
|
pageLayout: () => pageLayout,
|
|
28
29
|
popover: () => popover,
|
|
29
30
|
spinner: () => spinner,
|
|
@@ -74,7 +75,7 @@ var button = (0, import_tailwind_variants.tv)({
|
|
|
74
75
|
"group relative inline-flex items-center justify-center select-none",
|
|
75
76
|
"box-border appearance-none",
|
|
76
77
|
"whitespace-nowrap min-w-max font-normal subpixel-antialiased",
|
|
77
|
-
"transform-gpu cursor-pointer hover:opacity-80",
|
|
78
|
+
"transform-gpu cursor-pointer hover:opacity-80 overflow-hidden",
|
|
78
79
|
...focusVisibleClasses,
|
|
79
80
|
// shadcn below
|
|
80
81
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
@@ -250,9 +251,10 @@ var dialog = (0, import_tailwind_variants3.tv)({
|
|
|
250
251
|
slots: {
|
|
251
252
|
overlay: ["fixed inset-0 z-50 bg-black/25"],
|
|
252
253
|
content: [
|
|
254
|
+
"flex flex-col",
|
|
253
255
|
"bg-background fixed top-[50%] left-[50%] z-50",
|
|
254
|
-
"
|
|
255
|
-
"
|
|
256
|
+
"w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%]",
|
|
257
|
+
"border shadow-lg",
|
|
256
258
|
// mobile animation vars
|
|
257
259
|
"[--scale-enter:100%]",
|
|
258
260
|
"[--scale-exit:100%]",
|
|
@@ -416,9 +418,30 @@ var drawer = (0, import_tailwind_variants4.tv)({
|
|
|
416
418
|
}
|
|
417
419
|
});
|
|
418
420
|
|
|
419
|
-
// src/components/
|
|
421
|
+
// src/components/dropdown-menu.ts
|
|
420
422
|
var import_tailwind_variants5 = require("tailwind-variants");
|
|
421
|
-
var
|
|
423
|
+
var dropdownMenu = (0, import_tailwind_variants5.tv)({
|
|
424
|
+
slots: {
|
|
425
|
+
root: "",
|
|
426
|
+
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",
|
|
427
|
+
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",
|
|
428
|
+
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",
|
|
429
|
+
iconWrapper: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
430
|
+
icon: "size-4",
|
|
431
|
+
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",
|
|
432
|
+
radioItemIcon: "size-4 fill-current",
|
|
433
|
+
label: "px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
434
|
+
separator: "bg-border -mx-1 my-1 h-px",
|
|
435
|
+
shortcut: "text-muted-foreground ml-auto text-xs tracking-widest",
|
|
436
|
+
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",
|
|
437
|
+
subTriggerIcon: "size-4 ml-auto",
|
|
438
|
+
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"
|
|
439
|
+
}
|
|
440
|
+
});
|
|
441
|
+
|
|
442
|
+
// src/components/page-layout.ts
|
|
443
|
+
var import_tailwind_variants6 = require("tailwind-variants");
|
|
444
|
+
var pageLayout = (0, import_tailwind_variants6.tv)({
|
|
422
445
|
slots: {
|
|
423
446
|
root: "",
|
|
424
447
|
wrapper: "flex mx-auto flex-wrap",
|
|
@@ -434,7 +457,7 @@ var pageLayout = (0, import_tailwind_variants5.tv)({
|
|
|
434
457
|
"data-[position=end]:flex-col-reverse",
|
|
435
458
|
// md+
|
|
436
459
|
"md:w-auto md:mt-0 md:mb-0",
|
|
437
|
-
"md:data-[sticky=true]:sticky md:data-[sticky=true]:top-2 md:data-[sticky=true]:max-h-[calc(100dvh-
|
|
460
|
+
"md:data-[sticky=true]:sticky md:data-[sticky=true]:top-2 md:data-[sticky=true]:max-h-[calc(100dvh-1rem)]",
|
|
438
461
|
"md:data-[position=end]:flex-row-reverse",
|
|
439
462
|
"md:data-[position=start]:flex-row"
|
|
440
463
|
],
|
|
@@ -515,8 +538,8 @@ var pageLayout = (0, import_tailwind_variants5.tv)({
|
|
|
515
538
|
});
|
|
516
539
|
|
|
517
540
|
// src/components/popover.ts
|
|
518
|
-
var
|
|
519
|
-
var popover = (0,
|
|
541
|
+
var import_tailwind_variants7 = require("tailwind-variants");
|
|
542
|
+
var popover = (0, import_tailwind_variants7.tv)({
|
|
520
543
|
slots: {
|
|
521
544
|
content: [
|
|
522
545
|
"bg-popover text-popover-foreground z-50 w-72",
|
|
@@ -527,8 +550,8 @@ var popover = (0, import_tailwind_variants6.tv)({
|
|
|
527
550
|
});
|
|
528
551
|
|
|
529
552
|
// src/components/spinner.ts
|
|
530
|
-
var
|
|
531
|
-
var spinner = (0,
|
|
553
|
+
var import_tailwind_variants8 = require("tailwind-variants");
|
|
554
|
+
var spinner = (0, import_tailwind_variants8.tv)({
|
|
532
555
|
slots: {
|
|
533
556
|
base: "relative inline-flex flex-col gap-2 items-center justify-center",
|
|
534
557
|
wrapper: "relative flex",
|
|
@@ -638,8 +661,8 @@ var spinner = (0, import_tailwind_variants7.tv)({
|
|
|
638
661
|
});
|
|
639
662
|
|
|
640
663
|
// src/components/tooltip.ts
|
|
641
|
-
var
|
|
642
|
-
var tooltip = (0,
|
|
664
|
+
var import_tailwind_variants9 = require("tailwind-variants");
|
|
665
|
+
var tooltip = (0, import_tailwind_variants9.tv)({
|
|
643
666
|
slots: {
|
|
644
667
|
content: [
|
|
645
668
|
"bg-primary text-primary-foreground",
|
|
@@ -655,6 +678,7 @@ var tooltip = (0, import_tailwind_variants8.tv)({
|
|
|
655
678
|
command,
|
|
656
679
|
dialog,
|
|
657
680
|
drawer,
|
|
681
|
+
dropdownMenu,
|
|
658
682
|
pageLayout,
|
|
659
683
|
popover,
|
|
660
684
|
spinner,
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-KIDK6JOG.mjs";
|
|
2
|
+
import {
|
|
3
|
+
popover
|
|
4
|
+
} from "../chunk-J35D7RWA.mjs";
|
|
2
5
|
import {
|
|
3
6
|
spinner
|
|
4
7
|
} from "../chunk-IL3JFLE2.mjs";
|
|
@@ -7,7 +10,7 @@ import {
|
|
|
7
10
|
} from "../chunk-SVCFD7RR.mjs";
|
|
8
11
|
import {
|
|
9
12
|
button
|
|
10
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-5FI7W32M.mjs";
|
|
11
14
|
import "../chunk-HQ27V5V4.mjs";
|
|
12
15
|
import "../chunk-U6ONJKJY.mjs";
|
|
13
16
|
import {
|
|
@@ -15,21 +18,22 @@ import {
|
|
|
15
18
|
} from "../chunk-YPHFKGNI.mjs";
|
|
16
19
|
import {
|
|
17
20
|
drawer
|
|
18
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-UI2M2MFB.mjs";
|
|
19
22
|
import {
|
|
20
23
|
dialog
|
|
21
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-5DF3M5JP.mjs";
|
|
22
25
|
import {
|
|
23
|
-
|
|
24
|
-
} from "../chunk-
|
|
26
|
+
dropdownMenu
|
|
27
|
+
} from "../chunk-EXBKQDH5.mjs";
|
|
25
28
|
import {
|
|
26
|
-
|
|
27
|
-
} from "../chunk-
|
|
29
|
+
pageLayout
|
|
30
|
+
} from "../chunk-GQV7INYX.mjs";
|
|
28
31
|
export {
|
|
29
32
|
button,
|
|
30
33
|
command,
|
|
31
34
|
dialog,
|
|
32
35
|
drawer,
|
|
36
|
+
dropdownMenu,
|
|
33
37
|
pageLayout,
|
|
34
38
|
popover,
|
|
35
39
|
spinner,
|
|
@@ -40,7 +40,7 @@ var pageLayout = (0, import_tailwind_variants.tv)({
|
|
|
40
40
|
"data-[position=end]:flex-col-reverse",
|
|
41
41
|
// md+
|
|
42
42
|
"md:w-auto md:mt-0 md:mb-0",
|
|
43
|
-
"md:data-[sticky=true]:sticky md:data-[sticky=true]:top-2 md:data-[sticky=true]:max-h-[calc(100dvh-
|
|
43
|
+
"md:data-[sticky=true]:sticky md:data-[sticky=true]:top-2 md:data-[sticky=true]:max-h-[calc(100dvh-1rem)]",
|
|
44
44
|
"md:data-[position=end]:flex-row-reverse",
|
|
45
45
|
"md:data-[position=start]:flex-row"
|
|
46
46
|
],
|
package/dist/index.d.mts
CHANGED
|
@@ -3,6 +3,7 @@ export { ButtonVariantProps, button } from './components/button.mjs';
|
|
|
3
3
|
export { CommandVariants, command } from './components/command.mjs';
|
|
4
4
|
export { DialogSlots, DialogVariantProps, dialog } from './components/dialog.mjs';
|
|
5
5
|
export { DrawerVariantProps, drawer } from './components/drawer.mjs';
|
|
6
|
+
export { DropdownMenuVariantProps, dropdownMenu } from './components/dropdown-menu.mjs';
|
|
6
7
|
export { PageLayoutVariantProps, pageLayout } from './components/page-layout.mjs';
|
|
7
8
|
export { PopoverVariants, popover } from './components/popover.mjs';
|
|
8
9
|
export { SpinnerVariants, spinner } from './components/spinner.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { ButtonVariantProps, button } from './components/button.js';
|
|
|
3
3
|
export { CommandVariants, command } from './components/command.js';
|
|
4
4
|
export { DialogSlots, DialogVariantProps, dialog } from './components/dialog.js';
|
|
5
5
|
export { DrawerVariantProps, drawer } from './components/drawer.js';
|
|
6
|
+
export { DropdownMenuVariantProps, dropdownMenu } from './components/dropdown-menu.js';
|
|
6
7
|
export { PageLayoutVariantProps, pageLayout } from './components/page-layout.js';
|
|
7
8
|
export { PopoverVariants, popover } from './components/popover.js';
|
|
8
9
|
export { SpinnerVariants, spinner } from './components/spinner.js';
|
package/dist/index.js
CHANGED
|
@@ -24,6 +24,7 @@ __export(index_exports, {
|
|
|
24
24
|
command: () => command,
|
|
25
25
|
dialog: () => dialog,
|
|
26
26
|
drawer: () => drawer,
|
|
27
|
+
dropdownMenu: () => dropdownMenu,
|
|
27
28
|
pageLayout: () => pageLayout,
|
|
28
29
|
popover: () => popover,
|
|
29
30
|
spinner: () => spinner,
|
|
@@ -74,7 +75,7 @@ var button = (0, import_tailwind_variants.tv)({
|
|
|
74
75
|
"group relative inline-flex items-center justify-center select-none",
|
|
75
76
|
"box-border appearance-none",
|
|
76
77
|
"whitespace-nowrap min-w-max font-normal subpixel-antialiased",
|
|
77
|
-
"transform-gpu cursor-pointer hover:opacity-80",
|
|
78
|
+
"transform-gpu cursor-pointer hover:opacity-80 overflow-hidden",
|
|
78
79
|
...focusVisibleClasses,
|
|
79
80
|
// shadcn below
|
|
80
81
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
@@ -250,9 +251,10 @@ var dialog = (0, import_tailwind_variants3.tv)({
|
|
|
250
251
|
slots: {
|
|
251
252
|
overlay: ["fixed inset-0 z-50 bg-black/25"],
|
|
252
253
|
content: [
|
|
254
|
+
"flex flex-col",
|
|
253
255
|
"bg-background fixed top-[50%] left-[50%] z-50",
|
|
254
|
-
"
|
|
255
|
-
"
|
|
256
|
+
"w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%]",
|
|
257
|
+
"border shadow-lg",
|
|
256
258
|
// mobile animation vars
|
|
257
259
|
"[--scale-enter:100%]",
|
|
258
260
|
"[--scale-exit:100%]",
|
|
@@ -416,9 +418,30 @@ var drawer = (0, import_tailwind_variants4.tv)({
|
|
|
416
418
|
}
|
|
417
419
|
});
|
|
418
420
|
|
|
419
|
-
// src/components/
|
|
421
|
+
// src/components/dropdown-menu.ts
|
|
420
422
|
var import_tailwind_variants5 = require("tailwind-variants");
|
|
421
|
-
var
|
|
423
|
+
var dropdownMenu = (0, import_tailwind_variants5.tv)({
|
|
424
|
+
slots: {
|
|
425
|
+
root: "",
|
|
426
|
+
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",
|
|
427
|
+
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",
|
|
428
|
+
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",
|
|
429
|
+
iconWrapper: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
430
|
+
icon: "size-4",
|
|
431
|
+
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",
|
|
432
|
+
radioItemIcon: "size-4 fill-current",
|
|
433
|
+
label: "px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
434
|
+
separator: "bg-border -mx-1 my-1 h-px",
|
|
435
|
+
shortcut: "text-muted-foreground ml-auto text-xs tracking-widest",
|
|
436
|
+
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",
|
|
437
|
+
subTriggerIcon: "size-4 ml-auto",
|
|
438
|
+
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"
|
|
439
|
+
}
|
|
440
|
+
});
|
|
441
|
+
|
|
442
|
+
// src/components/page-layout.ts
|
|
443
|
+
var import_tailwind_variants6 = require("tailwind-variants");
|
|
444
|
+
var pageLayout = (0, import_tailwind_variants6.tv)({
|
|
422
445
|
slots: {
|
|
423
446
|
root: "",
|
|
424
447
|
wrapper: "flex mx-auto flex-wrap",
|
|
@@ -434,7 +457,7 @@ var pageLayout = (0, import_tailwind_variants5.tv)({
|
|
|
434
457
|
"data-[position=end]:flex-col-reverse",
|
|
435
458
|
// md+
|
|
436
459
|
"md:w-auto md:mt-0 md:mb-0",
|
|
437
|
-
"md:data-[sticky=true]:sticky md:data-[sticky=true]:top-2 md:data-[sticky=true]:max-h-[calc(100dvh-
|
|
460
|
+
"md:data-[sticky=true]:sticky md:data-[sticky=true]:top-2 md:data-[sticky=true]:max-h-[calc(100dvh-1rem)]",
|
|
438
461
|
"md:data-[position=end]:flex-row-reverse",
|
|
439
462
|
"md:data-[position=start]:flex-row"
|
|
440
463
|
],
|
|
@@ -515,8 +538,8 @@ var pageLayout = (0, import_tailwind_variants5.tv)({
|
|
|
515
538
|
});
|
|
516
539
|
|
|
517
540
|
// src/components/popover.ts
|
|
518
|
-
var
|
|
519
|
-
var popover = (0,
|
|
541
|
+
var import_tailwind_variants7 = require("tailwind-variants");
|
|
542
|
+
var popover = (0, import_tailwind_variants7.tv)({
|
|
520
543
|
slots: {
|
|
521
544
|
content: [
|
|
522
545
|
"bg-popover text-popover-foreground z-50 w-72",
|
|
@@ -527,8 +550,8 @@ var popover = (0, import_tailwind_variants6.tv)({
|
|
|
527
550
|
});
|
|
528
551
|
|
|
529
552
|
// src/components/spinner.ts
|
|
530
|
-
var
|
|
531
|
-
var spinner = (0,
|
|
553
|
+
var import_tailwind_variants8 = require("tailwind-variants");
|
|
554
|
+
var spinner = (0, import_tailwind_variants8.tv)({
|
|
532
555
|
slots: {
|
|
533
556
|
base: "relative inline-flex flex-col gap-2 items-center justify-center",
|
|
534
557
|
wrapper: "relative flex",
|
|
@@ -638,8 +661,8 @@ var spinner = (0, import_tailwind_variants7.tv)({
|
|
|
638
661
|
});
|
|
639
662
|
|
|
640
663
|
// src/components/tooltip.ts
|
|
641
|
-
var
|
|
642
|
-
var tooltip = (0,
|
|
664
|
+
var import_tailwind_variants9 = require("tailwind-variants");
|
|
665
|
+
var tooltip = (0, import_tailwind_variants9.tv)({
|
|
643
666
|
slots: {
|
|
644
667
|
content: [
|
|
645
668
|
"bg-primary text-primary-foreground",
|
|
@@ -655,6 +678,7 @@ var tooltip = (0, import_tailwind_variants8.tv)({
|
|
|
655
678
|
command,
|
|
656
679
|
dialog,
|
|
657
680
|
drawer,
|
|
681
|
+
dropdownMenu,
|
|
658
682
|
pageLayout,
|
|
659
683
|
popover,
|
|
660
684
|
spinner,
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-KIDK6JOG.mjs";
|
|
2
|
+
import {
|
|
3
|
+
popover
|
|
4
|
+
} from "./chunk-J35D7RWA.mjs";
|
|
2
5
|
import {
|
|
3
6
|
spinner
|
|
4
7
|
} from "./chunk-IL3JFLE2.mjs";
|
|
@@ -7,7 +10,7 @@ import {
|
|
|
7
10
|
} from "./chunk-SVCFD7RR.mjs";
|
|
8
11
|
import {
|
|
9
12
|
button
|
|
10
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5FI7W32M.mjs";
|
|
11
14
|
import "./chunk-HQ27V5V4.mjs";
|
|
12
15
|
import "./chunk-U6ONJKJY.mjs";
|
|
13
16
|
import {
|
|
@@ -15,21 +18,22 @@ import {
|
|
|
15
18
|
} from "./chunk-YPHFKGNI.mjs";
|
|
16
19
|
import {
|
|
17
20
|
drawer
|
|
18
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-UI2M2MFB.mjs";
|
|
19
22
|
import {
|
|
20
23
|
dialog
|
|
21
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-5DF3M5JP.mjs";
|
|
22
25
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./chunk-
|
|
26
|
+
dropdownMenu
|
|
27
|
+
} from "./chunk-EXBKQDH5.mjs";
|
|
25
28
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./chunk-
|
|
29
|
+
pageLayout
|
|
30
|
+
} from "./chunk-GQV7INYX.mjs";
|
|
28
31
|
export {
|
|
29
32
|
button,
|
|
30
33
|
command,
|
|
31
34
|
dialog,
|
|
32
35
|
drawer,
|
|
36
|
+
dropdownMenu,
|
|
33
37
|
pageLayout,
|
|
34
38
|
popover,
|
|
35
39
|
spinner,
|
package/package.json
CHANGED
|
File without changes
|