@nextui-org/theme 2.3.0-beta.5 → 2.3.0-beta.7
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-4NWHODJP.mjs +334 -0
- package/dist/{chunk-7L2ZWDVP.mjs → chunk-G4RCK475.mjs} +1 -1
- package/dist/{chunk-ZD36336F.mjs → chunk-LCMN7HGG.mjs} +5 -5
- package/dist/{chunk-QGHMGO5E.mjs → chunk-QZTWGJ72.mjs} +2 -2
- package/dist/colors/common.mjs +3 -3
- package/dist/colors/index.mjs +5 -5
- package/dist/colors/semantic.mjs +4 -4
- package/dist/colors.mjs +5 -5
- package/dist/components/alert.d.ts +97 -17
- package/dist/components/alert.js +150 -32
- package/dist/components/alert.mjs +1 -1
- package/dist/components/index.js +150 -32
- package/dist/components/index.mjs +1 -1
- package/dist/index.js +150 -32
- package/dist/index.mjs +8 -8
- package/dist/plugin.mjs +7 -7
- package/package.json +1 -1
- package/dist/chunk-3XDFZGUJ.mjs +0 -216
- package/dist/{chunk-6TOTQSJE.mjs → chunk-IAS3SFA4.mjs} +6 -6
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
import {
|
|
2
|
+
colorVariants
|
|
3
|
+
} from "./chunk-GQT3YUX3.mjs";
|
|
4
|
+
import {
|
|
5
|
+
tv
|
|
6
|
+
} from "./chunk-UWE6H66T.mjs";
|
|
7
|
+
|
|
8
|
+
// src/components/alert.ts
|
|
9
|
+
var alert = tv({
|
|
10
|
+
slots: {
|
|
11
|
+
base: "flex flex-grow flex-row w-full items-start py-3 px-4 gap-x-1",
|
|
12
|
+
mainWrapper: "h-full flex-grow min-h-10 ms-2 flex flex-col box-border items-start text-inherit",
|
|
13
|
+
title: "text-small w-full font-medium block text-inherit leading-5",
|
|
14
|
+
description: "pl-[1px] text-small font-normal text-inherit",
|
|
15
|
+
closeButton: "relative text-inherit translate-x-1 -translate-y-1",
|
|
16
|
+
iconWrapper: "flex-none relative w-9 h-9 rounded-full",
|
|
17
|
+
alertIcon: "fill-current w-6 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"
|
|
18
|
+
},
|
|
19
|
+
variants: {
|
|
20
|
+
color: {
|
|
21
|
+
default: {},
|
|
22
|
+
primary: {},
|
|
23
|
+
secondary: {},
|
|
24
|
+
success: {},
|
|
25
|
+
warning: {},
|
|
26
|
+
danger: {}
|
|
27
|
+
},
|
|
28
|
+
variant: {
|
|
29
|
+
solid: {},
|
|
30
|
+
flat: {},
|
|
31
|
+
faded: {
|
|
32
|
+
base: "border-small"
|
|
33
|
+
},
|
|
34
|
+
bordered: {
|
|
35
|
+
base: "border-small bg-transparent"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
radius: {
|
|
39
|
+
none: {
|
|
40
|
+
base: "rounded-none"
|
|
41
|
+
},
|
|
42
|
+
sm: {
|
|
43
|
+
base: "rounded-small"
|
|
44
|
+
},
|
|
45
|
+
md: {
|
|
46
|
+
base: "rounded-medium"
|
|
47
|
+
},
|
|
48
|
+
lg: {
|
|
49
|
+
base: "rounded-large"
|
|
50
|
+
},
|
|
51
|
+
full: {
|
|
52
|
+
base: "rounded-full"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
hideIcon: {
|
|
56
|
+
true: {
|
|
57
|
+
iconWrapper: "hidden"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
hideIconWrapper: {
|
|
61
|
+
true: {
|
|
62
|
+
base: "gap-x-0",
|
|
63
|
+
iconWrapper: "!bg-transparent !shadow-none"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
hasDescription: {
|
|
67
|
+
false: {
|
|
68
|
+
base: "items-start",
|
|
69
|
+
mainWrapper: "justify-center"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
defaultVariants: {
|
|
74
|
+
color: "default",
|
|
75
|
+
variant: "flat",
|
|
76
|
+
radius: "md",
|
|
77
|
+
hideIcon: false,
|
|
78
|
+
hideIconWrapper: false
|
|
79
|
+
},
|
|
80
|
+
compoundVariants: [
|
|
81
|
+
{
|
|
82
|
+
variant: "solid",
|
|
83
|
+
color: "default",
|
|
84
|
+
class: {
|
|
85
|
+
base: colorVariants.solid.default,
|
|
86
|
+
closeButton: "data-[hover]:bg-default-100",
|
|
87
|
+
alertIcon: "text-default-foreground"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
variant: "solid",
|
|
92
|
+
color: "primary",
|
|
93
|
+
class: {
|
|
94
|
+
base: colorVariants.solid.primary
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
variant: "solid",
|
|
99
|
+
color: "secondary",
|
|
100
|
+
class: {
|
|
101
|
+
base: colorVariants.solid.secondary
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
variant: "solid",
|
|
106
|
+
color: "success",
|
|
107
|
+
class: {
|
|
108
|
+
base: colorVariants.solid.success
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
variant: "solid",
|
|
113
|
+
color: "warning",
|
|
114
|
+
class: {
|
|
115
|
+
base: colorVariants.solid.warning
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
variant: "solid",
|
|
120
|
+
color: "danger",
|
|
121
|
+
class: {
|
|
122
|
+
base: colorVariants.solid.danger
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
variant: ["flat", "faded"],
|
|
127
|
+
color: "default",
|
|
128
|
+
class: {
|
|
129
|
+
base: [
|
|
130
|
+
colorVariants.flat.default,
|
|
131
|
+
"bg-default-100 dark:bg-default-50",
|
|
132
|
+
"text-default-foreground"
|
|
133
|
+
],
|
|
134
|
+
description: "text-default-600",
|
|
135
|
+
closeButton: "text-default-400",
|
|
136
|
+
iconWrapper: "bg-default-50 dark:bg-default-100 border-default-200"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
variant: ["flat", "faded"],
|
|
141
|
+
color: "primary",
|
|
142
|
+
class: {
|
|
143
|
+
base: [colorVariants.flat.primary, "bg-primary-50"],
|
|
144
|
+
closeButton: "text-primary-500 data-[hover]:bg-primary-200",
|
|
145
|
+
iconWrapper: "bg-primary-50 dark:bg-primary-100 border-primary-100"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
variant: ["flat", "faded"],
|
|
150
|
+
color: "secondary",
|
|
151
|
+
class: {
|
|
152
|
+
base: [colorVariants.flat.secondary, "bg-secondary-50"],
|
|
153
|
+
closeButton: "text-secondary-500 data-[hover]:bg-secondary-200",
|
|
154
|
+
iconWrapper: "bg-secondary-50 dark:bg-secondary-100 border-secondary-100"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
variant: ["flat", "faded"],
|
|
159
|
+
color: "success",
|
|
160
|
+
class: {
|
|
161
|
+
base: [colorVariants.flat.success, "bg-success-50"],
|
|
162
|
+
closeButton: "text-success-500 data-[hover]:bg-success-200",
|
|
163
|
+
iconWrapper: "bg-success-50 dark:bg-success-100 border-success-100"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
variant: ["flat", "faded"],
|
|
168
|
+
color: "warning",
|
|
169
|
+
class: {
|
|
170
|
+
base: [colorVariants.flat.warning, "bg-warning-50"],
|
|
171
|
+
closeButton: "text-warning-500 data-[hover]:bg-warning-200",
|
|
172
|
+
iconWrapper: "bg-warning-50 dark:bg-warning-100 border-warning-100"
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
variant: ["flat", "faded"],
|
|
177
|
+
color: "danger",
|
|
178
|
+
class: {
|
|
179
|
+
base: [colorVariants.flat.danger, "bg-danger-50"],
|
|
180
|
+
closeButton: "text-danger-500 data-[hover]:bg-danger-200",
|
|
181
|
+
iconWrapper: "bg-danger-50 dark:bg-danger-100 border-danger-100"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
variant: "faded",
|
|
186
|
+
color: "default",
|
|
187
|
+
class: {
|
|
188
|
+
base: "border-default-300 dark:border-default-200"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
variant: "faded",
|
|
193
|
+
color: "primary",
|
|
194
|
+
class: {
|
|
195
|
+
base: "border-primary-200"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
variant: "faded",
|
|
200
|
+
color: "secondary",
|
|
201
|
+
class: {
|
|
202
|
+
base: "border-secondary-200"
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
variant: "faded",
|
|
207
|
+
color: "success",
|
|
208
|
+
class: {
|
|
209
|
+
base: "border-success-200 dark:border-success-100"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
variant: "faded",
|
|
214
|
+
color: "warning",
|
|
215
|
+
class: {
|
|
216
|
+
base: "border-warning-200 dark:border-warning-100"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
variant: "faded",
|
|
221
|
+
color: "danger",
|
|
222
|
+
class: {
|
|
223
|
+
base: "border-danger-200 dark:border-danger-100"
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
variant: "bordered",
|
|
228
|
+
color: "default",
|
|
229
|
+
class: {
|
|
230
|
+
base: [colorVariants.bordered.default],
|
|
231
|
+
description: "text-default-600",
|
|
232
|
+
closeButton: "text-default-400"
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
variant: "bordered",
|
|
237
|
+
color: "primary",
|
|
238
|
+
class: {
|
|
239
|
+
base: [colorVariants.bordered.primary],
|
|
240
|
+
closeButton: "data-[hover]:bg-primary-50"
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
variant: "bordered",
|
|
245
|
+
color: "secondary",
|
|
246
|
+
class: {
|
|
247
|
+
base: [colorVariants.bordered.secondary],
|
|
248
|
+
closeButton: "data-[hover]:bg-secondary-50"
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
variant: "bordered",
|
|
253
|
+
color: "success",
|
|
254
|
+
class: {
|
|
255
|
+
base: [colorVariants.bordered.success],
|
|
256
|
+
closeButton: "data-[hover]:bg-success-50"
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
variant: "bordered",
|
|
261
|
+
color: "warning",
|
|
262
|
+
class: {
|
|
263
|
+
base: [colorVariants.bordered.warning],
|
|
264
|
+
closeButton: "data-[hover]:bg-warning-100"
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
variant: "bordered",
|
|
269
|
+
color: "danger",
|
|
270
|
+
class: {
|
|
271
|
+
base: [colorVariants.bordered.danger],
|
|
272
|
+
closeButton: "data-[hover]:bg-danger-50"
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
variant: ["flat", "bordered", "faded"],
|
|
277
|
+
class: {
|
|
278
|
+
iconWrapper: "shadow-small"
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
variant: ["flat", "faded"],
|
|
283
|
+
class: {
|
|
284
|
+
iconWrapper: "shadow-small border-1"
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
variant: "bordered",
|
|
289
|
+
color: "default",
|
|
290
|
+
class: {
|
|
291
|
+
iconWrapper: "bg-default-200 dark:bg-default-100"
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
variant: "bordered",
|
|
296
|
+
color: "primary",
|
|
297
|
+
class: {
|
|
298
|
+
iconWrapper: "bg-primary-100 dark:bg-primary-50"
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
variant: "bordered",
|
|
303
|
+
color: "secondary",
|
|
304
|
+
class: {
|
|
305
|
+
iconWrapper: "bg-secondary-100 dark:bg-secondary-50"
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
variant: "bordered",
|
|
310
|
+
color: "success",
|
|
311
|
+
class: {
|
|
312
|
+
iconWrapper: "bg-success-100 dark:bg-success-50"
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
variant: "bordered",
|
|
317
|
+
color: "warning",
|
|
318
|
+
class: {
|
|
319
|
+
iconWrapper: "bg-warning-100 dark:bg-warning-50"
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
variant: "bordered",
|
|
324
|
+
color: "danger",
|
|
325
|
+
class: {
|
|
326
|
+
iconWrapper: "bg-danger-100 dark:bg-danger-50"
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
]
|
|
330
|
+
});
|
|
331
|
+
|
|
332
|
+
export {
|
|
333
|
+
alert
|
|
334
|
+
};
|
|
@@ -7,15 +7,12 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_TRANSITION_DURATION
|
|
9
9
|
} from "./chunk-WN6AL2BX.mjs";
|
|
10
|
-
import {
|
|
11
|
-
animations
|
|
12
|
-
} from "./chunk-DMASP6FA.mjs";
|
|
13
10
|
import {
|
|
14
11
|
baseStyles
|
|
15
12
|
} from "./chunk-XHQUSKIE.mjs";
|
|
16
13
|
import {
|
|
17
14
|
semanticColors
|
|
18
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-G4RCK475.mjs";
|
|
19
16
|
import {
|
|
20
17
|
flattenThemeObject
|
|
21
18
|
} from "./chunk-KUNVFLXJ.mjs";
|
|
@@ -24,9 +21,12 @@ import {
|
|
|
24
21
|
defaultLayout,
|
|
25
22
|
lightLayout
|
|
26
23
|
} from "./chunk-HUBDRSA4.mjs";
|
|
24
|
+
import {
|
|
25
|
+
animations
|
|
26
|
+
} from "./chunk-DMASP6FA.mjs";
|
|
27
27
|
import {
|
|
28
28
|
commonColors
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-IAS3SFA4.mjs";
|
|
30
30
|
|
|
31
31
|
// src/plugin.ts
|
|
32
32
|
import Color from "color";
|
package/dist/colors/common.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
commonColors
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-IAS3SFA4.mjs";
|
|
4
|
+
import "../chunk-JUEOCLA3.mjs";
|
|
4
5
|
import "../chunk-3LKKH4AR.mjs";
|
|
6
|
+
import "../chunk-T3GWIVAM.mjs";
|
|
5
7
|
import "../chunk-OR5PUD24.mjs";
|
|
6
8
|
import "../chunk-DCEG5LGX.mjs";
|
|
7
9
|
import "../chunk-L2OL7R23.mjs";
|
|
8
10
|
import "../chunk-YZYGFPNK.mjs";
|
|
9
|
-
import "../chunk-JUEOCLA3.mjs";
|
|
10
11
|
import "../chunk-GHZ36ATJ.mjs";
|
|
11
|
-
import "../chunk-T3GWIVAM.mjs";
|
|
12
12
|
export {
|
|
13
13
|
commonColors
|
|
14
14
|
};
|
package/dist/colors/index.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
colors
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-QZTWGJ72.mjs";
|
|
4
4
|
import {
|
|
5
5
|
semanticColors
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-G4RCK475.mjs";
|
|
7
7
|
import "../chunk-KUNVFLXJ.mjs";
|
|
8
8
|
import "../chunk-M63AFAHO.mjs";
|
|
9
9
|
import {
|
|
10
10
|
commonColors
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-IAS3SFA4.mjs";
|
|
12
|
+
import "../chunk-JUEOCLA3.mjs";
|
|
12
13
|
import "../chunk-3LKKH4AR.mjs";
|
|
14
|
+
import "../chunk-T3GWIVAM.mjs";
|
|
13
15
|
import "../chunk-OR5PUD24.mjs";
|
|
14
16
|
import "../chunk-DCEG5LGX.mjs";
|
|
15
17
|
import "../chunk-L2OL7R23.mjs";
|
|
16
18
|
import "../chunk-YZYGFPNK.mjs";
|
|
17
|
-
import "../chunk-JUEOCLA3.mjs";
|
|
18
19
|
import "../chunk-GHZ36ATJ.mjs";
|
|
19
|
-
import "../chunk-T3GWIVAM.mjs";
|
|
20
20
|
export {
|
|
21
21
|
colors,
|
|
22
22
|
commonColors,
|
package/dist/colors/semantic.mjs
CHANGED
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
semanticColors,
|
|
3
3
|
themeColorsDark,
|
|
4
4
|
themeColorsLight
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-G4RCK475.mjs";
|
|
6
6
|
import "../chunk-KUNVFLXJ.mjs";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-IAS3SFA4.mjs";
|
|
8
|
+
import "../chunk-JUEOCLA3.mjs";
|
|
8
9
|
import "../chunk-3LKKH4AR.mjs";
|
|
10
|
+
import "../chunk-T3GWIVAM.mjs";
|
|
9
11
|
import "../chunk-OR5PUD24.mjs";
|
|
10
12
|
import "../chunk-DCEG5LGX.mjs";
|
|
11
13
|
import "../chunk-L2OL7R23.mjs";
|
|
12
14
|
import "../chunk-YZYGFPNK.mjs";
|
|
13
|
-
import "../chunk-JUEOCLA3.mjs";
|
|
14
15
|
import "../chunk-GHZ36ATJ.mjs";
|
|
15
|
-
import "../chunk-T3GWIVAM.mjs";
|
|
16
16
|
export {
|
|
17
17
|
semanticColors,
|
|
18
18
|
themeColorsDark,
|
package/dist/colors.mjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import "./chunk-WQEDQHKX.mjs";
|
|
2
2
|
import {
|
|
3
3
|
colors
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QZTWGJ72.mjs";
|
|
5
5
|
import {
|
|
6
6
|
semanticColors
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-G4RCK475.mjs";
|
|
8
8
|
import "./chunk-KUNVFLXJ.mjs";
|
|
9
9
|
import "./chunk-M63AFAHO.mjs";
|
|
10
10
|
import {
|
|
11
11
|
commonColors
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IAS3SFA4.mjs";
|
|
13
|
+
import "./chunk-JUEOCLA3.mjs";
|
|
13
14
|
import "./chunk-3LKKH4AR.mjs";
|
|
15
|
+
import "./chunk-T3GWIVAM.mjs";
|
|
14
16
|
import "./chunk-OR5PUD24.mjs";
|
|
15
17
|
import "./chunk-DCEG5LGX.mjs";
|
|
16
18
|
import "./chunk-L2OL7R23.mjs";
|
|
17
19
|
import "./chunk-YZYGFPNK.mjs";
|
|
18
|
-
import "./chunk-JUEOCLA3.mjs";
|
|
19
20
|
import "./chunk-GHZ36ATJ.mjs";
|
|
20
|
-
import "./chunk-T3GWIVAM.mjs";
|
|
21
21
|
export {
|
|
22
22
|
colors,
|
|
23
23
|
commonColors,
|