@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,343 @@
|
|
|
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/snippet.ts
|
|
21
|
+
var snippet_exports = {};
|
|
22
|
+
__export(snippet_exports, {
|
|
23
|
+
snippet: () => snippet
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(snippet_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/utils/variants.ts
|
|
39
|
+
var solid = {
|
|
40
|
+
neutral: "bg-neutral text-neutral-contrastText",
|
|
41
|
+
primary: "bg-primary text-primary-contrastText",
|
|
42
|
+
secondary: "bg-secondary text-secondary-contrastText",
|
|
43
|
+
success: "bg-success text-success-contrastText",
|
|
44
|
+
warning: "bg-warning text-warning-contrastText",
|
|
45
|
+
danger: "bg-danger text-danger-contrastText",
|
|
46
|
+
foreground: "bg-foreground text-background"
|
|
47
|
+
};
|
|
48
|
+
var shadow = {
|
|
49
|
+
neutral: "shadow-lg shadow-neutral/50 bg-neutral text-neutral-contrastText",
|
|
50
|
+
primary: "shadow-lg shadow-primary/40 bg-primary text-primary-contrastText",
|
|
51
|
+
secondary: "shadow-lg shadow-secondary/40 bg-secondary text-secondary-contrastText",
|
|
52
|
+
success: "shadow-lg shadow-success/40 bg-success text-success-contrastText",
|
|
53
|
+
warning: "shadow-lg shadow-warning/40 bg-warning text-warning-contrastText",
|
|
54
|
+
danger: "shadow-lg shadow-danger/40 bg-danger text-danger-contrastText",
|
|
55
|
+
foreground: "shadow-lg shadow-foreground/40 bg-foreground text-background"
|
|
56
|
+
};
|
|
57
|
+
var bordered = {
|
|
58
|
+
neutral: "bg-transparent border-neutral text-foreground",
|
|
59
|
+
primary: "bg-transparent border-primary text-primary",
|
|
60
|
+
secondary: "bg-transparent border-secondary text-secondary",
|
|
61
|
+
success: "bg-transparent border-success text-success",
|
|
62
|
+
warning: "bg-transparent border-warning text-warning",
|
|
63
|
+
danger: "bg-transparent border-danger text-danger",
|
|
64
|
+
foreground: "bg-transparent border-foreground text-foreground"
|
|
65
|
+
};
|
|
66
|
+
var flat = {
|
|
67
|
+
neutral: "bg-neutral-100 text-neutral-contrastText",
|
|
68
|
+
primary: "bg-primary-50 text-primary",
|
|
69
|
+
secondary: "bg-secondary-100 text-secondary",
|
|
70
|
+
success: "bg-success-50 text-success",
|
|
71
|
+
warning: "bg-warning-50 text-warning",
|
|
72
|
+
danger: "bg-danger-50 text-danger",
|
|
73
|
+
foreground: "bg-foreground/10 text-foreground"
|
|
74
|
+
};
|
|
75
|
+
var faded = {
|
|
76
|
+
neutral: "border-neutral bg-neutral-100 text-neutral-contrastText",
|
|
77
|
+
primary: "border-neutral bg-neutral-100 text-primary",
|
|
78
|
+
secondary: "border-neutral bg-neutral-100 text-secondary",
|
|
79
|
+
success: "border-neutral bg-neutral-100 text-success",
|
|
80
|
+
warning: "border-neutral bg-neutral-100 text-warning",
|
|
81
|
+
danger: "border-neutral bg-neutral-100 text-danger",
|
|
82
|
+
foreground: "border-neutral bg-neutral-100 text-foreground"
|
|
83
|
+
};
|
|
84
|
+
var light = {
|
|
85
|
+
neutral: "bg-transparent text-neutral-contrastText",
|
|
86
|
+
primary: "bg-transparent text-primary",
|
|
87
|
+
secondary: "bg-transparent text-secondary",
|
|
88
|
+
success: "bg-transparent text-success",
|
|
89
|
+
warning: "bg-transparent text-warning",
|
|
90
|
+
danger: "bg-transparent text-danger",
|
|
91
|
+
foreground: "bg-transparent text-foreground"
|
|
92
|
+
};
|
|
93
|
+
var ghost = {
|
|
94
|
+
neutral: "border-neutral text-neutral-contrastText hover:!bg-neutral",
|
|
95
|
+
primary: "border-primary text-primary hover:!text-primary-contrastText hover:!bg-primary",
|
|
96
|
+
secondary: "border-secondary text-secondary hover:text-secondary-contrastText hover:!bg-secondary",
|
|
97
|
+
success: "border-success text-success hover:!text-success-contrastText hover:!bg-success",
|
|
98
|
+
warning: "border-warning text-warning hover:!text-warning-contrastText hover:!bg-warning",
|
|
99
|
+
danger: "border-danger text-danger hover:!text-danger-contrastText hover:!bg-danger",
|
|
100
|
+
foreground: "border-foreground text-foreground hover:!bg-foreground"
|
|
101
|
+
};
|
|
102
|
+
var colorVariants = {
|
|
103
|
+
solid,
|
|
104
|
+
shadow,
|
|
105
|
+
bordered,
|
|
106
|
+
flat,
|
|
107
|
+
faded,
|
|
108
|
+
light,
|
|
109
|
+
ghost
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
// src/components/snippet.ts
|
|
113
|
+
var snippet = (0, import_tailwind_variants.tv)({
|
|
114
|
+
slots: {
|
|
115
|
+
base: "inline-flex items-center justify-between space-x-3 rounded-md",
|
|
116
|
+
pre: "bg-transparent text-inherit font-mono whitespace-pre-wrap",
|
|
117
|
+
copy: "z-10 appearance-none outline-none"
|
|
118
|
+
},
|
|
119
|
+
variants: {
|
|
120
|
+
variant: {
|
|
121
|
+
flat: "",
|
|
122
|
+
solid: "",
|
|
123
|
+
bordered: "border-2 !bg-transparent",
|
|
124
|
+
shadow: ""
|
|
125
|
+
},
|
|
126
|
+
color: {
|
|
127
|
+
neutral: {
|
|
128
|
+
base: colorVariants.flat.neutral
|
|
129
|
+
},
|
|
130
|
+
primary: {
|
|
131
|
+
base: colorVariants.flat.primary
|
|
132
|
+
},
|
|
133
|
+
secondary: {
|
|
134
|
+
base: colorVariants.flat.secondary
|
|
135
|
+
},
|
|
136
|
+
success: {
|
|
137
|
+
base: colorVariants.flat.success
|
|
138
|
+
},
|
|
139
|
+
warning: {
|
|
140
|
+
base: colorVariants.flat.warning
|
|
141
|
+
},
|
|
142
|
+
danger: {
|
|
143
|
+
base: colorVariants.flat.danger
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
size: {
|
|
147
|
+
xs: {
|
|
148
|
+
base: "px-2 py-1 text-xs"
|
|
149
|
+
},
|
|
150
|
+
sm: {
|
|
151
|
+
base: "px-2 py-1 text-sm"
|
|
152
|
+
},
|
|
153
|
+
md: {
|
|
154
|
+
base: "px-3 py-1.5 text-base"
|
|
155
|
+
},
|
|
156
|
+
lg: {
|
|
157
|
+
base: "px-4 py-2 text-lg"
|
|
158
|
+
},
|
|
159
|
+
xl: {
|
|
160
|
+
base: "px-4 py-2 text-xl"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
radius: {
|
|
164
|
+
none: {
|
|
165
|
+
base: "rounded-none"
|
|
166
|
+
},
|
|
167
|
+
base: {
|
|
168
|
+
base: "rounded-base"
|
|
169
|
+
},
|
|
170
|
+
sm: {
|
|
171
|
+
base: "rounded-sm"
|
|
172
|
+
},
|
|
173
|
+
md: {
|
|
174
|
+
base: "rounded-md"
|
|
175
|
+
},
|
|
176
|
+
lg: {
|
|
177
|
+
base: "rounded-lg"
|
|
178
|
+
},
|
|
179
|
+
xl: {
|
|
180
|
+
base: "rounded-xl"
|
|
181
|
+
},
|
|
182
|
+
full: {
|
|
183
|
+
base: "rounded-full"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
fullWidth: {
|
|
187
|
+
true: {
|
|
188
|
+
base: "w-full"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
isFocusVisible: {
|
|
192
|
+
true: {
|
|
193
|
+
copy: [
|
|
194
|
+
...ringClasses,
|
|
195
|
+
"ring-1",
|
|
196
|
+
"rounded-sm",
|
|
197
|
+
"ring-offset-transparent",
|
|
198
|
+
"dark:ring-offset-transparent"
|
|
199
|
+
]
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
defaultVariants: {
|
|
204
|
+
color: "neutral",
|
|
205
|
+
variant: "flat",
|
|
206
|
+
size: "md",
|
|
207
|
+
radius: "lg",
|
|
208
|
+
fullWidth: false,
|
|
209
|
+
isFocusVisible: false
|
|
210
|
+
},
|
|
211
|
+
compoundVariants: [
|
|
212
|
+
{
|
|
213
|
+
variant: "solid",
|
|
214
|
+
color: "neutral",
|
|
215
|
+
class: {
|
|
216
|
+
base: colorVariants.solid.neutral
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
variant: "solid",
|
|
221
|
+
color: "primary",
|
|
222
|
+
class: {
|
|
223
|
+
base: colorVariants.solid.primary
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
variant: "solid",
|
|
228
|
+
color: "secondary",
|
|
229
|
+
class: {
|
|
230
|
+
base: colorVariants.solid.secondary
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
variant: "solid",
|
|
235
|
+
color: "success",
|
|
236
|
+
class: {
|
|
237
|
+
base: colorVariants.solid.success
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
variant: "solid",
|
|
242
|
+
color: "warning",
|
|
243
|
+
class: {
|
|
244
|
+
base: colorVariants.solid.warning
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
variant: "solid",
|
|
249
|
+
color: "danger",
|
|
250
|
+
class: {
|
|
251
|
+
base: colorVariants.solid.danger
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
variant: "shadow",
|
|
256
|
+
color: "neutral",
|
|
257
|
+
class: {
|
|
258
|
+
base: colorVariants.shadow.neutral
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
variant: "shadow",
|
|
263
|
+
color: "primary",
|
|
264
|
+
class: {
|
|
265
|
+
base: colorVariants.shadow.primary
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
variant: "shadow",
|
|
270
|
+
color: "secondary",
|
|
271
|
+
class: {
|
|
272
|
+
base: colorVariants.shadow.secondary
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
variant: "shadow",
|
|
277
|
+
color: "success",
|
|
278
|
+
class: {
|
|
279
|
+
base: colorVariants.shadow.success
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
variant: "shadow",
|
|
284
|
+
color: "warning",
|
|
285
|
+
class: {
|
|
286
|
+
base: colorVariants.shadow.warning
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
variant: "shadow",
|
|
291
|
+
color: "danger",
|
|
292
|
+
class: {
|
|
293
|
+
base: colorVariants.shadow.danger
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
variant: "bordered",
|
|
298
|
+
color: "neutral",
|
|
299
|
+
class: {
|
|
300
|
+
base: colorVariants.bordered.neutral
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
variant: "bordered",
|
|
305
|
+
color: "primary",
|
|
306
|
+
class: {
|
|
307
|
+
base: colorVariants.bordered.primary
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
variant: "bordered",
|
|
312
|
+
color: "secondary",
|
|
313
|
+
class: {
|
|
314
|
+
base: colorVariants.bordered.secondary
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
variant: "bordered",
|
|
319
|
+
color: "success",
|
|
320
|
+
class: {
|
|
321
|
+
base: colorVariants.bordered.success
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
variant: "bordered",
|
|
326
|
+
color: "warning",
|
|
327
|
+
class: {
|
|
328
|
+
base: colorVariants.bordered.warning
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
variant: "bordered",
|
|
333
|
+
color: "danger",
|
|
334
|
+
class: {
|
|
335
|
+
base: colorVariants.bordered.danger
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
]
|
|
339
|
+
});
|
|
340
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
341
|
+
0 && (module.exports = {
|
|
342
|
+
snippet
|
|
343
|
+
});
|
|
@@ -0,0 +1,192 @@
|
|
|
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
|
+
* Spinner wrapper **Tailwind Variants** component
|
|
7
|
+
*
|
|
8
|
+
* const {base, line1, line2, label } = spinner({...})
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* <div className={base())}>
|
|
12
|
+
* <i className={circle1()}/>
|
|
13
|
+
* <i className={circle2()}/>
|
|
14
|
+
* <span className={label()}/>
|
|
15
|
+
* </div>
|
|
16
|
+
*/
|
|
17
|
+
declare const spinner: tailwind_variants.TVReturnType<{
|
|
18
|
+
size: {
|
|
19
|
+
xs: {
|
|
20
|
+
base: string;
|
|
21
|
+
circle1: string;
|
|
22
|
+
circle2: string;
|
|
23
|
+
label: string;
|
|
24
|
+
};
|
|
25
|
+
sm: {
|
|
26
|
+
base: string;
|
|
27
|
+
circle1: string;
|
|
28
|
+
circle2: string;
|
|
29
|
+
label: string;
|
|
30
|
+
};
|
|
31
|
+
md: {
|
|
32
|
+
base: string;
|
|
33
|
+
circle1: string;
|
|
34
|
+
circle2: string;
|
|
35
|
+
label: string;
|
|
36
|
+
};
|
|
37
|
+
lg: {
|
|
38
|
+
base: string;
|
|
39
|
+
circle1: string;
|
|
40
|
+
circle2: string;
|
|
41
|
+
label: string;
|
|
42
|
+
};
|
|
43
|
+
xl: {
|
|
44
|
+
base: string;
|
|
45
|
+
circle1: string;
|
|
46
|
+
circle2: string;
|
|
47
|
+
label: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
color: {
|
|
51
|
+
white: {
|
|
52
|
+
circle1: string;
|
|
53
|
+
circle2: string;
|
|
54
|
+
};
|
|
55
|
+
neutral: {
|
|
56
|
+
circle1: string;
|
|
57
|
+
circle2: string;
|
|
58
|
+
};
|
|
59
|
+
primary: {
|
|
60
|
+
circle1: string;
|
|
61
|
+
circle2: string;
|
|
62
|
+
};
|
|
63
|
+
secondary: {
|
|
64
|
+
circle1: string;
|
|
65
|
+
circle2: string;
|
|
66
|
+
};
|
|
67
|
+
success: {
|
|
68
|
+
circle1: string;
|
|
69
|
+
circle2: string;
|
|
70
|
+
};
|
|
71
|
+
warning: {
|
|
72
|
+
circle1: string;
|
|
73
|
+
circle2: string;
|
|
74
|
+
};
|
|
75
|
+
danger: {
|
|
76
|
+
circle1: string;
|
|
77
|
+
circle2: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
labelColor: {
|
|
81
|
+
neutral: {
|
|
82
|
+
label: string;
|
|
83
|
+
};
|
|
84
|
+
primary: {
|
|
85
|
+
label: string;
|
|
86
|
+
};
|
|
87
|
+
secondary: {
|
|
88
|
+
label: string;
|
|
89
|
+
};
|
|
90
|
+
success: {
|
|
91
|
+
label: string;
|
|
92
|
+
};
|
|
93
|
+
warning: {
|
|
94
|
+
label: string;
|
|
95
|
+
};
|
|
96
|
+
danger: {
|
|
97
|
+
label: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
}, unknown, {
|
|
101
|
+
base: string;
|
|
102
|
+
circle1: string[];
|
|
103
|
+
circle2: string[];
|
|
104
|
+
label: string;
|
|
105
|
+
}, undefined, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
106
|
+
size: {
|
|
107
|
+
xs: {
|
|
108
|
+
base: string;
|
|
109
|
+
circle1: string;
|
|
110
|
+
circle2: string;
|
|
111
|
+
label: string;
|
|
112
|
+
};
|
|
113
|
+
sm: {
|
|
114
|
+
base: string;
|
|
115
|
+
circle1: string;
|
|
116
|
+
circle2: string;
|
|
117
|
+
label: string;
|
|
118
|
+
};
|
|
119
|
+
md: {
|
|
120
|
+
base: string;
|
|
121
|
+
circle1: string;
|
|
122
|
+
circle2: string;
|
|
123
|
+
label: string;
|
|
124
|
+
};
|
|
125
|
+
lg: {
|
|
126
|
+
base: string;
|
|
127
|
+
circle1: string;
|
|
128
|
+
circle2: string;
|
|
129
|
+
label: string;
|
|
130
|
+
};
|
|
131
|
+
xl: {
|
|
132
|
+
base: string;
|
|
133
|
+
circle1: string;
|
|
134
|
+
circle2: string;
|
|
135
|
+
label: string;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
color: {
|
|
139
|
+
white: {
|
|
140
|
+
circle1: string;
|
|
141
|
+
circle2: string;
|
|
142
|
+
};
|
|
143
|
+
neutral: {
|
|
144
|
+
circle1: string;
|
|
145
|
+
circle2: string;
|
|
146
|
+
};
|
|
147
|
+
primary: {
|
|
148
|
+
circle1: string;
|
|
149
|
+
circle2: string;
|
|
150
|
+
};
|
|
151
|
+
secondary: {
|
|
152
|
+
circle1: string;
|
|
153
|
+
circle2: string;
|
|
154
|
+
};
|
|
155
|
+
success: {
|
|
156
|
+
circle1: string;
|
|
157
|
+
circle2: string;
|
|
158
|
+
};
|
|
159
|
+
warning: {
|
|
160
|
+
circle1: string;
|
|
161
|
+
circle2: string;
|
|
162
|
+
};
|
|
163
|
+
danger: {
|
|
164
|
+
circle1: string;
|
|
165
|
+
circle2: string;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
labelColor: {
|
|
169
|
+
neutral: {
|
|
170
|
+
label: string;
|
|
171
|
+
};
|
|
172
|
+
primary: {
|
|
173
|
+
label: string;
|
|
174
|
+
};
|
|
175
|
+
secondary: {
|
|
176
|
+
label: string;
|
|
177
|
+
};
|
|
178
|
+
success: {
|
|
179
|
+
label: string;
|
|
180
|
+
};
|
|
181
|
+
warning: {
|
|
182
|
+
label: string;
|
|
183
|
+
};
|
|
184
|
+
danger: {
|
|
185
|
+
label: string;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
}, unknown>>;
|
|
189
|
+
type SpinnerVariantProps = VariantProps<typeof spinner>;
|
|
190
|
+
type SpinnerSlots = keyof ReturnType<typeof spinner>;
|
|
191
|
+
|
|
192
|
+
export { SpinnerSlots, SpinnerVariantProps, spinner };
|
|
@@ -0,0 +1,149 @@
|
|
|
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/spinner.ts
|
|
21
|
+
var spinner_exports = {};
|
|
22
|
+
__export(spinner_exports, {
|
|
23
|
+
spinner: () => spinner
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(spinner_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
var spinner = (0, import_tailwind_variants.tv)({
|
|
28
|
+
slots: {
|
|
29
|
+
base: "flex flex-col items-center justify-center relative",
|
|
30
|
+
circle1: [
|
|
31
|
+
"absolute",
|
|
32
|
+
"w-full",
|
|
33
|
+
"h-full",
|
|
34
|
+
"rounded-full",
|
|
35
|
+
"animate-spinner-ease-spin",
|
|
36
|
+
"border-2",
|
|
37
|
+
"border-solid",
|
|
38
|
+
"border-t-transparent",
|
|
39
|
+
"border-l-transparent",
|
|
40
|
+
"border-r-transparent"
|
|
41
|
+
],
|
|
42
|
+
circle2: [
|
|
43
|
+
"absolute",
|
|
44
|
+
"w-full",
|
|
45
|
+
"h-full",
|
|
46
|
+
"rounded-full",
|
|
47
|
+
"opacity-75",
|
|
48
|
+
"animate-spinner-linear-spin",
|
|
49
|
+
"border-2",
|
|
50
|
+
"border-dotted",
|
|
51
|
+
"border-t-transparent",
|
|
52
|
+
"border-l-transparent",
|
|
53
|
+
"border-r-transparent"
|
|
54
|
+
],
|
|
55
|
+
label: "text-foreground dark:text-foreground-dark font-regular"
|
|
56
|
+
},
|
|
57
|
+
variants: {
|
|
58
|
+
size: {
|
|
59
|
+
xs: {
|
|
60
|
+
base: "w-4 h-4",
|
|
61
|
+
circle1: "border-2",
|
|
62
|
+
circle2: "border-2",
|
|
63
|
+
label: "translate-y-6 text-xs"
|
|
64
|
+
},
|
|
65
|
+
sm: {
|
|
66
|
+
base: "w-5 h-5",
|
|
67
|
+
circle1: "border-2",
|
|
68
|
+
circle2: "border-2",
|
|
69
|
+
label: "translate-y-6 text-xs"
|
|
70
|
+
},
|
|
71
|
+
md: {
|
|
72
|
+
base: "w-8 h-8",
|
|
73
|
+
circle1: "border-3",
|
|
74
|
+
circle2: "border-3",
|
|
75
|
+
label: "translate-y-8 text-sm"
|
|
76
|
+
},
|
|
77
|
+
lg: {
|
|
78
|
+
base: "w-10 h-10",
|
|
79
|
+
circle1: "border-3",
|
|
80
|
+
circle2: "border-3",
|
|
81
|
+
label: "translate-y-10 text-base"
|
|
82
|
+
},
|
|
83
|
+
xl: {
|
|
84
|
+
base: "w-12 h-12",
|
|
85
|
+
circle1: "border-4",
|
|
86
|
+
circle2: "border-4",
|
|
87
|
+
label: "translate-y-12 text-lg"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
color: {
|
|
91
|
+
white: {
|
|
92
|
+
circle1: "border-b-white",
|
|
93
|
+
circle2: "border-b-white"
|
|
94
|
+
},
|
|
95
|
+
neutral: {
|
|
96
|
+
circle1: "border-b-neutral",
|
|
97
|
+
circle2: "border-b-neutral"
|
|
98
|
+
},
|
|
99
|
+
primary: {
|
|
100
|
+
circle1: "border-b-primary",
|
|
101
|
+
circle2: "border-b-primary"
|
|
102
|
+
},
|
|
103
|
+
secondary: {
|
|
104
|
+
circle1: "border-b-secondary",
|
|
105
|
+
circle2: "border-b-secondary"
|
|
106
|
+
},
|
|
107
|
+
success: {
|
|
108
|
+
circle1: "border-b-success",
|
|
109
|
+
circle2: "border-b-success"
|
|
110
|
+
},
|
|
111
|
+
warning: {
|
|
112
|
+
circle1: "border-b-warning",
|
|
113
|
+
circle2: "border-b-warning"
|
|
114
|
+
},
|
|
115
|
+
danger: {
|
|
116
|
+
circle1: "border-b-danger",
|
|
117
|
+
circle2: "border-b-danger"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
labelColor: {
|
|
121
|
+
neutral: {
|
|
122
|
+
label: "text-neutral"
|
|
123
|
+
},
|
|
124
|
+
primary: {
|
|
125
|
+
label: "text-primary"
|
|
126
|
+
},
|
|
127
|
+
secondary: {
|
|
128
|
+
label: "text-secondary"
|
|
129
|
+
},
|
|
130
|
+
success: {
|
|
131
|
+
label: "text-success"
|
|
132
|
+
},
|
|
133
|
+
warning: {
|
|
134
|
+
label: "text-warning"
|
|
135
|
+
},
|
|
136
|
+
danger: {
|
|
137
|
+
label: "text-danger"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
defaultVariants: {
|
|
142
|
+
size: "md",
|
|
143
|
+
color: "primary"
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
147
|
+
0 && (module.exports = {
|
|
148
|
+
spinner
|
|
149
|
+
});
|