@modern-js/plugin-tailwindcss 0.0.0-next-20230920090905 → 0.0.0-next-20230920091340
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/cjs/cli.js
CHANGED
|
@@ -75,14 +75,14 @@ const tailwindcssPlugin = ({ pluginName } = {
|
|
|
75
75
|
let tailwindConfig;
|
|
76
76
|
const initTailwindConfig = () => {
|
|
77
77
|
if (!tailwindConfig) {
|
|
78
|
-
var _modernConfig_tools, _modernConfig_source;
|
|
78
|
+
var _modernConfig_tools, _modernConfig, _modernConfig_source, _modernConfig1;
|
|
79
79
|
const modernConfig = api.useResolvedConfigContext();
|
|
80
80
|
tailwindConfig = (0, _config.getTailwindConfig)({
|
|
81
81
|
appDirectory,
|
|
82
82
|
tailwindVersion,
|
|
83
83
|
userConfig: userTailwindConfig,
|
|
84
|
-
extraConfig: modernConfig === null ||
|
|
85
|
-
designSystem: modernConfig === null ||
|
|
84
|
+
extraConfig: (_modernConfig = modernConfig) === null || _modernConfig === void 0 ? void 0 : (_modernConfig_tools = _modernConfig.tools) === null || _modernConfig_tools === void 0 ? void 0 : _modernConfig_tools.tailwindcss,
|
|
85
|
+
designSystem: (_modernConfig1 = modernConfig) === null || _modernConfig1 === void 0 ? void 0 : (_modernConfig_source = _modernConfig1.source) === null || _modernConfig_source === void 0 ? void 0 : _modernConfig_source.designSystem
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
};
|
|
@@ -73,7 +73,8 @@ const designTokenPlugin = ({ pluginName } = {
|
|
|
73
73
|
const designSystem = (_userConfig_source_designSystem = (_userConfig_source = userConfig.source) === null || _userConfig_source === void 0 ? void 0 : _userConfig_source.designSystem) !== null && _userConfig_source_designSystem !== void 0 ? _userConfig_source_designSystem : {};
|
|
74
74
|
let useSCThemeProvider = true;
|
|
75
75
|
if (designSystem) {
|
|
76
|
-
|
|
76
|
+
var _designSystem;
|
|
77
|
+
useSCThemeProvider = ((_designSystem = designSystem) === null || _designSystem === void 0 ? void 0 : _designSystem.supportStyledComponents) || false;
|
|
77
78
|
}
|
|
78
79
|
if (typeof designSystem === "object" && designSystem.supportStyledComponents) {
|
|
79
80
|
plugins.push({
|
package/dist/esm/cli.js
CHANGED
|
@@ -76,14 +76,14 @@ export var tailwindcssPlugin = function() {
|
|
|
76
76
|
var tailwindConfig;
|
|
77
77
|
var initTailwindConfig = function() {
|
|
78
78
|
if (!tailwindConfig) {
|
|
79
|
-
var _modernConfig_tools, _modernConfig_source;
|
|
79
|
+
var _modernConfig_tools, _modernConfig, _modernConfig_source, _modernConfig1;
|
|
80
80
|
var modernConfig = api.useResolvedConfigContext();
|
|
81
81
|
tailwindConfig = getTailwindConfig({
|
|
82
82
|
appDirectory: appDirectory,
|
|
83
83
|
tailwindVersion: tailwindVersion,
|
|
84
84
|
userConfig: userTailwindConfig,
|
|
85
|
-
extraConfig: modernConfig === null ||
|
|
86
|
-
designSystem: modernConfig === null ||
|
|
85
|
+
extraConfig: (_modernConfig = modernConfig) === null || _modernConfig === void 0 ? void 0 : (_modernConfig_tools = _modernConfig.tools) === null || _modernConfig_tools === void 0 ? void 0 : _modernConfig_tools.tailwindcss,
|
|
86
|
+
designSystem: (_modernConfig1 = modernConfig) === null || _modernConfig1 === void 0 ? void 0 : (_modernConfig_source = _modernConfig1.source) === null || _modernConfig_source === void 0 ? void 0 : _modernConfig_source.designSystem
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
};
|
|
@@ -64,7 +64,8 @@ export var designTokenPlugin = function() {
|
|
|
64
64
|
var designSystem = (_userConfig_source_designSystem = (_userConfig_source = userConfig.source) === null || _userConfig_source === void 0 ? void 0 : _userConfig_source.designSystem) !== null && _userConfig_source_designSystem !== void 0 ? _userConfig_source_designSystem : {};
|
|
65
65
|
var useSCThemeProvider = true;
|
|
66
66
|
if (designSystem) {
|
|
67
|
-
|
|
67
|
+
var _designSystem;
|
|
68
|
+
useSCThemeProvider = ((_designSystem = designSystem) === null || _designSystem === void 0 ? void 0 : _designSystem.supportStyledComponents) || false;
|
|
68
69
|
}
|
|
69
70
|
if (typeof designSystem === "object" && designSystem.supportStyledComponents) {
|
|
70
71
|
plugins.push({
|
package/dist/esm-node/cli.js
CHANGED
|
@@ -55,14 +55,14 @@ export const tailwindcssPlugin = ({ pluginName } = {
|
|
|
55
55
|
let tailwindConfig;
|
|
56
56
|
const initTailwindConfig = () => {
|
|
57
57
|
if (!tailwindConfig) {
|
|
58
|
-
var _modernConfig_tools, _modernConfig_source;
|
|
58
|
+
var _modernConfig_tools, _modernConfig, _modernConfig_source, _modernConfig1;
|
|
59
59
|
const modernConfig = api.useResolvedConfigContext();
|
|
60
60
|
tailwindConfig = getTailwindConfig({
|
|
61
61
|
appDirectory,
|
|
62
62
|
tailwindVersion,
|
|
63
63
|
userConfig: userTailwindConfig,
|
|
64
|
-
extraConfig: modernConfig === null ||
|
|
65
|
-
designSystem: modernConfig === null ||
|
|
64
|
+
extraConfig: (_modernConfig = modernConfig) === null || _modernConfig === void 0 ? void 0 : (_modernConfig_tools = _modernConfig.tools) === null || _modernConfig_tools === void 0 ? void 0 : _modernConfig_tools.tailwindcss,
|
|
65
|
+
designSystem: (_modernConfig1 = modernConfig) === null || _modernConfig1 === void 0 ? void 0 : (_modernConfig_source = _modernConfig1.source) === null || _modernConfig_source === void 0 ? void 0 : _modernConfig_source.designSystem
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
};
|
|
@@ -63,7 +63,8 @@ export const designTokenPlugin = ({ pluginName } = {
|
|
|
63
63
|
const designSystem = (_userConfig_source_designSystem = (_userConfig_source = userConfig.source) === null || _userConfig_source === void 0 ? void 0 : _userConfig_source.designSystem) !== null && _userConfig_source_designSystem !== void 0 ? _userConfig_source_designSystem : {};
|
|
64
64
|
let useSCThemeProvider = true;
|
|
65
65
|
if (designSystem) {
|
|
66
|
-
|
|
66
|
+
var _designSystem;
|
|
67
|
+
useSCThemeProvider = ((_designSystem = designSystem) === null || _designSystem === void 0 ? void 0 : _designSystem.supportStyledComponents) || false;
|
|
67
68
|
}
|
|
68
69
|
if (typeof designSystem === "object" && designSystem.supportStyledComponents) {
|
|
69
70
|
plugins.push({
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "0.0.0-next-
|
|
18
|
+
"version": "0.0.0-next-20230920091340",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"babel-plugin-macros": "3.1.0",
|
|
50
50
|
"hoist-non-react-statics": "^3.3.2",
|
|
51
51
|
"@swc/helpers": "0.5.1",
|
|
52
|
-
"@modern-js/utils": "0.0.0-next-
|
|
53
|
-
"@modern-js/node-bundle-require": "0.0.0-next-
|
|
52
|
+
"@modern-js/utils": "0.0.0-next-20230920091340",
|
|
53
|
+
"@modern-js/node-bundle-require": "0.0.0-next-20230920091340"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/jest": "^29",
|
|
@@ -60,17 +60,17 @@
|
|
|
60
60
|
"jest": "^29",
|
|
61
61
|
"react": "^18",
|
|
62
62
|
"postcss": "8.4.27",
|
|
63
|
-
"@modern-js/runtime": "0.0.0-next-
|
|
64
|
-
"@modern-js/types": "0.0.0-next-
|
|
65
|
-
"@modern-js/core": "0.0.0-next-
|
|
66
|
-
"@modern-js/module-tools": "0.0.0-next-
|
|
67
|
-
"@modern-js/app-tools": "0.0.0-next-
|
|
68
|
-
"@scripts/
|
|
69
|
-
"@scripts/
|
|
63
|
+
"@modern-js/runtime": "0.0.0-next-20230920091340",
|
|
64
|
+
"@modern-js/types": "0.0.0-next-20230920091340",
|
|
65
|
+
"@modern-js/core": "0.0.0-next-20230920091340",
|
|
66
|
+
"@modern-js/module-tools": "0.0.0-next-20230920091340",
|
|
67
|
+
"@modern-js/app-tools": "0.0.0-next-20230920091340",
|
|
68
|
+
"@scripts/jest-config": "0.0.0-next-20230920091340",
|
|
69
|
+
"@scripts/build": "0.0.0-next-20230920091340"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"tailwindcss": ">= 2.0.0 || >= 3.0.0",
|
|
73
|
-
"@modern-js/runtime": "0.0.0-next-
|
|
73
|
+
"@modern-js/runtime": "0.0.0-next-20230920091340"
|
|
74
74
|
},
|
|
75
75
|
"peerDependenciesMeta": {
|
|
76
76
|
"@modern-js/runtime": {
|