@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,239 @@
|
|
|
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
|
+
* Card **Tailwind Variants** component
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```js
|
|
10
|
+
* const {base, header, body, footer} = card({...})
|
|
11
|
+
*
|
|
12
|
+
* <div className={card()}>
|
|
13
|
+
* <div className={header()}>Header</div>
|
|
14
|
+
* <div className={body()}>Body</div>
|
|
15
|
+
* <div className={footer()}>Footer</div>
|
|
16
|
+
* </div>
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
declare const card: tailwind_variants.TVReturnType<{
|
|
20
|
+
shadow: {
|
|
21
|
+
none: {
|
|
22
|
+
base: string;
|
|
23
|
+
};
|
|
24
|
+
sm: {
|
|
25
|
+
base: string;
|
|
26
|
+
};
|
|
27
|
+
md: {
|
|
28
|
+
base: string;
|
|
29
|
+
};
|
|
30
|
+
lg: {
|
|
31
|
+
base: string;
|
|
32
|
+
};
|
|
33
|
+
xl: {
|
|
34
|
+
base: string;
|
|
35
|
+
};
|
|
36
|
+
"2xl": {
|
|
37
|
+
base: string;
|
|
38
|
+
};
|
|
39
|
+
inner: {
|
|
40
|
+
base: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
radius: {
|
|
44
|
+
none: {
|
|
45
|
+
base: string;
|
|
46
|
+
header: string;
|
|
47
|
+
footer: string;
|
|
48
|
+
};
|
|
49
|
+
base: {
|
|
50
|
+
base: string;
|
|
51
|
+
header: string;
|
|
52
|
+
footer: string;
|
|
53
|
+
};
|
|
54
|
+
sm: {
|
|
55
|
+
base: string;
|
|
56
|
+
header: string;
|
|
57
|
+
footer: string;
|
|
58
|
+
};
|
|
59
|
+
md: {
|
|
60
|
+
base: string;
|
|
61
|
+
header: string;
|
|
62
|
+
footer: string;
|
|
63
|
+
};
|
|
64
|
+
lg: {
|
|
65
|
+
base: string;
|
|
66
|
+
header: string;
|
|
67
|
+
footer: string;
|
|
68
|
+
};
|
|
69
|
+
xl: {
|
|
70
|
+
base: string;
|
|
71
|
+
header: string;
|
|
72
|
+
footer: string;
|
|
73
|
+
};
|
|
74
|
+
"2xl": {
|
|
75
|
+
base: string;
|
|
76
|
+
header: string;
|
|
77
|
+
footer: string;
|
|
78
|
+
};
|
|
79
|
+
"3xl": {
|
|
80
|
+
base: string;
|
|
81
|
+
header: string;
|
|
82
|
+
footer: string;
|
|
83
|
+
};
|
|
84
|
+
full: {
|
|
85
|
+
base: string;
|
|
86
|
+
header: string;
|
|
87
|
+
footer: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
fullWidth: {
|
|
91
|
+
true: {
|
|
92
|
+
base: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
isHoverable: {
|
|
96
|
+
true: {};
|
|
97
|
+
};
|
|
98
|
+
isPressable: {
|
|
99
|
+
true: {
|
|
100
|
+
base: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
isFocusVisible: {
|
|
104
|
+
true: {
|
|
105
|
+
base: string[];
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
isFooterBlurred: {
|
|
109
|
+
true: {
|
|
110
|
+
footer: string;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
isDisabled: {
|
|
114
|
+
true: {
|
|
115
|
+
base: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
disableAnimation: {
|
|
119
|
+
true: string;
|
|
120
|
+
false: {
|
|
121
|
+
base: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
}, unknown, {
|
|
125
|
+
base: string[];
|
|
126
|
+
header: string[];
|
|
127
|
+
body: string[];
|
|
128
|
+
footer: string[];
|
|
129
|
+
}, undefined, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
130
|
+
shadow: {
|
|
131
|
+
none: {
|
|
132
|
+
base: string;
|
|
133
|
+
};
|
|
134
|
+
sm: {
|
|
135
|
+
base: string;
|
|
136
|
+
};
|
|
137
|
+
md: {
|
|
138
|
+
base: string;
|
|
139
|
+
};
|
|
140
|
+
lg: {
|
|
141
|
+
base: string;
|
|
142
|
+
};
|
|
143
|
+
xl: {
|
|
144
|
+
base: string;
|
|
145
|
+
};
|
|
146
|
+
"2xl": {
|
|
147
|
+
base: string;
|
|
148
|
+
};
|
|
149
|
+
inner: {
|
|
150
|
+
base: string;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
radius: {
|
|
154
|
+
none: {
|
|
155
|
+
base: string;
|
|
156
|
+
header: string;
|
|
157
|
+
footer: string;
|
|
158
|
+
};
|
|
159
|
+
base: {
|
|
160
|
+
base: string;
|
|
161
|
+
header: string;
|
|
162
|
+
footer: string;
|
|
163
|
+
};
|
|
164
|
+
sm: {
|
|
165
|
+
base: string;
|
|
166
|
+
header: string;
|
|
167
|
+
footer: string;
|
|
168
|
+
};
|
|
169
|
+
md: {
|
|
170
|
+
base: string;
|
|
171
|
+
header: string;
|
|
172
|
+
footer: string;
|
|
173
|
+
};
|
|
174
|
+
lg: {
|
|
175
|
+
base: string;
|
|
176
|
+
header: string;
|
|
177
|
+
footer: string;
|
|
178
|
+
};
|
|
179
|
+
xl: {
|
|
180
|
+
base: string;
|
|
181
|
+
header: string;
|
|
182
|
+
footer: string;
|
|
183
|
+
};
|
|
184
|
+
"2xl": {
|
|
185
|
+
base: string;
|
|
186
|
+
header: string;
|
|
187
|
+
footer: string;
|
|
188
|
+
};
|
|
189
|
+
"3xl": {
|
|
190
|
+
base: string;
|
|
191
|
+
header: string;
|
|
192
|
+
footer: string;
|
|
193
|
+
};
|
|
194
|
+
full: {
|
|
195
|
+
base: string;
|
|
196
|
+
header: string;
|
|
197
|
+
footer: string;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
fullWidth: {
|
|
201
|
+
true: {
|
|
202
|
+
base: string;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
isHoverable: {
|
|
206
|
+
true: {};
|
|
207
|
+
};
|
|
208
|
+
isPressable: {
|
|
209
|
+
true: {
|
|
210
|
+
base: string;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
isFocusVisible: {
|
|
214
|
+
true: {
|
|
215
|
+
base: string[];
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
isFooterBlurred: {
|
|
219
|
+
true: {
|
|
220
|
+
footer: string;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
isDisabled: {
|
|
224
|
+
true: {
|
|
225
|
+
base: string;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
disableAnimation: {
|
|
229
|
+
true: string;
|
|
230
|
+
false: {
|
|
231
|
+
base: string;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
}, unknown>>;
|
|
235
|
+
type CardVariantProps = VariantProps<typeof card>;
|
|
236
|
+
type CardSlots = keyof ReturnType<typeof card>;
|
|
237
|
+
type CardReturnType = ReturnType<typeof card>;
|
|
238
|
+
|
|
239
|
+
export { CardReturnType, CardSlots, CardVariantProps, card };
|
|
@@ -0,0 +1,222 @@
|
|
|
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/card.ts
|
|
21
|
+
var card_exports = {};
|
|
22
|
+
__export(card_exports, {
|
|
23
|
+
card: () => card
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(card_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/card.ts
|
|
39
|
+
var card = (0, import_tailwind_variants.tv)({
|
|
40
|
+
slots: {
|
|
41
|
+
base: [
|
|
42
|
+
"flex",
|
|
43
|
+
"flex-col",
|
|
44
|
+
"relative",
|
|
45
|
+
"overflow-hidden",
|
|
46
|
+
"w-full",
|
|
47
|
+
"height-auto",
|
|
48
|
+
"outline-none",
|
|
49
|
+
"text-foreground",
|
|
50
|
+
"box-border",
|
|
51
|
+
"dark:bg-content1",
|
|
52
|
+
"border border-neutral-100"
|
|
53
|
+
],
|
|
54
|
+
header: [
|
|
55
|
+
"flex",
|
|
56
|
+
"justify-start",
|
|
57
|
+
"items-center",
|
|
58
|
+
"shrink-0",
|
|
59
|
+
"w-full",
|
|
60
|
+
"overflow-inherit",
|
|
61
|
+
"color-inherit",
|
|
62
|
+
"p-3",
|
|
63
|
+
"z-10",
|
|
64
|
+
"subpixel-antialiased"
|
|
65
|
+
],
|
|
66
|
+
body: [
|
|
67
|
+
"relative",
|
|
68
|
+
"flex",
|
|
69
|
+
"flex-auto",
|
|
70
|
+
"flex-col",
|
|
71
|
+
"place-content-inherit",
|
|
72
|
+
"align-items-inherit",
|
|
73
|
+
"w-full",
|
|
74
|
+
"h-auto",
|
|
75
|
+
"py-5",
|
|
76
|
+
"px-3",
|
|
77
|
+
"break-words",
|
|
78
|
+
"text-left",
|
|
79
|
+
"overflow-y-auto",
|
|
80
|
+
"subpixel-antialiased"
|
|
81
|
+
],
|
|
82
|
+
footer: [
|
|
83
|
+
"w-full",
|
|
84
|
+
"h-auto",
|
|
85
|
+
"p-3",
|
|
86
|
+
"flex",
|
|
87
|
+
"items-center",
|
|
88
|
+
"overflow-hidden",
|
|
89
|
+
"color-inherit",
|
|
90
|
+
"subpixel-antialiased"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
variants: {
|
|
94
|
+
shadow: {
|
|
95
|
+
none: {
|
|
96
|
+
base: "shadow-none"
|
|
97
|
+
},
|
|
98
|
+
sm: {
|
|
99
|
+
base: "shadow-sm"
|
|
100
|
+
},
|
|
101
|
+
md: {
|
|
102
|
+
base: "shadow-md"
|
|
103
|
+
},
|
|
104
|
+
lg: {
|
|
105
|
+
base: "shadow-lg"
|
|
106
|
+
},
|
|
107
|
+
xl: {
|
|
108
|
+
base: "shadow-xl"
|
|
109
|
+
},
|
|
110
|
+
"2xl": {
|
|
111
|
+
base: "shadow-2xl"
|
|
112
|
+
},
|
|
113
|
+
inner: {
|
|
114
|
+
base: "shadow-inner"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
radius: {
|
|
118
|
+
none: {
|
|
119
|
+
base: "rounded-none",
|
|
120
|
+
header: "rounded-t-none",
|
|
121
|
+
footer: "rounded-b-none"
|
|
122
|
+
},
|
|
123
|
+
base: {
|
|
124
|
+
base: "rounded",
|
|
125
|
+
header: "rounded-t",
|
|
126
|
+
footer: "rounded-b"
|
|
127
|
+
},
|
|
128
|
+
sm: {
|
|
129
|
+
base: "rounded-sm",
|
|
130
|
+
header: "rounded-t-sm",
|
|
131
|
+
footer: "rounded-b-sm"
|
|
132
|
+
},
|
|
133
|
+
md: {
|
|
134
|
+
base: "rounded-md",
|
|
135
|
+
header: "rounded-t-md",
|
|
136
|
+
footer: "rounded-b-md"
|
|
137
|
+
},
|
|
138
|
+
lg: {
|
|
139
|
+
base: "rounded-lg",
|
|
140
|
+
header: "rounded-t-lg",
|
|
141
|
+
footer: "rounded-b-lg"
|
|
142
|
+
},
|
|
143
|
+
xl: {
|
|
144
|
+
base: "rounded-xl",
|
|
145
|
+
header: "rounded-t-xl",
|
|
146
|
+
footer: "rounded-b-xl"
|
|
147
|
+
},
|
|
148
|
+
"2xl": {
|
|
149
|
+
base: "rounded-2xl",
|
|
150
|
+
header: "rounded-t-2xl",
|
|
151
|
+
footer: "rounded-b-2xl"
|
|
152
|
+
},
|
|
153
|
+
"3xl": {
|
|
154
|
+
base: "rounded-3xl",
|
|
155
|
+
header: "rounded-t-3xl",
|
|
156
|
+
footer: "rounded-b-3xl"
|
|
157
|
+
},
|
|
158
|
+
full: {
|
|
159
|
+
base: "rounded-full",
|
|
160
|
+
header: "rounded-t-full",
|
|
161
|
+
footer: "rounded-b-full"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
fullWidth: {
|
|
165
|
+
true: {
|
|
166
|
+
base: "w-full"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
isHoverable: {
|
|
170
|
+
true: {}
|
|
171
|
+
},
|
|
172
|
+
isPressable: {
|
|
173
|
+
true: { base: "cursor-pointer" }
|
|
174
|
+
},
|
|
175
|
+
isFocusVisible: {
|
|
176
|
+
true: {
|
|
177
|
+
base: [...ringClasses]
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
isFooterBlurred: {
|
|
181
|
+
true: {
|
|
182
|
+
footer: "backdrop-blur-xl backdrop-saturate-200"
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
isDisabled: {
|
|
186
|
+
true: {
|
|
187
|
+
base: "opacity-50 cursor-not-allowed"
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
disableAnimation: {
|
|
191
|
+
true: "",
|
|
192
|
+
false: { base: "transition-transform motion-reduce:transition-none" }
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
compoundVariants: [
|
|
196
|
+
{
|
|
197
|
+
isHoverable: true,
|
|
198
|
+
disableAnimation: false,
|
|
199
|
+
class: "hover:-translate-y-1.5"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
isPressable: true,
|
|
203
|
+
disableAnimation: false,
|
|
204
|
+
class: "active:scale-95"
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
defaultVariants: {
|
|
208
|
+
radius: "xl",
|
|
209
|
+
shadow: "lg",
|
|
210
|
+
fullWidth: false,
|
|
211
|
+
isHoverable: false,
|
|
212
|
+
isPressable: false,
|
|
213
|
+
isFocusVisible: false,
|
|
214
|
+
isDisabled: false,
|
|
215
|
+
disableAnimation: false,
|
|
216
|
+
isFooterBlurred: false
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
220
|
+
0 && (module.exports = {
|
|
221
|
+
card
|
|
222
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
2
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* CheckboxGroup wrapper **Tailwind Variants** component
|
|
6
|
+
*
|
|
7
|
+
* const {base, label, wrapper} = checkboxGroup({...})
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* <div className={base())}>
|
|
11
|
+
* <label className={label()}>Label</label>
|
|
12
|
+
* <div className={wrapper()} data-orientation="vertical/horizontal">
|
|
13
|
+
* // checkboxes
|
|
14
|
+
* </div>
|
|
15
|
+
* </div>
|
|
16
|
+
*/
|
|
17
|
+
declare const checkboxGroup: tailwind_variants.TVReturnType<tailwind_variants.TVVariantsDefault<{
|
|
18
|
+
base: string;
|
|
19
|
+
label: string;
|
|
20
|
+
wrapper: string;
|
|
21
|
+
}, undefined> | {}, unknown, {
|
|
22
|
+
base: string;
|
|
23
|
+
label: string;
|
|
24
|
+
wrapper: string;
|
|
25
|
+
}, undefined, undefined, tailwind_variants_dist_config.TVConfig<tailwind_variants.TVVariantsDefault<{
|
|
26
|
+
base: string;
|
|
27
|
+
label: string;
|
|
28
|
+
wrapper: string;
|
|
29
|
+
}, undefined> | {}, unknown>>;
|
|
30
|
+
type CheckboxGroupSlots = keyof ReturnType<typeof checkboxGroup>;
|
|
31
|
+
|
|
32
|
+
export { CheckboxGroupSlots, checkboxGroup };
|
|
@@ -0,0 +1,37 @@
|
|
|
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-group.ts
|
|
21
|
+
var checkbox_group_exports = {};
|
|
22
|
+
__export(checkbox_group_exports, {
|
|
23
|
+
checkboxGroup: () => checkboxGroup
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(checkbox_group_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
var checkboxGroup = (0, import_tailwind_variants.tv)({
|
|
28
|
+
slots: {
|
|
29
|
+
base: "relative flex flex-col gap-2",
|
|
30
|
+
label: "relative text-neutral-500",
|
|
31
|
+
wrapper: "flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row "
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
35
|
+
0 && (module.exports = {
|
|
36
|
+
checkboxGroup
|
|
37
|
+
});
|