@nextui-org/theme 2.3.0-beta.5 → 2.3.0-beta.6

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.
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-KUNVFLXJ.mjs";
4
4
  import {
5
5
  commonColors
6
- } from "./chunk-6TOTQSJE.mjs";
6
+ } from "./chunk-IAS3SFA4.mjs";
7
7
 
8
8
  // src/colors/semantic.ts
9
9
  import { readableColor } from "color2k";
@@ -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-7L2ZWDVP.mjs";
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-6TOTQSJE.mjs";
29
+ } from "./chunk-IAS3SFA4.mjs";
30
30
 
31
31
  // src/plugin.ts
32
32
  import Color from "color";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  semanticColors
3
- } from "./chunk-7L2ZWDVP.mjs";
3
+ } from "./chunk-G4RCK475.mjs";
4
4
  import {
5
5
  commonColors
6
- } from "./chunk-6TOTQSJE.mjs";
6
+ } from "./chunk-IAS3SFA4.mjs";
7
7
 
8
8
  // src/colors/index.ts
9
9
  var colors = {
@@ -8,13 +8,12 @@ import {
8
8
  // src/components/alert.ts
9
9
  var alert = tv({
10
10
  slots: {
11
- base: "flex flex-row w-full flex-grow min-h-17 max-h-full py-3 px-4",
12
- mainWrapper: [
13
- "flex-grow min-h-11 max-h-full ms-2 flex flex-col box-border items-start text-inherit"
14
- ],
15
- title: "w-full text-medium font-normal block min-h-6 max-h-full text-inherit",
16
- description: "text-small font-normal min-h-5 max-h-full text-inherit",
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: "w-full font-medium block text-inherit leading-5",
14
+ description: "pl-[1px] text-small font-normal text-inherit",
17
15
  closeButton: "relative text-inherit",
16
+ iconWrapper: "flex items-center justify-center w-9 h-9 rounded-full",
18
17
  alertIcon: "fill-current w-6"
19
18
  },
20
19
  variants: {
@@ -29,8 +28,11 @@ var alert = tv({
29
28
  variant: {
30
29
  solid: {},
31
30
  flat: {},
31
+ faded: {
32
+ base: "border-small"
33
+ },
32
34
  bordered: {
33
- base: "border-medium bg-transparent"
35
+ base: "border-small bg-transparent"
34
36
  }
35
37
  },
36
38
  radius: {
@@ -50,10 +52,18 @@ var alert = tv({
50
52
  base: "rounded-full"
51
53
  }
52
54
  },
53
- hasDescription: {
55
+ hideIcon: {
54
56
  true: {
55
- alertIcon: "mt-0.5"
56
- },
57
+ iconWrapper: "hidden"
58
+ }
59
+ },
60
+ hideIconWrapper: {
61
+ true: {
62
+ base: "gap-x-0",
63
+ iconWrapper: "!bg-transparent !shadow-none"
64
+ }
65
+ },
66
+ hasDescription: {
57
67
  false: {
58
68
  base: "items-center",
59
69
  mainWrapper: "justify-center"
@@ -63,7 +73,9 @@ var alert = tv({
63
73
  defaultVariants: {
64
74
  color: "default",
65
75
  variant: "flat",
66
- radius: "md"
76
+ radius: "md",
77
+ hideIcon: false,
78
+ hideIconWrapper: false
67
79
  },
68
80
  compoundVariants: [
69
81
  {
@@ -111,52 +123,100 @@ var alert = tv({
111
123
  }
112
124
  },
113
125
  {
114
- variant: "flat",
126
+ variant: ["flat", "faded"],
115
127
  color: "default",
116
128
  class: {
117
129
  base: [colorVariants.flat.default, "text-default-foreground"],
118
130
  description: "text-default-600",
119
- closeButton: "text-default-400"
131
+ closeButton: "text-default-400",
132
+ iconWrapper: "bg-default-50 dark:bg-default-100"
120
133
  }
121
134
  },
122
135
  {
123
- variant: "flat",
136
+ variant: ["flat", "faded"],
124
137
  color: "primary",
125
138
  class: {
126
139
  base: colorVariants.flat.primary,
127
- closeButton: "text-primary-400 data-[hover]:bg-primary-100"
140
+ closeButton: "text-primary-400 data-[hover]:bg-primary-100",
141
+ iconWrapper: "bg-primary-50 dark:bg-primary-100"
128
142
  }
129
143
  },
130
144
  {
131
- variant: "flat",
145
+ variant: ["flat", "faded"],
132
146
  color: "secondary",
133
147
  class: {
134
148
  base: colorVariants.flat.secondary,
135
- closeButton: "text-secondary-400 data-[hover]:bg-secondary-100"
149
+ closeButton: "text-secondary-400 data-[hover]:bg-secondary-100",
150
+ iconWrapper: "bg-secondary-50 dark:bg-secondary-100"
136
151
  }
137
152
  },
138
153
  {
139
- variant: "flat",
154
+ variant: ["flat", "faded"],
140
155
  color: "success",
141
156
  class: {
142
157
  base: colorVariants.flat.success,
143
- closeButton: "text-success-400 data-[hover]:bg-success-100"
158
+ closeButton: "text-success-400 data-[hover]:bg-success-100",
159
+ iconWrapper: "bg-success-50 dark:bg-success-100"
144
160
  }
145
161
  },
146
162
  {
147
- variant: "flat",
163
+ variant: ["flat", "faded"],
148
164
  color: "warning",
149
165
  class: {
150
166
  base: colorVariants.flat.warning,
151
- closeButton: "text-warning-500 data-[hover]:bg-warning-200"
167
+ closeButton: "text-warning-500 data-[hover]:bg-warning-200",
168
+ iconWrapper: "bg-warning-50 dark:bg-warning-100"
152
169
  }
153
170
  },
154
171
  {
155
- variant: "flat",
172
+ variant: ["flat", "faded"],
156
173
  color: "danger",
157
174
  class: {
158
175
  base: colorVariants.flat.danger,
159
- closeButton: "text-danger-400 data-[hover]:bg-danger-100"
176
+ closeButton: "text-danger-400 data-[hover]:bg-danger-100",
177
+ iconWrapper: "bg-danger-50 dark:bg-danger-100"
178
+ }
179
+ },
180
+ {
181
+ variant: "faded",
182
+ color: "default",
183
+ class: {
184
+ base: "border-default"
185
+ }
186
+ },
187
+ {
188
+ variant: "faded",
189
+ color: "primary",
190
+ class: {
191
+ base: "border-primary"
192
+ }
193
+ },
194
+ {
195
+ variant: "faded",
196
+ color: "secondary",
197
+ class: {
198
+ base: "border-secondary"
199
+ }
200
+ },
201
+ {
202
+ variant: "faded",
203
+ color: "success",
204
+ class: {
205
+ base: "border-success"
206
+ }
207
+ },
208
+ {
209
+ variant: "faded",
210
+ color: "warning",
211
+ class: {
212
+ base: "border-warning"
213
+ }
214
+ },
215
+ {
216
+ variant: "faded",
217
+ color: "danger",
218
+ class: {
219
+ base: "border-danger"
160
220
  }
161
221
  },
162
222
  {
@@ -207,6 +267,54 @@ var alert = tv({
207
267
  base: [colorVariants.bordered.danger],
208
268
  closeButton: "data-[hover]:bg-danger-50"
209
269
  }
270
+ },
271
+ {
272
+ variant: ["flat", "bordered", "faded"],
273
+ class: {
274
+ iconWrapper: "shadow-small"
275
+ }
276
+ },
277
+ {
278
+ variant: "bordered",
279
+ color: "default",
280
+ class: {
281
+ iconWrapper: "bg-default-200 dark:bg-default-100"
282
+ }
283
+ },
284
+ {
285
+ variant: "bordered",
286
+ color: "primary",
287
+ class: {
288
+ iconWrapper: "bg-primary-100 dark:bg-primary-50"
289
+ }
290
+ },
291
+ {
292
+ variant: "bordered",
293
+ color: "secondary",
294
+ class: {
295
+ iconWrapper: "bg-secondary-100 dark:bg-secondary-50"
296
+ }
297
+ },
298
+ {
299
+ variant: "bordered",
300
+ color: "success",
301
+ class: {
302
+ iconWrapper: "bg-success-100 dark:bg-success-50"
303
+ }
304
+ },
305
+ {
306
+ variant: "bordered",
307
+ color: "warning",
308
+ class: {
309
+ iconWrapper: "bg-warning-100 dark:bg-warning-50"
310
+ }
311
+ },
312
+ {
313
+ variant: "bordered",
314
+ color: "danger",
315
+ class: {
316
+ iconWrapper: "bg-danger-100 dark:bg-danger-50"
317
+ }
210
318
  }
211
319
  ]
212
320
  });
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  commonColors
3
- } from "../chunk-6TOTQSJE.mjs";
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
  };
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  colors
3
- } from "../chunk-QGHMGO5E.mjs";
3
+ } from "../chunk-QZTWGJ72.mjs";
4
4
  import {
5
5
  semanticColors
6
- } from "../chunk-7L2ZWDVP.mjs";
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-6TOTQSJE.mjs";
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,
@@ -2,17 +2,17 @@ import {
2
2
  semanticColors,
3
3
  themeColorsDark,
4
4
  themeColorsLight
5
- } from "../chunk-7L2ZWDVP.mjs";
5
+ } from "../chunk-G4RCK475.mjs";
6
6
  import "../chunk-KUNVFLXJ.mjs";
7
- import "../chunk-6TOTQSJE.mjs";
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-QGHMGO5E.mjs";
4
+ } from "./chunk-QZTWGJ72.mjs";
5
5
  import {
6
6
  semanticColors
7
- } from "./chunk-7L2ZWDVP.mjs";
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-6TOTQSJE.mjs";
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,
@@ -34,6 +34,9 @@ declare const alert: tailwind_variants.TVReturnType<{
34
34
  variant: {
35
35
  solid: {};
36
36
  flat: {};
37
+ faded: {
38
+ base: string;
39
+ };
37
40
  bordered: {
38
41
  base: string;
39
42
  };
@@ -55,10 +58,18 @@ declare const alert: tailwind_variants.TVReturnType<{
55
58
  base: string;
56
59
  };
57
60
  };
58
- hasDescription: {
61
+ hideIcon: {
62
+ true: {
63
+ iconWrapper: string;
64
+ };
65
+ };
66
+ hideIconWrapper: {
59
67
  true: {
60
- alertIcon: string;
68
+ base: string;
69
+ iconWrapper: string;
61
70
  };
71
+ };
72
+ hasDescription: {
62
73
  false: {
63
74
  base: string;
64
75
  mainWrapper: string;
@@ -66,10 +77,11 @@ declare const alert: tailwind_variants.TVReturnType<{
66
77
  };
67
78
  }, {
68
79
  base: string;
69
- mainWrapper: string[];
80
+ mainWrapper: string;
70
81
  title: string;
71
82
  description: string;
72
83
  closeButton: string;
84
+ iconWrapper: string;
73
85
  alertIcon: string;
74
86
  }, undefined, tailwind_variants_dist_config.TVConfig<{
75
87
  color: {
@@ -83,6 +95,9 @@ declare const alert: tailwind_variants.TVReturnType<{
83
95
  variant: {
84
96
  solid: {};
85
97
  flat: {};
98
+ faded: {
99
+ base: string;
100
+ };
86
101
  bordered: {
87
102
  base: string;
88
103
  };
@@ -104,10 +119,18 @@ declare const alert: tailwind_variants.TVReturnType<{
104
119
  base: string;
105
120
  };
106
121
  };
107
- hasDescription: {
122
+ hideIcon: {
108
123
  true: {
109
- alertIcon: string;
124
+ iconWrapper: string;
125
+ };
126
+ };
127
+ hideIconWrapper: {
128
+ true: {
129
+ base: string;
130
+ iconWrapper: string;
110
131
  };
132
+ };
133
+ hasDescription: {
111
134
  false: {
112
135
  base: string;
113
136
  mainWrapper: string;
@@ -125,6 +148,9 @@ declare const alert: tailwind_variants.TVReturnType<{
125
148
  variant: {
126
149
  solid: {};
127
150
  flat: {};
151
+ faded: {
152
+ base: string;
153
+ };
128
154
  bordered: {
129
155
  base: string;
130
156
  };
@@ -146,10 +172,18 @@ declare const alert: tailwind_variants.TVReturnType<{
146
172
  base: string;
147
173
  };
148
174
  };
149
- hasDescription: {
175
+ hideIcon: {
176
+ true: {
177
+ iconWrapper: string;
178
+ };
179
+ };
180
+ hideIconWrapper: {
150
181
  true: {
151
- alertIcon: string;
182
+ base: string;
183
+ iconWrapper: string;
152
184
  };
185
+ };
186
+ hasDescription: {
153
187
  false: {
154
188
  base: string;
155
189
  mainWrapper: string;
@@ -167,6 +201,9 @@ declare const alert: tailwind_variants.TVReturnType<{
167
201
  variant: {
168
202
  solid: {};
169
203
  flat: {};
204
+ faded: {
205
+ base: string;
206
+ };
170
207
  bordered: {
171
208
  base: string;
172
209
  };
@@ -188,10 +225,18 @@ declare const alert: tailwind_variants.TVReturnType<{
188
225
  base: string;
189
226
  };
190
227
  };
191
- hasDescription: {
228
+ hideIcon: {
192
229
  true: {
193
- alertIcon: string;
230
+ iconWrapper: string;
194
231
  };
232
+ };
233
+ hideIconWrapper: {
234
+ true: {
235
+ base: string;
236
+ iconWrapper: string;
237
+ };
238
+ };
239
+ hasDescription: {
195
240
  false: {
196
241
  base: string;
197
242
  mainWrapper: string;
@@ -199,10 +244,11 @@ declare const alert: tailwind_variants.TVReturnType<{
199
244
  };
200
245
  }, {
201
246
  base: string;
202
- mainWrapper: string[];
247
+ mainWrapper: string;
203
248
  title: string;
204
249
  description: string;
205
250
  closeButton: string;
251
+ iconWrapper: string;
206
252
  alertIcon: string;
207
253
  }, tailwind_variants.TVReturnType<{
208
254
  color: {
@@ -216,6 +262,9 @@ declare const alert: tailwind_variants.TVReturnType<{
216
262
  variant: {
217
263
  solid: {};
218
264
  flat: {};
265
+ faded: {
266
+ base: string;
267
+ };
219
268
  bordered: {
220
269
  base: string;
221
270
  };
@@ -237,10 +286,18 @@ declare const alert: tailwind_variants.TVReturnType<{
237
286
  base: string;
238
287
  };
239
288
  };
240
- hasDescription: {
289
+ hideIcon: {
290
+ true: {
291
+ iconWrapper: string;
292
+ };
293
+ };
294
+ hideIconWrapper: {
241
295
  true: {
242
- alertIcon: string;
296
+ base: string;
297
+ iconWrapper: string;
243
298
  };
299
+ };
300
+ hasDescription: {
244
301
  false: {
245
302
  base: string;
246
303
  mainWrapper: string;
@@ -248,10 +305,11 @@ declare const alert: tailwind_variants.TVReturnType<{
248
305
  };
249
306
  }, {
250
307
  base: string;
251
- mainWrapper: string[];
308
+ mainWrapper: string;
252
309
  title: string;
253
310
  description: string;
254
311
  closeButton: string;
312
+ iconWrapper: string;
255
313
  alertIcon: string;
256
314
  }, undefined, tailwind_variants_dist_config.TVConfig<{
257
315
  color: {
@@ -265,6 +323,9 @@ declare const alert: tailwind_variants.TVReturnType<{
265
323
  variant: {
266
324
  solid: {};
267
325
  flat: {};
326
+ faded: {
327
+ base: string;
328
+ };
268
329
  bordered: {
269
330
  base: string;
270
331
  };
@@ -286,10 +347,18 @@ declare const alert: tailwind_variants.TVReturnType<{
286
347
  base: string;
287
348
  };
288
349
  };
289
- hasDescription: {
350
+ hideIcon: {
290
351
  true: {
291
- alertIcon: string;
352
+ iconWrapper: string;
292
353
  };
354
+ };
355
+ hideIconWrapper: {
356
+ true: {
357
+ base: string;
358
+ iconWrapper: string;
359
+ };
360
+ };
361
+ hasDescription: {
293
362
  false: {
294
363
  base: string;
295
364
  mainWrapper: string;
@@ -307,6 +376,9 @@ declare const alert: tailwind_variants.TVReturnType<{
307
376
  variant: {
308
377
  solid: {};
309
378
  flat: {};
379
+ faded: {
380
+ base: string;
381
+ };
310
382
  bordered: {
311
383
  base: string;
312
384
  };
@@ -328,10 +400,18 @@ declare const alert: tailwind_variants.TVReturnType<{
328
400
  base: string;
329
401
  };
330
402
  };
331
- hasDescription: {
403
+ hideIcon: {
332
404
  true: {
333
- alertIcon: string;
405
+ iconWrapper: string;
334
406
  };
407
+ };
408
+ hideIconWrapper: {
409
+ true: {
410
+ base: string;
411
+ iconWrapper: string;
412
+ };
413
+ };
414
+ hasDescription: {
335
415
  false: {
336
416
  base: string;
337
417
  mainWrapper: string;