@nextui-org/theme 0.0.0-dev-v2-20230610220209 → 0.0.0-dev-v2-20230612221453

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.
Files changed (45) hide show
  1. package/dist/{chunk-N37GPOJZ.mjs → chunk-3L2LTGPE.mjs} +1 -1
  2. package/dist/{chunk-IJYQWVHA.mjs → chunk-B5DUUZBQ.mjs} +1 -1
  3. package/dist/{chunk-E3HXNSRG.mjs → chunk-CU2CEJ2Y.mjs} +1 -1
  4. package/dist/{chunk-ADHGFNBD.mjs → chunk-G6KSF7PF.mjs} +50 -20
  5. package/dist/{chunk-3JGHMXH7.mjs → chunk-IY2YC7CG.mjs} +49 -19
  6. package/dist/{chunk-ZL6WUYLC.mjs → chunk-LKIEW7IB.mjs} +1 -1
  7. package/dist/{chunk-WLZX7EUD.mjs → chunk-LPECHTXS.mjs} +8 -6
  8. package/dist/{chunk-4MSPP245.mjs → chunk-MVHNLIGC.mjs} +1 -1
  9. package/dist/{chunk-7L4D24BE.mjs → chunk-ODLEUC3L.mjs} +1 -1
  10. package/dist/{chunk-IQPW7V4N.mjs → chunk-W3WKU3QV.mjs} +2 -2
  11. package/dist/{chunk-TCPSKMTP.mjs → chunk-YRIORG7Z.mjs} +1 -1
  12. package/dist/components/avatar.js +2 -2
  13. package/dist/components/avatar.mjs +2 -2
  14. package/dist/components/badge.d.ts +12 -36
  15. package/dist/components/badge.js +50 -20
  16. package/dist/components/badge.mjs +2 -2
  17. package/dist/components/button.js +2 -2
  18. package/dist/components/button.mjs +2 -2
  19. package/dist/components/chip.js +2 -2
  20. package/dist/components/chip.mjs +2 -2
  21. package/dist/components/code.js +2 -2
  22. package/dist/components/code.mjs +2 -2
  23. package/dist/components/index.js +107 -45
  24. package/dist/components/index.mjs +23 -23
  25. package/dist/components/modal.d.ts +9 -5
  26. package/dist/components/modal.js +8 -6
  27. package/dist/components/modal.mjs +1 -1
  28. package/dist/components/pagination.js +2 -2
  29. package/dist/components/pagination.mjs +2 -2
  30. package/dist/components/popover.js +2 -2
  31. package/dist/components/popover.mjs +2 -2
  32. package/dist/components/snippet.d.ts +12 -36
  33. package/dist/components/snippet.js +51 -21
  34. package/dist/components/snippet.mjs +2 -2
  35. package/dist/components/tabs.js +2 -2
  36. package/dist/components/tabs.mjs +2 -2
  37. package/dist/index.js +107 -45
  38. package/dist/index.mjs +25 -25
  39. package/dist/plugin.mjs +2 -2
  40. package/dist/utils/index.js +2 -2
  41. package/dist/utils/index.mjs +1 -1
  42. package/dist/utils/variants.js +2 -2
  43. package/dist/utils/variants.mjs +1 -1
  44. package/package.json +1 -1
  45. package/dist/{chunk-7M7P7JYC.mjs → chunk-45VMNIGW.mjs} +3 -3
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  colorVariants
3
- } from "./chunk-IQPW7V4N.mjs";
3
+ } from "./chunk-W3WKU3QV.mjs";
4
4
  import {
5
5
  ringClasses
6
6
  } from "./chunk-INZK6TTL.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  colorVariants
3
- } from "./chunk-IQPW7V4N.mjs";
3
+ } from "./chunk-W3WKU3QV.mjs";
4
4
 
5
5
  // src/components/button.ts
6
6
  import { tv } from "tailwind-variants";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  colorVariants
3
- } from "./chunk-IQPW7V4N.mjs";
3
+ } from "./chunk-W3WKU3QV.mjs";
4
4
 
5
5
  // src/components/code.ts
6
6
  import { tv } from "tailwind-variants";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  colorVariants
3
- } from "./chunk-IQPW7V4N.mjs";
3
+ } from "./chunk-W3WKU3QV.mjs";
4
4
 
5
5
  // src/components/snippet.ts
6
6
  import { tv } from "tailwind-variants";
@@ -30,28 +30,16 @@ var snippet = tv({
30
30
  variant: {
31
31
  flat: "",
32
32
  solid: "",
33
- bordered: "border-2 !bg-transparent",
33
+ bordered: "border-2 bg-transparent",
34
34
  shadow: ""
35
35
  },
36
36
  color: {
37
- default: {
38
- base: colorVariants.flat.default
39
- },
40
- primary: {
41
- base: colorVariants.flat.primary
42
- },
43
- secondary: {
44
- base: colorVariants.flat.secondary
45
- },
46
- success: {
47
- base: colorVariants.flat.success
48
- },
49
- warning: {
50
- base: colorVariants.flat.warning
51
- },
52
- danger: {
53
- base: colorVariants.flat.danger
54
- }
37
+ default: {},
38
+ primary: {},
39
+ secondary: {},
40
+ success: {},
41
+ warning: {},
42
+ danger: {}
55
43
  },
56
44
  size: {
57
45
  xs: {
@@ -115,6 +103,48 @@ var snippet = tv({
115
103
  disableAnimation: false
116
104
  },
117
105
  compoundVariants: [
106
+ {
107
+ variant: "flat",
108
+ color: "default",
109
+ class: {
110
+ base: colorVariants.flat.default
111
+ }
112
+ },
113
+ {
114
+ variant: "flat",
115
+ color: "primary",
116
+ class: {
117
+ base: colorVariants.flat.primary
118
+ }
119
+ },
120
+ {
121
+ variant: "flat",
122
+ color: "secondary",
123
+ class: {
124
+ base: colorVariants.flat.secondary
125
+ }
126
+ },
127
+ {
128
+ variant: "flat",
129
+ color: "success",
130
+ class: {
131
+ base: colorVariants.flat.success
132
+ }
133
+ },
134
+ {
135
+ variant: "flat",
136
+ color: "warning",
137
+ class: {
138
+ base: colorVariants.flat.warning
139
+ }
140
+ },
141
+ {
142
+ variant: "flat",
143
+ color: "danger",
144
+ class: {
145
+ base: colorVariants.flat.danger
146
+ }
147
+ },
118
148
  {
119
149
  variant: "solid",
120
150
  color: "default",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  colorVariants
3
- } from "./chunk-IQPW7V4N.mjs";
3
+ } from "./chunk-W3WKU3QV.mjs";
4
4
 
5
5
  // src/components/badge.ts
6
6
  import { tv } from "tailwind-variants";
@@ -37,24 +37,12 @@ var badge = tv({
37
37
  shadow: {}
38
38
  },
39
39
  color: {
40
- default: {
41
- badge: colorVariants.solid.default
42
- },
43
- primary: {
44
- badge: colorVariants.solid.primary
45
- },
46
- secondary: {
47
- badge: colorVariants.solid.secondary
48
- },
49
- success: {
50
- badge: colorVariants.solid.success
51
- },
52
- warning: {
53
- badge: colorVariants.solid.warning
54
- },
55
- danger: {
56
- badge: colorVariants.solid.danger
57
- }
40
+ default: {},
41
+ primary: {},
42
+ secondary: {},
43
+ success: {},
44
+ warning: {},
45
+ danger: {}
58
46
  },
59
47
  size: {
60
48
  xs: {
@@ -132,6 +120,48 @@ var badge = tv({
132
120
  isInvisible: false
133
121
  },
134
122
  compoundVariants: [
123
+ {
124
+ variant: "solid",
125
+ color: "default",
126
+ class: {
127
+ badge: colorVariants.solid.default
128
+ }
129
+ },
130
+ {
131
+ variant: "solid",
132
+ color: "primary",
133
+ class: {
134
+ badge: colorVariants.solid.primary
135
+ }
136
+ },
137
+ {
138
+ variant: "solid",
139
+ color: "secondary",
140
+ class: {
141
+ badge: colorVariants.solid.secondary
142
+ }
143
+ },
144
+ {
145
+ variant: "solid",
146
+ color: "success",
147
+ class: {
148
+ badge: colorVariants.solid.success
149
+ }
150
+ },
151
+ {
152
+ variant: "solid",
153
+ color: "warning",
154
+ class: {
155
+ badge: colorVariants.solid.warning
156
+ }
157
+ },
158
+ {
159
+ variant: "solid",
160
+ color: "danger",
161
+ class: {
162
+ badge: colorVariants.solid.danger
163
+ }
164
+ },
135
165
  {
136
166
  variant: "shadow",
137
167
  color: "default",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  colorVariants
3
- } from "./chunk-IQPW7V4N.mjs";
3
+ } from "./chunk-W3WKU3QV.mjs";
4
4
  import {
5
5
  translateCenterClasses
6
6
  } from "./chunk-INZK6TTL.mjs";
@@ -5,7 +5,7 @@ var modal = tv({
5
5
  wrapper: [
6
6
  "flex",
7
7
  "w-screen",
8
- "h-screen",
8
+ "h-[100dvh]",
9
9
  "fixed",
10
10
  "inset-0",
11
11
  "z-50",
@@ -29,7 +29,7 @@ var modal = tv({
29
29
  "my-16"
30
30
  ],
31
31
  trigger: [],
32
- backdrop: ["hidden", "z-50"],
32
+ backdrop: "z-50",
33
33
  header: "flex py-4 px-6 flex-initial text-lg font-semibold",
34
34
  body: "flex flex-1 flex-col gap-3 px-6 py-2",
35
35
  footer: "flex flex-row gap-2 px-6 py-4 justify-end",
@@ -83,7 +83,7 @@ var modal = tv({
83
83
  base: "max-w-5xl"
84
84
  },
85
85
  full: {
86
- base: "my-0 max-w-full rounded-none min-h-screen"
86
+ base: "my-0 max-w-full min-h-full rounded-none "
87
87
  }
88
88
  },
89
89
  radius: {
@@ -97,7 +97,9 @@ var modal = tv({
97
97
  "3xl": { base: "rounded-3xl" }
98
98
  },
99
99
  backdrop: {
100
- transparent: {},
100
+ transparent: {
101
+ backdrop: "hidden"
102
+ },
101
103
  opaque: {
102
104
  backdrop: "bg-black/50 backdrop-opacity-50"
103
105
  },
@@ -107,7 +109,7 @@ var modal = tv({
107
109
  },
108
110
  scrollBehavior: {
109
111
  normal: {
110
- base: ["overflow-y-hidden"]
112
+ base: "overflow-y-hidden"
111
113
  },
112
114
  inside: {
113
115
  base: "max-h-[calc(100%_-_7.5rem)]",
@@ -129,7 +131,7 @@ var modal = tv({
129
131
  {
130
132
  backdrop: ["opaque", "blur"],
131
133
  class: {
132
- backdrop: "block w-full h-full fixed inset-0"
134
+ backdrop: "w-full h-full fixed inset-0"
133
135
  }
134
136
  }
135
137
  ]
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  colorVariants
3
- } from "./chunk-IQPW7V4N.mjs";
3
+ } from "./chunk-W3WKU3QV.mjs";
4
4
 
5
5
  // src/components/pagination.ts
6
6
  import { tv } from "tailwind-variants";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  colorVariants
3
- } from "./chunk-IQPW7V4N.mjs";
3
+ } from "./chunk-W3WKU3QV.mjs";
4
4
 
5
5
  // src/components/tabs.ts
6
6
  import { tv } from "tailwind-variants";
@@ -30,8 +30,8 @@ var flat = {
30
30
  default: "bg-default-100 text-default-foreground",
31
31
  primary: "bg-primary-50 text-primary",
32
32
  secondary: "bg-secondary-100 text-secondary",
33
- success: "bg-success-50 text-success",
34
- warning: "bg-warning-50 text-warning",
33
+ success: "bg-success-50 text-success-600 dark:text-success",
34
+ warning: "bg-warning-50 text-warning-600 dark:text-warning",
35
35
  danger: "bg-danger-50 text-danger",
36
36
  foreground: "bg-foreground/10 text-foreground"
37
37
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  colorVariants
3
- } from "./chunk-IQPW7V4N.mjs";
3
+ } from "./chunk-W3WKU3QV.mjs";
4
4
 
5
5
  // src/components/popover.ts
6
6
  import { tv } from "tailwind-variants";
@@ -67,8 +67,8 @@ var flat = {
67
67
  default: "bg-default-100 text-default-foreground",
68
68
  primary: "bg-primary-50 text-primary",
69
69
  secondary: "bg-secondary-100 text-secondary",
70
- success: "bg-success-50 text-success",
71
- warning: "bg-warning-50 text-warning",
70
+ success: "bg-success-50 text-success-600 dark:text-success",
71
+ warning: "bg-warning-50 text-warning-600 dark:text-warning",
72
72
  danger: "bg-danger-50 text-danger",
73
73
  foreground: "bg-foreground/10 text-foreground"
74
74
  };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  avatar,
3
3
  avatarGroup
4
- } from "../chunk-ZL6WUYLC.mjs";
4
+ } from "../chunk-LKIEW7IB.mjs";
5
5
  import "../chunk-CMYR6AOY.mjs";
6
6
  import "../chunk-K7LK7NCE.mjs";
7
- import "../chunk-IQPW7V4N.mjs";
7
+ import "../chunk-W3WKU3QV.mjs";
8
8
  import "../chunk-INZK6TTL.mjs";
9
9
  export {
10
10
  avatar,
@@ -23,24 +23,12 @@ declare const badge: tailwind_variants.TVReturnType<{
23
23
  shadow: {};
24
24
  };
25
25
  color: {
26
- default: {
27
- badge: string;
28
- };
29
- primary: {
30
- badge: string;
31
- };
32
- secondary: {
33
- badge: string;
34
- };
35
- success: {
36
- badge: string;
37
- };
38
- warning: {
39
- badge: string;
40
- };
41
- danger: {
42
- badge: string;
43
- };
26
+ default: {};
27
+ primary: {};
28
+ secondary: {};
29
+ success: {};
30
+ warning: {};
31
+ danger: {};
44
32
  };
45
33
  size: {
46
34
  xs: {
@@ -132,24 +120,12 @@ declare const badge: tailwind_variants.TVReturnType<{
132
120
  shadow: {};
133
121
  };
134
122
  color: {
135
- default: {
136
- badge: string;
137
- };
138
- primary: {
139
- badge: string;
140
- };
141
- secondary: {
142
- badge: string;
143
- };
144
- success: {
145
- badge: string;
146
- };
147
- warning: {
148
- badge: string;
149
- };
150
- danger: {
151
- badge: string;
152
- };
123
+ default: {};
124
+ primary: {};
125
+ secondary: {};
126
+ success: {};
127
+ warning: {};
128
+ danger: {};
153
129
  };
154
130
  size: {
155
131
  xs: {
@@ -57,8 +57,8 @@ var flat = {
57
57
  default: "bg-default-100 text-default-foreground",
58
58
  primary: "bg-primary-50 text-primary",
59
59
  secondary: "bg-secondary-100 text-secondary",
60
- success: "bg-success-50 text-success",
61
- warning: "bg-warning-50 text-warning",
60
+ success: "bg-success-50 text-success-600 dark:text-success",
61
+ warning: "bg-warning-50 text-warning-600 dark:text-warning",
62
62
  danger: "bg-danger-50 text-danger",
63
63
  foreground: "bg-foreground/10 text-foreground"
64
64
  };
@@ -133,24 +133,12 @@ var badge = (0, import_tailwind_variants.tv)({
133
133
  shadow: {}
134
134
  },
135
135
  color: {
136
- default: {
137
- badge: colorVariants.solid.default
138
- },
139
- primary: {
140
- badge: colorVariants.solid.primary
141
- },
142
- secondary: {
143
- badge: colorVariants.solid.secondary
144
- },
145
- success: {
146
- badge: colorVariants.solid.success
147
- },
148
- warning: {
149
- badge: colorVariants.solid.warning
150
- },
151
- danger: {
152
- badge: colorVariants.solid.danger
153
- }
136
+ default: {},
137
+ primary: {},
138
+ secondary: {},
139
+ success: {},
140
+ warning: {},
141
+ danger: {}
154
142
  },
155
143
  size: {
156
144
  xs: {
@@ -228,6 +216,48 @@ var badge = (0, import_tailwind_variants.tv)({
228
216
  isInvisible: false
229
217
  },
230
218
  compoundVariants: [
219
+ {
220
+ variant: "solid",
221
+ color: "default",
222
+ class: {
223
+ badge: colorVariants.solid.default
224
+ }
225
+ },
226
+ {
227
+ variant: "solid",
228
+ color: "primary",
229
+ class: {
230
+ badge: colorVariants.solid.primary
231
+ }
232
+ },
233
+ {
234
+ variant: "solid",
235
+ color: "secondary",
236
+ class: {
237
+ badge: colorVariants.solid.secondary
238
+ }
239
+ },
240
+ {
241
+ variant: "solid",
242
+ color: "success",
243
+ class: {
244
+ badge: colorVariants.solid.success
245
+ }
246
+ },
247
+ {
248
+ variant: "solid",
249
+ color: "warning",
250
+ class: {
251
+ badge: colorVariants.solid.warning
252
+ }
253
+ },
254
+ {
255
+ variant: "solid",
256
+ color: "danger",
257
+ class: {
258
+ badge: colorVariants.solid.danger
259
+ }
260
+ },
231
261
  {
232
262
  variant: "shadow",
233
263
  color: "default",
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  badge
3
- } from "../chunk-3JGHMXH7.mjs";
3
+ } from "../chunk-IY2YC7CG.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
5
  import "../chunk-K7LK7NCE.mjs";
6
- import "../chunk-IQPW7V4N.mjs";
6
+ import "../chunk-W3WKU3QV.mjs";
7
7
  import "../chunk-INZK6TTL.mjs";
8
8
  export {
9
9
  badge
@@ -58,8 +58,8 @@ var flat = {
58
58
  default: "bg-default-100 text-default-foreground",
59
59
  primary: "bg-primary-50 text-primary",
60
60
  secondary: "bg-secondary-100 text-secondary",
61
- success: "bg-success-50 text-success",
62
- warning: "bg-warning-50 text-warning",
61
+ success: "bg-success-50 text-success-600 dark:text-success",
62
+ warning: "bg-warning-50 text-warning-600 dark:text-warning",
63
63
  danger: "bg-danger-50 text-danger",
64
64
  foreground: "bg-foreground/10 text-foreground"
65
65
  };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  button,
3
3
  buttonGroup
4
- } from "../chunk-IJYQWVHA.mjs";
4
+ } from "../chunk-B5DUUZBQ.mjs";
5
5
  import "../chunk-CMYR6AOY.mjs";
6
6
  import "../chunk-K7LK7NCE.mjs";
7
- import "../chunk-IQPW7V4N.mjs";
7
+ import "../chunk-W3WKU3QV.mjs";
8
8
  import "../chunk-INZK6TTL.mjs";
9
9
  export {
10
10
  button,
@@ -67,8 +67,8 @@ var flat = {
67
67
  default: "bg-default-100 text-default-foreground",
68
68
  primary: "bg-primary-50 text-primary",
69
69
  secondary: "bg-secondary-100 text-secondary",
70
- success: "bg-success-50 text-success",
71
- warning: "bg-warning-50 text-warning",
70
+ success: "bg-success-50 text-success-600 dark:text-success",
71
+ warning: "bg-warning-50 text-warning-600 dark:text-warning",
72
72
  danger: "bg-danger-50 text-danger",
73
73
  foreground: "bg-foreground/10 text-foreground"
74
74
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  chip
3
- } from "../chunk-N37GPOJZ.mjs";
3
+ } from "../chunk-3L2LTGPE.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
5
  import "../chunk-K7LK7NCE.mjs";
6
- import "../chunk-IQPW7V4N.mjs";
6
+ import "../chunk-W3WKU3QV.mjs";
7
7
  import "../chunk-INZK6TTL.mjs";
8
8
  export {
9
9
  chip
@@ -57,8 +57,8 @@ var flat = {
57
57
  default: "bg-default-100 text-default-foreground",
58
58
  primary: "bg-primary-50 text-primary",
59
59
  secondary: "bg-secondary-100 text-secondary",
60
- success: "bg-success-50 text-success",
61
- warning: "bg-warning-50 text-warning",
60
+ success: "bg-success-50 text-success-600 dark:text-success",
61
+ warning: "bg-warning-50 text-warning-600 dark:text-warning",
62
62
  danger: "bg-danger-50 text-danger",
63
63
  foreground: "bg-foreground/10 text-foreground"
64
64
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  code
3
- } from "../chunk-E3HXNSRG.mjs";
3
+ } from "../chunk-CU2CEJ2Y.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
5
  import "../chunk-K7LK7NCE.mjs";
6
- import "../chunk-IQPW7V4N.mjs";
6
+ import "../chunk-W3WKU3QV.mjs";
7
7
  import "../chunk-INZK6TTL.mjs";
8
8
  export {
9
9
  code