@modern-js/plugin-tailwindcss 2.35.0 → 2.35.1
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,
|
78
|
+
var _modernConfig_tools, _modernConfig_source;
|
79
79
|
const modernConfig = api.useResolvedConfigContext();
|
80
80
|
tailwindConfig = (0, _config.getTailwindConfig)({
|
81
81
|
appDirectory,
|
82
82
|
tailwindVersion,
|
83
83
|
userConfig: userTailwindConfig,
|
84
|
-
extraConfig:
|
85
|
-
designSystem:
|
84
|
+
extraConfig: modernConfig === null || modernConfig === void 0 ? void 0 : (_modernConfig_tools = modernConfig.tools) === null || _modernConfig_tools === void 0 ? void 0 : _modernConfig_tools.tailwindcss,
|
85
|
+
designSystem: modernConfig === null || modernConfig === void 0 ? void 0 : (_modernConfig_source = modernConfig.source) === null || _modernConfig_source === void 0 ? void 0 : _modernConfig_source.designSystem
|
86
86
|
});
|
87
87
|
}
|
88
88
|
};
|
@@ -73,8 +73,7 @@ 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
|
-
|
77
|
-
useSCThemeProvider = ((_designSystem = designSystem) === null || _designSystem === void 0 ? void 0 : _designSystem.supportStyledComponents) || false;
|
76
|
+
useSCThemeProvider = (designSystem === null || designSystem === void 0 ? void 0 : designSystem.supportStyledComponents) || false;
|
78
77
|
}
|
79
78
|
if (typeof designSystem === "object" && designSystem.supportStyledComponents) {
|
80
79
|
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,
|
79
|
+
var _modernConfig_tools, _modernConfig_source;
|
80
80
|
var modernConfig = api.useResolvedConfigContext();
|
81
81
|
tailwindConfig = getTailwindConfig({
|
82
82
|
appDirectory: appDirectory,
|
83
83
|
tailwindVersion: tailwindVersion,
|
84
84
|
userConfig: userTailwindConfig,
|
85
|
-
extraConfig:
|
86
|
-
designSystem:
|
85
|
+
extraConfig: modernConfig === null || modernConfig === void 0 ? void 0 : (_modernConfig_tools = modernConfig.tools) === null || _modernConfig_tools === void 0 ? void 0 : _modernConfig_tools.tailwindcss,
|
86
|
+
designSystem: modernConfig === null || modernConfig === void 0 ? void 0 : (_modernConfig_source = modernConfig.source) === null || _modernConfig_source === void 0 ? void 0 : _modernConfig_source.designSystem
|
87
87
|
});
|
88
88
|
}
|
89
89
|
};
|
@@ -64,8 +64,7 @@ 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
|
-
|
68
|
-
useSCThemeProvider = ((_designSystem = designSystem) === null || _designSystem === void 0 ? void 0 : _designSystem.supportStyledComponents) || false;
|
67
|
+
useSCThemeProvider = (designSystem === null || designSystem === void 0 ? void 0 : designSystem.supportStyledComponents) || false;
|
69
68
|
}
|
70
69
|
if (typeof designSystem === "object" && designSystem.supportStyledComponents) {
|
71
70
|
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,
|
58
|
+
var _modernConfig_tools, _modernConfig_source;
|
59
59
|
const modernConfig = api.useResolvedConfigContext();
|
60
60
|
tailwindConfig = getTailwindConfig({
|
61
61
|
appDirectory,
|
62
62
|
tailwindVersion,
|
63
63
|
userConfig: userTailwindConfig,
|
64
|
-
extraConfig:
|
65
|
-
designSystem:
|
64
|
+
extraConfig: modernConfig === null || modernConfig === void 0 ? void 0 : (_modernConfig_tools = modernConfig.tools) === null || _modernConfig_tools === void 0 ? void 0 : _modernConfig_tools.tailwindcss,
|
65
|
+
designSystem: modernConfig === null || modernConfig === void 0 ? void 0 : (_modernConfig_source = modernConfig.source) === null || _modernConfig_source === void 0 ? void 0 : _modernConfig_source.designSystem
|
66
66
|
});
|
67
67
|
}
|
68
68
|
};
|
@@ -63,8 +63,7 @@ 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
|
-
|
67
|
-
useSCThemeProvider = ((_designSystem = designSystem) === null || _designSystem === void 0 ? void 0 : _designSystem.supportStyledComponents) || false;
|
66
|
+
useSCThemeProvider = (designSystem === null || designSystem === void 0 ? void 0 : designSystem.supportStyledComponents) || false;
|
68
67
|
}
|
69
68
|
if (typeof designSystem === "object" && designSystem.supportStyledComponents) {
|
70
69
|
plugins.push({
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.35.
|
18
|
+
"version": "2.35.1",
|
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": "2.35.
|
53
|
-
"@modern-js/node-bundle-require": "2.35.
|
52
|
+
"@modern-js/utils": "2.35.1",
|
53
|
+
"@modern-js/node-bundle-require": "2.35.1"
|
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": "2.35.
|
64
|
-
"@modern-js/types": "2.35.
|
65
|
-
"@modern-js/app-tools": "2.35.
|
66
|
-
"@modern-js/core": "2.35.
|
67
|
-
"@modern-js/module-tools": "2.35.
|
68
|
-
"@scripts/build": "2.35.
|
69
|
-
"@scripts/jest-config": "2.35.
|
63
|
+
"@modern-js/runtime": "2.35.1",
|
64
|
+
"@modern-js/types": "2.35.1",
|
65
|
+
"@modern-js/app-tools": "2.35.1",
|
66
|
+
"@modern-js/core": "2.35.1",
|
67
|
+
"@modern-js/module-tools": "2.35.1",
|
68
|
+
"@scripts/build": "2.35.1",
|
69
|
+
"@scripts/jest-config": "2.35.1"
|
70
70
|
},
|
71
71
|
"peerDependencies": {
|
72
72
|
"tailwindcss": ">= 2.0.0 || >= 3.0.0",
|
73
|
-
"@modern-js/runtime": "^2.35.
|
73
|
+
"@modern-js/runtime": "^2.35.1"
|
74
74
|
},
|
75
75
|
"peerDependenciesMeta": {
|
76
76
|
"@modern-js/runtime": {
|