tailwindcss 0.0.0-insiders.89bf2ed → 0.0.0-insiders.8a2f9ed
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 +204 -6
- package/README.md +12 -8
- package/defaultTheme.d.ts +2 -1
- package/lib/cli/build/deps.js +54 -0
- package/lib/cli/build/index.js +44 -0
- package/lib/cli/build/plugin.js +351 -0
- package/lib/cli/build/utils.js +78 -0
- package/lib/cli/build/watching.js +175 -0
- package/lib/cli/help/index.js +71 -0
- package/lib/cli/index.js +18 -0
- package/lib/cli/init/index.js +46 -0
- package/lib/cli/shared.js +12 -0
- package/lib/cli-peer-dependencies.js +18 -5
- package/lib/cli.js +44 -576
- package/lib/constants.js +19 -12
- package/lib/corePluginList.js +5 -3
- package/lib/corePlugins.js +609 -344
- package/lib/css/preflight.css +3 -4
- package/lib/featureFlags.js +27 -15
- package/lib/index.js +16 -9
- package/lib/lib/cacheInvalidation.js +42 -21
- package/lib/lib/collapseAdjacentRules.js +15 -13
- package/lib/lib/collapseDuplicateDeclarations.js +11 -8
- package/lib/lib/content.js +177 -0
- package/lib/lib/defaultExtractor.js +225 -33
- package/lib/lib/detectNesting.js +6 -3
- package/lib/lib/evaluateTailwindFunctions.js +105 -42
- package/lib/lib/expandApplyAtRules.js +162 -82
- package/lib/lib/expandTailwindAtRules.js +130 -145
- package/lib/lib/findAtConfigPath.js +44 -0
- package/lib/lib/generateRules.js +337 -167
- package/lib/lib/getModuleDependencies.js +21 -18
- package/lib/lib/normalizeTailwindDirectives.js +11 -8
- package/lib/lib/offsets.js +217 -0
- package/lib/lib/partitionApplyAtRules.js +14 -11
- package/lib/lib/regex.js +60 -0
- package/lib/lib/resolveDefaultsAtRules.js +97 -79
- package/lib/lib/setupContextUtils.js +551 -230
- package/lib/lib/setupTrackingContext.js +77 -106
- package/lib/lib/sharedState.js +18 -10
- package/lib/lib/substituteScreenAtRules.js +9 -7
- package/lib/postcss-plugins/nesting/index.js +7 -5
- package/lib/postcss-plugins/nesting/plugin.js +8 -6
- package/lib/processTailwindFeatures.js +34 -31
- package/lib/public/colors.js +7 -5
- package/lib/public/create-plugin.js +6 -4
- package/lib/public/default-config.js +7 -5
- package/lib/public/default-theme.js +7 -5
- package/lib/public/resolve-config.js +13 -10
- package/lib/util/bigSign.js +4 -1
- package/lib/util/buildMediaQuery.js +10 -5
- package/lib/util/cloneDeep.js +6 -5
- package/lib/util/cloneNodes.js +9 -2
- package/lib/util/color.js +37 -39
- package/lib/util/configurePlugins.js +5 -2
- package/lib/util/createPlugin.js +6 -5
- package/lib/util/createUtilityPlugin.js +14 -12
- package/lib/util/dataTypes.js +49 -50
- package/lib/util/defaults.js +4 -1
- package/lib/util/escapeClassName.js +12 -9
- package/lib/util/escapeCommas.js +4 -1
- package/lib/util/flattenColorPalette.js +7 -8
- package/lib/util/formatVariantSelector.js +166 -67
- package/lib/util/getAllConfigs.js +32 -13
- package/lib/util/hashConfig.js +10 -7
- package/lib/util/isKeyframeRule.js +4 -1
- package/lib/util/isPlainObject.js +4 -1
- package/lib/util/isValidArbitraryValue.js +33 -25
- package/lib/util/log.js +14 -8
- package/lib/util/nameClass.js +19 -8
- package/lib/util/negateValue.js +20 -5
- package/lib/util/normalizeConfig.js +68 -41
- package/lib/util/normalizeScreens.js +115 -4
- package/lib/util/parseAnimationValue.js +43 -41
- package/lib/util/parseBoxShadowValue.js +12 -45
- package/lib/util/parseDependency.js +37 -55
- package/lib/util/parseGlob.js +34 -0
- package/lib/util/parseObjectStyles.js +15 -12
- package/lib/util/pluginUtils.js +136 -37
- package/lib/util/prefixSelector.js +6 -3
- package/lib/util/removeAlphaVariables.js +29 -0
- package/lib/util/resolveConfig.js +104 -103
- package/lib/util/resolveConfigPath.js +20 -17
- package/lib/util/responsive.js +12 -9
- package/lib/util/splitAtTopLevelOnly.js +43 -0
- package/lib/util/tap.js +4 -1
- package/lib/util/toColorValue.js +4 -1
- package/lib/util/toPath.js +18 -2
- package/lib/util/transformThemeValue.js +23 -11
- package/lib/util/validateConfig.js +24 -0
- package/lib/util/validateFormalSyntax.js +24 -0
- package/lib/util/withAlphaVariable.js +32 -24
- package/package.json +25 -22
- package/peers/index.js +6664 -3011
- package/plugin.d.ts +10 -5
- package/resolveConfig.d.ts +3 -0
- package/scripts/generate-types.js +53 -0
- package/scripts/release-channel.js +18 -0
- package/scripts/release-notes.js +21 -0
- package/scripts/type-utils.js +27 -0
- package/src/cli/build/deps.js +56 -0
- package/src/cli/build/index.js +45 -0
- package/src/cli/build/plugin.js +417 -0
- package/src/cli/build/utils.js +76 -0
- package/src/cli/build/watching.js +224 -0
- package/src/cli/help/index.js +70 -0
- package/src/cli/index.js +3 -0
- package/src/cli/init/index.js +50 -0
- package/src/cli/shared.js +5 -0
- package/src/cli-peer-dependencies.js +7 -1
- package/src/cli.js +22 -637
- package/src/corePlugins.js +336 -78
- package/src/css/preflight.css +3 -4
- package/src/featureFlags.js +12 -2
- package/src/index.js +5 -0
- package/src/lib/content.js +213 -0
- package/src/lib/defaultExtractor.js +196 -35
- package/src/lib/evaluateTailwindFunctions.js +78 -7
- package/src/lib/expandApplyAtRules.js +156 -36
- package/src/lib/expandTailwindAtRules.js +12 -50
- package/src/lib/findAtConfigPath.js +48 -0
- package/src/lib/generateRules.js +308 -109
- package/src/lib/offsets.js +270 -0
- package/src/lib/regex.js +74 -0
- package/src/lib/resolveDefaultsAtRules.js +53 -36
- package/src/lib/setupContextUtils.js +493 -115
- package/src/lib/setupTrackingContext.js +8 -45
- package/src/lib/sharedState.js +2 -0
- package/src/util/buildMediaQuery.js +5 -3
- package/src/util/cloneNodes.js +5 -1
- package/src/util/color.js +20 -18
- package/src/util/dataTypes.js +19 -23
- package/src/util/formatVariantSelector.js +184 -61
- package/src/util/getAllConfigs.js +19 -0
- package/src/util/log.js +1 -1
- package/src/util/nameClass.js +4 -0
- package/src/util/negateValue.js +10 -2
- package/src/util/normalizeConfig.js +22 -10
- package/src/util/normalizeScreens.js +99 -4
- package/src/util/parseBoxShadowValue.js +3 -50
- package/src/util/parseDependency.js +37 -42
- package/src/util/parseGlob.js +24 -0
- package/src/util/pluginUtils.js +125 -14
- package/src/util/removeAlphaVariables.js +24 -0
- package/src/util/resolveConfig.js +70 -60
- package/src/util/splitAtTopLevelOnly.js +45 -0
- package/src/util/toPath.js +1 -1
- package/src/util/transformThemeValue.js +13 -3
- package/src/util/validateConfig.js +13 -0
- package/src/util/validateFormalSyntax.js +34 -0
- package/src/util/withAlphaVariable.js +1 -1
- package/stubs/defaultConfig.stub.js +20 -2
- package/stubs/simpleConfig.stub.js +1 -0
- package/types/config.d.ts +74 -35
- package/types/generated/default-theme.d.ts +342 -0
- package/types/index.d.ts +7 -1
- package/types.d.ts +0 -1
package/lib/corePlugins.js
CHANGED
|
@@ -2,56 +2,96 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
variantPlugins: ()=>variantPlugins,
|
|
13
|
+
corePlugins: ()=>corePlugins
|
|
14
|
+
});
|
|
15
|
+
const _fs = /*#__PURE__*/ _interopRequireDefault(require("fs"));
|
|
16
|
+
const _path = /*#__PURE__*/ _interopRequireWildcard(require("path"));
|
|
17
|
+
const _postcss = /*#__PURE__*/ _interopRequireDefault(require("postcss"));
|
|
18
|
+
const _createUtilityPlugin = /*#__PURE__*/ _interopRequireDefault(require("./util/createUtilityPlugin"));
|
|
19
|
+
const _buildMediaQuery = /*#__PURE__*/ _interopRequireDefault(require("./util/buildMediaQuery"));
|
|
20
|
+
const _escapeClassName = /*#__PURE__*/ _interopRequireDefault(require("./util/escapeClassName"));
|
|
21
|
+
const _parseAnimationValue = /*#__PURE__*/ _interopRequireDefault(require("./util/parseAnimationValue"));
|
|
22
|
+
const _flattenColorPalette = /*#__PURE__*/ _interopRequireDefault(require("./util/flattenColorPalette"));
|
|
23
|
+
const _withAlphaVariable = /*#__PURE__*/ _interopRequireWildcard(require("./util/withAlphaVariable"));
|
|
24
|
+
const _toColorValue = /*#__PURE__*/ _interopRequireDefault(require("./util/toColorValue"));
|
|
25
|
+
const _isPlainObject = /*#__PURE__*/ _interopRequireDefault(require("./util/isPlainObject"));
|
|
26
|
+
const _transformThemeValue = /*#__PURE__*/ _interopRequireDefault(require("./util/transformThemeValue"));
|
|
27
|
+
const _packageJson = require("../package.json");
|
|
28
|
+
const _log = /*#__PURE__*/ _interopRequireDefault(require("./util/log"));
|
|
29
|
+
const _normalizeScreens = require("./util/normalizeScreens");
|
|
30
|
+
const _parseBoxShadowValue = require("./util/parseBoxShadowValue");
|
|
31
|
+
const _removeAlphaVariables = require("./util/removeAlphaVariables");
|
|
32
|
+
const _featureFlags = require("./featureFlags");
|
|
33
|
+
const _dataTypes = require("./util/dataTypes");
|
|
22
34
|
function _interopRequireDefault(obj) {
|
|
23
35
|
return obj && obj.__esModule ? obj : {
|
|
24
36
|
default: obj
|
|
25
37
|
};
|
|
26
38
|
}
|
|
27
|
-
function
|
|
28
|
-
if (
|
|
39
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
40
|
+
if (typeof WeakMap !== "function") return null;
|
|
41
|
+
var cacheBabelInterop = new WeakMap();
|
|
42
|
+
var cacheNodeInterop = new WeakMap();
|
|
43
|
+
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
44
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
45
|
+
})(nodeInterop);
|
|
46
|
+
}
|
|
47
|
+
function _interopRequireWildcard(obj, nodeInterop) {
|
|
48
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
29
49
|
return obj;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
50
|
+
}
|
|
51
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
52
|
+
return {
|
|
53
|
+
default: obj
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
57
|
+
if (cache && cache.has(obj)) {
|
|
58
|
+
return cache.get(obj);
|
|
59
|
+
}
|
|
60
|
+
var newObj = {};
|
|
61
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
62
|
+
for(var key in obj){
|
|
63
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
64
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
65
|
+
if (desc && (desc.get || desc.set)) {
|
|
66
|
+
Object.defineProperty(newObj, key, desc);
|
|
67
|
+
} else {
|
|
68
|
+
newObj[key] = obj[key];
|
|
42
69
|
}
|
|
43
70
|
}
|
|
44
|
-
newObj.default = obj;
|
|
45
|
-
return newObj;
|
|
46
71
|
}
|
|
72
|
+
newObj.default = obj;
|
|
73
|
+
if (cache) {
|
|
74
|
+
cache.set(obj, newObj);
|
|
75
|
+
}
|
|
76
|
+
return newObj;
|
|
47
77
|
}
|
|
48
78
|
let variantPlugins = {
|
|
49
79
|
pseudoElementVariants: ({ addVariant })=>{
|
|
50
80
|
addVariant("first-letter", "&::first-letter");
|
|
51
81
|
addVariant("first-line", "&::first-line");
|
|
52
82
|
addVariant("marker", [
|
|
53
|
-
|
|
54
|
-
|
|
83
|
+
({ container })=>{
|
|
84
|
+
(0, _removeAlphaVariables.removeAlphaVariables)(container, [
|
|
85
|
+
"--tw-text-opacity"
|
|
86
|
+
]);
|
|
87
|
+
return "& *::marker";
|
|
88
|
+
},
|
|
89
|
+
({ container })=>{
|
|
90
|
+
(0, _removeAlphaVariables.removeAlphaVariables)(container, [
|
|
91
|
+
"--tw-text-opacity"
|
|
92
|
+
]);
|
|
93
|
+
return "&::marker";
|
|
94
|
+
}
|
|
55
95
|
]);
|
|
56
96
|
addVariant("selection", [
|
|
57
97
|
"& *::selection",
|
|
@@ -91,28 +131,28 @@ let variantPlugins = {
|
|
|
91
131
|
return "&::after";
|
|
92
132
|
});
|
|
93
133
|
},
|
|
94
|
-
pseudoClassVariants: ({ addVariant })=>{
|
|
134
|
+
pseudoClassVariants: ({ addVariant , matchVariant , config })=>{
|
|
95
135
|
let pseudoVariants = [
|
|
96
136
|
// Positional
|
|
97
137
|
[
|
|
98
138
|
"first",
|
|
99
|
-
"
|
|
139
|
+
"&:first-child"
|
|
100
140
|
],
|
|
101
141
|
[
|
|
102
142
|
"last",
|
|
103
|
-
"
|
|
143
|
+
"&:last-child"
|
|
104
144
|
],
|
|
105
145
|
[
|
|
106
146
|
"only",
|
|
107
|
-
"
|
|
147
|
+
"&:only-child"
|
|
108
148
|
],
|
|
109
149
|
[
|
|
110
150
|
"odd",
|
|
111
|
-
"
|
|
151
|
+
"&:nth-child(odd)"
|
|
112
152
|
],
|
|
113
153
|
[
|
|
114
154
|
"even",
|
|
115
|
-
"
|
|
155
|
+
"&:nth-child(even)"
|
|
116
156
|
],
|
|
117
157
|
"first-of-type",
|
|
118
158
|
"last-of-type",
|
|
@@ -121,29 +161,18 @@ let variantPlugins = {
|
|
|
121
161
|
[
|
|
122
162
|
"visited",
|
|
123
163
|
({ container })=>{
|
|
124
|
-
|
|
164
|
+
(0, _removeAlphaVariables.removeAlphaVariables)(container, [
|
|
125
165
|
"--tw-text-opacity",
|
|
126
166
|
"--tw-border-opacity",
|
|
127
167
|
"--tw-bg-opacity"
|
|
128
|
-
];
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
decl.remove();
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
|
-
for (const varName of toRemove){
|
|
135
|
-
if (decl.value.includes(`/ var(${varName})`)) {
|
|
136
|
-
decl.value = decl.value.replace(`/ var(${varName})`, "");
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
return ":visited";
|
|
141
|
-
},
|
|
168
|
+
]);
|
|
169
|
+
return "&:visited";
|
|
170
|
+
}
|
|
142
171
|
],
|
|
143
172
|
"target",
|
|
144
173
|
[
|
|
145
174
|
"open",
|
|
146
|
-
"[open]"
|
|
175
|
+
"&[open]"
|
|
147
176
|
],
|
|
148
177
|
// Forms
|
|
149
178
|
"default",
|
|
@@ -151,6 +180,7 @@ let variantPlugins = {
|
|
|
151
180
|
"indeterminate",
|
|
152
181
|
"placeholder-shown",
|
|
153
182
|
"autofill",
|
|
183
|
+
"optional",
|
|
154
184
|
"required",
|
|
155
185
|
"valid",
|
|
156
186
|
"invalid",
|
|
@@ -161,33 +191,49 @@ let variantPlugins = {
|
|
|
161
191
|
"empty",
|
|
162
192
|
// Interactive
|
|
163
193
|
"focus-within",
|
|
164
|
-
|
|
194
|
+
[
|
|
195
|
+
"hover",
|
|
196
|
+
!(0, _featureFlags.flagEnabled)(config(), "hoverOnlyWhenSupported") ? "&:hover" : "@media (hover: hover) and (pointer: fine) { &:hover }"
|
|
197
|
+
],
|
|
165
198
|
"focus",
|
|
166
199
|
"focus-visible",
|
|
167
200
|
"active",
|
|
168
201
|
"enabled",
|
|
169
|
-
"disabled"
|
|
202
|
+
"disabled"
|
|
170
203
|
].map((variant)=>Array.isArray(variant) ? variant : [
|
|
171
204
|
variant,
|
|
172
|
-
|
|
173
|
-
]
|
|
174
|
-
);
|
|
205
|
+
`&:${variant}`
|
|
206
|
+
]);
|
|
175
207
|
for (let [variantName, state] of pseudoVariants){
|
|
176
208
|
addVariant(variantName, (ctx)=>{
|
|
177
209
|
let result = typeof state === "function" ? state(ctx) : state;
|
|
178
|
-
return
|
|
210
|
+
return result;
|
|
179
211
|
});
|
|
180
212
|
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
213
|
+
let variants = {
|
|
214
|
+
group: (_, { modifier })=>modifier ? [
|
|
215
|
+
`:merge(.group\\/${modifier})`,
|
|
216
|
+
" &"
|
|
217
|
+
] : [
|
|
218
|
+
`:merge(.group)`,
|
|
219
|
+
" &"
|
|
220
|
+
],
|
|
221
|
+
peer: (_, { modifier })=>modifier ? [
|
|
222
|
+
`:merge(.peer\\/${modifier})`,
|
|
223
|
+
" ~ &"
|
|
224
|
+
] : [
|
|
225
|
+
`:merge(.peer)`,
|
|
226
|
+
" ~ &"
|
|
227
|
+
]
|
|
228
|
+
};
|
|
229
|
+
for (let [name, fn] of Object.entries(variants)){
|
|
230
|
+
matchVariant(name, (value = "", extra)=>{
|
|
231
|
+
let result = (0, _dataTypes.normalize)(typeof value === "function" ? value(extra) : value);
|
|
232
|
+
if (!result.includes("&")) result = "&" + result;
|
|
233
|
+
let [a, b] = fn("", extra);
|
|
234
|
+
return result.replace(/&(\S+)?/g, (_, pseudo = "")=>a + pseudo + b);
|
|
235
|
+
}, {
|
|
236
|
+
values: Object.fromEntries(pseudoVariants)
|
|
191
237
|
});
|
|
192
238
|
}
|
|
193
239
|
},
|
|
@@ -195,14 +241,14 @@ let variantPlugins = {
|
|
|
195
241
|
addVariant("ltr", ()=>{
|
|
196
242
|
_log.default.warn("rtl-experimental", [
|
|
197
243
|
"The RTL features in Tailwind CSS are currently in preview.",
|
|
198
|
-
"Preview features are not covered by semver, and may be improved in breaking ways at any time."
|
|
244
|
+
"Preview features are not covered by semver, and may be improved in breaking ways at any time."
|
|
199
245
|
]);
|
|
200
246
|
return '[dir="ltr"] &';
|
|
201
247
|
});
|
|
202
248
|
addVariant("rtl", ()=>{
|
|
203
249
|
_log.default.warn("rtl-experimental", [
|
|
204
250
|
"The RTL features in Tailwind CSS are currently in preview.",
|
|
205
|
-
"Preview features are not covered by semver, and may be improved in breaking ways at any time."
|
|
251
|
+
"Preview features are not covered by semver, and may be improved in breaking ways at any time."
|
|
206
252
|
]);
|
|
207
253
|
return '[dir="rtl"] &';
|
|
208
254
|
});
|
|
@@ -218,7 +264,7 @@ let variantPlugins = {
|
|
|
218
264
|
_log.default.warn("darkmode-false", [
|
|
219
265
|
"The `darkMode` option in your Tailwind CSS configuration is set to `false`, which now behaves the same as `media`.",
|
|
220
266
|
"Change `darkMode` to `media` or remove it entirely.",
|
|
221
|
-
"https://tailwindcss.com/docs/upgrade-guide#remove-dark-mode-configuration"
|
|
267
|
+
"https://tailwindcss.com/docs/upgrade-guide#remove-dark-mode-configuration"
|
|
222
268
|
]);
|
|
223
269
|
}
|
|
224
270
|
if (mode === "class") {
|
|
@@ -230,25 +276,179 @@ let variantPlugins = {
|
|
|
230
276
|
printVariant: ({ addVariant })=>{
|
|
231
277
|
addVariant("print", "@media print");
|
|
232
278
|
},
|
|
233
|
-
screenVariants: ({ theme , addVariant })=>{
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
279
|
+
screenVariants: ({ theme , addVariant , matchVariant })=>{
|
|
280
|
+
var ref;
|
|
281
|
+
let rawScreens = (ref = theme("screens")) !== null && ref !== void 0 ? ref : {};
|
|
282
|
+
let areSimpleScreens = Object.values(rawScreens).every((v)=>typeof v === "string");
|
|
283
|
+
let screens = (0, _normalizeScreens.normalizeScreens)(theme("screens"));
|
|
284
|
+
/** @type {Set<string>} */ let unitCache = new Set([]);
|
|
285
|
+
/** @param {string} value */ function units(value) {
|
|
286
|
+
var ref;
|
|
287
|
+
var ref1;
|
|
288
|
+
return (ref1 = (ref = value.match(/(\D+)$/)) === null || ref === void 0 ? void 0 : ref[1]) !== null && ref1 !== void 0 ? ref1 : "(none)";
|
|
289
|
+
}
|
|
290
|
+
/** @param {string} value */ function recordUnits(value) {
|
|
291
|
+
if (value !== undefined) {
|
|
292
|
+
unitCache.add(units(value));
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
/** @param {string} value */ function canUseUnits(value) {
|
|
296
|
+
recordUnits(value);
|
|
297
|
+
// If the cache was empty it'll become 1 because we've just added the current unit
|
|
298
|
+
// If the cache was not empty and the units are the same the size doesn't change
|
|
299
|
+
// Otherwise, if the units are different from what is already known the size will always be > 1
|
|
300
|
+
return unitCache.size === 1;
|
|
301
|
+
}
|
|
302
|
+
for (const screen of screens){
|
|
303
|
+
for (const value of screen.values){
|
|
304
|
+
recordUnits(value.min);
|
|
305
|
+
recordUnits(value.max);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
let screensUseConsistentUnits = unitCache.size <= 1;
|
|
309
|
+
/**
|
|
310
|
+
* @typedef {import('./util/normalizeScreens').Screen} Screen
|
|
311
|
+
*/ /**
|
|
312
|
+
* @param {'min' | 'max'} type
|
|
313
|
+
* @returns {Record<string, Screen>}
|
|
314
|
+
*/ function buildScreenValues(type) {
|
|
315
|
+
return Object.fromEntries(screens.filter((screen)=>(0, _normalizeScreens.isScreenSortable)(screen).result).map((screen)=>{
|
|
316
|
+
let { min , max } = screen.values[0];
|
|
317
|
+
if (type === "min" && min !== undefined) {
|
|
318
|
+
return screen;
|
|
319
|
+
} else if (type === "min" && max !== undefined) {
|
|
320
|
+
return {
|
|
321
|
+
...screen,
|
|
322
|
+
not: !screen.not
|
|
323
|
+
};
|
|
324
|
+
} else if (type === "max" && max !== undefined) {
|
|
325
|
+
return screen;
|
|
326
|
+
} else if (type === "max" && min !== undefined) {
|
|
327
|
+
return {
|
|
328
|
+
...screen,
|
|
329
|
+
not: !screen.not
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
}).map((screen)=>[
|
|
333
|
+
screen.name,
|
|
334
|
+
screen
|
|
335
|
+
]));
|
|
237
336
|
}
|
|
337
|
+
/**
|
|
338
|
+
* @param {'min' | 'max'} type
|
|
339
|
+
* @returns {(a: { value: string | Screen }, z: { value: string | Screen }) => number}
|
|
340
|
+
*/ function buildSort(type) {
|
|
341
|
+
return (a, z)=>(0, _normalizeScreens.compareScreens)(type, a.value, z.value);
|
|
342
|
+
}
|
|
343
|
+
let maxSort = buildSort("max");
|
|
344
|
+
let minSort = buildSort("min");
|
|
345
|
+
/** @param {'min'|'max'} type */ function buildScreenVariant(type) {
|
|
346
|
+
return (value)=>{
|
|
347
|
+
if (!areSimpleScreens) {
|
|
348
|
+
_log.default.warn("complex-screen-config", [
|
|
349
|
+
"The `min-*` and `max-*` variants are not supported with a `screens` configuration containing objects."
|
|
350
|
+
]);
|
|
351
|
+
return [];
|
|
352
|
+
} else if (!screensUseConsistentUnits) {
|
|
353
|
+
_log.default.warn("mixed-screen-units", [
|
|
354
|
+
"The `min-*` and `max-*` variants are not supported with a `screens` configuration containing mixed units."
|
|
355
|
+
]);
|
|
356
|
+
return [];
|
|
357
|
+
} else if (typeof value === "string" && !canUseUnits(value)) {
|
|
358
|
+
_log.default.warn("minmax-have-mixed-units", [
|
|
359
|
+
"The `min-*` and `max-*` variants are not supported with a `screens` configuration containing mixed units."
|
|
360
|
+
]);
|
|
361
|
+
return [];
|
|
362
|
+
}
|
|
363
|
+
return [
|
|
364
|
+
`@media ${(0, _buildMediaQuery.default)((0, _normalizeScreens.toScreen)(value, type))}`
|
|
365
|
+
];
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
matchVariant("max", buildScreenVariant("max"), {
|
|
369
|
+
sort: maxSort,
|
|
370
|
+
values: areSimpleScreens ? buildScreenValues("max") : {}
|
|
371
|
+
});
|
|
372
|
+
// screens and min-* are sorted together when they can be
|
|
373
|
+
let id = "min-screens";
|
|
374
|
+
for (let screen1 of screens){
|
|
375
|
+
addVariant(screen1.name, `@media ${(0, _buildMediaQuery.default)(screen1)}`, {
|
|
376
|
+
id,
|
|
377
|
+
sort: areSimpleScreens && screensUseConsistentUnits ? minSort : undefined,
|
|
378
|
+
value: screen1
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
matchVariant("min", buildScreenVariant("min"), {
|
|
382
|
+
id,
|
|
383
|
+
sort: minSort
|
|
384
|
+
});
|
|
385
|
+
},
|
|
386
|
+
supportsVariants: ({ matchVariant , theme })=>{
|
|
387
|
+
var ref;
|
|
388
|
+
matchVariant("supports", (value = "")=>{
|
|
389
|
+
let check = (0, _dataTypes.normalize)(value);
|
|
390
|
+
let isRaw = /^\w*\s*\(/.test(check);
|
|
391
|
+
// Chrome has a bug where `(condtion1)or(condition2)` is not valid
|
|
392
|
+
// But `(condition1) or (condition2)` is supported.
|
|
393
|
+
check = isRaw ? check.replace(/\b(and|or|not)\b/g, " $1 ") : check;
|
|
394
|
+
if (isRaw) {
|
|
395
|
+
return `@supports ${check}`;
|
|
396
|
+
}
|
|
397
|
+
if (!check.includes(":")) {
|
|
398
|
+
check = `${check}: var(--tw)`;
|
|
399
|
+
}
|
|
400
|
+
if (!(check.startsWith("(") && check.endsWith(")"))) {
|
|
401
|
+
check = `(${check})`;
|
|
402
|
+
}
|
|
403
|
+
return `@supports ${check}`;
|
|
404
|
+
}, {
|
|
405
|
+
values: (ref = theme("supports")) !== null && ref !== void 0 ? ref : {}
|
|
406
|
+
});
|
|
407
|
+
},
|
|
408
|
+
ariaVariants: ({ matchVariant , theme })=>{
|
|
409
|
+
var ref;
|
|
410
|
+
matchVariant("aria", (value)=>`&[aria-${(0, _dataTypes.normalize)(value)}]`, {
|
|
411
|
+
values: (ref = theme("aria")) !== null && ref !== void 0 ? ref : {}
|
|
412
|
+
});
|
|
413
|
+
var ref1;
|
|
414
|
+
matchVariant("group-aria", (value, { modifier })=>modifier ? `:merge(.group\\/${modifier})[aria-${(0, _dataTypes.normalize)(value)}] &` : `:merge(.group)[aria-${(0, _dataTypes.normalize)(value)}] &`, {
|
|
415
|
+
values: (ref1 = theme("aria")) !== null && ref1 !== void 0 ? ref1 : {}
|
|
416
|
+
});
|
|
417
|
+
var ref2;
|
|
418
|
+
matchVariant("peer-aria", (value, { modifier })=>modifier ? `:merge(.peer\\/${modifier})[aria-${(0, _dataTypes.normalize)(value)}] ~ &` : `:merge(.peer)[aria-${(0, _dataTypes.normalize)(value)}] ~ &`, {
|
|
419
|
+
values: (ref2 = theme("aria")) !== null && ref2 !== void 0 ? ref2 : {}
|
|
420
|
+
});
|
|
421
|
+
},
|
|
422
|
+
dataVariants: ({ matchVariant , theme })=>{
|
|
423
|
+
var ref;
|
|
424
|
+
matchVariant("data", (value)=>`&[data-${(0, _dataTypes.normalize)(value)}]`, {
|
|
425
|
+
values: (ref = theme("data")) !== null && ref !== void 0 ? ref : {}
|
|
426
|
+
});
|
|
427
|
+
var ref1;
|
|
428
|
+
matchVariant("group-data", (value, { modifier })=>modifier ? `:merge(.group\\/${modifier})[data-${(0, _dataTypes.normalize)(value)}] &` : `:merge(.group)[data-${(0, _dataTypes.normalize)(value)}] &`, {
|
|
429
|
+
values: (ref1 = theme("data")) !== null && ref1 !== void 0 ? ref1 : {}
|
|
430
|
+
});
|
|
431
|
+
var ref2;
|
|
432
|
+
matchVariant("peer-data", (value, { modifier })=>modifier ? `:merge(.peer\\/${modifier})[data-${(0, _dataTypes.normalize)(value)}] ~ &` : `:merge(.peer)[data-${(0, _dataTypes.normalize)(value)}] ~ &`, {
|
|
433
|
+
values: (ref2 = theme("data")) !== null && ref2 !== void 0 ? ref2 : {}
|
|
434
|
+
});
|
|
238
435
|
},
|
|
239
436
|
orientationVariants: ({ addVariant })=>{
|
|
240
437
|
addVariant("portrait", "@media (orientation: portrait)");
|
|
241
438
|
addVariant("landscape", "@media (orientation: landscape)");
|
|
439
|
+
},
|
|
440
|
+
prefersContrastVariants: ({ addVariant })=>{
|
|
441
|
+
addVariant("contrast-more", "@media (prefers-contrast: more)");
|
|
442
|
+
addVariant("contrast-less", "@media (prefers-contrast: less)");
|
|
242
443
|
}
|
|
243
444
|
};
|
|
244
|
-
exports.variantPlugins = variantPlugins;
|
|
245
445
|
let cssTransformValue = [
|
|
246
446
|
"translate(var(--tw-translate-x), var(--tw-translate-y))",
|
|
247
447
|
"rotate(var(--tw-rotate))",
|
|
248
448
|
"skewX(var(--tw-skew-x))",
|
|
249
449
|
"skewY(var(--tw-skew-y))",
|
|
250
450
|
"scaleX(var(--tw-scale-x))",
|
|
251
|
-
"scaleY(var(--tw-scale-y))"
|
|
451
|
+
"scaleY(var(--tw-scale-y))"
|
|
252
452
|
].join(" ");
|
|
253
453
|
let cssFilterValue = [
|
|
254
454
|
"var(--tw-blur)",
|
|
@@ -259,7 +459,7 @@ let cssFilterValue = [
|
|
|
259
459
|
"var(--tw-invert)",
|
|
260
460
|
"var(--tw-saturate)",
|
|
261
461
|
"var(--tw-sepia)",
|
|
262
|
-
"var(--tw-drop-shadow)"
|
|
462
|
+
"var(--tw-drop-shadow)"
|
|
263
463
|
].join(" ");
|
|
264
464
|
let cssBackdropFilterValue = [
|
|
265
465
|
"var(--tw-backdrop-blur)",
|
|
@@ -270,24 +470,21 @@ let cssBackdropFilterValue = [
|
|
|
270
470
|
"var(--tw-backdrop-invert)",
|
|
271
471
|
"var(--tw-backdrop-opacity)",
|
|
272
472
|
"var(--tw-backdrop-saturate)",
|
|
273
|
-
"var(--tw-backdrop-sepia)"
|
|
473
|
+
"var(--tw-backdrop-sepia)"
|
|
274
474
|
].join(" ");
|
|
275
475
|
let corePlugins = {
|
|
276
476
|
preflight: ({ addBase })=>{
|
|
277
|
-
let preflightStyles = _postcss.default.parse(_fs.default.readFileSync(
|
|
477
|
+
let preflightStyles = _postcss.default.parse(_fs.default.readFileSync(_path.join(__dirname, "./css/preflight.css"), "utf8"));
|
|
278
478
|
addBase([
|
|
279
479
|
_postcss.default.comment({
|
|
280
480
|
text: `! tailwindcss v${_packageJson.version} | MIT License | https://tailwindcss.com`
|
|
281
481
|
}),
|
|
282
|
-
...preflightStyles.nodes
|
|
482
|
+
...preflightStyles.nodes
|
|
283
483
|
]);
|
|
284
484
|
},
|
|
285
485
|
container: (()=>{
|
|
286
486
|
function extractMinWidths(breakpoints = []) {
|
|
287
|
-
return breakpoints.flatMap((
|
|
288
|
-
)
|
|
289
|
-
).filter((v)=>v !== undefined
|
|
290
|
-
);
|
|
487
|
+
return breakpoints.flatMap((breakpoint)=>breakpoint.values.map((breakpoint)=>breakpoint.min)).filter((v)=>v !== undefined);
|
|
291
488
|
}
|
|
292
489
|
function mapMinWidthsToPadding(minWidths, screens, paddings) {
|
|
293
490
|
if (typeof paddings === "undefined") {
|
|
@@ -299,7 +496,7 @@ let corePlugins = {
|
|
|
299
496
|
screen: "DEFAULT",
|
|
300
497
|
minWidth: 0,
|
|
301
498
|
padding: paddings
|
|
302
|
-
}
|
|
499
|
+
}
|
|
303
500
|
];
|
|
304
501
|
}
|
|
305
502
|
let mapping = [];
|
|
@@ -325,12 +522,11 @@ let corePlugins = {
|
|
|
325
522
|
return mapping;
|
|
326
523
|
}
|
|
327
524
|
return function({ addComponents , theme }) {
|
|
328
|
-
let screens = (0, _normalizeScreens
|
|
525
|
+
let screens = (0, _normalizeScreens.normalizeScreens)(theme("container.screens", theme("screens")));
|
|
329
526
|
let minWidths = extractMinWidths(screens);
|
|
330
527
|
let paddings = mapMinWidthsToPadding(minWidths, screens, theme("container.padding"));
|
|
331
528
|
let generatePaddingFor = (minWidth)=>{
|
|
332
|
-
let paddingConfig = paddings.find((padding)=>padding.minWidth === minWidth
|
|
333
|
-
);
|
|
529
|
+
let paddingConfig = paddings.find((padding)=>padding.minWidth === minWidth);
|
|
334
530
|
if (!paddingConfig) {
|
|
335
531
|
return {};
|
|
336
532
|
}
|
|
@@ -339,16 +535,14 @@ let corePlugins = {
|
|
|
339
535
|
paddingLeft: paddingConfig.padding
|
|
340
536
|
};
|
|
341
537
|
};
|
|
342
|
-
let atRules = Array.from(new Set(minWidths.slice().sort((a, z)=>parseInt(a) - parseInt(z)
|
|
343
|
-
))).map((minWidth)=>({
|
|
538
|
+
let atRules = Array.from(new Set(minWidths.slice().sort((a, z)=>parseInt(a) - parseInt(z)))).map((minWidth)=>({
|
|
344
539
|
[`@media (min-width: ${minWidth})`]: {
|
|
345
540
|
".container": {
|
|
346
541
|
"max-width": minWidth,
|
|
347
542
|
...generatePaddingFor(minWidth)
|
|
348
543
|
}
|
|
349
544
|
}
|
|
350
|
-
})
|
|
351
|
-
);
|
|
545
|
+
}));
|
|
352
546
|
addComponents([
|
|
353
547
|
{
|
|
354
548
|
".container": Object.assign({
|
|
@@ -358,7 +552,7 @@ let corePlugins = {
|
|
|
358
552
|
marginLeft: "auto"
|
|
359
553
|
} : {}, generatePaddingFor(0))
|
|
360
554
|
},
|
|
361
|
-
...atRules
|
|
555
|
+
...atRules
|
|
362
556
|
]);
|
|
363
557
|
};
|
|
364
558
|
})(),
|
|
@@ -404,6 +598,9 @@ let corePlugins = {
|
|
|
404
598
|
},
|
|
405
599
|
".invisible": {
|
|
406
600
|
visibility: "hidden"
|
|
601
|
+
},
|
|
602
|
+
".collapse": {
|
|
603
|
+
visibility: "collapse"
|
|
407
604
|
}
|
|
408
605
|
});
|
|
409
606
|
},
|
|
@@ -426,7 +623,7 @@ let corePlugins = {
|
|
|
426
623
|
}
|
|
427
624
|
});
|
|
428
625
|
},
|
|
429
|
-
inset: (0, _createUtilityPlugin
|
|
626
|
+
inset: (0, _createUtilityPlugin.default)("inset", [
|
|
430
627
|
[
|
|
431
628
|
"inset",
|
|
432
629
|
[
|
|
@@ -450,7 +647,7 @@ let corePlugins = {
|
|
|
450
647
|
"top",
|
|
451
648
|
"bottom"
|
|
452
649
|
]
|
|
453
|
-
]
|
|
650
|
+
]
|
|
454
651
|
],
|
|
455
652
|
[
|
|
456
653
|
[
|
|
@@ -476,8 +673,8 @@ let corePlugins = {
|
|
|
476
673
|
[
|
|
477
674
|
"left"
|
|
478
675
|
]
|
|
479
|
-
]
|
|
480
|
-
]
|
|
676
|
+
]
|
|
677
|
+
]
|
|
481
678
|
], {
|
|
482
679
|
supportsNegativeValues: true
|
|
483
680
|
}),
|
|
@@ -491,7 +688,7 @@ let corePlugins = {
|
|
|
491
688
|
}
|
|
492
689
|
});
|
|
493
690
|
},
|
|
494
|
-
zIndex: (0, _createUtilityPlugin
|
|
691
|
+
zIndex: (0, _createUtilityPlugin.default)("zIndex", [
|
|
495
692
|
[
|
|
496
693
|
"z",
|
|
497
694
|
[
|
|
@@ -501,10 +698,10 @@ let corePlugins = {
|
|
|
501
698
|
], {
|
|
502
699
|
supportsNegativeValues: true
|
|
503
700
|
}),
|
|
504
|
-
order: (0, _createUtilityPlugin
|
|
701
|
+
order: (0, _createUtilityPlugin.default)("order", undefined, {
|
|
505
702
|
supportsNegativeValues: true
|
|
506
703
|
}),
|
|
507
|
-
gridColumn: (0, _createUtilityPlugin
|
|
704
|
+
gridColumn: (0, _createUtilityPlugin.default)("gridColumn", [
|
|
508
705
|
[
|
|
509
706
|
"col",
|
|
510
707
|
[
|
|
@@ -512,7 +709,7 @@ let corePlugins = {
|
|
|
512
709
|
]
|
|
513
710
|
]
|
|
514
711
|
]),
|
|
515
|
-
gridColumnStart: (0, _createUtilityPlugin
|
|
712
|
+
gridColumnStart: (0, _createUtilityPlugin.default)("gridColumnStart", [
|
|
516
713
|
[
|
|
517
714
|
"col-start",
|
|
518
715
|
[
|
|
@@ -520,7 +717,7 @@ let corePlugins = {
|
|
|
520
717
|
]
|
|
521
718
|
]
|
|
522
719
|
]),
|
|
523
|
-
gridColumnEnd: (0, _createUtilityPlugin
|
|
720
|
+
gridColumnEnd: (0, _createUtilityPlugin.default)("gridColumnEnd", [
|
|
524
721
|
[
|
|
525
722
|
"col-end",
|
|
526
723
|
[
|
|
@@ -528,7 +725,7 @@ let corePlugins = {
|
|
|
528
725
|
]
|
|
529
726
|
]
|
|
530
727
|
]),
|
|
531
|
-
gridRow: (0, _createUtilityPlugin
|
|
728
|
+
gridRow: (0, _createUtilityPlugin.default)("gridRow", [
|
|
532
729
|
[
|
|
533
730
|
"row",
|
|
534
731
|
[
|
|
@@ -536,7 +733,7 @@ let corePlugins = {
|
|
|
536
733
|
]
|
|
537
734
|
]
|
|
538
735
|
]),
|
|
539
|
-
gridRowStart: (0, _createUtilityPlugin
|
|
736
|
+
gridRowStart: (0, _createUtilityPlugin.default)("gridRowStart", [
|
|
540
737
|
[
|
|
541
738
|
"row-start",
|
|
542
739
|
[
|
|
@@ -544,7 +741,7 @@ let corePlugins = {
|
|
|
544
741
|
]
|
|
545
742
|
]
|
|
546
743
|
]),
|
|
547
|
-
gridRowEnd: (0, _createUtilityPlugin
|
|
744
|
+
gridRowEnd: (0, _createUtilityPlugin.default)("gridRowEnd", [
|
|
548
745
|
[
|
|
549
746
|
"row-end",
|
|
550
747
|
[
|
|
@@ -581,7 +778,7 @@ let corePlugins = {
|
|
|
581
778
|
}
|
|
582
779
|
});
|
|
583
780
|
},
|
|
584
|
-
margin: (0, _createUtilityPlugin
|
|
781
|
+
margin: (0, _createUtilityPlugin.default)("margin", [
|
|
585
782
|
[
|
|
586
783
|
"m",
|
|
587
784
|
[
|
|
@@ -602,7 +799,7 @@ let corePlugins = {
|
|
|
602
799
|
"margin-top",
|
|
603
800
|
"margin-bottom"
|
|
604
801
|
]
|
|
605
|
-
]
|
|
802
|
+
]
|
|
606
803
|
],
|
|
607
804
|
[
|
|
608
805
|
[
|
|
@@ -628,8 +825,8 @@ let corePlugins = {
|
|
|
628
825
|
[
|
|
629
826
|
"margin-left"
|
|
630
827
|
]
|
|
631
|
-
]
|
|
632
|
-
]
|
|
828
|
+
]
|
|
829
|
+
]
|
|
633
830
|
], {
|
|
634
831
|
supportsNegativeValues: true
|
|
635
832
|
}),
|
|
@@ -710,7 +907,7 @@ let corePlugins = {
|
|
|
710
907
|
}
|
|
711
908
|
});
|
|
712
909
|
},
|
|
713
|
-
aspectRatio: (0, _createUtilityPlugin
|
|
910
|
+
aspectRatio: (0, _createUtilityPlugin.default)("aspectRatio", [
|
|
714
911
|
[
|
|
715
912
|
"aspect",
|
|
716
913
|
[
|
|
@@ -718,7 +915,7 @@ let corePlugins = {
|
|
|
718
915
|
]
|
|
719
916
|
]
|
|
720
917
|
]),
|
|
721
|
-
height: (0, _createUtilityPlugin
|
|
918
|
+
height: (0, _createUtilityPlugin.default)("height", [
|
|
722
919
|
[
|
|
723
920
|
"h",
|
|
724
921
|
[
|
|
@@ -726,7 +923,7 @@ let corePlugins = {
|
|
|
726
923
|
]
|
|
727
924
|
]
|
|
728
925
|
]),
|
|
729
|
-
maxHeight: (0, _createUtilityPlugin
|
|
926
|
+
maxHeight: (0, _createUtilityPlugin.default)("maxHeight", [
|
|
730
927
|
[
|
|
731
928
|
"max-h",
|
|
732
929
|
[
|
|
@@ -734,7 +931,7 @@ let corePlugins = {
|
|
|
734
931
|
]
|
|
735
932
|
]
|
|
736
933
|
]),
|
|
737
|
-
minHeight: (0, _createUtilityPlugin
|
|
934
|
+
minHeight: (0, _createUtilityPlugin.default)("minHeight", [
|
|
738
935
|
[
|
|
739
936
|
"min-h",
|
|
740
937
|
[
|
|
@@ -742,7 +939,7 @@ let corePlugins = {
|
|
|
742
939
|
]
|
|
743
940
|
]
|
|
744
941
|
]),
|
|
745
|
-
width: (0, _createUtilityPlugin
|
|
942
|
+
width: (0, _createUtilityPlugin.default)("width", [
|
|
746
943
|
[
|
|
747
944
|
"w",
|
|
748
945
|
[
|
|
@@ -750,7 +947,7 @@ let corePlugins = {
|
|
|
750
947
|
]
|
|
751
948
|
]
|
|
752
949
|
]),
|
|
753
|
-
minWidth: (0, _createUtilityPlugin
|
|
950
|
+
minWidth: (0, _createUtilityPlugin.default)("minWidth", [
|
|
754
951
|
[
|
|
755
952
|
"min-w",
|
|
756
953
|
[
|
|
@@ -758,7 +955,7 @@ let corePlugins = {
|
|
|
758
955
|
]
|
|
759
956
|
]
|
|
760
957
|
]),
|
|
761
|
-
maxWidth: (0, _createUtilityPlugin
|
|
958
|
+
maxWidth: (0, _createUtilityPlugin.default)("maxWidth", [
|
|
762
959
|
[
|
|
763
960
|
"max-w",
|
|
764
961
|
[
|
|
@@ -766,8 +963,8 @@ let corePlugins = {
|
|
|
766
963
|
]
|
|
767
964
|
]
|
|
768
965
|
]),
|
|
769
|
-
flex: (0, _createUtilityPlugin
|
|
770
|
-
flexShrink: (0, _createUtilityPlugin
|
|
966
|
+
flex: (0, _createUtilityPlugin.default)("flex"),
|
|
967
|
+
flexShrink: (0, _createUtilityPlugin.default)("flexShrink", [
|
|
771
968
|
[
|
|
772
969
|
"flex-shrink",
|
|
773
970
|
[
|
|
@@ -779,9 +976,9 @@ let corePlugins = {
|
|
|
779
976
|
[
|
|
780
977
|
"flex-shrink"
|
|
781
978
|
]
|
|
782
|
-
]
|
|
979
|
+
]
|
|
783
980
|
]),
|
|
784
|
-
flexGrow: (0, _createUtilityPlugin
|
|
981
|
+
flexGrow: (0, _createUtilityPlugin.default)("flexGrow", [
|
|
785
982
|
[
|
|
786
983
|
"flex-grow",
|
|
787
984
|
[
|
|
@@ -793,9 +990,9 @@ let corePlugins = {
|
|
|
793
990
|
[
|
|
794
991
|
"flex-grow"
|
|
795
992
|
]
|
|
796
|
-
]
|
|
993
|
+
]
|
|
797
994
|
]),
|
|
798
|
-
flexBasis: (0, _createUtilityPlugin
|
|
995
|
+
flexBasis: (0, _createUtilityPlugin.default)("flexBasis", [
|
|
799
996
|
[
|
|
800
997
|
"basis",
|
|
801
998
|
[
|
|
@@ -855,7 +1052,7 @@ let corePlugins = {
|
|
|
855
1052
|
values: theme("borderSpacing")
|
|
856
1053
|
});
|
|
857
1054
|
},
|
|
858
|
-
transformOrigin: (0, _createUtilityPlugin
|
|
1055
|
+
transformOrigin: (0, _createUtilityPlugin.default)("transformOrigin", [
|
|
859
1056
|
[
|
|
860
1057
|
"origin",
|
|
861
1058
|
[
|
|
@@ -863,7 +1060,7 @@ let corePlugins = {
|
|
|
863
1060
|
]
|
|
864
1061
|
]
|
|
865
1062
|
]),
|
|
866
|
-
translate: (0, _createUtilityPlugin
|
|
1063
|
+
translate: (0, _createUtilityPlugin.default)("translate", [
|
|
867
1064
|
[
|
|
868
1065
|
[
|
|
869
1066
|
"translate-x",
|
|
@@ -877,7 +1074,7 @@ let corePlugins = {
|
|
|
877
1074
|
"transform",
|
|
878
1075
|
cssTransformValue
|
|
879
1076
|
]
|
|
880
|
-
]
|
|
1077
|
+
]
|
|
881
1078
|
],
|
|
882
1079
|
[
|
|
883
1080
|
"translate-y",
|
|
@@ -891,13 +1088,13 @@ let corePlugins = {
|
|
|
891
1088
|
"transform",
|
|
892
1089
|
cssTransformValue
|
|
893
1090
|
]
|
|
894
|
-
]
|
|
895
|
-
]
|
|
896
|
-
]
|
|
1091
|
+
]
|
|
1092
|
+
]
|
|
1093
|
+
]
|
|
897
1094
|
], {
|
|
898
1095
|
supportsNegativeValues: true
|
|
899
1096
|
}),
|
|
900
|
-
rotate: (0, _createUtilityPlugin
|
|
1097
|
+
rotate: (0, _createUtilityPlugin.default)("rotate", [
|
|
901
1098
|
[
|
|
902
1099
|
"rotate",
|
|
903
1100
|
[
|
|
@@ -915,7 +1112,7 @@ let corePlugins = {
|
|
|
915
1112
|
], {
|
|
916
1113
|
supportsNegativeValues: true
|
|
917
1114
|
}),
|
|
918
|
-
skew: (0, _createUtilityPlugin
|
|
1115
|
+
skew: (0, _createUtilityPlugin.default)("skew", [
|
|
919
1116
|
[
|
|
920
1117
|
[
|
|
921
1118
|
"skew-x",
|
|
@@ -944,12 +1141,12 @@ let corePlugins = {
|
|
|
944
1141
|
cssTransformValue
|
|
945
1142
|
]
|
|
946
1143
|
]
|
|
947
|
-
]
|
|
948
|
-
]
|
|
1144
|
+
]
|
|
1145
|
+
]
|
|
949
1146
|
], {
|
|
950
1147
|
supportsNegativeValues: true
|
|
951
1148
|
}),
|
|
952
|
-
scale: (0, _createUtilityPlugin
|
|
1149
|
+
scale: (0, _createUtilityPlugin.default)("scale", [
|
|
953
1150
|
[
|
|
954
1151
|
"scale",
|
|
955
1152
|
[
|
|
@@ -962,8 +1159,8 @@ let corePlugins = {
|
|
|
962
1159
|
[
|
|
963
1160
|
"transform",
|
|
964
1161
|
cssTransformValue
|
|
965
|
-
]
|
|
966
|
-
]
|
|
1162
|
+
]
|
|
1163
|
+
]
|
|
967
1164
|
],
|
|
968
1165
|
[
|
|
969
1166
|
[
|
|
@@ -978,7 +1175,7 @@ let corePlugins = {
|
|
|
978
1175
|
"transform",
|
|
979
1176
|
cssTransformValue
|
|
980
1177
|
]
|
|
981
|
-
]
|
|
1178
|
+
]
|
|
982
1179
|
],
|
|
983
1180
|
[
|
|
984
1181
|
"scale-y",
|
|
@@ -992,9 +1189,9 @@ let corePlugins = {
|
|
|
992
1189
|
"transform",
|
|
993
1190
|
cssTransformValue
|
|
994
1191
|
]
|
|
995
|
-
]
|
|
996
|
-
]
|
|
997
|
-
]
|
|
1192
|
+
]
|
|
1193
|
+
]
|
|
1194
|
+
]
|
|
998
1195
|
], {
|
|
999
1196
|
supportsNegativeValues: true
|
|
1000
1197
|
}),
|
|
@@ -1025,8 +1222,7 @@ let corePlugins = {
|
|
|
1025
1222
|
});
|
|
1026
1223
|
},
|
|
1027
1224
|
animation: ({ matchUtilities , theme , config })=>{
|
|
1028
|
-
let prefixName = (name)=>`${config("prefix")}${(0, _escapeClassName
|
|
1029
|
-
;
|
|
1225
|
+
let prefixName = (name)=>`${config("prefix")}${(0, _escapeClassName.default)(name)}`;
|
|
1030
1226
|
var ref;
|
|
1031
1227
|
let keyframes = Object.fromEntries(Object.entries((ref = theme("keyframes")) !== null && ref !== void 0 ? ref : {}).map(([key, value])=>{
|
|
1032
1228
|
return [
|
|
@@ -1037,11 +1233,10 @@ let corePlugins = {
|
|
|
1037
1233
|
];
|
|
1038
1234
|
}));
|
|
1039
1235
|
matchUtilities({
|
|
1040
|
-
animate: (
|
|
1041
|
-
let animations = (0, _parseAnimationValue
|
|
1236
|
+
animate: (value)=>{
|
|
1237
|
+
let animations = (0, _parseAnimationValue.default)(value);
|
|
1042
1238
|
return [
|
|
1043
|
-
...animations.flatMap((animation)=>keyframes[animation.name]
|
|
1044
|
-
),
|
|
1239
|
+
...animations.flatMap((animation)=>keyframes[animation.name]),
|
|
1045
1240
|
{
|
|
1046
1241
|
animation: animations.map(({ name , value })=>{
|
|
1047
1242
|
if (name === undefined || keyframes[name] === undefined) {
|
|
@@ -1049,14 +1244,14 @@ let corePlugins = {
|
|
|
1049
1244
|
}
|
|
1050
1245
|
return value.replace(name, prefixName(name));
|
|
1051
1246
|
}).join(", ")
|
|
1052
|
-
}
|
|
1247
|
+
}
|
|
1053
1248
|
];
|
|
1054
1249
|
}
|
|
1055
1250
|
}, {
|
|
1056
1251
|
values: theme("animation")
|
|
1057
1252
|
});
|
|
1058
1253
|
},
|
|
1059
|
-
cursor: (0, _createUtilityPlugin
|
|
1254
|
+
cursor: (0, _createUtilityPlugin.default)("cursor"),
|
|
1060
1255
|
touchAction: ({ addDefaults , addUtilities })=>{
|
|
1061
1256
|
addDefaults("touch-action", {
|
|
1062
1257
|
"--tw-pan-x": " ",
|
|
@@ -1197,7 +1392,7 @@ let corePlugins = {
|
|
|
1197
1392
|
}
|
|
1198
1393
|
});
|
|
1199
1394
|
},
|
|
1200
|
-
scrollMargin: (0, _createUtilityPlugin
|
|
1395
|
+
scrollMargin: (0, _createUtilityPlugin.default)("scrollMargin", [
|
|
1201
1396
|
[
|
|
1202
1397
|
"scroll-m",
|
|
1203
1398
|
[
|
|
@@ -1218,7 +1413,7 @@ let corePlugins = {
|
|
|
1218
1413
|
"scroll-margin-top",
|
|
1219
1414
|
"scroll-margin-bottom"
|
|
1220
1415
|
]
|
|
1221
|
-
]
|
|
1416
|
+
]
|
|
1222
1417
|
],
|
|
1223
1418
|
[
|
|
1224
1419
|
[
|
|
@@ -1244,12 +1439,12 @@ let corePlugins = {
|
|
|
1244
1439
|
[
|
|
1245
1440
|
"scroll-margin-left"
|
|
1246
1441
|
]
|
|
1247
|
-
]
|
|
1248
|
-
]
|
|
1442
|
+
]
|
|
1443
|
+
]
|
|
1249
1444
|
], {
|
|
1250
1445
|
supportsNegativeValues: true
|
|
1251
1446
|
}),
|
|
1252
|
-
scrollPadding: (0, _createUtilityPlugin
|
|
1447
|
+
scrollPadding: (0, _createUtilityPlugin.default)("scrollPadding", [
|
|
1253
1448
|
[
|
|
1254
1449
|
"scroll-p",
|
|
1255
1450
|
[
|
|
@@ -1270,7 +1465,7 @@ let corePlugins = {
|
|
|
1270
1465
|
"scroll-padding-top",
|
|
1271
1466
|
"scroll-padding-bottom"
|
|
1272
1467
|
]
|
|
1273
|
-
]
|
|
1468
|
+
]
|
|
1274
1469
|
],
|
|
1275
1470
|
[
|
|
1276
1471
|
[
|
|
@@ -1296,8 +1491,8 @@ let corePlugins = {
|
|
|
1296
1491
|
[
|
|
1297
1492
|
"scroll-padding-left"
|
|
1298
1493
|
]
|
|
1299
|
-
]
|
|
1300
|
-
]
|
|
1494
|
+
]
|
|
1495
|
+
]
|
|
1301
1496
|
]),
|
|
1302
1497
|
listStylePosition: ({ addUtilities })=>{
|
|
1303
1498
|
addUtilities({
|
|
@@ -1309,7 +1504,7 @@ let corePlugins = {
|
|
|
1309
1504
|
}
|
|
1310
1505
|
});
|
|
1311
1506
|
},
|
|
1312
|
-
listStyleType: (0, _createUtilityPlugin
|
|
1507
|
+
listStyleType: (0, _createUtilityPlugin.default)("listStyleType", [
|
|
1313
1508
|
[
|
|
1314
1509
|
"list",
|
|
1315
1510
|
[
|
|
@@ -1324,7 +1519,7 @@ let corePlugins = {
|
|
|
1324
1519
|
}
|
|
1325
1520
|
});
|
|
1326
1521
|
},
|
|
1327
|
-
columns: (0, _createUtilityPlugin
|
|
1522
|
+
columns: (0, _createUtilityPlugin.default)("columns", [
|
|
1328
1523
|
[
|
|
1329
1524
|
"columns",
|
|
1330
1525
|
[
|
|
@@ -1404,7 +1599,7 @@ let corePlugins = {
|
|
|
1404
1599
|
}
|
|
1405
1600
|
});
|
|
1406
1601
|
},
|
|
1407
|
-
gridAutoColumns: (0, _createUtilityPlugin
|
|
1602
|
+
gridAutoColumns: (0, _createUtilityPlugin.default)("gridAutoColumns", [
|
|
1408
1603
|
[
|
|
1409
1604
|
"auto-cols",
|
|
1410
1605
|
[
|
|
@@ -1420,6 +1615,9 @@ let corePlugins = {
|
|
|
1420
1615
|
".grid-flow-col": {
|
|
1421
1616
|
gridAutoFlow: "column"
|
|
1422
1617
|
},
|
|
1618
|
+
".grid-flow-dense": {
|
|
1619
|
+
gridAutoFlow: "dense"
|
|
1620
|
+
},
|
|
1423
1621
|
".grid-flow-row-dense": {
|
|
1424
1622
|
gridAutoFlow: "row dense"
|
|
1425
1623
|
},
|
|
@@ -1428,7 +1626,7 @@ let corePlugins = {
|
|
|
1428
1626
|
}
|
|
1429
1627
|
});
|
|
1430
1628
|
},
|
|
1431
|
-
gridAutoRows: (0, _createUtilityPlugin
|
|
1629
|
+
gridAutoRows: (0, _createUtilityPlugin.default)("gridAutoRows", [
|
|
1432
1630
|
[
|
|
1433
1631
|
"auto-rows",
|
|
1434
1632
|
[
|
|
@@ -1436,15 +1634,15 @@ let corePlugins = {
|
|
|
1436
1634
|
]
|
|
1437
1635
|
]
|
|
1438
1636
|
]),
|
|
1439
|
-
gridTemplateColumns: (0, _createUtilityPlugin
|
|
1637
|
+
gridTemplateColumns: (0, _createUtilityPlugin.default)("gridTemplateColumns", [
|
|
1440
1638
|
[
|
|
1441
1639
|
"grid-cols",
|
|
1442
1640
|
[
|
|
1443
1641
|
"gridTemplateColumns"
|
|
1444
1642
|
]
|
|
1445
|
-
]
|
|
1643
|
+
]
|
|
1446
1644
|
]),
|
|
1447
|
-
gridTemplateRows: (0, _createUtilityPlugin
|
|
1645
|
+
gridTemplateRows: (0, _createUtilityPlugin.default)("gridTemplateRows", [
|
|
1448
1646
|
[
|
|
1449
1647
|
"grid-rows",
|
|
1450
1648
|
[
|
|
@@ -1501,6 +1699,9 @@ let corePlugins = {
|
|
|
1501
1699
|
".place-content-evenly": {
|
|
1502
1700
|
"place-content": "space-evenly"
|
|
1503
1701
|
},
|
|
1702
|
+
".place-content-baseline": {
|
|
1703
|
+
"place-content": "baseline"
|
|
1704
|
+
},
|
|
1504
1705
|
".place-content-stretch": {
|
|
1505
1706
|
"place-content": "stretch"
|
|
1506
1707
|
}
|
|
@@ -1517,6 +1718,9 @@ let corePlugins = {
|
|
|
1517
1718
|
".place-items-center": {
|
|
1518
1719
|
"place-items": "center"
|
|
1519
1720
|
},
|
|
1721
|
+
".place-items-baseline": {
|
|
1722
|
+
"place-items": "baseline"
|
|
1723
|
+
},
|
|
1520
1724
|
".place-items-stretch": {
|
|
1521
1725
|
"place-items": "stretch"
|
|
1522
1726
|
}
|
|
@@ -1541,6 +1745,9 @@ let corePlugins = {
|
|
|
1541
1745
|
},
|
|
1542
1746
|
".content-evenly": {
|
|
1543
1747
|
"align-content": "space-evenly"
|
|
1748
|
+
},
|
|
1749
|
+
".content-baseline": {
|
|
1750
|
+
"align-content": "baseline"
|
|
1544
1751
|
}
|
|
1545
1752
|
});
|
|
1546
1753
|
},
|
|
@@ -1601,7 +1808,7 @@ let corePlugins = {
|
|
|
1601
1808
|
}
|
|
1602
1809
|
});
|
|
1603
1810
|
},
|
|
1604
|
-
gap: (0, _createUtilityPlugin
|
|
1811
|
+
gap: (0, _createUtilityPlugin.default)("gap", [
|
|
1605
1812
|
[
|
|
1606
1813
|
"gap",
|
|
1607
1814
|
[
|
|
@@ -1620,8 +1827,8 @@ let corePlugins = {
|
|
|
1620
1827
|
[
|
|
1621
1828
|
"rowGap"
|
|
1622
1829
|
]
|
|
1623
|
-
]
|
|
1624
|
-
]
|
|
1830
|
+
]
|
|
1831
|
+
]
|
|
1625
1832
|
]),
|
|
1626
1833
|
space: ({ matchUtilities , addUtilities , theme })=>{
|
|
1627
1834
|
matchUtilities({
|
|
@@ -1686,7 +1893,8 @@ let corePlugins = {
|
|
|
1686
1893
|
values: theme("divideWidth"),
|
|
1687
1894
|
type: [
|
|
1688
1895
|
"line-width",
|
|
1689
|
-
"length"
|
|
1896
|
+
"length",
|
|
1897
|
+
"any"
|
|
1690
1898
|
]
|
|
1691
1899
|
});
|
|
1692
1900
|
addUtilities({
|
|
@@ -1719,18 +1927,18 @@ let corePlugins = {
|
|
|
1719
1927
|
}
|
|
1720
1928
|
});
|
|
1721
1929
|
},
|
|
1722
|
-
divideColor: ({ matchUtilities , theme , corePlugins
|
|
1930
|
+
divideColor: ({ matchUtilities , theme , corePlugins })=>{
|
|
1723
1931
|
matchUtilities({
|
|
1724
1932
|
divide: (value)=>{
|
|
1725
|
-
if (!
|
|
1933
|
+
if (!corePlugins("divideOpacity")) {
|
|
1726
1934
|
return {
|
|
1727
1935
|
["& > :not([hidden]) ~ :not([hidden])"]: {
|
|
1728
|
-
"border-color": (0, _toColorValue
|
|
1936
|
+
"border-color": (0, _toColorValue.default)(value)
|
|
1729
1937
|
}
|
|
1730
1938
|
};
|
|
1731
1939
|
}
|
|
1732
1940
|
return {
|
|
1733
|
-
["& > :not([hidden]) ~ :not([hidden])"]: (0, _withAlphaVariable
|
|
1941
|
+
["& > :not([hidden]) ~ :not([hidden])"]: (0, _withAlphaVariable.default)({
|
|
1734
1942
|
color: value,
|
|
1735
1943
|
property: "border-color",
|
|
1736
1944
|
variable: "--tw-divide-opacity"
|
|
@@ -1738,9 +1946,11 @@ let corePlugins = {
|
|
|
1738
1946
|
};
|
|
1739
1947
|
}
|
|
1740
1948
|
}, {
|
|
1741
|
-
values: (({ DEFAULT: _ , ...colors })=>colors
|
|
1742
|
-
|
|
1743
|
-
|
|
1949
|
+
values: (({ DEFAULT: _ , ...colors })=>colors)((0, _flattenColorPalette.default)(theme("divideColor"))),
|
|
1950
|
+
type: [
|
|
1951
|
+
"color",
|
|
1952
|
+
"any"
|
|
1953
|
+
]
|
|
1744
1954
|
});
|
|
1745
1955
|
},
|
|
1746
1956
|
divideOpacity: ({ matchUtilities , theme })=>{
|
|
@@ -1954,10 +2164,13 @@ let corePlugins = {
|
|
|
1954
2164
|
},
|
|
1955
2165
|
".break-all": {
|
|
1956
2166
|
"word-break": "break-all"
|
|
2167
|
+
},
|
|
2168
|
+
".break-keep": {
|
|
2169
|
+
"word-break": "keep-all"
|
|
1957
2170
|
}
|
|
1958
2171
|
});
|
|
1959
2172
|
},
|
|
1960
|
-
borderRadius: (0, _createUtilityPlugin
|
|
2173
|
+
borderRadius: (0, _createUtilityPlugin.default)("borderRadius", [
|
|
1961
2174
|
[
|
|
1962
2175
|
"rounded",
|
|
1963
2176
|
[
|
|
@@ -1992,7 +2205,7 @@ let corePlugins = {
|
|
|
1992
2205
|
"border-top-left-radius",
|
|
1993
2206
|
"border-bottom-left-radius"
|
|
1994
2207
|
]
|
|
1995
|
-
]
|
|
2208
|
+
]
|
|
1996
2209
|
],
|
|
1997
2210
|
[
|
|
1998
2211
|
[
|
|
@@ -2018,10 +2231,10 @@ let corePlugins = {
|
|
|
2018
2231
|
[
|
|
2019
2232
|
"border-bottom-left-radius"
|
|
2020
2233
|
]
|
|
2021
|
-
]
|
|
2022
|
-
]
|
|
2234
|
+
]
|
|
2235
|
+
]
|
|
2023
2236
|
]),
|
|
2024
|
-
borderWidth: (0, _createUtilityPlugin
|
|
2237
|
+
borderWidth: (0, _createUtilityPlugin.default)("borderWidth", [
|
|
2025
2238
|
[
|
|
2026
2239
|
"border",
|
|
2027
2240
|
[
|
|
@@ -2054,7 +2267,7 @@ let corePlugins = {
|
|
|
2054
2267
|
"border-top-width",
|
|
2055
2268
|
"border-bottom-width"
|
|
2056
2269
|
]
|
|
2057
|
-
]
|
|
2270
|
+
]
|
|
2058
2271
|
],
|
|
2059
2272
|
[
|
|
2060
2273
|
[
|
|
@@ -2096,8 +2309,8 @@ let corePlugins = {
|
|
|
2096
2309
|
],
|
|
2097
2310
|
"border-left-width"
|
|
2098
2311
|
]
|
|
2099
|
-
]
|
|
2100
|
-
]
|
|
2312
|
+
]
|
|
2313
|
+
]
|
|
2101
2314
|
], {
|
|
2102
2315
|
type: [
|
|
2103
2316
|
"line-width",
|
|
@@ -2126,36 +2339,36 @@ let corePlugins = {
|
|
|
2126
2339
|
}
|
|
2127
2340
|
});
|
|
2128
2341
|
},
|
|
2129
|
-
borderColor: ({ matchUtilities , theme , corePlugins
|
|
2342
|
+
borderColor: ({ matchUtilities , theme , corePlugins })=>{
|
|
2130
2343
|
matchUtilities({
|
|
2131
2344
|
border: (value)=>{
|
|
2132
|
-
if (!
|
|
2345
|
+
if (!corePlugins("borderOpacity")) {
|
|
2133
2346
|
return {
|
|
2134
|
-
"border-color": (0, _toColorValue
|
|
2347
|
+
"border-color": (0, _toColorValue.default)(value)
|
|
2135
2348
|
};
|
|
2136
2349
|
}
|
|
2137
|
-
return (0, _withAlphaVariable
|
|
2350
|
+
return (0, _withAlphaVariable.default)({
|
|
2138
2351
|
color: value,
|
|
2139
2352
|
property: "border-color",
|
|
2140
2353
|
variable: "--tw-border-opacity"
|
|
2141
2354
|
});
|
|
2142
2355
|
}
|
|
2143
2356
|
}, {
|
|
2144
|
-
values: (({ DEFAULT: _ , ...colors })=>colors
|
|
2145
|
-
)((0, _flattenColorPalette).default(theme("borderColor"))),
|
|
2357
|
+
values: (({ DEFAULT: _ , ...colors })=>colors)((0, _flattenColorPalette.default)(theme("borderColor"))),
|
|
2146
2358
|
type: [
|
|
2147
|
-
"color"
|
|
2359
|
+
"color",
|
|
2360
|
+
"any"
|
|
2148
2361
|
]
|
|
2149
2362
|
});
|
|
2150
2363
|
matchUtilities({
|
|
2151
2364
|
"border-x": (value)=>{
|
|
2152
|
-
if (!
|
|
2365
|
+
if (!corePlugins("borderOpacity")) {
|
|
2153
2366
|
return {
|
|
2154
|
-
"border-left-color": (0, _toColorValue
|
|
2155
|
-
"border-right-color": (0, _toColorValue
|
|
2367
|
+
"border-left-color": (0, _toColorValue.default)(value),
|
|
2368
|
+
"border-right-color": (0, _toColorValue.default)(value)
|
|
2156
2369
|
};
|
|
2157
2370
|
}
|
|
2158
|
-
return (0, _withAlphaVariable
|
|
2371
|
+
return (0, _withAlphaVariable.default)({
|
|
2159
2372
|
color: value,
|
|
2160
2373
|
property: [
|
|
2161
2374
|
"border-left-color",
|
|
@@ -2165,13 +2378,13 @@ let corePlugins = {
|
|
|
2165
2378
|
});
|
|
2166
2379
|
},
|
|
2167
2380
|
"border-y": (value)=>{
|
|
2168
|
-
if (!
|
|
2381
|
+
if (!corePlugins("borderOpacity")) {
|
|
2169
2382
|
return {
|
|
2170
|
-
"border-top-color": (0, _toColorValue
|
|
2171
|
-
"border-bottom-color": (0, _toColorValue
|
|
2383
|
+
"border-top-color": (0, _toColorValue.default)(value),
|
|
2384
|
+
"border-bottom-color": (0, _toColorValue.default)(value)
|
|
2172
2385
|
};
|
|
2173
2386
|
}
|
|
2174
|
-
return (0, _withAlphaVariable
|
|
2387
|
+
return (0, _withAlphaVariable.default)({
|
|
2175
2388
|
color: value,
|
|
2176
2389
|
property: [
|
|
2177
2390
|
"border-top-color",
|
|
@@ -2181,101 +2394,108 @@ let corePlugins = {
|
|
|
2181
2394
|
});
|
|
2182
2395
|
}
|
|
2183
2396
|
}, {
|
|
2184
|
-
values: (({ DEFAULT: _ , ...colors })=>colors
|
|
2185
|
-
|
|
2186
|
-
|
|
2397
|
+
values: (({ DEFAULT: _ , ...colors })=>colors)((0, _flattenColorPalette.default)(theme("borderColor"))),
|
|
2398
|
+
type: [
|
|
2399
|
+
"color",
|
|
2400
|
+
"any"
|
|
2401
|
+
]
|
|
2187
2402
|
});
|
|
2188
2403
|
matchUtilities({
|
|
2189
2404
|
"border-t": (value)=>{
|
|
2190
|
-
if (!
|
|
2405
|
+
if (!corePlugins("borderOpacity")) {
|
|
2191
2406
|
return {
|
|
2192
|
-
"border-top-color": (0, _toColorValue
|
|
2407
|
+
"border-top-color": (0, _toColorValue.default)(value)
|
|
2193
2408
|
};
|
|
2194
2409
|
}
|
|
2195
|
-
return (0, _withAlphaVariable
|
|
2410
|
+
return (0, _withAlphaVariable.default)({
|
|
2196
2411
|
color: value,
|
|
2197
2412
|
property: "border-top-color",
|
|
2198
2413
|
variable: "--tw-border-opacity"
|
|
2199
2414
|
});
|
|
2200
2415
|
},
|
|
2201
2416
|
"border-r": (value)=>{
|
|
2202
|
-
if (!
|
|
2417
|
+
if (!corePlugins("borderOpacity")) {
|
|
2203
2418
|
return {
|
|
2204
|
-
"border-right-color": (0, _toColorValue
|
|
2419
|
+
"border-right-color": (0, _toColorValue.default)(value)
|
|
2205
2420
|
};
|
|
2206
2421
|
}
|
|
2207
|
-
return (0, _withAlphaVariable
|
|
2422
|
+
return (0, _withAlphaVariable.default)({
|
|
2208
2423
|
color: value,
|
|
2209
2424
|
property: "border-right-color",
|
|
2210
2425
|
variable: "--tw-border-opacity"
|
|
2211
2426
|
});
|
|
2212
2427
|
},
|
|
2213
2428
|
"border-b": (value)=>{
|
|
2214
|
-
if (!
|
|
2429
|
+
if (!corePlugins("borderOpacity")) {
|
|
2215
2430
|
return {
|
|
2216
|
-
"border-bottom-color": (0, _toColorValue
|
|
2431
|
+
"border-bottom-color": (0, _toColorValue.default)(value)
|
|
2217
2432
|
};
|
|
2218
2433
|
}
|
|
2219
|
-
return (0, _withAlphaVariable
|
|
2434
|
+
return (0, _withAlphaVariable.default)({
|
|
2220
2435
|
color: value,
|
|
2221
2436
|
property: "border-bottom-color",
|
|
2222
2437
|
variable: "--tw-border-opacity"
|
|
2223
2438
|
});
|
|
2224
2439
|
},
|
|
2225
2440
|
"border-l": (value)=>{
|
|
2226
|
-
if (!
|
|
2441
|
+
if (!corePlugins("borderOpacity")) {
|
|
2227
2442
|
return {
|
|
2228
|
-
"border-left-color": (0, _toColorValue
|
|
2443
|
+
"border-left-color": (0, _toColorValue.default)(value)
|
|
2229
2444
|
};
|
|
2230
2445
|
}
|
|
2231
|
-
return (0, _withAlphaVariable
|
|
2446
|
+
return (0, _withAlphaVariable.default)({
|
|
2232
2447
|
color: value,
|
|
2233
2448
|
property: "border-left-color",
|
|
2234
2449
|
variable: "--tw-border-opacity"
|
|
2235
2450
|
});
|
|
2236
2451
|
}
|
|
2237
2452
|
}, {
|
|
2238
|
-
values: (({ DEFAULT: _ , ...colors })=>colors
|
|
2239
|
-
|
|
2240
|
-
|
|
2453
|
+
values: (({ DEFAULT: _ , ...colors })=>colors)((0, _flattenColorPalette.default)(theme("borderColor"))),
|
|
2454
|
+
type: [
|
|
2455
|
+
"color",
|
|
2456
|
+
"any"
|
|
2457
|
+
]
|
|
2241
2458
|
});
|
|
2242
2459
|
},
|
|
2243
|
-
borderOpacity: (0, _createUtilityPlugin
|
|
2460
|
+
borderOpacity: (0, _createUtilityPlugin.default)("borderOpacity", [
|
|
2244
2461
|
[
|
|
2245
2462
|
"border-opacity",
|
|
2246
2463
|
[
|
|
2247
2464
|
"--tw-border-opacity"
|
|
2248
2465
|
]
|
|
2249
|
-
]
|
|
2466
|
+
]
|
|
2250
2467
|
]),
|
|
2251
|
-
backgroundColor: ({ matchUtilities , theme , corePlugins
|
|
2468
|
+
backgroundColor: ({ matchUtilities , theme , corePlugins })=>{
|
|
2252
2469
|
matchUtilities({
|
|
2253
2470
|
bg: (value)=>{
|
|
2254
|
-
if (!
|
|
2471
|
+
if (!corePlugins("backgroundOpacity")) {
|
|
2255
2472
|
return {
|
|
2256
|
-
"background-color": (0, _toColorValue
|
|
2473
|
+
"background-color": (0, _toColorValue.default)(value)
|
|
2257
2474
|
};
|
|
2258
2475
|
}
|
|
2259
|
-
return (0, _withAlphaVariable
|
|
2476
|
+
return (0, _withAlphaVariable.default)({
|
|
2260
2477
|
color: value,
|
|
2261
2478
|
property: "background-color",
|
|
2262
2479
|
variable: "--tw-bg-opacity"
|
|
2263
2480
|
});
|
|
2264
2481
|
}
|
|
2265
2482
|
}, {
|
|
2266
|
-
values: (0, _flattenColorPalette
|
|
2267
|
-
type:
|
|
2483
|
+
values: (0, _flattenColorPalette.default)(theme("backgroundColor")),
|
|
2484
|
+
type: [
|
|
2485
|
+
"color",
|
|
2486
|
+
"any"
|
|
2487
|
+
]
|
|
2268
2488
|
});
|
|
2269
2489
|
},
|
|
2270
|
-
backgroundOpacity: (0, _createUtilityPlugin
|
|
2490
|
+
backgroundOpacity: (0, _createUtilityPlugin.default)("backgroundOpacity", [
|
|
2271
2491
|
[
|
|
2272
2492
|
"bg-opacity",
|
|
2273
2493
|
[
|
|
2274
2494
|
"--tw-bg-opacity"
|
|
2275
2495
|
]
|
|
2276
|
-
]
|
|
2496
|
+
]
|
|
2277
2497
|
]),
|
|
2278
|
-
backgroundImage: (0, _createUtilityPlugin
|
|
2498
|
+
backgroundImage: (0, _createUtilityPlugin.default)("backgroundImage", [
|
|
2279
2499
|
[
|
|
2280
2500
|
"bg",
|
|
2281
2501
|
[
|
|
@@ -2291,11 +2511,11 @@ let corePlugins = {
|
|
|
2291
2511
|
}),
|
|
2292
2512
|
gradientColorStops: (()=>{
|
|
2293
2513
|
function transparentTo(value) {
|
|
2294
|
-
return (0, _withAlphaVariable
|
|
2514
|
+
return (0, _withAlphaVariable.withAlphaValue)(value, 0, "rgb(255 255 255 / 0)");
|
|
2295
2515
|
}
|
|
2296
2516
|
return function({ matchUtilities , theme }) {
|
|
2297
2517
|
let options = {
|
|
2298
|
-
values: (0, _flattenColorPalette
|
|
2518
|
+
values: (0, _flattenColorPalette.default)(theme("gradientColorStops")),
|
|
2299
2519
|
type: [
|
|
2300
2520
|
"color",
|
|
2301
2521
|
"any"
|
|
@@ -2305,8 +2525,9 @@ let corePlugins = {
|
|
|
2305
2525
|
from: (value)=>{
|
|
2306
2526
|
let transparentToValue = transparentTo(value);
|
|
2307
2527
|
return {
|
|
2308
|
-
"--tw-gradient-from": (0, _toColorValue
|
|
2309
|
-
"--tw-gradient-
|
|
2528
|
+
"--tw-gradient-from": (0, _toColorValue.default)(value, "from"),
|
|
2529
|
+
"--tw-gradient-to": transparentToValue,
|
|
2530
|
+
"--tw-gradient-stops": `var(--tw-gradient-from), var(--tw-gradient-to)`
|
|
2310
2531
|
};
|
|
2311
2532
|
}
|
|
2312
2533
|
}, options);
|
|
@@ -2314,13 +2535,14 @@ let corePlugins = {
|
|
|
2314
2535
|
via: (value)=>{
|
|
2315
2536
|
let transparentToValue = transparentTo(value);
|
|
2316
2537
|
return {
|
|
2317
|
-
"--tw-gradient-
|
|
2538
|
+
"--tw-gradient-to": transparentToValue,
|
|
2539
|
+
"--tw-gradient-stops": `var(--tw-gradient-from), ${(0, _toColorValue.default)(value, "via")}, var(--tw-gradient-to)`
|
|
2318
2540
|
};
|
|
2319
2541
|
}
|
|
2320
2542
|
}, options);
|
|
2321
2543
|
matchUtilities({
|
|
2322
2544
|
to: (value)=>({
|
|
2323
|
-
"--tw-gradient-to": (0, _toColorValue
|
|
2545
|
+
"--tw-gradient-to": (0, _toColorValue.default)(value, "to")
|
|
2324
2546
|
})
|
|
2325
2547
|
}, options);
|
|
2326
2548
|
};
|
|
@@ -2341,7 +2563,7 @@ let corePlugins = {
|
|
|
2341
2563
|
}
|
|
2342
2564
|
});
|
|
2343
2565
|
},
|
|
2344
|
-
backgroundSize: (0, _createUtilityPlugin
|
|
2566
|
+
backgroundSize: (0, _createUtilityPlugin.default)("backgroundSize", [
|
|
2345
2567
|
[
|
|
2346
2568
|
"bg",
|
|
2347
2569
|
[
|
|
@@ -2352,7 +2574,8 @@ let corePlugins = {
|
|
|
2352
2574
|
type: [
|
|
2353
2575
|
"lookup",
|
|
2354
2576
|
"length",
|
|
2355
|
-
"percentage"
|
|
2577
|
+
"percentage",
|
|
2578
|
+
"size"
|
|
2356
2579
|
]
|
|
2357
2580
|
}),
|
|
2358
2581
|
backgroundAttachment: ({ addUtilities })=>{
|
|
@@ -2384,7 +2607,7 @@ let corePlugins = {
|
|
|
2384
2607
|
}
|
|
2385
2608
|
});
|
|
2386
2609
|
},
|
|
2387
|
-
backgroundPosition: (0, _createUtilityPlugin
|
|
2610
|
+
backgroundPosition: (0, _createUtilityPlugin.default)("backgroundPosition", [
|
|
2388
2611
|
[
|
|
2389
2612
|
"bg",
|
|
2390
2613
|
[
|
|
@@ -2394,7 +2617,12 @@ let corePlugins = {
|
|
|
2394
2617
|
], {
|
|
2395
2618
|
type: [
|
|
2396
2619
|
"lookup",
|
|
2397
|
-
|
|
2620
|
+
[
|
|
2621
|
+
"position",
|
|
2622
|
+
{
|
|
2623
|
+
preferOnConflict: true
|
|
2624
|
+
}
|
|
2625
|
+
]
|
|
2398
2626
|
]
|
|
2399
2627
|
}),
|
|
2400
2628
|
backgroundRepeat: ({ addUtilities })=>{
|
|
@@ -2436,11 +2664,11 @@ let corePlugins = {
|
|
|
2436
2664
|
matchUtilities({
|
|
2437
2665
|
fill: (value)=>{
|
|
2438
2666
|
return {
|
|
2439
|
-
fill: (0, _toColorValue
|
|
2667
|
+
fill: (0, _toColorValue.default)(value)
|
|
2440
2668
|
};
|
|
2441
2669
|
}
|
|
2442
2670
|
}, {
|
|
2443
|
-
values: (0, _flattenColorPalette
|
|
2671
|
+
values: (0, _flattenColorPalette.default)(theme("fill")),
|
|
2444
2672
|
type: [
|
|
2445
2673
|
"color",
|
|
2446
2674
|
"any"
|
|
@@ -2451,18 +2679,19 @@ let corePlugins = {
|
|
|
2451
2679
|
matchUtilities({
|
|
2452
2680
|
stroke: (value)=>{
|
|
2453
2681
|
return {
|
|
2454
|
-
stroke: (0, _toColorValue
|
|
2682
|
+
stroke: (0, _toColorValue.default)(value)
|
|
2455
2683
|
};
|
|
2456
2684
|
}
|
|
2457
2685
|
}, {
|
|
2458
|
-
values: (0, _flattenColorPalette
|
|
2686
|
+
values: (0, _flattenColorPalette.default)(theme("stroke")),
|
|
2459
2687
|
type: [
|
|
2460
2688
|
"color",
|
|
2461
|
-
"url"
|
|
2689
|
+
"url",
|
|
2690
|
+
"any"
|
|
2462
2691
|
]
|
|
2463
2692
|
});
|
|
2464
2693
|
},
|
|
2465
|
-
strokeWidth: (0, _createUtilityPlugin
|
|
2694
|
+
strokeWidth: (0, _createUtilityPlugin.default)("strokeWidth", [
|
|
2466
2695
|
[
|
|
2467
2696
|
"stroke",
|
|
2468
2697
|
[
|
|
@@ -2495,7 +2724,7 @@ let corePlugins = {
|
|
|
2495
2724
|
}
|
|
2496
2725
|
});
|
|
2497
2726
|
},
|
|
2498
|
-
objectPosition: (0, _createUtilityPlugin
|
|
2727
|
+
objectPosition: (0, _createUtilityPlugin.default)("objectPosition", [
|
|
2499
2728
|
[
|
|
2500
2729
|
"object",
|
|
2501
2730
|
[
|
|
@@ -2503,7 +2732,7 @@ let corePlugins = {
|
|
|
2503
2732
|
]
|
|
2504
2733
|
]
|
|
2505
2734
|
]),
|
|
2506
|
-
padding: (0, _createUtilityPlugin
|
|
2735
|
+
padding: (0, _createUtilityPlugin.default)("padding", [
|
|
2507
2736
|
[
|
|
2508
2737
|
"p",
|
|
2509
2738
|
[
|
|
@@ -2524,7 +2753,7 @@ let corePlugins = {
|
|
|
2524
2753
|
"padding-top",
|
|
2525
2754
|
"padding-bottom"
|
|
2526
2755
|
]
|
|
2527
|
-
]
|
|
2756
|
+
]
|
|
2528
2757
|
],
|
|
2529
2758
|
[
|
|
2530
2759
|
[
|
|
@@ -2550,8 +2779,8 @@ let corePlugins = {
|
|
|
2550
2779
|
[
|
|
2551
2780
|
"padding-left"
|
|
2552
2781
|
]
|
|
2553
|
-
]
|
|
2554
|
-
]
|
|
2782
|
+
]
|
|
2783
|
+
]
|
|
2555
2784
|
]),
|
|
2556
2785
|
textAlign: ({ addUtilities })=>{
|
|
2557
2786
|
addUtilities({
|
|
@@ -2575,7 +2804,7 @@ let corePlugins = {
|
|
|
2575
2804
|
}
|
|
2576
2805
|
});
|
|
2577
2806
|
},
|
|
2578
|
-
textIndent: (0, _createUtilityPlugin
|
|
2807
|
+
textIndent: (0, _createUtilityPlugin.default)("textIndent", [
|
|
2579
2808
|
[
|
|
2580
2809
|
"indent",
|
|
2581
2810
|
[
|
|
@@ -2618,27 +2847,36 @@ let corePlugins = {
|
|
|
2618
2847
|
})
|
|
2619
2848
|
});
|
|
2620
2849
|
},
|
|
2621
|
-
fontFamily: (
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2850
|
+
fontFamily: ({ matchUtilities , theme })=>{
|
|
2851
|
+
matchUtilities({
|
|
2852
|
+
font: (value)=>{
|
|
2853
|
+
let [families, options = {}] = Array.isArray(value) && (0, _isPlainObject.default)(value[1]) ? value : [
|
|
2854
|
+
value
|
|
2855
|
+
];
|
|
2856
|
+
let { fontFeatureSettings } = options;
|
|
2857
|
+
return {
|
|
2858
|
+
"font-family": Array.isArray(families) ? families.join(", ") : families,
|
|
2859
|
+
...fontFeatureSettings === undefined ? {} : {
|
|
2860
|
+
"font-feature-settings": fontFeatureSettings
|
|
2861
|
+
}
|
|
2862
|
+
};
|
|
2863
|
+
}
|
|
2864
|
+
}, {
|
|
2865
|
+
values: theme("fontFamily"),
|
|
2866
|
+
type: [
|
|
2867
|
+
"lookup",
|
|
2868
|
+
"generic-name",
|
|
2869
|
+
"family-name"
|
|
2626
2870
|
]
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
type: [
|
|
2630
|
-
"lookup",
|
|
2631
|
-
"generic-name",
|
|
2632
|
-
"family-name"
|
|
2633
|
-
]
|
|
2634
|
-
}),
|
|
2871
|
+
});
|
|
2872
|
+
},
|
|
2635
2873
|
fontSize: ({ matchUtilities , theme })=>{
|
|
2636
2874
|
matchUtilities({
|
|
2637
2875
|
text: (value)=>{
|
|
2638
2876
|
let [fontSize, options] = Array.isArray(value) ? value : [
|
|
2639
2877
|
value
|
|
2640
2878
|
];
|
|
2641
|
-
let { lineHeight , letterSpacing } = (0, _isPlainObject
|
|
2879
|
+
let { lineHeight , letterSpacing , fontWeight } = (0, _isPlainObject.default)(options) ? options : {
|
|
2642
2880
|
lineHeight: options
|
|
2643
2881
|
};
|
|
2644
2882
|
return {
|
|
@@ -2648,6 +2886,9 @@ let corePlugins = {
|
|
|
2648
2886
|
},
|
|
2649
2887
|
...letterSpacing === undefined ? {} : {
|
|
2650
2888
|
"letter-spacing": letterSpacing
|
|
2889
|
+
},
|
|
2890
|
+
...fontWeight === undefined ? {} : {
|
|
2891
|
+
"font-weight": fontWeight
|
|
2651
2892
|
}
|
|
2652
2893
|
};
|
|
2653
2894
|
}
|
|
@@ -2661,7 +2902,7 @@ let corePlugins = {
|
|
|
2661
2902
|
]
|
|
2662
2903
|
});
|
|
2663
2904
|
},
|
|
2664
|
-
fontWeight: (0, _createUtilityPlugin
|
|
2905
|
+
fontWeight: (0, _createUtilityPlugin.default)("fontWeight", [
|
|
2665
2906
|
[
|
|
2666
2907
|
"font",
|
|
2667
2908
|
[
|
|
@@ -2671,7 +2912,8 @@ let corePlugins = {
|
|
|
2671
2912
|
], {
|
|
2672
2913
|
type: [
|
|
2673
2914
|
"lookup",
|
|
2674
|
-
"number"
|
|
2915
|
+
"number",
|
|
2916
|
+
"any"
|
|
2675
2917
|
]
|
|
2676
2918
|
}),
|
|
2677
2919
|
textTransform: ({ addUtilities })=>{
|
|
@@ -2755,7 +2997,7 @@ let corePlugins = {
|
|
|
2755
2997
|
}
|
|
2756
2998
|
});
|
|
2757
2999
|
},
|
|
2758
|
-
lineHeight: (0, _createUtilityPlugin
|
|
3000
|
+
lineHeight: (0, _createUtilityPlugin.default)("lineHeight", [
|
|
2759
3001
|
[
|
|
2760
3002
|
"leading",
|
|
2761
3003
|
[
|
|
@@ -2763,7 +3005,7 @@ let corePlugins = {
|
|
|
2763
3005
|
]
|
|
2764
3006
|
]
|
|
2765
3007
|
]),
|
|
2766
|
-
letterSpacing: (0, _createUtilityPlugin
|
|
3008
|
+
letterSpacing: (0, _createUtilityPlugin.default)("letterSpacing", [
|
|
2767
3009
|
[
|
|
2768
3010
|
"tracking",
|
|
2769
3011
|
[
|
|
@@ -2773,26 +3015,29 @@ let corePlugins = {
|
|
|
2773
3015
|
], {
|
|
2774
3016
|
supportsNegativeValues: true
|
|
2775
3017
|
}),
|
|
2776
|
-
textColor: ({ matchUtilities , theme , corePlugins
|
|
3018
|
+
textColor: ({ matchUtilities , theme , corePlugins })=>{
|
|
2777
3019
|
matchUtilities({
|
|
2778
3020
|
text: (value)=>{
|
|
2779
|
-
if (!
|
|
3021
|
+
if (!corePlugins("textOpacity")) {
|
|
2780
3022
|
return {
|
|
2781
|
-
color: (0, _toColorValue
|
|
3023
|
+
color: (0, _toColorValue.default)(value)
|
|
2782
3024
|
};
|
|
2783
3025
|
}
|
|
2784
|
-
return (0, _withAlphaVariable
|
|
3026
|
+
return (0, _withAlphaVariable.default)({
|
|
2785
3027
|
color: value,
|
|
2786
3028
|
property: "color",
|
|
2787
3029
|
variable: "--tw-text-opacity"
|
|
2788
3030
|
});
|
|
2789
3031
|
}
|
|
2790
3032
|
}, {
|
|
2791
|
-
values: (0, _flattenColorPalette
|
|
2792
|
-
type:
|
|
3033
|
+
values: (0, _flattenColorPalette.default)(theme("textColor")),
|
|
3034
|
+
type: [
|
|
3035
|
+
"color",
|
|
3036
|
+
"any"
|
|
3037
|
+
]
|
|
2793
3038
|
});
|
|
2794
3039
|
},
|
|
2795
|
-
textOpacity: (0, _createUtilityPlugin
|
|
3040
|
+
textOpacity: (0, _createUtilityPlugin.default)("textOpacity", [
|
|
2796
3041
|
[
|
|
2797
3042
|
"text-opacity",
|
|
2798
3043
|
[
|
|
@@ -2820,13 +3065,14 @@ let corePlugins = {
|
|
|
2820
3065
|
matchUtilities({
|
|
2821
3066
|
decoration: (value)=>{
|
|
2822
3067
|
return {
|
|
2823
|
-
"text-decoration-color": (0, _toColorValue
|
|
3068
|
+
"text-decoration-color": (0, _toColorValue.default)(value)
|
|
2824
3069
|
};
|
|
2825
3070
|
}
|
|
2826
3071
|
}, {
|
|
2827
|
-
values: (0, _flattenColorPalette
|
|
3072
|
+
values: (0, _flattenColorPalette.default)(theme("textDecorationColor")),
|
|
2828
3073
|
type: [
|
|
2829
|
-
"color"
|
|
3074
|
+
"color",
|
|
3075
|
+
"any"
|
|
2830
3076
|
]
|
|
2831
3077
|
});
|
|
2832
3078
|
},
|
|
@@ -2849,7 +3095,7 @@ let corePlugins = {
|
|
|
2849
3095
|
}
|
|
2850
3096
|
});
|
|
2851
3097
|
},
|
|
2852
|
-
textDecorationThickness: (0, _createUtilityPlugin
|
|
3098
|
+
textDecorationThickness: (0, _createUtilityPlugin.default)("textDecorationThickness", [
|
|
2853
3099
|
[
|
|
2854
3100
|
"decoration",
|
|
2855
3101
|
[
|
|
@@ -2862,7 +3108,7 @@ let corePlugins = {
|
|
|
2862
3108
|
"percentage"
|
|
2863
3109
|
]
|
|
2864
3110
|
}),
|
|
2865
|
-
textUnderlineOffset: (0, _createUtilityPlugin
|
|
3111
|
+
textUnderlineOffset: (0, _createUtilityPlugin.default)("textUnderlineOffset", [
|
|
2866
3112
|
[
|
|
2867
3113
|
"underline-offset",
|
|
2868
3114
|
[
|
|
@@ -2872,7 +3118,8 @@ let corePlugins = {
|
|
|
2872
3118
|
], {
|
|
2873
3119
|
type: [
|
|
2874
3120
|
"length",
|
|
2875
|
-
"percentage"
|
|
3121
|
+
"percentage",
|
|
3122
|
+
"any"
|
|
2876
3123
|
]
|
|
2877
3124
|
}),
|
|
2878
3125
|
fontSmoothing: ({ addUtilities })=>{
|
|
@@ -2887,18 +3134,18 @@ let corePlugins = {
|
|
|
2887
3134
|
}
|
|
2888
3135
|
});
|
|
2889
3136
|
},
|
|
2890
|
-
placeholderColor: ({ matchUtilities , theme , corePlugins
|
|
3137
|
+
placeholderColor: ({ matchUtilities , theme , corePlugins })=>{
|
|
2891
3138
|
matchUtilities({
|
|
2892
3139
|
placeholder: (value)=>{
|
|
2893
|
-
if (!
|
|
3140
|
+
if (!corePlugins("placeholderOpacity")) {
|
|
2894
3141
|
return {
|
|
2895
3142
|
"&::placeholder": {
|
|
2896
|
-
color: (0, _toColorValue
|
|
3143
|
+
color: (0, _toColorValue.default)(value)
|
|
2897
3144
|
}
|
|
2898
3145
|
};
|
|
2899
3146
|
}
|
|
2900
3147
|
return {
|
|
2901
|
-
"&::placeholder": (0, _withAlphaVariable
|
|
3148
|
+
"&::placeholder": (0, _withAlphaVariable.default)({
|
|
2902
3149
|
color: value,
|
|
2903
3150
|
property: "color",
|
|
2904
3151
|
variable: "--tw-placeholder-opacity"
|
|
@@ -2906,7 +3153,7 @@ let corePlugins = {
|
|
|
2906
3153
|
};
|
|
2907
3154
|
}
|
|
2908
3155
|
}, {
|
|
2909
|
-
values: (0, _flattenColorPalette
|
|
3156
|
+
values: (0, _flattenColorPalette.default)(theme("placeholderColor")),
|
|
2910
3157
|
type: [
|
|
2911
3158
|
"color",
|
|
2912
3159
|
"any"
|
|
@@ -2930,11 +3177,11 @@ let corePlugins = {
|
|
|
2930
3177
|
matchUtilities({
|
|
2931
3178
|
caret: (value)=>{
|
|
2932
3179
|
return {
|
|
2933
|
-
"caret-color": (0, _toColorValue
|
|
3180
|
+
"caret-color": (0, _toColorValue.default)(value)
|
|
2934
3181
|
};
|
|
2935
3182
|
}
|
|
2936
3183
|
}, {
|
|
2937
|
-
values: (0, _flattenColorPalette
|
|
3184
|
+
values: (0, _flattenColorPalette.default)(theme("caretColor")),
|
|
2938
3185
|
type: [
|
|
2939
3186
|
"color",
|
|
2940
3187
|
"any"
|
|
@@ -2945,18 +3192,18 @@ let corePlugins = {
|
|
|
2945
3192
|
matchUtilities({
|
|
2946
3193
|
accent: (value)=>{
|
|
2947
3194
|
return {
|
|
2948
|
-
"accent-color": (0, _toColorValue
|
|
3195
|
+
"accent-color": (0, _toColorValue.default)(value)
|
|
2949
3196
|
};
|
|
2950
3197
|
}
|
|
2951
3198
|
}, {
|
|
2952
|
-
values: (0, _flattenColorPalette
|
|
3199
|
+
values: (0, _flattenColorPalette.default)(theme("accentColor")),
|
|
2953
3200
|
type: [
|
|
2954
3201
|
"color",
|
|
2955
3202
|
"any"
|
|
2956
3203
|
]
|
|
2957
3204
|
});
|
|
2958
3205
|
},
|
|
2959
|
-
opacity: (0, _createUtilityPlugin
|
|
3206
|
+
opacity: (0, _createUtilityPlugin.default)("opacity", [
|
|
2960
3207
|
[
|
|
2961
3208
|
"opacity",
|
|
2962
3209
|
[
|
|
@@ -3065,15 +3312,18 @@ let corePlugins = {
|
|
|
3065
3312
|
},
|
|
3066
3313
|
".mix-blend-luminosity": {
|
|
3067
3314
|
"mix-blend-mode": "luminosity"
|
|
3315
|
+
},
|
|
3316
|
+
".mix-blend-plus-lighter": {
|
|
3317
|
+
"mix-blend-mode": "plus-lighter"
|
|
3068
3318
|
}
|
|
3069
3319
|
});
|
|
3070
3320
|
},
|
|
3071
3321
|
boxShadow: (()=>{
|
|
3072
|
-
let transformValue = (0, _transformThemeValue
|
|
3322
|
+
let transformValue = (0, _transformThemeValue.default)("boxShadow");
|
|
3073
3323
|
let defaultBoxShadow = [
|
|
3074
3324
|
`var(--tw-ring-offset-shadow, 0 0 #0000)`,
|
|
3075
3325
|
`var(--tw-ring-shadow, 0 0 #0000)`,
|
|
3076
|
-
`var(--tw-shadow)
|
|
3326
|
+
`var(--tw-shadow)`
|
|
3077
3327
|
].join(", ");
|
|
3078
3328
|
return function({ matchUtilities , addDefaults , theme }) {
|
|
3079
3329
|
addDefaults(" box-shadow", {
|
|
@@ -3085,7 +3335,7 @@ let corePlugins = {
|
|
|
3085
3335
|
matchUtilities({
|
|
3086
3336
|
shadow: (value)=>{
|
|
3087
3337
|
value = transformValue(value);
|
|
3088
|
-
let ast = (0, _parseBoxShadowValue
|
|
3338
|
+
let ast = (0, _parseBoxShadowValue.parseBoxShadowValue)(value);
|
|
3089
3339
|
for (let shadow of ast){
|
|
3090
3340
|
// Don't override color if the whole shadow is a variable
|
|
3091
3341
|
if (!shadow.valid) {
|
|
@@ -3096,7 +3346,7 @@ let corePlugins = {
|
|
|
3096
3346
|
return {
|
|
3097
3347
|
"@defaults box-shadow": {},
|
|
3098
3348
|
"--tw-shadow": value === "none" ? "0 0 #0000" : value,
|
|
3099
|
-
"--tw-shadow-colored": value === "none" ? "0 0 #0000" : (0, _parseBoxShadowValue
|
|
3349
|
+
"--tw-shadow-colored": value === "none" ? "0 0 #0000" : (0, _parseBoxShadowValue.formatBoxShadowValue)(ast),
|
|
3100
3350
|
"box-shadow": defaultBoxShadow
|
|
3101
3351
|
};
|
|
3102
3352
|
}
|
|
@@ -3112,14 +3362,15 @@ let corePlugins = {
|
|
|
3112
3362
|
matchUtilities({
|
|
3113
3363
|
shadow: (value)=>{
|
|
3114
3364
|
return {
|
|
3115
|
-
"--tw-shadow-color": (0, _toColorValue
|
|
3365
|
+
"--tw-shadow-color": (0, _toColorValue.default)(value),
|
|
3116
3366
|
"--tw-shadow": "var(--tw-shadow-colored)"
|
|
3117
3367
|
};
|
|
3118
3368
|
}
|
|
3119
3369
|
}, {
|
|
3120
|
-
values: (0, _flattenColorPalette
|
|
3370
|
+
values: (0, _flattenColorPalette.default)(theme("boxShadowColor")),
|
|
3121
3371
|
type: [
|
|
3122
|
-
"color"
|
|
3372
|
+
"color",
|
|
3373
|
+
"any"
|
|
3123
3374
|
]
|
|
3124
3375
|
});
|
|
3125
3376
|
},
|
|
@@ -3140,13 +3391,10 @@ let corePlugins = {
|
|
|
3140
3391
|
},
|
|
3141
3392
|
".outline-double": {
|
|
3142
3393
|
"outline-style": "double"
|
|
3143
|
-
},
|
|
3144
|
-
".outline-hidden": {
|
|
3145
|
-
"outline-style": "hidden"
|
|
3146
3394
|
}
|
|
3147
3395
|
});
|
|
3148
3396
|
},
|
|
3149
|
-
outlineWidth: (0, _createUtilityPlugin
|
|
3397
|
+
outlineWidth: (0, _createUtilityPlugin.default)("outlineWidth", [
|
|
3150
3398
|
[
|
|
3151
3399
|
"outline",
|
|
3152
3400
|
[
|
|
@@ -3160,7 +3408,7 @@ let corePlugins = {
|
|
|
3160
3408
|
"percentage"
|
|
3161
3409
|
]
|
|
3162
3410
|
}),
|
|
3163
|
-
outlineOffset: (0, _createUtilityPlugin
|
|
3411
|
+
outlineOffset: (0, _createUtilityPlugin.default)("outlineOffset", [
|
|
3164
3412
|
[
|
|
3165
3413
|
"outline-offset",
|
|
3166
3414
|
[
|
|
@@ -3171,27 +3419,38 @@ let corePlugins = {
|
|
|
3171
3419
|
type: [
|
|
3172
3420
|
"length",
|
|
3173
3421
|
"number",
|
|
3174
|
-
"percentage"
|
|
3175
|
-
|
|
3422
|
+
"percentage",
|
|
3423
|
+
"any"
|
|
3424
|
+
],
|
|
3425
|
+
supportsNegativeValues: true
|
|
3176
3426
|
}),
|
|
3177
3427
|
outlineColor: ({ matchUtilities , theme })=>{
|
|
3178
3428
|
matchUtilities({
|
|
3179
3429
|
outline: (value)=>{
|
|
3180
3430
|
return {
|
|
3181
|
-
"outline-color": (0, _toColorValue
|
|
3431
|
+
"outline-color": (0, _toColorValue.default)(value)
|
|
3182
3432
|
};
|
|
3183
3433
|
}
|
|
3184
3434
|
}, {
|
|
3185
|
-
values: (0, _flattenColorPalette
|
|
3435
|
+
values: (0, _flattenColorPalette.default)(theme("outlineColor")),
|
|
3186
3436
|
type: [
|
|
3187
|
-
"color"
|
|
3437
|
+
"color",
|
|
3438
|
+
"any"
|
|
3188
3439
|
]
|
|
3189
3440
|
});
|
|
3190
3441
|
},
|
|
3191
|
-
ringWidth: ({ matchUtilities , addDefaults , addUtilities , theme })=>{
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3442
|
+
ringWidth: ({ matchUtilities , addDefaults , addUtilities , theme , config })=>{
|
|
3443
|
+
let ringColorDefault = (()=>{
|
|
3444
|
+
var ref, ref1;
|
|
3445
|
+
if ((0, _featureFlags.flagEnabled)(config(), "respectDefaultRingColorOpacity")) {
|
|
3446
|
+
return theme("ringColor.DEFAULT");
|
|
3447
|
+
}
|
|
3448
|
+
let ringOpacityDefault = theme("ringOpacity.DEFAULT", "0.5");
|
|
3449
|
+
if (!((ref = theme("ringColor")) === null || ref === void 0 ? void 0 : ref.DEFAULT)) {
|
|
3450
|
+
return `rgb(147 197 253 / ${ringOpacityDefault})`;
|
|
3451
|
+
}
|
|
3452
|
+
return (0, _withAlphaVariable.withAlphaValue)((ref1 = theme("ringColor")) === null || ref1 === void 0 ? void 0 : ref1.DEFAULT, ringOpacityDefault, `rgb(147 197 253 / ${ringOpacityDefault})`);
|
|
3453
|
+
})();
|
|
3195
3454
|
addDefaults("ring-width", {
|
|
3196
3455
|
"--tw-ring-inset": " ",
|
|
3197
3456
|
"--tw-ring-offset-width": theme("ringOffsetWidth.DEFAULT", "0px"),
|
|
@@ -3211,7 +3470,7 @@ let corePlugins = {
|
|
|
3211
3470
|
"box-shadow": [
|
|
3212
3471
|
`var(--tw-ring-offset-shadow)`,
|
|
3213
3472
|
`var(--tw-ring-shadow)`,
|
|
3214
|
-
`var(--tw-shadow, 0 0 #0000)
|
|
3473
|
+
`var(--tw-shadow, 0 0 #0000)`
|
|
3215
3474
|
].join(", ")
|
|
3216
3475
|
};
|
|
3217
3476
|
}
|
|
@@ -3226,37 +3485,42 @@ let corePlugins = {
|
|
|
3226
3485
|
}
|
|
3227
3486
|
});
|
|
3228
3487
|
},
|
|
3229
|
-
ringColor: ({ matchUtilities , theme , corePlugins
|
|
3488
|
+
ringColor: ({ matchUtilities , theme , corePlugins })=>{
|
|
3230
3489
|
matchUtilities({
|
|
3231
3490
|
ring: (value)=>{
|
|
3232
|
-
if (!
|
|
3491
|
+
if (!corePlugins("ringOpacity")) {
|
|
3233
3492
|
return {
|
|
3234
|
-
"--tw-ring-color": (0, _toColorValue
|
|
3493
|
+
"--tw-ring-color": (0, _toColorValue.default)(value)
|
|
3235
3494
|
};
|
|
3236
3495
|
}
|
|
3237
|
-
return (0, _withAlphaVariable
|
|
3496
|
+
return (0, _withAlphaVariable.default)({
|
|
3238
3497
|
color: value,
|
|
3239
3498
|
property: "--tw-ring-color",
|
|
3240
3499
|
variable: "--tw-ring-opacity"
|
|
3241
3500
|
});
|
|
3242
3501
|
}
|
|
3243
3502
|
}, {
|
|
3244
|
-
values: Object.fromEntries(Object.entries((0, _flattenColorPalette
|
|
3245
|
-
|
|
3246
|
-
|
|
3503
|
+
values: Object.fromEntries(Object.entries((0, _flattenColorPalette.default)(theme("ringColor"))).filter(([modifier])=>modifier !== "DEFAULT")),
|
|
3504
|
+
type: [
|
|
3505
|
+
"color",
|
|
3506
|
+
"any"
|
|
3507
|
+
]
|
|
3247
3508
|
});
|
|
3248
3509
|
},
|
|
3249
|
-
ringOpacity: (
|
|
3250
|
-
|
|
3251
|
-
|
|
3510
|
+
ringOpacity: (helpers)=>{
|
|
3511
|
+
let { config } = helpers;
|
|
3512
|
+
return (0, _createUtilityPlugin.default)("ringOpacity", [
|
|
3252
3513
|
[
|
|
3253
|
-
"
|
|
3514
|
+
"ring-opacity",
|
|
3515
|
+
[
|
|
3516
|
+
"--tw-ring-opacity"
|
|
3517
|
+
]
|
|
3254
3518
|
]
|
|
3255
|
-
]
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
}
|
|
3259
|
-
ringOffsetWidth: (0, _createUtilityPlugin
|
|
3519
|
+
], {
|
|
3520
|
+
filterDefault: !(0, _featureFlags.flagEnabled)(config(), "respectDefaultRingColorOpacity")
|
|
3521
|
+
})(helpers);
|
|
3522
|
+
},
|
|
3523
|
+
ringOffsetWidth: (0, _createUtilityPlugin.default)("ringOffsetWidth", [
|
|
3260
3524
|
[
|
|
3261
3525
|
"ring-offset",
|
|
3262
3526
|
[
|
|
@@ -3270,12 +3534,15 @@ let corePlugins = {
|
|
|
3270
3534
|
matchUtilities({
|
|
3271
3535
|
"ring-offset": (value)=>{
|
|
3272
3536
|
return {
|
|
3273
|
-
"--tw-ring-offset-color": (0, _toColorValue
|
|
3537
|
+
"--tw-ring-offset-color": (0, _toColorValue.default)(value)
|
|
3274
3538
|
};
|
|
3275
3539
|
}
|
|
3276
3540
|
}, {
|
|
3277
|
-
values: (0, _flattenColorPalette
|
|
3278
|
-
type:
|
|
3541
|
+
values: (0, _flattenColorPalette.default)(theme("ringOffsetColor")),
|
|
3542
|
+
type: [
|
|
3543
|
+
"color",
|
|
3544
|
+
"any"
|
|
3545
|
+
]
|
|
3279
3546
|
});
|
|
3280
3547
|
},
|
|
3281
3548
|
blur: ({ matchUtilities , theme })=>{
|
|
@@ -3321,8 +3588,7 @@ let corePlugins = {
|
|
|
3321
3588
|
matchUtilities({
|
|
3322
3589
|
"drop-shadow": (value)=>{
|
|
3323
3590
|
return {
|
|
3324
|
-
"--tw-drop-shadow": Array.isArray(value) ? value.map((v)=>`drop-shadow(${v})`
|
|
3325
|
-
).join(" ") : `drop-shadow(${value})`,
|
|
3591
|
+
"--tw-drop-shadow": Array.isArray(value) ? value.map((v)=>`drop-shadow(${v})`).join(" ") : `drop-shadow(${value})`,
|
|
3326
3592
|
"@defaults filter": {},
|
|
3327
3593
|
filter: cssFilterValue
|
|
3328
3594
|
};
|
|
@@ -3576,7 +3842,7 @@ let corePlugins = {
|
|
|
3576
3842
|
values: theme("transitionProperty")
|
|
3577
3843
|
});
|
|
3578
3844
|
},
|
|
3579
|
-
transitionDelay: (0, _createUtilityPlugin
|
|
3845
|
+
transitionDelay: (0, _createUtilityPlugin.default)("transitionDelay", [
|
|
3580
3846
|
[
|
|
3581
3847
|
"delay",
|
|
3582
3848
|
[
|
|
@@ -3584,7 +3850,7 @@ let corePlugins = {
|
|
|
3584
3850
|
]
|
|
3585
3851
|
]
|
|
3586
3852
|
]),
|
|
3587
|
-
transitionDuration: (0, _createUtilityPlugin
|
|
3853
|
+
transitionDuration: (0, _createUtilityPlugin.default)("transitionDuration", [
|
|
3588
3854
|
[
|
|
3589
3855
|
"duration",
|
|
3590
3856
|
[
|
|
@@ -3594,7 +3860,7 @@ let corePlugins = {
|
|
|
3594
3860
|
], {
|
|
3595
3861
|
filterDefault: true
|
|
3596
3862
|
}),
|
|
3597
|
-
transitionTimingFunction: (0, _createUtilityPlugin
|
|
3863
|
+
transitionTimingFunction: (0, _createUtilityPlugin.default)("transitionTimingFunction", [
|
|
3598
3864
|
[
|
|
3599
3865
|
"ease",
|
|
3600
3866
|
[
|
|
@@ -3604,7 +3870,7 @@ let corePlugins = {
|
|
|
3604
3870
|
], {
|
|
3605
3871
|
filterDefault: true
|
|
3606
3872
|
}),
|
|
3607
|
-
willChange: (0, _createUtilityPlugin
|
|
3873
|
+
willChange: (0, _createUtilityPlugin.default)("willChange", [
|
|
3608
3874
|
[
|
|
3609
3875
|
"will-change",
|
|
3610
3876
|
[
|
|
@@ -3612,7 +3878,7 @@ let corePlugins = {
|
|
|
3612
3878
|
]
|
|
3613
3879
|
]
|
|
3614
3880
|
]),
|
|
3615
|
-
content: (0, _createUtilityPlugin
|
|
3881
|
+
content: (0, _createUtilityPlugin.default)("content", [
|
|
3616
3882
|
[
|
|
3617
3883
|
"content",
|
|
3618
3884
|
[
|
|
@@ -3622,7 +3888,6 @@ let corePlugins = {
|
|
|
3622
3888
|
"var(--tw-content)"
|
|
3623
3889
|
]
|
|
3624
3890
|
]
|
|
3625
|
-
]
|
|
3891
|
+
]
|
|
3626
3892
|
])
|
|
3627
3893
|
};
|
|
3628
|
-
exports.corePlugins = corePlugins;
|