tailwindcss 3.1.7 → 3.1.8
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 +10 -1
- package/README.md +6 -3
- package/lib/lib/expandApplyAtRules.js +5 -0
- package/lib/lib/generateRules.js +1 -3
- package/lib/util/resolveConfig.js +1 -1
- package/package.json +4 -4
- package/peers/index.js +937 -821
- package/src/lib/expandApplyAtRules.js +6 -0
- package/src/lib/generateRules.js +1 -4
- package/src/util/resolveConfig.js +1 -1
|
@@ -499,6 +499,12 @@ function processApply(root, context, localCache) {
|
|
|
499
499
|
})
|
|
500
500
|
}
|
|
501
501
|
|
|
502
|
+
// It could be that the node we were inserted was removed because the class didn't match
|
|
503
|
+
// If that was the *only* rule in the parent, then we have nothing add so we skip it
|
|
504
|
+
if (!root.nodes[0]) {
|
|
505
|
+
continue
|
|
506
|
+
}
|
|
507
|
+
|
|
502
508
|
// Insert it
|
|
503
509
|
siblings.push([
|
|
504
510
|
// Ensure that when we are sorting, that we take the layer order into account
|
package/src/lib/generateRules.js
CHANGED
|
@@ -129,7 +129,6 @@ function applyVariant(variant, matches, context) {
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
let args
|
|
132
|
-
let isArbitraryVariant = false
|
|
133
132
|
|
|
134
133
|
// Find partial arbitrary variants
|
|
135
134
|
if (variant.endsWith(']') && !variant.startsWith('[')) {
|
|
@@ -145,8 +144,6 @@ function applyVariant(variant, matches, context) {
|
|
|
145
144
|
return []
|
|
146
145
|
}
|
|
147
146
|
|
|
148
|
-
isArbitraryVariant = true
|
|
149
|
-
|
|
150
147
|
let fn = parseVariant(selector)
|
|
151
148
|
|
|
152
149
|
let sort = Array.from(context.variantOrder.values()).pop() << 1n
|
|
@@ -303,7 +300,7 @@ function applyVariant(variant, matches, context) {
|
|
|
303
300
|
...meta,
|
|
304
301
|
sort: variantSort | meta.sort,
|
|
305
302
|
collectedFormats: (meta.collectedFormats ?? []).concat(collectedFormats),
|
|
306
|
-
isArbitraryVariant,
|
|
303
|
+
isArbitraryVariant: isArbitraryValue(variant),
|
|
307
304
|
},
|
|
308
305
|
clone.nodes[0],
|
|
309
306
|
]
|
|
@@ -180,7 +180,7 @@ function resolveFunctionKeys(object) {
|
|
|
180
180
|
val = val[path[index++]]
|
|
181
181
|
|
|
182
182
|
let shouldResolveAsFn =
|
|
183
|
-
isFunction(val) && (path.alpha === undefined || index
|
|
183
|
+
isFunction(val) && (path.alpha === undefined || index <= path.length - 1)
|
|
184
184
|
|
|
185
185
|
val = shouldResolveAsFn ? val(resolvePath, configUtils) : val
|
|
186
186
|
}
|