@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
|
@@ -0,0 +1,173 @@
|
|
|
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/autocomplete.ts
|
|
21
|
+
var autocomplete_exports = {};
|
|
22
|
+
__export(autocomplete_exports, {
|
|
23
|
+
autocomplete: () => autocomplete
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(autocomplete_exports);
|
|
26
|
+
var import_tailwind_variants2 = require("tailwind-variants");
|
|
27
|
+
|
|
28
|
+
// src/utils/classes.ts
|
|
29
|
+
var focusVisibleClasses = [
|
|
30
|
+
"focus-visible:outline-2 focus-visible:outline-ring focus-visible:outline-offset-2"
|
|
31
|
+
//"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
32
|
+
];
|
|
33
|
+
var popoverContentClasses = [
|
|
34
|
+
"bg-popover text-popover-foreground z-50",
|
|
35
|
+
"rounded-md border p-4 shadow-md outline-hidden"
|
|
36
|
+
];
|
|
37
|
+
var inputClasses = {
|
|
38
|
+
radius: {
|
|
39
|
+
sm: "rounded-sm",
|
|
40
|
+
md: "rounded-md",
|
|
41
|
+
lg: "rounded-lg"
|
|
42
|
+
},
|
|
43
|
+
height: {
|
|
44
|
+
sm: "h-7 min-h-7",
|
|
45
|
+
md: "h-8.5 min-h-8.5",
|
|
46
|
+
lg: "h-10 min-h-10"
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
// src/components/input.ts
|
|
51
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
52
|
+
var passwordInput = (0, import_tailwind_variants.tv)({
|
|
53
|
+
slots: {
|
|
54
|
+
button: "focus:outline-hidden",
|
|
55
|
+
icon: "pointer-events-none text-muted-foreground"
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
var input = (0, import_tailwind_variants.tv)({
|
|
59
|
+
base: [
|
|
60
|
+
"w-full inline-flex bg-background text-foreground",
|
|
61
|
+
"border-input border",
|
|
62
|
+
"shadow-xs placeholder:text-muted-foreground",
|
|
63
|
+
...focusVisibleClasses,
|
|
64
|
+
"disabled:cursor-not-allowed disabled:opacity-60",
|
|
65
|
+
"[&[readonly]]:bg-muted/80 [&[readonly]]:cursor-not-allowed",
|
|
66
|
+
"w-full font-normal outline-hidden focus-visible:outline-hidden",
|
|
67
|
+
"data-[has-start-content=true]:ps-1.5",
|
|
68
|
+
"data-[has-end-content=true]:pe-1.5",
|
|
69
|
+
"file:cursor-pointer file:bg-transparent file:border-0",
|
|
70
|
+
"autofill:bg-transparent bg-clip-text",
|
|
71
|
+
// legacy
|
|
72
|
+
"selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground",
|
|
73
|
+
"flex",
|
|
74
|
+
// file
|
|
75
|
+
"file:text-foreground file:inline-flex file:text-sm file:font-medium",
|
|
76
|
+
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive"
|
|
77
|
+
],
|
|
78
|
+
variants: {
|
|
79
|
+
size: {
|
|
80
|
+
sm: [
|
|
81
|
+
inputClasses.radius.sm,
|
|
82
|
+
inputClasses.height.sm,
|
|
83
|
+
"px-2.5 [&_svg]:size-4",
|
|
84
|
+
"text-sm file:h-6"
|
|
85
|
+
],
|
|
86
|
+
md: [
|
|
87
|
+
inputClasses.radius.md,
|
|
88
|
+
inputClasses.height.md,
|
|
89
|
+
"px-3 [&_svg]:size-4",
|
|
90
|
+
"text-base md:text-sm file:h-8"
|
|
91
|
+
],
|
|
92
|
+
lg: [
|
|
93
|
+
inputClasses.radius.lg,
|
|
94
|
+
inputClasses.height.md,
|
|
95
|
+
"px-4 [&_svg]:size-4",
|
|
96
|
+
"text-base file:h-10"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
radius: {
|
|
100
|
+
none: "rounded-none",
|
|
101
|
+
sm: "rounded-sm",
|
|
102
|
+
md: "rounded-md",
|
|
103
|
+
lg: "rounded-lg",
|
|
104
|
+
full: "rounded-full"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
defaultVariants: {
|
|
108
|
+
size: "md"
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
// src/components/autocomplete.ts
|
|
113
|
+
var autocomplete = (0, import_tailwind_variants2.tv)({
|
|
114
|
+
slots: {
|
|
115
|
+
input: input.base,
|
|
116
|
+
content: "",
|
|
117
|
+
positioner: "outline-none",
|
|
118
|
+
popup: [
|
|
119
|
+
...popoverContentClasses,
|
|
120
|
+
"p-0 py-1 w-[var(--anchor-width)] max-h-[min(var(--available-height),23rem)] max-w-[var(--available-width)]",
|
|
121
|
+
"overflow-y-auto scroll-pt-2 scroll-pb-2 overscroll-contain bg-[canvas]",
|
|
122
|
+
"shadow-black/5",
|
|
123
|
+
"origin-[var(--transform-origin)] transition-[transform,scale,opacity] data-[ending-style]:scale-90",
|
|
124
|
+
"data-[ending-style]:opacity-0 data-[starting-style]:scale-90 data-[starting-style]:opacity-0"
|
|
125
|
+
],
|
|
126
|
+
empty: ["px-2 py-1.5 text-sm text-muted-foreground empty:m-0 empty:p-0"],
|
|
127
|
+
list: "space-y-0.5",
|
|
128
|
+
item: [
|
|
129
|
+
"text-foreground relative flex cursor-default select-none items-center gap-2 rounded-md px-4 py-2 text-sm outline-hidden transition-colors",
|
|
130
|
+
"data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
131
|
+
"[&_svg]:pointer-events-none [&_svg:not([role=img]):not([class*=text-])]:opacity-60 [&_svg:not([class*=size-])]:size-4 [&_svg]:shrink-0",
|
|
132
|
+
"data-[highlighted]:relative data-[highlighted]:z-0 data-[highlighted]:text-foreground data-[highlighted]:before:absolute",
|
|
133
|
+
"data-[highlighted]:before:inset-x-1 data-[highlighted]:before:inset-y-0 data-[highlighted]:before:z-[-1] data-[highlighted]:before:rounded-sm data-[highlighted]:before:bg-accent"
|
|
134
|
+
],
|
|
135
|
+
clear: [
|
|
136
|
+
"absolute cursor-pointer top-1/2 -translate-y-1/2",
|
|
137
|
+
"rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100",
|
|
138
|
+
"focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",
|
|
139
|
+
"data-[disabled]:pointer-events-none",
|
|
140
|
+
"[&_svg]:size-3.5"
|
|
141
|
+
],
|
|
142
|
+
control: "relative"
|
|
143
|
+
},
|
|
144
|
+
variants: {
|
|
145
|
+
size: {
|
|
146
|
+
sm: {
|
|
147
|
+
input: [
|
|
148
|
+
input.variants.size.sm,
|
|
149
|
+
"[&~[data-slot=autocomplete-clear]]:end-1.75"
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
md: {
|
|
153
|
+
input: [
|
|
154
|
+
input.variants.size.md,
|
|
155
|
+
"[&~[data-slot=autocomplete-clear]]:end-2"
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
lg: {
|
|
159
|
+
input: [
|
|
160
|
+
input.variants.size.lg,
|
|
161
|
+
"[&~[data-slot=autocomplete-clear]]:end-2.5"
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
defaultVariants: {
|
|
167
|
+
size: "md"
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
171
|
+
0 && (module.exports = {
|
|
172
|
+
autocomplete
|
|
173
|
+
});
|
|
@@ -46,6 +46,11 @@ declare const button: tailwind_variants.TVReturnType<{
|
|
|
46
46
|
true: string;
|
|
47
47
|
false: string;
|
|
48
48
|
};
|
|
49
|
+
spacing: {
|
|
50
|
+
default: string;
|
|
51
|
+
between: string;
|
|
52
|
+
start: string;
|
|
53
|
+
};
|
|
49
54
|
}, undefined, string[], {
|
|
50
55
|
variant: {
|
|
51
56
|
solid: string;
|
|
@@ -74,6 +79,11 @@ declare const button: tailwind_variants.TVReturnType<{
|
|
|
74
79
|
true: string;
|
|
75
80
|
false: string;
|
|
76
81
|
};
|
|
82
|
+
spacing: {
|
|
83
|
+
default: string;
|
|
84
|
+
between: string;
|
|
85
|
+
start: string;
|
|
86
|
+
};
|
|
77
87
|
}, undefined, tailwind_variants.TVReturnType<{
|
|
78
88
|
variant: {
|
|
79
89
|
solid: string;
|
|
@@ -102,6 +112,11 @@ declare const button: tailwind_variants.TVReturnType<{
|
|
|
102
112
|
true: string;
|
|
103
113
|
false: string;
|
|
104
114
|
};
|
|
115
|
+
spacing: {
|
|
116
|
+
default: string;
|
|
117
|
+
between: string;
|
|
118
|
+
start: string;
|
|
119
|
+
};
|
|
105
120
|
}, undefined, string[], unknown, unknown, undefined>>;
|
|
106
121
|
type ButtonVariantProps = VariantProps<typeof button>;
|
|
107
122
|
|
|
@@ -46,6 +46,11 @@ declare const button: tailwind_variants.TVReturnType<{
|
|
|
46
46
|
true: string;
|
|
47
47
|
false: string;
|
|
48
48
|
};
|
|
49
|
+
spacing: {
|
|
50
|
+
default: string;
|
|
51
|
+
between: string;
|
|
52
|
+
start: string;
|
|
53
|
+
};
|
|
49
54
|
}, undefined, string[], {
|
|
50
55
|
variant: {
|
|
51
56
|
solid: string;
|
|
@@ -74,6 +79,11 @@ declare const button: tailwind_variants.TVReturnType<{
|
|
|
74
79
|
true: string;
|
|
75
80
|
false: string;
|
|
76
81
|
};
|
|
82
|
+
spacing: {
|
|
83
|
+
default: string;
|
|
84
|
+
between: string;
|
|
85
|
+
start: string;
|
|
86
|
+
};
|
|
77
87
|
}, undefined, tailwind_variants.TVReturnType<{
|
|
78
88
|
variant: {
|
|
79
89
|
solid: string;
|
|
@@ -102,6 +112,11 @@ declare const button: tailwind_variants.TVReturnType<{
|
|
|
102
112
|
true: string;
|
|
103
113
|
false: string;
|
|
104
114
|
};
|
|
115
|
+
spacing: {
|
|
116
|
+
default: string;
|
|
117
|
+
between: string;
|
|
118
|
+
start: string;
|
|
119
|
+
};
|
|
105
120
|
}, undefined, string[], unknown, unknown, undefined>>;
|
|
106
121
|
type ButtonVariantProps = VariantProps<typeof button>;
|
|
107
122
|
|
|
@@ -92,6 +92,7 @@ var button = (0, import_tailwind_variants.tv)({
|
|
|
92
92
|
...focusVisibleClasses,
|
|
93
93
|
// shadcn below
|
|
94
94
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
95
|
+
"data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50",
|
|
95
96
|
"shrink-0 [&_svg]:shrink-0",
|
|
96
97
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
97
98
|
"text-sm font-medium"
|
|
@@ -99,14 +100,14 @@ var button = (0, import_tailwind_variants.tv)({
|
|
|
99
100
|
variants: {
|
|
100
101
|
variant: {
|
|
101
102
|
solid: "shadow-xs",
|
|
102
|
-
ghost: "data-[active-state=on]:bg-
|
|
103
|
+
ghost: "data-[active-state=on]:bg-primary/10",
|
|
103
104
|
outline: "border-1 bg-transparent",
|
|
104
105
|
link: ""
|
|
105
106
|
},
|
|
106
107
|
size: {
|
|
107
|
-
sm: "px-3 min-w-16 h-
|
|
108
|
-
md: "px-4 min-w-20 h-
|
|
109
|
-
lg: "px-6 min-w-24 h-
|
|
108
|
+
sm: "px-3 min-w-16 h-7 text-xs gap-2 rounded-sm has-[>svg]:px-2.5 [&_svg]:size-3",
|
|
109
|
+
md: "px-4 min-w-20 h-8.5 text-sm gap-2 rounded-sm has-[>svg]:px-3 [&_svg]:size-4",
|
|
110
|
+
lg: "px-6 min-w-24 h-10 text-base gap-3 rounded-lg has-[>svg]:px-4 [&_svg]:size-4"
|
|
110
111
|
},
|
|
111
112
|
color: {
|
|
112
113
|
primary: "",
|
|
@@ -123,10 +124,15 @@ var button = (0, import_tailwind_variants.tv)({
|
|
|
123
124
|
isIconOnly: {
|
|
124
125
|
true: "px-0 !gap-0",
|
|
125
126
|
false: "[&>svg]:max-w-[theme(spacing.8)]"
|
|
127
|
+
},
|
|
128
|
+
spacing: {
|
|
129
|
+
default: "",
|
|
130
|
+
between: "justify-between",
|
|
131
|
+
start: "justify-start"
|
|
126
132
|
}
|
|
127
133
|
},
|
|
128
134
|
defaultVariants: {
|
|
129
|
-
size: "
|
|
135
|
+
size: "md",
|
|
130
136
|
variant: "solid",
|
|
131
137
|
color: "primary",
|
|
132
138
|
fullWidth: false,
|
|
@@ -193,7 +199,7 @@ var button = (0, import_tailwind_variants.tv)({
|
|
|
193
199
|
{
|
|
194
200
|
variant: "ghost",
|
|
195
201
|
color: "default",
|
|
196
|
-
class: colorVariants.ghost.default
|
|
202
|
+
class: [colorVariants.ghost.default, "hover:bg-accent/50"]
|
|
197
203
|
},
|
|
198
204
|
// outline color
|
|
199
205
|
{
|
|
@@ -11,6 +11,7 @@ declare const chip: tailwind_variants.TVReturnType<{
|
|
|
11
11
|
root: string;
|
|
12
12
|
};
|
|
13
13
|
flat: {};
|
|
14
|
+
ghost: {};
|
|
14
15
|
};
|
|
15
16
|
color: {
|
|
16
17
|
default: {
|
|
@@ -127,6 +128,7 @@ declare const chip: tailwind_variants.TVReturnType<{
|
|
|
127
128
|
root: string;
|
|
128
129
|
};
|
|
129
130
|
flat: {};
|
|
131
|
+
ghost: {};
|
|
130
132
|
};
|
|
131
133
|
color: {
|
|
132
134
|
default: {
|
|
@@ -243,6 +245,7 @@ declare const chip: tailwind_variants.TVReturnType<{
|
|
|
243
245
|
root: string;
|
|
244
246
|
};
|
|
245
247
|
flat: {};
|
|
248
|
+
ghost: {};
|
|
246
249
|
};
|
|
247
250
|
color: {
|
|
248
251
|
default: {
|
|
@@ -11,6 +11,7 @@ declare const chip: tailwind_variants.TVReturnType<{
|
|
|
11
11
|
root: string;
|
|
12
12
|
};
|
|
13
13
|
flat: {};
|
|
14
|
+
ghost: {};
|
|
14
15
|
};
|
|
15
16
|
color: {
|
|
16
17
|
default: {
|
|
@@ -127,6 +128,7 @@ declare const chip: tailwind_variants.TVReturnType<{
|
|
|
127
128
|
root: string;
|
|
128
129
|
};
|
|
129
130
|
flat: {};
|
|
131
|
+
ghost: {};
|
|
130
132
|
};
|
|
131
133
|
color: {
|
|
132
134
|
default: {
|
|
@@ -243,6 +245,7 @@ declare const chip: tailwind_variants.TVReturnType<{
|
|
|
243
245
|
root: string;
|
|
244
246
|
};
|
|
245
247
|
flat: {};
|
|
248
|
+
ghost: {};
|
|
246
249
|
};
|
|
247
250
|
color: {
|
|
248
251
|
default: {
|
package/dist/components/chip.js
CHANGED
|
@@ -88,7 +88,8 @@ var chip = (0, import_tailwind_variants.tv)({
|
|
|
88
88
|
"justify-between",
|
|
89
89
|
"box-border",
|
|
90
90
|
"whitespace-nowrap",
|
|
91
|
-
"isolate"
|
|
91
|
+
"isolate",
|
|
92
|
+
"data-[active=true]:ring-2"
|
|
92
93
|
],
|
|
93
94
|
content: "flex-1 text-inherit font-normal",
|
|
94
95
|
indicator: "relative flex size-2 ml-1",
|
|
@@ -109,7 +110,8 @@ var chip = (0, import_tailwind_variants.tv)({
|
|
|
109
110
|
faded: {
|
|
110
111
|
root: "border-2"
|
|
111
112
|
},
|
|
112
|
-
flat: {}
|
|
113
|
+
flat: {},
|
|
114
|
+
ghost: {}
|
|
113
115
|
},
|
|
114
116
|
color: {
|
|
115
117
|
default: {
|
package/dist/components/chip.mjs
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import * as tailwind_merge from 'tailwind-merge';
|
|
3
|
+
|
|
4
|
+
declare const colorHighlightButton: tailwind_variants.TVReturnType<{
|
|
5
|
+
[key: string]: {
|
|
6
|
+
[key: string]: tailwind_merge.ClassNameValue | {
|
|
7
|
+
button?: tailwind_merge.ClassNameValue;
|
|
8
|
+
mark?: tailwind_merge.ClassNameValue;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
} | {
|
|
12
|
+
[x: string]: {
|
|
13
|
+
[x: string]: tailwind_merge.ClassNameValue | {
|
|
14
|
+
button?: tailwind_merge.ClassNameValue;
|
|
15
|
+
mark?: tailwind_merge.ClassNameValue;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
} | {}, {
|
|
19
|
+
button: string[];
|
|
20
|
+
mark: string[];
|
|
21
|
+
}, undefined, {
|
|
22
|
+
[key: string]: {
|
|
23
|
+
[key: string]: tailwind_merge.ClassNameValue | {
|
|
24
|
+
button?: tailwind_merge.ClassNameValue;
|
|
25
|
+
mark?: tailwind_merge.ClassNameValue;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
} | {}, {
|
|
29
|
+
button: string[];
|
|
30
|
+
mark: string[];
|
|
31
|
+
}, tailwind_variants.TVReturnType<unknown, {
|
|
32
|
+
button: string[];
|
|
33
|
+
mark: string[];
|
|
34
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
35
|
+
|
|
36
|
+
export { colorHighlightButton };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import * as tailwind_merge from 'tailwind-merge';
|
|
3
|
+
|
|
4
|
+
declare const colorHighlightButton: tailwind_variants.TVReturnType<{
|
|
5
|
+
[key: string]: {
|
|
6
|
+
[key: string]: tailwind_merge.ClassNameValue | {
|
|
7
|
+
button?: tailwind_merge.ClassNameValue;
|
|
8
|
+
mark?: tailwind_merge.ClassNameValue;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
} | {
|
|
12
|
+
[x: string]: {
|
|
13
|
+
[x: string]: tailwind_merge.ClassNameValue | {
|
|
14
|
+
button?: tailwind_merge.ClassNameValue;
|
|
15
|
+
mark?: tailwind_merge.ClassNameValue;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
} | {}, {
|
|
19
|
+
button: string[];
|
|
20
|
+
mark: string[];
|
|
21
|
+
}, undefined, {
|
|
22
|
+
[key: string]: {
|
|
23
|
+
[key: string]: tailwind_merge.ClassNameValue | {
|
|
24
|
+
button?: tailwind_merge.ClassNameValue;
|
|
25
|
+
mark?: tailwind_merge.ClassNameValue;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
} | {}, {
|
|
29
|
+
button: string[];
|
|
30
|
+
mark: string[];
|
|
31
|
+
}, tailwind_variants.TVReturnType<unknown, {
|
|
32
|
+
button: string[];
|
|
33
|
+
mark: string[];
|
|
34
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
35
|
+
|
|
36
|
+
export { colorHighlightButton };
|
|
@@ -0,0 +1,45 @@
|
|
|
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/color-highlight-button.ts
|
|
21
|
+
var color_highlight_button_exports = {};
|
|
22
|
+
__export(color_highlight_button_exports, {
|
|
23
|
+
colorHighlightButton: () => colorHighlightButton
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(color_highlight_button_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
var colorHighlightButton = (0, import_tailwind_variants.tv)({
|
|
28
|
+
slots: {
|
|
29
|
+
button: [
|
|
30
|
+
"relative min-w-none",
|
|
31
|
+
"hover:bg-",
|
|
32
|
+
"size-5 bg-[var(--highlight-color)]"
|
|
33
|
+
],
|
|
34
|
+
mark: [
|
|
35
|
+
"absolute size- left-0 top-0",
|
|
36
|
+
"border border-[var(--highlight-color)]",
|
|
37
|
+
"rounded-[inherit] box-border brightness-95 mix-blend-multiply",
|
|
38
|
+
"data-[active-state=on]:brightness-140"
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
43
|
+
0 && (module.exports = {
|
|
44
|
+
colorHighlightButton
|
|
45
|
+
});
|
|
@@ -10,12 +10,12 @@ declare const command: tailwind_variants.TVReturnType<{
|
|
|
10
10
|
header?: tailwind_merge.ClassNameValue;
|
|
11
11
|
title?: tailwind_merge.ClassNameValue;
|
|
12
12
|
description?: tailwind_merge.ClassNameValue;
|
|
13
|
-
group?: tailwind_merge.ClassNameValue;
|
|
14
|
-
inputWrapper?: tailwind_merge.ClassNameValue;
|
|
15
|
-
inputIcon?: tailwind_merge.ClassNameValue;
|
|
16
13
|
input?: tailwind_merge.ClassNameValue;
|
|
17
14
|
list?: tailwind_merge.ClassNameValue;
|
|
18
15
|
empty?: tailwind_merge.ClassNameValue;
|
|
16
|
+
group?: tailwind_merge.ClassNameValue;
|
|
17
|
+
inputWrapper?: tailwind_merge.ClassNameValue;
|
|
18
|
+
inputIcon?: tailwind_merge.ClassNameValue;
|
|
19
19
|
separator?: tailwind_merge.ClassNameValue;
|
|
20
20
|
shortcut?: tailwind_merge.ClassNameValue;
|
|
21
21
|
};
|
|
@@ -28,12 +28,12 @@ declare const command: tailwind_variants.TVReturnType<{
|
|
|
28
28
|
header?: tailwind_merge.ClassNameValue;
|
|
29
29
|
title?: tailwind_merge.ClassNameValue;
|
|
30
30
|
description?: tailwind_merge.ClassNameValue;
|
|
31
|
-
group?: tailwind_merge.ClassNameValue;
|
|
32
|
-
inputWrapper?: tailwind_merge.ClassNameValue;
|
|
33
|
-
inputIcon?: tailwind_merge.ClassNameValue;
|
|
34
31
|
input?: tailwind_merge.ClassNameValue;
|
|
35
32
|
list?: tailwind_merge.ClassNameValue;
|
|
36
33
|
empty?: tailwind_merge.ClassNameValue;
|
|
34
|
+
group?: tailwind_merge.ClassNameValue;
|
|
35
|
+
inputWrapper?: tailwind_merge.ClassNameValue;
|
|
36
|
+
inputIcon?: tailwind_merge.ClassNameValue;
|
|
37
37
|
separator?: tailwind_merge.ClassNameValue;
|
|
38
38
|
shortcut?: tailwind_merge.ClassNameValue;
|
|
39
39
|
};
|
|
@@ -60,12 +60,12 @@ declare const command: tailwind_variants.TVReturnType<{
|
|
|
60
60
|
header?: tailwind_merge.ClassNameValue;
|
|
61
61
|
title?: tailwind_merge.ClassNameValue;
|
|
62
62
|
description?: tailwind_merge.ClassNameValue;
|
|
63
|
-
group?: tailwind_merge.ClassNameValue;
|
|
64
|
-
inputWrapper?: tailwind_merge.ClassNameValue;
|
|
65
|
-
inputIcon?: tailwind_merge.ClassNameValue;
|
|
66
63
|
input?: tailwind_merge.ClassNameValue;
|
|
67
64
|
list?: tailwind_merge.ClassNameValue;
|
|
68
65
|
empty?: tailwind_merge.ClassNameValue;
|
|
66
|
+
group?: tailwind_merge.ClassNameValue;
|
|
67
|
+
inputWrapper?: tailwind_merge.ClassNameValue;
|
|
68
|
+
inputIcon?: tailwind_merge.ClassNameValue;
|
|
69
69
|
separator?: tailwind_merge.ClassNameValue;
|
|
70
70
|
shortcut?: tailwind_merge.ClassNameValue;
|
|
71
71
|
};
|
|
@@ -10,12 +10,12 @@ declare const command: tailwind_variants.TVReturnType<{
|
|
|
10
10
|
header?: tailwind_merge.ClassNameValue;
|
|
11
11
|
title?: tailwind_merge.ClassNameValue;
|
|
12
12
|
description?: tailwind_merge.ClassNameValue;
|
|
13
|
-
group?: tailwind_merge.ClassNameValue;
|
|
14
|
-
inputWrapper?: tailwind_merge.ClassNameValue;
|
|
15
|
-
inputIcon?: tailwind_merge.ClassNameValue;
|
|
16
13
|
input?: tailwind_merge.ClassNameValue;
|
|
17
14
|
list?: tailwind_merge.ClassNameValue;
|
|
18
15
|
empty?: tailwind_merge.ClassNameValue;
|
|
16
|
+
group?: tailwind_merge.ClassNameValue;
|
|
17
|
+
inputWrapper?: tailwind_merge.ClassNameValue;
|
|
18
|
+
inputIcon?: tailwind_merge.ClassNameValue;
|
|
19
19
|
separator?: tailwind_merge.ClassNameValue;
|
|
20
20
|
shortcut?: tailwind_merge.ClassNameValue;
|
|
21
21
|
};
|
|
@@ -28,12 +28,12 @@ declare const command: tailwind_variants.TVReturnType<{
|
|
|
28
28
|
header?: tailwind_merge.ClassNameValue;
|
|
29
29
|
title?: tailwind_merge.ClassNameValue;
|
|
30
30
|
description?: tailwind_merge.ClassNameValue;
|
|
31
|
-
group?: tailwind_merge.ClassNameValue;
|
|
32
|
-
inputWrapper?: tailwind_merge.ClassNameValue;
|
|
33
|
-
inputIcon?: tailwind_merge.ClassNameValue;
|
|
34
31
|
input?: tailwind_merge.ClassNameValue;
|
|
35
32
|
list?: tailwind_merge.ClassNameValue;
|
|
36
33
|
empty?: tailwind_merge.ClassNameValue;
|
|
34
|
+
group?: tailwind_merge.ClassNameValue;
|
|
35
|
+
inputWrapper?: tailwind_merge.ClassNameValue;
|
|
36
|
+
inputIcon?: tailwind_merge.ClassNameValue;
|
|
37
37
|
separator?: tailwind_merge.ClassNameValue;
|
|
38
38
|
shortcut?: tailwind_merge.ClassNameValue;
|
|
39
39
|
};
|
|
@@ -60,12 +60,12 @@ declare const command: tailwind_variants.TVReturnType<{
|
|
|
60
60
|
header?: tailwind_merge.ClassNameValue;
|
|
61
61
|
title?: tailwind_merge.ClassNameValue;
|
|
62
62
|
description?: tailwind_merge.ClassNameValue;
|
|
63
|
-
group?: tailwind_merge.ClassNameValue;
|
|
64
|
-
inputWrapper?: tailwind_merge.ClassNameValue;
|
|
65
|
-
inputIcon?: tailwind_merge.ClassNameValue;
|
|
66
63
|
input?: tailwind_merge.ClassNameValue;
|
|
67
64
|
list?: tailwind_merge.ClassNameValue;
|
|
68
65
|
empty?: tailwind_merge.ClassNameValue;
|
|
66
|
+
group?: tailwind_merge.ClassNameValue;
|
|
67
|
+
inputWrapper?: tailwind_merge.ClassNameValue;
|
|
68
|
+
inputIcon?: tailwind_merge.ClassNameValue;
|
|
69
69
|
separator?: tailwind_merge.ClassNameValue;
|
|
70
70
|
shortcut?: tailwind_merge.ClassNameValue;
|
|
71
71
|
};
|
|
@@ -27,19 +27,17 @@ var import_tailwind_variants = require("tailwind-variants");
|
|
|
27
27
|
var dialog = (0, import_tailwind_variants.tv)({
|
|
28
28
|
slots: {
|
|
29
29
|
overlay: [
|
|
30
|
-
"fixed inset-0
|
|
31
|
-
"data-[
|
|
32
|
-
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"
|
|
30
|
+
"fixed inset-0 bg-black/25 [backdrop-filter:blur(4px)]",
|
|
31
|
+
"data-[ending-style]:opacity-0 data-[starting-style]:opacity-0"
|
|
33
32
|
],
|
|
34
33
|
content: [
|
|
35
34
|
"flex flex-col",
|
|
36
|
-
"bg-background fixed top-[50%] left-[50%]
|
|
35
|
+
"bg-background fixed top-[50%] left-[50%]",
|
|
37
36
|
"w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%]",
|
|
38
|
-
"border shadow-lg",
|
|
39
|
-
"data-[
|
|
40
|
-
"data-[
|
|
41
|
-
"
|
|
42
|
-
"duration-200 sm:max-w-lg"
|
|
37
|
+
"border shadow-lg transition-all",
|
|
38
|
+
"data-[ending-style]:scale-90 data-[ending-style]:opacity-0",
|
|
39
|
+
"data-[starting-style]:scale-90 data-[starting-style]:opacity-0",
|
|
40
|
+
"duration-150 sm:max-w-lg"
|
|
43
41
|
],
|
|
44
42
|
close: [
|
|
45
43
|
"ring-offset-background focus:ring-ring",
|