tailwindcss 0.0.0-insiders.dddaded → 0.0.0-insiders.de00a62
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 +17 -9
- package/lib/cli/build/index.js +10 -8
- package/lib/cli/build/plugin.js +31 -29
- package/lib/cli/build/utils.js +18 -8
- package/lib/cli/build/watching.js +13 -11
- package/lib/cli/help/index.js +6 -4
- package/lib/cli/index.js +4 -4
- package/lib/cli/init/index.js +8 -6
- package/lib/cli-peer-dependencies.js +12 -4
- package/lib/cli.js +1 -1
- package/lib/corePluginList.js +8 -2
- package/lib/corePlugins.js +211 -48
- package/lib/css/preflight.css +24 -8
- package/lib/featureFlags.js +14 -9
- package/lib/index.js +1 -5
- package/lib/lib/cacheInvalidation.js +7 -5
- package/lib/lib/collapseAdjacentRules.js +3 -1
- package/lib/lib/collapseDuplicateDeclarations.js +10 -8
- package/lib/lib/content.js +51 -14
- package/lib/lib/defaultExtractor.js +38 -28
- package/lib/lib/detectNesting.js +3 -1
- package/lib/lib/evaluateTailwindFunctions.js +20 -16
- package/lib/lib/expandApplyAtRules.js +41 -33
- package/lib/lib/expandTailwindAtRules.js +38 -19
- package/lib/lib/findAtConfigPath.js +6 -4
- package/lib/lib/generateRules.js +83 -55
- package/lib/lib/getModuleDependencies.js +10 -8
- package/lib/lib/load-config.js +18 -5
- package/lib/lib/normalizeTailwindDirectives.js +5 -3
- package/lib/lib/offsets.js +58 -7
- package/lib/lib/partitionApplyAtRules.js +3 -1
- package/lib/lib/regex.js +21 -7
- package/lib/lib/remap-bitfield.js +3 -1
- package/lib/lib/resolveDefaultsAtRules.js +27 -21
- package/lib/lib/setupContextUtils.js +143 -94
- package/lib/lib/setupTrackingContext.js +27 -24
- package/lib/lib/sharedState.js +28 -24
- package/lib/lib/substituteScreenAtRules.js +5 -3
- package/lib/oxide/cli/build/deps.js +16 -8
- package/lib/oxide/cli/build/index.js +6 -4
- package/lib/oxide/cli/build/plugin.js +25 -23
- package/lib/oxide/cli/build/utils.js +18 -8
- package/lib/oxide/cli/build/watching.js +10 -8
- package/lib/oxide/cli/help/index.js +6 -4
- package/lib/oxide/cli/index.js +4 -4
- package/lib/oxide/cli/init/index.js +6 -4
- package/lib/plugin.js +9 -9
- package/lib/postcss-plugins/nesting/index.js +3 -1
- package/lib/postcss-plugins/nesting/plugin.js +8 -6
- package/lib/processTailwindFeatures.js +16 -14
- package/lib/public/colors.js +5 -3
- package/lib/public/create-plugin.js +5 -3
- package/lib/public/default-config.js +6 -4
- package/lib/public/default-theme.js +6 -4
- package/lib/public/load-config.js +5 -3
- package/lib/public/resolve-config.js +6 -4
- package/lib/util/applyImportantSelector.js +7 -5
- package/lib/util/bigSign.js +3 -1
- package/lib/util/buildMediaQuery.js +3 -1
- package/lib/util/cloneDeep.js +3 -1
- package/lib/util/cloneNodes.js +36 -14
- package/lib/util/color.js +11 -7
- package/lib/util/colorNames.js +752 -0
- package/lib/util/configurePlugins.js +3 -1
- package/lib/util/createPlugin.js +3 -1
- package/lib/util/createUtilityPlugin.js +5 -3
- package/lib/util/dataTypes.js +180 -31
- package/lib/util/defaults.js +6 -4
- package/lib/util/escapeClassName.js +7 -5
- package/lib/util/escapeCommas.js +3 -1
- package/lib/util/flattenColorPalette.js +3 -1
- package/lib/util/formatVariantSelector.js +36 -21
- package/lib/util/getAllConfigs.js +6 -4
- package/lib/util/hashConfig.js +6 -4
- package/lib/util/isKeyframeRule.js +3 -1
- package/lib/util/isPlainObject.js +4 -2
- package/lib/util/isSyntacticallyValidPropertyValue.js +3 -1
- package/lib/util/log.js +8 -4
- package/lib/util/nameClass.js +12 -6
- package/lib/util/negateValue.js +3 -1
- package/lib/util/normalizeConfig.js +7 -5
- package/lib/util/normalizeScreens.js +12 -4
- package/lib/util/parseAnimationValue.js +3 -1
- package/lib/util/parseBoxShadowValue.js +6 -2
- package/lib/util/parseDependency.js +3 -1
- package/lib/util/parseGlob.js +6 -4
- package/lib/util/parseObjectStyles.js +9 -7
- package/lib/util/pluginUtils.js +43 -18
- package/lib/util/prefixSelector.js +6 -4
- package/lib/util/pseudoElements.js +24 -35
- package/lib/util/removeAlphaVariables.js +3 -1
- package/lib/util/resolveConfig.js +10 -8
- package/lib/util/resolveConfigPath.js +9 -5
- package/lib/util/responsive.js +6 -4
- package/lib/util/splitAtTopLevelOnly.js +3 -1
- package/lib/util/tap.js +3 -1
- package/lib/util/toColorValue.js +3 -1
- package/lib/util/toPath.js +3 -1
- package/lib/util/transformThemeValue.js +6 -4
- package/lib/util/validateConfig.js +5 -3
- package/lib/util/validateFormalSyntax.js +3 -1
- package/lib/util/withAlphaVariable.js +6 -2
- package/lib/value-parser/LICENSE +22 -0
- package/lib/value-parser/README.md +3 -0
- package/lib/value-parser/index.d.js +2 -0
- package/lib/value-parser/index.js +22 -0
- package/lib/value-parser/parse.js +259 -0
- package/lib/value-parser/stringify.js +38 -0
- package/lib/value-parser/unit.js +86 -0
- package/lib/value-parser/walk.js +16 -0
- package/nesting/index.d.ts +4 -0
- package/package.json +31 -36
- package/peers/index.js +65266 -48224
- package/resolveConfig.d.ts +22 -3
- package/scripts/generate-types.js +1 -2
- package/src/cli/build/plugin.js +7 -7
- package/src/cli/build/watching.js +1 -1
- package/src/cli.js +1 -1
- package/src/corePluginList.js +1 -1
- package/src/corePlugins.js +165 -29
- package/src/css/preflight.css +24 -8
- package/src/featureFlags.js +3 -8
- package/src/index.js +1 -5
- package/src/lib/content.js +42 -1
- package/src/lib/defaultExtractor.js +30 -17
- package/src/lib/evaluateTailwindFunctions.js +4 -1
- package/src/lib/expandApplyAtRules.js +7 -0
- package/src/lib/expandTailwindAtRules.js +26 -9
- package/src/lib/generateRules.js +50 -26
- package/src/lib/load-config.ts +8 -0
- package/src/lib/offsets.js +61 -2
- package/src/lib/resolveDefaultsAtRules.js +5 -1
- package/src/lib/setupContextUtils.js +77 -38
- package/src/lib/setupTrackingContext.js +2 -4
- package/src/lib/sharedState.js +0 -15
- package/src/oxide/cli/build/plugin.ts +7 -7
- package/src/plugin.js +4 -4
- package/src/processTailwindFeatures.js +3 -2
- package/src/util/cloneNodes.js +35 -14
- package/src/util/color.js +2 -2
- package/src/util/colorNames.js +150 -0
- package/src/util/dataTypes.js +143 -18
- package/src/util/formatVariantSelector.js +11 -3
- package/src/util/isPlainObject.js +1 -1
- package/src/util/pluginUtils.js +17 -5
- package/src/util/prefixSelector.js +1 -0
- package/src/util/pseudoElements.js +18 -17
- package/src/value-parser/LICENSE +22 -0
- package/src/value-parser/README.md +3 -0
- package/src/value-parser/index.d.ts +177 -0
- package/src/value-parser/index.js +28 -0
- package/src/value-parser/parse.js +303 -0
- package/src/value-parser/stringify.js +41 -0
- package/src/value-parser/unit.js +118 -0
- package/src/value-parser/walk.js +18 -0
- package/stubs/config.full.js +86 -14
- package/types/config.d.ts +17 -9
- package/types/generated/corePluginList.d.ts +1 -1
- package/types/generated/default-theme.d.ts +35 -9
- package/types/index.d.ts +7 -3
|
@@ -33,10 +33,18 @@ function _export(target, all) {
|
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
_export(exports, {
|
|
36
|
-
normalizeScreens: ()
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
normalizeScreens: function() {
|
|
37
|
+
return normalizeScreens;
|
|
38
|
+
},
|
|
39
|
+
isScreenSortable: function() {
|
|
40
|
+
return isScreenSortable;
|
|
41
|
+
},
|
|
42
|
+
compareScreens: function() {
|
|
43
|
+
return compareScreens;
|
|
44
|
+
},
|
|
45
|
+
toScreen: function() {
|
|
46
|
+
return toScreen;
|
|
47
|
+
}
|
|
40
48
|
});
|
|
41
49
|
function normalizeScreens(screens, root = true) {
|
|
42
50
|
if (Array.isArray(screens)) {
|
|
@@ -9,8 +9,12 @@ function _export(target, all) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
parseBoxShadowValue: ()
|
|
13
|
-
|
|
12
|
+
parseBoxShadowValue: function() {
|
|
13
|
+
return parseBoxShadowValue;
|
|
14
|
+
},
|
|
15
|
+
formatBoxShadowValue: function() {
|
|
16
|
+
return formatBoxShadowValue;
|
|
17
|
+
}
|
|
14
18
|
});
|
|
15
19
|
const _splitAtTopLevelOnly = require("./splitAtTopLevelOnly");
|
|
16
20
|
let KEYWORDS = new Set([
|
|
@@ -11,7 +11,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "default", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: ()
|
|
14
|
+
get: function() {
|
|
15
|
+
return parseDependency;
|
|
16
|
+
}
|
|
15
17
|
});
|
|
16
18
|
function parseDependency(contentPath) {
|
|
17
19
|
if (contentPath.ignore) {
|
package/lib/util/parseGlob.js
CHANGED
|
@@ -4,17 +4,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "parseGlob", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return parseGlob;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
|
-
const
|
|
10
|
-
function
|
|
11
|
+
const _globparent = /*#__PURE__*/ _interop_require_default(require("glob-parent"));
|
|
12
|
+
function _interop_require_default(obj) {
|
|
11
13
|
return obj && obj.__esModule ? obj : {
|
|
12
14
|
default: obj
|
|
13
15
|
};
|
|
14
16
|
}
|
|
15
17
|
function parseGlob(pattern) {
|
|
16
18
|
let glob = pattern;
|
|
17
|
-
let base = (0,
|
|
19
|
+
let base = (0, _globparent.default)(pattern);
|
|
18
20
|
if (base !== ".") {
|
|
19
21
|
glob = pattern.substr(base.length);
|
|
20
22
|
if (glob.charAt(0) === "/") {
|
|
@@ -4,12 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "default", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return parseObjectStyles;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
|
-
const _postcss = /*#__PURE__*/
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
function
|
|
11
|
+
const _postcss = /*#__PURE__*/ _interop_require_default(require("postcss"));
|
|
12
|
+
const _postcssnested = /*#__PURE__*/ _interop_require_default(require("postcss-nested"));
|
|
13
|
+
const _postcssjs = /*#__PURE__*/ _interop_require_default(require("postcss-js"));
|
|
14
|
+
function _interop_require_default(obj) {
|
|
13
15
|
return obj && obj.__esModule ? obj : {
|
|
14
16
|
default: obj
|
|
15
17
|
};
|
|
@@ -22,13 +24,13 @@ function parseObjectStyles(styles) {
|
|
|
22
24
|
}
|
|
23
25
|
return styles.flatMap((style)=>{
|
|
24
26
|
return (0, _postcss.default)([
|
|
25
|
-
(0,
|
|
27
|
+
(0, _postcssnested.default)({
|
|
26
28
|
bubble: [
|
|
27
29
|
"screen"
|
|
28
30
|
]
|
|
29
31
|
})
|
|
30
32
|
]).process(style, {
|
|
31
|
-
parser:
|
|
33
|
+
parser: _postcssjs.default
|
|
32
34
|
}).root.nodes;
|
|
33
35
|
});
|
|
34
36
|
}
|
package/lib/util/pluginUtils.js
CHANGED
|
@@ -9,22 +9,38 @@ function _export(target, all) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
updateAllClasses: ()
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
updateAllClasses: function() {
|
|
13
|
+
return updateAllClasses;
|
|
14
|
+
},
|
|
15
|
+
asValue: function() {
|
|
16
|
+
return asValue;
|
|
17
|
+
},
|
|
18
|
+
parseColorFormat: function() {
|
|
19
|
+
return parseColorFormat;
|
|
20
|
+
},
|
|
21
|
+
asColor: function() {
|
|
22
|
+
return asColor;
|
|
23
|
+
},
|
|
24
|
+
asLookupValue: function() {
|
|
25
|
+
return asLookupValue;
|
|
26
|
+
},
|
|
27
|
+
typeMap: function() {
|
|
28
|
+
return typeMap;
|
|
29
|
+
},
|
|
30
|
+
coerceValue: function() {
|
|
31
|
+
return coerceValue;
|
|
32
|
+
},
|
|
33
|
+
getMatchingTypes: function() {
|
|
34
|
+
return getMatchingTypes;
|
|
35
|
+
}
|
|
20
36
|
});
|
|
21
|
-
const _escapeCommas = /*#__PURE__*/
|
|
37
|
+
const _escapeCommas = /*#__PURE__*/ _interop_require_default(require("./escapeCommas"));
|
|
22
38
|
const _withAlphaVariable = require("./withAlphaVariable");
|
|
23
39
|
const _dataTypes = require("./dataTypes");
|
|
24
|
-
const _negateValue = /*#__PURE__*/
|
|
40
|
+
const _negateValue = /*#__PURE__*/ _interop_require_default(require("./negateValue"));
|
|
25
41
|
const _validateFormalSyntax = require("./validateFormalSyntax");
|
|
26
|
-
const
|
|
27
|
-
function
|
|
42
|
+
const _featureFlags = require("../featureFlags.js");
|
|
43
|
+
function _interop_require_default(obj) {
|
|
28
44
|
return obj && obj.__esModule ? obj : {
|
|
29
45
|
default: obj
|
|
30
46
|
};
|
|
@@ -76,6 +92,19 @@ function isArbitraryValue(input) {
|
|
|
76
92
|
}
|
|
77
93
|
function splitUtilityModifier(modifier) {
|
|
78
94
|
let slashIdx = modifier.lastIndexOf("/");
|
|
95
|
+
// If the `/` is inside an arbitrary, we want to find the previous one if any
|
|
96
|
+
// This logic probably isn't perfect but it should work for most cases
|
|
97
|
+
let arbitraryStartIdx = modifier.lastIndexOf("[", slashIdx);
|
|
98
|
+
let arbitraryEndIdx = modifier.indexOf("]", slashIdx);
|
|
99
|
+
let isNextToArbitrary = modifier[slashIdx - 1] === "]" || modifier[slashIdx + 1] === "[";
|
|
100
|
+
// Backtrack to the previous `/` if the one we found was inside an arbitrary
|
|
101
|
+
if (!isNextToArbitrary) {
|
|
102
|
+
if (arbitraryStartIdx !== -1 && arbitraryEndIdx !== -1) {
|
|
103
|
+
if (arbitraryStartIdx < slashIdx && slashIdx < arbitraryEndIdx) {
|
|
104
|
+
slashIdx = modifier.lastIndexOf("/", arbitraryStartIdx);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
79
108
|
if (slashIdx === -1 || slashIdx === modifier.length - 1) {
|
|
80
109
|
return [
|
|
81
110
|
modifier,
|
|
@@ -105,11 +134,7 @@ function parseColorFormat(value) {
|
|
|
105
134
|
return value;
|
|
106
135
|
}
|
|
107
136
|
function unwrapArbitraryModifier(modifier) {
|
|
108
|
-
|
|
109
|
-
if (modifier.startsWith("--")) {
|
|
110
|
-
modifier = `var(${modifier})`;
|
|
111
|
-
}
|
|
112
|
-
return modifier;
|
|
137
|
+
return (0, _dataTypes.normalize)(modifier.slice(1, -1));
|
|
113
138
|
}
|
|
114
139
|
function asColor(modifier, options = {}, { tailwindConfig ={} } = {}) {
|
|
115
140
|
var _options_values;
|
|
@@ -224,7 +249,7 @@ function coerceValue(types, modifier, options, tailwindConfig) {
|
|
|
224
249
|
return [];
|
|
225
250
|
}
|
|
226
251
|
function* getMatchingTypes(types, rawModifier, options, tailwindConfig) {
|
|
227
|
-
let modifiersEnabled = (0,
|
|
252
|
+
let modifiersEnabled = (0, _featureFlags.flagEnabled)(tailwindConfig, "generalizedModifiers");
|
|
228
253
|
let [modifier, utilityModifier] = splitUtilityModifier(rawModifier);
|
|
229
254
|
let canUseUtilityModifier = modifiersEnabled && options.modifiers != null && (options.modifiers === "any" || typeof options.modifiers === "object" && (utilityModifier && isArbitraryValue(utilityModifier) || utilityModifier in options.modifiers));
|
|
230
255
|
if (!canUseUtilityModifier) {
|
|
@@ -15,10 +15,12 @@ Object.defineProperty(exports, /**
|
|
|
15
15
|
* @returns {T}
|
|
16
16
|
*/ "default", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: ()
|
|
18
|
+
get: function() {
|
|
19
|
+
return _default;
|
|
20
|
+
}
|
|
19
21
|
});
|
|
20
|
-
const
|
|
21
|
-
function
|
|
22
|
+
const _postcssselectorparser = /*#__PURE__*/ _interop_require_default(require("postcss-selector-parser"));
|
|
23
|
+
function _interop_require_default(obj) {
|
|
22
24
|
return obj && obj.__esModule ? obj : {
|
|
23
25
|
default: obj
|
|
24
26
|
};
|
|
@@ -27,7 +29,7 @@ function _default(prefix, selector, prependNegative = false) {
|
|
|
27
29
|
if (prefix === "") {
|
|
28
30
|
return selector;
|
|
29
31
|
}
|
|
30
|
-
let ast = typeof selector === "string" ? (0,
|
|
32
|
+
/** @type {import('postcss-selector-parser').Root} */ let ast = typeof selector === "string" ? (0, _postcssselectorparser.default)().astSync(selector) : selector;
|
|
31
33
|
ast.walkClasses((classSelector)=>{
|
|
32
34
|
let baseClass = classSelector.value;
|
|
33
35
|
let shouldPlaceNegativeBeforePrefix = prependNegative && baseClass.startsWith("-");
|
|
@@ -11,22 +11,26 @@
|
|
|
11
11
|
// **Jumpable**
|
|
12
12
|
// Any terminal element may "jump" over combinators when moving to the end of the selector
|
|
13
13
|
//
|
|
14
|
-
// This is a backwards-compat quirk of
|
|
14
|
+
// This is a backwards-compat quirk of pseudo element variants from earlier versions of Tailwind CSS.
|
|
15
15
|
/** @typedef {'terminal' | 'actionable' | 'jumpable'} PseudoProperty */ /** @type {Record<string, PseudoProperty[]>} */ "use strict";
|
|
16
16
|
Object.defineProperty(exports, "__esModule", {
|
|
17
17
|
value: true
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "movePseudos", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: ()
|
|
21
|
+
get: function() {
|
|
22
|
+
return movePseudos;
|
|
23
|
+
}
|
|
22
24
|
});
|
|
23
25
|
let elementProperties = {
|
|
26
|
+
// Pseudo elements from the spec
|
|
24
27
|
"::after": [
|
|
25
28
|
"terminal",
|
|
26
29
|
"jumpable"
|
|
27
30
|
],
|
|
28
31
|
"::backdrop": [
|
|
29
|
-
"terminal"
|
|
32
|
+
"terminal",
|
|
33
|
+
"jumpable"
|
|
30
34
|
],
|
|
31
35
|
"::before": [
|
|
32
36
|
"terminal",
|
|
@@ -50,17 +54,20 @@ let elementProperties = {
|
|
|
50
54
|
"terminal"
|
|
51
55
|
],
|
|
52
56
|
"::marker": [
|
|
53
|
-
"terminal"
|
|
57
|
+
"terminal",
|
|
58
|
+
"jumpable"
|
|
54
59
|
],
|
|
55
60
|
"::part": [
|
|
56
61
|
"terminal",
|
|
57
62
|
"actionable"
|
|
58
63
|
],
|
|
59
64
|
"::placeholder": [
|
|
60
|
-
"terminal"
|
|
65
|
+
"terminal",
|
|
66
|
+
"jumpable"
|
|
61
67
|
],
|
|
62
68
|
"::selection": [
|
|
63
|
-
"terminal"
|
|
69
|
+
"terminal",
|
|
70
|
+
"jumpable"
|
|
64
71
|
],
|
|
65
72
|
"::slotted": [
|
|
66
73
|
"terminal"
|
|
@@ -71,42 +78,20 @@ let elementProperties = {
|
|
|
71
78
|
"::target-text": [
|
|
72
79
|
"terminal"
|
|
73
80
|
],
|
|
74
|
-
//
|
|
81
|
+
// Pseudo elements from the spec with special rules
|
|
75
82
|
"::file-selector-button": [
|
|
76
83
|
"terminal",
|
|
77
84
|
"actionable"
|
|
78
85
|
],
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
],
|
|
83
|
-
// Webkit scroll bar pseudo elements can be combined with user-action pseudo classes
|
|
84
|
-
"::-webkit-scrollbar": [
|
|
85
|
-
"terminal",
|
|
86
|
-
"actionable"
|
|
87
|
-
],
|
|
88
|
-
"::-webkit-scrollbar-button": [
|
|
89
|
-
"terminal",
|
|
90
|
-
"actionable"
|
|
91
|
-
],
|
|
92
|
-
"::-webkit-scrollbar-thumb": [
|
|
93
|
-
"terminal",
|
|
94
|
-
"actionable"
|
|
95
|
-
],
|
|
96
|
-
"::-webkit-scrollbar-track": [
|
|
97
|
-
"terminal",
|
|
98
|
-
"actionable"
|
|
99
|
-
],
|
|
100
|
-
"::-webkit-scrollbar-track-piece": [
|
|
101
|
-
"terminal",
|
|
86
|
+
// Library-specific pseudo elements used by component libraries
|
|
87
|
+
// These are Shadow DOM-like
|
|
88
|
+
"::deep": [
|
|
102
89
|
"actionable"
|
|
103
90
|
],
|
|
104
|
-
"
|
|
105
|
-
"terminal",
|
|
91
|
+
"::v-deep": [
|
|
106
92
|
"actionable"
|
|
107
93
|
],
|
|
108
|
-
"
|
|
109
|
-
"terminal",
|
|
94
|
+
"::ng-deep": [
|
|
110
95
|
"actionable"
|
|
111
96
|
],
|
|
112
97
|
// Note: As a rule, double colons (::) should be used instead of a single colon
|
|
@@ -129,10 +114,14 @@ let elementProperties = {
|
|
|
129
114
|
"terminal",
|
|
130
115
|
"jumpable"
|
|
131
116
|
],
|
|
117
|
+
":where": [],
|
|
118
|
+
":is": [],
|
|
119
|
+
":has": [],
|
|
132
120
|
// The default value is used when the pseudo-element is not recognized
|
|
133
121
|
// Because it's not recognized, we don't know if it's terminal or not
|
|
134
|
-
// So we assume it can
|
|
122
|
+
// So we assume it can be moved AND can have user-action pseudo classes attached to it
|
|
135
123
|
__default__: [
|
|
124
|
+
"terminal",
|
|
136
125
|
"actionable"
|
|
137
126
|
]
|
|
138
127
|
};
|
|
@@ -12,7 +12,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "removeAlphaVariables", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: ()
|
|
15
|
+
get: function() {
|
|
16
|
+
return removeAlphaVariables;
|
|
17
|
+
}
|
|
16
18
|
});
|
|
17
19
|
function removeAlphaVariables(container, toRemove) {
|
|
18
20
|
container.walkDecls((decl)=>{
|
|
@@ -4,21 +4,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "default", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return resolveConfig;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
|
-
const _negateValue = /*#__PURE__*/
|
|
10
|
-
const _corePluginList = /*#__PURE__*/
|
|
11
|
-
const _configurePlugins = /*#__PURE__*/
|
|
12
|
-
const _colors = /*#__PURE__*/
|
|
11
|
+
const _negateValue = /*#__PURE__*/ _interop_require_default(require("./negateValue"));
|
|
12
|
+
const _corePluginList = /*#__PURE__*/ _interop_require_default(require("../corePluginList"));
|
|
13
|
+
const _configurePlugins = /*#__PURE__*/ _interop_require_default(require("./configurePlugins"));
|
|
14
|
+
const _colors = /*#__PURE__*/ _interop_require_default(require("../public/colors"));
|
|
13
15
|
const _defaults = require("./defaults");
|
|
14
16
|
const _toPath = require("./toPath");
|
|
15
17
|
const _normalizeConfig = require("./normalizeConfig");
|
|
16
|
-
const _isPlainObject = /*#__PURE__*/
|
|
18
|
+
const _isPlainObject = /*#__PURE__*/ _interop_require_default(require("./isPlainObject"));
|
|
17
19
|
const _cloneDeep = require("./cloneDeep");
|
|
18
20
|
const _pluginUtils = require("./pluginUtils");
|
|
19
21
|
const _withAlphaVariable = require("./withAlphaVariable");
|
|
20
|
-
const _toColorValue = /*#__PURE__*/
|
|
21
|
-
function
|
|
22
|
+
const _toColorValue = /*#__PURE__*/ _interop_require_default(require("./toColorValue"));
|
|
23
|
+
function _interop_require_default(obj) {
|
|
22
24
|
return obj && obj.__esModule ? obj : {
|
|
23
25
|
default: obj
|
|
24
26
|
};
|
|
@@ -9,12 +9,16 @@ function _export(target, all) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
default: ()
|
|
13
|
-
|
|
12
|
+
default: function() {
|
|
13
|
+
return resolveConfigPath;
|
|
14
|
+
},
|
|
15
|
+
resolveDefaultConfigPath: function() {
|
|
16
|
+
return resolveDefaultConfigPath;
|
|
17
|
+
}
|
|
14
18
|
});
|
|
15
|
-
const _fs = /*#__PURE__*/
|
|
16
|
-
const _path = /*#__PURE__*/
|
|
17
|
-
function
|
|
19
|
+
const _fs = /*#__PURE__*/ _interop_require_default(require("fs"));
|
|
20
|
+
const _path = /*#__PURE__*/ _interop_require_default(require("path"));
|
|
21
|
+
function _interop_require_default(obj) {
|
|
18
22
|
return obj && obj.__esModule ? obj : {
|
|
19
23
|
default: obj
|
|
20
24
|
};
|
package/lib/util/responsive.js
CHANGED
|
@@ -4,11 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "default", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return responsive;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
|
-
const _postcss = /*#__PURE__*/
|
|
10
|
-
const _cloneNodes = /*#__PURE__*/
|
|
11
|
-
function
|
|
11
|
+
const _postcss = /*#__PURE__*/ _interop_require_default(require("postcss"));
|
|
12
|
+
const _cloneNodes = /*#__PURE__*/ _interop_require_default(require("./cloneNodes"));
|
|
13
|
+
function _interop_require_default(obj) {
|
|
12
14
|
return obj && obj.__esModule ? obj : {
|
|
13
15
|
default: obj
|
|
14
16
|
};
|
|
@@ -18,7 +18,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "splitAtTopLevelOnly", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: ()
|
|
21
|
+
get: function() {
|
|
22
|
+
return splitAtTopLevelOnly;
|
|
23
|
+
}
|
|
22
24
|
});
|
|
23
25
|
function splitAtTopLevelOnly(input, separator) {
|
|
24
26
|
let stack = [];
|
package/lib/util/tap.js
CHANGED
package/lib/util/toColorValue.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "default", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return toColorValue;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
function toColorValue(maybeFunction) {
|
|
10
12
|
return typeof maybeFunction === "function" ? maybeFunction({}) : maybeFunction;
|
package/lib/util/toPath.js
CHANGED
|
@@ -17,7 +17,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "toPath", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: ()
|
|
20
|
+
get: function() {
|
|
21
|
+
return toPath;
|
|
22
|
+
}
|
|
21
23
|
});
|
|
22
24
|
function toPath(path) {
|
|
23
25
|
if (Array.isArray(path)) return path;
|
|
@@ -4,11 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "default", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return transformThemeValue;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
|
-
const _postcss = /*#__PURE__*/
|
|
10
|
-
const _isPlainObject = /*#__PURE__*/
|
|
11
|
-
function
|
|
11
|
+
const _postcss = /*#__PURE__*/ _interop_require_default(require("postcss"));
|
|
12
|
+
const _isPlainObject = /*#__PURE__*/ _interop_require_default(require("./isPlainObject"));
|
|
13
|
+
function _interop_require_default(obj) {
|
|
12
14
|
return obj && obj.__esModule ? obj : {
|
|
13
15
|
default: obj
|
|
14
16
|
};
|
|
@@ -4,10 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "validateConfig", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return validateConfig;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
|
-
const _log = /*#__PURE__*/
|
|
10
|
-
function
|
|
11
|
+
const _log = /*#__PURE__*/ _interop_require_default(require("./log"));
|
|
12
|
+
function _interop_require_default(obj) {
|
|
11
13
|
return obj && obj.__esModule ? obj : {
|
|
12
14
|
default: obj
|
|
13
15
|
};
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "backgroundSize", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return backgroundSize;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _dataTypes = require("./dataTypes");
|
|
10
12
|
const _splitAtTopLevelOnly = require("./splitAtTopLevelOnly");
|
|
@@ -9,8 +9,12 @@ function _export(target, all) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
withAlphaValue: ()
|
|
13
|
-
|
|
12
|
+
withAlphaValue: function() {
|
|
13
|
+
return withAlphaValue;
|
|
14
|
+
},
|
|
15
|
+
default: function() {
|
|
16
|
+
return withAlphaVariable;
|
|
17
|
+
}
|
|
14
18
|
});
|
|
15
19
|
const _color = require("./color");
|
|
16
20
|
function withAlphaValue(color, alphaValue, defaultValue) {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) Bogdan Chadkin <trysound@yandex.ru>
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person
|
|
4
|
+
obtaining a copy of this software and associated documentation
|
|
5
|
+
files (the "Software"), to deal in the Software without
|
|
6
|
+
restriction, including without limitation the rights to use,
|
|
7
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the
|
|
9
|
+
Software is furnished to do so, subject to the following
|
|
10
|
+
conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be
|
|
13
|
+
included in all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
16
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
17
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
18
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
19
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
20
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
21
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var parse = require("./parse");
|
|
3
|
+
var walk = require("./walk");
|
|
4
|
+
var stringify = require("./stringify");
|
|
5
|
+
function ValueParser(value) {
|
|
6
|
+
if (this instanceof ValueParser) {
|
|
7
|
+
this.nodes = parse(value);
|
|
8
|
+
return this;
|
|
9
|
+
}
|
|
10
|
+
return new ValueParser(value);
|
|
11
|
+
}
|
|
12
|
+
ValueParser.prototype.toString = function() {
|
|
13
|
+
return Array.isArray(this.nodes) ? stringify(this.nodes) : "";
|
|
14
|
+
};
|
|
15
|
+
ValueParser.prototype.walk = function(cb, bubble) {
|
|
16
|
+
walk(this.nodes, cb, bubble);
|
|
17
|
+
return this;
|
|
18
|
+
};
|
|
19
|
+
ValueParser.unit = require("./unit");
|
|
20
|
+
ValueParser.walk = walk;
|
|
21
|
+
ValueParser.stringify = stringify;
|
|
22
|
+
module.exports = ValueParser;
|