tailwindcss 0.0.0-oxide-insiders.a7fe2fe → 0.0.0-oxide-insiders.759a8c2

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