@modern-js/plugin-tailwindcss 0.0.0-next-20221215040311 → 0.0.0-next-20221215054031

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # @modern-js/plugin-tailwindcss
2
2
 
3
- ## 0.0.0-next-20221215040311
3
+ ## 0.0.0-next-20221215054031
4
4
 
5
5
  ### Major Changes
6
6
 
@@ -94,8 +94,8 @@
94
94
  - Updated dependencies [abf3421a7]
95
95
  - Updated dependencies [543be9558]
96
96
  - Updated dependencies [14b712da8]
97
- - @modern-js/runtime@0.0.0-next-20221215040311
98
- - @modern-js/utils@0.0.0-next-20221215040311
97
+ - @modern-js/runtime@0.0.0-next-20221215054031
98
+ - @modern-js/utils@0.0.0-next-20221215054031
99
99
 
100
100
  ## 2.0.0-beta.3
101
101
 
@@ -21,6 +21,17 @@ 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");
24
35
  var __async = (__this, __arguments, generator) => {
25
36
  return new Promise((resolve, reject) => {
26
37
  var fulfilled = (value) => {
@@ -41,17 +52,6 @@ var __async = (__this, __arguments, generator) => {
41
52
  step((generator = generator.apply(__this, __arguments)).next());
42
53
  });
43
54
  };
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,7 +193,3 @@ 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,21 +1,7 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
4
  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
- };
19
5
  var __export = (target, all) => {
20
6
  for (var name in all)
21
7
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -29,12 +15,28 @@ var __copyProps = (to, from, except, desc) => {
29
15
  return to;
30
16
  };
31
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
- var cli_exports = {};
33
- __export(cli_exports, {
18
+ var stdin_exports = {};
19
+ __export(stdin_exports, {
34
20
  default: () => cli_default
35
21
  });
36
- module.exports = __toCommonJS(cli_exports);
22
+ module.exports = __toCommonJS(stdin_exports);
37
23
  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
+ };
38
40
  var cli_default = ({ pluginName } = { pluginName: "@modern-js/plugin-tailwindcss" }) => ({
39
41
  name: "@modern-js/plugin-design-token",
40
42
  setup(api) {
@@ -121,5 +123,3 @@ var cli_default = ({ pluginName } = { pluginName: "@modern-js/plugin-tailwindcss
121
123
  };
122
124
  }
123
125
  });
124
- // Annotate the CommonJS export names for ESM import in node:
125
- 0 && (module.exports = {});
@@ -22,12 +22,10 @@ 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 design_token_exports = {};
26
- __export(design_token_exports, {
25
+ var stdin_exports = {};
26
+ __export(stdin_exports, {
27
27
  default: () => import_runtime.default
28
28
  });
29
- module.exports = __toCommonJS(design_token_exports);
29
+ module.exports = __toCommonJS(stdin_exports);
30
30
  var import_runtime = __toESM(require("./runtime"));
31
- __reExport(design_token_exports, require("./runtime"), module.exports);
32
- // Annotate the CommonJS export names for ESM import in node:
33
- 0 && (module.exports = {});
31
+ __reExport(stdin_exports, require("./runtime"), 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 postcss_plugin_exports = {};
19
- __export(postcss_plugin_exports, {
18
+ var stdin_exports = {};
19
+ __export(stdin_exports, {
20
20
  default: () => postcss_plugin_default
21
21
  });
22
- module.exports = __toCommonJS(postcss_plugin_exports);
22
+ module.exports = __toCommonJS(stdin_exports);
23
23
  var postcss_plugin_default = ({
24
24
  cssVarsHash = {}
25
25
  } = {}) => ({
@@ -35,5 +35,3 @@ 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,13 +22,11 @@ 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 runtime_exports = {};
26
- __export(runtime_exports, {
25
+ var stdin_exports = {};
26
+ __export(stdin_exports, {
27
27
  default: () => runtime_default
28
28
  });
29
- module.exports = __toCommonJS(runtime_exports);
29
+ module.exports = __toCommonJS(stdin_exports);
30
30
  var import_plugin = __toESM(require("./plugin"));
31
- __reExport(runtime_exports, require("./plugin"), module.exports);
31
+ __reExport(stdin_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,22 +2,8 @@ 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;
6
5
  var __getProtoOf = Object.getPrototypeOf;
7
6
  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
- };
21
7
  var __export = (target, all) => {
22
8
  for (var name in all)
23
9
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -35,16 +21,32 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
35
21
  mod
36
22
  ));
37
23
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
38
- var plugin_exports = {};
39
- __export(plugin_exports, {
24
+ var stdin_exports = {};
25
+ __export(stdin_exports, {
40
26
  DesignTokenContext: () => DesignTokenContext,
41
27
  default: () => plugin_default,
42
28
  useDesignTokens: () => useDesignTokens
43
29
  });
44
- module.exports = __toCommonJS(plugin_exports);
30
+ module.exports = __toCommonJS(stdin_exports);
45
31
  var import_jsx_runtime = require("react/jsx-runtime");
46
32
  var import_hoist_non_react_statics = __toESM(require("hoist-non-react-statics"));
47
33
  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
+ };
48
50
  const DesignTokenContext = import_react.default.createContext({});
49
51
  const useDesignTokens = () => (0, import_react.useContext)(DesignTokenContext);
50
52
  var plugin_default = (options = {}) => ({
@@ -87,8 +89,3 @@ var plugin_default = (options = {}) => ({
87
89
  }
88
90
  })
89
91
  });
90
- // Annotate the CommonJS export names for ESM import in node:
91
- 0 && (module.exports = {
92
- DesignTokenContext,
93
- useDesignTokens
94
- });
@@ -21,11 +21,9 @@ 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 src_exports = {};
25
- __export(src_exports, {
24
+ var stdin_exports = {};
25
+ __export(stdin_exports, {
26
26
  default: () => import_cli.default
27
27
  });
28
- module.exports = __toCommonJS(src_exports);
28
+ module.exports = __toCommonJS(stdin_exports);
29
29
  var import_cli = __toESM(require("./cli"));
30
- // Annotate the CommonJS export names for ESM import in node:
31
- 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 tailwind_exports = {};
19
- __export(tailwind_exports, {
18
+ var stdin_exports = {};
19
+ __export(stdin_exports, {
20
20
  getTailwindConfig: () => getTailwindConfig
21
21
  });
22
- module.exports = __toCommonJS(tailwind_exports);
22
+ module.exports = __toCommonJS(stdin_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,7 +62,3 @@ 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
- });
@@ -1,15 +0,0 @@
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);
@@ -21,6 +21,14 @@ 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");
24
32
  var __async = (__this, __arguments, generator) => {
25
33
  return new Promise((resolve, reject) => {
26
34
  var fulfilled = (value) => {
@@ -41,14 +49,6 @@ var __async = (__this, __arguments, generator) => {
41
49
  step((generator = generator.apply(__this, __arguments)).next());
42
50
  });
43
51
  };
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,8 +79,3 @@ 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/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-next-20221215040311",
14
+ "version": "0.0.0-next-20221215054031",
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-20221215040311"
49
+ "@modern-js/utils": "0.0.0-next-20221215054031"
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-20221215040311",
61
- "@modern-js/module-tools": "0.0.0-next-20221215040311",
62
- "@modern-js/runtime": "0.0.0-next-20221215040311",
63
- "@modern-js/types": "0.0.0-next-20221215040311",
64
- "@scripts/build": "0.0.0-next-20221215040311",
65
- "@modern-js/app-tools": "0.0.0-next-20221215040311",
66
- "@scripts/jest-config": "0.0.0-next-20221215040311"
60
+ "@modern-js/core": "0.0.0-next-20221215054031",
61
+ "@modern-js/module-tools": "0.0.0-next-20221215054031",
62
+ "@modern-js/runtime": "0.0.0-next-20221215054031",
63
+ "@modern-js/types": "0.0.0-next-20221215054031",
64
+ "@scripts/build": "0.0.0-next-20221215054031",
65
+ "@modern-js/app-tools": "0.0.0-next-20221215054031",
66
+ "@scripts/jest-config": "0.0.0-next-20221215054031"
67
67
  },
68
68
  "peerDependencies": {
69
69
  "tailwindcss": "^2.0.4",
70
- "@modern-js/runtime": "0.0.0-next-20221215040311"
70
+ "@modern-js/runtime": "0.0.0-next-20221215054031"
71
71
  },
72
72
  "peerDependenciesMeta": {
73
73
  "@modern-js/runtime": {