@nextui-org/theme 0.0.0-dev-v2-20230511041421 → 0.0.0-dev-v2-20230515031033
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-S7ZC2I7Y.mjs → chunk-74YO36XH.mjs} +1 -1
- package/dist/{chunk-YMKJFSPB.mjs → chunk-K4KU3E4F.mjs} +6 -2
- package/dist/{chunk-XUL76UJD.mjs → chunk-MFJMHP3B.mjs} +4 -0
- package/dist/components/avatar.js +1 -1
- package/dist/components/avatar.mjs +1 -1
- package/dist/components/button.d.ts +6 -0
- package/dist/components/button.js +6 -2
- package/dist/components/button.mjs +1 -1
- package/dist/components/index.js +11 -3
- package/dist/components/index.mjs +15 -15
- package/dist/components/spinner.d.ts +8 -0
- package/dist/components/spinner.js +4 -0
- package/dist/components/spinner.mjs +1 -1
- package/dist/index.js +11 -3
- package/dist/index.mjs +18 -18
- package/dist/plugin.mjs +3 -3
- package/package.json +1 -1
- package/dist/chunk-WUXZWYH4.mjs +0 -161
- package/dist/{chunk-DLSPUMD4.mjs → chunk-KPADJJIM.mjs} +4 -4
|
@@ -37,7 +37,7 @@ var avatar = tv({
|
|
|
37
37
|
"data-[loaded=true]:opacity-100"
|
|
38
38
|
],
|
|
39
39
|
fallback: [...translateCenterClasses, "flex", "items-center", "justify-center"],
|
|
40
|
-
name: [...translateCenterClasses, "font-
|
|
40
|
+
name: [...translateCenterClasses, "font-normal", "text-center", "text-inherit"],
|
|
41
41
|
icon: [
|
|
42
42
|
...translateCenterClasses,
|
|
43
43
|
"flex",
|
|
@@ -16,11 +16,11 @@ var button = tv({
|
|
|
16
16
|
"appearance-none",
|
|
17
17
|
"outline-none",
|
|
18
18
|
"select-none",
|
|
19
|
-
"font-
|
|
19
|
+
"font-normal",
|
|
20
20
|
"subpixel-antialiased",
|
|
21
21
|
"data-[pressed=true]:scale-95",
|
|
22
22
|
"overflow-hidden",
|
|
23
|
-
"gap-
|
|
23
|
+
"gap-2",
|
|
24
24
|
"data-[focus-visible=true]:outline-none",
|
|
25
25
|
"data-[focus-visible=true]:ring-2",
|
|
26
26
|
"data-[focus-visible=true]:ring-primary",
|
|
@@ -70,6 +70,9 @@ var button = tv({
|
|
|
70
70
|
isDisabled: {
|
|
71
71
|
true: "opacity-50 pointer-events-none"
|
|
72
72
|
},
|
|
73
|
+
isLoading: {
|
|
74
|
+
true: "opacity-50 pointer-events-none"
|
|
75
|
+
},
|
|
73
76
|
isInGroup: {
|
|
74
77
|
true: "[&:not(:first-child):not(:last-child)]:rounded-none"
|
|
75
78
|
},
|
|
@@ -89,6 +92,7 @@ var button = tv({
|
|
|
89
92
|
radius: "xl",
|
|
90
93
|
fullWidth: false,
|
|
91
94
|
isDisabled: false,
|
|
95
|
+
isLoading: false,
|
|
92
96
|
isInGroup: false,
|
|
93
97
|
disableAnimation: false
|
|
94
98
|
},
|
|
@@ -139,7 +139,7 @@ var avatar = (0, import_tailwind_variants.tv)({
|
|
|
139
139
|
"data-[loaded=true]:opacity-100"
|
|
140
140
|
],
|
|
141
141
|
fallback: [...translateCenterClasses, "flex", "items-center", "justify-center"],
|
|
142
|
-
name: [...translateCenterClasses, "font-
|
|
142
|
+
name: [...translateCenterClasses, "font-normal", "text-center", "text-inherit"],
|
|
143
143
|
icon: [
|
|
144
144
|
...translateCenterClasses,
|
|
145
145
|
"flex",
|
|
@@ -60,6 +60,9 @@ declare const button: tailwind_variants.TVReturnType<{
|
|
|
60
60
|
isDisabled: {
|
|
61
61
|
true: string;
|
|
62
62
|
};
|
|
63
|
+
isLoading: {
|
|
64
|
+
true: string;
|
|
65
|
+
};
|
|
63
66
|
isInGroup: {
|
|
64
67
|
true: string;
|
|
65
68
|
};
|
|
@@ -113,6 +116,9 @@ declare const button: tailwind_variants.TVReturnType<{
|
|
|
113
116
|
isDisabled: {
|
|
114
117
|
true: string;
|
|
115
118
|
};
|
|
119
|
+
isLoading: {
|
|
120
|
+
true: string;
|
|
121
|
+
};
|
|
116
122
|
isInGroup: {
|
|
117
123
|
true: string;
|
|
118
124
|
};
|
|
@@ -112,11 +112,11 @@ var button = (0, import_tailwind_variants.tv)({
|
|
|
112
112
|
"appearance-none",
|
|
113
113
|
"outline-none",
|
|
114
114
|
"select-none",
|
|
115
|
-
"font-
|
|
115
|
+
"font-normal",
|
|
116
116
|
"subpixel-antialiased",
|
|
117
117
|
"data-[pressed=true]:scale-95",
|
|
118
118
|
"overflow-hidden",
|
|
119
|
-
"gap-
|
|
119
|
+
"gap-2",
|
|
120
120
|
"data-[focus-visible=true]:outline-none",
|
|
121
121
|
"data-[focus-visible=true]:ring-2",
|
|
122
122
|
"data-[focus-visible=true]:ring-primary",
|
|
@@ -166,6 +166,9 @@ var button = (0, import_tailwind_variants.tv)({
|
|
|
166
166
|
isDisabled: {
|
|
167
167
|
true: "opacity-50 pointer-events-none"
|
|
168
168
|
},
|
|
169
|
+
isLoading: {
|
|
170
|
+
true: "opacity-50 pointer-events-none"
|
|
171
|
+
},
|
|
169
172
|
isInGroup: {
|
|
170
173
|
true: "[&:not(:first-child):not(:last-child)]:rounded-none"
|
|
171
174
|
},
|
|
@@ -185,6 +188,7 @@ var button = (0, import_tailwind_variants.tv)({
|
|
|
185
188
|
radius: "xl",
|
|
186
189
|
fullWidth: false,
|
|
187
190
|
isDisabled: false,
|
|
191
|
+
isLoading: false,
|
|
188
192
|
isInGroup: false,
|
|
189
193
|
disableAnimation: false
|
|
190
194
|
},
|
package/dist/components/index.js
CHANGED
|
@@ -187,7 +187,7 @@ var avatar = (0, import_tailwind_variants.tv)({
|
|
|
187
187
|
"data-[loaded=true]:opacity-100"
|
|
188
188
|
],
|
|
189
189
|
fallback: [...translateCenterClasses, "flex", "items-center", "justify-center"],
|
|
190
|
-
name: [...translateCenterClasses, "font-
|
|
190
|
+
name: [...translateCenterClasses, "font-normal", "text-center", "text-inherit"],
|
|
191
191
|
icon: [
|
|
192
192
|
...translateCenterClasses,
|
|
193
193
|
"flex",
|
|
@@ -702,11 +702,11 @@ var button = (0, import_tailwind_variants6.tv)({
|
|
|
702
702
|
"appearance-none",
|
|
703
703
|
"outline-none",
|
|
704
704
|
"select-none",
|
|
705
|
-
"font-
|
|
705
|
+
"font-normal",
|
|
706
706
|
"subpixel-antialiased",
|
|
707
707
|
"data-[pressed=true]:scale-95",
|
|
708
708
|
"overflow-hidden",
|
|
709
|
-
"gap-
|
|
709
|
+
"gap-2",
|
|
710
710
|
"data-[focus-visible=true]:outline-none",
|
|
711
711
|
"data-[focus-visible=true]:ring-2",
|
|
712
712
|
"data-[focus-visible=true]:ring-primary",
|
|
@@ -756,6 +756,9 @@ var button = (0, import_tailwind_variants6.tv)({
|
|
|
756
756
|
isDisabled: {
|
|
757
757
|
true: "opacity-50 pointer-events-none"
|
|
758
758
|
},
|
|
759
|
+
isLoading: {
|
|
760
|
+
true: "opacity-50 pointer-events-none"
|
|
761
|
+
},
|
|
759
762
|
isInGroup: {
|
|
760
763
|
true: "[&:not(:first-child):not(:last-child)]:rounded-none"
|
|
761
764
|
},
|
|
@@ -775,6 +778,7 @@ var button = (0, import_tailwind_variants6.tv)({
|
|
|
775
778
|
radius: "xl",
|
|
776
779
|
fullWidth: false,
|
|
777
780
|
isDisabled: false,
|
|
781
|
+
isLoading: false,
|
|
778
782
|
isInGroup: false,
|
|
779
783
|
disableAnimation: false
|
|
780
784
|
},
|
|
@@ -1153,6 +1157,10 @@ var spinner = (0, import_tailwind_variants9.tv)({
|
|
|
1153
1157
|
}
|
|
1154
1158
|
},
|
|
1155
1159
|
color: {
|
|
1160
|
+
current: {
|
|
1161
|
+
circle1: "border-b-current",
|
|
1162
|
+
circle2: "border-b-current"
|
|
1163
|
+
},
|
|
1156
1164
|
white: {
|
|
1157
1165
|
circle1: "border-b-white",
|
|
1158
1166
|
circle2: "border-b-white"
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import "../chunk-MVXKHHAX.mjs";
|
|
2
|
+
import {
|
|
3
|
+
snippet
|
|
4
|
+
} from "../chunk-5ZJFAFZA.mjs";
|
|
2
5
|
import {
|
|
3
6
|
spacer
|
|
4
7
|
} from "../chunk-3B4SYPW2.mjs";
|
|
5
8
|
import {
|
|
6
9
|
spinner
|
|
7
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-MFJMHP3B.mjs";
|
|
8
11
|
import {
|
|
9
12
|
table
|
|
10
13
|
} from "../chunk-KWWWVBJL.mjs";
|
|
@@ -17,6 +20,9 @@ import {
|
|
|
17
20
|
import {
|
|
18
21
|
user
|
|
19
22
|
} from "../chunk-ZNBW4PQF.mjs";
|
|
23
|
+
import {
|
|
24
|
+
modal
|
|
25
|
+
} from "../chunk-YMIOHWCD.mjs";
|
|
20
26
|
import {
|
|
21
27
|
navbar
|
|
22
28
|
} from "../chunk-U3BMJPED.mjs";
|
|
@@ -39,8 +45,8 @@ import {
|
|
|
39
45
|
skeleton
|
|
40
46
|
} from "../chunk-G23VRPTF.mjs";
|
|
41
47
|
import {
|
|
42
|
-
|
|
43
|
-
} from "../chunk-
|
|
48
|
+
dropdownMenu
|
|
49
|
+
} from "../chunk-FCYNUVAR.mjs";
|
|
44
50
|
import {
|
|
45
51
|
dropdownSection
|
|
46
52
|
} from "../chunk-AVGEHFT4.mjs";
|
|
@@ -61,8 +67,8 @@ import {
|
|
|
61
67
|
linkAnchorClasses
|
|
62
68
|
} from "../chunk-YQXYRWJP.mjs";
|
|
63
69
|
import {
|
|
64
|
-
|
|
65
|
-
} from "../chunk-
|
|
70
|
+
checkboxGroup
|
|
71
|
+
} from "../chunk-U77YMEWM.mjs";
|
|
66
72
|
import {
|
|
67
73
|
checkbox
|
|
68
74
|
} from "../chunk-7EKGN7JP.mjs";
|
|
@@ -85,8 +91,8 @@ import {
|
|
|
85
91
|
dropdownItem
|
|
86
92
|
} from "../chunk-Z6VEZVD6.mjs";
|
|
87
93
|
import {
|
|
88
|
-
|
|
89
|
-
} from "../chunk-
|
|
94
|
+
accordionItem
|
|
95
|
+
} from "../chunk-XSFH4S4Y.mjs";
|
|
90
96
|
import {
|
|
91
97
|
accordion
|
|
92
98
|
} from "../chunk-YYBLBQIV.mjs";
|
|
@@ -95,7 +101,7 @@ import {
|
|
|
95
101
|
} from "../chunk-MLH3XSY7.mjs";
|
|
96
102
|
import {
|
|
97
103
|
avatar
|
|
98
|
-
} from "../chunk-
|
|
104
|
+
} from "../chunk-74YO36XH.mjs";
|
|
99
105
|
import {
|
|
100
106
|
badge
|
|
101
107
|
} from "../chunk-CPWIXBDM.mjs";
|
|
@@ -104,19 +110,13 @@ import {
|
|
|
104
110
|
} from "../chunk-VKFQ7EZN.mjs";
|
|
105
111
|
import {
|
|
106
112
|
button
|
|
107
|
-
} from "../chunk-
|
|
113
|
+
} from "../chunk-K4KU3E4F.mjs";
|
|
108
114
|
import "../chunk-CMYR6AOY.mjs";
|
|
109
115
|
import "../chunk-K7LK7NCE.mjs";
|
|
110
116
|
import "../chunk-RO3WUCFF.mjs";
|
|
111
117
|
import {
|
|
112
118
|
card
|
|
113
119
|
} from "../chunk-6QKRZ3JE.mjs";
|
|
114
|
-
import {
|
|
115
|
-
checkboxGroup
|
|
116
|
-
} from "../chunk-U77YMEWM.mjs";
|
|
117
|
-
import {
|
|
118
|
-
accordionItem
|
|
119
|
-
} from "../chunk-XSFH4S4Y.mjs";
|
|
120
120
|
import "../chunk-INZK6TTL.mjs";
|
|
121
121
|
export {
|
|
122
122
|
accordion,
|
|
@@ -48,6 +48,10 @@ declare const spinner: tailwind_variants.TVReturnType<{
|
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
50
|
color: {
|
|
51
|
+
current: {
|
|
52
|
+
circle1: string;
|
|
53
|
+
circle2: string;
|
|
54
|
+
};
|
|
51
55
|
white: {
|
|
52
56
|
circle1: string;
|
|
53
57
|
circle2: string;
|
|
@@ -136,6 +140,10 @@ declare const spinner: tailwind_variants.TVReturnType<{
|
|
|
136
140
|
};
|
|
137
141
|
};
|
|
138
142
|
color: {
|
|
143
|
+
current: {
|
|
144
|
+
circle1: string;
|
|
145
|
+
circle2: string;
|
|
146
|
+
};
|
|
139
147
|
white: {
|
|
140
148
|
circle1: string;
|
|
141
149
|
circle2: string;
|
package/dist/index.js
CHANGED
|
@@ -219,7 +219,7 @@ var avatar = (0, import_tailwind_variants.tv)({
|
|
|
219
219
|
"data-[loaded=true]:opacity-100"
|
|
220
220
|
],
|
|
221
221
|
fallback: [...translateCenterClasses, "flex", "items-center", "justify-center"],
|
|
222
|
-
name: [...translateCenterClasses, "font-
|
|
222
|
+
name: [...translateCenterClasses, "font-normal", "text-center", "text-inherit"],
|
|
223
223
|
icon: [
|
|
224
224
|
...translateCenterClasses,
|
|
225
225
|
"flex",
|
|
@@ -734,11 +734,11 @@ var button = (0, import_tailwind_variants6.tv)({
|
|
|
734
734
|
"appearance-none",
|
|
735
735
|
"outline-none",
|
|
736
736
|
"select-none",
|
|
737
|
-
"font-
|
|
737
|
+
"font-normal",
|
|
738
738
|
"subpixel-antialiased",
|
|
739
739
|
"data-[pressed=true]:scale-95",
|
|
740
740
|
"overflow-hidden",
|
|
741
|
-
"gap-
|
|
741
|
+
"gap-2",
|
|
742
742
|
"data-[focus-visible=true]:outline-none",
|
|
743
743
|
"data-[focus-visible=true]:ring-2",
|
|
744
744
|
"data-[focus-visible=true]:ring-primary",
|
|
@@ -788,6 +788,9 @@ var button = (0, import_tailwind_variants6.tv)({
|
|
|
788
788
|
isDisabled: {
|
|
789
789
|
true: "opacity-50 pointer-events-none"
|
|
790
790
|
},
|
|
791
|
+
isLoading: {
|
|
792
|
+
true: "opacity-50 pointer-events-none"
|
|
793
|
+
},
|
|
791
794
|
isInGroup: {
|
|
792
795
|
true: "[&:not(:first-child):not(:last-child)]:rounded-none"
|
|
793
796
|
},
|
|
@@ -807,6 +810,7 @@ var button = (0, import_tailwind_variants6.tv)({
|
|
|
807
810
|
radius: "xl",
|
|
808
811
|
fullWidth: false,
|
|
809
812
|
isDisabled: false,
|
|
813
|
+
isLoading: false,
|
|
810
814
|
isInGroup: false,
|
|
811
815
|
disableAnimation: false
|
|
812
816
|
},
|
|
@@ -1185,6 +1189,10 @@ var spinner = (0, import_tailwind_variants9.tv)({
|
|
|
1185
1189
|
}
|
|
1186
1190
|
},
|
|
1187
1191
|
color: {
|
|
1192
|
+
current: {
|
|
1193
|
+
circle1: "border-b-current",
|
|
1194
|
+
circle2: "border-b-current"
|
|
1195
|
+
},
|
|
1188
1196
|
white: {
|
|
1189
1197
|
circle1: "border-b-white",
|
|
1190
1198
|
circle2: "border-b-white"
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import "./chunk-MVXKHHAX.mjs";
|
|
2
|
+
import {
|
|
3
|
+
snippet
|
|
4
|
+
} from "./chunk-5ZJFAFZA.mjs";
|
|
2
5
|
import {
|
|
3
6
|
spacer
|
|
4
7
|
} from "./chunk-3B4SYPW2.mjs";
|
|
5
8
|
import {
|
|
6
9
|
spinner
|
|
7
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MFJMHP3B.mjs";
|
|
8
11
|
import {
|
|
9
12
|
table
|
|
10
13
|
} from "./chunk-KWWWVBJL.mjs";
|
|
@@ -17,6 +20,9 @@ import {
|
|
|
17
20
|
import {
|
|
18
21
|
user
|
|
19
22
|
} from "./chunk-ZNBW4PQF.mjs";
|
|
23
|
+
import {
|
|
24
|
+
modal
|
|
25
|
+
} from "./chunk-YMIOHWCD.mjs";
|
|
20
26
|
import {
|
|
21
27
|
navbar
|
|
22
28
|
} from "./chunk-U3BMJPED.mjs";
|
|
@@ -39,8 +45,8 @@ import {
|
|
|
39
45
|
skeleton
|
|
40
46
|
} from "./chunk-G23VRPTF.mjs";
|
|
41
47
|
import {
|
|
42
|
-
|
|
43
|
-
} from "./chunk-
|
|
48
|
+
dropdownMenu
|
|
49
|
+
} from "./chunk-FCYNUVAR.mjs";
|
|
44
50
|
import {
|
|
45
51
|
dropdownSection
|
|
46
52
|
} from "./chunk-AVGEHFT4.mjs";
|
|
@@ -61,8 +67,8 @@ import {
|
|
|
61
67
|
linkAnchorClasses
|
|
62
68
|
} from "./chunk-YQXYRWJP.mjs";
|
|
63
69
|
import {
|
|
64
|
-
|
|
65
|
-
} from "./chunk-
|
|
70
|
+
checkboxGroup
|
|
71
|
+
} from "./chunk-U77YMEWM.mjs";
|
|
66
72
|
import {
|
|
67
73
|
checkbox
|
|
68
74
|
} from "./chunk-7EKGN7JP.mjs";
|
|
@@ -85,8 +91,8 @@ import {
|
|
|
85
91
|
dropdownItem
|
|
86
92
|
} from "./chunk-Z6VEZVD6.mjs";
|
|
87
93
|
import {
|
|
88
|
-
|
|
89
|
-
} from "./chunk-
|
|
94
|
+
accordionItem
|
|
95
|
+
} from "./chunk-XSFH4S4Y.mjs";
|
|
90
96
|
import {
|
|
91
97
|
accordion
|
|
92
98
|
} from "./chunk-YYBLBQIV.mjs";
|
|
@@ -95,7 +101,7 @@ import {
|
|
|
95
101
|
} from "./chunk-MLH3XSY7.mjs";
|
|
96
102
|
import {
|
|
97
103
|
avatar
|
|
98
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-74YO36XH.mjs";
|
|
99
105
|
import {
|
|
100
106
|
badge
|
|
101
107
|
} from "./chunk-CPWIXBDM.mjs";
|
|
@@ -104,7 +110,7 @@ import {
|
|
|
104
110
|
} from "./chunk-VKFQ7EZN.mjs";
|
|
105
111
|
import {
|
|
106
112
|
button
|
|
107
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-K4KU3E4F.mjs";
|
|
108
114
|
import "./chunk-CMYR6AOY.mjs";
|
|
109
115
|
import "./chunk-K7LK7NCE.mjs";
|
|
110
116
|
import {
|
|
@@ -113,16 +119,9 @@ import {
|
|
|
113
119
|
import {
|
|
114
120
|
card
|
|
115
121
|
} from "./chunk-6QKRZ3JE.mjs";
|
|
116
|
-
import {
|
|
117
|
-
checkboxGroup
|
|
118
|
-
} from "./chunk-U77YMEWM.mjs";
|
|
119
|
-
import {
|
|
120
|
-
accordionItem
|
|
121
|
-
} from "./chunk-XSFH4S4Y.mjs";
|
|
122
122
|
import {
|
|
123
123
|
nextui
|
|
124
|
-
} from "./chunk-
|
|
125
|
-
import "./chunk-XLATS5QU.mjs";
|
|
124
|
+
} from "./chunk-KPADJJIM.mjs";
|
|
126
125
|
import {
|
|
127
126
|
absoluteFullClasses,
|
|
128
127
|
baseStyles,
|
|
@@ -130,6 +129,7 @@ import {
|
|
|
130
129
|
ringClasses,
|
|
131
130
|
translateCenterClasses
|
|
132
131
|
} from "./chunk-INZK6TTL.mjs";
|
|
132
|
+
import "./chunk-DMASP6FA.mjs";
|
|
133
133
|
import "./chunk-WQEDQHKX.mjs";
|
|
134
134
|
import {
|
|
135
135
|
colors
|
|
@@ -139,7 +139,7 @@ import {
|
|
|
139
139
|
} from "./chunk-LQHWK6UV.mjs";
|
|
140
140
|
import "./chunk-37PIXVP4.mjs";
|
|
141
141
|
import "./chunk-M63AFAHO.mjs";
|
|
142
|
-
import "./chunk-
|
|
142
|
+
import "./chunk-XLATS5QU.mjs";
|
|
143
143
|
import {
|
|
144
144
|
commonColors
|
|
145
145
|
} from "./chunk-CRCBVLUP.mjs";
|
package/dist/plugin.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
nextui
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-XLATS5QU.mjs";
|
|
3
|
+
} from "./chunk-KPADJJIM.mjs";
|
|
5
4
|
import "./chunk-INZK6TTL.mjs";
|
|
5
|
+
import "./chunk-DMASP6FA.mjs";
|
|
6
6
|
import "./chunk-WQEDQHKX.mjs";
|
|
7
7
|
import "./chunk-M74ZSXB7.mjs";
|
|
8
8
|
import "./chunk-LQHWK6UV.mjs";
|
|
9
9
|
import "./chunk-37PIXVP4.mjs";
|
|
10
10
|
import "./chunk-M63AFAHO.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-XLATS5QU.mjs";
|
|
12
12
|
import "./chunk-CRCBVLUP.mjs";
|
|
13
13
|
import "./chunk-DCEG5LGX.mjs";
|
|
14
14
|
import "./chunk-L2OL7R23.mjs";
|
package/package.json
CHANGED
package/dist/chunk-WUXZWYH4.mjs
DELETED
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
utilities
|
|
3
|
-
} from "./chunk-XLATS5QU.mjs";
|
|
4
|
-
import {
|
|
5
|
-
baseStyles
|
|
6
|
-
} from "./chunk-INZK6TTL.mjs";
|
|
7
|
-
import {
|
|
8
|
-
semanticColors
|
|
9
|
-
} from "./chunk-LQHWK6UV.mjs";
|
|
10
|
-
import {
|
|
11
|
-
removeDefaultKeys
|
|
12
|
-
} from "./chunk-37PIXVP4.mjs";
|
|
13
|
-
import {
|
|
14
|
-
animations
|
|
15
|
-
} from "./chunk-DMASP6FA.mjs";
|
|
16
|
-
import {
|
|
17
|
-
commonColors
|
|
18
|
-
} from "./chunk-CRCBVLUP.mjs";
|
|
19
|
-
|
|
20
|
-
// src/plugin.ts
|
|
21
|
-
import Color from "color";
|
|
22
|
-
import plugin from "tailwindcss/plugin.js";
|
|
23
|
-
import forEach from "lodash.foreach";
|
|
24
|
-
import flatten from "flat";
|
|
25
|
-
import get from "lodash.get";
|
|
26
|
-
import omit from "lodash.omit";
|
|
27
|
-
import deepMerge from "deepmerge";
|
|
28
|
-
var SCHEME = Symbol("color-scheme");
|
|
29
|
-
var DEFAULT_PREFIX = "nextui";
|
|
30
|
-
var dark = (colors) => {
|
|
31
|
-
return {
|
|
32
|
-
[SCHEME]: "dark",
|
|
33
|
-
...colors
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
var light = (colors) => {
|
|
37
|
-
return {
|
|
38
|
-
[SCHEME]: "light",
|
|
39
|
-
...colors
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
var resolveConfig = (config = {}, defaultTheme, prefix) => {
|
|
43
|
-
const resolved = {
|
|
44
|
-
variants: [],
|
|
45
|
-
utilities: {},
|
|
46
|
-
colors: {}
|
|
47
|
-
};
|
|
48
|
-
const configObject = typeof config === "function" ? config({ dark, light }) : config;
|
|
49
|
-
forEach(configObject, (colors, themeName) => {
|
|
50
|
-
let cssSelector = `.${themeName},[data-theme="${themeName}"]`;
|
|
51
|
-
if (themeName === defaultTheme) {
|
|
52
|
-
cssSelector = `:root,${cssSelector}`;
|
|
53
|
-
}
|
|
54
|
-
resolved.utilities[cssSelector] = colors[SCHEME] ? {
|
|
55
|
-
"color-scheme": colors[SCHEME]
|
|
56
|
-
} : {};
|
|
57
|
-
const flatColors = removeDefaultKeys(
|
|
58
|
-
flatten(colors, {
|
|
59
|
-
safe: true,
|
|
60
|
-
delimiter: "-"
|
|
61
|
-
})
|
|
62
|
-
);
|
|
63
|
-
resolved.variants.push({
|
|
64
|
-
name: themeName,
|
|
65
|
-
definition: [`&.${themeName}`, `&[data-theme='${themeName}']`]
|
|
66
|
-
});
|
|
67
|
-
forEach(flatColors, (colorValue, colorName) => {
|
|
68
|
-
if (colorName === SCHEME || !colorValue)
|
|
69
|
-
return;
|
|
70
|
-
try {
|
|
71
|
-
const [h, s, l, defaultAlphaValue] = Color(colorValue).hsl().round().array();
|
|
72
|
-
const nextuiColorVariable = `--${prefix}-${colorName}`;
|
|
73
|
-
const nextuiOpacityVariable = `--${prefix}-${colorName}-opacity`;
|
|
74
|
-
resolved.utilities[cssSelector][nextuiColorVariable] = `${h} ${s}% ${l}%`;
|
|
75
|
-
if (typeof defaultAlphaValue === "number") {
|
|
76
|
-
resolved.utilities[cssSelector][nextuiOpacityVariable] = defaultAlphaValue.toFixed(2);
|
|
77
|
-
}
|
|
78
|
-
resolved.colors[colorName] = ({ opacityVariable, opacityValue }) => {
|
|
79
|
-
if (!isNaN(+opacityValue)) {
|
|
80
|
-
return `hsl(var(${nextuiColorVariable}) / ${opacityValue})`;
|
|
81
|
-
}
|
|
82
|
-
if (opacityVariable) {
|
|
83
|
-
return `hsl(var(${nextuiColorVariable}) / var(${nextuiOpacityVariable}, var(${opacityVariable})))`;
|
|
84
|
-
}
|
|
85
|
-
return `hsl(var(${nextuiColorVariable}) / var(${nextuiOpacityVariable}, 1))`;
|
|
86
|
-
};
|
|
87
|
-
} catch (error) {
|
|
88
|
-
console.log("error", error == null ? void 0 : error.message);
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
});
|
|
92
|
-
return resolved;
|
|
93
|
-
};
|
|
94
|
-
var corePlugin = (config = {}, defaultTheme, prefix) => {
|
|
95
|
-
const resolved = resolveConfig(config, defaultTheme, prefix);
|
|
96
|
-
return plugin(
|
|
97
|
-
({ addBase, addUtilities, addVariant }) => {
|
|
98
|
-
addBase({
|
|
99
|
-
[":root, [data-theme]"]: {
|
|
100
|
-
...baseStyles
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
addUtilities({ ...resolved.utilities, ...utilities });
|
|
104
|
-
resolved.variants.forEach((variant) => {
|
|
105
|
-
addVariant(variant.name, variant.definition);
|
|
106
|
-
});
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
theme: {
|
|
110
|
-
extend: {
|
|
111
|
-
colors: {
|
|
112
|
-
...commonColors,
|
|
113
|
-
...resolved.colors
|
|
114
|
-
},
|
|
115
|
-
fontSize: {
|
|
116
|
-
tiny: "0.625rem"
|
|
117
|
-
},
|
|
118
|
-
borderWidth: {
|
|
119
|
-
1: "1px",
|
|
120
|
-
1.5: "1.5px",
|
|
121
|
-
3: "3px",
|
|
122
|
-
5: "5px"
|
|
123
|
-
},
|
|
124
|
-
backgroundImage: {
|
|
125
|
-
"stripe-gradient": "linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1) 75%, transparent 75%, transparent)"
|
|
126
|
-
},
|
|
127
|
-
transitionDuration: {
|
|
128
|
-
0: "0ms",
|
|
129
|
-
250: "250ms",
|
|
130
|
-
400: "400ms"
|
|
131
|
-
},
|
|
132
|
-
transitionTimingFunction: {
|
|
133
|
-
"soft-spring": "cubic-bezier(0.155, 1.105, 0.295, 1.12)"
|
|
134
|
-
},
|
|
135
|
-
...animations
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
);
|
|
140
|
-
};
|
|
141
|
-
var nextui = (config = {}) => {
|
|
142
|
-
const themeObject = typeof config.themes === "function" ? config.themes({ dark, light }) : config.themes;
|
|
143
|
-
const userLightColors = get(themeObject, "light", {});
|
|
144
|
-
const userDarkColors = get(themeObject, "dark", {});
|
|
145
|
-
const defaultTheme = config.defaultTheme || "light";
|
|
146
|
-
const defaultPrefix = config.prefix || DEFAULT_PREFIX;
|
|
147
|
-
const otherThemes = omit(themeObject, ["light", "dark"]) || {};
|
|
148
|
-
return corePlugin(
|
|
149
|
-
{
|
|
150
|
-
light: deepMerge(semanticColors.light, userLightColors),
|
|
151
|
-
dark: deepMerge(semanticColors.dark, userDarkColors),
|
|
152
|
-
...otherThemes
|
|
153
|
-
},
|
|
154
|
-
defaultTheme,
|
|
155
|
-
defaultPrefix
|
|
156
|
-
);
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
export {
|
|
160
|
-
nextui
|
|
161
|
-
};
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
baseStyles
|
|
3
3
|
} from "./chunk-INZK6TTL.mjs";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./chunk-
|
|
5
|
+
animations
|
|
6
|
+
} from "./chunk-DMASP6FA.mjs";
|
|
7
7
|
import {
|
|
8
8
|
semanticColors
|
|
9
9
|
} from "./chunk-LQHWK6UV.mjs";
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
removeDefaultKeys
|
|
12
12
|
} from "./chunk-37PIXVP4.mjs";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./chunk-
|
|
14
|
+
utilities
|
|
15
|
+
} from "./chunk-XLATS5QU.mjs";
|
|
16
16
|
import {
|
|
17
17
|
commonColors
|
|
18
18
|
} from "./chunk-CRCBVLUP.mjs";
|