@kopexa/theme 1.2.0 → 1.3.0
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 +167 -0
- package/dist/chunk-HQ27V5V4.mjs +11 -0
- package/dist/chunk-U6ONJKJY.mjs +31 -0
- package/dist/{chunk-EOML76MT.mjs → chunk-YPHFKGNI.mjs} +4 -1
- package/dist/components/button.d.mts +65 -9
- package/dist/components/button.d.ts +65 -9
- package/dist/components/button.js +177 -18
- package/dist/components/button.mjs +3 -1
- package/dist/components/command.d.mts +18 -0
- package/dist/components/command.d.ts +18 -0
- package/dist/components/command.js +4 -1
- package/dist/components/command.mjs +1 -1
- package/dist/components/index.js +181 -19
- package/dist/components/index.mjs +4 -2
- package/dist/index.js +181 -19
- package/dist/index.mjs +4 -2
- package/dist/utils/classes.d.mts +7 -0
- package/dist/utils/classes.d.ts +7 -0
- package/dist/utils/classes.js +36 -0
- package/dist/utils/classes.mjs +8 -0
- package/dist/utils/variants.d.mts +25 -0
- package/dist/utils/variants.d.ts +25 -0
- package/dist/utils/variants.js +55 -0
- package/dist/utils/variants.mjs +6 -0
- package/package.json +2 -2
- package/dist/chunk-GSHMDS47.mjs +0 -37
|
@@ -14,6 +14,9 @@ declare const command: tailwind_variants.TVReturnType<{
|
|
|
14
14
|
separator?: tailwind_variants.ClassValue;
|
|
15
15
|
item?: tailwind_variants.ClassValue;
|
|
16
16
|
shortcut?: tailwind_variants.ClassValue;
|
|
17
|
+
header?: tailwind_variants.ClassValue;
|
|
18
|
+
title?: tailwind_variants.ClassValue;
|
|
19
|
+
description?: tailwind_variants.ClassValue;
|
|
17
20
|
};
|
|
18
21
|
};
|
|
19
22
|
} | {
|
|
@@ -29,6 +32,9 @@ declare const command: tailwind_variants.TVReturnType<{
|
|
|
29
32
|
separator?: tailwind_variants.ClassValue;
|
|
30
33
|
item?: tailwind_variants.ClassValue;
|
|
31
34
|
shortcut?: tailwind_variants.ClassValue;
|
|
35
|
+
header?: tailwind_variants.ClassValue;
|
|
36
|
+
title?: tailwind_variants.ClassValue;
|
|
37
|
+
description?: tailwind_variants.ClassValue;
|
|
32
38
|
};
|
|
33
39
|
};
|
|
34
40
|
} | {}, {
|
|
@@ -42,6 +48,9 @@ declare const command: tailwind_variants.TVReturnType<{
|
|
|
42
48
|
separator: string;
|
|
43
49
|
item: string;
|
|
44
50
|
shortcut: string;
|
|
51
|
+
header: string;
|
|
52
|
+
title: string;
|
|
53
|
+
description: string;
|
|
45
54
|
}, undefined, {
|
|
46
55
|
[key: string]: {
|
|
47
56
|
[key: string]: tailwind_variants.ClassValue | {
|
|
@@ -55,6 +64,9 @@ declare const command: tailwind_variants.TVReturnType<{
|
|
|
55
64
|
separator?: tailwind_variants.ClassValue;
|
|
56
65
|
item?: tailwind_variants.ClassValue;
|
|
57
66
|
shortcut?: tailwind_variants.ClassValue;
|
|
67
|
+
header?: tailwind_variants.ClassValue;
|
|
68
|
+
title?: tailwind_variants.ClassValue;
|
|
69
|
+
description?: tailwind_variants.ClassValue;
|
|
58
70
|
};
|
|
59
71
|
};
|
|
60
72
|
} | {}, {
|
|
@@ -68,6 +80,9 @@ declare const command: tailwind_variants.TVReturnType<{
|
|
|
68
80
|
separator: string;
|
|
69
81
|
item: string;
|
|
70
82
|
shortcut: string;
|
|
83
|
+
header: string;
|
|
84
|
+
title: string;
|
|
85
|
+
description: string;
|
|
71
86
|
}, tailwind_variants.TVReturnType<unknown, {
|
|
72
87
|
root: string;
|
|
73
88
|
inputWrapper: string;
|
|
@@ -79,6 +94,9 @@ declare const command: tailwind_variants.TVReturnType<{
|
|
|
79
94
|
separator: string;
|
|
80
95
|
item: string;
|
|
81
96
|
shortcut: string;
|
|
97
|
+
header: string;
|
|
98
|
+
title: string;
|
|
99
|
+
description: string;
|
|
82
100
|
}, undefined, unknown, unknown, undefined>>;
|
|
83
101
|
type CommandVariants = VariantProps<typeof command>;
|
|
84
102
|
|
|
@@ -14,6 +14,9 @@ declare const command: tailwind_variants.TVReturnType<{
|
|
|
14
14
|
separator?: tailwind_variants.ClassValue;
|
|
15
15
|
item?: tailwind_variants.ClassValue;
|
|
16
16
|
shortcut?: tailwind_variants.ClassValue;
|
|
17
|
+
header?: tailwind_variants.ClassValue;
|
|
18
|
+
title?: tailwind_variants.ClassValue;
|
|
19
|
+
description?: tailwind_variants.ClassValue;
|
|
17
20
|
};
|
|
18
21
|
};
|
|
19
22
|
} | {
|
|
@@ -29,6 +32,9 @@ declare const command: tailwind_variants.TVReturnType<{
|
|
|
29
32
|
separator?: tailwind_variants.ClassValue;
|
|
30
33
|
item?: tailwind_variants.ClassValue;
|
|
31
34
|
shortcut?: tailwind_variants.ClassValue;
|
|
35
|
+
header?: tailwind_variants.ClassValue;
|
|
36
|
+
title?: tailwind_variants.ClassValue;
|
|
37
|
+
description?: tailwind_variants.ClassValue;
|
|
32
38
|
};
|
|
33
39
|
};
|
|
34
40
|
} | {}, {
|
|
@@ -42,6 +48,9 @@ declare const command: tailwind_variants.TVReturnType<{
|
|
|
42
48
|
separator: string;
|
|
43
49
|
item: string;
|
|
44
50
|
shortcut: string;
|
|
51
|
+
header: string;
|
|
52
|
+
title: string;
|
|
53
|
+
description: string;
|
|
45
54
|
}, undefined, {
|
|
46
55
|
[key: string]: {
|
|
47
56
|
[key: string]: tailwind_variants.ClassValue | {
|
|
@@ -55,6 +64,9 @@ declare const command: tailwind_variants.TVReturnType<{
|
|
|
55
64
|
separator?: tailwind_variants.ClassValue;
|
|
56
65
|
item?: tailwind_variants.ClassValue;
|
|
57
66
|
shortcut?: tailwind_variants.ClassValue;
|
|
67
|
+
header?: tailwind_variants.ClassValue;
|
|
68
|
+
title?: tailwind_variants.ClassValue;
|
|
69
|
+
description?: tailwind_variants.ClassValue;
|
|
58
70
|
};
|
|
59
71
|
};
|
|
60
72
|
} | {}, {
|
|
@@ -68,6 +80,9 @@ declare const command: tailwind_variants.TVReturnType<{
|
|
|
68
80
|
separator: string;
|
|
69
81
|
item: string;
|
|
70
82
|
shortcut: string;
|
|
83
|
+
header: string;
|
|
84
|
+
title: string;
|
|
85
|
+
description: string;
|
|
71
86
|
}, tailwind_variants.TVReturnType<unknown, {
|
|
72
87
|
root: string;
|
|
73
88
|
inputWrapper: string;
|
|
@@ -79,6 +94,9 @@ declare const command: tailwind_variants.TVReturnType<{
|
|
|
79
94
|
separator: string;
|
|
80
95
|
item: string;
|
|
81
96
|
shortcut: string;
|
|
97
|
+
header: string;
|
|
98
|
+
title: string;
|
|
99
|
+
description: string;
|
|
82
100
|
}, undefined, unknown, unknown, undefined>>;
|
|
83
101
|
type CommandVariants = VariantProps<typeof command>;
|
|
84
102
|
|
|
@@ -35,7 +35,10 @@ var command = (0, import_tailwind_variants.tv)({
|
|
|
35
35
|
group: "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
|
|
36
36
|
separator: "bg-border -mx-1 h-px",
|
|
37
37
|
item: "data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_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=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
38
|
-
shortcut: "text-muted-foreground ml-auto text-xs tracking-widest"
|
|
38
|
+
shortcut: "text-muted-foreground ml-auto text-xs tracking-widest",
|
|
39
|
+
header: "flex flex-col items-start justify-between px-3 py-2 border-b",
|
|
40
|
+
title: "text-sm font-semibold",
|
|
41
|
+
description: "text-xs text-muted-foreground"
|
|
39
42
|
}
|
|
40
43
|
});
|
|
41
44
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/components/index.js
CHANGED
|
@@ -32,36 +32,195 @@ module.exports = __toCommonJS(components_exports);
|
|
|
32
32
|
|
|
33
33
|
// src/components/button.ts
|
|
34
34
|
var import_tailwind_variants = require("tailwind-variants");
|
|
35
|
+
|
|
36
|
+
// src/utils/classes.ts
|
|
37
|
+
var focusVisibleClasses = [
|
|
38
|
+
"focus-visible:outline-2 focus-visible:outline-ring focus-visible:outline-offset-2"
|
|
39
|
+
//"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
40
|
+
];
|
|
41
|
+
|
|
42
|
+
// src/utils/variants.ts
|
|
43
|
+
var solid = {
|
|
44
|
+
primary: "bg-primary text-primary-foreground",
|
|
45
|
+
secondary: "bg-secondary text-secondary-foreground",
|
|
46
|
+
destructive: "bg-destructive text-destructive-foreground",
|
|
47
|
+
warning: "bg-warning text-warning-foreground",
|
|
48
|
+
success: "bg-success text-success-foreground"
|
|
49
|
+
};
|
|
50
|
+
var outline = {
|
|
51
|
+
primary: "bg-transparent border-primary text-primary",
|
|
52
|
+
secondary: "bg-transparent border-secondary text-secondary",
|
|
53
|
+
destructive: "bg-transparent border-destructive text-destructive",
|
|
54
|
+
warning: "bg-transparent border-warning text-warning",
|
|
55
|
+
success: "bg-transparent border-success text-success"
|
|
56
|
+
};
|
|
57
|
+
var ghost = {
|
|
58
|
+
primary: "bg-transparent text-primary",
|
|
59
|
+
secondary: "bg-transparent text-secondary",
|
|
60
|
+
destructive: "bg-transparent text-destructive",
|
|
61
|
+
warning: "bg-transparent text-warning",
|
|
62
|
+
success: "bg-transparent text-success"
|
|
63
|
+
};
|
|
64
|
+
var colorVariants = {
|
|
65
|
+
solid,
|
|
66
|
+
ghost,
|
|
67
|
+
outline
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
// src/components/button.ts
|
|
35
71
|
var button = (0, import_tailwind_variants.tv)({
|
|
36
72
|
base: [
|
|
37
|
-
"relative inline-flex
|
|
38
|
-
"box-border appearance-none
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
73
|
+
"group relative inline-flex items-center justify-center select-none",
|
|
74
|
+
"box-border appearance-none",
|
|
75
|
+
"whitespace-nowrap min-w-max font-normal subpixel-antialiased",
|
|
76
|
+
"transform-gpu cursor-pointer hover:opacity-80",
|
|
77
|
+
...focusVisibleClasses,
|
|
78
|
+
// shadcn below
|
|
79
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
80
|
+
"shrink-0 [&_svg]:shrink-0",
|
|
81
|
+
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
44
82
|
"text-sm font-medium"
|
|
45
83
|
],
|
|
46
84
|
variants: {
|
|
47
85
|
variant: {
|
|
48
|
-
solid: "
|
|
49
|
-
|
|
50
|
-
outline: "border
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
86
|
+
solid: "shadow-xs",
|
|
87
|
+
ghost: "",
|
|
88
|
+
outline: "border-2 bg-transparent",
|
|
89
|
+
link: ""
|
|
90
|
+
// destructive:
|
|
91
|
+
// "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",
|
|
92
|
+
// outline:
|
|
93
|
+
// "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
94
|
+
// secondary:
|
|
95
|
+
// "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
|
|
96
|
+
// ghost:
|
|
97
|
+
// "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
98
|
+
// link: "text-primary underline-offset-4 hover:underline",
|
|
54
99
|
},
|
|
55
100
|
size: {
|
|
56
|
-
sm: "h-8
|
|
57
|
-
md: "h-
|
|
58
|
-
lg: "h-
|
|
101
|
+
sm: "px-3 min-w-16 h-8 text-xs gap-2 rounded-sm has-[>svg]:px-2.5",
|
|
102
|
+
md: "px-4 min-w-20 h-10 text-sm gap-2 rounded-md has-[>svg]:px-3",
|
|
103
|
+
lg: "px-6 min-w-24 h-12 text-base gap-3 rounded-lg has-[>svg]:px-4"
|
|
104
|
+
},
|
|
105
|
+
color: {
|
|
106
|
+
primary: "",
|
|
107
|
+
secondary: "",
|
|
108
|
+
destructive: "",
|
|
109
|
+
warning: "",
|
|
110
|
+
success: ""
|
|
111
|
+
},
|
|
112
|
+
radius: {},
|
|
113
|
+
fullWidth: {
|
|
114
|
+
true: "w-full"
|
|
115
|
+
},
|
|
116
|
+
isIconOnly: {
|
|
117
|
+
true: "px-0 !gap-0",
|
|
118
|
+
false: "[&>svg]:max-w-[theme(spacing.8)]"
|
|
59
119
|
}
|
|
60
120
|
},
|
|
61
121
|
defaultVariants: {
|
|
122
|
+
size: "md",
|
|
62
123
|
variant: "solid",
|
|
63
|
-
|
|
64
|
-
|
|
124
|
+
color: "primary",
|
|
125
|
+
fullWidth: false,
|
|
126
|
+
isIconOnly: false
|
|
127
|
+
},
|
|
128
|
+
compoundVariants: [
|
|
129
|
+
// primary color
|
|
130
|
+
{
|
|
131
|
+
variant: "solid",
|
|
132
|
+
color: "primary",
|
|
133
|
+
class: colorVariants.solid.primary
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
variant: "solid",
|
|
137
|
+
color: "secondary",
|
|
138
|
+
class: colorVariants.solid.secondary
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
variant: "solid",
|
|
142
|
+
color: "destructive",
|
|
143
|
+
class: colorVariants.solid.destructive
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
variant: "solid",
|
|
147
|
+
color: "warning",
|
|
148
|
+
class: colorVariants.solid.warning
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
variant: "solid",
|
|
152
|
+
color: "success",
|
|
153
|
+
class: colorVariants.solid.success
|
|
154
|
+
},
|
|
155
|
+
// ghost color
|
|
156
|
+
{
|
|
157
|
+
variant: "ghost",
|
|
158
|
+
color: "primary",
|
|
159
|
+
class: colorVariants.ghost.primary
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
variant: "ghost",
|
|
163
|
+
color: "secondary",
|
|
164
|
+
class: colorVariants.ghost.secondary
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
variant: "ghost",
|
|
168
|
+
color: "destructive",
|
|
169
|
+
class: colorVariants.ghost.destructive
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
variant: "ghost",
|
|
173
|
+
color: "warning",
|
|
174
|
+
class: colorVariants.ghost.warning
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
variant: "ghost",
|
|
178
|
+
color: "success",
|
|
179
|
+
class: colorVariants.ghost.success
|
|
180
|
+
},
|
|
181
|
+
// outline color
|
|
182
|
+
{
|
|
183
|
+
variant: "outline",
|
|
184
|
+
color: "primary",
|
|
185
|
+
class: colorVariants.outline.primary
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
variant: "outline",
|
|
189
|
+
color: "secondary",
|
|
190
|
+
class: colorVariants.outline.secondary
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
variant: "outline",
|
|
194
|
+
color: "destructive",
|
|
195
|
+
class: colorVariants.outline.destructive
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
variant: "outline",
|
|
199
|
+
color: "warning",
|
|
200
|
+
class: colorVariants.outline.warning
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
variant: "outline",
|
|
204
|
+
color: "success",
|
|
205
|
+
class: colorVariants.outline.success
|
|
206
|
+
},
|
|
207
|
+
// icon
|
|
208
|
+
{
|
|
209
|
+
isIconOnly: true,
|
|
210
|
+
size: "sm",
|
|
211
|
+
class: "min-w-8 w-8 h-8 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-3.5"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
isIconOnly: true,
|
|
215
|
+
size: "md",
|
|
216
|
+
class: "min-w-10 w-10 h-10 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
isIconOnly: true,
|
|
220
|
+
size: "lg",
|
|
221
|
+
class: "min-w-12 w-12 h-12 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-5"
|
|
222
|
+
}
|
|
223
|
+
]
|
|
65
224
|
});
|
|
66
225
|
|
|
67
226
|
// src/components/command.ts
|
|
@@ -77,7 +236,10 @@ var command = (0, import_tailwind_variants2.tv)({
|
|
|
77
236
|
group: "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
|
|
78
237
|
separator: "bg-border -mx-1 h-px",
|
|
79
238
|
item: "data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_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=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
80
|
-
shortcut: "text-muted-foreground ml-auto text-xs tracking-widest"
|
|
239
|
+
shortcut: "text-muted-foreground ml-auto text-xs tracking-widest",
|
|
240
|
+
header: "flex flex-col items-start justify-between px-3 py-2 border-b",
|
|
241
|
+
title: "text-sm font-semibold",
|
|
242
|
+
description: "text-xs text-muted-foreground"
|
|
81
243
|
}
|
|
82
244
|
});
|
|
83
245
|
|
|
@@ -4,10 +4,12 @@ import {
|
|
|
4
4
|
} from "../chunk-SVCFD7RR.mjs";
|
|
5
5
|
import {
|
|
6
6
|
button
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-E5AF4JZZ.mjs";
|
|
8
|
+
import "../chunk-HQ27V5V4.mjs";
|
|
9
|
+
import "../chunk-U6ONJKJY.mjs";
|
|
8
10
|
import {
|
|
9
11
|
command
|
|
10
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-YPHFKGNI.mjs";
|
|
11
13
|
import {
|
|
12
14
|
drawer
|
|
13
15
|
} from "../chunk-V74N5X6Z.mjs";
|
package/dist/index.js
CHANGED
|
@@ -32,36 +32,195 @@ module.exports = __toCommonJS(index_exports);
|
|
|
32
32
|
|
|
33
33
|
// src/components/button.ts
|
|
34
34
|
var import_tailwind_variants = require("tailwind-variants");
|
|
35
|
+
|
|
36
|
+
// src/utils/classes.ts
|
|
37
|
+
var focusVisibleClasses = [
|
|
38
|
+
"focus-visible:outline-2 focus-visible:outline-ring focus-visible:outline-offset-2"
|
|
39
|
+
//"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
40
|
+
];
|
|
41
|
+
|
|
42
|
+
// src/utils/variants.ts
|
|
43
|
+
var solid = {
|
|
44
|
+
primary: "bg-primary text-primary-foreground",
|
|
45
|
+
secondary: "bg-secondary text-secondary-foreground",
|
|
46
|
+
destructive: "bg-destructive text-destructive-foreground",
|
|
47
|
+
warning: "bg-warning text-warning-foreground",
|
|
48
|
+
success: "bg-success text-success-foreground"
|
|
49
|
+
};
|
|
50
|
+
var outline = {
|
|
51
|
+
primary: "bg-transparent border-primary text-primary",
|
|
52
|
+
secondary: "bg-transparent border-secondary text-secondary",
|
|
53
|
+
destructive: "bg-transparent border-destructive text-destructive",
|
|
54
|
+
warning: "bg-transparent border-warning text-warning",
|
|
55
|
+
success: "bg-transparent border-success text-success"
|
|
56
|
+
};
|
|
57
|
+
var ghost = {
|
|
58
|
+
primary: "bg-transparent text-primary",
|
|
59
|
+
secondary: "bg-transparent text-secondary",
|
|
60
|
+
destructive: "bg-transparent text-destructive",
|
|
61
|
+
warning: "bg-transparent text-warning",
|
|
62
|
+
success: "bg-transparent text-success"
|
|
63
|
+
};
|
|
64
|
+
var colorVariants = {
|
|
65
|
+
solid,
|
|
66
|
+
ghost,
|
|
67
|
+
outline
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
// src/components/button.ts
|
|
35
71
|
var button = (0, import_tailwind_variants.tv)({
|
|
36
72
|
base: [
|
|
37
|
-
"relative inline-flex
|
|
38
|
-
"box-border appearance-none
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
73
|
+
"group relative inline-flex items-center justify-center select-none",
|
|
74
|
+
"box-border appearance-none",
|
|
75
|
+
"whitespace-nowrap min-w-max font-normal subpixel-antialiased",
|
|
76
|
+
"transform-gpu cursor-pointer hover:opacity-80",
|
|
77
|
+
...focusVisibleClasses,
|
|
78
|
+
// shadcn below
|
|
79
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
80
|
+
"shrink-0 [&_svg]:shrink-0",
|
|
81
|
+
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
44
82
|
"text-sm font-medium"
|
|
45
83
|
],
|
|
46
84
|
variants: {
|
|
47
85
|
variant: {
|
|
48
|
-
solid: "
|
|
49
|
-
|
|
50
|
-
outline: "border
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
86
|
+
solid: "shadow-xs",
|
|
87
|
+
ghost: "",
|
|
88
|
+
outline: "border-2 bg-transparent",
|
|
89
|
+
link: ""
|
|
90
|
+
// destructive:
|
|
91
|
+
// "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",
|
|
92
|
+
// outline:
|
|
93
|
+
// "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
94
|
+
// secondary:
|
|
95
|
+
// "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
|
|
96
|
+
// ghost:
|
|
97
|
+
// "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
98
|
+
// link: "text-primary underline-offset-4 hover:underline",
|
|
54
99
|
},
|
|
55
100
|
size: {
|
|
56
|
-
sm: "h-8
|
|
57
|
-
md: "h-
|
|
58
|
-
lg: "h-
|
|
101
|
+
sm: "px-3 min-w-16 h-8 text-xs gap-2 rounded-sm has-[>svg]:px-2.5",
|
|
102
|
+
md: "px-4 min-w-20 h-10 text-sm gap-2 rounded-md has-[>svg]:px-3",
|
|
103
|
+
lg: "px-6 min-w-24 h-12 text-base gap-3 rounded-lg has-[>svg]:px-4"
|
|
104
|
+
},
|
|
105
|
+
color: {
|
|
106
|
+
primary: "",
|
|
107
|
+
secondary: "",
|
|
108
|
+
destructive: "",
|
|
109
|
+
warning: "",
|
|
110
|
+
success: ""
|
|
111
|
+
},
|
|
112
|
+
radius: {},
|
|
113
|
+
fullWidth: {
|
|
114
|
+
true: "w-full"
|
|
115
|
+
},
|
|
116
|
+
isIconOnly: {
|
|
117
|
+
true: "px-0 !gap-0",
|
|
118
|
+
false: "[&>svg]:max-w-[theme(spacing.8)]"
|
|
59
119
|
}
|
|
60
120
|
},
|
|
61
121
|
defaultVariants: {
|
|
122
|
+
size: "md",
|
|
62
123
|
variant: "solid",
|
|
63
|
-
|
|
64
|
-
|
|
124
|
+
color: "primary",
|
|
125
|
+
fullWidth: false,
|
|
126
|
+
isIconOnly: false
|
|
127
|
+
},
|
|
128
|
+
compoundVariants: [
|
|
129
|
+
// primary color
|
|
130
|
+
{
|
|
131
|
+
variant: "solid",
|
|
132
|
+
color: "primary",
|
|
133
|
+
class: colorVariants.solid.primary
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
variant: "solid",
|
|
137
|
+
color: "secondary",
|
|
138
|
+
class: colorVariants.solid.secondary
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
variant: "solid",
|
|
142
|
+
color: "destructive",
|
|
143
|
+
class: colorVariants.solid.destructive
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
variant: "solid",
|
|
147
|
+
color: "warning",
|
|
148
|
+
class: colorVariants.solid.warning
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
variant: "solid",
|
|
152
|
+
color: "success",
|
|
153
|
+
class: colorVariants.solid.success
|
|
154
|
+
},
|
|
155
|
+
// ghost color
|
|
156
|
+
{
|
|
157
|
+
variant: "ghost",
|
|
158
|
+
color: "primary",
|
|
159
|
+
class: colorVariants.ghost.primary
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
variant: "ghost",
|
|
163
|
+
color: "secondary",
|
|
164
|
+
class: colorVariants.ghost.secondary
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
variant: "ghost",
|
|
168
|
+
color: "destructive",
|
|
169
|
+
class: colorVariants.ghost.destructive
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
variant: "ghost",
|
|
173
|
+
color: "warning",
|
|
174
|
+
class: colorVariants.ghost.warning
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
variant: "ghost",
|
|
178
|
+
color: "success",
|
|
179
|
+
class: colorVariants.ghost.success
|
|
180
|
+
},
|
|
181
|
+
// outline color
|
|
182
|
+
{
|
|
183
|
+
variant: "outline",
|
|
184
|
+
color: "primary",
|
|
185
|
+
class: colorVariants.outline.primary
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
variant: "outline",
|
|
189
|
+
color: "secondary",
|
|
190
|
+
class: colorVariants.outline.secondary
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
variant: "outline",
|
|
194
|
+
color: "destructive",
|
|
195
|
+
class: colorVariants.outline.destructive
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
variant: "outline",
|
|
199
|
+
color: "warning",
|
|
200
|
+
class: colorVariants.outline.warning
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
variant: "outline",
|
|
204
|
+
color: "success",
|
|
205
|
+
class: colorVariants.outline.success
|
|
206
|
+
},
|
|
207
|
+
// icon
|
|
208
|
+
{
|
|
209
|
+
isIconOnly: true,
|
|
210
|
+
size: "sm",
|
|
211
|
+
class: "min-w-8 w-8 h-8 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-3.5"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
isIconOnly: true,
|
|
215
|
+
size: "md",
|
|
216
|
+
class: "min-w-10 w-10 h-10 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
isIconOnly: true,
|
|
220
|
+
size: "lg",
|
|
221
|
+
class: "min-w-12 w-12 h-12 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-5"
|
|
222
|
+
}
|
|
223
|
+
]
|
|
65
224
|
});
|
|
66
225
|
|
|
67
226
|
// src/components/command.ts
|
|
@@ -77,7 +236,10 @@ var command = (0, import_tailwind_variants2.tv)({
|
|
|
77
236
|
group: "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
|
|
78
237
|
separator: "bg-border -mx-1 h-px",
|
|
79
238
|
item: "data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_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=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
80
|
-
shortcut: "text-muted-foreground ml-auto text-xs tracking-widest"
|
|
239
|
+
shortcut: "text-muted-foreground ml-auto text-xs tracking-widest",
|
|
240
|
+
header: "flex flex-col items-start justify-between px-3 py-2 border-b",
|
|
241
|
+
title: "text-sm font-semibold",
|
|
242
|
+
description: "text-xs text-muted-foreground"
|
|
81
243
|
}
|
|
82
244
|
});
|
|
83
245
|
|
package/dist/index.mjs
CHANGED
|
@@ -4,10 +4,12 @@ import {
|
|
|
4
4
|
} from "./chunk-SVCFD7RR.mjs";
|
|
5
5
|
import {
|
|
6
6
|
button
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-E5AF4JZZ.mjs";
|
|
8
|
+
import "./chunk-HQ27V5V4.mjs";
|
|
9
|
+
import "./chunk-U6ONJKJY.mjs";
|
|
8
10
|
import {
|
|
9
11
|
command
|
|
10
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YPHFKGNI.mjs";
|
|
11
13
|
import {
|
|
12
14
|
drawer
|
|
13
15
|
} from "./chunk-V74N5X6Z.mjs";
|
|
@@ -0,0 +1,36 @@
|
|
|
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/utils/classes.ts
|
|
21
|
+
var classes_exports = {};
|
|
22
|
+
__export(classes_exports, {
|
|
23
|
+
dataFocusVisibleClasses: () => dataFocusVisibleClasses,
|
|
24
|
+
focusVisibleClasses: () => focusVisibleClasses
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(classes_exports);
|
|
27
|
+
var focusVisibleClasses = [
|
|
28
|
+
"focus-visible:outline-2 focus-visible:outline-ring focus-visible:outline-offset-2"
|
|
29
|
+
//"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
30
|
+
];
|
|
31
|
+
var dataFocusVisibleClasses = ["outline-hidden"];
|
|
32
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
33
|
+
0 && (module.exports = {
|
|
34
|
+
dataFocusVisibleClasses,
|
|
35
|
+
focusVisibleClasses
|
|
36
|
+
});
|