@modern-js/plugin-tailwindcss 0.0.0-next-20230922063312 → 0.0.0-next-20230925025231

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
@@ -89,14 +89,14 @@ const tailwindcssPlugin = ({ pluginName } = {
89
89
  let tailwindConfig;
90
90
  const initTailwindConfig = () => {
91
91
  if (!tailwindConfig) {
92
- var _modernConfig_tools, _modernConfig, _modernConfig_source, _modernConfig1;
92
+ var _modernConfig_tools, _modernConfig_source;
93
93
  const modernConfig = api.useResolvedConfigContext();
94
94
  tailwindConfig = (0, import_config.getTailwindConfig)({
95
95
  appDirectory,
96
96
  tailwindVersion,
97
97
  userConfig: userTailwindConfig,
98
- extraConfig: (_modernConfig = modernConfig) === null || _modernConfig === void 0 ? void 0 : (_modernConfig_tools = _modernConfig.tools) === null || _modernConfig_tools === void 0 ? void 0 : _modernConfig_tools.tailwindcss,
99
- designSystem: (_modernConfig1 = modernConfig) === null || _modernConfig1 === void 0 ? void 0 : (_modernConfig_source = _modernConfig1.source) === null || _modernConfig_source === void 0 ? void 0 : _modernConfig_source.designSystem
98
+ extraConfig: modernConfig === null || modernConfig === void 0 ? void 0 : (_modernConfig_tools = modernConfig.tools) === null || _modernConfig_tools === void 0 ? void 0 : _modernConfig_tools.tailwindcss,
99
+ designSystem: modernConfig === null || modernConfig === void 0 ? void 0 : (_modernConfig_source = modernConfig.source) === null || _modernConfig_source === void 0 ? void 0 : _modernConfig_source.designSystem
100
100
  });
101
101
  }
102
102
  };
@@ -86,8 +86,7 @@ const designTokenPlugin = ({ pluginName } = {
86
86
  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 : {};
87
87
  let useSCThemeProvider = true;
88
88
  if (designSystem) {
89
- var _designSystem;
90
- useSCThemeProvider = ((_designSystem = designSystem) === null || _designSystem === void 0 ? void 0 : _designSystem.supportStyledComponents) || false;
89
+ useSCThemeProvider = (designSystem === null || designSystem === void 0 ? void 0 : designSystem.supportStyledComponents) || false;
91
90
  }
92
91
  if (typeof designSystem === "object" && designSystem.supportStyledComponents) {
93
92
  plugins.push({
package/dist/esm/cli.js CHANGED
@@ -76,14 +76,14 @@ var tailwindcssPlugin = function() {
76
76
  var tailwindConfig;
77
77
  var initTailwindConfig = function() {
78
78
  if (!tailwindConfig) {
79
- var _modernConfig_tools, _modernConfig, _modernConfig_source, _modernConfig1;
79
+ var _modernConfig_tools, _modernConfig_source;
80
80
  var modernConfig = api.useResolvedConfigContext();
81
81
  tailwindConfig = getTailwindConfig({
82
82
  appDirectory,
83
83
  tailwindVersion,
84
84
  userConfig: userTailwindConfig,
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
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 @@ 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
- var _designSystem;
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({
@@ -55,14 +55,14 @@ const tailwindcssPlugin = ({ pluginName } = {
55
55
  let tailwindConfig;
56
56
  const initTailwindConfig = () => {
57
57
  if (!tailwindConfig) {
58
- var _modernConfig_tools, _modernConfig, _modernConfig_source, _modernConfig1;
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: (_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
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 @@ 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
- var _designSystem;
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": "0.0.0-next-20230922063312",
18
+ "version": "0.0.0-next-20230925025231",
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-20230922063312",
53
- "@modern-js/node-bundle-require": "0.0.0-next-20230922063312"
52
+ "@modern-js/utils": "0.0.0-next-20230925025231",
53
+ "@modern-js/node-bundle-require": "0.0.0-next-20230925025231"
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-20230922063312",
64
- "@modern-js/types": "0.0.0-next-20230922063312",
65
- "@modern-js/app-tools": "0.0.0-next-20230922063312",
66
- "@modern-js/core": "0.0.0-next-20230922063312",
67
- "@modern-js/module-tools": "0.0.0-next-20230922063312",
68
- "@scripts/build": "0.0.0-next-20230922063312",
69
- "@scripts/jest-config": "0.0.0-next-20230922063312"
63
+ "@modern-js/core": "0.0.0-next-20230925025231",
64
+ "@modern-js/module-tools": "0.0.0-next-20230925025231",
65
+ "@modern-js/runtime": "0.0.0-next-20230925025231",
66
+ "@modern-js/types": "0.0.0-next-20230925025231",
67
+ "@scripts/build": "0.0.0-next-20230925025231",
68
+ "@modern-js/app-tools": "0.0.0-next-20230925025231",
69
+ "@scripts/jest-config": "0.0.0-next-20230925025231"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "tailwindcss": ">= 2.0.0 || >= 3.0.0",
73
- "@modern-js/runtime": "0.0.0-next-20230922063312"
73
+ "@modern-js/runtime": "0.0.0-next-20230925025231"
74
74
  },
75
75
  "peerDependenciesMeta": {
76
76
  "@modern-js/runtime": {