@nextui-org/theme 0.0.0-dev-v2-20230326012034
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/LICENSE +21 -0
- package/README.md +24 -0
- package/colors.d.ts +1 -0
- package/colors.js +1 -0
- package/dist/animations/index.d.ts +57 -0
- package/dist/animations/index.js +84 -0
- package/dist/animations/index.mjs +6 -0
- package/dist/chunk-37PIXVP4.mjs +33 -0
- package/dist/chunk-45FXWIO6.mjs +70 -0
- package/dist/chunk-5OE5CWK6.mjs +84 -0
- package/dist/chunk-5SJ7B53O.mjs +0 -0
- package/dist/chunk-5Z3NCB7W.mjs +391 -0
- package/dist/chunk-7BYRB2YS.mjs +386 -0
- package/dist/chunk-7MQD7UA2.mjs +16 -0
- package/dist/chunk-B5S7HT6N.mjs +44 -0
- package/dist/chunk-CMYR6AOY.mjs +0 -0
- package/dist/chunk-CO6ANWRA.mjs +125 -0
- package/dist/chunk-CRCBVLUP.mjs +38 -0
- package/dist/chunk-D4TJV7NY.mjs +206 -0
- package/dist/chunk-DCEG5LGX.mjs +17 -0
- package/dist/chunk-FS36US4S.mjs +25 -0
- package/dist/chunk-HHWXPWYN.mjs +13 -0
- package/dist/chunk-IJCHUO4J.mjs +38 -0
- package/dist/chunk-K7LK7NCE.mjs +0 -0
- package/dist/chunk-KZJBCC2H.mjs +17 -0
- package/dist/chunk-L2OL7R23.mjs +17 -0
- package/dist/chunk-LGGZKBOO.mjs +77 -0
- package/dist/chunk-M63AFAHO.mjs +0 -0
- package/dist/chunk-MLH3XSY7.mjs +14 -0
- package/dist/chunk-NJQP2VWT.mjs +160 -0
- package/dist/chunk-OIVGIOVG.mjs +9 -0
- package/dist/chunk-OR5PUD24.mjs +17 -0
- package/dist/chunk-OSARGUKT.mjs +326 -0
- package/dist/chunk-QIC7EALL.mjs +277 -0
- package/dist/chunk-QMP2FDFR.mjs +240 -0
- package/dist/chunk-QPN3H4E3.mjs +60 -0
- package/dist/chunk-RD42SVXB.mjs +90 -0
- package/dist/chunk-T3GWIVAM.mjs +17 -0
- package/dist/chunk-TV7EJNXI.mjs +457 -0
- package/dist/chunk-U77YMEWM.mjs +13 -0
- package/dist/chunk-VB4T62HR.mjs +159 -0
- package/dist/chunk-VKFQ7EZN.mjs +17 -0
- package/dist/chunk-WQEDQHKX.mjs +0 -0
- package/dist/chunk-Y37XC5QN.mjs +169 -0
- package/dist/chunk-Y4YW5MKL.mjs +17 -0
- package/dist/chunk-Y52EXP4A.mjs +142 -0
- package/dist/chunk-YYBLBQIV.mjs +16 -0
- package/dist/chunk-YZYGFPNK.mjs +17 -0
- package/dist/chunk-Z5OKZPNV.mjs +190 -0
- package/dist/colors/blue.d.ts +14 -0
- package/dist/colors/blue.js +41 -0
- package/dist/colors/blue.mjs +6 -0
- package/dist/colors/common.d.ts +91 -0
- package/dist/colors/common.js +140 -0
- package/dist/colors/common.mjs +13 -0
- package/dist/colors/cyan.d.ts +14 -0
- package/dist/colors/cyan.js +41 -0
- package/dist/colors/cyan.mjs +6 -0
- package/dist/colors/green.d.ts +14 -0
- package/dist/colors/green.js +41 -0
- package/dist/colors/green.mjs +6 -0
- package/dist/colors/index.d.ts +97 -0
- package/dist/colors/index.js +306 -0
- package/dist/colors/index.mjs +23 -0
- package/dist/colors/pink.d.ts +14 -0
- package/dist/colors/pink.js +41 -0
- package/dist/colors/pink.mjs +6 -0
- package/dist/colors/purple.d.ts +14 -0
- package/dist/colors/purple.js +41 -0
- package/dist/colors/purple.mjs +6 -0
- package/dist/colors/red.d.ts +14 -0
- package/dist/colors/red.js +41 -0
- package/dist/colors/red.mjs +6 -0
- package/dist/colors/semantic.d.ts +10 -0
- package/dist/colors/semantic.js +298 -0
- package/dist/colors/semantic.mjs +19 -0
- package/dist/colors/types.d.ts +37 -0
- package/dist/colors/types.js +18 -0
- package/dist/colors/types.mjs +1 -0
- package/dist/colors/yellow.d.ts +14 -0
- package/dist/colors/yellow.js +41 -0
- package/dist/colors/yellow.mjs +6 -0
- package/dist/colors.d.ts +4 -0
- package/dist/colors.js +306 -0
- package/dist/colors.mjs +24 -0
- package/dist/components/accordion-item.d.ts +135 -0
- package/dist/components/accordion-item.js +122 -0
- package/dist/components/accordion-item.mjs +10 -0
- package/dist/components/accordion.d.ts +30 -0
- package/dist/components/accordion.js +40 -0
- package/dist/components/accordion.mjs +6 -0
- package/dist/components/avatar-group.d.ts +26 -0
- package/dist/components/avatar-group.js +38 -0
- package/dist/components/avatar-group.mjs +6 -0
- package/dist/components/avatar.d.ts +211 -0
- package/dist/components/avatar.js +315 -0
- package/dist/components/avatar.mjs +10 -0
- package/dist/components/badge.d.ts +235 -0
- package/dist/components/badge.js +487 -0
- package/dist/components/badge.mjs +10 -0
- package/dist/components/button-group.d.ts +26 -0
- package/dist/components/button-group.js +41 -0
- package/dist/components/button-group.mjs +6 -0
- package/dist/components/button.d.ts +122 -0
- package/dist/components/button.js +429 -0
- package/dist/components/button.mjs +10 -0
- package/dist/components/card.d.ts +239 -0
- package/dist/components/card.js +222 -0
- package/dist/components/card.mjs +10 -0
- package/dist/components/checkbox-group.d.ts +32 -0
- package/dist/components/checkbox-group.js +37 -0
- package/dist/components/checkbox-group.mjs +6 -0
- package/dist/components/checkbox.d.ts +226 -0
- package/dist/components/checkbox.js +192 -0
- package/dist/components/checkbox.mjs +10 -0
- package/dist/components/chip.d.ts +274 -0
- package/dist/components/chip.js +560 -0
- package/dist/components/chip.mjs +10 -0
- package/dist/components/code.d.ts +68 -0
- package/dist/components/code.js +140 -0
- package/dist/components/code.mjs +10 -0
- package/dist/components/drip.d.ts +14 -0
- package/dist/components/drip.js +33 -0
- package/dist/components/drip.mjs +6 -0
- package/dist/components/index.d.ts +24 -0
- package/dist/components/index.js +3442 -0
- package/dist/components/index.mjs +95 -0
- package/dist/components/link.d.ts +74 -0
- package/dist/components/link.js +117 -0
- package/dist/components/link.mjs +10 -0
- package/dist/components/pagination.d.ts +201 -0
- package/dist/components/pagination.js +489 -0
- package/dist/components/pagination.mjs +10 -0
- package/dist/components/radio-group.d.ts +32 -0
- package/dist/components/radio-group.js +37 -0
- package/dist/components/radio-group.mjs +6 -0
- package/dist/components/radio.d.ts +271 -0
- package/dist/components/radio.js +201 -0
- package/dist/components/radio.mjs +10 -0
- package/dist/components/snippet.d.ts +184 -0
- package/dist/components/snippet.js +343 -0
- package/dist/components/snippet.mjs +10 -0
- package/dist/components/spinner.d.ts +192 -0
- package/dist/components/spinner.js +149 -0
- package/dist/components/spinner.mjs +6 -0
- package/dist/components/toggle.d.ts +197 -0
- package/dist/components/toggle.js +191 -0
- package/dist/components/toggle.mjs +10 -0
- package/dist/components/tooltip.d.ts +176 -0
- package/dist/components/tooltip.js +373 -0
- package/dist/components/tooltip.mjs +10 -0
- package/dist/components/user.d.ts +40 -0
- package/dist/components/user.js +57 -0
- package/dist/components/user.mjs +10 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.js +3747 -0
- package/dist/index.mjs +138 -0
- package/dist/plugin.d.ts +38 -0
- package/dist/plugin.js +564 -0
- package/dist/plugin.mjs +151 -0
- package/dist/utilities/index.d.ts +72 -0
- package/dist/utilities/index.js +94 -0
- package/dist/utilities/index.mjs +6 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.js +144 -0
- package/dist/utils/index.mjs +20 -0
- package/dist/utils/object.d.ts +4 -0
- package/dist/utils/object.js +58 -0
- package/dist/utils/object.mjs +8 -0
- package/dist/utils/styles.d.ts +20 -0
- package/dist/utils/styles.js +66 -0
- package/dist/utils/styles.mjs +14 -0
- package/dist/utils/types.d.ts +10 -0
- package/dist/utils/types.js +18 -0
- package/dist/utils/types.mjs +1 -0
- package/dist/utils/variants.d.ts +67 -0
- package/dist/utils/variants.js +101 -0
- package/dist/utils/variants.mjs +6 -0
- package/package.json +85 -0
- package/plugin.d.ts +1 -0
- package/plugin.js +1 -0
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Checkbox wrapper **Tailwind Variants** component
|
|
7
|
+
*
|
|
8
|
+
* const {base, wrapper, icon, label} = checkbox({...})
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* <label className={base())}>
|
|
12
|
+
* // hidden input
|
|
13
|
+
* <span className={wrapper()} aria-hidden="true" data-checked={checked}>
|
|
14
|
+
* <svg className={icon()}>
|
|
15
|
+
* // check icon
|
|
16
|
+
* </svg>
|
|
17
|
+
* </span>
|
|
18
|
+
* <span className={label()}>Label</span>
|
|
19
|
+
* </label>
|
|
20
|
+
*/
|
|
21
|
+
declare const checkbox: tailwind_variants.TVReturnType<{
|
|
22
|
+
color: {
|
|
23
|
+
neutral: {
|
|
24
|
+
wrapper: string;
|
|
25
|
+
};
|
|
26
|
+
primary: {
|
|
27
|
+
wrapper: string;
|
|
28
|
+
};
|
|
29
|
+
secondary: {
|
|
30
|
+
wrapper: string;
|
|
31
|
+
};
|
|
32
|
+
success: {
|
|
33
|
+
wrapper: string;
|
|
34
|
+
};
|
|
35
|
+
warning: {
|
|
36
|
+
wrapper: string;
|
|
37
|
+
};
|
|
38
|
+
danger: {
|
|
39
|
+
wrapper: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
size: {
|
|
43
|
+
xs: {
|
|
44
|
+
wrapper: string;
|
|
45
|
+
label: string;
|
|
46
|
+
icon: string;
|
|
47
|
+
};
|
|
48
|
+
sm: {
|
|
49
|
+
wrapper: string;
|
|
50
|
+
label: string;
|
|
51
|
+
icon: string;
|
|
52
|
+
};
|
|
53
|
+
md: {
|
|
54
|
+
wrapper: string;
|
|
55
|
+
label: string;
|
|
56
|
+
icon: string;
|
|
57
|
+
};
|
|
58
|
+
lg: {
|
|
59
|
+
wrapper: string;
|
|
60
|
+
label: string;
|
|
61
|
+
icon: string;
|
|
62
|
+
};
|
|
63
|
+
xl: {
|
|
64
|
+
wrapper: string;
|
|
65
|
+
label: string;
|
|
66
|
+
icon: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
radius: {
|
|
70
|
+
none: {
|
|
71
|
+
wrapper: string;
|
|
72
|
+
};
|
|
73
|
+
base: {
|
|
74
|
+
wrapper: string;
|
|
75
|
+
};
|
|
76
|
+
sm: {
|
|
77
|
+
wrapper: string;
|
|
78
|
+
};
|
|
79
|
+
md: {
|
|
80
|
+
wrapper: string;
|
|
81
|
+
};
|
|
82
|
+
lg: {
|
|
83
|
+
wrapper: string;
|
|
84
|
+
};
|
|
85
|
+
xl: {
|
|
86
|
+
wrapper: string;
|
|
87
|
+
};
|
|
88
|
+
full: {
|
|
89
|
+
wrapper: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
lineThrough: {
|
|
93
|
+
true: {
|
|
94
|
+
label: string[];
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
isDisabled: {
|
|
98
|
+
true: {
|
|
99
|
+
base: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
isFocusVisible: {
|
|
103
|
+
true: {
|
|
104
|
+
wrapper: string[];
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
disableAnimation: {
|
|
108
|
+
true: {
|
|
109
|
+
wrapper: string;
|
|
110
|
+
icon: string;
|
|
111
|
+
label: string;
|
|
112
|
+
};
|
|
113
|
+
false: {
|
|
114
|
+
wrapper: string[];
|
|
115
|
+
icon: string;
|
|
116
|
+
label: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
}, unknown, {
|
|
120
|
+
base: string;
|
|
121
|
+
wrapper: string[];
|
|
122
|
+
icon: string;
|
|
123
|
+
label: string;
|
|
124
|
+
}, undefined, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
125
|
+
color: {
|
|
126
|
+
neutral: {
|
|
127
|
+
wrapper: string;
|
|
128
|
+
};
|
|
129
|
+
primary: {
|
|
130
|
+
wrapper: string;
|
|
131
|
+
};
|
|
132
|
+
secondary: {
|
|
133
|
+
wrapper: string;
|
|
134
|
+
};
|
|
135
|
+
success: {
|
|
136
|
+
wrapper: string;
|
|
137
|
+
};
|
|
138
|
+
warning: {
|
|
139
|
+
wrapper: string;
|
|
140
|
+
};
|
|
141
|
+
danger: {
|
|
142
|
+
wrapper: string;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
size: {
|
|
146
|
+
xs: {
|
|
147
|
+
wrapper: string;
|
|
148
|
+
label: string;
|
|
149
|
+
icon: string;
|
|
150
|
+
};
|
|
151
|
+
sm: {
|
|
152
|
+
wrapper: string;
|
|
153
|
+
label: string;
|
|
154
|
+
icon: string;
|
|
155
|
+
};
|
|
156
|
+
md: {
|
|
157
|
+
wrapper: string;
|
|
158
|
+
label: string;
|
|
159
|
+
icon: string;
|
|
160
|
+
};
|
|
161
|
+
lg: {
|
|
162
|
+
wrapper: string;
|
|
163
|
+
label: string;
|
|
164
|
+
icon: string;
|
|
165
|
+
};
|
|
166
|
+
xl: {
|
|
167
|
+
wrapper: string;
|
|
168
|
+
label: string;
|
|
169
|
+
icon: string;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
radius: {
|
|
173
|
+
none: {
|
|
174
|
+
wrapper: string;
|
|
175
|
+
};
|
|
176
|
+
base: {
|
|
177
|
+
wrapper: string;
|
|
178
|
+
};
|
|
179
|
+
sm: {
|
|
180
|
+
wrapper: string;
|
|
181
|
+
};
|
|
182
|
+
md: {
|
|
183
|
+
wrapper: string;
|
|
184
|
+
};
|
|
185
|
+
lg: {
|
|
186
|
+
wrapper: string;
|
|
187
|
+
};
|
|
188
|
+
xl: {
|
|
189
|
+
wrapper: string;
|
|
190
|
+
};
|
|
191
|
+
full: {
|
|
192
|
+
wrapper: string;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
lineThrough: {
|
|
196
|
+
true: {
|
|
197
|
+
label: string[];
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
isDisabled: {
|
|
201
|
+
true: {
|
|
202
|
+
base: string;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
isFocusVisible: {
|
|
206
|
+
true: {
|
|
207
|
+
wrapper: string[];
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
disableAnimation: {
|
|
211
|
+
true: {
|
|
212
|
+
wrapper: string;
|
|
213
|
+
icon: string;
|
|
214
|
+
label: string;
|
|
215
|
+
};
|
|
216
|
+
false: {
|
|
217
|
+
wrapper: string[];
|
|
218
|
+
icon: string;
|
|
219
|
+
label: string;
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
}, unknown>>;
|
|
223
|
+
type CheckboxVariantProps = VariantProps<typeof checkbox>;
|
|
224
|
+
type CheckboxSlots = keyof ReturnType<typeof checkbox>;
|
|
225
|
+
|
|
226
|
+
export { CheckboxSlots, CheckboxVariantProps, checkbox };
|
|
@@ -0,0 +1,192 @@
|
|
|
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/checkbox.ts
|
|
21
|
+
var checkbox_exports = {};
|
|
22
|
+
__export(checkbox_exports, {
|
|
23
|
+
checkbox: () => checkbox
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(checkbox_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
|
|
28
|
+
// src/utils/styles.ts
|
|
29
|
+
var ringClasses = [
|
|
30
|
+
"outline-none",
|
|
31
|
+
"ring-2",
|
|
32
|
+
"!ring-primary",
|
|
33
|
+
"ring-offset-2",
|
|
34
|
+
"ring-offset-background",
|
|
35
|
+
"dark:ring-offset-background-dark"
|
|
36
|
+
];
|
|
37
|
+
|
|
38
|
+
// src/components/checkbox.ts
|
|
39
|
+
var checkbox = (0, import_tailwind_variants.tv)({
|
|
40
|
+
slots: {
|
|
41
|
+
base: "relative max-w-fit inline-flex items-center justify-start cursor-pointer",
|
|
42
|
+
wrapper: [
|
|
43
|
+
"relative",
|
|
44
|
+
"inline-flex",
|
|
45
|
+
"items-center",
|
|
46
|
+
"justify-center",
|
|
47
|
+
"flex-shrink-0",
|
|
48
|
+
"overflow-hidden",
|
|
49
|
+
"before:content-['']",
|
|
50
|
+
"before:absolute",
|
|
51
|
+
"before:inset-0",
|
|
52
|
+
"before:border-solid",
|
|
53
|
+
"before:border-2",
|
|
54
|
+
"before:box-border",
|
|
55
|
+
"before:border-neutral",
|
|
56
|
+
"after:content-['']",
|
|
57
|
+
"after:absolute",
|
|
58
|
+
"after:inset-0",
|
|
59
|
+
"after:scale-50",
|
|
60
|
+
"after:opacity-0",
|
|
61
|
+
"after:origin-center",
|
|
62
|
+
"data-[checked=true]:after:scale-100",
|
|
63
|
+
"data-[checked=true]:after:opacity-100",
|
|
64
|
+
"hover:before:bg-neutral-100",
|
|
65
|
+
"data-[hover=true]:before:bg-neutral-100"
|
|
66
|
+
],
|
|
67
|
+
icon: "z-10 w-4 h-3 opacity-0 data-[checked=true]:opacity-100",
|
|
68
|
+
label: "relative text-foreground select-none"
|
|
69
|
+
},
|
|
70
|
+
variants: {
|
|
71
|
+
color: {
|
|
72
|
+
neutral: {
|
|
73
|
+
wrapper: "after:bg-neutral after:text-neutral-contrastText text-neutral-contrastText"
|
|
74
|
+
},
|
|
75
|
+
primary: {
|
|
76
|
+
wrapper: "after:bg-primary after:text-primary-contrastText text-primary-contrastText"
|
|
77
|
+
},
|
|
78
|
+
secondary: {
|
|
79
|
+
wrapper: "after:bg-secondary after:text-secondary-contrastText text-secondary-contrastText"
|
|
80
|
+
},
|
|
81
|
+
success: {
|
|
82
|
+
wrapper: "after:bg-success after:text-success-contrastText text-success-contrastText"
|
|
83
|
+
},
|
|
84
|
+
warning: {
|
|
85
|
+
wrapper: "after:bg-warning after:text-warning-contrastText text-warning-contrastText"
|
|
86
|
+
},
|
|
87
|
+
danger: {
|
|
88
|
+
wrapper: "after:bg-danger after:text-danger-contrastText text-danger-contrastText"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
size: {
|
|
92
|
+
xs: {
|
|
93
|
+
wrapper: "w-3.5 h-3.5 mr-1",
|
|
94
|
+
label: "text-xs",
|
|
95
|
+
icon: "w-3 h-2"
|
|
96
|
+
},
|
|
97
|
+
sm: {
|
|
98
|
+
wrapper: "w-4 h-4 mr-1",
|
|
99
|
+
label: "text-sm",
|
|
100
|
+
icon: "w-3 h-2"
|
|
101
|
+
},
|
|
102
|
+
md: {
|
|
103
|
+
wrapper: "w-5 h-5 mr-2",
|
|
104
|
+
label: "text-base",
|
|
105
|
+
icon: "w-4 h-3"
|
|
106
|
+
},
|
|
107
|
+
lg: {
|
|
108
|
+
wrapper: "w-6 h-6 mr-2",
|
|
109
|
+
label: "text-lg",
|
|
110
|
+
icon: "w-5 h-4"
|
|
111
|
+
},
|
|
112
|
+
xl: {
|
|
113
|
+
wrapper: "w-7 h-7 mr-2",
|
|
114
|
+
label: "text-xl",
|
|
115
|
+
icon: "w-6 h-5"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
radius: {
|
|
119
|
+
none: {
|
|
120
|
+
wrapper: "rounded-none before:rounded-none after:rounded-none"
|
|
121
|
+
},
|
|
122
|
+
base: {
|
|
123
|
+
wrapper: "rounded before:rounded after:rounded"
|
|
124
|
+
},
|
|
125
|
+
sm: {
|
|
126
|
+
wrapper: "rounded-sm before:rounded-sm after:rounded-sm"
|
|
127
|
+
},
|
|
128
|
+
md: {
|
|
129
|
+
wrapper: "rounded-md before:rounded-md after:rounded-md"
|
|
130
|
+
},
|
|
131
|
+
lg: {
|
|
132
|
+
wrapper: "rounded-lg before:rounded-lg after:rounded-lg"
|
|
133
|
+
},
|
|
134
|
+
xl: {
|
|
135
|
+
wrapper: "rounded-xl before:rounded-xl after:rounded-xl"
|
|
136
|
+
},
|
|
137
|
+
full: {
|
|
138
|
+
wrapper: "rounded-full before:rounded-full after:rounded-full"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
lineThrough: {
|
|
142
|
+
true: {
|
|
143
|
+
label: [
|
|
144
|
+
"inline-flex",
|
|
145
|
+
"items-center",
|
|
146
|
+
"justify-center",
|
|
147
|
+
"before:content-['']",
|
|
148
|
+
"before:absolute",
|
|
149
|
+
"before:bg-foreground",
|
|
150
|
+
"before:w-0",
|
|
151
|
+
"before:h-0.5",
|
|
152
|
+
"data-[checked=true]:opacity-60",
|
|
153
|
+
"data-[checked=true]:before:w-full"
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
isDisabled: {
|
|
158
|
+
true: {
|
|
159
|
+
base: "opacity-50 pointer-events-none"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
isFocusVisible: {
|
|
163
|
+
true: {
|
|
164
|
+
wrapper: [...ringClasses]
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
disableAnimation: {
|
|
168
|
+
true: {
|
|
169
|
+
wrapper: "transition-none",
|
|
170
|
+
icon: "transition-none",
|
|
171
|
+
label: "transition-none"
|
|
172
|
+
},
|
|
173
|
+
false: {
|
|
174
|
+
wrapper: ["before:transition-background", "after:transition-transform-opacity"],
|
|
175
|
+
icon: "transition-opacity",
|
|
176
|
+
label: "transition-opacity before:transition-width"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
defaultVariants: {
|
|
181
|
+
color: "primary",
|
|
182
|
+
size: "md",
|
|
183
|
+
radius: "md",
|
|
184
|
+
isDisabled: false,
|
|
185
|
+
lineThrough: false,
|
|
186
|
+
disableAnimation: false
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
190
|
+
0 && (module.exports = {
|
|
191
|
+
checkbox
|
|
192
|
+
});
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Chip wrapper **Tailwind Variants** component
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```js
|
|
10
|
+
* const {base, content, dot, avatar, closeButton} = chip({...})
|
|
11
|
+
*
|
|
12
|
+
* <div className={base())}>
|
|
13
|
+
* // left content
|
|
14
|
+
* <span className={avatar()}/>
|
|
15
|
+
* <svg className={dot()}/>
|
|
16
|
+
* <span className={content()}>Default</span>
|
|
17
|
+
* <svg className={closeButton()}>close button</svg>
|
|
18
|
+
* // right content
|
|
19
|
+
* </div>
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
declare const chip: tailwind_variants.TVReturnType<{
|
|
23
|
+
variant: {
|
|
24
|
+
solid: {};
|
|
25
|
+
bordered: {
|
|
26
|
+
base: string;
|
|
27
|
+
};
|
|
28
|
+
light: {
|
|
29
|
+
base: string;
|
|
30
|
+
};
|
|
31
|
+
flat: {};
|
|
32
|
+
faded: {
|
|
33
|
+
base: string;
|
|
34
|
+
};
|
|
35
|
+
shadow: {};
|
|
36
|
+
dot: {
|
|
37
|
+
base: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
color: {
|
|
41
|
+
neutral: {
|
|
42
|
+
dot: string;
|
|
43
|
+
};
|
|
44
|
+
primary: {
|
|
45
|
+
dot: string;
|
|
46
|
+
};
|
|
47
|
+
secondary: {
|
|
48
|
+
dot: string;
|
|
49
|
+
};
|
|
50
|
+
success: {
|
|
51
|
+
dot: string;
|
|
52
|
+
};
|
|
53
|
+
warning: {
|
|
54
|
+
dot: string;
|
|
55
|
+
};
|
|
56
|
+
danger: {
|
|
57
|
+
dot: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
size: {
|
|
61
|
+
xs: {
|
|
62
|
+
base: string;
|
|
63
|
+
content: string;
|
|
64
|
+
closeButton: string;
|
|
65
|
+
avatar: string;
|
|
66
|
+
};
|
|
67
|
+
sm: {
|
|
68
|
+
base: string;
|
|
69
|
+
content: string;
|
|
70
|
+
closeButton: string;
|
|
71
|
+
avatar: string;
|
|
72
|
+
};
|
|
73
|
+
md: {
|
|
74
|
+
base: string;
|
|
75
|
+
content: string;
|
|
76
|
+
closeButton: string;
|
|
77
|
+
avatar: string;
|
|
78
|
+
};
|
|
79
|
+
lg: {
|
|
80
|
+
base: string;
|
|
81
|
+
content: string;
|
|
82
|
+
closeButton: string;
|
|
83
|
+
avatar: string;
|
|
84
|
+
};
|
|
85
|
+
xl: {
|
|
86
|
+
base: string;
|
|
87
|
+
content: string;
|
|
88
|
+
closeButton: string;
|
|
89
|
+
avatar: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
radius: {
|
|
93
|
+
none: {
|
|
94
|
+
base: string;
|
|
95
|
+
};
|
|
96
|
+
base: {
|
|
97
|
+
base: string;
|
|
98
|
+
};
|
|
99
|
+
sm: {
|
|
100
|
+
base: string;
|
|
101
|
+
};
|
|
102
|
+
md: {
|
|
103
|
+
base: string;
|
|
104
|
+
};
|
|
105
|
+
lg: {
|
|
106
|
+
base: string;
|
|
107
|
+
};
|
|
108
|
+
xl: {
|
|
109
|
+
base: string;
|
|
110
|
+
};
|
|
111
|
+
"2xl": {
|
|
112
|
+
base: string;
|
|
113
|
+
};
|
|
114
|
+
"3xl": {
|
|
115
|
+
base: string;
|
|
116
|
+
};
|
|
117
|
+
full: {
|
|
118
|
+
base: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
hasLeftContent: {
|
|
122
|
+
true: {};
|
|
123
|
+
};
|
|
124
|
+
hasRightContent: {
|
|
125
|
+
true: {};
|
|
126
|
+
};
|
|
127
|
+
isOneChar: {
|
|
128
|
+
true: {
|
|
129
|
+
base: string;
|
|
130
|
+
content: string;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
isDisabled: {
|
|
134
|
+
true: {
|
|
135
|
+
base: string;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
isCloseButtonFocusVisible: {
|
|
139
|
+
true: {
|
|
140
|
+
closeButton: string[];
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
}, unknown, {
|
|
144
|
+
base: string[];
|
|
145
|
+
content: string;
|
|
146
|
+
dot: string[];
|
|
147
|
+
avatar: string;
|
|
148
|
+
closeButton: string[];
|
|
149
|
+
}, undefined, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
150
|
+
variant: {
|
|
151
|
+
solid: {};
|
|
152
|
+
bordered: {
|
|
153
|
+
base: string;
|
|
154
|
+
};
|
|
155
|
+
light: {
|
|
156
|
+
base: string;
|
|
157
|
+
};
|
|
158
|
+
flat: {};
|
|
159
|
+
faded: {
|
|
160
|
+
base: string;
|
|
161
|
+
};
|
|
162
|
+
shadow: {};
|
|
163
|
+
dot: {
|
|
164
|
+
base: string;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
color: {
|
|
168
|
+
neutral: {
|
|
169
|
+
dot: string;
|
|
170
|
+
};
|
|
171
|
+
primary: {
|
|
172
|
+
dot: string;
|
|
173
|
+
};
|
|
174
|
+
secondary: {
|
|
175
|
+
dot: string;
|
|
176
|
+
};
|
|
177
|
+
success: {
|
|
178
|
+
dot: string;
|
|
179
|
+
};
|
|
180
|
+
warning: {
|
|
181
|
+
dot: string;
|
|
182
|
+
};
|
|
183
|
+
danger: {
|
|
184
|
+
dot: string;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
size: {
|
|
188
|
+
xs: {
|
|
189
|
+
base: string;
|
|
190
|
+
content: string;
|
|
191
|
+
closeButton: string;
|
|
192
|
+
avatar: string;
|
|
193
|
+
};
|
|
194
|
+
sm: {
|
|
195
|
+
base: string;
|
|
196
|
+
content: string;
|
|
197
|
+
closeButton: string;
|
|
198
|
+
avatar: string;
|
|
199
|
+
};
|
|
200
|
+
md: {
|
|
201
|
+
base: string;
|
|
202
|
+
content: string;
|
|
203
|
+
closeButton: string;
|
|
204
|
+
avatar: string;
|
|
205
|
+
};
|
|
206
|
+
lg: {
|
|
207
|
+
base: string;
|
|
208
|
+
content: string;
|
|
209
|
+
closeButton: string;
|
|
210
|
+
avatar: string;
|
|
211
|
+
};
|
|
212
|
+
xl: {
|
|
213
|
+
base: string;
|
|
214
|
+
content: string;
|
|
215
|
+
closeButton: string;
|
|
216
|
+
avatar: string;
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
radius: {
|
|
220
|
+
none: {
|
|
221
|
+
base: string;
|
|
222
|
+
};
|
|
223
|
+
base: {
|
|
224
|
+
base: string;
|
|
225
|
+
};
|
|
226
|
+
sm: {
|
|
227
|
+
base: string;
|
|
228
|
+
};
|
|
229
|
+
md: {
|
|
230
|
+
base: string;
|
|
231
|
+
};
|
|
232
|
+
lg: {
|
|
233
|
+
base: string;
|
|
234
|
+
};
|
|
235
|
+
xl: {
|
|
236
|
+
base: string;
|
|
237
|
+
};
|
|
238
|
+
"2xl": {
|
|
239
|
+
base: string;
|
|
240
|
+
};
|
|
241
|
+
"3xl": {
|
|
242
|
+
base: string;
|
|
243
|
+
};
|
|
244
|
+
full: {
|
|
245
|
+
base: string;
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
hasLeftContent: {
|
|
249
|
+
true: {};
|
|
250
|
+
};
|
|
251
|
+
hasRightContent: {
|
|
252
|
+
true: {};
|
|
253
|
+
};
|
|
254
|
+
isOneChar: {
|
|
255
|
+
true: {
|
|
256
|
+
base: string;
|
|
257
|
+
content: string;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
isDisabled: {
|
|
261
|
+
true: {
|
|
262
|
+
base: string;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
isCloseButtonFocusVisible: {
|
|
266
|
+
true: {
|
|
267
|
+
closeButton: string[];
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
}, unknown>>;
|
|
271
|
+
type ChipVariantProps = VariantProps<typeof chip>;
|
|
272
|
+
type ChipSlots = keyof ReturnType<typeof chip>;
|
|
273
|
+
|
|
274
|
+
export { ChipSlots, ChipVariantProps, chip };
|