@nextui-org/theme 0.0.0-dev-v2-20230702153650 → 0.0.0-dev-v2-20230702175730
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-H7GKXBYI.mjs → chunk-2S23U72D.mjs} +9 -6
- package/dist/{chunk-ZACTN4QJ.mjs → chunk-G4RCK475.mjs} +1 -1
- package/dist/{chunk-MEZC3VSI.mjs → chunk-KUNVFLXJ.mjs} +1 -4
- package/dist/{chunk-7HEEC54H.mjs → chunk-QZTWGJ72.mjs} +1 -1
- package/dist/colors/index.js +0 -1
- package/dist/colors/index.mjs +3 -3
- package/dist/colors/semantic.js +0 -1
- package/dist/colors/semantic.mjs +2 -2
- package/dist/colors.js +0 -1
- package/dist/colors.mjs +3 -3
- package/dist/components/accordion.mjs +1 -1
- package/dist/components/avatar.mjs +2 -2
- package/dist/components/badge.mjs +2 -2
- package/dist/components/button.mjs +2 -2
- package/dist/components/card.mjs +1 -1
- package/dist/components/checkbox.mjs +1 -1
- package/dist/components/chip.mjs +2 -2
- package/dist/components/code.mjs +2 -2
- package/dist/components/dropdown.mjs +1 -1
- package/dist/components/index.mjs +39 -39
- package/dist/components/input.mjs +1 -1
- package/dist/components/link.mjs +1 -1
- package/dist/components/modal.mjs +1 -1
- package/dist/components/navbar.mjs +1 -1
- package/dist/components/pagination.mjs +2 -2
- package/dist/components/popover.mjs +2 -2
- package/dist/components/radio.mjs +1 -1
- package/dist/components/snippet.mjs +2 -2
- package/dist/components/table.mjs +1 -1
- package/dist/components/tabs.mjs +2 -2
- package/dist/components/toggle.mjs +1 -1
- package/dist/components/user.mjs +1 -1
- package/dist/index.js +16 -14
- package/dist/index.mjs +43 -43
- package/dist/plugin.js +16 -14
- package/dist/plugin.mjs +4 -4
- package/dist/utils/object.d.ts +1 -10
- package/dist/utils/object.js +2 -6
- package/dist/utils/object.mjs +3 -5
- package/package.json +11 -3
- package/dist/{chunk-Q7Y2WFSA.mjs → chunk-2OJQTQ24.mjs} +3 -3
- package/dist/{chunk-V5ZTBGGO.mjs → chunk-5LSACMFO.mjs} +3 -3
- package/dist/{chunk-5VNI3CVI.mjs → chunk-ETX5K2PY.mjs} +3 -3
- package/dist/{chunk-BC3PVAWS.mjs → chunk-GZVAQ5VD.mjs} +3 -3
- package/dist/{chunk-ZHGJEVPT.mjs → chunk-JKWIX3WW.mjs} +3 -3
- package/dist/{chunk-6PEULYVG.mjs → chunk-K7J53FGN.mjs} +3 -3
- package/dist/{chunk-DY5676QC.mjs → chunk-L7XBTQSM.mjs} +3 -3
- package/dist/{chunk-XVSYFWXT.mjs → chunk-NHCMORGO.mjs} +3 -3
- package/dist/{chunk-C43HNPNG.mjs → chunk-QA5I3ZAL.mjs} +3 -3
|
@@ -9,11 +9,10 @@ import {
|
|
|
9
9
|
} from "./chunk-G2ZSNGR5.mjs";
|
|
10
10
|
import {
|
|
11
11
|
semanticColors
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-G4RCK475.mjs";
|
|
13
13
|
import {
|
|
14
|
-
flattenThemeObject
|
|
15
|
-
|
|
16
|
-
} from "./chunk-MEZC3VSI.mjs";
|
|
14
|
+
flattenThemeObject
|
|
15
|
+
} from "./chunk-KUNVFLXJ.mjs";
|
|
17
16
|
import {
|
|
18
17
|
darkLayout,
|
|
19
18
|
defaultLayout,
|
|
@@ -30,7 +29,11 @@ import {
|
|
|
30
29
|
// src/plugin.ts
|
|
31
30
|
import Color from "color";
|
|
32
31
|
import plugin from "tailwindcss/plugin.js";
|
|
33
|
-
import
|
|
32
|
+
import get from "lodash.get";
|
|
33
|
+
import omit from "lodash.omit";
|
|
34
|
+
import forEach from "lodash.foreach";
|
|
35
|
+
import mapKeys from "lodash.mapkeys";
|
|
36
|
+
import kebabCase from "lodash.kebabcase";
|
|
34
37
|
import deepMerge from "deepmerge";
|
|
35
38
|
var DEFAULT_PREFIX = "nextui";
|
|
36
39
|
var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
@@ -49,7 +52,7 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
|
49
52
|
"color-scheme": scheme
|
|
50
53
|
} : {};
|
|
51
54
|
const flatColors = flattenThemeObject(colors);
|
|
52
|
-
const flatLayout = layout ?
|
|
55
|
+
const flatLayout = layout ? mapKeys(layout, (value, key) => kebabCase(key)) : {};
|
|
53
56
|
resolved.variants.push({
|
|
54
57
|
name: themeName,
|
|
55
58
|
definition: [`&.${themeName}`, `&[data-theme='${themeName}']`]
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// src/utils/object.ts
|
|
2
2
|
import flatten from "flat";
|
|
3
|
-
import { mapKeys, kebabCase } from "lodash";
|
|
4
3
|
function swapColorValues(colors) {
|
|
5
4
|
const swappedColors = {};
|
|
6
5
|
const keys = Object.keys(colors);
|
|
@@ -34,11 +33,9 @@ var flattenThemeObject = (obj) => removeDefaultKeys(
|
|
|
34
33
|
delimiter: "-"
|
|
35
34
|
})
|
|
36
35
|
);
|
|
37
|
-
var transformKeysToKebab = (obj) => mapKeys(obj, (value, key) => kebabCase(key));
|
|
38
36
|
|
|
39
37
|
export {
|
|
40
38
|
swapColorValues,
|
|
41
39
|
removeDefaultKeys,
|
|
42
|
-
flattenThemeObject
|
|
43
|
-
transformKeysToKebab
|
|
40
|
+
flattenThemeObject
|
|
44
41
|
};
|
package/dist/colors/index.js
CHANGED
|
@@ -163,7 +163,6 @@ var import_color2k = require("color2k");
|
|
|
163
163
|
|
|
164
164
|
// src/utils/object.ts
|
|
165
165
|
var import_flat = __toESM(require("flat"));
|
|
166
|
-
var import_lodash = require("lodash");
|
|
167
166
|
function swapColorValues(colors2) {
|
|
168
167
|
const swappedColors = {};
|
|
169
168
|
const keys = Object.keys(colors2);
|
package/dist/colors/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
colors
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-QZTWGJ72.mjs";
|
|
4
4
|
import {
|
|
5
5
|
semanticColors
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-G4RCK475.mjs";
|
|
7
|
+
import "../chunk-KUNVFLXJ.mjs";
|
|
8
8
|
import "../chunk-M63AFAHO.mjs";
|
|
9
9
|
import {
|
|
10
10
|
commonColors
|
package/dist/colors/semantic.js
CHANGED
|
@@ -35,7 +35,6 @@ var import_color2k = require("color2k");
|
|
|
35
35
|
|
|
36
36
|
// src/utils/object.ts
|
|
37
37
|
var import_flat = __toESM(require("flat"));
|
|
38
|
-
var import_lodash = require("lodash");
|
|
39
38
|
function swapColorValues(colors) {
|
|
40
39
|
const swappedColors = {};
|
|
41
40
|
const keys = Object.keys(colors);
|
package/dist/colors/semantic.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
semanticColors,
|
|
3
3
|
themeColorsDark,
|
|
4
4
|
themeColorsLight
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-G4RCK475.mjs";
|
|
6
|
+
import "../chunk-KUNVFLXJ.mjs";
|
|
7
7
|
import "../chunk-IAS3SFA4.mjs";
|
|
8
8
|
import "../chunk-JUEOCLA3.mjs";
|
|
9
9
|
import "../chunk-3LKKH4AR.mjs";
|
package/dist/colors.js
CHANGED
|
@@ -163,7 +163,6 @@ var import_color2k = require("color2k");
|
|
|
163
163
|
|
|
164
164
|
// src/utils/object.ts
|
|
165
165
|
var import_flat = __toESM(require("flat"));
|
|
166
|
-
var import_lodash = require("lodash");
|
|
167
166
|
function swapColorValues(colors2) {
|
|
168
167
|
const swappedColors = {};
|
|
169
168
|
const keys = Object.keys(colors2);
|
package/dist/colors.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-G4RCK475.mjs";
|
|
8
|
+
import "./chunk-KUNVFLXJ.mjs";
|
|
9
9
|
import "./chunk-M63AFAHO.mjs";
|
|
10
10
|
import {
|
|
11
11
|
commonColors
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
accordion,
|
|
3
3
|
accordionItem
|
|
4
4
|
} from "../chunk-UZZPYFGR.mjs";
|
|
5
|
+
import "../chunk-GMMETTYU.mjs";
|
|
5
6
|
import "../chunk-CMYR6AOY.mjs";
|
|
6
7
|
import "../chunk-K7LK7NCE.mjs";
|
|
7
8
|
import "../chunk-2PIR7DFM.mjs";
|
|
8
|
-
import "../chunk-GMMETTYU.mjs";
|
|
9
9
|
import "../chunk-G2ZSNGR5.mjs";
|
|
10
10
|
export {
|
|
11
11
|
accordion,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
avatar,
|
|
3
3
|
avatarGroup
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-K7J53FGN.mjs";
|
|
5
|
+
import "../chunk-GMMETTYU.mjs";
|
|
5
6
|
import "../chunk-CMYR6AOY.mjs";
|
|
6
7
|
import "../chunk-K7LK7NCE.mjs";
|
|
7
8
|
import "../chunk-2PIR7DFM.mjs";
|
|
8
|
-
import "../chunk-GMMETTYU.mjs";
|
|
9
9
|
import "../chunk-G2ZSNGR5.mjs";
|
|
10
10
|
export {
|
|
11
11
|
avatar,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
badge
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-L7XBTQSM.mjs";
|
|
4
|
+
import "../chunk-GMMETTYU.mjs";
|
|
4
5
|
import "../chunk-CMYR6AOY.mjs";
|
|
5
6
|
import "../chunk-K7LK7NCE.mjs";
|
|
6
7
|
import "../chunk-2PIR7DFM.mjs";
|
|
7
|
-
import "../chunk-GMMETTYU.mjs";
|
|
8
8
|
import "../chunk-G2ZSNGR5.mjs";
|
|
9
9
|
export {
|
|
10
10
|
badge
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
button,
|
|
3
3
|
buttonGroup
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-2OJQTQ24.mjs";
|
|
5
|
+
import "../chunk-GMMETTYU.mjs";
|
|
5
6
|
import "../chunk-CMYR6AOY.mjs";
|
|
6
7
|
import "../chunk-K7LK7NCE.mjs";
|
|
7
8
|
import "../chunk-2PIR7DFM.mjs";
|
|
8
|
-
import "../chunk-GMMETTYU.mjs";
|
|
9
9
|
import "../chunk-G2ZSNGR5.mjs";
|
|
10
10
|
export {
|
|
11
11
|
button,
|
package/dist/components/card.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
card
|
|
3
3
|
} from "../chunk-OFWUJFG6.mjs";
|
|
4
|
+
import "../chunk-GMMETTYU.mjs";
|
|
4
5
|
import "../chunk-CMYR6AOY.mjs";
|
|
5
6
|
import "../chunk-K7LK7NCE.mjs";
|
|
6
7
|
import "../chunk-2PIR7DFM.mjs";
|
|
7
|
-
import "../chunk-GMMETTYU.mjs";
|
|
8
8
|
import "../chunk-G2ZSNGR5.mjs";
|
|
9
9
|
export {
|
|
10
10
|
card
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
checkbox,
|
|
3
3
|
checkboxGroup
|
|
4
4
|
} from "../chunk-RVVPQOCN.mjs";
|
|
5
|
+
import "../chunk-GMMETTYU.mjs";
|
|
5
6
|
import "../chunk-CMYR6AOY.mjs";
|
|
6
7
|
import "../chunk-K7LK7NCE.mjs";
|
|
7
8
|
import "../chunk-2PIR7DFM.mjs";
|
|
8
|
-
import "../chunk-GMMETTYU.mjs";
|
|
9
9
|
import "../chunk-G2ZSNGR5.mjs";
|
|
10
10
|
export {
|
|
11
11
|
checkbox,
|
package/dist/components/chip.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
chip
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-ETX5K2PY.mjs";
|
|
4
|
+
import "../chunk-GMMETTYU.mjs";
|
|
4
5
|
import "../chunk-CMYR6AOY.mjs";
|
|
5
6
|
import "../chunk-K7LK7NCE.mjs";
|
|
6
7
|
import "../chunk-2PIR7DFM.mjs";
|
|
7
|
-
import "../chunk-GMMETTYU.mjs";
|
|
8
8
|
import "../chunk-G2ZSNGR5.mjs";
|
|
9
9
|
export {
|
|
10
10
|
chip
|
package/dist/components/code.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
code
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-5LSACMFO.mjs";
|
|
4
|
+
import "../chunk-GMMETTYU.mjs";
|
|
4
5
|
import "../chunk-CMYR6AOY.mjs";
|
|
5
6
|
import "../chunk-K7LK7NCE.mjs";
|
|
6
7
|
import "../chunk-2PIR7DFM.mjs";
|
|
7
|
-
import "../chunk-GMMETTYU.mjs";
|
|
8
8
|
import "../chunk-G2ZSNGR5.mjs";
|
|
9
9
|
export {
|
|
10
10
|
code
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
dropdownMenu,
|
|
5
5
|
dropdownSection
|
|
6
6
|
} from "../chunk-Y6DYRIUN.mjs";
|
|
7
|
+
import "../chunk-GMMETTYU.mjs";
|
|
7
8
|
import "../chunk-CMYR6AOY.mjs";
|
|
8
9
|
import "../chunk-K7LK7NCE.mjs";
|
|
9
10
|
import "../chunk-2PIR7DFM.mjs";
|
|
10
|
-
import "../chunk-GMMETTYU.mjs";
|
|
11
11
|
import "../chunk-G2ZSNGR5.mjs";
|
|
12
12
|
export {
|
|
13
13
|
dropdown,
|
|
@@ -1,7 +1,25 @@
|
|
|
1
1
|
import "../chunk-PRWEADY4.mjs";
|
|
2
|
+
import {
|
|
3
|
+
table
|
|
4
|
+
} from "../chunk-CJRYUKCX.mjs";
|
|
5
|
+
import {
|
|
6
|
+
tabs
|
|
7
|
+
} from "../chunk-NHCMORGO.mjs";
|
|
8
|
+
import {
|
|
9
|
+
toggle
|
|
10
|
+
} from "../chunk-GCKY7FII.mjs";
|
|
2
11
|
import {
|
|
3
12
|
user
|
|
4
13
|
} from "../chunk-TXDV4YYI.mjs";
|
|
14
|
+
import {
|
|
15
|
+
pagination
|
|
16
|
+
} from "../chunk-JKWIX3WW.mjs";
|
|
17
|
+
import {
|
|
18
|
+
popover
|
|
19
|
+
} from "../chunk-QA5I3ZAL.mjs";
|
|
20
|
+
import {
|
|
21
|
+
progress
|
|
22
|
+
} from "../chunk-524WVPFR.mjs";
|
|
5
23
|
import {
|
|
6
24
|
radio,
|
|
7
25
|
radioGroup
|
|
@@ -11,7 +29,7 @@ import {
|
|
|
11
29
|
} from "../chunk-IWEUZYJF.mjs";
|
|
12
30
|
import {
|
|
13
31
|
snippet
|
|
14
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-GZVAQ5VD.mjs";
|
|
15
33
|
import {
|
|
16
34
|
spacer
|
|
17
35
|
} from "../chunk-W6DVXJB3.mjs";
|
|
@@ -19,14 +37,14 @@ import {
|
|
|
19
37
|
spinner
|
|
20
38
|
} from "../chunk-PSEUPXFL.mjs";
|
|
21
39
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "../chunk-
|
|
40
|
+
dropdown,
|
|
41
|
+
dropdownItem,
|
|
42
|
+
dropdownMenu,
|
|
43
|
+
dropdownSection
|
|
44
|
+
} from "../chunk-Y6DYRIUN.mjs";
|
|
27
45
|
import {
|
|
28
|
-
|
|
29
|
-
} from "../chunk-
|
|
46
|
+
image
|
|
47
|
+
} from "../chunk-LDBYFTHC.mjs";
|
|
30
48
|
import {
|
|
31
49
|
input
|
|
32
50
|
} from "../chunk-SQCHLZL7.mjs";
|
|
@@ -44,38 +62,31 @@ import {
|
|
|
44
62
|
navbar
|
|
45
63
|
} from "../chunk-GHB2MRUU.mjs";
|
|
46
64
|
import {
|
|
47
|
-
|
|
48
|
-
|
|
65
|
+
button,
|
|
66
|
+
buttonGroup
|
|
67
|
+
} from "../chunk-2OJQTQ24.mjs";
|
|
49
68
|
import {
|
|
50
|
-
|
|
51
|
-
} from "../chunk-
|
|
69
|
+
card
|
|
70
|
+
} from "../chunk-OFWUJFG6.mjs";
|
|
52
71
|
import {
|
|
53
|
-
|
|
54
|
-
|
|
72
|
+
checkbox,
|
|
73
|
+
checkboxGroup
|
|
74
|
+
} from "../chunk-RVVPQOCN.mjs";
|
|
55
75
|
import {
|
|
56
76
|
chip
|
|
57
|
-
} from "../chunk-
|
|
77
|
+
} from "../chunk-ETX5K2PY.mjs";
|
|
58
78
|
import {
|
|
59
79
|
circularProgress
|
|
60
80
|
} from "../chunk-WAAJG22Y.mjs";
|
|
61
81
|
import {
|
|
62
82
|
code
|
|
63
|
-
} from "../chunk-
|
|
83
|
+
} from "../chunk-5LSACMFO.mjs";
|
|
64
84
|
import {
|
|
65
85
|
divider
|
|
66
86
|
} from "../chunk-UODOTC2G.mjs";
|
|
67
87
|
import {
|
|
68
88
|
drip
|
|
69
89
|
} from "../chunk-AGUZRGXC.mjs";
|
|
70
|
-
import {
|
|
71
|
-
dropdown,
|
|
72
|
-
dropdownItem,
|
|
73
|
-
dropdownMenu,
|
|
74
|
-
dropdownSection
|
|
75
|
-
} from "../chunk-Y6DYRIUN.mjs";
|
|
76
|
-
import {
|
|
77
|
-
image
|
|
78
|
-
} from "../chunk-LDBYFTHC.mjs";
|
|
79
90
|
import {
|
|
80
91
|
accordion,
|
|
81
92
|
accordionItem
|
|
@@ -83,25 +94,14 @@ import {
|
|
|
83
94
|
import {
|
|
84
95
|
avatar,
|
|
85
96
|
avatarGroup
|
|
86
|
-
} from "../chunk-
|
|
97
|
+
} from "../chunk-K7J53FGN.mjs";
|
|
87
98
|
import {
|
|
88
99
|
badge
|
|
89
|
-
} from "../chunk-
|
|
90
|
-
import
|
|
91
|
-
button,
|
|
92
|
-
buttonGroup
|
|
93
|
-
} from "../chunk-Q7Y2WFSA.mjs";
|
|
94
|
-
import {
|
|
95
|
-
card
|
|
96
|
-
} from "../chunk-OFWUJFG6.mjs";
|
|
97
|
-
import {
|
|
98
|
-
checkbox,
|
|
99
|
-
checkboxGroup
|
|
100
|
-
} from "../chunk-RVVPQOCN.mjs";
|
|
100
|
+
} from "../chunk-L7XBTQSM.mjs";
|
|
101
|
+
import "../chunk-GMMETTYU.mjs";
|
|
101
102
|
import "../chunk-CMYR6AOY.mjs";
|
|
102
103
|
import "../chunk-K7LK7NCE.mjs";
|
|
103
104
|
import "../chunk-2PIR7DFM.mjs";
|
|
104
|
-
import "../chunk-GMMETTYU.mjs";
|
|
105
105
|
import "../chunk-G2ZSNGR5.mjs";
|
|
106
106
|
export {
|
|
107
107
|
accordion,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
input
|
|
3
3
|
} from "../chunk-SQCHLZL7.mjs";
|
|
4
|
+
import "../chunk-GMMETTYU.mjs";
|
|
4
5
|
import "../chunk-CMYR6AOY.mjs";
|
|
5
6
|
import "../chunk-K7LK7NCE.mjs";
|
|
6
7
|
import "../chunk-2PIR7DFM.mjs";
|
|
7
|
-
import "../chunk-GMMETTYU.mjs";
|
|
8
8
|
import "../chunk-G2ZSNGR5.mjs";
|
|
9
9
|
export {
|
|
10
10
|
input
|
package/dist/components/link.mjs
CHANGED
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
link,
|
|
3
3
|
linkAnchorClasses
|
|
4
4
|
} from "../chunk-NXGPICRI.mjs";
|
|
5
|
+
import "../chunk-GMMETTYU.mjs";
|
|
5
6
|
import "../chunk-CMYR6AOY.mjs";
|
|
6
7
|
import "../chunk-K7LK7NCE.mjs";
|
|
7
8
|
import "../chunk-2PIR7DFM.mjs";
|
|
8
|
-
import "../chunk-GMMETTYU.mjs";
|
|
9
9
|
import "../chunk-G2ZSNGR5.mjs";
|
|
10
10
|
export {
|
|
11
11
|
link,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
modal
|
|
3
3
|
} from "../chunk-QMVL7T5G.mjs";
|
|
4
|
+
import "../chunk-GMMETTYU.mjs";
|
|
4
5
|
import "../chunk-CMYR6AOY.mjs";
|
|
5
6
|
import "../chunk-K7LK7NCE.mjs";
|
|
6
7
|
import "../chunk-2PIR7DFM.mjs";
|
|
7
|
-
import "../chunk-GMMETTYU.mjs";
|
|
8
8
|
import "../chunk-G2ZSNGR5.mjs";
|
|
9
9
|
export {
|
|
10
10
|
modal
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
navbar
|
|
3
3
|
} from "../chunk-GHB2MRUU.mjs";
|
|
4
|
+
import "../chunk-GMMETTYU.mjs";
|
|
4
5
|
import "../chunk-CMYR6AOY.mjs";
|
|
5
6
|
import "../chunk-K7LK7NCE.mjs";
|
|
6
7
|
import "../chunk-2PIR7DFM.mjs";
|
|
7
|
-
import "../chunk-GMMETTYU.mjs";
|
|
8
8
|
import "../chunk-G2ZSNGR5.mjs";
|
|
9
9
|
export {
|
|
10
10
|
navbar
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pagination
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-JKWIX3WW.mjs";
|
|
4
|
+
import "../chunk-GMMETTYU.mjs";
|
|
4
5
|
import "../chunk-CMYR6AOY.mjs";
|
|
5
6
|
import "../chunk-K7LK7NCE.mjs";
|
|
6
7
|
import "../chunk-2PIR7DFM.mjs";
|
|
7
|
-
import "../chunk-GMMETTYU.mjs";
|
|
8
8
|
import "../chunk-G2ZSNGR5.mjs";
|
|
9
9
|
export {
|
|
10
10
|
pagination
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
popover
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-QA5I3ZAL.mjs";
|
|
4
|
+
import "../chunk-GMMETTYU.mjs";
|
|
4
5
|
import "../chunk-CMYR6AOY.mjs";
|
|
5
6
|
import "../chunk-K7LK7NCE.mjs";
|
|
6
7
|
import "../chunk-2PIR7DFM.mjs";
|
|
7
|
-
import "../chunk-GMMETTYU.mjs";
|
|
8
8
|
import "../chunk-G2ZSNGR5.mjs";
|
|
9
9
|
export {
|
|
10
10
|
popover
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
radio,
|
|
3
3
|
radioGroup
|
|
4
4
|
} from "../chunk-MBMVULBL.mjs";
|
|
5
|
+
import "../chunk-GMMETTYU.mjs";
|
|
5
6
|
import "../chunk-CMYR6AOY.mjs";
|
|
6
7
|
import "../chunk-K7LK7NCE.mjs";
|
|
7
8
|
import "../chunk-2PIR7DFM.mjs";
|
|
8
|
-
import "../chunk-GMMETTYU.mjs";
|
|
9
9
|
import "../chunk-G2ZSNGR5.mjs";
|
|
10
10
|
export {
|
|
11
11
|
radio,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
snippet
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-GZVAQ5VD.mjs";
|
|
4
|
+
import "../chunk-GMMETTYU.mjs";
|
|
4
5
|
import "../chunk-CMYR6AOY.mjs";
|
|
5
6
|
import "../chunk-K7LK7NCE.mjs";
|
|
6
7
|
import "../chunk-2PIR7DFM.mjs";
|
|
7
|
-
import "../chunk-GMMETTYU.mjs";
|
|
8
8
|
import "../chunk-G2ZSNGR5.mjs";
|
|
9
9
|
export {
|
|
10
10
|
snippet
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
table
|
|
3
3
|
} from "../chunk-CJRYUKCX.mjs";
|
|
4
|
+
import "../chunk-GMMETTYU.mjs";
|
|
4
5
|
import "../chunk-CMYR6AOY.mjs";
|
|
5
6
|
import "../chunk-K7LK7NCE.mjs";
|
|
6
7
|
import "../chunk-2PIR7DFM.mjs";
|
|
7
|
-
import "../chunk-GMMETTYU.mjs";
|
|
8
8
|
import "../chunk-G2ZSNGR5.mjs";
|
|
9
9
|
export {
|
|
10
10
|
table
|
package/dist/components/tabs.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tabs
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-NHCMORGO.mjs";
|
|
4
|
+
import "../chunk-GMMETTYU.mjs";
|
|
4
5
|
import "../chunk-CMYR6AOY.mjs";
|
|
5
6
|
import "../chunk-K7LK7NCE.mjs";
|
|
6
7
|
import "../chunk-2PIR7DFM.mjs";
|
|
7
|
-
import "../chunk-GMMETTYU.mjs";
|
|
8
8
|
import "../chunk-G2ZSNGR5.mjs";
|
|
9
9
|
export {
|
|
10
10
|
tabs
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toggle
|
|
3
3
|
} from "../chunk-GCKY7FII.mjs";
|
|
4
|
+
import "../chunk-GMMETTYU.mjs";
|
|
4
5
|
import "../chunk-CMYR6AOY.mjs";
|
|
5
6
|
import "../chunk-K7LK7NCE.mjs";
|
|
6
7
|
import "../chunk-2PIR7DFM.mjs";
|
|
7
|
-
import "../chunk-GMMETTYU.mjs";
|
|
8
8
|
import "../chunk-G2ZSNGR5.mjs";
|
|
9
9
|
export {
|
|
10
10
|
toggle
|
package/dist/components/user.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
user
|
|
3
3
|
} from "../chunk-TXDV4YYI.mjs";
|
|
4
|
+
import "../chunk-GMMETTYU.mjs";
|
|
4
5
|
import "../chunk-CMYR6AOY.mjs";
|
|
5
6
|
import "../chunk-K7LK7NCE.mjs";
|
|
6
7
|
import "../chunk-2PIR7DFM.mjs";
|
|
7
|
-
import "../chunk-GMMETTYU.mjs";
|
|
8
8
|
import "../chunk-G2ZSNGR5.mjs";
|
|
9
9
|
export {
|
|
10
10
|
user
|
package/dist/index.js
CHANGED
|
@@ -5715,7 +5715,6 @@ var import_color2k = require("color2k");
|
|
|
5715
5715
|
|
|
5716
5716
|
// src/utils/object.ts
|
|
5717
5717
|
var import_flat = __toESM(require("flat"));
|
|
5718
|
-
var import_lodash = require("lodash");
|
|
5719
5718
|
function swapColorValues(colors2) {
|
|
5720
5719
|
const swappedColors = {};
|
|
5721
5720
|
const keys = Object.keys(colors2);
|
|
@@ -5749,7 +5748,6 @@ var flattenThemeObject = (obj) => removeDefaultKeys(
|
|
|
5749
5748
|
delimiter: "-"
|
|
5750
5749
|
})
|
|
5751
5750
|
);
|
|
5752
|
-
var transformKeysToKebab = (obj) => (0, import_lodash.mapKeys)(obj, (value, key) => (0, import_lodash.kebabCase)(key));
|
|
5753
5751
|
|
|
5754
5752
|
// src/colors/semantic.ts
|
|
5755
5753
|
var base = {
|
|
@@ -5902,7 +5900,11 @@ var colors = {
|
|
|
5902
5900
|
// src/plugin.ts
|
|
5903
5901
|
var import_color = __toESM(require("color"));
|
|
5904
5902
|
var import_plugin = __toESM(require("tailwindcss/plugin.js"));
|
|
5905
|
-
var
|
|
5903
|
+
var import_lodash = __toESM(require("lodash.get"));
|
|
5904
|
+
var import_lodash2 = __toESM(require("lodash.omit"));
|
|
5905
|
+
var import_lodash3 = __toESM(require("lodash.foreach"));
|
|
5906
|
+
var import_lodash4 = __toESM(require("lodash.mapkeys"));
|
|
5907
|
+
var import_lodash5 = __toESM(require("lodash.kebabcase"));
|
|
5906
5908
|
var import_deepmerge = __toESM(require("deepmerge"));
|
|
5907
5909
|
|
|
5908
5910
|
// src/animations/index.ts
|
|
@@ -6149,7 +6151,7 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
|
6149
6151
|
utilities: {},
|
|
6150
6152
|
colors: {}
|
|
6151
6153
|
};
|
|
6152
|
-
(0,
|
|
6154
|
+
(0, import_lodash3.default)(themes, ({ extend, layout, colors: colors2 }, themeName) => {
|
|
6153
6155
|
let cssSelector = `.${themeName},[data-theme="${themeName}"]`;
|
|
6154
6156
|
const scheme = themeName === "light" || themeName === "dark" ? themeName : extend;
|
|
6155
6157
|
if (themeName === defaultTheme) {
|
|
@@ -6159,12 +6161,12 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
|
6159
6161
|
"color-scheme": scheme
|
|
6160
6162
|
} : {};
|
|
6161
6163
|
const flatColors = flattenThemeObject(colors2);
|
|
6162
|
-
const flatLayout = layout ?
|
|
6164
|
+
const flatLayout = layout ? (0, import_lodash4.default)(layout, (value, key) => (0, import_lodash5.default)(key)) : {};
|
|
6163
6165
|
resolved.variants.push({
|
|
6164
6166
|
name: themeName,
|
|
6165
6167
|
definition: [`&.${themeName}`, `&[data-theme='${themeName}']`]
|
|
6166
6168
|
});
|
|
6167
|
-
(0,
|
|
6169
|
+
(0, import_lodash3.default)(flatColors, (colorValue, colorName) => {
|
|
6168
6170
|
if (!colorValue)
|
|
6169
6171
|
return;
|
|
6170
6172
|
try {
|
|
@@ -6188,11 +6190,11 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
|
6188
6190
|
console.log("error", error == null ? void 0 : error.message);
|
|
6189
6191
|
}
|
|
6190
6192
|
});
|
|
6191
|
-
(0,
|
|
6193
|
+
(0, import_lodash3.default)(flatLayout, (value, key) => {
|
|
6192
6194
|
if (!value)
|
|
6193
6195
|
return;
|
|
6194
6196
|
if (typeof value === "object") {
|
|
6195
|
-
(0,
|
|
6197
|
+
(0, import_lodash3.default)(value, (v, k) => {
|
|
6196
6198
|
const layoutVariable = `--${prefix}-${key}-${k}`;
|
|
6197
6199
|
resolved.utilities[cssSelector][layoutVariable] = v;
|
|
6198
6200
|
});
|
|
@@ -6293,14 +6295,14 @@ var corePlugin = (themes = {}, defaultTheme, prefix, omitCommonColors) => {
|
|
|
6293
6295
|
};
|
|
6294
6296
|
var nextui = (config = {}) => {
|
|
6295
6297
|
const themeObject = config.themes;
|
|
6296
|
-
const userLightColors = (0,
|
|
6297
|
-
const userDarkColors = (0,
|
|
6298
|
+
const userLightColors = (0, import_lodash.default)(themeObject, "light.colors", {});
|
|
6299
|
+
const userDarkColors = (0, import_lodash.default)(themeObject, "dark.colors", {});
|
|
6298
6300
|
const defaultTheme = config.defaultTheme || "light";
|
|
6299
6301
|
const defaultExtendTheme = config.defaultExtendTheme || "light";
|
|
6300
6302
|
const defaultPrefix = config.prefix || DEFAULT_PREFIX;
|
|
6301
6303
|
const omitCommonColors = config.omitCommonColors || false;
|
|
6302
|
-
let otherThemes = (0, import_lodash2.
|
|
6303
|
-
(0,
|
|
6304
|
+
let otherThemes = (0, import_lodash2.default)(themeObject, ["light", "dark"]) || {};
|
|
6305
|
+
(0, import_lodash3.default)(otherThemes, ({ extend, colors: colors2, layout }, themeName) => {
|
|
6304
6306
|
const baseTheme = extend && isBaseTheme(extend) ? extend : defaultExtendTheme;
|
|
6305
6307
|
if (colors2 && typeof colors2 === "object") {
|
|
6306
6308
|
otherThemes[themeName].colors = (0, import_deepmerge.default)(semanticColors[baseTheme], colors2);
|
|
@@ -6310,11 +6312,11 @@ var nextui = (config = {}) => {
|
|
|
6310
6312
|
}
|
|
6311
6313
|
});
|
|
6312
6314
|
const light2 = {
|
|
6313
|
-
layout: (0, import_deepmerge.default)(lightLayout, (0,
|
|
6315
|
+
layout: (0, import_deepmerge.default)(lightLayout, (0, import_lodash.default)(themeObject, "light.layout", {})),
|
|
6314
6316
|
colors: (0, import_deepmerge.default)(semanticColors.light, userLightColors)
|
|
6315
6317
|
};
|
|
6316
6318
|
const dark = {
|
|
6317
|
-
layout: (0, import_deepmerge.default)(darkLayout, (0,
|
|
6319
|
+
layout: (0, import_deepmerge.default)(darkLayout, (0, import_lodash.default)(themeObject, "dark.layout", {})),
|
|
6318
6320
|
colors: (0, import_deepmerge.default)(semanticColors.dark, userDarkColors)
|
|
6319
6321
|
};
|
|
6320
6322
|
const themes = {
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,25 @@
|
|
|
1
1
|
import "./chunk-PRWEADY4.mjs";
|
|
2
|
+
import {
|
|
3
|
+
table
|
|
4
|
+
} from "./chunk-CJRYUKCX.mjs";
|
|
5
|
+
import {
|
|
6
|
+
tabs
|
|
7
|
+
} from "./chunk-NHCMORGO.mjs";
|
|
8
|
+
import {
|
|
9
|
+
toggle
|
|
10
|
+
} from "./chunk-GCKY7FII.mjs";
|
|
2
11
|
import {
|
|
3
12
|
user
|
|
4
13
|
} from "./chunk-TXDV4YYI.mjs";
|
|
14
|
+
import {
|
|
15
|
+
pagination
|
|
16
|
+
} from "./chunk-JKWIX3WW.mjs";
|
|
17
|
+
import {
|
|
18
|
+
popover
|
|
19
|
+
} from "./chunk-QA5I3ZAL.mjs";
|
|
20
|
+
import {
|
|
21
|
+
progress
|
|
22
|
+
} from "./chunk-524WVPFR.mjs";
|
|
5
23
|
import {
|
|
6
24
|
radio,
|
|
7
25
|
radioGroup
|
|
@@ -11,7 +29,7 @@ import {
|
|
|
11
29
|
} from "./chunk-IWEUZYJF.mjs";
|
|
12
30
|
import {
|
|
13
31
|
snippet
|
|
14
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-GZVAQ5VD.mjs";
|
|
15
33
|
import {
|
|
16
34
|
spacer
|
|
17
35
|
} from "./chunk-W6DVXJB3.mjs";
|
|
@@ -19,14 +37,14 @@ import {
|
|
|
19
37
|
spinner
|
|
20
38
|
} from "./chunk-PSEUPXFL.mjs";
|
|
21
39
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./chunk-
|
|
40
|
+
dropdown,
|
|
41
|
+
dropdownItem,
|
|
42
|
+
dropdownMenu,
|
|
43
|
+
dropdownSection
|
|
44
|
+
} from "./chunk-Y6DYRIUN.mjs";
|
|
27
45
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./chunk-
|
|
46
|
+
image
|
|
47
|
+
} from "./chunk-LDBYFTHC.mjs";
|
|
30
48
|
import {
|
|
31
49
|
input
|
|
32
50
|
} from "./chunk-SQCHLZL7.mjs";
|
|
@@ -44,38 +62,31 @@ import {
|
|
|
44
62
|
navbar
|
|
45
63
|
} from "./chunk-GHB2MRUU.mjs";
|
|
46
64
|
import {
|
|
47
|
-
|
|
48
|
-
|
|
65
|
+
button,
|
|
66
|
+
buttonGroup
|
|
67
|
+
} from "./chunk-2OJQTQ24.mjs";
|
|
49
68
|
import {
|
|
50
|
-
|
|
51
|
-
} from "./chunk-
|
|
69
|
+
card
|
|
70
|
+
} from "./chunk-OFWUJFG6.mjs";
|
|
52
71
|
import {
|
|
53
|
-
|
|
54
|
-
|
|
72
|
+
checkbox,
|
|
73
|
+
checkboxGroup
|
|
74
|
+
} from "./chunk-RVVPQOCN.mjs";
|
|
55
75
|
import {
|
|
56
76
|
chip
|
|
57
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-ETX5K2PY.mjs";
|
|
58
78
|
import {
|
|
59
79
|
circularProgress
|
|
60
80
|
} from "./chunk-WAAJG22Y.mjs";
|
|
61
81
|
import {
|
|
62
82
|
code
|
|
63
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-5LSACMFO.mjs";
|
|
64
84
|
import {
|
|
65
85
|
divider
|
|
66
86
|
} from "./chunk-UODOTC2G.mjs";
|
|
67
87
|
import {
|
|
68
88
|
drip
|
|
69
89
|
} from "./chunk-AGUZRGXC.mjs";
|
|
70
|
-
import {
|
|
71
|
-
dropdown,
|
|
72
|
-
dropdownItem,
|
|
73
|
-
dropdownMenu,
|
|
74
|
-
dropdownSection
|
|
75
|
-
} from "./chunk-Y6DYRIUN.mjs";
|
|
76
|
-
import {
|
|
77
|
-
image
|
|
78
|
-
} from "./chunk-LDBYFTHC.mjs";
|
|
79
90
|
import {
|
|
80
91
|
accordion,
|
|
81
92
|
accordionItem
|
|
@@ -83,30 +94,19 @@ import {
|
|
|
83
94
|
import {
|
|
84
95
|
avatar,
|
|
85
96
|
avatarGroup
|
|
86
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-K7J53FGN.mjs";
|
|
87
98
|
import {
|
|
88
99
|
badge
|
|
89
|
-
} from "./chunk-
|
|
90
|
-
import
|
|
91
|
-
button,
|
|
92
|
-
buttonGroup
|
|
93
|
-
} from "./chunk-Q7Y2WFSA.mjs";
|
|
94
|
-
import {
|
|
95
|
-
card
|
|
96
|
-
} from "./chunk-OFWUJFG6.mjs";
|
|
97
|
-
import {
|
|
98
|
-
checkbox,
|
|
99
|
-
checkboxGroup
|
|
100
|
-
} from "./chunk-RVVPQOCN.mjs";
|
|
100
|
+
} from "./chunk-L7XBTQSM.mjs";
|
|
101
|
+
import "./chunk-GMMETTYU.mjs";
|
|
101
102
|
import "./chunk-CMYR6AOY.mjs";
|
|
102
103
|
import "./chunk-K7LK7NCE.mjs";
|
|
103
104
|
import {
|
|
104
105
|
colorVariants
|
|
105
106
|
} from "./chunk-2PIR7DFM.mjs";
|
|
106
|
-
import "./chunk-GMMETTYU.mjs";
|
|
107
107
|
import {
|
|
108
108
|
nextui
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-2S23U72D.mjs";
|
|
110
110
|
import "./chunk-D2XMP2NC.mjs";
|
|
111
111
|
import "./chunk-UNQJ7BRW.mjs";
|
|
112
112
|
import "./chunk-DI2L75XK.mjs";
|
|
@@ -124,11 +124,11 @@ import {
|
|
|
124
124
|
import "./chunk-WQEDQHKX.mjs";
|
|
125
125
|
import {
|
|
126
126
|
colors
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-QZTWGJ72.mjs";
|
|
128
128
|
import {
|
|
129
129
|
semanticColors
|
|
130
|
-
} from "./chunk-
|
|
131
|
-
import "./chunk-
|
|
130
|
+
} from "./chunk-G4RCK475.mjs";
|
|
131
|
+
import "./chunk-KUNVFLXJ.mjs";
|
|
132
132
|
import "./chunk-M63AFAHO.mjs";
|
|
133
133
|
import "./chunk-LXHWZ5PE.mjs";
|
|
134
134
|
import "./chunk-DMASP6FA.mjs";
|
package/dist/plugin.js
CHANGED
|
@@ -31,7 +31,11 @@ __export(plugin_exports, {
|
|
|
31
31
|
module.exports = __toCommonJS(plugin_exports);
|
|
32
32
|
var import_color = __toESM(require("color"));
|
|
33
33
|
var import_plugin = __toESM(require("tailwindcss/plugin.js"));
|
|
34
|
-
var
|
|
34
|
+
var import_lodash = __toESM(require("lodash.get"));
|
|
35
|
+
var import_lodash2 = __toESM(require("lodash.omit"));
|
|
36
|
+
var import_lodash3 = __toESM(require("lodash.foreach"));
|
|
37
|
+
var import_lodash4 = __toESM(require("lodash.mapkeys"));
|
|
38
|
+
var import_lodash5 = __toESM(require("lodash.kebabcase"));
|
|
35
39
|
var import_deepmerge = __toESM(require("deepmerge"));
|
|
36
40
|
|
|
37
41
|
// src/colors/blue.ts
|
|
@@ -165,7 +169,6 @@ var import_color2k = require("color2k");
|
|
|
165
169
|
|
|
166
170
|
// src/utils/object.ts
|
|
167
171
|
var import_flat = __toESM(require("flat"));
|
|
168
|
-
var import_lodash = require("lodash");
|
|
169
172
|
function swapColorValues(colors2) {
|
|
170
173
|
const swappedColors = {};
|
|
171
174
|
const keys = Object.keys(colors2);
|
|
@@ -199,7 +202,6 @@ var flattenThemeObject = (obj) => removeDefaultKeys(
|
|
|
199
202
|
delimiter: "-"
|
|
200
203
|
})
|
|
201
204
|
);
|
|
202
|
-
var transformKeysToKebab = (obj) => (0, import_lodash.mapKeys)(obj, (value, key) => (0, import_lodash.kebabCase)(key));
|
|
203
205
|
|
|
204
206
|
// src/colors/semantic.ts
|
|
205
207
|
var base = {
|
|
@@ -599,7 +601,7 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
|
599
601
|
utilities: {},
|
|
600
602
|
colors: {}
|
|
601
603
|
};
|
|
602
|
-
(0,
|
|
604
|
+
(0, import_lodash3.default)(themes, ({ extend, layout, colors: colors2 }, themeName) => {
|
|
603
605
|
let cssSelector = `.${themeName},[data-theme="${themeName}"]`;
|
|
604
606
|
const scheme = themeName === "light" || themeName === "dark" ? themeName : extend;
|
|
605
607
|
if (themeName === defaultTheme) {
|
|
@@ -609,12 +611,12 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
|
609
611
|
"color-scheme": scheme
|
|
610
612
|
} : {};
|
|
611
613
|
const flatColors = flattenThemeObject(colors2);
|
|
612
|
-
const flatLayout = layout ?
|
|
614
|
+
const flatLayout = layout ? (0, import_lodash4.default)(layout, (value, key) => (0, import_lodash5.default)(key)) : {};
|
|
613
615
|
resolved.variants.push({
|
|
614
616
|
name: themeName,
|
|
615
617
|
definition: [`&.${themeName}`, `&[data-theme='${themeName}']`]
|
|
616
618
|
});
|
|
617
|
-
(0,
|
|
619
|
+
(0, import_lodash3.default)(flatColors, (colorValue, colorName) => {
|
|
618
620
|
if (!colorValue)
|
|
619
621
|
return;
|
|
620
622
|
try {
|
|
@@ -638,11 +640,11 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
|
638
640
|
console.log("error", error == null ? void 0 : error.message);
|
|
639
641
|
}
|
|
640
642
|
});
|
|
641
|
-
(0,
|
|
643
|
+
(0, import_lodash3.default)(flatLayout, (value, key) => {
|
|
642
644
|
if (!value)
|
|
643
645
|
return;
|
|
644
646
|
if (typeof value === "object") {
|
|
645
|
-
(0,
|
|
647
|
+
(0, import_lodash3.default)(value, (v, k) => {
|
|
646
648
|
const layoutVariable = `--${prefix}-${key}-${k}`;
|
|
647
649
|
resolved.utilities[cssSelector][layoutVariable] = v;
|
|
648
650
|
});
|
|
@@ -743,14 +745,14 @@ var corePlugin = (themes = {}, defaultTheme, prefix, omitCommonColors) => {
|
|
|
743
745
|
};
|
|
744
746
|
var nextui = (config = {}) => {
|
|
745
747
|
const themeObject = config.themes;
|
|
746
|
-
const userLightColors = (0,
|
|
747
|
-
const userDarkColors = (0,
|
|
748
|
+
const userLightColors = (0, import_lodash.default)(themeObject, "light.colors", {});
|
|
749
|
+
const userDarkColors = (0, import_lodash.default)(themeObject, "dark.colors", {});
|
|
748
750
|
const defaultTheme = config.defaultTheme || "light";
|
|
749
751
|
const defaultExtendTheme = config.defaultExtendTheme || "light";
|
|
750
752
|
const defaultPrefix = config.prefix || DEFAULT_PREFIX;
|
|
751
753
|
const omitCommonColors = config.omitCommonColors || false;
|
|
752
|
-
let otherThemes = (0, import_lodash2.
|
|
753
|
-
(0,
|
|
754
|
+
let otherThemes = (0, import_lodash2.default)(themeObject, ["light", "dark"]) || {};
|
|
755
|
+
(0, import_lodash3.default)(otherThemes, ({ extend, colors: colors2, layout }, themeName) => {
|
|
754
756
|
const baseTheme = extend && isBaseTheme(extend) ? extend : defaultExtendTheme;
|
|
755
757
|
if (colors2 && typeof colors2 === "object") {
|
|
756
758
|
otherThemes[themeName].colors = (0, import_deepmerge.default)(semanticColors[baseTheme], colors2);
|
|
@@ -760,11 +762,11 @@ var nextui = (config = {}) => {
|
|
|
760
762
|
}
|
|
761
763
|
});
|
|
762
764
|
const light = {
|
|
763
|
-
layout: (0, import_deepmerge.default)(lightLayout, (0,
|
|
765
|
+
layout: (0, import_deepmerge.default)(lightLayout, (0, import_lodash.default)(themeObject, "light.layout", {})),
|
|
764
766
|
colors: (0, import_deepmerge.default)(semanticColors.light, userLightColors)
|
|
765
767
|
};
|
|
766
768
|
const dark = {
|
|
767
|
-
layout: (0, import_deepmerge.default)(darkLayout, (0,
|
|
769
|
+
layout: (0, import_deepmerge.default)(darkLayout, (0, import_lodash.default)(themeObject, "dark.layout", {})),
|
|
768
770
|
colors: (0, import_deepmerge.default)(semanticColors.dark, userDarkColors)
|
|
769
771
|
};
|
|
770
772
|
const themes = {
|
package/dist/plugin.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
nextui
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2S23U72D.mjs";
|
|
4
4
|
import "./chunk-D2XMP2NC.mjs";
|
|
5
5
|
import "./chunk-UNQJ7BRW.mjs";
|
|
6
6
|
import "./chunk-DI2L75XK.mjs";
|
|
@@ -8,9 +8,9 @@ import "./chunk-4Z22WXZX.mjs";
|
|
|
8
8
|
import "./chunk-HJLDXSH7.mjs";
|
|
9
9
|
import "./chunk-G2ZSNGR5.mjs";
|
|
10
10
|
import "./chunk-WQEDQHKX.mjs";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-QZTWGJ72.mjs";
|
|
12
|
+
import "./chunk-G4RCK475.mjs";
|
|
13
|
+
import "./chunk-KUNVFLXJ.mjs";
|
|
14
14
|
import "./chunk-M63AFAHO.mjs";
|
|
15
15
|
import "./chunk-LXHWZ5PE.mjs";
|
|
16
16
|
import "./chunk-DMASP6FA.mjs";
|
package/dist/utils/object.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import * as lodash from 'lodash';
|
|
2
|
-
|
|
3
1
|
declare function swapColorValues<T extends Object>(colors: T): {};
|
|
4
2
|
declare function removeDefaultKeys<T extends Object>(obj: T): {};
|
|
5
3
|
/**
|
|
@@ -10,12 +8,5 @@ declare function removeDefaultKeys<T extends Object>(obj: T): {};
|
|
|
10
8
|
* @returns object with flattened keys
|
|
11
9
|
*/
|
|
12
10
|
declare const flattenThemeObject: <TTarget>(obj: TTarget) => {};
|
|
13
|
-
/**
|
|
14
|
-
* Transform object keys to kebab case
|
|
15
|
-
*
|
|
16
|
-
* @param obj object
|
|
17
|
-
* @returns object with kebab cased keys
|
|
18
|
-
*/
|
|
19
|
-
declare const transformKeysToKebab: <T extends object>(obj: T) => lodash.Dictionary<T[keyof T]>;
|
|
20
11
|
|
|
21
|
-
export { flattenThemeObject, removeDefaultKeys, swapColorValues
|
|
12
|
+
export { flattenThemeObject, removeDefaultKeys, swapColorValues };
|
package/dist/utils/object.js
CHANGED
|
@@ -28,12 +28,10 @@ var object_exports = {};
|
|
|
28
28
|
__export(object_exports, {
|
|
29
29
|
flattenThemeObject: () => flattenThemeObject,
|
|
30
30
|
removeDefaultKeys: () => removeDefaultKeys,
|
|
31
|
-
swapColorValues: () => swapColorValues
|
|
32
|
-
transformKeysToKebab: () => transformKeysToKebab
|
|
31
|
+
swapColorValues: () => swapColorValues
|
|
33
32
|
});
|
|
34
33
|
module.exports = __toCommonJS(object_exports);
|
|
35
34
|
var import_flat = __toESM(require("flat"));
|
|
36
|
-
var import_lodash = require("lodash");
|
|
37
35
|
function swapColorValues(colors) {
|
|
38
36
|
const swappedColors = {};
|
|
39
37
|
const keys = Object.keys(colors);
|
|
@@ -67,11 +65,9 @@ var flattenThemeObject = (obj) => removeDefaultKeys(
|
|
|
67
65
|
delimiter: "-"
|
|
68
66
|
})
|
|
69
67
|
);
|
|
70
|
-
var transformKeysToKebab = (obj) => (0, import_lodash.mapKeys)(obj, (value, key) => (0, import_lodash.kebabCase)(key));
|
|
71
68
|
// Annotate the CommonJS export names for ESM import in node:
|
|
72
69
|
0 && (module.exports = {
|
|
73
70
|
flattenThemeObject,
|
|
74
71
|
removeDefaultKeys,
|
|
75
|
-
swapColorValues
|
|
76
|
-
transformKeysToKebab
|
|
72
|
+
swapColorValues
|
|
77
73
|
});
|
package/dist/utils/object.mjs
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
flattenThemeObject,
|
|
3
3
|
removeDefaultKeys,
|
|
4
|
-
swapColorValues
|
|
5
|
-
|
|
6
|
-
} from "../chunk-MEZC3VSI.mjs";
|
|
4
|
+
swapColorValues
|
|
5
|
+
} from "../chunk-KUNVFLXJ.mjs";
|
|
7
6
|
export {
|
|
8
7
|
flattenThemeObject,
|
|
9
8
|
removeDefaultKeys,
|
|
10
|
-
swapColorValues
|
|
11
|
-
transformKeysToKebab
|
|
9
|
+
swapColorValues
|
|
12
10
|
};
|
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-20230702175730",
|
|
4
4
|
"description": "The default theme for NextUI components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"theme",
|
|
@@ -41,7 +41,11 @@
|
|
|
41
41
|
"color2k": "^2.0.2",
|
|
42
42
|
"deepmerge": "4.3.1",
|
|
43
43
|
"flat": "^5.0.2",
|
|
44
|
-
"lodash": "^4.
|
|
44
|
+
"lodash.foreach": "^4.5.0",
|
|
45
|
+
"lodash.get": "^4.4.2",
|
|
46
|
+
"lodash.kebabcase": "^4.1.1",
|
|
47
|
+
"lodash.mapkeys": "^4.6.0",
|
|
48
|
+
"lodash.omit": "^4.5.0",
|
|
45
49
|
"tailwind-variants": "^0.1.10",
|
|
46
50
|
"tailwindcss": "^3.2.7"
|
|
47
51
|
},
|
|
@@ -51,7 +55,11 @@
|
|
|
51
55
|
"devDependencies": {
|
|
52
56
|
"@types/color": "^3.0.3",
|
|
53
57
|
"@types/flat": "^5.0.2",
|
|
54
|
-
"@types/lodash": "^4.
|
|
58
|
+
"@types/lodash.foreach": "^4.5.7",
|
|
59
|
+
"@types/lodash.get": "^4.4.7",
|
|
60
|
+
"@types/lodash.kebabcase": "^4.1.7",
|
|
61
|
+
"@types/lodash.mapkeys": "^4.6.7",
|
|
62
|
+
"@types/lodash.omit": "^4.5.7",
|
|
55
63
|
"clean-package": "2.2.0"
|
|
56
64
|
},
|
|
57
65
|
"tsup": {
|