@nextui-org/theme 0.0.0-dev-v2-20230428210058 → 0.0.0-dev-v2-20230429140802

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.
@@ -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"
@@ -69,7 +69,7 @@ var badge = tv({
69
69
  badge: "px-1 text-sm"
70
70
  },
71
71
  xl: {
72
- badge: "px-1 text-md"
72
+ badge: "px-1 text-base"
73
73
  }
74
74
  },
75
75
  placement: {
@@ -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-md"
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-md",
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-md",
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",
@@ -1,18 +1,18 @@
1
+ import {
2
+ utilities
3
+ } from "./chunk-XLATS5QU.mjs";
1
4
  import {
2
5
  baseStyles
3
6
  } from "./chunk-INZK6TTL.mjs";
4
7
  import {
5
- utilities
6
- } from "./chunk-XLATS5QU.mjs";
8
+ animations
9
+ } from "./chunk-DMASP6FA.mjs";
7
10
  import {
8
11
  semanticColors
9
12
  } from "./chunk-LQHWK6UV.mjs";
10
13
  import {
11
14
  removeDefaultKeys
12
15
  } from "./chunk-37PIXVP4.mjs";
13
- import {
14
- animations
15
- } from "./chunk-DMASP6FA.mjs";
16
16
  import {
17
17
  commonColors
18
18
  } from "./chunk-CRCBVLUP.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";
@@ -141,10 +142,12 @@ var nextui = (config = {}) => {
141
142
  const userLightColors = get(config.themes, "light", {});
142
143
  const userDarkColors = get(config.themes, "dark", {});
143
144
  const defaultTheme = config.defaultTheme || "light";
145
+ const otherThemes = omit(config.themes, ["light", "dark"]) || {};
144
146
  return corePlugin(
145
147
  {
146
148
  light: deepMerge(semanticColors.light, userLightColors),
147
- dark: deepMerge(semanticColors.dark, userDarkColors)
149
+ dark: deepMerge(semanticColors.dark, userDarkColors),
150
+ ...otherThemes
148
151
  },
149
152
  defaultTheme
150
153
  );
@@ -63,7 +63,7 @@ var avatar = tv({
63
63
  base: "w-12 h-12 text-sm"
64
64
  },
65
65
  xl: {
66
- base: "w-16 h-16 text-md"
66
+ base: "w-16 h-16 text-base"
67
67
  }
68
68
  },
69
69
  color: {
@@ -43,7 +43,7 @@ var button = tv({
43
43
  xs: "px-2 h-6 text-xs",
44
44
  sm: "px-3 h-8 text-sm",
45
45
  md: "px-4 h-10 text-base",
46
- lg: "px-6 h-12 text-md",
46
+ lg: "px-6 h-12 text-base",
47
47
  xl: "px-8 h-14 text-lg"
48
48
  },
49
49
  color: {
@@ -165,7 +165,7 @@ var avatar = (0, import_tailwind_variants.tv)({
165
165
  base: "w-12 h-12 text-sm"
166
166
  },
167
167
  xl: {
168
- base: "w-16 h-16 text-md"
168
+ base: "w-16 h-16 text-base"
169
169
  }
170
170
  },
171
171
  color: {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  avatar
3
- } from "../chunk-VZVHC65R.mjs";
3
+ } from "../chunk-S7ZC2I7Y.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
5
  import "../chunk-K7LK7NCE.mjs";
6
6
  import "../chunk-RO3WUCFF.mjs";
@@ -165,7 +165,7 @@ var badge = (0, import_tailwind_variants.tv)({
165
165
  badge: "px-1 text-sm"
166
166
  },
167
167
  xl: {
168
- badge: "px-1 text-md"
168
+ badge: "px-1 text-base"
169
169
  }
170
170
  },
171
171
  placement: {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  badge
3
- } from "../chunk-NGIVT5FF.mjs";
3
+ } from "../chunk-CPWIXBDM.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
5
  import "../chunk-K7LK7NCE.mjs";
6
6
  import "../chunk-RO3WUCFF.mjs";
@@ -139,7 +139,7 @@ var button = (0, import_tailwind_variants.tv)({
139
139
  xs: "px-2 h-6 text-xs",
140
140
  sm: "px-3 h-8 text-sm",
141
141
  md: "px-4 h-10 text-base",
142
- lg: "px-6 h-12 text-md",
142
+ lg: "px-6 h-12 text-base",
143
143
  xl: "px-8 h-14 text-lg"
144
144
  },
145
145
  color: {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  button
3
- } from "../chunk-PWHNLVBK.mjs";
3
+ } from "../chunk-UM54LZPC.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
5
  import "../chunk-K7LK7NCE.mjs";
6
6
  import "../chunk-RO3WUCFF.mjs";
@@ -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-md"
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-md",
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-md"
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-md"
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-md",
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-md",
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-KDFSOQOQ.mjs";
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
- dropdownMenu
46
- } from "../chunk-FCYNUVAR.mjs";
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-DO44X4Z2.mjs";
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
- checkboxGroup
67
- } from "../chunk-U77YMEWM.mjs";
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
- accordionItem
91
- } from "../chunk-XSFH4S4Y.mjs";
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-VZVHC65R.mjs";
94
+ } from "../chunk-S7ZC2I7Y.mjs";
101
95
  import {
102
96
  badge
103
- } from "../chunk-NGIVT5FF.mjs";
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-PWHNLVBK.mjs";
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,
@@ -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-md"
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-md",
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-md",
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",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  input
3
- } from "../chunk-DO44X4Z2.mjs";
3
+ } from "../chunk-PH4OFVEH.mjs";
4
4
  export {
5
5
  input
6
6
  };
@@ -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"
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pagination
3
- } from "../chunk-KDFSOQOQ.mjs";
3
+ } from "../chunk-3LME35GX.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
5
  import "../chunk-K7LK7NCE.mjs";
6
6
  import "../chunk-RO3WUCFF.mjs";
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-md"
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-md",
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-md"
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-md"
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-md",
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-md",
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
@@ -6746,10 +6742,12 @@ var nextui = (config = {}) => {
6746
6742
  const userLightColors = (0, import_lodash2.default)(config.themes, "light", {});
6747
6743
  const userDarkColors = (0, import_lodash2.default)(config.themes, "dark", {});
6748
6744
  const defaultTheme = config.defaultTheme || "light";
6745
+ const otherThemes = (0, import_lodash3.default)(config.themes, ["light", "dark"]) || {};
6749
6746
  return corePlugin(
6750
6747
  {
6751
6748
  light: (0, import_deepmerge.default)(semanticColors.light, userLightColors),
6752
- dark: (0, import_deepmerge.default)(semanticColors.dark, userDarkColors)
6749
+ dark: (0, import_deepmerge.default)(semanticColors.dark, userDarkColors),
6750
+ ...otherThemes
6753
6751
  },
6754
6752
  defaultTheme
6755
6753
  );
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-KDFSOQOQ.mjs";
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
- dropdownMenu
46
- } from "./chunk-FCYNUVAR.mjs";
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-DO44X4Z2.mjs";
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
- checkboxGroup
67
- } from "./chunk-U77YMEWM.mjs";
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
- accordionItem
91
- } from "./chunk-XSFH4S4Y.mjs";
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-VZVHC65R.mjs";
94
+ } from "./chunk-S7ZC2I7Y.mjs";
101
95
  import {
102
96
  badge
103
- } from "./chunk-NGIVT5FF.mjs";
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-PWHNLVBK.mjs";
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-6OQWBLVS.mjs";
120
+ } from "./chunk-PTN3XJU3.mjs";
121
+ import "./chunk-XLATS5QU.mjs";
121
122
  import {
122
123
  absoluteFullClasses,
123
124
  baseStyles,
@@ -125,7 +126,7 @@ import {
125
126
  ringClasses,
126
127
  translateCenterClasses
127
128
  } from "./chunk-INZK6TTL.mjs";
128
- import "./chunk-XLATS5QU.mjs";
129
+ import "./chunk-DMASP6FA.mjs";
129
130
  import "./chunk-WQEDQHKX.mjs";
130
131
  import {
131
132
  colors
@@ -135,7 +136,6 @@ import {
135
136
  } from "./chunk-LQHWK6UV.mjs";
136
137
  import "./chunk-37PIXVP4.mjs";
137
138
  import "./chunk-M63AFAHO.mjs";
138
- import "./chunk-DMASP6FA.mjs";
139
139
  import {
140
140
  commonColors
141
141
  } from "./chunk-CRCBVLUP.mjs";
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
@@ -581,10 +582,12 @@ var nextui = (config = {}) => {
581
582
  const userLightColors = (0, import_lodash2.default)(config.themes, "light", {});
582
583
  const userDarkColors = (0, import_lodash2.default)(config.themes, "dark", {});
583
584
  const defaultTheme = config.defaultTheme || "light";
585
+ const otherThemes = (0, import_lodash3.default)(config.themes, ["light", "dark"]) || {};
584
586
  return corePlugin(
585
587
  {
586
588
  light: (0, import_deepmerge.default)(semanticColors.light, userLightColors),
587
- dark: (0, import_deepmerge.default)(semanticColors.dark, userDarkColors)
589
+ dark: (0, import_deepmerge.default)(semanticColors.dark, userDarkColors),
590
+ ...otherThemes
588
591
  },
589
592
  defaultTheme
590
593
  );
package/dist/plugin.mjs CHANGED
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  nextui
3
- } from "./chunk-6OQWBLVS.mjs";
4
- import "./chunk-INZK6TTL.mjs";
3
+ } from "./chunk-PTN3XJU3.mjs";
5
4
  import "./chunk-XLATS5QU.mjs";
5
+ import "./chunk-INZK6TTL.mjs";
6
+ import "./chunk-DMASP6FA.mjs";
6
7
  import "./chunk-WQEDQHKX.mjs";
7
8
  import "./chunk-M74ZSXB7.mjs";
8
9
  import "./chunk-LQHWK6UV.mjs";
9
10
  import "./chunk-37PIXVP4.mjs";
10
11
  import "./chunk-M63AFAHO.mjs";
11
- import "./chunk-DMASP6FA.mjs";
12
12
  import "./chunk-CRCBVLUP.mjs";
13
13
  import "./chunk-DCEG5LGX.mjs";
14
14
  import "./chunk-L2OL7R23.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextui-org/theme",
3
- "version": "0.0.0-dev-v2-20230428210058",
3
+ "version": "0.0.0-dev-v2-20230429140802",
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
  },