@modern-js/plugin-tailwindcss 0.0.0-next-20221214100720 → 0.0.0-next-20221214140550
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/CHANGELOG.md +56 -56
- package/dist/js/node/cli.js +15 -11
- package/dist/js/node/design-token/cli/index.js +19 -19
- package/dist/js/node/design-token/index.js +6 -4
- package/dist/js/node/design-token/postcss-plugin/index.js +5 -3
- package/dist/js/node/design-token/runtime/index.js +6 -4
- package/dist/js/node/design-token/runtime/plugin.js +22 -19
- package/dist/js/node/index.js +5 -3
- package/dist/js/node/tailwind.js +7 -3
- package/dist/js/node/types.js +15 -0
- package/dist/js/node/utils.js +13 -8
- package/dist/types/types.d.ts +2 -2
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# @modern-js/plugin-tailwindcss
|
|
2
2
|
|
|
3
|
-
## 0.0.0-next-
|
|
3
|
+
## 0.0.0-next-20221214140550
|
|
4
4
|
|
|
5
5
|
### Major Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- dda38c9c3: chore: v2
|
|
8
8
|
|
|
9
9
|
### Minor Changes
|
|
10
10
|
|
|
11
|
-
-
|
|
11
|
+
- 92f0eade3: feat:
|
|
12
12
|
|
|
13
13
|
1. add style config and add new hook
|
|
14
14
|
2. add dts alias logic
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
4. 添加日志逻辑
|
|
25
25
|
5. 添加 skipDeps 配置
|
|
26
26
|
|
|
27
|
-
-
|
|
27
|
+
- 92f0eade3: feat:
|
|
28
28
|
|
|
29
29
|
1. core: 增加 test 函数
|
|
30
30
|
2. module plugins: 增加 `babel`, `mainField`, `target` 插件
|
|
@@ -40,62 +40,62 @@
|
|
|
40
40
|
|
|
41
41
|
### Patch Changes
|
|
42
42
|
|
|
43
|
-
-
|
|
43
|
+
- d6546ad91: add buildConfig style in module-tools and remove tools
|
|
44
44
|
在 module-tools 里新增 buildConfig style 并删除 tools
|
|
45
|
-
-
|
|
45
|
+
- 67472ca1c: fix: move babel-plugin-marcos to plugin-tailwindcss
|
|
46
46
|
|
|
47
47
|
fix: 将 babel-plugin-marcos 依赖移动到 plugin-tailwindcss 中
|
|
48
48
|
|
|
49
|
-
- Updated dependencies [
|
|
50
|
-
- Updated dependencies [
|
|
51
|
-
- Updated dependencies [
|
|
52
|
-
- Updated dependencies [
|
|
53
|
-
- Updated dependencies [
|
|
54
|
-
- Updated dependencies [
|
|
55
|
-
- Updated dependencies [
|
|
56
|
-
- Updated dependencies [
|
|
57
|
-
- Updated dependencies [
|
|
58
|
-
- Updated dependencies [
|
|
59
|
-
- Updated dependencies [
|
|
60
|
-
- Updated dependencies [
|
|
61
|
-
- Updated dependencies [
|
|
62
|
-
- Updated dependencies [
|
|
63
|
-
- Updated dependencies [
|
|
64
|
-
- Updated dependencies [
|
|
65
|
-
- Updated dependencies [
|
|
66
|
-
- Updated dependencies [
|
|
67
|
-
- Updated dependencies [
|
|
68
|
-
- Updated dependencies [
|
|
69
|
-
- Updated dependencies [
|
|
70
|
-
- Updated dependencies [
|
|
71
|
-
- Updated dependencies [
|
|
72
|
-
- Updated dependencies [
|
|
73
|
-
- Updated dependencies [
|
|
74
|
-
- Updated dependencies [
|
|
75
|
-
- Updated dependencies [
|
|
76
|
-
- Updated dependencies [
|
|
77
|
-
- Updated dependencies [
|
|
78
|
-
- Updated dependencies [
|
|
79
|
-
- Updated dependencies [
|
|
80
|
-
- Updated dependencies [
|
|
81
|
-
- Updated dependencies [
|
|
82
|
-
- Updated dependencies [
|
|
83
|
-
- Updated dependencies [
|
|
84
|
-
- Updated dependencies [
|
|
85
|
-
- Updated dependencies [
|
|
86
|
-
- Updated dependencies [
|
|
87
|
-
- Updated dependencies [
|
|
88
|
-
- Updated dependencies [
|
|
89
|
-
- Updated dependencies [
|
|
90
|
-
- Updated dependencies [
|
|
91
|
-
- Updated dependencies [
|
|
92
|
-
- Updated dependencies [
|
|
93
|
-
- Updated dependencies [
|
|
94
|
-
- Updated dependencies [
|
|
95
|
-
- Updated dependencies [
|
|
96
|
-
- Updated dependencies [
|
|
97
|
-
- @modern-js/runtime@0.0.0-next-
|
|
98
|
-
- @modern-js/utils@0.0.0-next-
|
|
49
|
+
- Updated dependencies [2344eb26e]
|
|
50
|
+
- Updated dependencies [a11fcf8b5]
|
|
51
|
+
- Updated dependencies [a93159440]
|
|
52
|
+
- Updated dependencies [e7ce0636d]
|
|
53
|
+
- Updated dependencies [b18fa8f3e]
|
|
54
|
+
- Updated dependencies [7879e8f71]
|
|
55
|
+
- Updated dependencies [50d4675e5]
|
|
56
|
+
- Updated dependencies [c9e800d39]
|
|
57
|
+
- Updated dependencies [6604f1b8b]
|
|
58
|
+
- Updated dependencies [6aca87501]
|
|
59
|
+
- Updated dependencies [fda836fe8]
|
|
60
|
+
- Updated dependencies [d6bc32174]
|
|
61
|
+
- Updated dependencies [3e57f2bd5]
|
|
62
|
+
- Updated dependencies [2e6031955]
|
|
63
|
+
- Updated dependencies [c5798d284]
|
|
64
|
+
- Updated dependencies [fbf5eed5a]
|
|
65
|
+
- Updated dependencies [a2509bfbd]
|
|
66
|
+
- Updated dependencies [a7c68832b]
|
|
67
|
+
- Updated dependencies [425e57092]
|
|
68
|
+
- Updated dependencies [e4357f185]
|
|
69
|
+
- Updated dependencies [7b7d12cf8]
|
|
70
|
+
- Updated dependencies [4369648ae]
|
|
71
|
+
- Updated dependencies [92f0eade3]
|
|
72
|
+
- Updated dependencies [92c099446]
|
|
73
|
+
- Updated dependencies [2cc2eb35b]
|
|
74
|
+
- Updated dependencies [edd1cfb1a]
|
|
75
|
+
- Updated dependencies [cc971eabf]
|
|
76
|
+
- Updated dependencies [5b9049f2e]
|
|
77
|
+
- Updated dependencies [6bda14ed7]
|
|
78
|
+
- Updated dependencies [92004d190]
|
|
79
|
+
- Updated dependencies [b8bbe036c]
|
|
80
|
+
- Updated dependencies [40ed5874c]
|
|
81
|
+
- Updated dependencies [60d537863]
|
|
82
|
+
- Updated dependencies [d5a31df78]
|
|
83
|
+
- Updated dependencies [dda38c9c3]
|
|
84
|
+
- Updated dependencies [8b8e1bb57]
|
|
85
|
+
- Updated dependencies [3bbea92b2]
|
|
86
|
+
- Updated dependencies [9144c21d2]
|
|
87
|
+
- Updated dependencies [b710adb84]
|
|
88
|
+
- Updated dependencies [18aaf4224]
|
|
89
|
+
- Updated dependencies [34702d5d4]
|
|
90
|
+
- Updated dependencies [fcace5b5b]
|
|
91
|
+
- Updated dependencies [ea7cf0625]
|
|
92
|
+
- Updated dependencies [bbe4c4ab6]
|
|
93
|
+
- Updated dependencies [e4558a0bc]
|
|
94
|
+
- Updated dependencies [abf3421a7]
|
|
95
|
+
- Updated dependencies [543be9558]
|
|
96
|
+
- Updated dependencies [14b712da8]
|
|
97
|
+
- @modern-js/runtime@0.0.0-next-20221214140550
|
|
98
|
+
- @modern-js/utils@0.0.0-next-20221214140550
|
|
99
99
|
|
|
100
100
|
## 2.0.0-beta.3
|
|
101
101
|
|
package/dist/js/node/cli.js
CHANGED
|
@@ -21,17 +21,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
mod
|
|
22
22
|
));
|
|
23
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
-
var stdin_exports = {};
|
|
25
|
-
__export(stdin_exports, {
|
|
26
|
-
default: () => cli_default,
|
|
27
|
-
getRandomTwConfigFileName: () => getRandomTwConfigFileName
|
|
28
|
-
});
|
|
29
|
-
module.exports = __toCommonJS(stdin_exports);
|
|
30
|
-
var import_path = __toESM(require("path"));
|
|
31
|
-
var import_utils = require("@modern-js/utils");
|
|
32
|
-
var import_cli = __toESM(require("./design-token/cli"));
|
|
33
|
-
var import_tailwind = require("./tailwind");
|
|
34
|
-
var import_utils2 = require("./utils");
|
|
35
24
|
var __async = (__this, __arguments, generator) => {
|
|
36
25
|
return new Promise((resolve, reject) => {
|
|
37
26
|
var fulfilled = (value) => {
|
|
@@ -52,6 +41,17 @@ var __async = (__this, __arguments, generator) => {
|
|
|
52
41
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
53
42
|
});
|
|
54
43
|
};
|
|
44
|
+
var cli_exports = {};
|
|
45
|
+
__export(cli_exports, {
|
|
46
|
+
default: () => cli_default,
|
|
47
|
+
getRandomTwConfigFileName: () => getRandomTwConfigFileName
|
|
48
|
+
});
|
|
49
|
+
module.exports = __toCommonJS(cli_exports);
|
|
50
|
+
var import_path = __toESM(require("path"));
|
|
51
|
+
var import_utils = require("@modern-js/utils");
|
|
52
|
+
var import_cli = __toESM(require("./design-token/cli"));
|
|
53
|
+
var import_tailwind = require("./tailwind");
|
|
54
|
+
var import_utils2 = require("./utils");
|
|
55
55
|
const supportCssInJsLibrary = "styled-components";
|
|
56
56
|
const getRandomTwConfigFileName = (internalDirectory) => {
|
|
57
57
|
return (0, import_utils.slash)(
|
|
@@ -193,3 +193,7 @@ var cli_default = ({ pluginName } = {
|
|
|
193
193
|
};
|
|
194
194
|
})
|
|
195
195
|
});
|
|
196
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
197
|
+
0 && (module.exports = {
|
|
198
|
+
getRandomTwConfigFileName
|
|
199
|
+
});
|
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
5
19
|
var __export = (target, all) => {
|
|
6
20
|
for (var name in all)
|
|
7
21
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -15,28 +29,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
29
|
return to;
|
|
16
30
|
};
|
|
17
31
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
var
|
|
19
|
-
__export(
|
|
32
|
+
var cli_exports = {};
|
|
33
|
+
__export(cli_exports, {
|
|
20
34
|
default: () => cli_default
|
|
21
35
|
});
|
|
22
|
-
module.exports = __toCommonJS(
|
|
36
|
+
module.exports = __toCommonJS(cli_exports);
|
|
23
37
|
var import_utils = require("@modern-js/utils");
|
|
24
|
-
var __defProp2 = Object.defineProperty;
|
|
25
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
26
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
27
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
28
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
29
|
-
var __spreadValues = (a, b) => {
|
|
30
|
-
for (var prop in b || (b = {}))
|
|
31
|
-
if (__hasOwnProp2.call(b, prop))
|
|
32
|
-
__defNormalProp(a, prop, b[prop]);
|
|
33
|
-
if (__getOwnPropSymbols)
|
|
34
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
35
|
-
if (__propIsEnum.call(b, prop))
|
|
36
|
-
__defNormalProp(a, prop, b[prop]);
|
|
37
|
-
}
|
|
38
|
-
return a;
|
|
39
|
-
};
|
|
40
38
|
var cli_default = ({ pluginName } = { pluginName: "@modern-js/plugin-tailwindcss" }) => ({
|
|
41
39
|
name: "@modern-js/plugin-design-token",
|
|
42
40
|
setup(api) {
|
|
@@ -123,3 +121,5 @@ var cli_default = ({ pluginName } = { pluginName: "@modern-js/plugin-tailwindcss
|
|
|
123
121
|
};
|
|
124
122
|
}
|
|
125
123
|
});
|
|
124
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
125
|
+
0 && (module.exports = {});
|
|
@@ -22,10 +22,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
22
22
|
mod
|
|
23
23
|
));
|
|
24
24
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
|
-
var
|
|
26
|
-
__export(
|
|
25
|
+
var design_token_exports = {};
|
|
26
|
+
__export(design_token_exports, {
|
|
27
27
|
default: () => import_runtime.default
|
|
28
28
|
});
|
|
29
|
-
module.exports = __toCommonJS(
|
|
29
|
+
module.exports = __toCommonJS(design_token_exports);
|
|
30
30
|
var import_runtime = __toESM(require("./runtime"));
|
|
31
|
-
__reExport(
|
|
31
|
+
__reExport(design_token_exports, require("./runtime"), module.exports);
|
|
32
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
33
|
+
0 && (module.exports = {});
|
|
@@ -15,11 +15,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
var
|
|
19
|
-
__export(
|
|
18
|
+
var postcss_plugin_exports = {};
|
|
19
|
+
__export(postcss_plugin_exports, {
|
|
20
20
|
default: () => postcss_plugin_default
|
|
21
21
|
});
|
|
22
|
-
module.exports = __toCommonJS(
|
|
22
|
+
module.exports = __toCommonJS(postcss_plugin_exports);
|
|
23
23
|
var postcss_plugin_default = ({
|
|
24
24
|
cssVarsHash = {}
|
|
25
25
|
} = {}) => ({
|
|
@@ -35,3 +35,5 @@ var postcss_plugin_default = ({
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
39
|
+
0 && (module.exports = {});
|
|
@@ -22,11 +22,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
22
22
|
mod
|
|
23
23
|
));
|
|
24
24
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
|
-
var
|
|
26
|
-
__export(
|
|
25
|
+
var runtime_exports = {};
|
|
26
|
+
__export(runtime_exports, {
|
|
27
27
|
default: () => runtime_default
|
|
28
28
|
});
|
|
29
|
-
module.exports = __toCommonJS(
|
|
29
|
+
module.exports = __toCommonJS(runtime_exports);
|
|
30
30
|
var import_plugin = __toESM(require("./plugin"));
|
|
31
|
-
__reExport(
|
|
31
|
+
__reExport(runtime_exports, require("./plugin"), module.exports);
|
|
32
32
|
var runtime_default = import_plugin.default;
|
|
33
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
+
0 && (module.exports = {});
|
|
@@ -2,8 +2,22 @@ var __create = Object.create;
|
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
9
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
+
var __spreadValues = (a, b) => {
|
|
11
|
+
for (var prop in b || (b = {}))
|
|
12
|
+
if (__hasOwnProp.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
if (__getOwnPropSymbols)
|
|
15
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
16
|
+
if (__propIsEnum.call(b, prop))
|
|
17
|
+
__defNormalProp(a, prop, b[prop]);
|
|
18
|
+
}
|
|
19
|
+
return a;
|
|
20
|
+
};
|
|
7
21
|
var __export = (target, all) => {
|
|
8
22
|
for (var name in all)
|
|
9
23
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -21,32 +35,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
35
|
mod
|
|
22
36
|
));
|
|
23
37
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
-
var
|
|
25
|
-
__export(
|
|
38
|
+
var plugin_exports = {};
|
|
39
|
+
__export(plugin_exports, {
|
|
26
40
|
DesignTokenContext: () => DesignTokenContext,
|
|
27
41
|
default: () => plugin_default,
|
|
28
42
|
useDesignTokens: () => useDesignTokens
|
|
29
43
|
});
|
|
30
|
-
module.exports = __toCommonJS(
|
|
44
|
+
module.exports = __toCommonJS(plugin_exports);
|
|
31
45
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
32
46
|
var import_hoist_non_react_statics = __toESM(require("hoist-non-react-statics"));
|
|
33
47
|
var import_react = __toESM(require("react"));
|
|
34
|
-
var __defProp2 = Object.defineProperty;
|
|
35
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
36
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
37
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
38
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
39
|
-
var __spreadValues = (a, b) => {
|
|
40
|
-
for (var prop in b || (b = {}))
|
|
41
|
-
if (__hasOwnProp2.call(b, prop))
|
|
42
|
-
__defNormalProp(a, prop, b[prop]);
|
|
43
|
-
if (__getOwnPropSymbols)
|
|
44
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
45
|
-
if (__propIsEnum.call(b, prop))
|
|
46
|
-
__defNormalProp(a, prop, b[prop]);
|
|
47
|
-
}
|
|
48
|
-
return a;
|
|
49
|
-
};
|
|
50
48
|
const DesignTokenContext = import_react.default.createContext({});
|
|
51
49
|
const useDesignTokens = () => (0, import_react.useContext)(DesignTokenContext);
|
|
52
50
|
var plugin_default = (options = {}) => ({
|
|
@@ -89,3 +87,8 @@ var plugin_default = (options = {}) => ({
|
|
|
89
87
|
}
|
|
90
88
|
})
|
|
91
89
|
});
|
|
90
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
91
|
+
0 && (module.exports = {
|
|
92
|
+
DesignTokenContext,
|
|
93
|
+
useDesignTokens
|
|
94
|
+
});
|
package/dist/js/node/index.js
CHANGED
|
@@ -21,9 +21,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
mod
|
|
22
22
|
));
|
|
23
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
-
var
|
|
25
|
-
__export(
|
|
24
|
+
var src_exports = {};
|
|
25
|
+
__export(src_exports, {
|
|
26
26
|
default: () => import_cli.default
|
|
27
27
|
});
|
|
28
|
-
module.exports = __toCommonJS(
|
|
28
|
+
module.exports = __toCommonJS(src_exports);
|
|
29
29
|
var import_cli = __toESM(require("./cli"));
|
|
30
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
31
|
+
0 && (module.exports = {});
|
package/dist/js/node/tailwind.js
CHANGED
|
@@ -15,11 +15,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
var
|
|
19
|
-
__export(
|
|
18
|
+
var tailwind_exports = {};
|
|
19
|
+
__export(tailwind_exports, {
|
|
20
20
|
getTailwindConfig: () => getTailwindConfig
|
|
21
21
|
});
|
|
22
|
-
module.exports = __toCommonJS(
|
|
22
|
+
module.exports = __toCommonJS(tailwind_exports);
|
|
23
23
|
var import_utils = require("@modern-js/utils");
|
|
24
24
|
var import_lodash = require("@modern-js/utils/lodash");
|
|
25
25
|
const checkIfExistNotAllowKeys = (tailwindConfig) => {
|
|
@@ -62,3 +62,7 @@ const getTailwindConfig = (tailwindcss, designSystem, option = {}) => {
|
|
|
62
62
|
tailwindConfig.theme = designSystemConfig || {};
|
|
63
63
|
return tailwindConfig;
|
|
64
64
|
};
|
|
65
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
66
|
+
0 && (module.exports = {
|
|
67
|
+
getTailwindConfig
|
|
68
|
+
});
|
package/dist/js/node/types.js
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
var types_exports = {};
|
|
15
|
+
module.exports = __toCommonJS(types_exports);
|
package/dist/js/node/utils.js
CHANGED
|
@@ -21,14 +21,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
mod
|
|
22
22
|
));
|
|
23
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
-
var stdin_exports = {};
|
|
25
|
-
__export(stdin_exports, {
|
|
26
|
-
checkTwinMacroNotExist: () => checkTwinMacroNotExist,
|
|
27
|
-
template: () => template
|
|
28
|
-
});
|
|
29
|
-
module.exports = __toCommonJS(stdin_exports);
|
|
30
|
-
var import_path = __toESM(require("path"));
|
|
31
|
-
var import_utils = require("@modern-js/utils");
|
|
32
24
|
var __async = (__this, __arguments, generator) => {
|
|
33
25
|
return new Promise((resolve, reject) => {
|
|
34
26
|
var fulfilled = (value) => {
|
|
@@ -49,6 +41,14 @@ var __async = (__this, __arguments, generator) => {
|
|
|
49
41
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
50
42
|
});
|
|
51
43
|
};
|
|
44
|
+
var utils_exports = {};
|
|
45
|
+
__export(utils_exports, {
|
|
46
|
+
checkTwinMacroNotExist: () => checkTwinMacroNotExist,
|
|
47
|
+
template: () => template
|
|
48
|
+
});
|
|
49
|
+
module.exports = __toCommonJS(utils_exports);
|
|
50
|
+
var import_path = __toESM(require("path"));
|
|
51
|
+
var import_utils = require("@modern-js/utils");
|
|
52
52
|
const template = (configPath) => `
|
|
53
53
|
function _interopRequireDefault(obj) {
|
|
54
54
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
@@ -79,3 +79,8 @@ const checkTwinMacroNotExist = (appDirectory) => __async(void 0, null, function*
|
|
|
79
79
|
}
|
|
80
80
|
return true;
|
|
81
81
|
});
|
|
82
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
83
|
+
0 && (module.exports = {
|
|
84
|
+
checkTwinMacroNotExist,
|
|
85
|
+
template
|
|
86
|
+
});
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type DesignSystem = Record<string, any> & {
|
|
2
2
|
supportStyledComponents?: boolean;
|
|
3
3
|
};
|
|
4
|
-
export
|
|
4
|
+
export type Tailwind = Record<string, any> | ((options: Record<string, any>) => Record<string, any> | void);
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "0.0.0-next-
|
|
14
|
+
"version": "0.0.0-next-20221214140550",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@babel/runtime": "^7.18.0",
|
|
47
47
|
"babel-plugin-macros": "3.1.0",
|
|
48
48
|
"hoist-non-react-statics": "^3.3.2",
|
|
49
|
-
"@modern-js/utils": "0.0.0-next-
|
|
49
|
+
"@modern-js/utils": "0.0.0-next-20221214140550"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/jest": "^27",
|
|
@@ -57,17 +57,17 @@
|
|
|
57
57
|
"jest": "^27",
|
|
58
58
|
"react": "^18",
|
|
59
59
|
"postcss": "^8.4.14",
|
|
60
|
-
"@modern-js/core": "0.0.0-next-
|
|
61
|
-
"@modern-js/module-tools": "0.0.0-next-
|
|
62
|
-
"@modern-js/runtime": "0.0.0-next-
|
|
63
|
-
"@modern-js/types": "0.0.0-next-
|
|
64
|
-
"@scripts/build": "0.0.0-next-
|
|
65
|
-
"@modern-js/app-tools": "0.0.0-next-
|
|
66
|
-
"@scripts/jest-config": "0.0.0-next-
|
|
60
|
+
"@modern-js/core": "0.0.0-next-20221214140550",
|
|
61
|
+
"@modern-js/module-tools": "0.0.0-next-20221214140550",
|
|
62
|
+
"@modern-js/runtime": "0.0.0-next-20221214140550",
|
|
63
|
+
"@modern-js/types": "0.0.0-next-20221214140550",
|
|
64
|
+
"@scripts/build": "0.0.0-next-20221214140550",
|
|
65
|
+
"@modern-js/app-tools": "0.0.0-next-20221214140550",
|
|
66
|
+
"@scripts/jest-config": "0.0.0-next-20221214140550"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"tailwindcss": "^2.0.4",
|
|
70
|
-
"@modern-js/runtime": "
|
|
70
|
+
"@modern-js/runtime": "0.0.0-next-20221214140550"
|
|
71
71
|
},
|
|
72
72
|
"peerDependenciesMeta": {
|
|
73
73
|
"@modern-js/runtime": {
|