tailwindcss 2.2.17 → 2.2.18
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/dist/base.css +1 -1
- package/dist/base.min.css +1 -1
- package/dist/tailwind-dark.css +1 -1
- package/dist/tailwind-dark.min.css +1 -1
- package/dist/tailwind-experimental.css +1 -1
- package/dist/tailwind-experimental.min.css +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/tailwind.min.css +1 -1
- package/lib/cli.js +0 -0
- package/package.json +1 -1
- package/peers/index.js +52 -15
- package/CHANGELOG.md +0 -1752
package/lib/cli.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
package/peers/index.js
CHANGED
|
@@ -40134,7 +40134,7 @@ Object.defineProperty(exports, "compile", ({ enumerable: true, get: function ()
|
|
|
40134
40134
|
* check(6); // `true`
|
|
40135
40135
|
*/
|
|
40136
40136
|
function nthCheck(formula) {
|
|
40137
|
-
return compile_1.compile(parse_1.parse(formula));
|
|
40137
|
+
return (0, compile_1.compile)((0, parse_1.parse)(formula));
|
|
40138
40138
|
}
|
|
40139
40139
|
exports.default = nthCheck;
|
|
40140
40140
|
|
|
@@ -40149,8 +40149,10 @@ exports.default = nthCheck;
|
|
|
40149
40149
|
// Following http://www.w3.org/TR/css3-selectors/#nth-child-pseudo
|
|
40150
40150
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
40151
40151
|
exports.parse = void 0;
|
|
40152
|
-
//
|
|
40153
|
-
var
|
|
40152
|
+
// Whitespace as per https://www.w3.org/TR/selectors-3/#lex is " \t\r\n\f"
|
|
40153
|
+
var whitespace = new Set([9, 10, 12, 13, 32]);
|
|
40154
|
+
var ZERO = "0".charCodeAt(0);
|
|
40155
|
+
var NINE = "9".charCodeAt(0);
|
|
40154
40156
|
/**
|
|
40155
40157
|
* Parses an expression.
|
|
40156
40158
|
*
|
|
@@ -40166,22 +40168,57 @@ function parse(formula) {
|
|
|
40166
40168
|
else if (formula === "odd") {
|
|
40167
40169
|
return [2, 1];
|
|
40168
40170
|
}
|
|
40169
|
-
|
|
40170
|
-
|
|
40171
|
+
// Parse [ ['-'|'+']? INTEGER? {N} [ S* ['-'|'+'] S* INTEGER ]?
|
|
40172
|
+
var idx = 0;
|
|
40173
|
+
var a = 0;
|
|
40174
|
+
var sign = readSign();
|
|
40175
|
+
var number = readNumber();
|
|
40176
|
+
if (idx < formula.length && formula.charAt(idx) === "n") {
|
|
40177
|
+
idx++;
|
|
40178
|
+
a = sign * (number !== null && number !== void 0 ? number : 1);
|
|
40179
|
+
skipWhitespace();
|
|
40180
|
+
if (idx < formula.length) {
|
|
40181
|
+
sign = readSign();
|
|
40182
|
+
skipWhitespace();
|
|
40183
|
+
number = readNumber();
|
|
40184
|
+
}
|
|
40185
|
+
else {
|
|
40186
|
+
sign = number = 0;
|
|
40187
|
+
}
|
|
40188
|
+
}
|
|
40189
|
+
// Throw if there is anything else
|
|
40190
|
+
if (number === null || idx < formula.length) {
|
|
40171
40191
|
throw new Error("n-th rule couldn't be parsed ('" + formula + "')");
|
|
40172
40192
|
}
|
|
40173
|
-
|
|
40174
|
-
|
|
40175
|
-
|
|
40176
|
-
|
|
40177
|
-
|
|
40193
|
+
return [a, sign * number];
|
|
40194
|
+
function readSign() {
|
|
40195
|
+
if (formula.charAt(idx) === "-") {
|
|
40196
|
+
idx++;
|
|
40197
|
+
return -1;
|
|
40198
|
+
}
|
|
40199
|
+
if (formula.charAt(idx) === "+") {
|
|
40200
|
+
idx++;
|
|
40201
|
+
}
|
|
40202
|
+
return 1;
|
|
40203
|
+
}
|
|
40204
|
+
function readNumber() {
|
|
40205
|
+
var start = idx;
|
|
40206
|
+
var value = 0;
|
|
40207
|
+
while (idx < formula.length &&
|
|
40208
|
+
formula.charCodeAt(idx) >= ZERO &&
|
|
40209
|
+
formula.charCodeAt(idx) <= NINE) {
|
|
40210
|
+
value = value * 10 + (formula.charCodeAt(idx) - ZERO);
|
|
40211
|
+
idx++;
|
|
40212
|
+
}
|
|
40213
|
+
// Return `null` if we didn't read anything.
|
|
40214
|
+
return idx === start ? null : value;
|
|
40215
|
+
}
|
|
40216
|
+
function skipWhitespace() {
|
|
40217
|
+
while (idx < formula.length &&
|
|
40218
|
+
whitespace.has(formula.charCodeAt(idx))) {
|
|
40219
|
+
idx++;
|
|
40178
40220
|
}
|
|
40179
40221
|
}
|
|
40180
|
-
else
|
|
40181
|
-
a = 0;
|
|
40182
|
-
var b = (parsed[2] === "-" ? -1 : 1) *
|
|
40183
|
-
(parsed[3] ? parseInt(parsed[3], 10) : 0);
|
|
40184
|
-
return [a, b];
|
|
40185
40222
|
}
|
|
40186
40223
|
exports.parse = parse;
|
|
40187
40224
|
|