@nextui-org/theme 0.0.0-dev-v2-20230429213333 → 0.0.0-dev-v2-20230505232443
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-PH4OFVEH.mjs → chunk-7EDXWCUZ.mjs} +1 -1
- package/dist/chunk-G23VRPTF.mjs +53 -0
- package/dist/{chunk-4XSCIGTZ.mjs → chunk-X577FDRG.mjs} +16 -10
- package/dist/{chunk-UM54LZPC.mjs → chunk-YMKJFSPB.mjs} +47 -17
- package/dist/components/button.d.ts +2 -0
- package/dist/components/button.js +47 -17
- package/dist/components/button.mjs +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +116 -28
- package/dist/components/index.mjs +11 -7
- package/dist/components/input.js +1 -1
- package/dist/components/input.mjs +1 -1
- package/dist/components/skeleton.d.ts +44 -0
- package/dist/components/skeleton.js +77 -0
- package/dist/components/skeleton.mjs +6 -0
- package/dist/components/snippet.d.ts +17 -1
- package/dist/components/snippet.js +16 -10
- package/dist/components/snippet.mjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +119 -31
- package/dist/index.mjs +11 -7
- package/package.json +1 -1
- /package/dist/{chunk-T6HAGWX5.mjs → chunk-MVXKHHAX.mjs} +0 -0
|
@@ -6,7 +6,7 @@ var input = tv({
|
|
|
6
6
|
label: "block text-sm font-medium text-neutral-600",
|
|
7
7
|
inputWrapper: "relative w-full inline-flex flex-row items-center shadow-sm px-3 gap-3",
|
|
8
8
|
innerWrapper: "inline-flex h-full items-center w-full gap-1.5 box-border",
|
|
9
|
-
input: "w-full h-full bg-transparent outline-none placeholder:text-neutral-500",
|
|
9
|
+
input: "w-full h-full !bg-transparent outline-none placeholder:text-neutral-500",
|
|
10
10
|
clearButton: [
|
|
11
11
|
"z-10",
|
|
12
12
|
"hidden",
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// src/components/skeleton.ts
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
var skeleton = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
base: [
|
|
6
|
+
"group",
|
|
7
|
+
"relative",
|
|
8
|
+
"space-y-5",
|
|
9
|
+
"overflow-hidden",
|
|
10
|
+
"bg-white/5",
|
|
11
|
+
"before:opacity-100",
|
|
12
|
+
"before:absolute",
|
|
13
|
+
"before:inset-0",
|
|
14
|
+
"before:-translate-x-full",
|
|
15
|
+
"before:animate-[shimmer_2s_infinite]",
|
|
16
|
+
"before:border-t",
|
|
17
|
+
"before:border-content4/70",
|
|
18
|
+
"before:bg-gradient-to-r",
|
|
19
|
+
"before:from-transparent",
|
|
20
|
+
"before:via-content4",
|
|
21
|
+
"dark:before:via-neutral-700/10",
|
|
22
|
+
"before:to-transparent",
|
|
23
|
+
"after:opacity-100",
|
|
24
|
+
"after:absolute",
|
|
25
|
+
"after:inset-0",
|
|
26
|
+
"after:-z-10",
|
|
27
|
+
"after:bg-content3",
|
|
28
|
+
"dark:after:bg-content2",
|
|
29
|
+
"data-[loaded=true]:before:opacity-0",
|
|
30
|
+
"data-[loaded=true]:after:opacity-0"
|
|
31
|
+
],
|
|
32
|
+
content: ["opacity-0", "group-data-[loaded=true]:opacity-100"]
|
|
33
|
+
},
|
|
34
|
+
variants: {
|
|
35
|
+
disableAnimation: {
|
|
36
|
+
true: {
|
|
37
|
+
base: "before:transition-none",
|
|
38
|
+
content: "transition-none"
|
|
39
|
+
},
|
|
40
|
+
false: {
|
|
41
|
+
base: "before:transition-opacity before:!duration-300",
|
|
42
|
+
content: "transition-opacity motion-reduce:transition-none !duration-300"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
defaultVariants: {
|
|
47
|
+
disableAnimation: false
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
export {
|
|
52
|
+
skeleton
|
|
53
|
+
};
|
|
@@ -6,16 +6,14 @@ import {
|
|
|
6
6
|
import { tv } from "tailwind-variants";
|
|
7
7
|
var snippet = tv({
|
|
8
8
|
slots: {
|
|
9
|
-
base: "inline-flex items-center justify-between
|
|
9
|
+
base: "inline-flex items-center justify-between rounded-md",
|
|
10
10
|
pre: "bg-transparent text-inherit font-mono whitespace-pre-wrap",
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"data-[
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"data-[
|
|
17
|
-
"data-[focus-visible=true]:ring-offset-transparent",
|
|
18
|
-
"data-[focus-visible=true]:dark:ring-offset-transparent"
|
|
11
|
+
copyButton: ["group", "relative", "z-10", "text-inherit", "data-[hover=true]:bg-transparent"],
|
|
12
|
+
copyIcon: [
|
|
13
|
+
"absolute text-inherit opacity-100 scale-100 group-data-[copied=true]:opacity-0 group-data-[copied=true]:scale-50"
|
|
14
|
+
],
|
|
15
|
+
checkIcon: [
|
|
16
|
+
"absolute text-inherit opacity-0 scale-50 group-data-[copied=true]:opacity-100 group-data-[copied=true]:scale-100"
|
|
19
17
|
]
|
|
20
18
|
},
|
|
21
19
|
variants: {
|
|
@@ -89,6 +87,13 @@ var snippet = tv({
|
|
|
89
87
|
true: {
|
|
90
88
|
base: "w-full"
|
|
91
89
|
}
|
|
90
|
+
},
|
|
91
|
+
disableAnimation: {
|
|
92
|
+
true: {},
|
|
93
|
+
false: {
|
|
94
|
+
copyIcon: "transition-transform-opacity",
|
|
95
|
+
checkIcon: "transition-transform-opacity"
|
|
96
|
+
}
|
|
92
97
|
}
|
|
93
98
|
},
|
|
94
99
|
defaultVariants: {
|
|
@@ -96,7 +101,8 @@ var snippet = tv({
|
|
|
96
101
|
variant: "flat",
|
|
97
102
|
size: "md",
|
|
98
103
|
radius: "lg",
|
|
99
|
-
fullWidth: false
|
|
104
|
+
fullWidth: false,
|
|
105
|
+
disableAnimation: false
|
|
100
106
|
},
|
|
101
107
|
compoundVariants: [
|
|
102
108
|
{
|
|
@@ -21,7 +21,6 @@ var button = tv({
|
|
|
21
21
|
"data-[pressed=true]:scale-95",
|
|
22
22
|
"overflow-hidden",
|
|
23
23
|
"gap-1.5",
|
|
24
|
-
"[&>svg]:max-w-[2em]",
|
|
25
24
|
"data-[focus-visible=true]:outline-none",
|
|
26
25
|
"data-[focus-visible=true]:ring-2",
|
|
27
26
|
"data-[focus-visible=true]:ring-primary",
|
|
@@ -32,12 +31,12 @@ var button = tv({
|
|
|
32
31
|
variants: {
|
|
33
32
|
variant: {
|
|
34
33
|
solid: "",
|
|
35
|
-
bordered: "border-2
|
|
36
|
-
light: "
|
|
34
|
+
bordered: "border-2 bg-transparent",
|
|
35
|
+
light: "bg-transparent",
|
|
37
36
|
flat: "",
|
|
38
37
|
faded: "border-2",
|
|
39
38
|
shadow: "",
|
|
40
|
-
ghost: "border-2
|
|
39
|
+
ghost: "border-2 bg-transparent"
|
|
41
40
|
},
|
|
42
41
|
size: {
|
|
43
42
|
xs: "px-2 h-6 text-xs",
|
|
@@ -47,12 +46,12 @@ var button = tv({
|
|
|
47
46
|
xl: "px-8 h-14 text-lg"
|
|
48
47
|
},
|
|
49
48
|
color: {
|
|
50
|
-
neutral:
|
|
51
|
-
primary:
|
|
52
|
-
secondary:
|
|
53
|
-
success:
|
|
54
|
-
warning:
|
|
55
|
-
danger:
|
|
49
|
+
neutral: "",
|
|
50
|
+
primary: "",
|
|
51
|
+
secondary: "",
|
|
52
|
+
success: "",
|
|
53
|
+
warning: "",
|
|
54
|
+
danger: ""
|
|
56
55
|
},
|
|
57
56
|
radius: {
|
|
58
57
|
none: "rounded-none",
|
|
@@ -75,7 +74,8 @@ var button = tv({
|
|
|
75
74
|
true: "[&:not(:first-child):not(:last-child)]:rounded-none"
|
|
76
75
|
},
|
|
77
76
|
isIconOnly: {
|
|
78
|
-
true: "p-0 gap-0"
|
|
77
|
+
true: "p-0 gap-0",
|
|
78
|
+
false: "[&>svg]:max-w-[2em]"
|
|
79
79
|
},
|
|
80
80
|
disableAnimation: {
|
|
81
81
|
true: "!transition-none",
|
|
@@ -93,6 +93,36 @@ var button = tv({
|
|
|
93
93
|
disableAnimation: false
|
|
94
94
|
},
|
|
95
95
|
compoundVariants: [
|
|
96
|
+
{
|
|
97
|
+
variant: "solid",
|
|
98
|
+
color: "neutral",
|
|
99
|
+
class: colorVariants.solid.neutral
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
variant: "solid",
|
|
103
|
+
color: "primary",
|
|
104
|
+
class: colorVariants.solid.primary
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
variant: "solid",
|
|
108
|
+
color: "secondary",
|
|
109
|
+
class: colorVariants.solid.secondary
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
variant: "solid",
|
|
113
|
+
color: "success",
|
|
114
|
+
class: colorVariants.solid.success
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
variant: "solid",
|
|
118
|
+
color: "warning",
|
|
119
|
+
class: colorVariants.solid.warning
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
variant: "solid",
|
|
123
|
+
color: "danger",
|
|
124
|
+
class: colorVariants.solid.danger
|
|
125
|
+
},
|
|
96
126
|
{
|
|
97
127
|
variant: "shadow",
|
|
98
128
|
color: "neutral",
|
|
@@ -216,32 +246,32 @@ var button = tv({
|
|
|
216
246
|
{
|
|
217
247
|
variant: "light",
|
|
218
248
|
color: "neutral",
|
|
219
|
-
class: [colorVariants.light.neutral, "hover
|
|
249
|
+
class: [colorVariants.light.neutral, "data-[hover=true]:bg-neutral-100"]
|
|
220
250
|
},
|
|
221
251
|
{
|
|
222
252
|
variant: "light",
|
|
223
253
|
color: "primary",
|
|
224
|
-
class: [colorVariants.light.primary, "hover
|
|
254
|
+
class: [colorVariants.light.primary, "data-[hover=true]:bg-primary-50"]
|
|
225
255
|
},
|
|
226
256
|
{
|
|
227
257
|
variant: "light",
|
|
228
258
|
color: "secondary",
|
|
229
|
-
class: [colorVariants.light.secondary, "hover
|
|
259
|
+
class: [colorVariants.light.secondary, "data-[hover=true]:bg-secondary-100"]
|
|
230
260
|
},
|
|
231
261
|
{
|
|
232
262
|
variant: "light",
|
|
233
263
|
color: "success",
|
|
234
|
-
class: [colorVariants.light.success, "hover
|
|
264
|
+
class: [colorVariants.light.success, "data-[hover=true]:bg-success-50"]
|
|
235
265
|
},
|
|
236
266
|
{
|
|
237
267
|
variant: "light",
|
|
238
268
|
color: "warning",
|
|
239
|
-
class: [colorVariants.light.warning, "hover
|
|
269
|
+
class: [colorVariants.light.warning, "data-[hover=true]:bg-warning-50"]
|
|
240
270
|
},
|
|
241
271
|
{
|
|
242
272
|
variant: "light",
|
|
243
273
|
color: "danger",
|
|
244
|
-
class: [colorVariants.light.danger, "hover
|
|
274
|
+
class: [colorVariants.light.danger, "data-[hover=true]:bg-danger-50"]
|
|
245
275
|
},
|
|
246
276
|
{
|
|
247
277
|
variant: "ghost",
|
|
@@ -65,6 +65,7 @@ declare const button: tailwind_variants.TVReturnType<{
|
|
|
65
65
|
};
|
|
66
66
|
isIconOnly: {
|
|
67
67
|
true: string;
|
|
68
|
+
false: string;
|
|
68
69
|
};
|
|
69
70
|
disableAnimation: {
|
|
70
71
|
true: string;
|
|
@@ -117,6 +118,7 @@ declare const button: tailwind_variants.TVReturnType<{
|
|
|
117
118
|
};
|
|
118
119
|
isIconOnly: {
|
|
119
120
|
true: string;
|
|
121
|
+
false: string;
|
|
120
122
|
};
|
|
121
123
|
disableAnimation: {
|
|
122
124
|
true: string;
|
|
@@ -117,7 +117,6 @@ var button = (0, import_tailwind_variants.tv)({
|
|
|
117
117
|
"data-[pressed=true]:scale-95",
|
|
118
118
|
"overflow-hidden",
|
|
119
119
|
"gap-1.5",
|
|
120
|
-
"[&>svg]:max-w-[2em]",
|
|
121
120
|
"data-[focus-visible=true]:outline-none",
|
|
122
121
|
"data-[focus-visible=true]:ring-2",
|
|
123
122
|
"data-[focus-visible=true]:ring-primary",
|
|
@@ -128,12 +127,12 @@ var button = (0, import_tailwind_variants.tv)({
|
|
|
128
127
|
variants: {
|
|
129
128
|
variant: {
|
|
130
129
|
solid: "",
|
|
131
|
-
bordered: "border-2
|
|
132
|
-
light: "
|
|
130
|
+
bordered: "border-2 bg-transparent",
|
|
131
|
+
light: "bg-transparent",
|
|
133
132
|
flat: "",
|
|
134
133
|
faded: "border-2",
|
|
135
134
|
shadow: "",
|
|
136
|
-
ghost: "border-2
|
|
135
|
+
ghost: "border-2 bg-transparent"
|
|
137
136
|
},
|
|
138
137
|
size: {
|
|
139
138
|
xs: "px-2 h-6 text-xs",
|
|
@@ -143,12 +142,12 @@ var button = (0, import_tailwind_variants.tv)({
|
|
|
143
142
|
xl: "px-8 h-14 text-lg"
|
|
144
143
|
},
|
|
145
144
|
color: {
|
|
146
|
-
neutral:
|
|
147
|
-
primary:
|
|
148
|
-
secondary:
|
|
149
|
-
success:
|
|
150
|
-
warning:
|
|
151
|
-
danger:
|
|
145
|
+
neutral: "",
|
|
146
|
+
primary: "",
|
|
147
|
+
secondary: "",
|
|
148
|
+
success: "",
|
|
149
|
+
warning: "",
|
|
150
|
+
danger: ""
|
|
152
151
|
},
|
|
153
152
|
radius: {
|
|
154
153
|
none: "rounded-none",
|
|
@@ -171,7 +170,8 @@ var button = (0, import_tailwind_variants.tv)({
|
|
|
171
170
|
true: "[&:not(:first-child):not(:last-child)]:rounded-none"
|
|
172
171
|
},
|
|
173
172
|
isIconOnly: {
|
|
174
|
-
true: "p-0 gap-0"
|
|
173
|
+
true: "p-0 gap-0",
|
|
174
|
+
false: "[&>svg]:max-w-[2em]"
|
|
175
175
|
},
|
|
176
176
|
disableAnimation: {
|
|
177
177
|
true: "!transition-none",
|
|
@@ -189,6 +189,36 @@ var button = (0, import_tailwind_variants.tv)({
|
|
|
189
189
|
disableAnimation: false
|
|
190
190
|
},
|
|
191
191
|
compoundVariants: [
|
|
192
|
+
{
|
|
193
|
+
variant: "solid",
|
|
194
|
+
color: "neutral",
|
|
195
|
+
class: colorVariants.solid.neutral
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
variant: "solid",
|
|
199
|
+
color: "primary",
|
|
200
|
+
class: colorVariants.solid.primary
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
variant: "solid",
|
|
204
|
+
color: "secondary",
|
|
205
|
+
class: colorVariants.solid.secondary
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
variant: "solid",
|
|
209
|
+
color: "success",
|
|
210
|
+
class: colorVariants.solid.success
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
variant: "solid",
|
|
214
|
+
color: "warning",
|
|
215
|
+
class: colorVariants.solid.warning
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
variant: "solid",
|
|
219
|
+
color: "danger",
|
|
220
|
+
class: colorVariants.solid.danger
|
|
221
|
+
},
|
|
192
222
|
{
|
|
193
223
|
variant: "shadow",
|
|
194
224
|
color: "neutral",
|
|
@@ -312,32 +342,32 @@ var button = (0, import_tailwind_variants.tv)({
|
|
|
312
342
|
{
|
|
313
343
|
variant: "light",
|
|
314
344
|
color: "neutral",
|
|
315
|
-
class: [colorVariants.light.neutral, "hover
|
|
345
|
+
class: [colorVariants.light.neutral, "data-[hover=true]:bg-neutral-100"]
|
|
316
346
|
},
|
|
317
347
|
{
|
|
318
348
|
variant: "light",
|
|
319
349
|
color: "primary",
|
|
320
|
-
class: [colorVariants.light.primary, "hover
|
|
350
|
+
class: [colorVariants.light.primary, "data-[hover=true]:bg-primary-50"]
|
|
321
351
|
},
|
|
322
352
|
{
|
|
323
353
|
variant: "light",
|
|
324
354
|
color: "secondary",
|
|
325
|
-
class: [colorVariants.light.secondary, "hover
|
|
355
|
+
class: [colorVariants.light.secondary, "data-[hover=true]:bg-secondary-100"]
|
|
326
356
|
},
|
|
327
357
|
{
|
|
328
358
|
variant: "light",
|
|
329
359
|
color: "success",
|
|
330
|
-
class: [colorVariants.light.success, "hover
|
|
360
|
+
class: [colorVariants.light.success, "data-[hover=true]:bg-success-50"]
|
|
331
361
|
},
|
|
332
362
|
{
|
|
333
363
|
variant: "light",
|
|
334
364
|
color: "warning",
|
|
335
|
-
class: [colorVariants.light.warning, "hover
|
|
365
|
+
class: [colorVariants.light.warning, "data-[hover=true]:bg-warning-50"]
|
|
336
366
|
},
|
|
337
367
|
{
|
|
338
368
|
variant: "light",
|
|
339
369
|
color: "danger",
|
|
340
|
-
class: [colorVariants.light.danger, "hover
|
|
370
|
+
class: [colorVariants.light.danger, "data-[hover=true]:bg-danger-50"]
|
|
341
371
|
},
|
|
342
372
|
{
|
|
343
373
|
variant: "ghost",
|
|
@@ -35,5 +35,6 @@ export { SpacerVariantProps, spacer } from './spacer.js';
|
|
|
35
35
|
export { DividerVariantProps, divider } from './divider.js';
|
|
36
36
|
export { KbdSlots, KbdVariantProps, kbd } from './kbd.js';
|
|
37
37
|
export { TabsReturnType, TabsSlots, TabsVariantProps, tabs } from './tabs.js';
|
|
38
|
+
export { SkeletonSlots, SkeletonVariantProps, skeleton } from './skeleton.js';
|
|
38
39
|
import 'tailwind-variants';
|
|
39
40
|
import 'tailwind-variants/dist/config';
|
package/dist/components/index.js
CHANGED
|
@@ -50,6 +50,7 @@ __export(components_exports, {
|
|
|
50
50
|
progress: () => progress,
|
|
51
51
|
radio: () => radio,
|
|
52
52
|
radioGroup: () => radioGroup,
|
|
53
|
+
skeleton: () => skeleton,
|
|
53
54
|
snippet: () => snippet,
|
|
54
55
|
spacer: () => spacer,
|
|
55
56
|
spinner: () => spinner,
|
|
@@ -704,7 +705,6 @@ var button = (0, import_tailwind_variants6.tv)({
|
|
|
704
705
|
"data-[pressed=true]:scale-95",
|
|
705
706
|
"overflow-hidden",
|
|
706
707
|
"gap-1.5",
|
|
707
|
-
"[&>svg]:max-w-[2em]",
|
|
708
708
|
"data-[focus-visible=true]:outline-none",
|
|
709
709
|
"data-[focus-visible=true]:ring-2",
|
|
710
710
|
"data-[focus-visible=true]:ring-primary",
|
|
@@ -715,12 +715,12 @@ var button = (0, import_tailwind_variants6.tv)({
|
|
|
715
715
|
variants: {
|
|
716
716
|
variant: {
|
|
717
717
|
solid: "",
|
|
718
|
-
bordered: "border-2
|
|
719
|
-
light: "
|
|
718
|
+
bordered: "border-2 bg-transparent",
|
|
719
|
+
light: "bg-transparent",
|
|
720
720
|
flat: "",
|
|
721
721
|
faded: "border-2",
|
|
722
722
|
shadow: "",
|
|
723
|
-
ghost: "border-2
|
|
723
|
+
ghost: "border-2 bg-transparent"
|
|
724
724
|
},
|
|
725
725
|
size: {
|
|
726
726
|
xs: "px-2 h-6 text-xs",
|
|
@@ -730,12 +730,12 @@ var button = (0, import_tailwind_variants6.tv)({
|
|
|
730
730
|
xl: "px-8 h-14 text-lg"
|
|
731
731
|
},
|
|
732
732
|
color: {
|
|
733
|
-
neutral:
|
|
734
|
-
primary:
|
|
735
|
-
secondary:
|
|
736
|
-
success:
|
|
737
|
-
warning:
|
|
738
|
-
danger:
|
|
733
|
+
neutral: "",
|
|
734
|
+
primary: "",
|
|
735
|
+
secondary: "",
|
|
736
|
+
success: "",
|
|
737
|
+
warning: "",
|
|
738
|
+
danger: ""
|
|
739
739
|
},
|
|
740
740
|
radius: {
|
|
741
741
|
none: "rounded-none",
|
|
@@ -758,7 +758,8 @@ var button = (0, import_tailwind_variants6.tv)({
|
|
|
758
758
|
true: "[&:not(:first-child):not(:last-child)]:rounded-none"
|
|
759
759
|
},
|
|
760
760
|
isIconOnly: {
|
|
761
|
-
true: "p-0 gap-0"
|
|
761
|
+
true: "p-0 gap-0",
|
|
762
|
+
false: "[&>svg]:max-w-[2em]"
|
|
762
763
|
},
|
|
763
764
|
disableAnimation: {
|
|
764
765
|
true: "!transition-none",
|
|
@@ -776,6 +777,36 @@ var button = (0, import_tailwind_variants6.tv)({
|
|
|
776
777
|
disableAnimation: false
|
|
777
778
|
},
|
|
778
779
|
compoundVariants: [
|
|
780
|
+
{
|
|
781
|
+
variant: "solid",
|
|
782
|
+
color: "neutral",
|
|
783
|
+
class: colorVariants.solid.neutral
|
|
784
|
+
},
|
|
785
|
+
{
|
|
786
|
+
variant: "solid",
|
|
787
|
+
color: "primary",
|
|
788
|
+
class: colorVariants.solid.primary
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
variant: "solid",
|
|
792
|
+
color: "secondary",
|
|
793
|
+
class: colorVariants.solid.secondary
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
variant: "solid",
|
|
797
|
+
color: "success",
|
|
798
|
+
class: colorVariants.solid.success
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
variant: "solid",
|
|
802
|
+
color: "warning",
|
|
803
|
+
class: colorVariants.solid.warning
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
variant: "solid",
|
|
807
|
+
color: "danger",
|
|
808
|
+
class: colorVariants.solid.danger
|
|
809
|
+
},
|
|
779
810
|
{
|
|
780
811
|
variant: "shadow",
|
|
781
812
|
color: "neutral",
|
|
@@ -899,32 +930,32 @@ var button = (0, import_tailwind_variants6.tv)({
|
|
|
899
930
|
{
|
|
900
931
|
variant: "light",
|
|
901
932
|
color: "neutral",
|
|
902
|
-
class: [colorVariants.light.neutral, "hover
|
|
933
|
+
class: [colorVariants.light.neutral, "data-[hover=true]:bg-neutral-100"]
|
|
903
934
|
},
|
|
904
935
|
{
|
|
905
936
|
variant: "light",
|
|
906
937
|
color: "primary",
|
|
907
|
-
class: [colorVariants.light.primary, "hover
|
|
938
|
+
class: [colorVariants.light.primary, "data-[hover=true]:bg-primary-50"]
|
|
908
939
|
},
|
|
909
940
|
{
|
|
910
941
|
variant: "light",
|
|
911
942
|
color: "secondary",
|
|
912
|
-
class: [colorVariants.light.secondary, "hover
|
|
943
|
+
class: [colorVariants.light.secondary, "data-[hover=true]:bg-secondary-100"]
|
|
913
944
|
},
|
|
914
945
|
{
|
|
915
946
|
variant: "light",
|
|
916
947
|
color: "success",
|
|
917
|
-
class: [colorVariants.light.success, "hover
|
|
948
|
+
class: [colorVariants.light.success, "data-[hover=true]:bg-success-50"]
|
|
918
949
|
},
|
|
919
950
|
{
|
|
920
951
|
variant: "light",
|
|
921
952
|
color: "warning",
|
|
922
|
-
class: [colorVariants.light.warning, "hover
|
|
953
|
+
class: [colorVariants.light.warning, "data-[hover=true]:bg-warning-50"]
|
|
923
954
|
},
|
|
924
955
|
{
|
|
925
956
|
variant: "light",
|
|
926
957
|
color: "danger",
|
|
927
|
-
class: [colorVariants.light.danger, "hover
|
|
958
|
+
class: [colorVariants.light.danger, "data-[hover=true]:bg-danger-50"]
|
|
928
959
|
},
|
|
929
960
|
{
|
|
930
961
|
variant: "ghost",
|
|
@@ -1522,16 +1553,14 @@ var popover = (0, import_tailwind_variants11.tv)({
|
|
|
1522
1553
|
var import_tailwind_variants12 = require("tailwind-variants");
|
|
1523
1554
|
var snippet = (0, import_tailwind_variants12.tv)({
|
|
1524
1555
|
slots: {
|
|
1525
|
-
base: "inline-flex items-center justify-between
|
|
1556
|
+
base: "inline-flex items-center justify-between rounded-md",
|
|
1526
1557
|
pre: "bg-transparent text-inherit font-mono whitespace-pre-wrap",
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
"data-[
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
"data-[
|
|
1533
|
-
"data-[focus-visible=true]:ring-offset-transparent",
|
|
1534
|
-
"data-[focus-visible=true]:dark:ring-offset-transparent"
|
|
1558
|
+
copyButton: ["group", "relative", "z-10", "text-inherit", "data-[hover=true]:bg-transparent"],
|
|
1559
|
+
copyIcon: [
|
|
1560
|
+
"absolute text-inherit opacity-100 scale-100 group-data-[copied=true]:opacity-0 group-data-[copied=true]:scale-50"
|
|
1561
|
+
],
|
|
1562
|
+
checkIcon: [
|
|
1563
|
+
"absolute text-inherit opacity-0 scale-50 group-data-[copied=true]:opacity-100 group-data-[copied=true]:scale-100"
|
|
1535
1564
|
]
|
|
1536
1565
|
},
|
|
1537
1566
|
variants: {
|
|
@@ -1605,6 +1634,13 @@ var snippet = (0, import_tailwind_variants12.tv)({
|
|
|
1605
1634
|
true: {
|
|
1606
1635
|
base: "w-full"
|
|
1607
1636
|
}
|
|
1637
|
+
},
|
|
1638
|
+
disableAnimation: {
|
|
1639
|
+
true: {},
|
|
1640
|
+
false: {
|
|
1641
|
+
copyIcon: "transition-transform-opacity",
|
|
1642
|
+
checkIcon: "transition-transform-opacity"
|
|
1643
|
+
}
|
|
1608
1644
|
}
|
|
1609
1645
|
},
|
|
1610
1646
|
defaultVariants: {
|
|
@@ -1612,7 +1648,8 @@ var snippet = (0, import_tailwind_variants12.tv)({
|
|
|
1612
1648
|
variant: "flat",
|
|
1613
1649
|
size: "md",
|
|
1614
1650
|
radius: "lg",
|
|
1615
|
-
fullWidth: false
|
|
1651
|
+
fullWidth: false,
|
|
1652
|
+
disableAnimation: false
|
|
1616
1653
|
},
|
|
1617
1654
|
compoundVariants: [
|
|
1618
1655
|
{
|
|
@@ -3807,7 +3844,7 @@ var input = (0, import_tailwind_variants25.tv)({
|
|
|
3807
3844
|
label: "block text-sm font-medium text-neutral-600",
|
|
3808
3845
|
inputWrapper: "relative w-full inline-flex flex-row items-center shadow-sm px-3 gap-3",
|
|
3809
3846
|
innerWrapper: "inline-flex h-full items-center w-full gap-1.5 box-border",
|
|
3810
|
-
input: "w-full h-full bg-transparent outline-none placeholder:text-neutral-500",
|
|
3847
|
+
input: "w-full h-full !bg-transparent outline-none placeholder:text-neutral-500",
|
|
3811
3848
|
clearButton: [
|
|
3812
3849
|
"z-10",
|
|
3813
3850
|
"hidden",
|
|
@@ -6161,6 +6198,56 @@ var tabs = (0, import_tailwind_variants37.tv)({
|
|
|
6161
6198
|
}
|
|
6162
6199
|
]
|
|
6163
6200
|
});
|
|
6201
|
+
|
|
6202
|
+
// src/components/skeleton.ts
|
|
6203
|
+
var import_tailwind_variants38 = require("tailwind-variants");
|
|
6204
|
+
var skeleton = (0, import_tailwind_variants38.tv)({
|
|
6205
|
+
slots: {
|
|
6206
|
+
base: [
|
|
6207
|
+
"group",
|
|
6208
|
+
"relative",
|
|
6209
|
+
"space-y-5",
|
|
6210
|
+
"overflow-hidden",
|
|
6211
|
+
"bg-white/5",
|
|
6212
|
+
"before:opacity-100",
|
|
6213
|
+
"before:absolute",
|
|
6214
|
+
"before:inset-0",
|
|
6215
|
+
"before:-translate-x-full",
|
|
6216
|
+
"before:animate-[shimmer_2s_infinite]",
|
|
6217
|
+
"before:border-t",
|
|
6218
|
+
"before:border-content4/70",
|
|
6219
|
+
"before:bg-gradient-to-r",
|
|
6220
|
+
"before:from-transparent",
|
|
6221
|
+
"before:via-content4",
|
|
6222
|
+
"dark:before:via-neutral-700/10",
|
|
6223
|
+
"before:to-transparent",
|
|
6224
|
+
"after:opacity-100",
|
|
6225
|
+
"after:absolute",
|
|
6226
|
+
"after:inset-0",
|
|
6227
|
+
"after:-z-10",
|
|
6228
|
+
"after:bg-content3",
|
|
6229
|
+
"dark:after:bg-content2",
|
|
6230
|
+
"data-[loaded=true]:before:opacity-0",
|
|
6231
|
+
"data-[loaded=true]:after:opacity-0"
|
|
6232
|
+
],
|
|
6233
|
+
content: ["opacity-0", "group-data-[loaded=true]:opacity-100"]
|
|
6234
|
+
},
|
|
6235
|
+
variants: {
|
|
6236
|
+
disableAnimation: {
|
|
6237
|
+
true: {
|
|
6238
|
+
base: "before:transition-none",
|
|
6239
|
+
content: "transition-none"
|
|
6240
|
+
},
|
|
6241
|
+
false: {
|
|
6242
|
+
base: "before:transition-opacity before:!duration-300",
|
|
6243
|
+
content: "transition-opacity motion-reduce:transition-none !duration-300"
|
|
6244
|
+
}
|
|
6245
|
+
}
|
|
6246
|
+
},
|
|
6247
|
+
defaultVariants: {
|
|
6248
|
+
disableAnimation: false
|
|
6249
|
+
}
|
|
6250
|
+
});
|
|
6164
6251
|
// Annotate the CommonJS export names for ESM import in node:
|
|
6165
6252
|
0 && (module.exports = {
|
|
6166
6253
|
accordion,
|
|
@@ -6193,6 +6280,7 @@ var tabs = (0, import_tailwind_variants37.tv)({
|
|
|
6193
6280
|
progress,
|
|
6194
6281
|
radio,
|
|
6195
6282
|
radioGroup,
|
|
6283
|
+
skeleton,
|
|
6196
6284
|
snippet,
|
|
6197
6285
|
spacer,
|
|
6198
6286
|
spinner,
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-MVXKHHAX.mjs";
|
|
2
|
+
import {
|
|
3
|
+
table
|
|
4
|
+
} from "../chunk-KWWWVBJL.mjs";
|
|
2
5
|
import {
|
|
3
6
|
tabs
|
|
4
7
|
} from "../chunk-UUJTS7XS.mjs";
|
|
@@ -20,24 +23,24 @@ import {
|
|
|
20
23
|
import {
|
|
21
24
|
radio
|
|
22
25
|
} from "../chunk-OZPCO5UB.mjs";
|
|
26
|
+
import {
|
|
27
|
+
skeleton
|
|
28
|
+
} from "../chunk-G23VRPTF.mjs";
|
|
23
29
|
import {
|
|
24
30
|
snippet
|
|
25
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-X577FDRG.mjs";
|
|
26
32
|
import {
|
|
27
33
|
spacer
|
|
28
34
|
} from "../chunk-3B4SYPW2.mjs";
|
|
29
35
|
import {
|
|
30
36
|
spinner
|
|
31
37
|
} from "../chunk-XUL76UJD.mjs";
|
|
32
|
-
import {
|
|
33
|
-
table
|
|
34
|
-
} from "../chunk-KWWWVBJL.mjs";
|
|
35
38
|
import {
|
|
36
39
|
image
|
|
37
40
|
} from "../chunk-6GGRJ6I7.mjs";
|
|
38
41
|
import {
|
|
39
42
|
input
|
|
40
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-7EDXWCUZ.mjs";
|
|
41
44
|
import {
|
|
42
45
|
kbd
|
|
43
46
|
} from "../chunk-KUQBSI5S.mjs";
|
|
@@ -88,7 +91,7 @@ import {
|
|
|
88
91
|
} from "../chunk-VKFQ7EZN.mjs";
|
|
89
92
|
import {
|
|
90
93
|
button
|
|
91
|
-
} from "../chunk-
|
|
94
|
+
} from "../chunk-YMKJFSPB.mjs";
|
|
92
95
|
import {
|
|
93
96
|
card
|
|
94
97
|
} from "../chunk-6QKRZ3JE.mjs";
|
|
@@ -145,6 +148,7 @@ export {
|
|
|
145
148
|
progress,
|
|
146
149
|
radio,
|
|
147
150
|
radioGroup,
|
|
151
|
+
skeleton,
|
|
148
152
|
snippet,
|
|
149
153
|
spacer,
|
|
150
154
|
spinner,
|
package/dist/components/input.js
CHANGED
|
@@ -30,7 +30,7 @@ var input = (0, import_tailwind_variants.tv)({
|
|
|
30
30
|
label: "block text-sm font-medium text-neutral-600",
|
|
31
31
|
inputWrapper: "relative w-full inline-flex flex-row items-center shadow-sm px-3 gap-3",
|
|
32
32
|
innerWrapper: "inline-flex h-full items-center w-full gap-1.5 box-border",
|
|
33
|
-
input: "w-full h-full bg-transparent outline-none placeholder:text-neutral-500",
|
|
33
|
+
input: "w-full h-full !bg-transparent outline-none placeholder:text-neutral-500",
|
|
34
34
|
clearButton: [
|
|
35
35
|
"z-10",
|
|
36
36
|
"hidden",
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
* Skeleton wrapper **Tailwind Variants** component
|
|
7
|
+
*
|
|
8
|
+
* const styles = skeleton({...})
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* <div className={styles()}>
|
|
12
|
+
* // skeleton content
|
|
13
|
+
* </div>
|
|
14
|
+
*/
|
|
15
|
+
declare const skeleton: tailwind_variants.TVReturnType<{
|
|
16
|
+
disableAnimation: {
|
|
17
|
+
true: {
|
|
18
|
+
base: string;
|
|
19
|
+
content: string;
|
|
20
|
+
};
|
|
21
|
+
false: {
|
|
22
|
+
base: string;
|
|
23
|
+
content: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
}, unknown, {
|
|
27
|
+
base: string[];
|
|
28
|
+
content: string[];
|
|
29
|
+
}, undefined, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
30
|
+
disableAnimation: {
|
|
31
|
+
true: {
|
|
32
|
+
base: string;
|
|
33
|
+
content: string;
|
|
34
|
+
};
|
|
35
|
+
false: {
|
|
36
|
+
base: string;
|
|
37
|
+
content: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
}, unknown>>;
|
|
41
|
+
type SkeletonVariantProps = VariantProps<typeof skeleton>;
|
|
42
|
+
type SkeletonSlots = keyof ReturnType<typeof skeleton>;
|
|
43
|
+
|
|
44
|
+
export { SkeletonSlots, SkeletonVariantProps, skeleton };
|
|
@@ -0,0 +1,77 @@
|
|
|
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/skeleton.ts
|
|
21
|
+
var skeleton_exports = {};
|
|
22
|
+
__export(skeleton_exports, {
|
|
23
|
+
skeleton: () => skeleton
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(skeleton_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
var skeleton = (0, import_tailwind_variants.tv)({
|
|
28
|
+
slots: {
|
|
29
|
+
base: [
|
|
30
|
+
"group",
|
|
31
|
+
"relative",
|
|
32
|
+
"space-y-5",
|
|
33
|
+
"overflow-hidden",
|
|
34
|
+
"bg-white/5",
|
|
35
|
+
"before:opacity-100",
|
|
36
|
+
"before:absolute",
|
|
37
|
+
"before:inset-0",
|
|
38
|
+
"before:-translate-x-full",
|
|
39
|
+
"before:animate-[shimmer_2s_infinite]",
|
|
40
|
+
"before:border-t",
|
|
41
|
+
"before:border-content4/70",
|
|
42
|
+
"before:bg-gradient-to-r",
|
|
43
|
+
"before:from-transparent",
|
|
44
|
+
"before:via-content4",
|
|
45
|
+
"dark:before:via-neutral-700/10",
|
|
46
|
+
"before:to-transparent",
|
|
47
|
+
"after:opacity-100",
|
|
48
|
+
"after:absolute",
|
|
49
|
+
"after:inset-0",
|
|
50
|
+
"after:-z-10",
|
|
51
|
+
"after:bg-content3",
|
|
52
|
+
"dark:after:bg-content2",
|
|
53
|
+
"data-[loaded=true]:before:opacity-0",
|
|
54
|
+
"data-[loaded=true]:after:opacity-0"
|
|
55
|
+
],
|
|
56
|
+
content: ["opacity-0", "group-data-[loaded=true]:opacity-100"]
|
|
57
|
+
},
|
|
58
|
+
variants: {
|
|
59
|
+
disableAnimation: {
|
|
60
|
+
true: {
|
|
61
|
+
base: "before:transition-none",
|
|
62
|
+
content: "transition-none"
|
|
63
|
+
},
|
|
64
|
+
false: {
|
|
65
|
+
base: "before:transition-opacity before:!duration-300",
|
|
66
|
+
content: "transition-opacity motion-reduce:transition-none !duration-300"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
defaultVariants: {
|
|
71
|
+
disableAnimation: false
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
75
|
+
0 && (module.exports = {
|
|
76
|
+
skeleton
|
|
77
|
+
});
|
|
@@ -91,10 +91,19 @@ declare const snippet: tailwind_variants.TVReturnType<{
|
|
|
91
91
|
base: string;
|
|
92
92
|
};
|
|
93
93
|
};
|
|
94
|
+
disableAnimation: {
|
|
95
|
+
true: {};
|
|
96
|
+
false: {
|
|
97
|
+
copyIcon: string;
|
|
98
|
+
checkIcon: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
94
101
|
}, unknown, {
|
|
95
102
|
base: string;
|
|
96
103
|
pre: string;
|
|
97
|
-
|
|
104
|
+
copyButton: string[];
|
|
105
|
+
copyIcon: string[];
|
|
106
|
+
checkIcon: string[];
|
|
98
107
|
}, undefined, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
99
108
|
variant: {
|
|
100
109
|
flat: string;
|
|
@@ -167,6 +176,13 @@ declare const snippet: tailwind_variants.TVReturnType<{
|
|
|
167
176
|
base: string;
|
|
168
177
|
};
|
|
169
178
|
};
|
|
179
|
+
disableAnimation: {
|
|
180
|
+
true: {};
|
|
181
|
+
false: {
|
|
182
|
+
copyIcon: string;
|
|
183
|
+
checkIcon: string;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
170
186
|
}, unknown>>;
|
|
171
187
|
type SnippetVariantProps = VariantProps<typeof snippet>;
|
|
172
188
|
type SnippetSlots = keyof ReturnType<typeof snippet>;
|
|
@@ -102,16 +102,14 @@ var colorVariants = {
|
|
|
102
102
|
// src/components/snippet.ts
|
|
103
103
|
var snippet = (0, import_tailwind_variants.tv)({
|
|
104
104
|
slots: {
|
|
105
|
-
base: "inline-flex items-center justify-between
|
|
105
|
+
base: "inline-flex items-center justify-between rounded-md",
|
|
106
106
|
pre: "bg-transparent text-inherit font-mono whitespace-pre-wrap",
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
"data-[
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
"data-[
|
|
113
|
-
"data-[focus-visible=true]:ring-offset-transparent",
|
|
114
|
-
"data-[focus-visible=true]:dark:ring-offset-transparent"
|
|
107
|
+
copyButton: ["group", "relative", "z-10", "text-inherit", "data-[hover=true]:bg-transparent"],
|
|
108
|
+
copyIcon: [
|
|
109
|
+
"absolute text-inherit opacity-100 scale-100 group-data-[copied=true]:opacity-0 group-data-[copied=true]:scale-50"
|
|
110
|
+
],
|
|
111
|
+
checkIcon: [
|
|
112
|
+
"absolute text-inherit opacity-0 scale-50 group-data-[copied=true]:opacity-100 group-data-[copied=true]:scale-100"
|
|
115
113
|
]
|
|
116
114
|
},
|
|
117
115
|
variants: {
|
|
@@ -185,6 +183,13 @@ var snippet = (0, import_tailwind_variants.tv)({
|
|
|
185
183
|
true: {
|
|
186
184
|
base: "w-full"
|
|
187
185
|
}
|
|
186
|
+
},
|
|
187
|
+
disableAnimation: {
|
|
188
|
+
true: {},
|
|
189
|
+
false: {
|
|
190
|
+
copyIcon: "transition-transform-opacity",
|
|
191
|
+
checkIcon: "transition-transform-opacity"
|
|
192
|
+
}
|
|
188
193
|
}
|
|
189
194
|
},
|
|
190
195
|
defaultVariants: {
|
|
@@ -192,7 +197,8 @@ var snippet = (0, import_tailwind_variants.tv)({
|
|
|
192
197
|
variant: "flat",
|
|
193
198
|
size: "md",
|
|
194
199
|
radius: "lg",
|
|
195
|
-
fullWidth: false
|
|
200
|
+
fullWidth: false,
|
|
201
|
+
disableAnimation: false
|
|
196
202
|
},
|
|
197
203
|
compoundVariants: [
|
|
198
204
|
{
|
package/dist/index.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ export { SpacerVariantProps, spacer } from './components/spacer.js';
|
|
|
37
37
|
export { DividerVariantProps, divider } from './components/divider.js';
|
|
38
38
|
export { KbdSlots, KbdVariantProps, kbd } from './components/kbd.js';
|
|
39
39
|
export { TabsReturnType, TabsSlots, TabsVariantProps, tabs } from './components/tabs.js';
|
|
40
|
+
export { SkeletonSlots, SkeletonVariantProps, skeleton } from './components/skeleton.js';
|
|
40
41
|
export { absoluteFullClasses, baseStyles, focusVisibleClasses, ringClasses, translateCenterClasses } from './utils/classes.js';
|
|
41
42
|
export { SlotsToClasses } from './utils/types.js';
|
|
42
43
|
export { colorVariants } from './utils/variants.js';
|
package/dist/index.js
CHANGED
|
@@ -66,6 +66,7 @@ __export(src_exports, {
|
|
|
66
66
|
radioGroup: () => radioGroup,
|
|
67
67
|
ringClasses: () => ringClasses,
|
|
68
68
|
semanticColors: () => semanticColors,
|
|
69
|
+
skeleton: () => skeleton,
|
|
69
70
|
snippet: () => snippet,
|
|
70
71
|
spacer: () => spacer,
|
|
71
72
|
spinner: () => spinner,
|
|
@@ -73,7 +74,7 @@ __export(src_exports, {
|
|
|
73
74
|
tabs: () => tabs,
|
|
74
75
|
toggle: () => toggle,
|
|
75
76
|
translateCenterClasses: () => translateCenterClasses,
|
|
76
|
-
tv: () =>
|
|
77
|
+
tv: () => import_tailwind_variants40.tv,
|
|
77
78
|
user: () => user
|
|
78
79
|
});
|
|
79
80
|
module.exports = __toCommonJS(src_exports);
|
|
@@ -736,7 +737,6 @@ var button = (0, import_tailwind_variants6.tv)({
|
|
|
736
737
|
"data-[pressed=true]:scale-95",
|
|
737
738
|
"overflow-hidden",
|
|
738
739
|
"gap-1.5",
|
|
739
|
-
"[&>svg]:max-w-[2em]",
|
|
740
740
|
"data-[focus-visible=true]:outline-none",
|
|
741
741
|
"data-[focus-visible=true]:ring-2",
|
|
742
742
|
"data-[focus-visible=true]:ring-primary",
|
|
@@ -747,12 +747,12 @@ var button = (0, import_tailwind_variants6.tv)({
|
|
|
747
747
|
variants: {
|
|
748
748
|
variant: {
|
|
749
749
|
solid: "",
|
|
750
|
-
bordered: "border-2
|
|
751
|
-
light: "
|
|
750
|
+
bordered: "border-2 bg-transparent",
|
|
751
|
+
light: "bg-transparent",
|
|
752
752
|
flat: "",
|
|
753
753
|
faded: "border-2",
|
|
754
754
|
shadow: "",
|
|
755
|
-
ghost: "border-2
|
|
755
|
+
ghost: "border-2 bg-transparent"
|
|
756
756
|
},
|
|
757
757
|
size: {
|
|
758
758
|
xs: "px-2 h-6 text-xs",
|
|
@@ -762,12 +762,12 @@ var button = (0, import_tailwind_variants6.tv)({
|
|
|
762
762
|
xl: "px-8 h-14 text-lg"
|
|
763
763
|
},
|
|
764
764
|
color: {
|
|
765
|
-
neutral:
|
|
766
|
-
primary:
|
|
767
|
-
secondary:
|
|
768
|
-
success:
|
|
769
|
-
warning:
|
|
770
|
-
danger:
|
|
765
|
+
neutral: "",
|
|
766
|
+
primary: "",
|
|
767
|
+
secondary: "",
|
|
768
|
+
success: "",
|
|
769
|
+
warning: "",
|
|
770
|
+
danger: ""
|
|
771
771
|
},
|
|
772
772
|
radius: {
|
|
773
773
|
none: "rounded-none",
|
|
@@ -790,7 +790,8 @@ var button = (0, import_tailwind_variants6.tv)({
|
|
|
790
790
|
true: "[&:not(:first-child):not(:last-child)]:rounded-none"
|
|
791
791
|
},
|
|
792
792
|
isIconOnly: {
|
|
793
|
-
true: "p-0 gap-0"
|
|
793
|
+
true: "p-0 gap-0",
|
|
794
|
+
false: "[&>svg]:max-w-[2em]"
|
|
794
795
|
},
|
|
795
796
|
disableAnimation: {
|
|
796
797
|
true: "!transition-none",
|
|
@@ -808,6 +809,36 @@ var button = (0, import_tailwind_variants6.tv)({
|
|
|
808
809
|
disableAnimation: false
|
|
809
810
|
},
|
|
810
811
|
compoundVariants: [
|
|
812
|
+
{
|
|
813
|
+
variant: "solid",
|
|
814
|
+
color: "neutral",
|
|
815
|
+
class: colorVariants.solid.neutral
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
variant: "solid",
|
|
819
|
+
color: "primary",
|
|
820
|
+
class: colorVariants.solid.primary
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
variant: "solid",
|
|
824
|
+
color: "secondary",
|
|
825
|
+
class: colorVariants.solid.secondary
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
variant: "solid",
|
|
829
|
+
color: "success",
|
|
830
|
+
class: colorVariants.solid.success
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
variant: "solid",
|
|
834
|
+
color: "warning",
|
|
835
|
+
class: colorVariants.solid.warning
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
variant: "solid",
|
|
839
|
+
color: "danger",
|
|
840
|
+
class: colorVariants.solid.danger
|
|
841
|
+
},
|
|
811
842
|
{
|
|
812
843
|
variant: "shadow",
|
|
813
844
|
color: "neutral",
|
|
@@ -931,32 +962,32 @@ var button = (0, import_tailwind_variants6.tv)({
|
|
|
931
962
|
{
|
|
932
963
|
variant: "light",
|
|
933
964
|
color: "neutral",
|
|
934
|
-
class: [colorVariants.light.neutral, "hover
|
|
965
|
+
class: [colorVariants.light.neutral, "data-[hover=true]:bg-neutral-100"]
|
|
935
966
|
},
|
|
936
967
|
{
|
|
937
968
|
variant: "light",
|
|
938
969
|
color: "primary",
|
|
939
|
-
class: [colorVariants.light.primary, "hover
|
|
970
|
+
class: [colorVariants.light.primary, "data-[hover=true]:bg-primary-50"]
|
|
940
971
|
},
|
|
941
972
|
{
|
|
942
973
|
variant: "light",
|
|
943
974
|
color: "secondary",
|
|
944
|
-
class: [colorVariants.light.secondary, "hover
|
|
975
|
+
class: [colorVariants.light.secondary, "data-[hover=true]:bg-secondary-100"]
|
|
945
976
|
},
|
|
946
977
|
{
|
|
947
978
|
variant: "light",
|
|
948
979
|
color: "success",
|
|
949
|
-
class: [colorVariants.light.success, "hover
|
|
980
|
+
class: [colorVariants.light.success, "data-[hover=true]:bg-success-50"]
|
|
950
981
|
},
|
|
951
982
|
{
|
|
952
983
|
variant: "light",
|
|
953
984
|
color: "warning",
|
|
954
|
-
class: [colorVariants.light.warning, "hover
|
|
985
|
+
class: [colorVariants.light.warning, "data-[hover=true]:bg-warning-50"]
|
|
955
986
|
},
|
|
956
987
|
{
|
|
957
988
|
variant: "light",
|
|
958
989
|
color: "danger",
|
|
959
|
-
class: [colorVariants.light.danger, "hover
|
|
990
|
+
class: [colorVariants.light.danger, "data-[hover=true]:bg-danger-50"]
|
|
960
991
|
},
|
|
961
992
|
{
|
|
962
993
|
variant: "ghost",
|
|
@@ -1554,16 +1585,14 @@ var popover = (0, import_tailwind_variants11.tv)({
|
|
|
1554
1585
|
var import_tailwind_variants12 = require("tailwind-variants");
|
|
1555
1586
|
var snippet = (0, import_tailwind_variants12.tv)({
|
|
1556
1587
|
slots: {
|
|
1557
|
-
base: "inline-flex items-center justify-between
|
|
1588
|
+
base: "inline-flex items-center justify-between rounded-md",
|
|
1558
1589
|
pre: "bg-transparent text-inherit font-mono whitespace-pre-wrap",
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
"data-[
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
"data-[
|
|
1565
|
-
"data-[focus-visible=true]:ring-offset-transparent",
|
|
1566
|
-
"data-[focus-visible=true]:dark:ring-offset-transparent"
|
|
1590
|
+
copyButton: ["group", "relative", "z-10", "text-inherit", "data-[hover=true]:bg-transparent"],
|
|
1591
|
+
copyIcon: [
|
|
1592
|
+
"absolute text-inherit opacity-100 scale-100 group-data-[copied=true]:opacity-0 group-data-[copied=true]:scale-50"
|
|
1593
|
+
],
|
|
1594
|
+
checkIcon: [
|
|
1595
|
+
"absolute text-inherit opacity-0 scale-50 group-data-[copied=true]:opacity-100 group-data-[copied=true]:scale-100"
|
|
1567
1596
|
]
|
|
1568
1597
|
},
|
|
1569
1598
|
variants: {
|
|
@@ -1637,6 +1666,13 @@ var snippet = (0, import_tailwind_variants12.tv)({
|
|
|
1637
1666
|
true: {
|
|
1638
1667
|
base: "w-full"
|
|
1639
1668
|
}
|
|
1669
|
+
},
|
|
1670
|
+
disableAnimation: {
|
|
1671
|
+
true: {},
|
|
1672
|
+
false: {
|
|
1673
|
+
copyIcon: "transition-transform-opacity",
|
|
1674
|
+
checkIcon: "transition-transform-opacity"
|
|
1675
|
+
}
|
|
1640
1676
|
}
|
|
1641
1677
|
},
|
|
1642
1678
|
defaultVariants: {
|
|
@@ -1644,7 +1680,8 @@ var snippet = (0, import_tailwind_variants12.tv)({
|
|
|
1644
1680
|
variant: "flat",
|
|
1645
1681
|
size: "md",
|
|
1646
1682
|
radius: "lg",
|
|
1647
|
-
fullWidth: false
|
|
1683
|
+
fullWidth: false,
|
|
1684
|
+
disableAnimation: false
|
|
1648
1685
|
},
|
|
1649
1686
|
compoundVariants: [
|
|
1650
1687
|
{
|
|
@@ -3839,7 +3876,7 @@ var input = (0, import_tailwind_variants25.tv)({
|
|
|
3839
3876
|
label: "block text-sm font-medium text-neutral-600",
|
|
3840
3877
|
inputWrapper: "relative w-full inline-flex flex-row items-center shadow-sm px-3 gap-3",
|
|
3841
3878
|
innerWrapper: "inline-flex h-full items-center w-full gap-1.5 box-border",
|
|
3842
|
-
input: "w-full h-full bg-transparent outline-none placeholder:text-neutral-500",
|
|
3879
|
+
input: "w-full h-full !bg-transparent outline-none placeholder:text-neutral-500",
|
|
3843
3880
|
clearButton: [
|
|
3844
3881
|
"z-10",
|
|
3845
3882
|
"hidden",
|
|
@@ -6194,6 +6231,56 @@ var tabs = (0, import_tailwind_variants37.tv)({
|
|
|
6194
6231
|
]
|
|
6195
6232
|
});
|
|
6196
6233
|
|
|
6234
|
+
// src/components/skeleton.ts
|
|
6235
|
+
var import_tailwind_variants38 = require("tailwind-variants");
|
|
6236
|
+
var skeleton = (0, import_tailwind_variants38.tv)({
|
|
6237
|
+
slots: {
|
|
6238
|
+
base: [
|
|
6239
|
+
"group",
|
|
6240
|
+
"relative",
|
|
6241
|
+
"space-y-5",
|
|
6242
|
+
"overflow-hidden",
|
|
6243
|
+
"bg-white/5",
|
|
6244
|
+
"before:opacity-100",
|
|
6245
|
+
"before:absolute",
|
|
6246
|
+
"before:inset-0",
|
|
6247
|
+
"before:-translate-x-full",
|
|
6248
|
+
"before:animate-[shimmer_2s_infinite]",
|
|
6249
|
+
"before:border-t",
|
|
6250
|
+
"before:border-content4/70",
|
|
6251
|
+
"before:bg-gradient-to-r",
|
|
6252
|
+
"before:from-transparent",
|
|
6253
|
+
"before:via-content4",
|
|
6254
|
+
"dark:before:via-neutral-700/10",
|
|
6255
|
+
"before:to-transparent",
|
|
6256
|
+
"after:opacity-100",
|
|
6257
|
+
"after:absolute",
|
|
6258
|
+
"after:inset-0",
|
|
6259
|
+
"after:-z-10",
|
|
6260
|
+
"after:bg-content3",
|
|
6261
|
+
"dark:after:bg-content2",
|
|
6262
|
+
"data-[loaded=true]:before:opacity-0",
|
|
6263
|
+
"data-[loaded=true]:after:opacity-0"
|
|
6264
|
+
],
|
|
6265
|
+
content: ["opacity-0", "group-data-[loaded=true]:opacity-100"]
|
|
6266
|
+
},
|
|
6267
|
+
variants: {
|
|
6268
|
+
disableAnimation: {
|
|
6269
|
+
true: {
|
|
6270
|
+
base: "before:transition-none",
|
|
6271
|
+
content: "transition-none"
|
|
6272
|
+
},
|
|
6273
|
+
false: {
|
|
6274
|
+
base: "before:transition-opacity before:!duration-300",
|
|
6275
|
+
content: "transition-opacity motion-reduce:transition-none !duration-300"
|
|
6276
|
+
}
|
|
6277
|
+
}
|
|
6278
|
+
},
|
|
6279
|
+
defaultVariants: {
|
|
6280
|
+
disableAnimation: false
|
|
6281
|
+
}
|
|
6282
|
+
});
|
|
6283
|
+
|
|
6197
6284
|
// src/colors/blue.ts
|
|
6198
6285
|
var blue = {
|
|
6199
6286
|
50: "#e6f1fe",
|
|
@@ -6757,9 +6844,9 @@ var nextui = (config = {}) => {
|
|
|
6757
6844
|
};
|
|
6758
6845
|
|
|
6759
6846
|
// src/index.ts
|
|
6760
|
-
var import_tailwind_variants38 = require("tailwind-variants");
|
|
6761
6847
|
var import_tailwind_variants39 = require("tailwind-variants");
|
|
6762
|
-
var
|
|
6848
|
+
var import_tailwind_variants40 = require("tailwind-variants");
|
|
6849
|
+
var cn = (...classes) => (0, import_tailwind_variants39.cn)(classes)();
|
|
6763
6850
|
// Annotate the CommonJS export names for ESM import in node:
|
|
6764
6851
|
0 && (module.exports = {
|
|
6765
6852
|
absoluteFullClasses,
|
|
@@ -6802,6 +6889,7 @@ var cn = (...classes) => (0, import_tailwind_variants38.cn)(classes)();
|
|
|
6802
6889
|
radioGroup,
|
|
6803
6890
|
ringClasses,
|
|
6804
6891
|
semanticColors,
|
|
6892
|
+
skeleton,
|
|
6805
6893
|
snippet,
|
|
6806
6894
|
spacer,
|
|
6807
6895
|
spinner,
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-MVXKHHAX.mjs";
|
|
2
|
+
import {
|
|
3
|
+
table
|
|
4
|
+
} from "./chunk-KWWWVBJL.mjs";
|
|
2
5
|
import {
|
|
3
6
|
tabs
|
|
4
7
|
} from "./chunk-UUJTS7XS.mjs";
|
|
@@ -20,24 +23,24 @@ import {
|
|
|
20
23
|
import {
|
|
21
24
|
radio
|
|
22
25
|
} from "./chunk-OZPCO5UB.mjs";
|
|
26
|
+
import {
|
|
27
|
+
skeleton
|
|
28
|
+
} from "./chunk-G23VRPTF.mjs";
|
|
23
29
|
import {
|
|
24
30
|
snippet
|
|
25
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-X577FDRG.mjs";
|
|
26
32
|
import {
|
|
27
33
|
spacer
|
|
28
34
|
} from "./chunk-3B4SYPW2.mjs";
|
|
29
35
|
import {
|
|
30
36
|
spinner
|
|
31
37
|
} from "./chunk-XUL76UJD.mjs";
|
|
32
|
-
import {
|
|
33
|
-
table
|
|
34
|
-
} from "./chunk-KWWWVBJL.mjs";
|
|
35
38
|
import {
|
|
36
39
|
image
|
|
37
40
|
} from "./chunk-6GGRJ6I7.mjs";
|
|
38
41
|
import {
|
|
39
42
|
input
|
|
40
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-7EDXWCUZ.mjs";
|
|
41
44
|
import {
|
|
42
45
|
kbd
|
|
43
46
|
} from "./chunk-KUQBSI5S.mjs";
|
|
@@ -88,7 +91,7 @@ import {
|
|
|
88
91
|
} from "./chunk-VKFQ7EZN.mjs";
|
|
89
92
|
import {
|
|
90
93
|
button
|
|
91
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-YMKJFSPB.mjs";
|
|
92
95
|
import {
|
|
93
96
|
card
|
|
94
97
|
} from "./chunk-6QKRZ3JE.mjs";
|
|
@@ -192,6 +195,7 @@ export {
|
|
|
192
195
|
radioGroup,
|
|
193
196
|
ringClasses,
|
|
194
197
|
semanticColors,
|
|
198
|
+
skeleton,
|
|
195
199
|
snippet,
|
|
196
200
|
spacer,
|
|
197
201
|
spinner,
|
package/package.json
CHANGED
|
File without changes
|