@kopexa/theme 1.7.7 → 2.0.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-EXBKQDH5.mjs → chunk-3PCDCW7G.mjs} +1 -1
- package/dist/{chunk-UEMJVVVF.mjs → chunk-5DOB3IBE.mjs} +14 -1
- package/dist/{chunk-SHHD2WUZ.mjs → chunk-7VZZASRG.mjs} +1 -1
- package/dist/chunk-BETLBSSF.mjs +23 -0
- package/dist/chunk-BWB7MWRC.mjs +22 -0
- package/dist/chunk-CPERWXKN.mjs +21 -0
- package/dist/chunk-DI54XTS5.mjs +56 -0
- package/dist/chunk-GRPMKEI2.mjs +34 -0
- package/dist/{chunk-ZL6FAOXE.mjs → chunk-HHOMDBMZ.mjs} +1 -1
- package/dist/chunk-HWEYNK3O.mjs +25 -0
- package/dist/{chunk-U32YEQZ5.mjs → chunk-IHITEH7V.mjs} +15 -9
- package/dist/chunk-IHW4FWFB.mjs +71 -0
- package/dist/{chunk-TJDRYBGW.mjs → chunk-JXQPOORM.mjs} +15 -9
- package/dist/{chunk-MWG2OZMD.mjs → chunk-LAJQAXSV.mjs} +7 -9
- package/dist/{chunk-VCLXE57S.mjs → chunk-LM7MKBHT.mjs} +7 -1
- package/dist/chunk-LMCM4CW2.mjs +22 -0
- package/dist/chunk-M3GQ563Q.mjs +33 -0
- package/dist/chunk-NFOF75HQ.mjs +106 -0
- package/dist/{chunk-JHKTRIIA.mjs → chunk-RQYYDG26.mjs} +4 -2
- package/dist/chunk-SPQE7K66.mjs +18 -0
- package/dist/chunk-TVC4THD6.mjs +16 -0
- package/dist/chunk-URGRCBNW.mjs +27 -0
- package/dist/chunk-VSVGOX3P.mjs +48 -0
- package/dist/chunk-XGUDXC5P.mjs +26 -0
- package/dist/{chunk-755GJHKQ.mjs → chunk-XRKUQMGU.mjs} +1 -1
- package/dist/{chunk-JQ74U2S3.mjs → chunk-YH6TDPK7.mjs} +4 -4
- package/dist/chunk-Z7D56R5U.mjs +70 -0
- package/dist/components/alert-dialog.d.mts +9 -9
- package/dist/components/alert-dialog.d.ts +9 -9
- package/dist/components/alert-dialog.js +11 -2
- package/dist/components/alert-dialog.mjs +1 -1
- package/dist/components/autocomplete.d.mts +73 -0
- package/dist/components/autocomplete.d.ts +73 -0
- package/dist/components/autocomplete.js +173 -0
- package/dist/components/autocomplete.mjs +8 -0
- package/dist/components/avatar.mjs +2 -2
- package/dist/components/button.d.mts +15 -0
- package/dist/components/button.d.ts +15 -0
- package/dist/components/button.js +12 -6
- package/dist/components/button.mjs +2 -2
- package/dist/components/chip.d.mts +3 -0
- package/dist/components/chip.d.ts +3 -0
- package/dist/components/chip.js +4 -2
- package/dist/components/chip.mjs +1 -1
- package/dist/components/color-highlight-button.d.mts +36 -0
- package/dist/components/color-highlight-button.d.ts +36 -0
- package/dist/components/color-highlight-button.js +45 -0
- package/dist/components/color-highlight-button.mjs +6 -0
- package/dist/components/command.d.mts +9 -9
- package/dist/components/command.d.ts +9 -9
- package/dist/components/dialog.js +7 -9
- package/dist/components/dialog.mjs +1 -1
- package/dist/components/drawer.d.mts +3 -3
- package/dist/components/drawer.d.ts +3 -3
- package/dist/components/drawer.js +21 -17
- package/dist/components/drawer.mjs +2 -2
- package/dist/components/dropdown-menu.js +1 -1
- package/dist/components/dropdown-menu.mjs +1 -1
- package/dist/components/editor-basic.d.mts +44 -0
- package/dist/components/editor-basic.d.ts +44 -0
- package/dist/components/editor-basic.js +58 -0
- package/dist/components/editor-basic.mjs +6 -0
- package/dist/components/editor-spinner.d.mts +60 -0
- package/dist/components/editor-spinner.d.ts +60 -0
- package/dist/components/editor-spinner.js +40 -0
- package/dist/components/editor-spinner.mjs +6 -0
- package/dist/components/hover-card.mjs +2 -2
- package/dist/components/index.d.mts +13 -0
- package/dist/components/index.d.ts +13 -0
- package/dist/components/index.js +678 -198
- package/dist/components/index.mjs +93 -41
- package/dist/components/input-group.d.mts +5 -0
- package/dist/components/input-group.d.ts +5 -0
- package/dist/components/input-group.js +49 -0
- package/dist/components/input-group.mjs +6 -0
- package/dist/components/input-wrapper.d.mts +25 -0
- package/dist/components/input-wrapper.d.ts +25 -0
- package/dist/components/input-wrapper.js +72 -0
- package/dist/components/input-wrapper.mjs +6 -0
- package/dist/components/input.d.mts +30 -129
- package/dist/components/input.d.ts +30 -129
- package/dist/components/input.js +58 -71
- package/dist/components/input.mjs +2 -2
- package/dist/components/kbd.d.mts +35 -0
- package/dist/components/kbd.d.ts +35 -0
- package/dist/components/kbd.js +47 -0
- package/dist/components/kbd.mjs +6 -0
- package/dist/components/label.d.mts +22 -0
- package/dist/components/label.d.ts +22 -0
- package/dist/components/label.js +46 -0
- package/dist/components/label.mjs +6 -0
- package/dist/components/popover.d.mts +79 -14
- package/dist/components/popover.d.ts +79 -14
- package/dist/components/popover.js +41 -4
- package/dist/components/popover.mjs +2 -2
- package/dist/components/scroll-area.d.mts +50 -0
- package/dist/components/scroll-area.d.ts +50 -0
- package/dist/components/scroll-area.js +42 -0
- package/dist/components/scroll-area.mjs +6 -0
- package/dist/components/select.d.mts +76 -0
- package/dist/components/select.d.ts +76 -0
- package/dist/components/select.js +145 -0
- package/dist/components/select.mjs +7 -0
- package/dist/components/separator.d.mts +2 -2
- package/dist/components/separator.d.ts +2 -2
- package/dist/components/separator.js +7 -1
- package/dist/components/separator.mjs +1 -1
- package/dist/components/skeleton-avatar.mjs +3 -3
- package/dist/components/slash-dropdown-menu.d.mts +54 -0
- package/dist/components/slash-dropdown-menu.d.ts +54 -0
- package/dist/components/slash-dropdown-menu.js +55 -0
- package/dist/components/slash-dropdown-menu.mjs +7 -0
- package/dist/components/standard-chip.d.mts +4 -0
- package/dist/components/standard-chip.d.ts +4 -0
- package/dist/components/standard-chip.js +4 -2
- package/dist/components/standard-chip.mjs +2 -2
- package/dist/components/textarea.d.mts +25 -0
- package/dist/components/textarea.d.ts +25 -0
- package/dist/components/textarea.js +72 -0
- package/dist/components/textarea.mjs +7 -0
- package/dist/components/toolbar.d.mts +34 -0
- package/dist/components/toolbar.d.ts +34 -0
- package/dist/components/toolbar.js +46 -0
- package/dist/components/toolbar.mjs +6 -0
- package/dist/editor.css +784 -0
- package/dist/index.css +28 -1
- package/dist/index.d.mts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +678 -198
- package/dist/index.mjs +93 -41
- package/dist/utils/classes.d.mts +13 -1
- package/dist/utils/classes.d.ts +13 -1
- package/dist/utils/classes.js +14 -0
- package/dist/utils/classes.mjs +3 -1
- package/package.json +24 -18
- package/dist/chunk-CPEP2RO4.mjs +0 -17
- package/dist/chunk-IKJHZT2S.mjs +0 -19
- package/dist/chunk-UMSU2ZEG.mjs +0 -96
- /package/dist/{chunk-3ZVSVLZD.mjs → chunk-UWWO4AVU.mjs} +0 -0
|
@@ -5,15 +5,15 @@ import * as tailwind_merge from 'tailwind-merge';
|
|
|
5
5
|
declare const passwordInput: tailwind_variants.TVReturnType<{
|
|
6
6
|
[key: string]: {
|
|
7
7
|
[key: string]: tailwind_merge.ClassNameValue | {
|
|
8
|
-
icon?: tailwind_merge.ClassNameValue;
|
|
9
8
|
button?: tailwind_merge.ClassNameValue;
|
|
9
|
+
icon?: tailwind_merge.ClassNameValue;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
} | {
|
|
13
13
|
[x: string]: {
|
|
14
14
|
[x: string]: tailwind_merge.ClassNameValue | {
|
|
15
|
-
icon?: tailwind_merge.ClassNameValue;
|
|
16
15
|
button?: tailwind_merge.ClassNameValue;
|
|
16
|
+
icon?: tailwind_merge.ClassNameValue;
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
19
|
} | {}, {
|
|
@@ -22,8 +22,8 @@ declare const passwordInput: tailwind_variants.TVReturnType<{
|
|
|
22
22
|
}, undefined, {
|
|
23
23
|
[key: string]: {
|
|
24
24
|
[key: string]: tailwind_merge.ClassNameValue | {
|
|
25
|
-
icon?: tailwind_merge.ClassNameValue;
|
|
26
25
|
button?: tailwind_merge.ClassNameValue;
|
|
26
|
+
icon?: tailwind_merge.ClassNameValue;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
} | {}, {
|
|
@@ -35,143 +35,44 @@ declare const passwordInput: tailwind_variants.TVReturnType<{
|
|
|
35
35
|
}, undefined, unknown, unknown, undefined>>;
|
|
36
36
|
declare const input: tailwind_variants.TVReturnType<{
|
|
37
37
|
size: {
|
|
38
|
-
sm:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
};
|
|
42
|
-
md: {
|
|
43
|
-
inputWrapper: string;
|
|
44
|
-
input: string;
|
|
45
|
-
clearButton: string;
|
|
46
|
-
};
|
|
47
|
-
lg: {
|
|
48
|
-
inputWrapper: string;
|
|
49
|
-
input: string;
|
|
50
|
-
clearButton: string;
|
|
51
|
-
};
|
|
38
|
+
sm: string[];
|
|
39
|
+
md: string[];
|
|
40
|
+
lg: string[];
|
|
52
41
|
};
|
|
53
42
|
radius: {
|
|
54
|
-
none:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
};
|
|
60
|
-
md: {
|
|
61
|
-
inputWrapper: string;
|
|
62
|
-
};
|
|
63
|
-
lg: {
|
|
64
|
-
inputWrapper: string;
|
|
65
|
-
};
|
|
66
|
-
full: {
|
|
67
|
-
inputWrapper: string;
|
|
68
|
-
};
|
|
43
|
+
none: string;
|
|
44
|
+
sm: string;
|
|
45
|
+
md: string;
|
|
46
|
+
lg: string;
|
|
47
|
+
full: string;
|
|
69
48
|
};
|
|
70
|
-
|
|
71
|
-
true: {
|
|
72
|
-
input: string;
|
|
73
|
-
clearButton: string[];
|
|
74
|
-
};
|
|
75
|
-
false: {};
|
|
76
|
-
};
|
|
77
|
-
}, {
|
|
78
|
-
inputWrapper: string[];
|
|
79
|
-
innerWrapper: string;
|
|
80
|
-
input: string[];
|
|
81
|
-
clearButton: string[];
|
|
82
|
-
}, never[], {
|
|
49
|
+
}, undefined, string[], {
|
|
83
50
|
size: {
|
|
84
|
-
sm:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
};
|
|
88
|
-
md: {
|
|
89
|
-
inputWrapper: string;
|
|
90
|
-
input: string;
|
|
91
|
-
clearButton: string;
|
|
92
|
-
};
|
|
93
|
-
lg: {
|
|
94
|
-
inputWrapper: string;
|
|
95
|
-
input: string;
|
|
96
|
-
clearButton: string;
|
|
97
|
-
};
|
|
51
|
+
sm: string[];
|
|
52
|
+
md: string[];
|
|
53
|
+
lg: string[];
|
|
98
54
|
};
|
|
99
55
|
radius: {
|
|
100
|
-
none:
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
};
|
|
106
|
-
md: {
|
|
107
|
-
inputWrapper: string;
|
|
108
|
-
};
|
|
109
|
-
lg: {
|
|
110
|
-
inputWrapper: string;
|
|
111
|
-
};
|
|
112
|
-
full: {
|
|
113
|
-
inputWrapper: string;
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
isClearable: {
|
|
117
|
-
true: {
|
|
118
|
-
input: string;
|
|
119
|
-
clearButton: string[];
|
|
120
|
-
};
|
|
121
|
-
false: {};
|
|
56
|
+
none: string;
|
|
57
|
+
sm: string;
|
|
58
|
+
md: string;
|
|
59
|
+
lg: string;
|
|
60
|
+
full: string;
|
|
122
61
|
};
|
|
123
|
-
}, {
|
|
124
|
-
inputWrapper: string[];
|
|
125
|
-
innerWrapper: string;
|
|
126
|
-
input: string[];
|
|
127
|
-
clearButton: string[];
|
|
128
|
-
}, tailwind_variants.TVReturnType<{
|
|
62
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
129
63
|
size: {
|
|
130
|
-
sm:
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
};
|
|
134
|
-
md: {
|
|
135
|
-
inputWrapper: string;
|
|
136
|
-
input: string;
|
|
137
|
-
clearButton: string;
|
|
138
|
-
};
|
|
139
|
-
lg: {
|
|
140
|
-
inputWrapper: string;
|
|
141
|
-
input: string;
|
|
142
|
-
clearButton: string;
|
|
143
|
-
};
|
|
64
|
+
sm: string[];
|
|
65
|
+
md: string[];
|
|
66
|
+
lg: string[];
|
|
144
67
|
};
|
|
145
68
|
radius: {
|
|
146
|
-
none:
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
};
|
|
152
|
-
md: {
|
|
153
|
-
inputWrapper: string;
|
|
154
|
-
};
|
|
155
|
-
lg: {
|
|
156
|
-
inputWrapper: string;
|
|
157
|
-
};
|
|
158
|
-
full: {
|
|
159
|
-
inputWrapper: string;
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
isClearable: {
|
|
163
|
-
true: {
|
|
164
|
-
input: string;
|
|
165
|
-
clearButton: string[];
|
|
166
|
-
};
|
|
167
|
-
false: {};
|
|
69
|
+
none: string;
|
|
70
|
+
sm: string;
|
|
71
|
+
md: string;
|
|
72
|
+
lg: string;
|
|
73
|
+
full: string;
|
|
168
74
|
};
|
|
169
|
-
},
|
|
170
|
-
inputWrapper: string[];
|
|
171
|
-
innerWrapper: string;
|
|
172
|
-
input: string[];
|
|
173
|
-
clearButton: string[];
|
|
174
|
-
}, never[], unknown, unknown, undefined>>;
|
|
75
|
+
}, undefined, string[], unknown, unknown, undefined>>;
|
|
175
76
|
type InputVariantProps = VariantProps<typeof input>;
|
|
176
77
|
type InputSlots = keyof ReturnType<typeof input>;
|
|
177
78
|
|
package/dist/components/input.js
CHANGED
|
@@ -27,9 +27,22 @@ module.exports = __toCommonJS(input_exports);
|
|
|
27
27
|
var import_tailwind_variants = require("tailwind-variants");
|
|
28
28
|
|
|
29
29
|
// src/utils/classes.ts
|
|
30
|
-
var
|
|
31
|
-
"focus-
|
|
30
|
+
var focusVisibleClasses = [
|
|
31
|
+
"focus-visible:outline-2 focus-visible:outline-ring focus-visible:outline-offset-2"
|
|
32
|
+
//"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
32
33
|
];
|
|
34
|
+
var inputClasses = {
|
|
35
|
+
radius: {
|
|
36
|
+
sm: "rounded-sm",
|
|
37
|
+
md: "rounded-md",
|
|
38
|
+
lg: "rounded-lg"
|
|
39
|
+
},
|
|
40
|
+
height: {
|
|
41
|
+
sm: "h-7 min-h-7",
|
|
42
|
+
md: "h-8.5 min-h-8.5",
|
|
43
|
+
lg: "h-10 min-h-10"
|
|
44
|
+
}
|
|
45
|
+
};
|
|
33
46
|
|
|
34
47
|
// src/components/input.ts
|
|
35
48
|
var passwordInput = (0, import_tailwind_variants.tv)({
|
|
@@ -39,82 +52,56 @@ var passwordInput = (0, import_tailwind_variants.tv)({
|
|
|
39
52
|
}
|
|
40
53
|
});
|
|
41
54
|
var input = (0, import_tailwind_variants.tv)({
|
|
42
|
-
base: [
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"file:text-foreground file:inline-flex file:text-sm file:font-medium",
|
|
62
|
-
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive"
|
|
63
|
-
],
|
|
64
|
-
clearButton: [
|
|
65
|
-
"p-2 -m-2 z-10 absolute end-3 start-auto pointer-events-none",
|
|
66
|
-
"appearance-none outline-hidden select-none opacity-0 cursor-pointer",
|
|
67
|
-
"active:!opacity-70 rounded-full"
|
|
68
|
-
]
|
|
69
|
-
},
|
|
55
|
+
base: [
|
|
56
|
+
"w-full inline-flex bg-background text-foreground",
|
|
57
|
+
"border-input border",
|
|
58
|
+
"shadow-xs placeholder:text-muted-foreground",
|
|
59
|
+
...focusVisibleClasses,
|
|
60
|
+
"disabled:cursor-not-allowed disabled:opacity-60",
|
|
61
|
+
"[&[readonly]]:bg-muted/80 [&[readonly]]:cursor-not-allowed",
|
|
62
|
+
"w-full font-normal outline-hidden focus-visible:outline-hidden",
|
|
63
|
+
"data-[has-start-content=true]:ps-1.5",
|
|
64
|
+
"data-[has-end-content=true]:pe-1.5",
|
|
65
|
+
"file:cursor-pointer file:bg-transparent file:border-0",
|
|
66
|
+
"autofill:bg-transparent bg-clip-text",
|
|
67
|
+
// legacy
|
|
68
|
+
"selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground",
|
|
69
|
+
"flex",
|
|
70
|
+
// file
|
|
71
|
+
"file:text-foreground file:inline-flex file:text-sm file:font-medium",
|
|
72
|
+
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive"
|
|
73
|
+
],
|
|
70
74
|
variants: {
|
|
71
75
|
size: {
|
|
72
|
-
sm:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
76
|
+
sm: [
|
|
77
|
+
inputClasses.radius.sm,
|
|
78
|
+
inputClasses.height.sm,
|
|
79
|
+
"px-2.5 [&_svg]:size-4",
|
|
80
|
+
"text-sm file:h-6"
|
|
81
|
+
],
|
|
82
|
+
md: [
|
|
83
|
+
inputClasses.radius.md,
|
|
84
|
+
inputClasses.height.md,
|
|
85
|
+
"px-3 [&_svg]:size-4",
|
|
86
|
+
"text-base md:text-sm file:h-8"
|
|
87
|
+
],
|
|
88
|
+
lg: [
|
|
89
|
+
inputClasses.radius.lg,
|
|
90
|
+
inputClasses.height.md,
|
|
91
|
+
"px-4 [&_svg]:size-4",
|
|
92
|
+
"text-base file:h-10"
|
|
93
|
+
]
|
|
86
94
|
},
|
|
87
95
|
radius: {
|
|
88
|
-
none:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
},
|
|
94
|
-
md: {
|
|
95
|
-
inputWrapper: "rounded-md"
|
|
96
|
-
},
|
|
97
|
-
lg: {
|
|
98
|
-
inputWrapper: "rounded-lg"
|
|
99
|
-
},
|
|
100
|
-
full: {
|
|
101
|
-
inputWrapper: "rounded-full"
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
isClearable: {
|
|
105
|
-
true: {
|
|
106
|
-
input: "peer pe-6",
|
|
107
|
-
clearButton: [
|
|
108
|
-
"peer-data-[filled=true]:pointer-events-auto",
|
|
109
|
-
"peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block",
|
|
110
|
-
"peer-data-[filled=true]:scale-100"
|
|
111
|
-
]
|
|
112
|
-
},
|
|
113
|
-
false: {}
|
|
96
|
+
none: "rounded-none",
|
|
97
|
+
sm: "rounded-sm",
|
|
98
|
+
md: "rounded-md",
|
|
99
|
+
lg: "rounded-lg",
|
|
100
|
+
full: "rounded-full"
|
|
114
101
|
}
|
|
115
102
|
},
|
|
116
103
|
defaultVariants: {
|
|
117
|
-
size: "
|
|
104
|
+
size: "md"
|
|
118
105
|
}
|
|
119
106
|
});
|
|
120
107
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
declare const kbd: tailwind_variants.TVReturnType<{
|
|
4
|
+
variant: {
|
|
5
|
+
default: string;
|
|
6
|
+
outline: string;
|
|
7
|
+
};
|
|
8
|
+
size: {
|
|
9
|
+
md: string;
|
|
10
|
+
sm: string;
|
|
11
|
+
xs: string;
|
|
12
|
+
};
|
|
13
|
+
}, undefined, "inline-flex items-center justify-center font-mono rounded-md", {
|
|
14
|
+
variant: {
|
|
15
|
+
default: string;
|
|
16
|
+
outline: string;
|
|
17
|
+
};
|
|
18
|
+
size: {
|
|
19
|
+
md: string;
|
|
20
|
+
sm: string;
|
|
21
|
+
xs: string;
|
|
22
|
+
};
|
|
23
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
24
|
+
variant: {
|
|
25
|
+
default: string;
|
|
26
|
+
outline: string;
|
|
27
|
+
};
|
|
28
|
+
size: {
|
|
29
|
+
md: string;
|
|
30
|
+
sm: string;
|
|
31
|
+
xs: string;
|
|
32
|
+
};
|
|
33
|
+
}, undefined, "inline-flex items-center justify-center font-mono rounded-md", unknown, unknown, undefined>>;
|
|
34
|
+
|
|
35
|
+
export { kbd };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
declare const kbd: tailwind_variants.TVReturnType<{
|
|
4
|
+
variant: {
|
|
5
|
+
default: string;
|
|
6
|
+
outline: string;
|
|
7
|
+
};
|
|
8
|
+
size: {
|
|
9
|
+
md: string;
|
|
10
|
+
sm: string;
|
|
11
|
+
xs: string;
|
|
12
|
+
};
|
|
13
|
+
}, undefined, "inline-flex items-center justify-center font-mono rounded-md", {
|
|
14
|
+
variant: {
|
|
15
|
+
default: string;
|
|
16
|
+
outline: string;
|
|
17
|
+
};
|
|
18
|
+
size: {
|
|
19
|
+
md: string;
|
|
20
|
+
sm: string;
|
|
21
|
+
xs: string;
|
|
22
|
+
};
|
|
23
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
24
|
+
variant: {
|
|
25
|
+
default: string;
|
|
26
|
+
outline: string;
|
|
27
|
+
};
|
|
28
|
+
size: {
|
|
29
|
+
md: string;
|
|
30
|
+
sm: string;
|
|
31
|
+
xs: string;
|
|
32
|
+
};
|
|
33
|
+
}, undefined, "inline-flex items-center justify-center font-mono rounded-md", unknown, unknown, undefined>>;
|
|
34
|
+
|
|
35
|
+
export { kbd };
|
|
@@ -0,0 +1,47 @@
|
|
|
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/kbd.ts
|
|
21
|
+
var kbd_exports = {};
|
|
22
|
+
__export(kbd_exports, {
|
|
23
|
+
kbd: () => kbd
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(kbd_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
var kbd = (0, import_tailwind_variants.tv)({
|
|
28
|
+
base: "inline-flex items-center justify-center font-mono rounded-md",
|
|
29
|
+
variants: {
|
|
30
|
+
variant: {
|
|
31
|
+
default: "bg-accent border border-border text-accent-foreground",
|
|
32
|
+
outline: "text-accent-foreground border border-input"
|
|
33
|
+
},
|
|
34
|
+
size: {
|
|
35
|
+
md: "h-7 min-w-7 px-1.5 text-xs [&_svg]:size-3.5",
|
|
36
|
+
sm: "h-6 min-w-6 px-1 text-[0.75rem] leading-[0.75rem] [&_svg]:size-3",
|
|
37
|
+
xs: "h-5 min-w-5 px-1 text-[0.6875rem] leading-[0.75rem] [&_svg]:size-3"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
defaultVariants: {
|
|
41
|
+
size: "md"
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
45
|
+
0 && (module.exports = {
|
|
46
|
+
kbd
|
|
47
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const label: tailwind_variants.TVReturnType<{
|
|
5
|
+
variant: {
|
|
6
|
+
primary: string;
|
|
7
|
+
secondary: string;
|
|
8
|
+
};
|
|
9
|
+
}, undefined, string[], {
|
|
10
|
+
variant: {
|
|
11
|
+
primary: string;
|
|
12
|
+
secondary: string;
|
|
13
|
+
};
|
|
14
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
15
|
+
variant: {
|
|
16
|
+
primary: string;
|
|
17
|
+
secondary: string;
|
|
18
|
+
};
|
|
19
|
+
}, undefined, string[], unknown, unknown, undefined>>;
|
|
20
|
+
type LabelVariantProps = VariantProps<typeof label>;
|
|
21
|
+
|
|
22
|
+
export { type LabelVariantProps, label };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const label: tailwind_variants.TVReturnType<{
|
|
5
|
+
variant: {
|
|
6
|
+
primary: string;
|
|
7
|
+
secondary: string;
|
|
8
|
+
};
|
|
9
|
+
}, undefined, string[], {
|
|
10
|
+
variant: {
|
|
11
|
+
primary: string;
|
|
12
|
+
secondary: string;
|
|
13
|
+
};
|
|
14
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
15
|
+
variant: {
|
|
16
|
+
primary: string;
|
|
17
|
+
secondary: string;
|
|
18
|
+
};
|
|
19
|
+
}, undefined, string[], unknown, unknown, undefined>>;
|
|
20
|
+
type LabelVariantProps = VariantProps<typeof label>;
|
|
21
|
+
|
|
22
|
+
export { type LabelVariantProps, label };
|
|
@@ -0,0 +1,46 @@
|
|
|
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/label.ts
|
|
21
|
+
var label_exports = {};
|
|
22
|
+
__export(label_exports, {
|
|
23
|
+
label: () => label
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(label_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
var label = (0, import_tailwind_variants.tv)({
|
|
28
|
+
base: [
|
|
29
|
+
"text-sm leading-none",
|
|
30
|
+
"text-foreground",
|
|
31
|
+
"peer-disabled:cursor-not-allowed peer-disabled:opacity-50"
|
|
32
|
+
],
|
|
33
|
+
variants: {
|
|
34
|
+
variant: {
|
|
35
|
+
primary: "font-medium",
|
|
36
|
+
secondary: "font-normal"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
defaultVariants: {
|
|
40
|
+
variant: "primary"
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
44
|
+
0 && (module.exports = {
|
|
45
|
+
label
|
|
46
|
+
});
|