tailwindcss 0.0.0-oxide-insiders.dddaded → 0.0.0-oxide-insiders.b2e3cf2

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.
Files changed (112) hide show
  1. package/lib/cli/build/deps.js +10 -18
  2. package/lib/cli/build/index.js +10 -41
  3. package/lib/cli/build/plugin.js +87 -268
  4. package/lib/cli/build/utils.js +18 -40
  5. package/lib/cli/build/watching.js +35 -151
  6. package/lib/cli/help/index.js +15 -58
  7. package/lib/cli/index.js +61 -120
  8. package/lib/cli/init/index.js +21 -43
  9. package/lib/cli-peer-dependencies.js +13 -15
  10. package/lib/cli.js +1 -5
  11. package/lib/corePluginList.js +3 -4
  12. package/lib/corePlugins.js +394 -857
  13. package/lib/featureFlags.js +14 -34
  14. package/lib/index.js +1 -5
  15. package/lib/lib/cacheInvalidation.js +29 -75
  16. package/lib/lib/collapseAdjacentRules.js +22 -43
  17. package/lib/lib/collapseDuplicateDeclarations.js +27 -68
  18. package/lib/lib/content.js +37 -126
  19. package/lib/lib/defaultExtractor.js +96 -199
  20. package/lib/lib/detectNesting.js +12 -36
  21. package/lib/lib/evaluateTailwindFunctions.js +101 -188
  22. package/lib/lib/expandApplyAtRules.js +177 -482
  23. package/lib/lib/expandTailwindAtRules.js +69 -237
  24. package/lib/lib/findAtConfigPath.js +13 -30
  25. package/lib/lib/generateRules.js +349 -765
  26. package/lib/lib/getModuleDependencies.js +27 -63
  27. package/lib/lib/load-config.js +16 -24
  28. package/lib/lib/normalizeTailwindDirectives.js +26 -70
  29. package/lib/lib/offsets.js +61 -224
  30. package/lib/lib/partitionApplyAtRules.js +29 -51
  31. package/lib/lib/regex.js +22 -30
  32. package/lib/lib/remap-bitfield.js +9 -84
  33. package/lib/lib/resolveDefaultsAtRules.js +50 -116
  34. package/lib/lib/setupContextUtils.js +576 -1099
  35. package/lib/lib/setupTrackingContext.js +54 -143
  36. package/lib/lib/sharedState.js +15 -59
  37. package/lib/lib/substituteScreenAtRules.js +8 -16
  38. package/lib/oxide/cli/build/deps.js +17 -32
  39. package/lib/oxide/cli/build/index.js +10 -40
  40. package/lib/oxide/cli/build/plugin.js +87 -267
  41. package/lib/oxide/cli/build/utils.js +18 -39
  42. package/lib/oxide/cli/build/watching.js +34 -149
  43. package/lib/oxide/cli/help/index.js +15 -57
  44. package/lib/oxide/cli/index.js +66 -127
  45. package/lib/oxide/cli/init/index.js +17 -36
  46. package/lib/oxide/cli.js +2 -3
  47. package/lib/plugin.js +30 -57
  48. package/lib/postcss-plugins/nesting/index.js +6 -10
  49. package/lib/postcss-plugins/nesting/plugin.js +17 -60
  50. package/lib/processTailwindFeatures.js +8 -37
  51. package/lib/public/colors.js +15 -22
  52. package/lib/public/create-plugin.js +5 -8
  53. package/lib/public/default-config.js +5 -9
  54. package/lib/public/default-theme.js +5 -9
  55. package/lib/public/load-config.js +4 -6
  56. package/lib/public/resolve-config.js +4 -6
  57. package/lib/util/applyImportantSelector.js +15 -24
  58. package/lib/util/bigSign.js +6 -7
  59. package/lib/util/buildMediaQuery.js +10 -17
  60. package/lib/util/cloneDeep.js +9 -17
  61. package/lib/util/cloneNodes.js +14 -27
  62. package/lib/util/color.js +45 -81
  63. package/lib/util/configurePlugins.js +9 -16
  64. package/lib/util/createPlugin.js +8 -15
  65. package/lib/util/createUtilityPlugin.js +15 -27
  66. package/lib/util/dataTypes.js +23 -144
  67. package/lib/util/defaults.js +9 -19
  68. package/lib/util/escapeClassName.js +6 -10
  69. package/lib/util/escapeCommas.js +6 -7
  70. package/lib/util/flattenColorPalette.js +6 -8
  71. package/lib/util/formatVariantSelector.js +49 -190
  72. package/lib/util/getAllConfigs.js +35 -42
  73. package/lib/util/hashConfig.js +6 -8
  74. package/lib/util/isKeyframeRule.js +6 -7
  75. package/lib/util/isPlainObject.js +8 -11
  76. package/lib/util/isSyntacticallyValidPropertyValue.js +13 -42
  77. package/lib/util/log.js +7 -14
  78. package/lib/util/nameClass.js +6 -21
  79. package/lib/util/negateValue.js +10 -26
  80. package/lib/util/normalizeConfig.js +63 -240
  81. package/lib/util/normalizeScreens.js +70 -137
  82. package/lib/util/parseAnimationValue.js +13 -61
  83. package/lib/util/parseBoxShadowValue.js +12 -57
  84. package/lib/util/parseDependency.js +13 -37
  85. package/lib/util/parseGlob.js +7 -22
  86. package/lib/util/parseObjectStyles.js +17 -26
  87. package/lib/util/pluginUtils.js +69 -176
  88. package/lib/util/prefixSelector.js +11 -28
  89. package/lib/util/pseudoElements.js +29 -105
  90. package/lib/util/removeAlphaVariables.js +8 -21
  91. package/lib/util/resolveConfig.js +103 -220
  92. package/lib/util/resolveConfigPath.js +12 -38
  93. package/lib/util/responsive.js +4 -6
  94. package/lib/util/splitAtTopLevelOnly.js +10 -44
  95. package/lib/util/tap.js +6 -8
  96. package/lib/util/toColorValue.js +6 -7
  97. package/lib/util/toPath.js +8 -26
  98. package/lib/util/transformThemeValue.js +12 -45
  99. package/lib/util/validateConfig.js +14 -22
  100. package/lib/util/validateFormalSyntax.js +5 -11
  101. package/lib/util/withAlphaVariable.js +28 -48
  102. package/package.json +3 -3
  103. package/peers/index.js +14 -16
  104. package/src/cli/build/plugin.js +1 -1
  105. package/src/cli.js +1 -1
  106. package/src/corePlugins.js +16 -17
  107. package/src/featureFlags.js +2 -3
  108. package/src/index.js +1 -5
  109. package/src/lib/expandTailwindAtRules.js +2 -2
  110. package/src/lib/sharedState.js +0 -15
  111. package/src/oxide/cli/build/plugin.ts +1 -1
  112. package/src/plugin.js +1 -1
package/lib/plugin.js CHANGED
@@ -1,98 +1,71 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", {
3
- value: true
3
+ value: !0
4
4
  });
5
- const _setupTrackingContext = /*#__PURE__*/ _interopRequireDefault(require("./lib/setupTrackingContext"));
6
- const _processTailwindFeatures = /*#__PURE__*/ _interopRequireDefault(require("./processTailwindFeatures"));
7
- const _sharedState = require("./lib/sharedState");
8
- const _findAtConfigPath = require("./lib/findAtConfigPath");
5
+ const _setupTrackingContext = _interopRequireDefault(require("./lib/setupTrackingContext")), _processTailwindFeatures = _interopRequireDefault(require("./processTailwindFeatures")), _sharedState = require("./lib/sharedState"), _findAtConfigPath = require("./lib/findAtConfigPath");
9
6
  function _interopRequireDefault(obj) {
10
7
  return obj && obj.__esModule ? obj : {
11
8
  default: obj
12
9
  };
13
10
  }
14
- module.exports = function tailwindcss(configOrPath) {
11
+ module.exports = function(configOrPath) {
15
12
  return {
16
13
  postcssPlugin: "tailwindcss",
17
14
  plugins: [
18
15
  _sharedState.env.DEBUG && function(root) {
19
- console.log("\n");
20
- console.time("JIT TOTAL");
21
- return root;
16
+ return console.log("\n"), console.time("JIT TOTAL"), root;
22
17
  },
23
18
  function(root, result) {
24
19
  var _findAtConfigPath1;
25
- // Use the path for the `@config` directive if it exists, otherwise use the
26
- // path for the file being processed
27
- configOrPath = (_findAtConfigPath1 = (0, _findAtConfigPath.findAtConfigPath)(root, result)) !== null && _findAtConfigPath1 !== void 0 ? _findAtConfigPath1 : configOrPath;
20
+ configOrPath = null !== (_findAtConfigPath1 = (0, _findAtConfigPath.findAtConfigPath)(root, result)) && void 0 !== _findAtConfigPath1 ? _findAtConfigPath1 : configOrPath;
28
21
  let context = (0, _setupTrackingContext.default)(configOrPath);
29
- if (root.type === "document") {
30
- let roots = root.nodes.filter((node)=>node.type === "root");
31
- for (const root of roots){
32
- if (root.type === "root") {
33
- (0, _processTailwindFeatures.default)(context)(root, result);
34
- }
35
- }
22
+ if ("document" === root.type) {
23
+ for (let root1 of root.nodes.filter((node)=>"root" === node.type))"root" === root1.type && (0, _processTailwindFeatures.default)(context)(root1, result);
36
24
  return;
37
25
  }
38
26
  (0, _processTailwindFeatures.default)(context)(root, result);
39
27
  },
40
- _sharedState.env.OXIDE && function lightningCssPlugin(_root, result) {
41
- let postcss = require("postcss");
42
- let lightningcss = require("lightningcss");
43
- let browserslist = require("browserslist");
28
+ function lightningCssPlugin(_root, result) {
29
+ let postcss = require("postcss"), lightningcss = require("lightningcss"), browserslist = require("browserslist");
44
30
  try {
31
+ var _result_map;
45
32
  let transformed = lightningcss.transform({
46
33
  filename: result.opts.from,
47
34
  code: Buffer.from(result.root.toString()),
48
- minify: false,
35
+ minify: !1,
49
36
  sourceMap: !!result.map,
50
- inputSourceMap: result.map ? result.map.toString() : undefined,
51
- targets: typeof process !== "undefined" && process.env.JEST_WORKER_ID ? {
52
- chrome: 106 << 16
37
+ inputSourceMap: result.map ? result.map.toString() : void 0,
38
+ targets: "undefined" != typeof process && process.env.JEST_WORKER_ID ? {
39
+ chrome: 6946816
53
40
  } : lightningcss.browserslistToTargets(browserslist(require("../package.json").browserslist)),
54
41
  drafts: {
55
- nesting: true,
56
- customMedia: true
42
+ nesting: !0,
43
+ customMedia: !0
57
44
  }
58
45
  });
59
- var _result_map;
60
- result.map = Object.assign((_result_map = result.map) !== null && _result_map !== void 0 ? _result_map : {}, {
61
- toJSON () {
62
- return transformed.map.toJSON();
63
- },
64
- toString () {
65
- return transformed.map.toString();
66
- }
67
- });
68
- result.root = postcss.parse(transformed.code.toString("utf8"));
46
+ result.map = Object.assign(null !== (_result_map = result.map) && void 0 !== _result_map ? _result_map : {}, {
47
+ toJSON: ()=>transformed.map.toJSON(),
48
+ toString: ()=>transformed.map.toString()
49
+ }), result.root = postcss.parse(transformed.code.toString("utf8"));
69
50
  } catch (err) {
70
- if (typeof process !== "undefined" && process.env.JEST_WORKER_ID) {
51
+ if ("undefined" != typeof process && process.env.JEST_WORKER_ID) {
71
52
  let lines = err.source.split("\n");
72
- err = new Error([
53
+ err = Error([
73
54
  "Error formatting using Lightning CSS:",
74
55
  "",
75
- ...[
76
- "```css",
77
- ...lines.slice(Math.max(err.loc.line - 3, 0), err.loc.line),
78
- " ".repeat(err.loc.column - 1) + "^-- " + err.toString(),
79
- ...lines.slice(err.loc.line, err.loc.line + 2),
80
- "```"
81
- ]
56
+ "```css",
57
+ ...lines.slice(Math.max(err.loc.line - 3, 0), err.loc.line),
58
+ " ".repeat(err.loc.column - 1) + "^-- " + err.toString(),
59
+ ...lines.slice(err.loc.line, err.loc.line + 2),
60
+ "```"
82
61
  ].join("\n"));
83
62
  }
84
- if (Error.captureStackTrace) {
85
- Error.captureStackTrace(err, lightningCssPlugin);
86
- }
87
- throw err;
63
+ throw Error.captureStackTrace && Error.captureStackTrace(err, lightningCssPlugin), err;
88
64
  }
89
65
  },
90
66
  _sharedState.env.DEBUG && function(root) {
91
- console.timeEnd("JIT TOTAL");
92
- console.log("\n");
93
- return root;
67
+ return console.timeEnd("JIT TOTAL"), console.log("\n"), root;
94
68
  }
95
69
  ].filter(Boolean)
96
70
  };
97
- };
98
- module.exports.postcss = true;
71
+ }, module.exports.postcss = !0;
@@ -1,19 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
3
+ value: !0
4
+ }), Object.defineProperty(exports, "default", {
5
+ enumerable: !0,
7
6
  get: ()=>_default
8
7
  });
9
- const _plugin = require("./plugin");
10
- const _default = Object.assign(function(opts) {
8
+ const _plugin = require("./plugin"), _default = Object.assign(function(opts) {
11
9
  return {
12
10
  postcssPlugin: "tailwindcss/nesting",
13
- Once (root, { result }) {
14
- return (0, _plugin.nesting)(opts)(root, result);
15
- }
11
+ Once: (root, { result })=>(0, _plugin.nesting)(opts)(root, result)
16
12
  };
17
13
  }, {
18
- postcss: true
14
+ postcss: !0
19
15
  });
@@ -1,13 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "nesting", {
6
- enumerable: true,
3
+ value: !0
4
+ }), Object.defineProperty(exports, "nesting", {
5
+ enumerable: !0,
7
6
  get: ()=>nesting
8
7
  });
9
- const _postcss = /*#__PURE__*/ _interopRequireDefault(require("postcss"));
10
- const _postcssNested = /*#__PURE__*/ _interopRequireDefault(require("postcss-nested"));
8
+ const _postcss = _interopRequireDefault(require("postcss")), _postcssNested = _interopRequireDefault(require("postcss-nested"));
11
9
  function _interopRequireDefault(obj) {
12
10
  return obj && obj.__esModule ? obj : {
13
11
  default: obj
@@ -16,72 +14,31 @@ function _interopRequireDefault(obj) {
16
14
  function nesting(opts = _postcssNested.default) {
17
15
  return (root, result)=>{
18
16
  root.walkAtRules("screen", (rule)=>{
19
- rule.name = "media";
20
- rule.params = `screen(${rule.params})`;
21
- });
22
- root.walkAtRules("apply", (rule)=>{
17
+ rule.name = "media", rule.params = `screen(${rule.params})`;
18
+ }), root.walkAtRules("apply", (rule)=>{
23
19
  rule.before(_postcss.default.decl({
24
20
  prop: "__apply",
25
21
  value: rule.params,
26
22
  source: rule.source
27
- }));
28
- rule.remove();
23
+ })), rule.remove();
29
24
  });
30
25
  let plugin = (()=>{
31
26
  var _opts_hasOwnProperty;
32
- if (typeof opts === "function" || typeof opts === "object" && (opts === null || opts === void 0 ? void 0 : (_opts_hasOwnProperty = opts.hasOwnProperty) === null || _opts_hasOwnProperty === void 0 ? void 0 : _opts_hasOwnProperty.call(opts, "postcssPlugin"))) {
33
- return opts;
34
- }
35
- if (typeof opts === "string") {
36
- return require(opts);
37
- }
38
- if (Object.keys(opts).length <= 0) {
39
- return _postcssNested.default;
40
- }
41
- throw new Error("tailwindcss/nesting should be loaded with a nesting plugin.");
27
+ if ("function" == typeof opts || "object" == typeof opts && (null == opts ? void 0 : null === (_opts_hasOwnProperty = opts.hasOwnProperty) || void 0 === _opts_hasOwnProperty ? void 0 : _opts_hasOwnProperty.call(opts, "postcssPlugin"))) return opts;
28
+ if ("string" == typeof opts) return require(opts);
29
+ if (Object.keys(opts).length <= 0) return _postcssNested.default;
30
+ throw Error("tailwindcss/nesting should be loaded with a nesting plugin.");
42
31
  })();
43
- (0, _postcss.default)([
32
+ return (0, _postcss.default)([
44
33
  plugin
45
- ]).process(root, result.opts).sync();
46
- root.walkDecls("__apply", (decl)=>{
34
+ ]).process(root, result.opts).sync(), root.walkDecls("__apply", (decl)=>{
47
35
  decl.before(_postcss.default.atRule({
48
36
  name: "apply",
49
37
  params: decl.value,
50
38
  source: decl.source
51
- }));
52
- decl.remove();
53
- });
54
- /**
55
- * Use a private PostCSS API to remove the "clean" flag from the entire AST.
56
- * This is done because running process() on the AST will set the "clean"
57
- * flag on all nodes, which we don't want.
58
- *
59
- * This causes downstream plugins using the visitor API to be skipped.
60
- *
61
- * This is guarded because the PostCSS API is not public
62
- * and may change in future versions of PostCSS.
63
- *
64
- * See https://github.com/postcss/postcss/issues/1712 for more details
65
- *
66
- * @param {import('postcss').Node} node
67
- */ function markDirty(node) {
68
- if (!("markDirty" in node)) {
69
- return;
70
- }
71
- // Traverse the tree down to the leaf nodes
72
- if (node.nodes) {
73
- node.nodes.forEach((n)=>markDirty(n));
74
- }
75
- // If it's a leaf node mark it as dirty
76
- // We do this here because marking a node as dirty
77
- // will walk up the tree and mark all parents as dirty
78
- // resulting in a lot of unnecessary work if we did this
79
- // for every single node
80
- if (!node.nodes) {
81
- node.markDirty();
82
- }
83
- }
84
- markDirty(root);
85
- return root;
39
+ })), decl.remove();
40
+ }), !function markDirty(node) {
41
+ "markDirty" in node && (node.nodes && node.nodes.forEach((n)=>markDirty(n)), node.nodes || node.markDirty());
42
+ }(root), root;
86
43
  };
87
44
  }
@@ -1,23 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
3
+ value: !0
4
+ }), Object.defineProperty(exports, "default", {
5
+ enumerable: !0,
7
6
  get: ()=>processTailwindFeatures
8
7
  });
9
- const _normalizeTailwindDirectives = /*#__PURE__*/ _interopRequireDefault(require("./lib/normalizeTailwindDirectives"));
10
- const _expandTailwindAtRules = /*#__PURE__*/ _interopRequireDefault(require("./lib/expandTailwindAtRules"));
11
- const _expandApplyAtRules = /*#__PURE__*/ _interopRequireDefault(require("./lib/expandApplyAtRules"));
12
- const _evaluateTailwindFunctions = /*#__PURE__*/ _interopRequireDefault(require("./lib/evaluateTailwindFunctions"));
13
- const _substituteScreenAtRules = /*#__PURE__*/ _interopRequireDefault(require("./lib/substituteScreenAtRules"));
14
- const _resolveDefaultsAtRules = /*#__PURE__*/ _interopRequireDefault(require("./lib/resolveDefaultsAtRules"));
15
- const _collapseAdjacentRules = /*#__PURE__*/ _interopRequireDefault(require("./lib/collapseAdjacentRules"));
16
- const _collapseDuplicateDeclarations = /*#__PURE__*/ _interopRequireDefault(require("./lib/collapseDuplicateDeclarations"));
17
- const _partitionApplyAtRules = /*#__PURE__*/ _interopRequireDefault(require("./lib/partitionApplyAtRules"));
18
- const _detectNesting = /*#__PURE__*/ _interopRequireDefault(require("./lib/detectNesting"));
19
- const _setupContextUtils = require("./lib/setupContextUtils");
20
- const _featureFlags = require("./featureFlags");
8
+ const _normalizeTailwindDirectives = _interopRequireDefault(require("./lib/normalizeTailwindDirectives")), _expandTailwindAtRules = _interopRequireDefault(require("./lib/expandTailwindAtRules")), _expandApplyAtRules = _interopRequireDefault(require("./lib/expandApplyAtRules")), _evaluateTailwindFunctions = _interopRequireDefault(require("./lib/evaluateTailwindFunctions")), _substituteScreenAtRules = _interopRequireDefault(require("./lib/substituteScreenAtRules")), _resolveDefaultsAtRules = _interopRequireDefault(require("./lib/resolveDefaultsAtRules")), _collapseAdjacentRules = _interopRequireDefault(require("./lib/collapseAdjacentRules")), _collapseDuplicateDeclarations = _interopRequireDefault(require("./lib/collapseDuplicateDeclarations")), _partitionApplyAtRules = _interopRequireDefault(require("./lib/partitionApplyAtRules")), _detectNesting = _interopRequireDefault(require("./lib/detectNesting")), _setupContextUtils = require("./lib/setupContextUtils"), _featureFlags = require("./featureFlags");
21
9
  function _interopRequireDefault(obj) {
22
10
  return obj && obj.__esModule ? obj : {
23
11
  default: obj
@@ -26,10 +14,7 @@ function _interopRequireDefault(obj) {
26
14
  function processTailwindFeatures(setupContext) {
27
15
  return function(root, result) {
28
16
  let { tailwindDirectives , applyDirectives } = (0, _normalizeTailwindDirectives.default)(root);
29
- (0, _detectNesting.default)()(root, result);
30
- // Partition apply rules that are found in the css
31
- // itself.
32
- (0, _partitionApplyAtRules.default)()(root, result);
17
+ (0, _detectNesting.default)()(root, result), (0, _partitionApplyAtRules.default)()(root, result);
33
18
  let context = setupContext({
34
19
  tailwindDirectives,
35
20
  applyDirectives,
@@ -40,23 +25,9 @@ function processTailwindFeatures(setupContext) {
40
25
  ...dependency
41
26
  });
42
27
  },
43
- createContext (tailwindConfig, changedContent) {
44
- return (0, _setupContextUtils.createContext)(tailwindConfig, changedContent, root);
45
- }
28
+ createContext: (tailwindConfig, changedContent)=>(0, _setupContextUtils.createContext)(tailwindConfig, changedContent, root)
46
29
  })(root, result);
47
- if (context.tailwindConfig.separator === "-") {
48
- throw new Error("The '-' character cannot be used as a custom separator in JIT mode due to parsing ambiguity. Please use another character like '_' instead.");
49
- }
50
- (0, _featureFlags.issueFlagNotices)(context.tailwindConfig);
51
- (0, _expandTailwindAtRules.default)(context)(root, result);
52
- // Partition apply rules that are generated by
53
- // addComponents, addUtilities and so on.
54
- (0, _partitionApplyAtRules.default)()(root, result);
55
- (0, _expandApplyAtRules.default)(context)(root, result);
56
- (0, _evaluateTailwindFunctions.default)(context)(root, result);
57
- (0, _substituteScreenAtRules.default)(context)(root, result);
58
- (0, _resolveDefaultsAtRules.default)(context)(root, result);
59
- (0, _collapseAdjacentRules.default)(context)(root, result);
60
- (0, _collapseDuplicateDeclarations.default)(context)(root, result);
30
+ if ("-" === context.tailwindConfig.separator) throw Error("The '-' character cannot be used as a custom separator in JIT mode due to parsing ambiguity. Please use another character like '_' instead.");
31
+ (0, _featureFlags.issueFlagNotices)(context.tailwindConfig), (0, _expandTailwindAtRules.default)(context)(root, result), (0, _partitionApplyAtRules.default)()(root, result), (0, _expandApplyAtRules.default)(context)(root, result), (0, _evaluateTailwindFunctions.default)(context)(root, result), (0, _substituteScreenAtRules.default)(context)(root, result), (0, _resolveDefaultsAtRules.default)(context)(root, result), (0, _collapseAdjacentRules.default)(context)(root, result), (0, _collapseDuplicateDeclarations.default)(context)(root, result);
61
32
  };
62
33
  }
@@ -1,17 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
3
+ value: !0
4
+ }), Object.defineProperty(exports, "default", {
5
+ enumerable: !0,
7
6
  get: ()=>_default
8
7
  });
9
- const _log = /*#__PURE__*/ _interopRequireDefault(require("../util/log"));
10
- function _interopRequireDefault(obj) {
8
+ const _log = function(obj) {
11
9
  return obj && obj.__esModule ? obj : {
12
10
  default: obj
13
11
  };
14
- }
12
+ }(require("../util/log"));
15
13
  function warn({ version , from , to }) {
16
14
  _log.default.warn(`${from}-color-renamed`, [
17
15
  `As of Tailwind CSS ${version}, \`${from}\` has been renamed to \`${to}\`.`,
@@ -311,43 +309,38 @@ const _default = {
311
309
  950: "#4c0519"
312
310
  },
313
311
  get lightBlue () {
314
- warn({
312
+ return warn({
315
313
  version: "v2.2",
316
314
  from: "lightBlue",
317
315
  to: "sky"
318
- });
319
- return this.sky;
316
+ }), this.sky;
320
317
  },
321
318
  get warmGray () {
322
- warn({
319
+ return warn({
323
320
  version: "v3.0",
324
321
  from: "warmGray",
325
322
  to: "stone"
326
- });
327
- return this.stone;
323
+ }), this.stone;
328
324
  },
329
325
  get trueGray () {
330
- warn({
326
+ return warn({
331
327
  version: "v3.0",
332
328
  from: "trueGray",
333
329
  to: "neutral"
334
- });
335
- return this.neutral;
330
+ }), this.neutral;
336
331
  },
337
332
  get coolGray () {
338
- warn({
333
+ return warn({
339
334
  version: "v3.0",
340
335
  from: "coolGray",
341
336
  to: "gray"
342
- });
343
- return this.gray;
337
+ }), this.gray;
344
338
  },
345
339
  get blueGray () {
346
- warn({
340
+ return warn({
347
341
  version: "v3.0",
348
342
  from: "blueGray",
349
343
  to: "slate"
350
- });
351
- return this.slate;
344
+ }), this.slate;
352
345
  }
353
346
  };
@@ -1,15 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
3
+ value: !0
4
+ }), Object.defineProperty(exports, "default", {
5
+ enumerable: !0,
7
6
  get: ()=>_default
8
7
  });
9
- const _createPlugin = /*#__PURE__*/ _interopRequireDefault(require("../util/createPlugin"));
10
- function _interopRequireDefault(obj) {
8
+ const _createPlugin = function(obj) {
11
9
  return obj && obj.__esModule ? obj : {
12
10
  default: obj
13
11
  };
14
- }
15
- const _default = _createPlugin.default;
12
+ }(require("../util/createPlugin")), _default = _createPlugin.default;
@@ -1,16 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
3
+ value: !0
4
+ }), Object.defineProperty(exports, "default", {
5
+ enumerable: !0,
7
6
  get: ()=>_default
8
7
  });
9
- const _cloneDeep = require("../util/cloneDeep");
10
- const _configFull = /*#__PURE__*/ _interopRequireDefault(require("../../stubs/config.full"));
11
- function _interopRequireDefault(obj) {
8
+ const _cloneDeep = require("../util/cloneDeep"), _configFull = function(obj) {
12
9
  return obj && obj.__esModule ? obj : {
13
10
  default: obj
14
11
  };
15
- }
16
- const _default = (0, _cloneDeep.cloneDeep)(_configFull.default);
12
+ }(require("../../stubs/config.full")), _default = (0, _cloneDeep.cloneDeep)(_configFull.default);
@@ -1,16 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
3
+ value: !0
4
+ }), Object.defineProperty(exports, "default", {
5
+ enumerable: !0,
7
6
  get: ()=>_default
8
7
  });
9
- const _cloneDeep = require("../util/cloneDeep");
10
- const _configFull = /*#__PURE__*/ _interopRequireDefault(require("../../stubs/config.full"));
11
- function _interopRequireDefault(obj) {
8
+ const _cloneDeep = require("../util/cloneDeep"), _configFull = function(obj) {
12
9
  return obj && obj.__esModule ? obj : {
13
10
  default: obj
14
11
  };
15
- }
16
- const _default = (0, _cloneDeep.cloneDeep)(_configFull.default.theme);
12
+ }(require("../../stubs/config.full")), _default = (0, _cloneDeep.cloneDeep)(_configFull.default.theme);
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
3
+ value: !0
4
+ }), Object.defineProperty(exports, "default", {
5
+ enumerable: !0,
7
6
  get: ()=>_default
8
7
  });
9
- const _loadConfig = require("../lib/load-config");
10
- const _default = _loadConfig.loadConfig;
8
+ const _loadConfig = require("../lib/load-config"), _default = _loadConfig.loadConfig;
@@ -1,13 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
3
+ value: !0
4
+ }), Object.defineProperty(exports, "default", {
5
+ enumerable: !0,
7
6
  get: ()=>resolveConfig
8
7
  });
9
- const _resolveConfig = /*#__PURE__*/ _interopRequireDefault(require("../util/resolveConfig"));
10
- const _getAllConfigs = /*#__PURE__*/ _interopRequireDefault(require("../util/getAllConfigs"));
8
+ const _resolveConfig = _interopRequireDefault(require("../util/resolveConfig")), _getAllConfigs = _interopRequireDefault(require("../util/getAllConfigs"));
11
9
  function _interopRequireDefault(obj) {
12
10
  return obj && obj.__esModule ? obj : {
13
11
  default: obj
@@ -1,34 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "applyImportantSelector", {
6
- enumerable: true,
3
+ value: !0
4
+ }), Object.defineProperty(exports, "applyImportantSelector", {
5
+ enumerable: !0,
7
6
  get: ()=>applyImportantSelector
8
7
  });
9
- const _postcssSelectorParser = /*#__PURE__*/ _interopRequireDefault(require("postcss-selector-parser"));
10
- const _pseudoElements = require("./pseudoElements");
11
- function _interopRequireDefault(obj) {
8
+ const _postcssSelectorParser = function(obj) {
12
9
  return obj && obj.__esModule ? obj : {
13
10
  default: obj
14
11
  };
15
- }
12
+ }(require("postcss-selector-parser")), _pseudoElements = require("./pseudoElements");
16
13
  function applyImportantSelector(selector, important) {
17
14
  let sel = (0, _postcssSelectorParser.default)().astSync(selector);
18
- sel.each((sel)=>{
19
- // Wrap with :is if it's not already wrapped
20
- let isWrapped = sel.nodes[0].type === "pseudo" && sel.nodes[0].value === ":is" && sel.nodes.every((node)=>node.type !== "combinator");
21
- if (!isWrapped) {
22
- sel.nodes = [
23
- _postcssSelectorParser.default.pseudo({
24
- value: ":is",
25
- nodes: [
26
- sel.clone()
27
- ]
28
- })
29
- ];
30
- }
31
- (0, _pseudoElements.movePseudos)(sel);
32
- });
33
- return `${important} ${sel.toString()}`;
15
+ return sel.each((sel)=>{
16
+ "pseudo" === sel.nodes[0].type && ":is" === sel.nodes[0].value && sel.nodes.every((node)=>"combinator" !== node.type) || (sel.nodes = [
17
+ _postcssSelectorParser.default.pseudo({
18
+ value: ":is",
19
+ nodes: [
20
+ sel.clone()
21
+ ]
22
+ })
23
+ ]), (0, _pseudoElements.movePseudos)(sel);
24
+ }), `${important} ${sel.toString()}`;
34
25
  }
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
7
- get: ()=>bigSign
8
- });
9
2
  function bigSign(bigIntValue) {
10
3
  return (bigIntValue > 0n) - (bigIntValue < 0n);
11
4
  }
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: !0
7
+ }), Object.defineProperty(exports, "default", {
8
+ enumerable: !0,
9
+ get: ()=>bigSign
10
+ });
@@ -1,25 +1,18 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
7
- get: ()=>buildMediaQuery
8
- });
9
2
  function buildMediaQuery(screens) {
10
- screens = Array.isArray(screens) ? screens : [
3
+ return (screens = Array.isArray(screens) ? screens : [
11
4
  screens
12
- ];
13
- return screens.map((screen)=>{
14
- let values = screen.values.map((screen)=>{
15
- if (screen.raw !== undefined) {
16
- return screen.raw;
17
- }
18
- return [
5
+ ]).map((screen)=>{
6
+ let values = screen.values.map((screen)=>void 0 !== screen.raw ? screen.raw : [
19
7
  screen.min && `(min-width: ${screen.min})`,
20
8
  screen.max && `(max-width: ${screen.max})`
21
- ].filter(Boolean).join(" and ");
22
- });
9
+ ].filter(Boolean).join(" and "));
23
10
  return screen.not ? `not all and ${values}` : values;
24
11
  }).join(", ");
25
12
  }
13
+ Object.defineProperty(exports, "__esModule", {
14
+ value: !0
15
+ }), Object.defineProperty(exports, "default", {
16
+ enumerable: !0,
17
+ get: ()=>buildMediaQuery
18
+ });
@@ -1,20 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", {
3
- value: true
3
+ value: !0
4
+ }), Object.defineProperty(exports, "cloneDeep", {
5
+ enumerable: !0,
6
+ get: ()=>function cloneDeep(value) {
7
+ return Array.isArray(value) ? value.map((child)=>cloneDeep(child)) : "object" == typeof value && null !== value ? Object.fromEntries(Object.entries(value).map(([k, v])=>[
8
+ k,
9
+ cloneDeep(v)
10
+ ])) : value;
11
+ }
4
12
  });
5
- Object.defineProperty(exports, "cloneDeep", {
6
- enumerable: true,
7
- get: ()=>cloneDeep
8
- });
9
- function cloneDeep(value) {
10
- if (Array.isArray(value)) {
11
- return value.map((child)=>cloneDeep(child));
12
- }
13
- if (typeof value === "object" && value !== null) {
14
- return Object.fromEntries(Object.entries(value).map(([k, v])=>[
15
- k,
16
- cloneDeep(v)
17
- ]));
18
- }
19
- return value;
20
- }