@nextui-org/theme 0.0.0-dev-v2-20230428210058 → 0.0.0-dev-v2-20230429142755
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-KDFSOQOQ.mjs → chunk-3LME35GX.mjs} +1 -6
- package/dist/{chunk-NGIVT5FF.mjs → chunk-CPWIXBDM.mjs} +1 -1
- package/dist/{chunk-6OQWBLVS.mjs → chunk-GDJKO7UA.mjs} +10 -6
- package/dist/{chunk-DO44X4Z2.mjs → chunk-PH4OFVEH.mjs} +3 -3
- package/dist/{chunk-VZVHC65R.mjs → chunk-S7ZC2I7Y.mjs} +1 -1
- package/dist/{chunk-PWHNLVBK.mjs → chunk-UM54LZPC.mjs} +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/avatar.mjs +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/badge.mjs +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/button.mjs +1 -1
- package/dist/components/index.js +7 -12
- package/dist/components/index.mjs +17 -17
- package/dist/components/input.js +3 -3
- package/dist/components/input.mjs +1 -1
- package/dist/components/pagination.js +1 -6
- package/dist/components/pagination.mjs +1 -1
- package/dist/index.js +14 -15
- package/dist/index.mjs +19 -19
- package/dist/plugin.js +7 -3
- package/dist/plugin.mjs +2 -2
- package/package.json +3 -1
|
@@ -26,12 +26,7 @@ var pagination = tv({
|
|
|
26
26
|
variants: {
|
|
27
27
|
variant: {
|
|
28
28
|
bordered: {
|
|
29
|
-
item: [
|
|
30
|
-
"border-2",
|
|
31
|
-
"border-neutral",
|
|
32
|
-
"bg-transparent",
|
|
33
|
-
"data-[hover=true]:bg-neutral-100"
|
|
34
|
-
]
|
|
29
|
+
item: ["border-2", "border-neutral", "bg-transparent", "data-[hover=true]:bg-neutral-100"]
|
|
35
30
|
},
|
|
36
31
|
light: {
|
|
37
32
|
item: "bg-transparent"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
baseStyles
|
|
3
|
-
} from "./chunk-INZK6TTL.mjs";
|
|
4
1
|
import {
|
|
5
2
|
utilities
|
|
6
3
|
} from "./chunk-XLATS5QU.mjs";
|
|
4
|
+
import {
|
|
5
|
+
baseStyles
|
|
6
|
+
} from "./chunk-INZK6TTL.mjs";
|
|
7
7
|
import {
|
|
8
8
|
semanticColors
|
|
9
9
|
} from "./chunk-LQHWK6UV.mjs";
|
|
@@ -23,6 +23,7 @@ import plugin from "tailwindcss/plugin.js";
|
|
|
23
23
|
import forEach from "lodash.foreach";
|
|
24
24
|
import flatten from "flat";
|
|
25
25
|
import get from "lodash.get";
|
|
26
|
+
import omit from "lodash.omit";
|
|
26
27
|
import deepMerge from "deepmerge";
|
|
27
28
|
var SCHEME = Symbol("color-scheme");
|
|
28
29
|
var VAR_PREFIX = "nextui";
|
|
@@ -138,13 +139,16 @@ var corePlugin = (config = {}, defaultTheme) => {
|
|
|
138
139
|
);
|
|
139
140
|
};
|
|
140
141
|
var nextui = (config = {}) => {
|
|
141
|
-
const
|
|
142
|
-
const
|
|
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", {});
|
|
143
145
|
const defaultTheme = config.defaultTheme || "light";
|
|
146
|
+
const otherThemes = omit(themeObject, ["light", "dark"]) || {};
|
|
144
147
|
return corePlugin(
|
|
145
148
|
{
|
|
146
149
|
light: deepMerge(semanticColors.light, userLightColors),
|
|
147
|
-
dark: deepMerge(semanticColors.dark, userDarkColors)
|
|
150
|
+
dark: deepMerge(semanticColors.dark, userDarkColors),
|
|
151
|
+
...otherThemes
|
|
148
152
|
},
|
|
149
153
|
defaultTheme
|
|
150
154
|
);
|
|
@@ -109,7 +109,7 @@ var input = tv({
|
|
|
109
109
|
label: "text-xs",
|
|
110
110
|
inputWrapper: "h-8 px-2",
|
|
111
111
|
input: "text-xs",
|
|
112
|
-
clearButton: "text-
|
|
112
|
+
clearButton: "text-base"
|
|
113
113
|
},
|
|
114
114
|
md: {
|
|
115
115
|
inputWrapper: "h-10",
|
|
@@ -123,7 +123,7 @@ var input = tv({
|
|
|
123
123
|
},
|
|
124
124
|
xl: {
|
|
125
125
|
inputWrapper: "h-14",
|
|
126
|
-
input: "text-
|
|
126
|
+
input: "text-base",
|
|
127
127
|
clearButton: "text-xl right-3.5"
|
|
128
128
|
}
|
|
129
129
|
},
|
|
@@ -710,7 +710,7 @@ var input = tv({
|
|
|
710
710
|
size: "xl",
|
|
711
711
|
class: {
|
|
712
712
|
label: [
|
|
713
|
-
"text-
|
|
713
|
+
"text-base",
|
|
714
714
|
"group-focus-within:text-sm",
|
|
715
715
|
"group-focus-within:-translate-y-3",
|
|
716
716
|
"group-[.is-filled]:text-sm",
|
package/dist/components/badge.js
CHANGED
package/dist/components/index.js
CHANGED
|
@@ -211,7 +211,7 @@ var avatar = (0, import_tailwind_variants.tv)({
|
|
|
211
211
|
base: "w-12 h-12 text-sm"
|
|
212
212
|
},
|
|
213
213
|
xl: {
|
|
214
|
-
base: "w-16 h-16 text-
|
|
214
|
+
base: "w-16 h-16 text-base"
|
|
215
215
|
}
|
|
216
216
|
},
|
|
217
217
|
color: {
|
|
@@ -726,7 +726,7 @@ var button = (0, import_tailwind_variants6.tv)({
|
|
|
726
726
|
xs: "px-2 h-6 text-xs",
|
|
727
727
|
sm: "px-3 h-8 text-sm",
|
|
728
728
|
md: "px-4 h-10 text-base",
|
|
729
|
-
lg: "px-6 h-12 text-
|
|
729
|
+
lg: "px-6 h-12 text-base",
|
|
730
730
|
xl: "px-8 h-14 text-lg"
|
|
731
731
|
},
|
|
732
732
|
color: {
|
|
@@ -2259,7 +2259,7 @@ var badge = (0, import_tailwind_variants14.tv)({
|
|
|
2259
2259
|
badge: "px-1 text-sm"
|
|
2260
2260
|
},
|
|
2261
2261
|
xl: {
|
|
2262
|
-
badge: "px-1 text-
|
|
2262
|
+
badge: "px-1 text-base"
|
|
2263
2263
|
}
|
|
2264
2264
|
},
|
|
2265
2265
|
placement: {
|
|
@@ -2937,12 +2937,7 @@ var pagination = (0, import_tailwind_variants19.tv)({
|
|
|
2937
2937
|
variants: {
|
|
2938
2938
|
variant: {
|
|
2939
2939
|
bordered: {
|
|
2940
|
-
item: [
|
|
2941
|
-
"border-2",
|
|
2942
|
-
"border-neutral",
|
|
2943
|
-
"bg-transparent",
|
|
2944
|
-
"data-[hover=true]:bg-neutral-100"
|
|
2945
|
-
]
|
|
2940
|
+
item: ["border-2", "border-neutral", "bg-transparent", "data-[hover=true]:bg-neutral-100"]
|
|
2946
2941
|
},
|
|
2947
2942
|
light: {
|
|
2948
2943
|
item: "bg-transparent"
|
|
@@ -3915,7 +3910,7 @@ var input = (0, import_tailwind_variants25.tv)({
|
|
|
3915
3910
|
label: "text-xs",
|
|
3916
3911
|
inputWrapper: "h-8 px-2",
|
|
3917
3912
|
input: "text-xs",
|
|
3918
|
-
clearButton: "text-
|
|
3913
|
+
clearButton: "text-base"
|
|
3919
3914
|
},
|
|
3920
3915
|
md: {
|
|
3921
3916
|
inputWrapper: "h-10",
|
|
@@ -3929,7 +3924,7 @@ var input = (0, import_tailwind_variants25.tv)({
|
|
|
3929
3924
|
},
|
|
3930
3925
|
xl: {
|
|
3931
3926
|
inputWrapper: "h-14",
|
|
3932
|
-
input: "text-
|
|
3927
|
+
input: "text-base",
|
|
3933
3928
|
clearButton: "text-xl right-3.5"
|
|
3934
3929
|
}
|
|
3935
3930
|
},
|
|
@@ -4516,7 +4511,7 @@ var input = (0, import_tailwind_variants25.tv)({
|
|
|
4516
4511
|
size: "xl",
|
|
4517
4512
|
class: {
|
|
4518
4513
|
label: [
|
|
4519
|
-
"text-
|
|
4514
|
+
"text-base",
|
|
4520
4515
|
"group-focus-within:text-sm",
|
|
4521
4516
|
"group-focus-within:-translate-y-3",
|
|
4522
4517
|
"group-[.is-filled]:text-sm",
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import "../chunk-T6HAGWX5.mjs";
|
|
2
|
-
import {
|
|
3
|
-
spacer
|
|
4
|
-
} from "../chunk-3B4SYPW2.mjs";
|
|
5
2
|
import {
|
|
6
3
|
spinner
|
|
7
4
|
} from "../chunk-XUL76UJD.mjs";
|
|
@@ -17,15 +14,12 @@ import {
|
|
|
17
14
|
import {
|
|
18
15
|
user
|
|
19
16
|
} from "../chunk-MW7UVOSP.mjs";
|
|
20
|
-
import {
|
|
21
|
-
modal
|
|
22
|
-
} from "../chunk-YMIOHWCD.mjs";
|
|
23
17
|
import {
|
|
24
18
|
navbar
|
|
25
19
|
} from "../chunk-U3BMJPED.mjs";
|
|
26
20
|
import {
|
|
27
21
|
pagination
|
|
28
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-3LME35GX.mjs";
|
|
29
23
|
import {
|
|
30
24
|
popover
|
|
31
25
|
} from "../chunk-JWVJZEAT.mjs";
|
|
@@ -42,8 +36,8 @@ import {
|
|
|
42
36
|
snippet
|
|
43
37
|
} from "../chunk-4XSCIGTZ.mjs";
|
|
44
38
|
import {
|
|
45
|
-
|
|
46
|
-
} from "../chunk-
|
|
39
|
+
spacer
|
|
40
|
+
} from "../chunk-3B4SYPW2.mjs";
|
|
47
41
|
import {
|
|
48
42
|
dropdownSection
|
|
49
43
|
} from "../chunk-AVGEHFT4.mjs";
|
|
@@ -55,7 +49,7 @@ import {
|
|
|
55
49
|
} from "../chunk-6GGRJ6I7.mjs";
|
|
56
50
|
import {
|
|
57
51
|
input
|
|
58
|
-
} from "../chunk-
|
|
52
|
+
} from "../chunk-PH4OFVEH.mjs";
|
|
59
53
|
import {
|
|
60
54
|
kbd
|
|
61
55
|
} from "../chunk-KUQBSI5S.mjs";
|
|
@@ -63,8 +57,8 @@ import {
|
|
|
63
57
|
link
|
|
64
58
|
} from "../chunk-XICTHLAR.mjs";
|
|
65
59
|
import {
|
|
66
|
-
|
|
67
|
-
} from "../chunk-
|
|
60
|
+
modal
|
|
61
|
+
} from "../chunk-YMIOHWCD.mjs";
|
|
68
62
|
import {
|
|
69
63
|
checkbox
|
|
70
64
|
} from "../chunk-7EKGN7JP.mjs";
|
|
@@ -87,8 +81,8 @@ import {
|
|
|
87
81
|
dropdownItem
|
|
88
82
|
} from "../chunk-Z6VEZVD6.mjs";
|
|
89
83
|
import {
|
|
90
|
-
|
|
91
|
-
} from "../chunk-
|
|
84
|
+
dropdownMenu
|
|
85
|
+
} from "../chunk-FCYNUVAR.mjs";
|
|
92
86
|
import {
|
|
93
87
|
accordion
|
|
94
88
|
} from "../chunk-YYBLBQIV.mjs";
|
|
@@ -97,22 +91,28 @@ import {
|
|
|
97
91
|
} from "../chunk-MLH3XSY7.mjs";
|
|
98
92
|
import {
|
|
99
93
|
avatar
|
|
100
|
-
} from "../chunk-
|
|
94
|
+
} from "../chunk-S7ZC2I7Y.mjs";
|
|
101
95
|
import {
|
|
102
96
|
badge
|
|
103
|
-
} from "../chunk-
|
|
97
|
+
} from "../chunk-CPWIXBDM.mjs";
|
|
104
98
|
import {
|
|
105
99
|
buttonGroup
|
|
106
100
|
} from "../chunk-VKFQ7EZN.mjs";
|
|
107
101
|
import {
|
|
108
102
|
button
|
|
109
|
-
} from "../chunk-
|
|
103
|
+
} from "../chunk-UM54LZPC.mjs";
|
|
110
104
|
import "../chunk-CMYR6AOY.mjs";
|
|
111
105
|
import "../chunk-K7LK7NCE.mjs";
|
|
112
106
|
import "../chunk-RO3WUCFF.mjs";
|
|
113
107
|
import {
|
|
114
108
|
card
|
|
115
109
|
} from "../chunk-6QKRZ3JE.mjs";
|
|
110
|
+
import {
|
|
111
|
+
checkboxGroup
|
|
112
|
+
} from "../chunk-U77YMEWM.mjs";
|
|
113
|
+
import {
|
|
114
|
+
accordionItem
|
|
115
|
+
} from "../chunk-XSFH4S4Y.mjs";
|
|
116
116
|
import "../chunk-INZK6TTL.mjs";
|
|
117
117
|
export {
|
|
118
118
|
accordion,
|
package/dist/components/input.js
CHANGED
|
@@ -133,7 +133,7 @@ var input = (0, import_tailwind_variants.tv)({
|
|
|
133
133
|
label: "text-xs",
|
|
134
134
|
inputWrapper: "h-8 px-2",
|
|
135
135
|
input: "text-xs",
|
|
136
|
-
clearButton: "text-
|
|
136
|
+
clearButton: "text-base"
|
|
137
137
|
},
|
|
138
138
|
md: {
|
|
139
139
|
inputWrapper: "h-10",
|
|
@@ -147,7 +147,7 @@ var input = (0, import_tailwind_variants.tv)({
|
|
|
147
147
|
},
|
|
148
148
|
xl: {
|
|
149
149
|
inputWrapper: "h-14",
|
|
150
|
-
input: "text-
|
|
150
|
+
input: "text-base",
|
|
151
151
|
clearButton: "text-xl right-3.5"
|
|
152
152
|
}
|
|
153
153
|
},
|
|
@@ -734,7 +734,7 @@ var input = (0, import_tailwind_variants.tv)({
|
|
|
734
734
|
size: "xl",
|
|
735
735
|
class: {
|
|
736
736
|
label: [
|
|
737
|
-
"text-
|
|
737
|
+
"text-base",
|
|
738
738
|
"group-focus-within:text-sm",
|
|
739
739
|
"group-focus-within:-translate-y-3",
|
|
740
740
|
"group-[.is-filled]:text-sm",
|
|
@@ -122,12 +122,7 @@ var pagination = (0, import_tailwind_variants.tv)({
|
|
|
122
122
|
variants: {
|
|
123
123
|
variant: {
|
|
124
124
|
bordered: {
|
|
125
|
-
item: [
|
|
126
|
-
"border-2",
|
|
127
|
-
"border-neutral",
|
|
128
|
-
"bg-transparent",
|
|
129
|
-
"data-[hover=true]:bg-neutral-100"
|
|
130
|
-
]
|
|
125
|
+
item: ["border-2", "border-neutral", "bg-transparent", "data-[hover=true]:bg-neutral-100"]
|
|
131
126
|
},
|
|
132
127
|
light: {
|
|
133
128
|
item: "bg-transparent"
|
package/dist/index.js
CHANGED
|
@@ -243,7 +243,7 @@ var avatar = (0, import_tailwind_variants.tv)({
|
|
|
243
243
|
base: "w-12 h-12 text-sm"
|
|
244
244
|
},
|
|
245
245
|
xl: {
|
|
246
|
-
base: "w-16 h-16 text-
|
|
246
|
+
base: "w-16 h-16 text-base"
|
|
247
247
|
}
|
|
248
248
|
},
|
|
249
249
|
color: {
|
|
@@ -758,7 +758,7 @@ var button = (0, import_tailwind_variants6.tv)({
|
|
|
758
758
|
xs: "px-2 h-6 text-xs",
|
|
759
759
|
sm: "px-3 h-8 text-sm",
|
|
760
760
|
md: "px-4 h-10 text-base",
|
|
761
|
-
lg: "px-6 h-12 text-
|
|
761
|
+
lg: "px-6 h-12 text-base",
|
|
762
762
|
xl: "px-8 h-14 text-lg"
|
|
763
763
|
},
|
|
764
764
|
color: {
|
|
@@ -2291,7 +2291,7 @@ var badge = (0, import_tailwind_variants14.tv)({
|
|
|
2291
2291
|
badge: "px-1 text-sm"
|
|
2292
2292
|
},
|
|
2293
2293
|
xl: {
|
|
2294
|
-
badge: "px-1 text-
|
|
2294
|
+
badge: "px-1 text-base"
|
|
2295
2295
|
}
|
|
2296
2296
|
},
|
|
2297
2297
|
placement: {
|
|
@@ -2969,12 +2969,7 @@ var pagination = (0, import_tailwind_variants19.tv)({
|
|
|
2969
2969
|
variants: {
|
|
2970
2970
|
variant: {
|
|
2971
2971
|
bordered: {
|
|
2972
|
-
item: [
|
|
2973
|
-
"border-2",
|
|
2974
|
-
"border-neutral",
|
|
2975
|
-
"bg-transparent",
|
|
2976
|
-
"data-[hover=true]:bg-neutral-100"
|
|
2977
|
-
]
|
|
2972
|
+
item: ["border-2", "border-neutral", "bg-transparent", "data-[hover=true]:bg-neutral-100"]
|
|
2978
2973
|
},
|
|
2979
2974
|
light: {
|
|
2980
2975
|
item: "bg-transparent"
|
|
@@ -3947,7 +3942,7 @@ var input = (0, import_tailwind_variants25.tv)({
|
|
|
3947
3942
|
label: "text-xs",
|
|
3948
3943
|
inputWrapper: "h-8 px-2",
|
|
3949
3944
|
input: "text-xs",
|
|
3950
|
-
clearButton: "text-
|
|
3945
|
+
clearButton: "text-base"
|
|
3951
3946
|
},
|
|
3952
3947
|
md: {
|
|
3953
3948
|
inputWrapper: "h-10",
|
|
@@ -3961,7 +3956,7 @@ var input = (0, import_tailwind_variants25.tv)({
|
|
|
3961
3956
|
},
|
|
3962
3957
|
xl: {
|
|
3963
3958
|
inputWrapper: "h-14",
|
|
3964
|
-
input: "text-
|
|
3959
|
+
input: "text-base",
|
|
3965
3960
|
clearButton: "text-xl right-3.5"
|
|
3966
3961
|
}
|
|
3967
3962
|
},
|
|
@@ -4548,7 +4543,7 @@ var input = (0, import_tailwind_variants25.tv)({
|
|
|
4548
4543
|
size: "xl",
|
|
4549
4544
|
class: {
|
|
4550
4545
|
label: [
|
|
4551
|
-
"text-
|
|
4546
|
+
"text-base",
|
|
4552
4547
|
"group-focus-within:text-sm",
|
|
4553
4548
|
"group-focus-within:-translate-y-3",
|
|
4554
4549
|
"group-[.is-filled]:text-sm",
|
|
@@ -6483,6 +6478,7 @@ var import_plugin = __toESM(require("tailwindcss/plugin.js"));
|
|
|
6483
6478
|
var import_lodash = __toESM(require("lodash.foreach"));
|
|
6484
6479
|
var import_flat = __toESM(require("flat"));
|
|
6485
6480
|
var import_lodash2 = __toESM(require("lodash.get"));
|
|
6481
|
+
var import_lodash3 = __toESM(require("lodash.omit"));
|
|
6486
6482
|
var import_deepmerge = __toESM(require("deepmerge"));
|
|
6487
6483
|
|
|
6488
6484
|
// src/animations/index.ts
|
|
@@ -6743,13 +6739,16 @@ var corePlugin = (config = {}, defaultTheme) => {
|
|
|
6743
6739
|
);
|
|
6744
6740
|
};
|
|
6745
6741
|
var nextui = (config = {}) => {
|
|
6746
|
-
const
|
|
6747
|
-
const
|
|
6742
|
+
const themeObject = typeof config.themes === "function" ? config.themes({ dark, light: light2 }) : config.themes;
|
|
6743
|
+
const userLightColors = (0, import_lodash2.default)(themeObject, "light", {});
|
|
6744
|
+
const userDarkColors = (0, import_lodash2.default)(themeObject, "dark", {});
|
|
6748
6745
|
const defaultTheme = config.defaultTheme || "light";
|
|
6746
|
+
const otherThemes = (0, import_lodash3.default)(themeObject, ["light", "dark"]) || {};
|
|
6749
6747
|
return corePlugin(
|
|
6750
6748
|
{
|
|
6751
6749
|
light: (0, import_deepmerge.default)(semanticColors.light, userLightColors),
|
|
6752
|
-
dark: (0, import_deepmerge.default)(semanticColors.dark, userDarkColors)
|
|
6750
|
+
dark: (0, import_deepmerge.default)(semanticColors.dark, userDarkColors),
|
|
6751
|
+
...otherThemes
|
|
6753
6752
|
},
|
|
6754
6753
|
defaultTheme
|
|
6755
6754
|
);
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import "./chunk-T6HAGWX5.mjs";
|
|
2
|
-
import {
|
|
3
|
-
spacer
|
|
4
|
-
} from "./chunk-3B4SYPW2.mjs";
|
|
5
2
|
import {
|
|
6
3
|
spinner
|
|
7
4
|
} from "./chunk-XUL76UJD.mjs";
|
|
@@ -17,15 +14,12 @@ import {
|
|
|
17
14
|
import {
|
|
18
15
|
user
|
|
19
16
|
} from "./chunk-MW7UVOSP.mjs";
|
|
20
|
-
import {
|
|
21
|
-
modal
|
|
22
|
-
} from "./chunk-YMIOHWCD.mjs";
|
|
23
17
|
import {
|
|
24
18
|
navbar
|
|
25
19
|
} from "./chunk-U3BMJPED.mjs";
|
|
26
20
|
import {
|
|
27
21
|
pagination
|
|
28
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-3LME35GX.mjs";
|
|
29
23
|
import {
|
|
30
24
|
popover
|
|
31
25
|
} from "./chunk-JWVJZEAT.mjs";
|
|
@@ -42,8 +36,8 @@ import {
|
|
|
42
36
|
snippet
|
|
43
37
|
} from "./chunk-4XSCIGTZ.mjs";
|
|
44
38
|
import {
|
|
45
|
-
|
|
46
|
-
} from "./chunk-
|
|
39
|
+
spacer
|
|
40
|
+
} from "./chunk-3B4SYPW2.mjs";
|
|
47
41
|
import {
|
|
48
42
|
dropdownSection
|
|
49
43
|
} from "./chunk-AVGEHFT4.mjs";
|
|
@@ -55,7 +49,7 @@ import {
|
|
|
55
49
|
} from "./chunk-6GGRJ6I7.mjs";
|
|
56
50
|
import {
|
|
57
51
|
input
|
|
58
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-PH4OFVEH.mjs";
|
|
59
53
|
import {
|
|
60
54
|
kbd
|
|
61
55
|
} from "./chunk-KUQBSI5S.mjs";
|
|
@@ -63,8 +57,8 @@ import {
|
|
|
63
57
|
link
|
|
64
58
|
} from "./chunk-XICTHLAR.mjs";
|
|
65
59
|
import {
|
|
66
|
-
|
|
67
|
-
} from "./chunk-
|
|
60
|
+
modal
|
|
61
|
+
} from "./chunk-YMIOHWCD.mjs";
|
|
68
62
|
import {
|
|
69
63
|
checkbox
|
|
70
64
|
} from "./chunk-7EKGN7JP.mjs";
|
|
@@ -87,8 +81,8 @@ import {
|
|
|
87
81
|
dropdownItem
|
|
88
82
|
} from "./chunk-Z6VEZVD6.mjs";
|
|
89
83
|
import {
|
|
90
|
-
|
|
91
|
-
} from "./chunk-
|
|
84
|
+
dropdownMenu
|
|
85
|
+
} from "./chunk-FCYNUVAR.mjs";
|
|
92
86
|
import {
|
|
93
87
|
accordion
|
|
94
88
|
} from "./chunk-YYBLBQIV.mjs";
|
|
@@ -97,16 +91,16 @@ import {
|
|
|
97
91
|
} from "./chunk-MLH3XSY7.mjs";
|
|
98
92
|
import {
|
|
99
93
|
avatar
|
|
100
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-S7ZC2I7Y.mjs";
|
|
101
95
|
import {
|
|
102
96
|
badge
|
|
103
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-CPWIXBDM.mjs";
|
|
104
98
|
import {
|
|
105
99
|
buttonGroup
|
|
106
100
|
} from "./chunk-VKFQ7EZN.mjs";
|
|
107
101
|
import {
|
|
108
102
|
button
|
|
109
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-UM54LZPC.mjs";
|
|
110
104
|
import "./chunk-CMYR6AOY.mjs";
|
|
111
105
|
import "./chunk-K7LK7NCE.mjs";
|
|
112
106
|
import {
|
|
@@ -115,9 +109,16 @@ import {
|
|
|
115
109
|
import {
|
|
116
110
|
card
|
|
117
111
|
} from "./chunk-6QKRZ3JE.mjs";
|
|
112
|
+
import {
|
|
113
|
+
checkboxGroup
|
|
114
|
+
} from "./chunk-U77YMEWM.mjs";
|
|
115
|
+
import {
|
|
116
|
+
accordionItem
|
|
117
|
+
} from "./chunk-XSFH4S4Y.mjs";
|
|
118
118
|
import {
|
|
119
119
|
nextui
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-GDJKO7UA.mjs";
|
|
121
|
+
import "./chunk-XLATS5QU.mjs";
|
|
121
122
|
import {
|
|
122
123
|
absoluteFullClasses,
|
|
123
124
|
baseStyles,
|
|
@@ -125,7 +126,6 @@ import {
|
|
|
125
126
|
ringClasses,
|
|
126
127
|
translateCenterClasses
|
|
127
128
|
} from "./chunk-INZK6TTL.mjs";
|
|
128
|
-
import "./chunk-XLATS5QU.mjs";
|
|
129
129
|
import "./chunk-WQEDQHKX.mjs";
|
|
130
130
|
import {
|
|
131
131
|
colors
|
package/dist/plugin.js
CHANGED
|
@@ -34,6 +34,7 @@ var import_plugin = __toESM(require("tailwindcss/plugin.js"));
|
|
|
34
34
|
var import_lodash = __toESM(require("lodash.foreach"));
|
|
35
35
|
var import_flat = __toESM(require("flat"));
|
|
36
36
|
var import_lodash2 = __toESM(require("lodash.get"));
|
|
37
|
+
var import_lodash3 = __toESM(require("lodash.omit"));
|
|
37
38
|
var import_deepmerge = __toESM(require("deepmerge"));
|
|
38
39
|
|
|
39
40
|
// src/colors/blue.ts
|
|
@@ -578,13 +579,16 @@ var corePlugin = (config = {}, defaultTheme) => {
|
|
|
578
579
|
);
|
|
579
580
|
};
|
|
580
581
|
var nextui = (config = {}) => {
|
|
581
|
-
const
|
|
582
|
-
const
|
|
582
|
+
const themeObject = typeof config.themes === "function" ? config.themes({ dark, light }) : config.themes;
|
|
583
|
+
const userLightColors = (0, import_lodash2.default)(themeObject, "light", {});
|
|
584
|
+
const userDarkColors = (0, import_lodash2.default)(themeObject, "dark", {});
|
|
583
585
|
const defaultTheme = config.defaultTheme || "light";
|
|
586
|
+
const otherThemes = (0, import_lodash3.default)(themeObject, ["light", "dark"]) || {};
|
|
584
587
|
return corePlugin(
|
|
585
588
|
{
|
|
586
589
|
light: (0, import_deepmerge.default)(semanticColors.light, userLightColors),
|
|
587
|
-
dark: (0, import_deepmerge.default)(semanticColors.dark, userDarkColors)
|
|
590
|
+
dark: (0, import_deepmerge.default)(semanticColors.dark, userDarkColors),
|
|
591
|
+
...otherThemes
|
|
588
592
|
},
|
|
589
593
|
defaultTheme
|
|
590
594
|
);
|
package/dist/plugin.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
nextui
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-INZK6TTL.mjs";
|
|
3
|
+
} from "./chunk-GDJKO7UA.mjs";
|
|
5
4
|
import "./chunk-XLATS5QU.mjs";
|
|
5
|
+
import "./chunk-INZK6TTL.mjs";
|
|
6
6
|
import "./chunk-WQEDQHKX.mjs";
|
|
7
7
|
import "./chunk-M74ZSXB7.mjs";
|
|
8
8
|
import "./chunk-LQHWK6UV.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextui-org/theme",
|
|
3
|
-
"version": "0.0.0-dev-v2-
|
|
3
|
+
"version": "0.0.0-dev-v2-20230429142755",
|
|
4
4
|
"description": "The default theme for NextUI components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"theme",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"url": "https://github.com/nextui-org/nextui/issues"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
+
"@types/lodash.omit": "^4.5.7",
|
|
40
41
|
"color": "^4.2.3",
|
|
41
42
|
"color2k": "^2.0.2",
|
|
42
43
|
"deepmerge": "4.3.0",
|
|
@@ -44,6 +45,7 @@
|
|
|
44
45
|
"lodash.foreach": "^4.5.0",
|
|
45
46
|
"lodash.get": "^4.4.2",
|
|
46
47
|
"lodash.isempty": "^4.4.0",
|
|
48
|
+
"lodash.omit": "^4.5.0",
|
|
47
49
|
"tailwind-variants": "^0.1.3",
|
|
48
50
|
"tailwindcss": "^3.2.7"
|
|
49
51
|
},
|