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.
- package/lib/cli/build/deps.js +34 -18
- package/lib/cli/build/index.js +45 -12
- package/lib/cli/build/plugin.js +273 -90
- package/lib/cli/build/utils.js +56 -24
- package/lib/cli/build/watching.js +156 -38
- package/lib/cli/help/index.js +61 -16
- package/lib/cli/index.js +121 -62
- package/lib/cli/init/index.js +47 -23
- package/lib/cli-peer-dependencies.js +23 -13
- package/lib/cli.js +5 -1
- package/lib/corePluginList.js +7 -4
- package/lib/corePlugins.js +855 -386
- package/lib/featureFlags.js +43 -18
- package/lib/lib/cacheInvalidation.js +78 -30
- package/lib/lib/collapseAdjacentRules.js +46 -23
- package/lib/lib/collapseDuplicateDeclarations.js +70 -27
- package/lib/lib/content.js +134 -41
- package/lib/lib/defaultExtractor.js +201 -96
- package/lib/lib/detectNesting.js +38 -12
- package/lib/lib/evaluateTailwindFunctions.js +192 -103
- package/lib/lib/expandApplyAtRules.js +488 -181
- package/lib/lib/expandTailwindAtRules.js +240 -70
- package/lib/lib/findAtConfigPath.js +34 -15
- package/lib/lib/generateRules.js +775 -353
- package/lib/lib/getModuleDependencies.js +67 -29
- package/lib/lib/load-config.js +27 -17
- package/lib/lib/normalizeTailwindDirectives.js +73 -27
- package/lib/lib/offsets.js +227 -62
- package/lib/lib/partitionApplyAtRules.js +53 -29
- package/lib/lib/regex.js +50 -28
- package/lib/lib/remap-bitfield.js +86 -9
- package/lib/lib/resolveDefaultsAtRules.js +123 -53
- package/lib/lib/setupContextUtils.js +1117 -584
- package/lib/lib/setupTrackingContext.js +149 -58
- package/lib/lib/sharedState.js +71 -23
- package/lib/lib/substituteScreenAtRules.js +19 -9
- package/lib/oxide/cli/build/deps.js +46 -23
- package/lib/oxide/cli/build/index.js +44 -12
- package/lib/oxide/cli/build/plugin.js +271 -89
- package/lib/oxide/cli/build/utils.js +55 -24
- package/lib/oxide/cli/build/watching.js +153 -36
- package/lib/oxide/cli/help/index.js +60 -16
- package/lib/oxide/cli/index.js +128 -67
- package/lib/oxide/cli/init/index.js +40 -19
- package/lib/oxide/cli.js +3 -2
- package/lib/plugin.js +58 -31
- package/lib/postcss-plugins/nesting/index.js +13 -7
- package/lib/postcss-plugins/nesting/plugin.js +65 -20
- package/lib/processTailwindFeatures.js +41 -10
- package/lib/public/colors.js +25 -16
- package/lib/public/create-plugin.js +11 -6
- package/lib/public/default-config.js +12 -6
- package/lib/public/default-theme.js +12 -6
- package/lib/public/load-config.js +9 -5
- package/lib/public/resolve-config.js +10 -6
- package/lib/util/applyImportantSelector.js +28 -17
- package/lib/util/bigSign.js +9 -6
- package/lib/util/buildMediaQuery.js +19 -10
- package/lib/util/cloneDeep.js +19 -9
- package/lib/util/cloneNodes.js +29 -14
- package/lib/util/color.js +87 -47
- package/lib/util/colorNames.js +752 -0
- package/lib/util/configurePlugins.js +18 -9
- package/lib/util/createPlugin.js +17 -8
- package/lib/util/createUtilityPlugin.js +30 -16
- package/lib/util/dataTypes.js +189 -38
- package/lib/util/defaults.js +21 -9
- package/lib/util/escapeClassName.js +15 -9
- package/lib/util/escapeCommas.js +9 -6
- package/lib/util/flattenColorPalette.js +11 -7
- package/lib/util/formatVariantSelector.js +209 -60
- package/lib/util/getAllConfigs.js +44 -35
- package/lib/util/hashConfig.js +12 -8
- package/lib/util/isKeyframeRule.js +10 -7
- package/lib/util/isPlainObject.js +14 -9
- package/lib/util/isSyntacticallyValidPropertyValue.js +45 -14
- package/lib/util/log.js +20 -9
- package/lib/util/nameClass.js +31 -10
- package/lib/util/negateValue.js +28 -10
- package/lib/util/normalizeConfig.js +242 -63
- package/lib/util/normalizeScreens.js +145 -70
- package/lib/util/parseAnimationValue.js +64 -14
- package/lib/util/parseBoxShadowValue.js +63 -14
- package/lib/util/parseDependency.js +39 -13
- package/lib/util/parseGlob.js +25 -8
- package/lib/util/parseObjectStyles.js +29 -18
- package/lib/util/pluginUtils.js +196 -77
- package/lib/util/prefixSelector.js +31 -12
- package/lib/util/pseudoElements.js +116 -34
- package/lib/util/removeAlphaVariables.js +23 -8
- package/lib/util/resolveConfig.js +224 -105
- package/lib/util/resolveConfigPath.js +45 -15
- package/lib/util/responsive.js +10 -6
- package/lib/util/splitAtTopLevelOnly.js +46 -10
- package/lib/util/tap.js +11 -7
- package/lib/util/toColorValue.js +10 -7
- package/lib/util/toPath.js +28 -8
- package/lib/util/transformThemeValue.js +49 -14
- package/lib/util/validateConfig.js +25 -15
- package/lib/util/validateFormalSyntax.js +14 -6
- package/lib/util/withAlphaVariable.js +54 -30
- package/package.json +18 -22
- package/peers/index.js +57849 -43101
- package/src/lib/expandTailwindAtRules.js +1 -1
- package/src/lib/setupTrackingContext.js +1 -1
- package/src/util/color.js +1 -1
- package/src/util/colorNames.js +150 -0
- 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:
|
|
3
|
+
value: true
|
|
4
4
|
});
|
|
5
|
-
const _setupTrackingContext =
|
|
6
|
-
|
|
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
|
-
|
|
19
|
+
console.log("\n");
|
|
20
|
+
console.time("JIT TOTAL");
|
|
21
|
+
return root;
|
|
17
22
|
},
|
|
18
23
|
function(root, result) {
|
|
19
24
|
var _findAtConfigPath1;
|
|
20
|
-
|
|
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"
|
|
23
|
-
|
|
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")
|
|
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:
|
|
48
|
+
minify: false,
|
|
36
49
|
sourceMap: !!result.map,
|
|
37
|
-
inputSourceMap: result.map ? result.map.toString() :
|
|
38
|
-
targets: "undefined"
|
|
39
|
-
chrome:
|
|
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:
|
|
43
|
-
customMedia:
|
|
55
|
+
nesting: true,
|
|
56
|
+
customMedia: true
|
|
44
57
|
}
|
|
45
58
|
});
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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"
|
|
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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
-
|
|
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
|
-
|
|
91
|
+
console.timeEnd("JIT TOTAL");
|
|
92
|
+
console.log("\n");
|
|
93
|
+
return root;
|
|
68
94
|
}
|
|
69
95
|
].filter(Boolean)
|
|
70
96
|
};
|
|
71
|
-
}
|
|
97
|
+
};
|
|
98
|
+
module.exports.postcss = true;
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value:
|
|
4
|
-
}), Object.defineProperty(exports, "default", {
|
|
5
|
-
enumerable: !0,
|
|
6
|
-
get: ()=>_default
|
|
3
|
+
value: true
|
|
7
4
|
});
|
|
8
|
-
|
|
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
|
|
15
|
+
Once (root, { result }) {
|
|
16
|
+
return (0, _plugin.nesting)(opts)(root, result);
|
|
17
|
+
}
|
|
12
18
|
};
|
|
13
19
|
}, {
|
|
14
|
-
postcss:
|
|
20
|
+
postcss: true
|
|
15
21
|
});
|
|
@@ -1,44 +1,89 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value:
|
|
4
|
-
}), Object.defineProperty(exports, "nesting", {
|
|
5
|
-
enumerable: !0,
|
|
6
|
-
get: ()=>nesting
|
|
3
|
+
value: true
|
|
7
4
|
});
|
|
8
|
-
|
|
9
|
-
|
|
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 =
|
|
18
|
+
function nesting(opts = _postcssnested.default) {
|
|
15
19
|
return (root, result)=>{
|
|
16
20
|
root.walkAtRules("screen", (rule)=>{
|
|
17
|
-
rule.name = "media"
|
|
18
|
-
|
|
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
|
-
}))
|
|
29
|
+
}));
|
|
30
|
+
rule.remove();
|
|
24
31
|
});
|
|
25
32
|
let plugin = (()=>{
|
|
26
33
|
var _opts_hasOwnProperty;
|
|
27
|
-
if ("function"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
45
|
+
(0, _postcss.default)([
|
|
33
46
|
plugin
|
|
34
|
-
]).process(root, result.opts).sync()
|
|
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
|
-
}))
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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:
|
|
4
|
-
}), Object.defineProperty(exports, "default", {
|
|
5
|
-
enumerable: !0,
|
|
6
|
-
get: ()=>processTailwindFeatures
|
|
3
|
+
value: true
|
|
7
4
|
});
|
|
8
|
-
|
|
9
|
-
|
|
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)
|
|
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
|
|
45
|
+
createContext (tailwindConfig, changedContent) {
|
|
46
|
+
return (0, _setupContextUtils.createContext)(tailwindConfig, changedContent, root);
|
|
47
|
+
}
|
|
29
48
|
})(root, result);
|
|
30
|
-
if (
|
|
31
|
-
|
|
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
|
}
|
package/lib/public/colors.js
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value:
|
|
4
|
-
}), Object.defineProperty(exports, "default", {
|
|
5
|
-
enumerable: !0,
|
|
6
|
-
get: ()=>_default
|
|
3
|
+
value: true
|
|
7
4
|
});
|
|
8
|
-
|
|
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
|
-
}
|
|
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
|
-
|
|
316
|
+
warn({
|
|
313
317
|
version: "v2.2",
|
|
314
318
|
from: "lightBlue",
|
|
315
319
|
to: "sky"
|
|
316
|
-
})
|
|
320
|
+
});
|
|
321
|
+
return this.sky;
|
|
317
322
|
},
|
|
318
323
|
get warmGray () {
|
|
319
|
-
|
|
324
|
+
warn({
|
|
320
325
|
version: "v3.0",
|
|
321
326
|
from: "warmGray",
|
|
322
327
|
to: "stone"
|
|
323
|
-
})
|
|
328
|
+
});
|
|
329
|
+
return this.stone;
|
|
324
330
|
},
|
|
325
331
|
get trueGray () {
|
|
326
|
-
|
|
332
|
+
warn({
|
|
327
333
|
version: "v3.0",
|
|
328
334
|
from: "trueGray",
|
|
329
335
|
to: "neutral"
|
|
330
|
-
})
|
|
336
|
+
});
|
|
337
|
+
return this.neutral;
|
|
331
338
|
},
|
|
332
339
|
get coolGray () {
|
|
333
|
-
|
|
340
|
+
warn({
|
|
334
341
|
version: "v3.0",
|
|
335
342
|
from: "coolGray",
|
|
336
343
|
to: "gray"
|
|
337
|
-
})
|
|
344
|
+
});
|
|
345
|
+
return this.gray;
|
|
338
346
|
},
|
|
339
347
|
get blueGray () {
|
|
340
|
-
|
|
348
|
+
warn({
|
|
341
349
|
version: "v3.0",
|
|
342
350
|
from: "blueGray",
|
|
343
351
|
to: "slate"
|
|
344
|
-
})
|
|
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:
|
|
4
|
-
}), Object.defineProperty(exports, "default", {
|
|
5
|
-
enumerable: !0,
|
|
6
|
-
get: ()=>_default
|
|
3
|
+
value: true
|
|
7
4
|
});
|
|
8
|
-
|
|
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
|
-
}
|
|
16
|
+
}
|
|
17
|
+
const _default = _createPlugin.default;
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value:
|
|
4
|
-
}), Object.defineProperty(exports, "default", {
|
|
5
|
-
enumerable: !0,
|
|
6
|
-
get: ()=>_default
|
|
3
|
+
value: true
|
|
7
4
|
});
|
|
8
|
-
|
|
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
|
-
}
|
|
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:
|
|
4
|
-
}), Object.defineProperty(exports, "default", {
|
|
5
|
-
enumerable: !0,
|
|
6
|
-
get: ()=>_default
|
|
3
|
+
value: true
|
|
7
4
|
});
|
|
8
|
-
|
|
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
|
-
}
|
|
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:
|
|
4
|
-
}), Object.defineProperty(exports, "default", {
|
|
5
|
-
enumerable: !0,
|
|
6
|
-
get: ()=>_default
|
|
3
|
+
value: true
|
|
7
4
|
});
|
|
8
|
-
|
|
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:
|
|
4
|
-
}), Object.defineProperty(exports, "default", {
|
|
5
|
-
enumerable: !0,
|
|
6
|
-
get: ()=>resolveConfig
|
|
3
|
+
value: true
|
|
7
4
|
});
|
|
8
|
-
|
|
9
|
-
|
|
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:
|
|
4
|
-
}), Object.defineProperty(exports, "applyImportantSelector", {
|
|
5
|
-
enumerable: !0,
|
|
6
|
-
get: ()=>applyImportantSelector
|
|
3
|
+
value: true
|
|
7
4
|
});
|
|
8
|
-
|
|
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
|
-
}
|
|
17
|
+
}
|
|
13
18
|
function applyImportantSelector(selector, important) {
|
|
14
|
-
let sel = (0,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
}
|
package/lib/util/bigSign.js
CHANGED
|
@@ -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
|
-
});
|