@nextui-org/theme 0.0.0-dev-v2-20230326125142 → 0.0.0-dev-v2-20230326130503
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-ONURTFN3.mjs → chunk-AOPFJ3A7.mjs} +0 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +0 -2
- package/dist/index.mjs +2 -4
- package/dist/plugin.d.ts +3 -14
- package/dist/plugin.js +2 -4
- package/dist/plugin.mjs +3 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export { absoluteFullClasses, baseStyles, focusVisibleClasses, ringClasses, tran
|
|
|
24
24
|
export { SlotsToClasses } from './utils/types.js';
|
|
25
25
|
export { colorVariants } from './utils/variants.js';
|
|
26
26
|
export { colors } from './colors/index.js';
|
|
27
|
-
export { Colors, ColorsWithScheme, ConfigFunction, ConfigObject,
|
|
27
|
+
export { Colors, ColorsWithScheme, ConfigFunction, ConfigObject, DefaultThemeType, NextUIConfig, nextui } from './plugin.js';
|
|
28
28
|
export { VariantProps, tv } from 'tailwind-variants';
|
|
29
29
|
export { BaseColors, ColorScale, SemanticBaseColors, SemanticColors } from './colors/types.js';
|
|
30
30
|
export { commonColors } from './colors/common.js';
|
package/dist/index.js
CHANGED
|
@@ -51,7 +51,6 @@ __export(src_exports, {
|
|
|
51
51
|
pagination: () => pagination,
|
|
52
52
|
radio: () => radio,
|
|
53
53
|
radioGroup: () => radioGroup,
|
|
54
|
-
resolveConfig: () => resolveConfig,
|
|
55
54
|
ringClasses: () => ringClasses,
|
|
56
55
|
semanticColors: () => semanticColors,
|
|
57
56
|
snippet: () => snippet,
|
|
@@ -4031,7 +4030,6 @@ var cn = (...classes) => (0, import_tailwind_variants23.cn)(classes)();
|
|
|
4031
4030
|
pagination,
|
|
4032
4031
|
radio,
|
|
4033
4032
|
radioGroup,
|
|
4034
|
-
resolveConfig,
|
|
4035
4033
|
ringClasses,
|
|
4036
4034
|
semanticColors,
|
|
4037
4035
|
snippet,
|
package/dist/index.mjs
CHANGED
|
@@ -71,9 +71,8 @@ import {
|
|
|
71
71
|
colorVariants
|
|
72
72
|
} from "./chunk-LGGZKBOO.mjs";
|
|
73
73
|
import {
|
|
74
|
-
nextui
|
|
75
|
-
|
|
76
|
-
} from "./chunk-ONURTFN3.mjs";
|
|
74
|
+
nextui
|
|
75
|
+
} from "./chunk-AOPFJ3A7.mjs";
|
|
77
76
|
import "./chunk-45FXWIO6.mjs";
|
|
78
77
|
import {
|
|
79
78
|
absoluteFullClasses,
|
|
@@ -133,7 +132,6 @@ export {
|
|
|
133
132
|
pagination,
|
|
134
133
|
radio,
|
|
135
134
|
radioGroup,
|
|
136
|
-
resolveConfig,
|
|
137
135
|
ringClasses,
|
|
138
136
|
semanticColors,
|
|
139
137
|
snippet,
|
package/dist/plugin.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ interface ColorsWithScheme<T> extends Colors {
|
|
|
14
14
|
[SCHEME]?: T;
|
|
15
15
|
}
|
|
16
16
|
type SchemerFn<T> = (colors: Colors) => ColorsWithScheme<T>;
|
|
17
|
-
type
|
|
17
|
+
type DefaultThemeType = "light" | "dark";
|
|
18
18
|
type ConfigObject = Record<string, ColorsWithScheme<"light" | "dark">>;
|
|
19
19
|
type ConfigFunction = ({ light, dark, }: {
|
|
20
20
|
light: SchemerFn<"light">;
|
|
@@ -29,22 +29,11 @@ type NextUIConfig = {
|
|
|
29
29
|
* The default theme to use.
|
|
30
30
|
* @default "light"
|
|
31
31
|
*/
|
|
32
|
-
defaultTheme?:
|
|
33
|
-
};
|
|
34
|
-
declare const resolveConfig: (config: ConfigObject | ConfigFunction | undefined, defaultTheme: DefaultTheme) => {
|
|
35
|
-
variants: {
|
|
36
|
-
name: string;
|
|
37
|
-
definition: string[];
|
|
38
|
-
}[];
|
|
39
|
-
utilities: Record<string, Record<string, any>>;
|
|
40
|
-
colors: Record<string, ({ opacityValue, opacityVariable }: {
|
|
41
|
-
opacityValue: string;
|
|
42
|
-
opacityVariable: string;
|
|
43
|
-
}) => string>;
|
|
32
|
+
defaultTheme?: DefaultThemeType;
|
|
44
33
|
};
|
|
45
34
|
declare const nextui: (config?: NextUIConfig) => {
|
|
46
35
|
handler: tailwindcss_types_config.PluginCreator;
|
|
47
36
|
config?: Partial<tailwindcss.Config> | undefined;
|
|
48
37
|
};
|
|
49
38
|
|
|
50
|
-
export { Colors, ColorsWithScheme, ConfigFunction, ConfigObject,
|
|
39
|
+
export { Colors, ColorsWithScheme, ConfigFunction, ConfigObject, DefaultThemeType, NextUIConfig, nextui };
|
package/dist/plugin.js
CHANGED
|
@@ -26,8 +26,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
26
26
|
// src/plugin.ts
|
|
27
27
|
var plugin_exports = {};
|
|
28
28
|
__export(plugin_exports, {
|
|
29
|
-
nextui: () => nextui
|
|
30
|
-
resolveConfig: () => resolveConfig
|
|
29
|
+
nextui: () => nextui
|
|
31
30
|
});
|
|
32
31
|
module.exports = __toCommonJS(plugin_exports);
|
|
33
32
|
var import_color = __toESM(require("color"));
|
|
@@ -566,6 +565,5 @@ var nextui = (config = {}) => {
|
|
|
566
565
|
};
|
|
567
566
|
// Annotate the CommonJS export names for ESM import in node:
|
|
568
567
|
0 && (module.exports = {
|
|
569
|
-
nextui
|
|
570
|
-
resolveConfig
|
|
568
|
+
nextui
|
|
571
569
|
});
|
package/dist/plugin.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
nextui
|
|
3
|
-
|
|
4
|
-
} from "./chunk-ONURTFN3.mjs";
|
|
2
|
+
nextui
|
|
3
|
+
} from "./chunk-AOPFJ3A7.mjs";
|
|
5
4
|
import "./chunk-45FXWIO6.mjs";
|
|
6
5
|
import "./chunk-IJCHUO4J.mjs";
|
|
7
6
|
import "./chunk-WQEDQHKX.mjs";
|
|
@@ -19,6 +18,5 @@ import "./chunk-KZJBCC2H.mjs";
|
|
|
19
18
|
import "./chunk-T3GWIVAM.mjs";
|
|
20
19
|
import "./chunk-OR5PUD24.mjs";
|
|
21
20
|
export {
|
|
22
|
-
nextui
|
|
23
|
-
resolveConfig
|
|
21
|
+
nextui
|
|
24
22
|
};
|