tailwindcss 3.0.12 → 3.0.13

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/peers/index.js CHANGED
@@ -1,5 +1,7 @@
1
+ "use strict";
2
+ var __getOwnPropNames = Object.getOwnPropertyNames;
1
3
  var __commonJS = (cb, mod) => function __require() {
2
- return mod || (0, cb[Object.keys(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
4
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
3
5
  };
4
6
 
5
7
  // node_modules/picocolors/picocolors.js
@@ -1390,7 +1392,7 @@ var require_util = __commonJS({
1390
1392
  }
1391
1393
  exports2.relative = relative;
1392
1394
  var supportsNullProto = function() {
1393
- var obj = Object.create(null);
1395
+ var obj = /* @__PURE__ */ Object.create(null);
1394
1396
  return !("__proto__" in obj);
1395
1397
  }();
1396
1398
  function identity(s) {
@@ -1595,7 +1597,7 @@ var require_array_set = __commonJS({
1595
1597
  var hasNativeMap = typeof Map !== "undefined";
1596
1598
  function ArraySet() {
1597
1599
  this._array = [];
1598
- this._set = hasNativeMap ? /* @__PURE__ */ new Map() : Object.create(null);
1600
+ this._set = hasNativeMap ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
1599
1601
  }
1600
1602
  ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) {
1601
1603
  var set = new ArraySet();
@@ -1795,7 +1797,7 @@ var require_source_map_generator = __commonJS({
1795
1797
  }
1796
1798
  if (aSourceContent != null) {
1797
1799
  if (!this._sourcesContents) {
1798
- this._sourcesContents = Object.create(null);
1800
+ this._sourcesContents = /* @__PURE__ */ Object.create(null);
1799
1801
  }
1800
1802
  this._sourcesContents[util.toSetString(source)] = aSourceContent;
1801
1803
  } else if (this._sourcesContents) {
@@ -2054,7 +2056,7 @@ var require_quick_sort = __commonJS({
2054
2056
  let templateFn = new Function(`return ${template}`)();
2055
2057
  return templateFn(comparator);
2056
2058
  }
2057
- var sortCache = new WeakMap();
2059
+ var sortCache = /* @__PURE__ */ new WeakMap();
2058
2060
  exports2.quickSort = function(ary, comparator, start = 0) {
2059
2061
  let doQuickSort = sortCache.get(comparator);
2060
2062
  if (doQuickSort === void 0) {
@@ -20401,7 +20403,7 @@ ${indent}${s}` : "\n";
20401
20403
  return String(jsKey);
20402
20404
  if (key instanceof Node && ctx && ctx.doc)
20403
20405
  return key.toString({
20404
- anchors: Object.create(null),
20406
+ anchors: /* @__PURE__ */ Object.create(null),
20405
20407
  doc: ctx.doc,
20406
20408
  indent: "",
20407
20409
  indentStep: ctx.indentStep,
@@ -23073,7 +23075,7 @@ ${ctx.indent}${str}`;
23073
23075
  return node instanceof resolveSeq.Scalar || node instanceof resolveSeq.YAMLSeq || node instanceof resolveSeq.YAMLMap;
23074
23076
  }
23075
23077
  constructor(prefix) {
23076
- PlainValue._defineProperty(this, "map", Object.create(null));
23078
+ PlainValue._defineProperty(this, "map", /* @__PURE__ */ Object.create(null));
23077
23079
  this.prefix = prefix;
23078
23080
  }
23079
23081
  createAlias(node, name) {
@@ -23521,7 +23523,7 @@ ${cbNode.commentBefore}` : cb;
23521
23523
  lines.unshift(this.commentBefore.replace(/^/gm, "#"));
23522
23524
  }
23523
23525
  const ctx = {
23524
- anchors: Object.create(null),
23526
+ anchors: /* @__PURE__ */ Object.create(null),
23525
23527
  doc: this,
23526
23528
  indent: "",
23527
23529
  indentStep: " ".repeat(indentSize),
@@ -24519,7 +24521,7 @@ var require_main = __commonJS({
24519
24521
  function _interopNamespace(e) {
24520
24522
  if (e && e.__esModule)
24521
24523
  return e;
24522
- var n = Object.create(null);
24524
+ var n = /* @__PURE__ */ Object.create(null);
24523
24525
  if (e) {
24524
24526
  Object.keys(e).forEach(function(k) {
24525
24527
  if (k !== "default") {
@@ -26609,8 +26611,8 @@ var require_dist7 = __commonJS({
26609
26611
  function _getRequireWildcardCache(nodeInterop) {
26610
26612
  if (typeof WeakMap !== "function")
26611
26613
  return null;
26612
- var cacheBabelInterop = new WeakMap();
26613
- var cacheNodeInterop = new WeakMap();
26614
+ var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
26615
+ var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
26614
26616
  return (_getRequireWildcardCache = function(nodeInterop2) {
26615
26617
  return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
26616
26618
  })(nodeInterop);
@@ -29926,7 +29928,7 @@ var require_general = __commonJS({
29926
29928
  return false;
29927
29929
  };
29928
29930
  }
29929
- var isFalseCache_1 = new WeakSet();
29931
+ var isFalseCache_1 = /* @__PURE__ */ new WeakSet();
29930
29932
  return function cachedDescendant(elem) {
29931
29933
  var current = elem;
29932
29934
  while (current = adapter.getParent(current)) {
@@ -33982,8 +33984,8 @@ var require_error2 = __commonJS({
33982
33984
  var require_names2 = __commonJS({
33983
33985
  "node_modules/css-tree/lib/utils/names.js"(exports2, module2) {
33984
33986
  var hasOwnProperty2 = Object.prototype.hasOwnProperty;
33985
- var keywords = Object.create(null);
33986
- var properties = Object.create(null);
33987
+ var keywords = /* @__PURE__ */ Object.create(null);
33988
+ var properties = /* @__PURE__ */ Object.create(null);
33987
33989
  var HYPHENMINUS = 45;
33988
33990
  function isCustomProperty(str, offset) {
33989
33991
  offset = offset || 0;
@@ -35729,7 +35731,7 @@ var require_match_graph = __commonJS({
35729
35731
  var term = terms[i];
35730
35732
  if (isEnumCapatible(term)) {
35731
35733
  if (map === null && i > 0 && isEnumCapatible(terms[i - 1])) {
35732
- map = Object.create(null);
35734
+ map = /* @__PURE__ */ Object.create(null);
35733
35735
  result = createCondition({
35734
35736
  type: "Enum",
35735
35737
  map
@@ -37609,7 +37611,7 @@ var require_util2 = __commonJS({
37609
37611
  }
37610
37612
  exports2.relative = relative;
37611
37613
  var supportsNullProto = function() {
37612
- var obj = Object.create(null);
37614
+ var obj = /* @__PURE__ */ Object.create(null);
37613
37615
  return !("__proto__" in obj);
37614
37616
  }();
37615
37617
  function identity(s) {
@@ -37773,7 +37775,7 @@ var require_array_set2 = __commonJS({
37773
37775
  var hasNativeMap = typeof Map !== "undefined";
37774
37776
  function ArraySet() {
37775
37777
  this._array = [];
37776
- this._set = hasNativeMap ? /* @__PURE__ */ new Map() : Object.create(null);
37778
+ this._set = hasNativeMap ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
37777
37779
  }
37778
37780
  ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) {
37779
37781
  var set = new ArraySet();
@@ -37973,7 +37975,7 @@ var require_source_map_generator2 = __commonJS({
37973
37975
  }
37974
37976
  if (aSourceContent != null) {
37975
37977
  if (!this._sourcesContents) {
37976
- this._sourcesContents = Object.create(null);
37978
+ this._sourcesContents = /* @__PURE__ */ Object.create(null);
37977
37979
  }
37978
37980
  this._sourcesContents[util.toSetString(source)] = aSourceContent;
37979
37981
  } else if (this._sourcesContents) {
@@ -50005,12 +50007,12 @@ var require_data = __commonJS({
50005
50007
  var patch = require_patch();
50006
50008
  var extendSyntax = /^\s*\|\s*/;
50007
50009
  function preprocessAtrules(dict) {
50008
- const result = Object.create(null);
50010
+ const result = /* @__PURE__ */ Object.create(null);
50009
50011
  for (const atruleName in dict) {
50010
50012
  const atrule = dict[atruleName];
50011
50013
  let descriptors = null;
50012
50014
  if (atrule.descriptors) {
50013
- descriptors = Object.create(null);
50015
+ descriptors = /* @__PURE__ */ Object.create(null);
50014
50016
  for (const descriptor in atrule.descriptors) {
50015
50017
  descriptors[descriptor] = atrule.descriptors[descriptor].syntax;
50016
50018
  }
@@ -53924,7 +53926,7 @@ var require_usage = __commonJS({
53924
53926
  "node_modules/csso/lib/usage.js"(exports2, module2) {
53925
53927
  var hasOwnProperty2 = Object.prototype.hasOwnProperty;
53926
53928
  function buildMap(list, caseInsensitive) {
53927
- var map = Object.create(null);
53929
+ var map = /* @__PURE__ */ Object.create(null);
53928
53930
  if (!Array.isArray(list)) {
53929
53931
  return null;
53930
53932
  }
@@ -53956,7 +53958,7 @@ var require_usage = __commonJS({
53956
53958
  function buildIndex(data) {
53957
53959
  var scopes = false;
53958
53960
  if (data.scopes && Array.isArray(data.scopes)) {
53959
- scopes = Object.create(null);
53961
+ scopes = /* @__PURE__ */ Object.create(null);
53960
53962
  for (var i = 0; i < data.scopes.length; i++) {
53961
53963
  var list = data.scopes[i];
53962
53964
  if (!list || !Array.isArray(list)) {
@@ -55089,7 +55091,7 @@ var require_createDeclarationIndexer = __commonJS({
55089
55091
  var generate = require_lib10().generate;
55090
55092
  function Index() {
55091
55093
  this.seed = 0;
55092
- this.map = Object.create(null);
55094
+ this.map = /* @__PURE__ */ Object.create(null);
55093
55095
  }
55094
55096
  Index.prototype.resolve = function(str) {
55095
55097
  var index = this.map[str];
@@ -55134,7 +55136,7 @@ var require_processSelector = __commonJS({
55134
55136
  "before": true
55135
55137
  };
55136
55138
  module2.exports = function freeze(node, usageData) {
55137
- var pseudos = Object.create(null);
55139
+ var pseudos = /* @__PURE__ */ Object.create(null);
55138
55140
  var hasPseudo = false;
55139
55141
  node.prelude.children.each(function(simpleSelector) {
55140
55142
  var tagName = "*";
@@ -55247,7 +55249,7 @@ var require_mergeAtrule = __commonJS({
55247
55249
  var name = resolveKeyword(node.name).basename;
55248
55250
  var id = node.name.toLowerCase() + "/" + (node.prelude ? node.prelude.id : null);
55249
55251
  if (!hasOwnProperty2.call(map, name)) {
55250
- map[name] = Object.create(null);
55252
+ map[name] = /* @__PURE__ */ Object.create(null);
55251
55253
  }
55252
55254
  if (single) {
55253
55255
  delete map[name][id];
@@ -55258,7 +55260,7 @@ var require_mergeAtrule = __commonJS({
55258
55260
  map[name][id].append(list.remove(item));
55259
55261
  }
55260
55262
  function relocateAtrules(ast, options) {
55261
- var collected = Object.create(null);
55263
+ var collected = /* @__PURE__ */ Object.create(null);
55262
55264
  var topInjectPoint = null;
55263
55265
  ast.children.each(function(node, item, list) {
55264
55266
  if (node.type === "Atrule") {
@@ -55345,8 +55347,8 @@ var require_utils5 = __commonJS({
55345
55347
  ne2: [],
55346
55348
  ne2overrided: []
55347
55349
  };
55348
- var fingerprints = Object.create(null);
55349
- var declarations2hash = Object.create(null);
55350
+ var fingerprints = /* @__PURE__ */ Object.create(null);
55351
+ var declarations2hash = /* @__PURE__ */ Object.create(null);
55350
55352
  for (var cursor = declarations2.head; cursor; cursor = cursor.next) {
55351
55353
  declarations2hash[cursor.data.id] = true;
55352
55354
  }
@@ -56081,7 +56083,7 @@ var require_restructBlock = __commonJS({
56081
56083
  }
56082
56084
  module2.exports = function restructBlock(ast) {
56083
56085
  var stylesheetMap = {};
56084
- var fingerprints = Object.create(null);
56086
+ var fingerprints = /* @__PURE__ */ Object.create(null);
56085
56087
  walk(ast, {
56086
56088
  visit: "Rule",
56087
56089
  reverse: true,
@@ -56194,7 +56196,7 @@ var require_restructRuleset = __commonJS({
56194
56196
  var avoidRulesMerge = this.block !== null ? this.block.avoidRulesMerge : false;
56195
56197
  var selectors = node.prelude.children;
56196
56198
  var block = node.block;
56197
- var disallowDownMarkers = Object.create(null);
56199
+ var disallowDownMarkers = /* @__PURE__ */ Object.create(null);
56198
56200
  var allowMergeUp = true;
56199
56201
  var allowMergeDown = true;
56200
56202
  list.prevUntil(item.prev, function(prev, prevItem) {
@@ -63659,8 +63661,8 @@ var require_dist9 = __commonJS({
63659
63661
  function _getRequireWildcardCache(nodeInterop) {
63660
63662
  if (typeof WeakMap !== "function")
63661
63663
  return null;
63662
- var cacheBabelInterop = new WeakMap();
63663
- var cacheNodeInterop = new WeakMap();
63664
+ var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
63665
+ var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
63664
63666
  return (_getRequireWildcardCache = function(nodeInterop2) {
63665
63667
  return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
63666
63668
  })(nodeInterop);
@@ -63982,8 +63984,8 @@ var require_dist10 = __commonJS({
63982
63984
  function _getRequireWildcardCache(nodeInterop) {
63983
63985
  if (typeof WeakMap !== "function")
63984
63986
  return null;
63985
- var cacheBabelInterop = new WeakMap();
63986
- var cacheNodeInterop = new WeakMap();
63987
+ var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
63988
+ var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
63987
63989
  return (_getRequireWildcardCache = function(nodeInterop2) {
63988
63990
  return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
63989
63991
  })(nodeInterop);
@@ -64483,7 +64485,7 @@ var require_container2 = __commonJS({
64483
64485
  function _getRequireWildcardCache() {
64484
64486
  if (typeof WeakMap !== "function")
64485
64487
  return null;
64486
- var cache = new WeakMap();
64488
+ var cache = /* @__PURE__ */ new WeakMap();
64487
64489
  _getRequireWildcardCache = function _getRequireWildcardCache2() {
64488
64490
  return cache;
64489
64491
  };
@@ -66050,7 +66052,7 @@ var require_tokenize2 = __commonJS({
66050
66052
  function _getRequireWildcardCache() {
66051
66053
  if (typeof WeakMap !== "function")
66052
66054
  return null;
66053
- var cache = new WeakMap();
66055
+ var cache = /* @__PURE__ */ new WeakMap();
66054
66056
  _getRequireWildcardCache = function _getRequireWildcardCache2() {
66055
66057
  return cache;
66056
66058
  };
@@ -66317,7 +66319,7 @@ var require_parser4 = __commonJS({
66317
66319
  function _getRequireWildcardCache() {
66318
66320
  if (typeof WeakMap !== "function")
66319
66321
  return null;
66320
- var cache = new WeakMap();
66322
+ var cache = /* @__PURE__ */ new WeakMap();
66321
66323
  _getRequireWildcardCache = function _getRequireWildcardCache2() {
66322
66324
  return cache;
66323
66325
  };
@@ -67606,7 +67608,7 @@ var require_dist11 = __commonJS({
67606
67608
  function _getRequireWildcardCache() {
67607
67609
  if (typeof WeakMap !== "function")
67608
67610
  return null;
67609
- var cache = new WeakMap();
67611
+ var cache = /* @__PURE__ */ new WeakMap();
67610
67612
  _getRequireWildcardCache = function _getRequireWildcardCache2() {
67611
67613
  return cache;
67612
67614
  };
@@ -70104,8 +70106,8 @@ var require_dist13 = __commonJS({
70104
70106
  function _getRequireWildcardCache(nodeInterop) {
70105
70107
  if (typeof WeakMap !== "function")
70106
70108
  return null;
70107
- var cacheBabelInterop = new WeakMap();
70108
- var cacheNodeInterop = new WeakMap();
70109
+ var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
70110
+ var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
70109
70111
  return (_getRequireWildcardCache = function(nodeInterop2) {
70110
70112
  return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
70111
70113
  })(nodeInterop);
@@ -71459,8 +71461,8 @@ var require_dist16 = __commonJS({
71459
71461
  function _getRequireWildcardCache(nodeInterop) {
71460
71462
  if (typeof WeakMap !== "function")
71461
71463
  return null;
71462
- var cacheBabelInterop = new WeakMap();
71463
- var cacheNodeInterop = new WeakMap();
71464
+ var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
71465
+ var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
71464
71466
  return (_getRequireWildcardCache = function(nodeInterop2) {
71465
71467
  return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
71466
71468
  })(nodeInterop);
@@ -75304,8 +75306,8 @@ var require_dist29 = __commonJS({
75304
75306
  function _getRequireWildcardCache(nodeInterop) {
75305
75307
  if (typeof WeakMap !== "function")
75306
75308
  return null;
75307
- var cacheBabelInterop = new WeakMap();
75308
- var cacheNodeInterop = new WeakMap();
75309
+ var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
75310
+ var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
75309
75311
  return (_getRequireWildcardCache = function(nodeInterop2) {
75310
75312
  return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
75311
75313
  })(nodeInterop);
@@ -76055,7 +76057,6 @@ var require_dist35 = __commonJS({
76055
76057
  });
76056
76058
 
76057
76059
  // lib/cli-peer-dependencies.js
76058
- "use strict";
76059
76060
  Object.defineProperty(exports, "__esModule", {
76060
76061
  value: true
76061
76062
  });
@@ -0,0 +1,52 @@
1
+ function partitionRules(root) {
2
+ if (!root.walkAtRules) return
3
+
4
+ let applyParents = new Set()
5
+
6
+ root.walkAtRules('apply', (rule) => {
7
+ applyParents.add(rule.parent)
8
+ })
9
+
10
+ if (applyParents.size === 0) {
11
+ return
12
+ }
13
+
14
+ for (let rule of applyParents) {
15
+ let nodeGroups = []
16
+ let lastGroup = []
17
+
18
+ for (let node of rule.nodes) {
19
+ if (node.type === 'atrule' && node.name === 'apply') {
20
+ if (lastGroup.length > 0) {
21
+ nodeGroups.push(lastGroup)
22
+ lastGroup = []
23
+ }
24
+ nodeGroups.push([node])
25
+ } else {
26
+ lastGroup.push(node)
27
+ }
28
+ }
29
+
30
+ if (lastGroup.length > 0) {
31
+ nodeGroups.push(lastGroup)
32
+ }
33
+
34
+ if (nodeGroups.length === 1) {
35
+ continue
36
+ }
37
+
38
+ for (let group of [...nodeGroups].reverse()) {
39
+ let clone = rule.clone({ nodes: [] })
40
+ clone.append(group)
41
+ rule.after(clone)
42
+ }
43
+
44
+ rule.remove()
45
+ }
46
+ }
47
+
48
+ export default function expandApplyAtRules() {
49
+ return (root) => {
50
+ partitionRules(root)
51
+ }
52
+ }
@@ -20,58 +20,6 @@ import log from '../util/log'
20
20
  import negateValue from '../util/negateValue'
21
21
  import isValidArbitraryValue from '../util/isValidArbitraryValue'
22
22
 
23
- function partitionRules(root) {
24
- if (!root.walkAtRules) return [root]
25
-
26
- let applyParents = new Set()
27
- let rules = []
28
-
29
- root.walkAtRules('apply', (rule) => {
30
- applyParents.add(rule.parent)
31
- })
32
-
33
- if (applyParents.size === 0) {
34
- rules.push(root)
35
- }
36
-
37
- for (let rule of applyParents) {
38
- let nodeGroups = []
39
- let lastGroup = []
40
-
41
- for (let node of rule.nodes) {
42
- if (node.type === 'atrule' && node.name === 'apply') {
43
- if (lastGroup.length > 0) {
44
- nodeGroups.push(lastGroup)
45
- lastGroup = []
46
- }
47
- nodeGroups.push([node])
48
- } else {
49
- lastGroup.push(node)
50
- }
51
- }
52
-
53
- if (lastGroup.length > 0) {
54
- nodeGroups.push(lastGroup)
55
- }
56
-
57
- if (nodeGroups.length === 1) {
58
- rules.push(rule)
59
- continue
60
- }
61
-
62
- for (let group of [...nodeGroups].reverse()) {
63
- let clone = rule.clone({ nodes: [] })
64
- clone.append(group)
65
- rules.unshift(clone)
66
- rule.after(clone)
67
- }
68
-
69
- rule.remove()
70
- }
71
-
72
- return rules
73
- }
74
-
75
23
  function parseVariantFormatString(input) {
76
24
  if (input.includes('{')) {
77
25
  if (!isBalanced(input)) throw new Error(`Your { and } are unbalanced.`)
@@ -284,9 +232,7 @@ function buildPluginApi(tailwindConfig, context, { variantList, variantMap, offs
284
232
  context.candidateRuleMap.set(identifier, [])
285
233
  }
286
234
 
287
- context.candidateRuleMap
288
- .get(identifier)
289
- .push(...partitionRules(rule).map((rule) => [{ sort: offset, layer: 'user' }, rule]))
235
+ context.candidateRuleMap.get(identifier).push([{ sort: offset, layer: 'user' }, rule])
290
236
  }
291
237
  },
292
238
  addBase(base) {
@@ -300,7 +246,7 @@ function buildPluginApi(tailwindConfig, context, { variantList, variantMap, offs
300
246
 
301
247
  context.candidateRuleMap
302
248
  .get(prefixedIdentifier)
303
- .push(...partitionRules(rule).map((rule) => [{ sort: offset, layer: 'base' }, rule]))
249
+ .push([{ sort: offset, layer: 'base' }, rule])
304
250
  }
305
251
  },
306
252
  /**
@@ -321,12 +267,7 @@ function buildPluginApi(tailwindConfig, context, { variantList, variantMap, offs
321
267
 
322
268
  context.candidateRuleMap
323
269
  .get(prefixedIdentifier)
324
- .push(
325
- ...partitionRules(rule).map((rule) => [
326
- { sort: offsets.base++, layer: 'defaults' },
327
- rule,
328
- ])
329
- )
270
+ .push([{ sort: offsets.base++, layer: 'defaults' }, rule])
330
271
  }
331
272
  },
332
273
  addComponents(components, options) {
@@ -348,12 +289,7 @@ function buildPluginApi(tailwindConfig, context, { variantList, variantMap, offs
348
289
 
349
290
  context.candidateRuleMap
350
291
  .get(prefixedIdentifier)
351
- .push(
352
- ...partitionRules(rule).map((rule) => [
353
- { sort: offsets.components++, layer: 'components', options },
354
- rule,
355
- ])
356
- )
292
+ .push([{ sort: offsets.components++, layer: 'components', options }, rule])
357
293
  }
358
294
  },
359
295
  addUtilities(utilities, options) {
@@ -375,12 +311,7 @@ function buildPluginApi(tailwindConfig, context, { variantList, variantMap, offs
375
311
 
376
312
  context.candidateRuleMap
377
313
  .get(prefixedIdentifier)
378
- .push(
379
- ...partitionRules(rule).map((rule) => [
380
- { sort: offsets.utilities++, layer: 'utilities', options },
381
- rule,
382
- ])
383
- )
314
+ .push([{ sort: offsets.utilities++, layer: 'utilities', options }, rule])
384
315
  }
385
316
  },
386
317
  matchUtilities: function (utilities, options) {
@@ -6,6 +6,7 @@ import substituteScreenAtRules from './lib/substituteScreenAtRules'
6
6
  import resolveDefaultsAtRules from './lib/resolveDefaultsAtRules'
7
7
  import collapseAdjacentRules from './lib/collapseAdjacentRules'
8
8
  import collapseDuplicateDeclarations from './lib/collapseDuplicateDeclarations'
9
+ import partitionApplyAtRules from './lib/partitionApplyAtRules'
9
10
  import detectNesting from './lib/detectNesting'
10
11
  import { createContext } from './lib/setupContextUtils'
11
12
  import { issueFlagNotices } from './featureFlags'
@@ -15,6 +16,7 @@ export default function processTailwindFeatures(setupContext) {
15
16
  let { tailwindDirectives, applyDirectives } = normalizeTailwindDirectives(root)
16
17
 
17
18
  detectNesting()(root, result)
19
+ partitionApplyAtRules()(root, result)
18
20
 
19
21
  let context = setupContext({
20
22
  tailwindDirectives,