tailwindcss 0.0.0-insiders.eeec89a → 0.0.0-insiders.eef91c9
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/README.md +1 -2
- package/lib/cli/build/deps.js +62 -0
- package/lib/cli/build/index.js +0 -3
- package/lib/cli/build/plugin.js +66 -126
- package/lib/cli/build/watching.js +2 -2
- package/lib/cli/help/index.js +2 -2
- package/lib/cli/index.js +3 -4
- package/lib/cli-peer-dependencies.js +36 -0
- package/lib/corePluginList.js +4 -1
- package/lib/corePlugins.js +318 -185
- package/lib/css/preflight.css +20 -9
- package/lib/featureFlags.js +9 -15
- package/lib/lib/content.js +2 -28
- package/lib/lib/defaultExtractor.js +33 -25
- package/lib/lib/evaluateTailwindFunctions.js +4 -4
- package/lib/lib/expandApplyAtRules.js +19 -0
- package/lib/lib/expandTailwindAtRules.js +22 -58
- package/lib/lib/generateRules.js +47 -27
- package/lib/lib/load-config.js +18 -3
- package/lib/lib/normalizeTailwindDirectives.js +15 -0
- package/lib/lib/offsets.js +53 -4
- package/lib/lib/resolveDefaultsAtRules.js +4 -2
- package/lib/lib/setupContextUtils.js +108 -80
- package/lib/lib/setupTrackingContext.js +2 -3
- package/lib/lib/substituteScreenAtRules.js +2 -2
- package/lib/plugin.js +0 -116
- package/lib/postcss-plugins/nesting/index.js +1 -1
- package/lib/postcss-plugins/nesting/plugin.js +2 -2
- package/lib/processTailwindFeatures.js +1 -3
- package/lib/public/colors.js +1 -1
- package/lib/util/cloneNodes.js +33 -13
- package/lib/util/color.js +4 -4
- package/lib/util/createUtilityPlugin.js +2 -2
- package/lib/util/dataTypes.js +69 -6
- package/lib/util/defaults.js +4 -4
- package/lib/util/escapeClassName.js +2 -2
- package/lib/util/formatVariantSelector.js +12 -7
- package/lib/util/getAllConfigs.js +2 -3
- package/lib/util/isPlainObject.js +1 -1
- package/lib/util/log.js +0 -17
- package/lib/util/normalizeConfig.js +28 -59
- package/lib/util/normalizeScreens.js +3 -3
- package/lib/util/pluginUtils.js +22 -7
- package/lib/util/pseudoElements.js +3 -0
- package/lib/util/resolveConfig.js +6 -10
- package/lib/util/validateConfig.js +0 -11
- package/lib/util/withAlphaVariable.js +1 -1
- package/nesting/index.d.ts +4 -0
- package/package.json +39 -34
- package/peers/index.js +96671 -0
- package/resolveConfig.d.ts +22 -3
- package/scripts/generate-types.js +1 -2
- package/src/cli/build/deps.js +56 -0
- package/src/cli/build/index.js +0 -4
- package/src/cli/build/plugin.js +53 -85
- package/src/cli/build/watching.js +1 -1
- package/src/cli/index.js +0 -1
- package/src/cli-peer-dependencies.js +15 -0
- package/src/corePluginList.js +1 -1
- package/src/corePlugins.js +157 -44
- package/src/css/preflight.css +20 -9
- package/src/featureFlags.js +3 -9
- package/src/lib/content.js +1 -33
- package/src/lib/defaultExtractor.js +30 -17
- package/src/lib/expandApplyAtRules.js +24 -0
- package/src/lib/expandTailwindAtRules.js +19 -56
- package/src/lib/generateRules.js +43 -22
- package/src/lib/load-config.ts +13 -0
- package/src/lib/normalizeTailwindDirectives.js +27 -0
- package/src/lib/offsets.js +62 -3
- package/src/lib/resolveDefaultsAtRules.js +5 -1
- package/src/lib/setupContextUtils.js +79 -39
- package/src/plugin.js +0 -86
- package/src/processTailwindFeatures.js +0 -3
- package/src/util/cloneNodes.js +35 -14
- package/src/util/color.js +1 -1
- package/src/util/dataTypes.js +78 -6
- package/src/util/formatVariantSelector.js +7 -0
- package/src/util/isPlainObject.js +1 -1
- package/src/util/log.js +0 -24
- package/src/util/normalizeConfig.js +11 -38
- package/src/util/pluginUtils.js +21 -1
- package/src/util/pseudoElements.js +4 -0
- package/src/util/validateConfig.js +0 -10
- package/stubs/config.full.js +75 -16
- package/stubs/config.simple.js +1 -1
- package/stubs/postcss.config.cjs +1 -0
- package/stubs/postcss.config.js +1 -0
- package/types/config.d.ts +12 -5
- package/types/generated/corePluginList.d.ts +1 -1
- package/types/generated/default-theme.d.ts +34 -9
- package/types/index.d.ts +7 -3
- package/index.css +0 -5
- package/lib/lib/detectNesting.js +0 -45
- package/lib/lib/handleImportAtRules.js +0 -50
- package/src/lib/detectNesting.js +0 -47
- package/src/lib/handleImportAtRules.js +0 -34
package/lib/corePlugins.js
CHANGED
|
@@ -28,6 +28,7 @@ const _withAlphaVariable = /*#__PURE__*/ _interop_require_wildcard(require("./ut
|
|
|
28
28
|
const _toColorValue = /*#__PURE__*/ _interop_require_default(require("./util/toColorValue"));
|
|
29
29
|
const _isPlainObject = /*#__PURE__*/ _interop_require_default(require("./util/isPlainObject"));
|
|
30
30
|
const _transformThemeValue = /*#__PURE__*/ _interop_require_default(require("./util/transformThemeValue"));
|
|
31
|
+
const _packagejson = require("../package.json");
|
|
31
32
|
const _log = /*#__PURE__*/ _interop_require_default(require("./util/log"));
|
|
32
33
|
const _normalizeScreens = require("./util/normalizeScreens");
|
|
33
34
|
const _parseBoxShadowValue = require("./util/parseBoxShadowValue");
|
|
@@ -80,17 +81,20 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
80
81
|
return newObj;
|
|
81
82
|
}
|
|
82
83
|
let variantPlugins = {
|
|
83
|
-
|
|
84
|
+
childVariant: ({ addVariant })=>{
|
|
85
|
+
addVariant("*", "& > *");
|
|
86
|
+
},
|
|
87
|
+
pseudoElementVariants: ({ addVariant })=>{
|
|
84
88
|
addVariant("first-letter", "&::first-letter");
|
|
85
89
|
addVariant("first-line", "&::first-line");
|
|
86
90
|
addVariant("marker", [
|
|
87
|
-
({ container
|
|
91
|
+
({ container })=>{
|
|
88
92
|
(0, _removeAlphaVariables.removeAlphaVariables)(container, [
|
|
89
93
|
"--tw-text-opacity"
|
|
90
94
|
]);
|
|
91
95
|
return "& *::marker";
|
|
92
96
|
},
|
|
93
|
-
({ container
|
|
97
|
+
({ container })=>{
|
|
94
98
|
(0, _removeAlphaVariables.removeAlphaVariables)(container, [
|
|
95
99
|
"--tw-text-opacity"
|
|
96
100
|
]);
|
|
@@ -104,7 +108,7 @@ let variantPlugins = {
|
|
|
104
108
|
addVariant("file", "&::file-selector-button");
|
|
105
109
|
addVariant("placeholder", "&::placeholder");
|
|
106
110
|
addVariant("backdrop", "&::backdrop");
|
|
107
|
-
addVariant("before", ({ container
|
|
111
|
+
addVariant("before", ({ container })=>{
|
|
108
112
|
container.walkRules((rule)=>{
|
|
109
113
|
let foundContent = false;
|
|
110
114
|
rule.walkDecls("content", ()=>{
|
|
@@ -119,7 +123,7 @@ let variantPlugins = {
|
|
|
119
123
|
});
|
|
120
124
|
return "&::before";
|
|
121
125
|
});
|
|
122
|
-
addVariant("after", ({ container
|
|
126
|
+
addVariant("after", ({ container })=>{
|
|
123
127
|
container.walkRules((rule)=>{
|
|
124
128
|
let foundContent = false;
|
|
125
129
|
rule.walkDecls("content", ()=>{
|
|
@@ -135,7 +139,7 @@ let variantPlugins = {
|
|
|
135
139
|
return "&::after";
|
|
136
140
|
});
|
|
137
141
|
},
|
|
138
|
-
pseudoClassVariants: ({ addVariant, matchVariant, config, prefix
|
|
142
|
+
pseudoClassVariants: ({ addVariant , matchVariant , config , prefix })=>{
|
|
139
143
|
let pseudoVariants = [
|
|
140
144
|
// Positional
|
|
141
145
|
[
|
|
@@ -164,7 +168,7 @@ let variantPlugins = {
|
|
|
164
168
|
// State
|
|
165
169
|
[
|
|
166
170
|
"visited",
|
|
167
|
-
({ container
|
|
171
|
+
({ container })=>{
|
|
168
172
|
(0, _removeAlphaVariables.removeAlphaVariables)(container, [
|
|
169
173
|
"--tw-text-opacity",
|
|
170
174
|
"--tw-border-opacity",
|
|
@@ -215,14 +219,14 @@ let variantPlugins = {
|
|
|
215
219
|
});
|
|
216
220
|
}
|
|
217
221
|
let variants = {
|
|
218
|
-
group: (_, { modifier
|
|
222
|
+
group: (_, { modifier })=>modifier ? [
|
|
219
223
|
`:merge(${prefix(".group")}\\/${(0, _escapeClassName.default)(modifier)})`,
|
|
220
224
|
" &"
|
|
221
225
|
] : [
|
|
222
226
|
`:merge(${prefix(".group")})`,
|
|
223
227
|
" &"
|
|
224
228
|
],
|
|
225
|
-
peer: (_, { modifier
|
|
229
|
+
peer: (_, { modifier })=>modifier ? [
|
|
226
230
|
`:merge(${prefix(".peer")}\\/${(0, _escapeClassName.default)(modifier)})`,
|
|
227
231
|
" ~ &"
|
|
228
232
|
] : [
|
|
@@ -262,16 +266,16 @@ let variantPlugins = {
|
|
|
262
266
|
});
|
|
263
267
|
}
|
|
264
268
|
},
|
|
265
|
-
directionVariants: ({ addVariant
|
|
266
|
-
addVariant("ltr", '
|
|
267
|
-
addVariant("rtl", '
|
|
269
|
+
directionVariants: ({ addVariant })=>{
|
|
270
|
+
addVariant("ltr", '&:where([dir="ltr"], [dir="ltr"] *)');
|
|
271
|
+
addVariant("rtl", '&:where([dir="rtl"], [dir="rtl"] *)');
|
|
268
272
|
},
|
|
269
|
-
reducedMotionVariants: ({ addVariant
|
|
273
|
+
reducedMotionVariants: ({ addVariant })=>{
|
|
270
274
|
addVariant("motion-safe", "@media (prefers-reduced-motion: no-preference)");
|
|
271
275
|
addVariant("motion-reduce", "@media (prefers-reduced-motion: reduce)");
|
|
272
276
|
},
|
|
273
|
-
darkVariants: ({ config, addVariant
|
|
274
|
-
let [mode,
|
|
277
|
+
darkVariants: ({ config , addVariant })=>{
|
|
278
|
+
let [mode, selector = ".dark"] = [].concat(config("darkMode", "media"));
|
|
275
279
|
if (mode === false) {
|
|
276
280
|
mode = "media";
|
|
277
281
|
_log.default.warn("darkmode-false", [
|
|
@@ -280,16 +284,54 @@ let variantPlugins = {
|
|
|
280
284
|
"https://tailwindcss.com/docs/upgrade-guide#remove-dark-mode-configuration"
|
|
281
285
|
]);
|
|
282
286
|
}
|
|
283
|
-
if (mode === "
|
|
284
|
-
|
|
287
|
+
if (mode === "variant") {
|
|
288
|
+
let formats;
|
|
289
|
+
if (Array.isArray(selector)) {
|
|
290
|
+
formats = selector;
|
|
291
|
+
} else if (typeof selector === "function") {
|
|
292
|
+
formats = selector;
|
|
293
|
+
} else if (typeof selector === "string") {
|
|
294
|
+
formats = [
|
|
295
|
+
selector
|
|
296
|
+
];
|
|
297
|
+
}
|
|
298
|
+
// TODO: We could also add these warnings if the user passes a function that returns string | string[]
|
|
299
|
+
// But this is an advanced enough use case that it's probably not necessary
|
|
300
|
+
if (Array.isArray(formats)) {
|
|
301
|
+
for (let format of formats){
|
|
302
|
+
if (format === ".dark") {
|
|
303
|
+
mode = false;
|
|
304
|
+
_log.default.warn("darkmode-variant-without-selector", [
|
|
305
|
+
"When using `variant` for `darkMode`, you must provide a selector.",
|
|
306
|
+
'Example: `darkMode: ["variant", ".your-selector &"]`'
|
|
307
|
+
]);
|
|
308
|
+
} else if (!format.includes("&")) {
|
|
309
|
+
mode = false;
|
|
310
|
+
_log.default.warn("darkmode-variant-without-ampersand", [
|
|
311
|
+
"When using `variant` for `darkMode`, your selector must contain `&`.",
|
|
312
|
+
'Example `darkMode: ["variant", ".your-selector &"]`'
|
|
313
|
+
]);
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
selector = formats;
|
|
318
|
+
}
|
|
319
|
+
if (mode === "selector") {
|
|
320
|
+
// New preferred behavior
|
|
321
|
+
addVariant("dark", `&:where(${selector}, ${selector} *)`);
|
|
285
322
|
} else if (mode === "media") {
|
|
286
323
|
addVariant("dark", "@media (prefers-color-scheme: dark)");
|
|
324
|
+
} else if (mode === "variant") {
|
|
325
|
+
addVariant("dark", selector);
|
|
326
|
+
} else if (mode === "class") {
|
|
327
|
+
// Old behavior
|
|
328
|
+
addVariant("dark", `&:is(${selector} *)`);
|
|
287
329
|
}
|
|
288
330
|
},
|
|
289
|
-
printVariant: ({ addVariant
|
|
331
|
+
printVariant: ({ addVariant })=>{
|
|
290
332
|
addVariant("print", "@media print");
|
|
291
333
|
},
|
|
292
|
-
screenVariants: ({ theme, addVariant, matchVariant
|
|
334
|
+
screenVariants: ({ theme , addVariant , matchVariant })=>{
|
|
293
335
|
var _theme;
|
|
294
336
|
let rawScreens = (_theme = theme("screens")) !== null && _theme !== void 0 ? _theme : {};
|
|
295
337
|
let areSimpleScreens = Object.values(rawScreens).every((v)=>typeof v === "string");
|
|
@@ -326,7 +368,7 @@ let variantPlugins = {
|
|
|
326
368
|
* @returns {Record<string, Screen>}
|
|
327
369
|
*/ function buildScreenValues(type) {
|
|
328
370
|
return Object.fromEntries(screens.filter((screen)=>(0, _normalizeScreens.isScreenSortable)(screen).result).map((screen)=>{
|
|
329
|
-
let { min, max
|
|
371
|
+
let { min , max } = screen.values[0];
|
|
330
372
|
if (type === "min" && min !== undefined) {
|
|
331
373
|
return screen;
|
|
332
374
|
} else if (type === "min" && max !== undefined) {
|
|
@@ -396,7 +438,7 @@ let variantPlugins = {
|
|
|
396
438
|
sort: minSort
|
|
397
439
|
});
|
|
398
440
|
},
|
|
399
|
-
supportsVariants: ({ matchVariant, theme
|
|
441
|
+
supportsVariants: ({ matchVariant , theme })=>{
|
|
400
442
|
var _theme;
|
|
401
443
|
matchVariant("supports", (value = "")=>{
|
|
402
444
|
let check = (0, _dataTypes.normalize)(value);
|
|
@@ -418,52 +460,64 @@ let variantPlugins = {
|
|
|
418
460
|
values: (_theme = theme("supports")) !== null && _theme !== void 0 ? _theme : {}
|
|
419
461
|
});
|
|
420
462
|
},
|
|
421
|
-
hasVariants: ({ matchVariant })=>{
|
|
463
|
+
hasVariants: ({ matchVariant , prefix })=>{
|
|
422
464
|
matchVariant("has", (value)=>`&:has(${(0, _dataTypes.normalize)(value)})`, {
|
|
423
|
-
values: {}
|
|
465
|
+
values: {},
|
|
466
|
+
[_setupContextUtils.INTERNAL_FEATURES]: {
|
|
467
|
+
respectPrefix: false
|
|
468
|
+
}
|
|
424
469
|
});
|
|
425
|
-
matchVariant("group-has", (value, { modifier
|
|
426
|
-
values: {}
|
|
470
|
+
matchVariant("group-has", (value, { modifier })=>modifier ? `:merge(${prefix(".group")}\\/${modifier}):has(${(0, _dataTypes.normalize)(value)}) &` : `:merge(${prefix(".group")}):has(${(0, _dataTypes.normalize)(value)}) &`, {
|
|
471
|
+
values: {},
|
|
472
|
+
[_setupContextUtils.INTERNAL_FEATURES]: {
|
|
473
|
+
respectPrefix: false
|
|
474
|
+
}
|
|
427
475
|
});
|
|
428
|
-
matchVariant("peer-has", (value, { modifier
|
|
429
|
-
values: {}
|
|
476
|
+
matchVariant("peer-has", (value, { modifier })=>modifier ? `:merge(${prefix(".peer")}\\/${modifier}):has(${(0, _dataTypes.normalize)(value)}) ~ &` : `:merge(${prefix(".peer")}):has(${(0, _dataTypes.normalize)(value)}) ~ &`, {
|
|
477
|
+
values: {},
|
|
478
|
+
[_setupContextUtils.INTERNAL_FEATURES]: {
|
|
479
|
+
respectPrefix: false
|
|
480
|
+
}
|
|
430
481
|
});
|
|
431
482
|
},
|
|
432
|
-
ariaVariants: ({ matchVariant, theme
|
|
483
|
+
ariaVariants: ({ matchVariant , theme })=>{
|
|
433
484
|
var _theme;
|
|
434
485
|
matchVariant("aria", (value)=>`&[aria-${(0, _dataTypes.normalize)(value)}]`, {
|
|
435
486
|
values: (_theme = theme("aria")) !== null && _theme !== void 0 ? _theme : {}
|
|
436
487
|
});
|
|
437
488
|
var _theme1;
|
|
438
|
-
matchVariant("group-aria", (value, { modifier
|
|
489
|
+
matchVariant("group-aria", (value, { modifier })=>modifier ? `:merge(.group\\/${modifier})[aria-${(0, _dataTypes.normalize)(value)}] &` : `:merge(.group)[aria-${(0, _dataTypes.normalize)(value)}] &`, {
|
|
439
490
|
values: (_theme1 = theme("aria")) !== null && _theme1 !== void 0 ? _theme1 : {}
|
|
440
491
|
});
|
|
441
492
|
var _theme2;
|
|
442
|
-
matchVariant("peer-aria", (value, { modifier
|
|
493
|
+
matchVariant("peer-aria", (value, { modifier })=>modifier ? `:merge(.peer\\/${modifier})[aria-${(0, _dataTypes.normalize)(value)}] ~ &` : `:merge(.peer)[aria-${(0, _dataTypes.normalize)(value)}] ~ &`, {
|
|
443
494
|
values: (_theme2 = theme("aria")) !== null && _theme2 !== void 0 ? _theme2 : {}
|
|
444
495
|
});
|
|
445
496
|
},
|
|
446
|
-
dataVariants: ({ matchVariant, theme
|
|
497
|
+
dataVariants: ({ matchVariant , theme })=>{
|
|
447
498
|
var _theme;
|
|
448
499
|
matchVariant("data", (value)=>`&[data-${(0, _dataTypes.normalize)(value)}]`, {
|
|
449
500
|
values: (_theme = theme("data")) !== null && _theme !== void 0 ? _theme : {}
|
|
450
501
|
});
|
|
451
502
|
var _theme1;
|
|
452
|
-
matchVariant("group-data", (value, { modifier
|
|
503
|
+
matchVariant("group-data", (value, { modifier })=>modifier ? `:merge(.group\\/${modifier})[data-${(0, _dataTypes.normalize)(value)}] &` : `:merge(.group)[data-${(0, _dataTypes.normalize)(value)}] &`, {
|
|
453
504
|
values: (_theme1 = theme("data")) !== null && _theme1 !== void 0 ? _theme1 : {}
|
|
454
505
|
});
|
|
455
506
|
var _theme2;
|
|
456
|
-
matchVariant("peer-data", (value, { modifier
|
|
507
|
+
matchVariant("peer-data", (value, { modifier })=>modifier ? `:merge(.peer\\/${modifier})[data-${(0, _dataTypes.normalize)(value)}] ~ &` : `:merge(.peer)[data-${(0, _dataTypes.normalize)(value)}] ~ &`, {
|
|
457
508
|
values: (_theme2 = theme("data")) !== null && _theme2 !== void 0 ? _theme2 : {}
|
|
458
509
|
});
|
|
459
510
|
},
|
|
460
|
-
orientationVariants: ({ addVariant
|
|
511
|
+
orientationVariants: ({ addVariant })=>{
|
|
461
512
|
addVariant("portrait", "@media (orientation: portrait)");
|
|
462
513
|
addVariant("landscape", "@media (orientation: landscape)");
|
|
463
514
|
},
|
|
464
|
-
prefersContrastVariants: ({ addVariant
|
|
515
|
+
prefersContrastVariants: ({ addVariant })=>{
|
|
465
516
|
addVariant("contrast-more", "@media (prefers-contrast: more)");
|
|
466
517
|
addVariant("contrast-less", "@media (prefers-contrast: less)");
|
|
518
|
+
},
|
|
519
|
+
forcedColorsVariants: ({ addVariant })=>{
|
|
520
|
+
addVariant("forced-colors", "@media (forced-colors: active)");
|
|
467
521
|
}
|
|
468
522
|
};
|
|
469
523
|
let cssTransformValue = [
|
|
@@ -497,9 +551,14 @@ let cssBackdropFilterValue = [
|
|
|
497
551
|
"var(--tw-backdrop-sepia)"
|
|
498
552
|
].join(" ");
|
|
499
553
|
let corePlugins = {
|
|
500
|
-
preflight: ({ addBase
|
|
554
|
+
preflight: ({ addBase })=>{
|
|
501
555
|
let preflightStyles = _postcss.default.parse(_fs.default.readFileSync(_path.join(__dirname, "./css/preflight.css"), "utf8"));
|
|
502
|
-
addBase(
|
|
556
|
+
addBase([
|
|
557
|
+
_postcss.default.comment({
|
|
558
|
+
text: `! tailwindcss v${_packagejson.version} | MIT License | https://tailwindcss.com`
|
|
559
|
+
}),
|
|
560
|
+
...preflightStyles.nodes
|
|
561
|
+
]);
|
|
503
562
|
},
|
|
504
563
|
container: (()=>{
|
|
505
564
|
function extractMinWidths(breakpoints = []) {
|
|
@@ -528,7 +587,7 @@ let corePlugins = {
|
|
|
528
587
|
}
|
|
529
588
|
for (let minWidth of minWidths){
|
|
530
589
|
for (let screen of screens){
|
|
531
|
-
for (let { min
|
|
590
|
+
for (let { min } of screen.values){
|
|
532
591
|
if (min === minWidth) {
|
|
533
592
|
mapping.push({
|
|
534
593
|
minWidth,
|
|
@@ -540,7 +599,7 @@ let corePlugins = {
|
|
|
540
599
|
}
|
|
541
600
|
return mapping;
|
|
542
601
|
}
|
|
543
|
-
return function({ addComponents, theme
|
|
602
|
+
return function({ addComponents , theme }) {
|
|
544
603
|
let screens = (0, _normalizeScreens.normalizeScreens)(theme("container.screens", theme("screens")));
|
|
545
604
|
let minWidths = extractMinWidths(screens);
|
|
546
605
|
let paddings = mapMinWidthsToPadding(minWidths, screens, theme("container.padding"));
|
|
@@ -575,7 +634,7 @@ let corePlugins = {
|
|
|
575
634
|
]);
|
|
576
635
|
};
|
|
577
636
|
})(),
|
|
578
|
-
accessibility: ({ addUtilities
|
|
637
|
+
accessibility: ({ addUtilities })=>{
|
|
579
638
|
addUtilities({
|
|
580
639
|
".sr-only": {
|
|
581
640
|
position: "absolute",
|
|
@@ -600,7 +659,7 @@ let corePlugins = {
|
|
|
600
659
|
}
|
|
601
660
|
});
|
|
602
661
|
},
|
|
603
|
-
pointerEvents: ({ addUtilities
|
|
662
|
+
pointerEvents: ({ addUtilities })=>{
|
|
604
663
|
addUtilities({
|
|
605
664
|
".pointer-events-none": {
|
|
606
665
|
"pointer-events": "none"
|
|
@@ -610,7 +669,7 @@ let corePlugins = {
|
|
|
610
669
|
}
|
|
611
670
|
});
|
|
612
671
|
},
|
|
613
|
-
visibility: ({ addUtilities
|
|
672
|
+
visibility: ({ addUtilities })=>{
|
|
614
673
|
addUtilities({
|
|
615
674
|
".visible": {
|
|
616
675
|
visibility: "visible"
|
|
@@ -623,7 +682,7 @@ let corePlugins = {
|
|
|
623
682
|
}
|
|
624
683
|
});
|
|
625
684
|
},
|
|
626
|
-
position: ({ addUtilities
|
|
685
|
+
position: ({ addUtilities })=>{
|
|
627
686
|
addUtilities({
|
|
628
687
|
".static": {
|
|
629
688
|
position: "static"
|
|
@@ -706,7 +765,7 @@ let corePlugins = {
|
|
|
706
765
|
], {
|
|
707
766
|
supportsNegativeValues: true
|
|
708
767
|
}),
|
|
709
|
-
isolation: ({ addUtilities
|
|
768
|
+
isolation: ({ addUtilities })=>{
|
|
710
769
|
addUtilities({
|
|
711
770
|
".isolate": {
|
|
712
771
|
isolation: "isolate"
|
|
@@ -744,7 +803,9 @@ let corePlugins = {
|
|
|
744
803
|
"gridColumnStart"
|
|
745
804
|
]
|
|
746
805
|
]
|
|
747
|
-
]
|
|
806
|
+
], {
|
|
807
|
+
supportsNegativeValues: true
|
|
808
|
+
}),
|
|
748
809
|
gridColumnEnd: (0, _createUtilityPlugin.default)("gridColumnEnd", [
|
|
749
810
|
[
|
|
750
811
|
"col-end",
|
|
@@ -752,7 +813,9 @@ let corePlugins = {
|
|
|
752
813
|
"gridColumnEnd"
|
|
753
814
|
]
|
|
754
815
|
]
|
|
755
|
-
]
|
|
816
|
+
], {
|
|
817
|
+
supportsNegativeValues: true
|
|
818
|
+
}),
|
|
756
819
|
gridRow: (0, _createUtilityPlugin.default)("gridRow", [
|
|
757
820
|
[
|
|
758
821
|
"row",
|
|
@@ -768,7 +831,9 @@ let corePlugins = {
|
|
|
768
831
|
"gridRowStart"
|
|
769
832
|
]
|
|
770
833
|
]
|
|
771
|
-
]
|
|
834
|
+
], {
|
|
835
|
+
supportsNegativeValues: true
|
|
836
|
+
}),
|
|
772
837
|
gridRowEnd: (0, _createUtilityPlugin.default)("gridRowEnd", [
|
|
773
838
|
[
|
|
774
839
|
"row-end",
|
|
@@ -776,9 +841,17 @@ let corePlugins = {
|
|
|
776
841
|
"gridRowEnd"
|
|
777
842
|
]
|
|
778
843
|
]
|
|
779
|
-
]
|
|
780
|
-
|
|
844
|
+
], {
|
|
845
|
+
supportsNegativeValues: true
|
|
846
|
+
}),
|
|
847
|
+
float: ({ addUtilities })=>{
|
|
781
848
|
addUtilities({
|
|
849
|
+
".float-start": {
|
|
850
|
+
float: "inline-start"
|
|
851
|
+
},
|
|
852
|
+
".float-end": {
|
|
853
|
+
float: "inline-end"
|
|
854
|
+
},
|
|
782
855
|
".float-right": {
|
|
783
856
|
float: "right"
|
|
784
857
|
},
|
|
@@ -790,8 +863,14 @@ let corePlugins = {
|
|
|
790
863
|
}
|
|
791
864
|
});
|
|
792
865
|
},
|
|
793
|
-
clear: ({ addUtilities
|
|
866
|
+
clear: ({ addUtilities })=>{
|
|
794
867
|
addUtilities({
|
|
868
|
+
".clear-start": {
|
|
869
|
+
clear: "inline-start"
|
|
870
|
+
},
|
|
871
|
+
".clear-end": {
|
|
872
|
+
clear: "inline-end"
|
|
873
|
+
},
|
|
795
874
|
".clear-left": {
|
|
796
875
|
clear: "left"
|
|
797
876
|
},
|
|
@@ -870,7 +949,7 @@ let corePlugins = {
|
|
|
870
949
|
], {
|
|
871
950
|
supportsNegativeValues: true
|
|
872
951
|
}),
|
|
873
|
-
boxSizing: ({ addUtilities
|
|
952
|
+
boxSizing: ({ addUtilities })=>{
|
|
874
953
|
addUtilities({
|
|
875
954
|
".box-border": {
|
|
876
955
|
"box-sizing": "border-box"
|
|
@@ -880,7 +959,7 @@ let corePlugins = {
|
|
|
880
959
|
}
|
|
881
960
|
});
|
|
882
961
|
},
|
|
883
|
-
lineClamp: ({ matchUtilities, addUtilities, theme
|
|
962
|
+
lineClamp: ({ matchUtilities , addUtilities , theme })=>{
|
|
884
963
|
matchUtilities({
|
|
885
964
|
"line-clamp": (value)=>({
|
|
886
965
|
overflow: "hidden",
|
|
@@ -900,7 +979,7 @@ let corePlugins = {
|
|
|
900
979
|
}
|
|
901
980
|
});
|
|
902
981
|
},
|
|
903
|
-
display: ({ addUtilities
|
|
982
|
+
display: ({ addUtilities })=>{
|
|
904
983
|
addUtilities({
|
|
905
984
|
".block": {
|
|
906
985
|
display: "block"
|
|
@@ -975,6 +1054,15 @@ let corePlugins = {
|
|
|
975
1054
|
]
|
|
976
1055
|
]
|
|
977
1056
|
]),
|
|
1057
|
+
size: (0, _createUtilityPlugin.default)("size", [
|
|
1058
|
+
[
|
|
1059
|
+
"size",
|
|
1060
|
+
[
|
|
1061
|
+
"width",
|
|
1062
|
+
"height"
|
|
1063
|
+
]
|
|
1064
|
+
]
|
|
1065
|
+
]),
|
|
978
1066
|
height: (0, _createUtilityPlugin.default)("height", [
|
|
979
1067
|
[
|
|
980
1068
|
"h",
|
|
@@ -1060,7 +1148,7 @@ let corePlugins = {
|
|
|
1060
1148
|
]
|
|
1061
1149
|
]
|
|
1062
1150
|
]),
|
|
1063
|
-
tableLayout: ({ addUtilities
|
|
1151
|
+
tableLayout: ({ addUtilities })=>{
|
|
1064
1152
|
addUtilities({
|
|
1065
1153
|
".table-auto": {
|
|
1066
1154
|
"table-layout": "auto"
|
|
@@ -1070,7 +1158,7 @@ let corePlugins = {
|
|
|
1070
1158
|
}
|
|
1071
1159
|
});
|
|
1072
1160
|
},
|
|
1073
|
-
captionSide: ({ addUtilities
|
|
1161
|
+
captionSide: ({ addUtilities })=>{
|
|
1074
1162
|
addUtilities({
|
|
1075
1163
|
".caption-top": {
|
|
1076
1164
|
"caption-side": "top"
|
|
@@ -1080,7 +1168,7 @@ let corePlugins = {
|
|
|
1080
1168
|
}
|
|
1081
1169
|
});
|
|
1082
1170
|
},
|
|
1083
|
-
borderCollapse: ({ addUtilities
|
|
1171
|
+
borderCollapse: ({ addUtilities })=>{
|
|
1084
1172
|
addUtilities({
|
|
1085
1173
|
".border-collapse": {
|
|
1086
1174
|
"border-collapse": "collapse"
|
|
@@ -1090,7 +1178,7 @@ let corePlugins = {
|
|
|
1090
1178
|
}
|
|
1091
1179
|
});
|
|
1092
1180
|
},
|
|
1093
|
-
borderSpacing: ({ addDefaults, matchUtilities, theme
|
|
1181
|
+
borderSpacing: ({ addDefaults , matchUtilities , theme })=>{
|
|
1094
1182
|
addDefaults("border-spacing", {
|
|
1095
1183
|
"--tw-border-spacing-x": 0,
|
|
1096
1184
|
"--tw-border-spacing-y": 0
|
|
@@ -1265,7 +1353,7 @@ let corePlugins = {
|
|
|
1265
1353
|
], {
|
|
1266
1354
|
supportsNegativeValues: true
|
|
1267
1355
|
}),
|
|
1268
|
-
transform: ({ addDefaults, addUtilities
|
|
1356
|
+
transform: ({ addDefaults , addUtilities })=>{
|
|
1269
1357
|
addDefaults("transform", {
|
|
1270
1358
|
"--tw-translate-x": "0",
|
|
1271
1359
|
"--tw-translate-y": "0",
|
|
@@ -1291,7 +1379,7 @@ let corePlugins = {
|
|
|
1291
1379
|
}
|
|
1292
1380
|
});
|
|
1293
1381
|
},
|
|
1294
|
-
animation: ({ matchUtilities, theme, config
|
|
1382
|
+
animation: ({ matchUtilities , theme , config })=>{
|
|
1295
1383
|
let prefixName = (name)=>(0, _escapeClassName.default)(config("prefix") + name);
|
|
1296
1384
|
var _theme;
|
|
1297
1385
|
let keyframes = Object.fromEntries(Object.entries((_theme = theme("keyframes")) !== null && _theme !== void 0 ? _theme : {}).map(([key, value])=>{
|
|
@@ -1308,7 +1396,7 @@ let corePlugins = {
|
|
|
1308
1396
|
return [
|
|
1309
1397
|
...animations.flatMap((animation)=>keyframes[animation.name]),
|
|
1310
1398
|
{
|
|
1311
|
-
animation: animations.map(({ name, value
|
|
1399
|
+
animation: animations.map(({ name , value })=>{
|
|
1312
1400
|
if (name === undefined || keyframes[name] === undefined) {
|
|
1313
1401
|
return value;
|
|
1314
1402
|
}
|
|
@@ -1322,7 +1410,7 @@ let corePlugins = {
|
|
|
1322
1410
|
});
|
|
1323
1411
|
},
|
|
1324
1412
|
cursor: (0, _createUtilityPlugin.default)("cursor"),
|
|
1325
|
-
touchAction: ({ addDefaults, addUtilities
|
|
1413
|
+
touchAction: ({ addDefaults , addUtilities })=>{
|
|
1326
1414
|
addDefaults("touch-action", {
|
|
1327
1415
|
"--tw-pan-x": " ",
|
|
1328
1416
|
"--tw-pan-y": " ",
|
|
@@ -1376,7 +1464,7 @@ let corePlugins = {
|
|
|
1376
1464
|
}
|
|
1377
1465
|
});
|
|
1378
1466
|
},
|
|
1379
|
-
userSelect: ({ addUtilities
|
|
1467
|
+
userSelect: ({ addUtilities })=>{
|
|
1380
1468
|
addUtilities({
|
|
1381
1469
|
".select-none": {
|
|
1382
1470
|
"user-select": "none"
|
|
@@ -1392,7 +1480,7 @@ let corePlugins = {
|
|
|
1392
1480
|
}
|
|
1393
1481
|
});
|
|
1394
1482
|
},
|
|
1395
|
-
resize: ({ addUtilities
|
|
1483
|
+
resize: ({ addUtilities })=>{
|
|
1396
1484
|
addUtilities({
|
|
1397
1485
|
".resize-none": {
|
|
1398
1486
|
resize: "none"
|
|
@@ -1408,7 +1496,7 @@ let corePlugins = {
|
|
|
1408
1496
|
}
|
|
1409
1497
|
});
|
|
1410
1498
|
},
|
|
1411
|
-
scrollSnapType: ({ addDefaults, addUtilities
|
|
1499
|
+
scrollSnapType: ({ addDefaults , addUtilities })=>{
|
|
1412
1500
|
addDefaults("scroll-snap-type", {
|
|
1413
1501
|
"--tw-scroll-snap-strictness": "proximity"
|
|
1414
1502
|
});
|
|
@@ -1436,7 +1524,7 @@ let corePlugins = {
|
|
|
1436
1524
|
}
|
|
1437
1525
|
});
|
|
1438
1526
|
},
|
|
1439
|
-
scrollSnapAlign: ({ addUtilities
|
|
1527
|
+
scrollSnapAlign: ({ addUtilities })=>{
|
|
1440
1528
|
addUtilities({
|
|
1441
1529
|
".snap-start": {
|
|
1442
1530
|
"scroll-snap-align": "start"
|
|
@@ -1452,7 +1540,7 @@ let corePlugins = {
|
|
|
1452
1540
|
}
|
|
1453
1541
|
});
|
|
1454
1542
|
},
|
|
1455
|
-
scrollSnapStop: ({ addUtilities
|
|
1543
|
+
scrollSnapStop: ({ addUtilities })=>{
|
|
1456
1544
|
addUtilities({
|
|
1457
1545
|
".snap-normal": {
|
|
1458
1546
|
"scroll-snap-stop": "normal"
|
|
@@ -1588,7 +1676,7 @@ let corePlugins = {
|
|
|
1588
1676
|
]
|
|
1589
1677
|
]
|
|
1590
1678
|
]),
|
|
1591
|
-
listStylePosition: ({ addUtilities
|
|
1679
|
+
listStylePosition: ({ addUtilities })=>{
|
|
1592
1680
|
addUtilities({
|
|
1593
1681
|
".list-inside": {
|
|
1594
1682
|
"list-style-position": "inside"
|
|
@@ -1614,10 +1702,13 @@ let corePlugins = {
|
|
|
1614
1702
|
]
|
|
1615
1703
|
]
|
|
1616
1704
|
]),
|
|
1617
|
-
appearance: ({ addUtilities
|
|
1705
|
+
appearance: ({ addUtilities })=>{
|
|
1618
1706
|
addUtilities({
|
|
1619
1707
|
".appearance-none": {
|
|
1620
1708
|
appearance: "none"
|
|
1709
|
+
},
|
|
1710
|
+
".appearance-auto": {
|
|
1711
|
+
appearance: "auto"
|
|
1621
1712
|
}
|
|
1622
1713
|
});
|
|
1623
1714
|
},
|
|
@@ -1629,7 +1720,7 @@ let corePlugins = {
|
|
|
1629
1720
|
]
|
|
1630
1721
|
]
|
|
1631
1722
|
]),
|
|
1632
|
-
breakBefore: ({ addUtilities
|
|
1723
|
+
breakBefore: ({ addUtilities })=>{
|
|
1633
1724
|
addUtilities({
|
|
1634
1725
|
".break-before-auto": {
|
|
1635
1726
|
"break-before": "auto"
|
|
@@ -1657,7 +1748,7 @@ let corePlugins = {
|
|
|
1657
1748
|
}
|
|
1658
1749
|
});
|
|
1659
1750
|
},
|
|
1660
|
-
breakInside: ({ addUtilities
|
|
1751
|
+
breakInside: ({ addUtilities })=>{
|
|
1661
1752
|
addUtilities({
|
|
1662
1753
|
".break-inside-auto": {
|
|
1663
1754
|
"break-inside": "auto"
|
|
@@ -1673,7 +1764,7 @@ let corePlugins = {
|
|
|
1673
1764
|
}
|
|
1674
1765
|
});
|
|
1675
1766
|
},
|
|
1676
|
-
breakAfter: ({ addUtilities
|
|
1767
|
+
breakAfter: ({ addUtilities })=>{
|
|
1677
1768
|
addUtilities({
|
|
1678
1769
|
".break-after-auto": {
|
|
1679
1770
|
"break-after": "auto"
|
|
@@ -1709,7 +1800,7 @@ let corePlugins = {
|
|
|
1709
1800
|
]
|
|
1710
1801
|
]
|
|
1711
1802
|
]),
|
|
1712
|
-
gridAutoFlow: ({ addUtilities
|
|
1803
|
+
gridAutoFlow: ({ addUtilities })=>{
|
|
1713
1804
|
addUtilities({
|
|
1714
1805
|
".grid-flow-row": {
|
|
1715
1806
|
gridAutoFlow: "row"
|
|
@@ -1752,7 +1843,7 @@ let corePlugins = {
|
|
|
1752
1843
|
]
|
|
1753
1844
|
]
|
|
1754
1845
|
]),
|
|
1755
|
-
flexDirection: ({ addUtilities
|
|
1846
|
+
flexDirection: ({ addUtilities })=>{
|
|
1756
1847
|
addUtilities({
|
|
1757
1848
|
".flex-row": {
|
|
1758
1849
|
"flex-direction": "row"
|
|
@@ -1768,7 +1859,7 @@ let corePlugins = {
|
|
|
1768
1859
|
}
|
|
1769
1860
|
});
|
|
1770
1861
|
},
|
|
1771
|
-
flexWrap: ({ addUtilities
|
|
1862
|
+
flexWrap: ({ addUtilities })=>{
|
|
1772
1863
|
addUtilities({
|
|
1773
1864
|
".flex-wrap": {
|
|
1774
1865
|
"flex-wrap": "wrap"
|
|
@@ -1781,7 +1872,7 @@ let corePlugins = {
|
|
|
1781
1872
|
}
|
|
1782
1873
|
});
|
|
1783
1874
|
},
|
|
1784
|
-
placeContent: ({ addUtilities
|
|
1875
|
+
placeContent: ({ addUtilities })=>{
|
|
1785
1876
|
addUtilities({
|
|
1786
1877
|
".place-content-center": {
|
|
1787
1878
|
"place-content": "center"
|
|
@@ -1809,7 +1900,7 @@ let corePlugins = {
|
|
|
1809
1900
|
}
|
|
1810
1901
|
});
|
|
1811
1902
|
},
|
|
1812
|
-
placeItems: ({ addUtilities
|
|
1903
|
+
placeItems: ({ addUtilities })=>{
|
|
1813
1904
|
addUtilities({
|
|
1814
1905
|
".place-items-start": {
|
|
1815
1906
|
"place-items": "start"
|
|
@@ -1828,7 +1919,7 @@ let corePlugins = {
|
|
|
1828
1919
|
}
|
|
1829
1920
|
});
|
|
1830
1921
|
},
|
|
1831
|
-
alignContent: ({ addUtilities
|
|
1922
|
+
alignContent: ({ addUtilities })=>{
|
|
1832
1923
|
addUtilities({
|
|
1833
1924
|
".content-normal": {
|
|
1834
1925
|
"align-content": "normal"
|
|
@@ -1859,7 +1950,7 @@ let corePlugins = {
|
|
|
1859
1950
|
}
|
|
1860
1951
|
});
|
|
1861
1952
|
},
|
|
1862
|
-
alignItems: ({ addUtilities
|
|
1953
|
+
alignItems: ({ addUtilities })=>{
|
|
1863
1954
|
addUtilities({
|
|
1864
1955
|
".items-start": {
|
|
1865
1956
|
"align-items": "flex-start"
|
|
@@ -1878,7 +1969,7 @@ let corePlugins = {
|
|
|
1878
1969
|
}
|
|
1879
1970
|
});
|
|
1880
1971
|
},
|
|
1881
|
-
justifyContent: ({ addUtilities
|
|
1972
|
+
justifyContent: ({ addUtilities })=>{
|
|
1882
1973
|
addUtilities({
|
|
1883
1974
|
".justify-normal": {
|
|
1884
1975
|
"justify-content": "normal"
|
|
@@ -1906,7 +1997,7 @@ let corePlugins = {
|
|
|
1906
1997
|
}
|
|
1907
1998
|
});
|
|
1908
1999
|
},
|
|
1909
|
-
justifyItems: ({ addUtilities
|
|
2000
|
+
justifyItems: ({ addUtilities })=>{
|
|
1910
2001
|
addUtilities({
|
|
1911
2002
|
".justify-items-start": {
|
|
1912
2003
|
"justify-items": "start"
|
|
@@ -1944,19 +2035,10 @@ let corePlugins = {
|
|
|
1944
2035
|
]
|
|
1945
2036
|
]
|
|
1946
2037
|
]),
|
|
1947
|
-
space: ({ matchUtilities, addUtilities, theme
|
|
2038
|
+
space: ({ matchUtilities , addUtilities , theme })=>{
|
|
1948
2039
|
matchUtilities({
|
|
1949
2040
|
"space-x": (value)=>{
|
|
1950
2041
|
value = value === "0" ? "0px" : value;
|
|
1951
|
-
if ((0, _featureFlags.flagEnabled)(config(), "logicalSiblingUtilities")) {
|
|
1952
|
-
return {
|
|
1953
|
-
"& > :not([hidden]) ~ :not([hidden])": {
|
|
1954
|
-
"--tw-space-x-reverse": "0",
|
|
1955
|
-
"margin-inline-end": `calc(${value} * var(--tw-space-x-reverse))`,
|
|
1956
|
-
"margin-inline-start": `calc(${value} * calc(1 - var(--tw-space-x-reverse)))`
|
|
1957
|
-
}
|
|
1958
|
-
};
|
|
1959
|
-
}
|
|
1960
2042
|
return {
|
|
1961
2043
|
"& > :not([hidden]) ~ :not([hidden])": {
|
|
1962
2044
|
"--tw-space-x-reverse": "0",
|
|
@@ -1988,20 +2070,10 @@ let corePlugins = {
|
|
|
1988
2070
|
}
|
|
1989
2071
|
});
|
|
1990
2072
|
},
|
|
1991
|
-
divideWidth: ({ matchUtilities, addUtilities, theme
|
|
2073
|
+
divideWidth: ({ matchUtilities , addUtilities , theme })=>{
|
|
1992
2074
|
matchUtilities({
|
|
1993
2075
|
"divide-x": (value)=>{
|
|
1994
2076
|
value = value === "0" ? "0px" : value;
|
|
1995
|
-
if ((0, _featureFlags.flagEnabled)(config(), "logicalSiblingUtilities")) {
|
|
1996
|
-
return {
|
|
1997
|
-
"& > :not([hidden]) ~ :not([hidden])": {
|
|
1998
|
-
"@defaults border-width": {},
|
|
1999
|
-
"--tw-divide-x-reverse": "0",
|
|
2000
|
-
"border-inline-end-width": `calc(${value} * var(--tw-divide-x-reverse))`,
|
|
2001
|
-
"border-inline-start-width": `calc(${value} * calc(1 - var(--tw-divide-x-reverse)))`
|
|
2002
|
-
}
|
|
2003
|
-
};
|
|
2004
|
-
}
|
|
2005
2077
|
return {
|
|
2006
2078
|
"& > :not([hidden]) ~ :not([hidden])": {
|
|
2007
2079
|
"@defaults border-width": {},
|
|
@@ -2041,7 +2113,7 @@ let corePlugins = {
|
|
|
2041
2113
|
}
|
|
2042
2114
|
});
|
|
2043
2115
|
},
|
|
2044
|
-
divideStyle: ({ addUtilities
|
|
2116
|
+
divideStyle: ({ addUtilities })=>{
|
|
2045
2117
|
addUtilities({
|
|
2046
2118
|
".divide-solid > :not([hidden]) ~ :not([hidden])": {
|
|
2047
2119
|
"border-style": "solid"
|
|
@@ -2060,7 +2132,7 @@ let corePlugins = {
|
|
|
2060
2132
|
}
|
|
2061
2133
|
});
|
|
2062
2134
|
},
|
|
2063
|
-
divideColor: ({ matchUtilities, theme, corePlugins
|
|
2135
|
+
divideColor: ({ matchUtilities , theme , corePlugins })=>{
|
|
2064
2136
|
matchUtilities({
|
|
2065
2137
|
divide: (value)=>{
|
|
2066
2138
|
if (!corePlugins("divideOpacity")) {
|
|
@@ -2079,14 +2151,14 @@ let corePlugins = {
|
|
|
2079
2151
|
};
|
|
2080
2152
|
}
|
|
2081
2153
|
}, {
|
|
2082
|
-
values: (({ DEFAULT: _, ...colors })=>colors)((0, _flattenColorPalette.default)(theme("divideColor"))),
|
|
2154
|
+
values: (({ DEFAULT: _ , ...colors })=>colors)((0, _flattenColorPalette.default)(theme("divideColor"))),
|
|
2083
2155
|
type: [
|
|
2084
2156
|
"color",
|
|
2085
2157
|
"any"
|
|
2086
2158
|
]
|
|
2087
2159
|
});
|
|
2088
2160
|
},
|
|
2089
|
-
divideOpacity: ({ matchUtilities, theme
|
|
2161
|
+
divideOpacity: ({ matchUtilities , theme })=>{
|
|
2090
2162
|
matchUtilities({
|
|
2091
2163
|
"divide-opacity": (value)=>{
|
|
2092
2164
|
return {
|
|
@@ -2099,7 +2171,7 @@ let corePlugins = {
|
|
|
2099
2171
|
values: theme("divideOpacity")
|
|
2100
2172
|
});
|
|
2101
2173
|
},
|
|
2102
|
-
placeSelf: ({ addUtilities
|
|
2174
|
+
placeSelf: ({ addUtilities })=>{
|
|
2103
2175
|
addUtilities({
|
|
2104
2176
|
".place-self-auto": {
|
|
2105
2177
|
"place-self": "auto"
|
|
@@ -2118,7 +2190,7 @@ let corePlugins = {
|
|
|
2118
2190
|
}
|
|
2119
2191
|
});
|
|
2120
2192
|
},
|
|
2121
|
-
alignSelf: ({ addUtilities
|
|
2193
|
+
alignSelf: ({ addUtilities })=>{
|
|
2122
2194
|
addUtilities({
|
|
2123
2195
|
".self-auto": {
|
|
2124
2196
|
"align-self": "auto"
|
|
@@ -2140,7 +2212,7 @@ let corePlugins = {
|
|
|
2140
2212
|
}
|
|
2141
2213
|
});
|
|
2142
2214
|
},
|
|
2143
|
-
justifySelf: ({ addUtilities
|
|
2215
|
+
justifySelf: ({ addUtilities })=>{
|
|
2144
2216
|
addUtilities({
|
|
2145
2217
|
".justify-self-auto": {
|
|
2146
2218
|
"justify-self": "auto"
|
|
@@ -2159,7 +2231,7 @@ let corePlugins = {
|
|
|
2159
2231
|
}
|
|
2160
2232
|
});
|
|
2161
2233
|
},
|
|
2162
|
-
overflow: ({ addUtilities
|
|
2234
|
+
overflow: ({ addUtilities })=>{
|
|
2163
2235
|
addUtilities({
|
|
2164
2236
|
".overflow-auto": {
|
|
2165
2237
|
overflow: "auto"
|
|
@@ -2208,7 +2280,7 @@ let corePlugins = {
|
|
|
2208
2280
|
}
|
|
2209
2281
|
});
|
|
2210
2282
|
},
|
|
2211
|
-
overscrollBehavior: ({ addUtilities
|
|
2283
|
+
overscrollBehavior: ({ addUtilities })=>{
|
|
2212
2284
|
addUtilities({
|
|
2213
2285
|
".overscroll-auto": {
|
|
2214
2286
|
"overscroll-behavior": "auto"
|
|
@@ -2239,7 +2311,7 @@ let corePlugins = {
|
|
|
2239
2311
|
}
|
|
2240
2312
|
});
|
|
2241
2313
|
},
|
|
2242
|
-
scrollBehavior: ({ addUtilities
|
|
2314
|
+
scrollBehavior: ({ addUtilities })=>{
|
|
2243
2315
|
addUtilities({
|
|
2244
2316
|
".scroll-auto": {
|
|
2245
2317
|
"scroll-behavior": "auto"
|
|
@@ -2249,7 +2321,7 @@ let corePlugins = {
|
|
|
2249
2321
|
}
|
|
2250
2322
|
});
|
|
2251
2323
|
},
|
|
2252
|
-
textOverflow: ({ addUtilities
|
|
2324
|
+
textOverflow: ({ addUtilities })=>{
|
|
2253
2325
|
addUtilities({
|
|
2254
2326
|
".truncate": {
|
|
2255
2327
|
overflow: "hidden",
|
|
@@ -2267,7 +2339,7 @@ let corePlugins = {
|
|
|
2267
2339
|
}
|
|
2268
2340
|
});
|
|
2269
2341
|
},
|
|
2270
|
-
hyphens: ({ addUtilities
|
|
2342
|
+
hyphens: ({ addUtilities })=>{
|
|
2271
2343
|
addUtilities({
|
|
2272
2344
|
".hyphens-none": {
|
|
2273
2345
|
hyphens: "none"
|
|
@@ -2280,7 +2352,7 @@ let corePlugins = {
|
|
|
2280
2352
|
}
|
|
2281
2353
|
});
|
|
2282
2354
|
},
|
|
2283
|
-
whitespace: ({ addUtilities
|
|
2355
|
+
whitespace: ({ addUtilities })=>{
|
|
2284
2356
|
addUtilities({
|
|
2285
2357
|
".whitespace-normal": {
|
|
2286
2358
|
"white-space": "normal"
|
|
@@ -2302,7 +2374,7 @@ let corePlugins = {
|
|
|
2302
2374
|
}
|
|
2303
2375
|
});
|
|
2304
2376
|
},
|
|
2305
|
-
textWrap: ({ addUtilities
|
|
2377
|
+
textWrap: ({ addUtilities })=>{
|
|
2306
2378
|
addUtilities({
|
|
2307
2379
|
".text-wrap": {
|
|
2308
2380
|
"text-wrap": "wrap"
|
|
@@ -2312,10 +2384,13 @@ let corePlugins = {
|
|
|
2312
2384
|
},
|
|
2313
2385
|
".text-balance": {
|
|
2314
2386
|
"text-wrap": "balance"
|
|
2387
|
+
},
|
|
2388
|
+
".text-pretty": {
|
|
2389
|
+
"text-wrap": "pretty"
|
|
2315
2390
|
}
|
|
2316
2391
|
});
|
|
2317
2392
|
},
|
|
2318
|
-
wordBreak: ({ addUtilities
|
|
2393
|
+
wordBreak: ({ addUtilities })=>{
|
|
2319
2394
|
addUtilities({
|
|
2320
2395
|
".break-normal": {
|
|
2321
2396
|
"overflow-wrap": "normal",
|
|
@@ -2537,7 +2612,7 @@ let corePlugins = {
|
|
|
2537
2612
|
"length"
|
|
2538
2613
|
]
|
|
2539
2614
|
}),
|
|
2540
|
-
borderStyle: ({ addUtilities
|
|
2615
|
+
borderStyle: ({ addUtilities })=>{
|
|
2541
2616
|
addUtilities({
|
|
2542
2617
|
".border-solid": {
|
|
2543
2618
|
"border-style": "solid"
|
|
@@ -2559,7 +2634,7 @@ let corePlugins = {
|
|
|
2559
2634
|
}
|
|
2560
2635
|
});
|
|
2561
2636
|
},
|
|
2562
|
-
borderColor: ({ matchUtilities, theme, corePlugins
|
|
2637
|
+
borderColor: ({ matchUtilities , theme , corePlugins })=>{
|
|
2563
2638
|
matchUtilities({
|
|
2564
2639
|
border: (value)=>{
|
|
2565
2640
|
if (!corePlugins("borderOpacity")) {
|
|
@@ -2574,7 +2649,7 @@ let corePlugins = {
|
|
|
2574
2649
|
});
|
|
2575
2650
|
}
|
|
2576
2651
|
}, {
|
|
2577
|
-
values: (({ DEFAULT: _, ...colors })=>colors)((0, _flattenColorPalette.default)(theme("borderColor"))),
|
|
2652
|
+
values: (({ DEFAULT: _ , ...colors })=>colors)((0, _flattenColorPalette.default)(theme("borderColor"))),
|
|
2578
2653
|
type: [
|
|
2579
2654
|
"color",
|
|
2580
2655
|
"any"
|
|
@@ -2614,7 +2689,7 @@ let corePlugins = {
|
|
|
2614
2689
|
});
|
|
2615
2690
|
}
|
|
2616
2691
|
}, {
|
|
2617
|
-
values: (({ DEFAULT: _, ...colors })=>colors)((0, _flattenColorPalette.default)(theme("borderColor"))),
|
|
2692
|
+
values: (({ DEFAULT: _ , ...colors })=>colors)((0, _flattenColorPalette.default)(theme("borderColor"))),
|
|
2618
2693
|
type: [
|
|
2619
2694
|
"color",
|
|
2620
2695
|
"any"
|
|
@@ -2694,7 +2769,7 @@ let corePlugins = {
|
|
|
2694
2769
|
});
|
|
2695
2770
|
}
|
|
2696
2771
|
}, {
|
|
2697
|
-
values: (({ DEFAULT: _, ...colors })=>colors)((0, _flattenColorPalette.default)(theme("borderColor"))),
|
|
2772
|
+
values: (({ DEFAULT: _ , ...colors })=>colors)((0, _flattenColorPalette.default)(theme("borderColor"))),
|
|
2698
2773
|
type: [
|
|
2699
2774
|
"color",
|
|
2700
2775
|
"any"
|
|
@@ -2709,7 +2784,7 @@ let corePlugins = {
|
|
|
2709
2784
|
]
|
|
2710
2785
|
]
|
|
2711
2786
|
]),
|
|
2712
|
-
backgroundColor: ({ matchUtilities, theme, corePlugins
|
|
2787
|
+
backgroundColor: ({ matchUtilities , theme , corePlugins })=>{
|
|
2713
2788
|
matchUtilities({
|
|
2714
2789
|
bg: (value)=>{
|
|
2715
2790
|
if (!corePlugins("backgroundOpacity")) {
|
|
@@ -2757,7 +2832,7 @@ let corePlugins = {
|
|
|
2757
2832
|
function transparentTo(value) {
|
|
2758
2833
|
return (0, _withAlphaVariable.withAlphaValue)(value, 0, "rgb(255 255 255 / 0)");
|
|
2759
2834
|
}
|
|
2760
|
-
return function({ matchUtilities, theme, addDefaults
|
|
2835
|
+
return function({ matchUtilities , theme , addDefaults }) {
|
|
2761
2836
|
addDefaults("gradient-color-stops", {
|
|
2762
2837
|
"--tw-gradient-from-position": " ",
|
|
2763
2838
|
"--tw-gradient-via-position": " ",
|
|
@@ -2827,7 +2902,7 @@ let corePlugins = {
|
|
|
2827
2902
|
}, positionOptions);
|
|
2828
2903
|
};
|
|
2829
2904
|
})(),
|
|
2830
|
-
boxDecorationBreak: ({ addUtilities
|
|
2905
|
+
boxDecorationBreak: ({ addUtilities })=>{
|
|
2831
2906
|
addUtilities({
|
|
2832
2907
|
".decoration-slice": {
|
|
2833
2908
|
"box-decoration-break": "slice"
|
|
@@ -2858,7 +2933,7 @@ let corePlugins = {
|
|
|
2858
2933
|
"size"
|
|
2859
2934
|
]
|
|
2860
2935
|
}),
|
|
2861
|
-
backgroundAttachment: ({ addUtilities
|
|
2936
|
+
backgroundAttachment: ({ addUtilities })=>{
|
|
2862
2937
|
addUtilities({
|
|
2863
2938
|
".bg-fixed": {
|
|
2864
2939
|
"background-attachment": "fixed"
|
|
@@ -2871,7 +2946,7 @@ let corePlugins = {
|
|
|
2871
2946
|
}
|
|
2872
2947
|
});
|
|
2873
2948
|
},
|
|
2874
|
-
backgroundClip: ({ addUtilities
|
|
2949
|
+
backgroundClip: ({ addUtilities })=>{
|
|
2875
2950
|
addUtilities({
|
|
2876
2951
|
".bg-clip-border": {
|
|
2877
2952
|
"background-clip": "border-box"
|
|
@@ -2905,7 +2980,7 @@ let corePlugins = {
|
|
|
2905
2980
|
]
|
|
2906
2981
|
]
|
|
2907
2982
|
}),
|
|
2908
|
-
backgroundRepeat: ({ addUtilities
|
|
2983
|
+
backgroundRepeat: ({ addUtilities })=>{
|
|
2909
2984
|
addUtilities({
|
|
2910
2985
|
".bg-repeat": {
|
|
2911
2986
|
"background-repeat": "repeat"
|
|
@@ -2927,7 +3002,7 @@ let corePlugins = {
|
|
|
2927
3002
|
}
|
|
2928
3003
|
});
|
|
2929
3004
|
},
|
|
2930
|
-
backgroundOrigin: ({ addUtilities
|
|
3005
|
+
backgroundOrigin: ({ addUtilities })=>{
|
|
2931
3006
|
addUtilities({
|
|
2932
3007
|
".bg-origin-border": {
|
|
2933
3008
|
"background-origin": "border-box"
|
|
@@ -2940,7 +3015,7 @@ let corePlugins = {
|
|
|
2940
3015
|
}
|
|
2941
3016
|
});
|
|
2942
3017
|
},
|
|
2943
|
-
fill: ({ matchUtilities, theme
|
|
3018
|
+
fill: ({ matchUtilities , theme })=>{
|
|
2944
3019
|
matchUtilities({
|
|
2945
3020
|
fill: (value)=>{
|
|
2946
3021
|
return {
|
|
@@ -2955,7 +3030,7 @@ let corePlugins = {
|
|
|
2955
3030
|
]
|
|
2956
3031
|
});
|
|
2957
3032
|
},
|
|
2958
|
-
stroke: ({ matchUtilities, theme
|
|
3033
|
+
stroke: ({ matchUtilities , theme })=>{
|
|
2959
3034
|
matchUtilities({
|
|
2960
3035
|
stroke: (value)=>{
|
|
2961
3036
|
return {
|
|
@@ -2985,7 +3060,7 @@ let corePlugins = {
|
|
|
2985
3060
|
"percentage"
|
|
2986
3061
|
]
|
|
2987
3062
|
}),
|
|
2988
|
-
objectFit: ({ addUtilities
|
|
3063
|
+
objectFit: ({ addUtilities })=>{
|
|
2989
3064
|
addUtilities({
|
|
2990
3065
|
".object-contain": {
|
|
2991
3066
|
"object-fit": "contain"
|
|
@@ -3074,7 +3149,7 @@ let corePlugins = {
|
|
|
3074
3149
|
]
|
|
3075
3150
|
]
|
|
3076
3151
|
]),
|
|
3077
|
-
textAlign: ({ addUtilities
|
|
3152
|
+
textAlign: ({ addUtilities })=>{
|
|
3078
3153
|
addUtilities({
|
|
3079
3154
|
".text-left": {
|
|
3080
3155
|
"text-align": "left"
|
|
@@ -3106,7 +3181,7 @@ let corePlugins = {
|
|
|
3106
3181
|
], {
|
|
3107
3182
|
supportsNegativeValues: true
|
|
3108
3183
|
}),
|
|
3109
|
-
verticalAlign: ({ addUtilities, matchUtilities
|
|
3184
|
+
verticalAlign: ({ addUtilities , matchUtilities })=>{
|
|
3110
3185
|
addUtilities({
|
|
3111
3186
|
".align-baseline": {
|
|
3112
3187
|
"vertical-align": "baseline"
|
|
@@ -3139,13 +3214,13 @@ let corePlugins = {
|
|
|
3139
3214
|
})
|
|
3140
3215
|
});
|
|
3141
3216
|
},
|
|
3142
|
-
fontFamily: ({ matchUtilities, theme
|
|
3217
|
+
fontFamily: ({ matchUtilities , theme })=>{
|
|
3143
3218
|
matchUtilities({
|
|
3144
3219
|
font: (value)=>{
|
|
3145
3220
|
let [families, options = {}] = Array.isArray(value) && (0, _isPlainObject.default)(value[1]) ? value : [
|
|
3146
3221
|
value
|
|
3147
3222
|
];
|
|
3148
|
-
let { fontFeatureSettings, fontVariationSettings
|
|
3223
|
+
let { fontFeatureSettings , fontVariationSettings } = options;
|
|
3149
3224
|
return {
|
|
3150
3225
|
"font-family": Array.isArray(families) ? families.join(", ") : families,
|
|
3151
3226
|
...fontFeatureSettings === undefined ? {} : {
|
|
@@ -3165,9 +3240,9 @@ let corePlugins = {
|
|
|
3165
3240
|
]
|
|
3166
3241
|
});
|
|
3167
3242
|
},
|
|
3168
|
-
fontSize: ({ matchUtilities, theme
|
|
3243
|
+
fontSize: ({ matchUtilities , theme })=>{
|
|
3169
3244
|
matchUtilities({
|
|
3170
|
-
text: (value, { modifier
|
|
3245
|
+
text: (value, { modifier })=>{
|
|
3171
3246
|
let [fontSize, options] = Array.isArray(value) ? value : [
|
|
3172
3247
|
value
|
|
3173
3248
|
];
|
|
@@ -3177,7 +3252,7 @@ let corePlugins = {
|
|
|
3177
3252
|
"line-height": modifier
|
|
3178
3253
|
};
|
|
3179
3254
|
}
|
|
3180
|
-
let { lineHeight, letterSpacing, fontWeight
|
|
3255
|
+
let { lineHeight , letterSpacing , fontWeight } = (0, _isPlainObject.default)(options) ? options : {
|
|
3181
3256
|
lineHeight: options
|
|
3182
3257
|
};
|
|
3183
3258
|
return {
|
|
@@ -3218,7 +3293,7 @@ let corePlugins = {
|
|
|
3218
3293
|
"any"
|
|
3219
3294
|
]
|
|
3220
3295
|
}),
|
|
3221
|
-
textTransform: ({ addUtilities
|
|
3296
|
+
textTransform: ({ addUtilities })=>{
|
|
3222
3297
|
addUtilities({
|
|
3223
3298
|
".uppercase": {
|
|
3224
3299
|
"text-transform": "uppercase"
|
|
@@ -3234,7 +3309,7 @@ let corePlugins = {
|
|
|
3234
3309
|
}
|
|
3235
3310
|
});
|
|
3236
3311
|
},
|
|
3237
|
-
fontStyle: ({ addUtilities
|
|
3312
|
+
fontStyle: ({ addUtilities })=>{
|
|
3238
3313
|
addUtilities({
|
|
3239
3314
|
".italic": {
|
|
3240
3315
|
"font-style": "italic"
|
|
@@ -3244,7 +3319,7 @@ let corePlugins = {
|
|
|
3244
3319
|
}
|
|
3245
3320
|
});
|
|
3246
3321
|
},
|
|
3247
|
-
fontVariantNumeric: ({ addDefaults, addUtilities
|
|
3322
|
+
fontVariantNumeric: ({ addDefaults , addUtilities })=>{
|
|
3248
3323
|
let cssFontVariantNumericValue = "var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)";
|
|
3249
3324
|
addDefaults("font-variant-numeric", {
|
|
3250
3325
|
"--tw-ordinal": " ",
|
|
@@ -3317,7 +3392,7 @@ let corePlugins = {
|
|
|
3317
3392
|
], {
|
|
3318
3393
|
supportsNegativeValues: true
|
|
3319
3394
|
}),
|
|
3320
|
-
textColor: ({ matchUtilities, theme, corePlugins
|
|
3395
|
+
textColor: ({ matchUtilities , theme , corePlugins })=>{
|
|
3321
3396
|
matchUtilities({
|
|
3322
3397
|
text: (value)=>{
|
|
3323
3398
|
if (!corePlugins("textOpacity")) {
|
|
@@ -3347,7 +3422,7 @@ let corePlugins = {
|
|
|
3347
3422
|
]
|
|
3348
3423
|
]
|
|
3349
3424
|
]),
|
|
3350
|
-
textDecoration: ({ addUtilities
|
|
3425
|
+
textDecoration: ({ addUtilities })=>{
|
|
3351
3426
|
addUtilities({
|
|
3352
3427
|
".underline": {
|
|
3353
3428
|
"text-decoration-line": "underline"
|
|
@@ -3363,7 +3438,7 @@ let corePlugins = {
|
|
|
3363
3438
|
}
|
|
3364
3439
|
});
|
|
3365
3440
|
},
|
|
3366
|
-
textDecorationColor: ({ matchUtilities, theme
|
|
3441
|
+
textDecorationColor: ({ matchUtilities , theme })=>{
|
|
3367
3442
|
matchUtilities({
|
|
3368
3443
|
decoration: (value)=>{
|
|
3369
3444
|
return {
|
|
@@ -3378,7 +3453,7 @@ let corePlugins = {
|
|
|
3378
3453
|
]
|
|
3379
3454
|
});
|
|
3380
3455
|
},
|
|
3381
|
-
textDecorationStyle: ({ addUtilities
|
|
3456
|
+
textDecorationStyle: ({ addUtilities })=>{
|
|
3382
3457
|
addUtilities({
|
|
3383
3458
|
".decoration-solid": {
|
|
3384
3459
|
"text-decoration-style": "solid"
|
|
@@ -3424,7 +3499,7 @@ let corePlugins = {
|
|
|
3424
3499
|
"any"
|
|
3425
3500
|
]
|
|
3426
3501
|
}),
|
|
3427
|
-
fontSmoothing: ({ addUtilities
|
|
3502
|
+
fontSmoothing: ({ addUtilities })=>{
|
|
3428
3503
|
addUtilities({
|
|
3429
3504
|
".antialiased": {
|
|
3430
3505
|
"-webkit-font-smoothing": "antialiased",
|
|
@@ -3436,7 +3511,7 @@ let corePlugins = {
|
|
|
3436
3511
|
}
|
|
3437
3512
|
});
|
|
3438
3513
|
},
|
|
3439
|
-
placeholderColor: ({ matchUtilities, theme, corePlugins
|
|
3514
|
+
placeholderColor: ({ matchUtilities , theme , corePlugins })=>{
|
|
3440
3515
|
matchUtilities({
|
|
3441
3516
|
placeholder: (value)=>{
|
|
3442
3517
|
if (!corePlugins("placeholderOpacity")) {
|
|
@@ -3462,7 +3537,7 @@ let corePlugins = {
|
|
|
3462
3537
|
]
|
|
3463
3538
|
});
|
|
3464
3539
|
},
|
|
3465
|
-
placeholderOpacity: ({ matchUtilities, theme
|
|
3540
|
+
placeholderOpacity: ({ matchUtilities , theme })=>{
|
|
3466
3541
|
matchUtilities({
|
|
3467
3542
|
"placeholder-opacity": (value)=>{
|
|
3468
3543
|
return {
|
|
@@ -3475,7 +3550,7 @@ let corePlugins = {
|
|
|
3475
3550
|
values: theme("placeholderOpacity")
|
|
3476
3551
|
});
|
|
3477
3552
|
},
|
|
3478
|
-
caretColor: ({ matchUtilities, theme
|
|
3553
|
+
caretColor: ({ matchUtilities , theme })=>{
|
|
3479
3554
|
matchUtilities({
|
|
3480
3555
|
caret: (value)=>{
|
|
3481
3556
|
return {
|
|
@@ -3490,7 +3565,7 @@ let corePlugins = {
|
|
|
3490
3565
|
]
|
|
3491
3566
|
});
|
|
3492
3567
|
},
|
|
3493
|
-
accentColor: ({ matchUtilities, theme
|
|
3568
|
+
accentColor: ({ matchUtilities , theme })=>{
|
|
3494
3569
|
matchUtilities({
|
|
3495
3570
|
accent: (value)=>{
|
|
3496
3571
|
return {
|
|
@@ -3513,7 +3588,7 @@ let corePlugins = {
|
|
|
3513
3588
|
]
|
|
3514
3589
|
]
|
|
3515
3590
|
]),
|
|
3516
|
-
backgroundBlendMode: ({ addUtilities
|
|
3591
|
+
backgroundBlendMode: ({ addUtilities })=>{
|
|
3517
3592
|
addUtilities({
|
|
3518
3593
|
".bg-blend-normal": {
|
|
3519
3594
|
"background-blend-mode": "normal"
|
|
@@ -3565,7 +3640,7 @@ let corePlugins = {
|
|
|
3565
3640
|
}
|
|
3566
3641
|
});
|
|
3567
3642
|
},
|
|
3568
|
-
mixBlendMode: ({ addUtilities
|
|
3643
|
+
mixBlendMode: ({ addUtilities })=>{
|
|
3569
3644
|
addUtilities({
|
|
3570
3645
|
".mix-blend-normal": {
|
|
3571
3646
|
"mix-blend-mode": "normal"
|
|
@@ -3615,6 +3690,9 @@ let corePlugins = {
|
|
|
3615
3690
|
".mix-blend-luminosity": {
|
|
3616
3691
|
"mix-blend-mode": "luminosity"
|
|
3617
3692
|
},
|
|
3693
|
+
".mix-blend-plus-darker": {
|
|
3694
|
+
"mix-blend-mode": "plus-darker"
|
|
3695
|
+
},
|
|
3618
3696
|
".mix-blend-plus-lighter": {
|
|
3619
3697
|
"mix-blend-mode": "plus-lighter"
|
|
3620
3698
|
}
|
|
@@ -3627,8 +3705,8 @@ let corePlugins = {
|
|
|
3627
3705
|
`var(--tw-ring-shadow, 0 0 #0000)`,
|
|
3628
3706
|
`var(--tw-shadow)`
|
|
3629
3707
|
].join(", ");
|
|
3630
|
-
return function({ matchUtilities, addDefaults, theme
|
|
3631
|
-
addDefaults("
|
|
3708
|
+
return function({ matchUtilities , addDefaults , theme }) {
|
|
3709
|
+
addDefaults("box-shadow", {
|
|
3632
3710
|
"--tw-ring-offset-shadow": "0 0 #0000",
|
|
3633
3711
|
"--tw-ring-shadow": "0 0 #0000",
|
|
3634
3712
|
"--tw-shadow": "0 0 #0000",
|
|
@@ -3660,7 +3738,7 @@ let corePlugins = {
|
|
|
3660
3738
|
});
|
|
3661
3739
|
};
|
|
3662
3740
|
})(),
|
|
3663
|
-
boxShadowColor: ({ matchUtilities, theme
|
|
3741
|
+
boxShadowColor: ({ matchUtilities , theme })=>{
|
|
3664
3742
|
matchUtilities({
|
|
3665
3743
|
shadow: (value)=>{
|
|
3666
3744
|
return {
|
|
@@ -3676,7 +3754,7 @@ let corePlugins = {
|
|
|
3676
3754
|
]
|
|
3677
3755
|
});
|
|
3678
3756
|
},
|
|
3679
|
-
outlineStyle: ({ addUtilities
|
|
3757
|
+
outlineStyle: ({ addUtilities })=>{
|
|
3680
3758
|
addUtilities({
|
|
3681
3759
|
".outline-none": {
|
|
3682
3760
|
outline: "2px solid transparent",
|
|
@@ -3726,7 +3804,7 @@ let corePlugins = {
|
|
|
3726
3804
|
],
|
|
3727
3805
|
supportsNegativeValues: true
|
|
3728
3806
|
}),
|
|
3729
|
-
outlineColor: ({ matchUtilities, theme
|
|
3807
|
+
outlineColor: ({ matchUtilities , theme })=>{
|
|
3730
3808
|
matchUtilities({
|
|
3731
3809
|
outline: (value)=>{
|
|
3732
3810
|
return {
|
|
@@ -3741,7 +3819,7 @@ let corePlugins = {
|
|
|
3741
3819
|
]
|
|
3742
3820
|
});
|
|
3743
3821
|
},
|
|
3744
|
-
ringWidth: ({ matchUtilities, addDefaults, addUtilities, theme, config
|
|
3822
|
+
ringWidth: ({ matchUtilities , addDefaults , addUtilities , theme , config })=>{
|
|
3745
3823
|
let ringColorDefault = (()=>{
|
|
3746
3824
|
var _theme, _theme1;
|
|
3747
3825
|
if ((0, _featureFlags.flagEnabled)(config(), "respectDefaultRingColorOpacity")) {
|
|
@@ -3787,7 +3865,7 @@ let corePlugins = {
|
|
|
3787
3865
|
}
|
|
3788
3866
|
});
|
|
3789
3867
|
},
|
|
3790
|
-
ringColor: ({ matchUtilities, theme, corePlugins
|
|
3868
|
+
ringColor: ({ matchUtilities , theme , corePlugins })=>{
|
|
3791
3869
|
matchUtilities({
|
|
3792
3870
|
ring: (value)=>{
|
|
3793
3871
|
if (!corePlugins("ringOpacity")) {
|
|
@@ -3810,7 +3888,7 @@ let corePlugins = {
|
|
|
3810
3888
|
});
|
|
3811
3889
|
},
|
|
3812
3890
|
ringOpacity: (helpers)=>{
|
|
3813
|
-
let { config
|
|
3891
|
+
let { config } = helpers;
|
|
3814
3892
|
return (0, _createUtilityPlugin.default)("ringOpacity", [
|
|
3815
3893
|
[
|
|
3816
3894
|
"ring-opacity",
|
|
@@ -3832,7 +3910,7 @@ let corePlugins = {
|
|
|
3832
3910
|
], {
|
|
3833
3911
|
type: "length"
|
|
3834
3912
|
}),
|
|
3835
|
-
ringOffsetColor: ({ matchUtilities, theme
|
|
3913
|
+
ringOffsetColor: ({ matchUtilities , theme })=>{
|
|
3836
3914
|
matchUtilities({
|
|
3837
3915
|
"ring-offset": (value)=>{
|
|
3838
3916
|
return {
|
|
@@ -3847,11 +3925,11 @@ let corePlugins = {
|
|
|
3847
3925
|
]
|
|
3848
3926
|
});
|
|
3849
3927
|
},
|
|
3850
|
-
blur: ({ matchUtilities, theme
|
|
3928
|
+
blur: ({ matchUtilities , theme })=>{
|
|
3851
3929
|
matchUtilities({
|
|
3852
3930
|
blur: (value)=>{
|
|
3853
3931
|
return {
|
|
3854
|
-
"--tw-blur": `blur(${value})`,
|
|
3932
|
+
"--tw-blur": value.trim() === "" ? " " : `blur(${value})`,
|
|
3855
3933
|
"@defaults filter": {},
|
|
3856
3934
|
filter: cssFilterValue
|
|
3857
3935
|
};
|
|
@@ -3860,7 +3938,7 @@ let corePlugins = {
|
|
|
3860
3938
|
values: theme("blur")
|
|
3861
3939
|
});
|
|
3862
3940
|
},
|
|
3863
|
-
brightness: ({ matchUtilities, theme
|
|
3941
|
+
brightness: ({ matchUtilities , theme })=>{
|
|
3864
3942
|
matchUtilities({
|
|
3865
3943
|
brightness: (value)=>{
|
|
3866
3944
|
return {
|
|
@@ -3873,7 +3951,7 @@ let corePlugins = {
|
|
|
3873
3951
|
values: theme("brightness")
|
|
3874
3952
|
});
|
|
3875
3953
|
},
|
|
3876
|
-
contrast: ({ matchUtilities, theme
|
|
3954
|
+
contrast: ({ matchUtilities , theme })=>{
|
|
3877
3955
|
matchUtilities({
|
|
3878
3956
|
contrast: (value)=>{
|
|
3879
3957
|
return {
|
|
@@ -3886,7 +3964,7 @@ let corePlugins = {
|
|
|
3886
3964
|
values: theme("contrast")
|
|
3887
3965
|
});
|
|
3888
3966
|
},
|
|
3889
|
-
dropShadow: ({ matchUtilities, theme
|
|
3967
|
+
dropShadow: ({ matchUtilities , theme })=>{
|
|
3890
3968
|
matchUtilities({
|
|
3891
3969
|
"drop-shadow": (value)=>{
|
|
3892
3970
|
return {
|
|
@@ -3899,7 +3977,7 @@ let corePlugins = {
|
|
|
3899
3977
|
values: theme("dropShadow")
|
|
3900
3978
|
});
|
|
3901
3979
|
},
|
|
3902
|
-
grayscale: ({ matchUtilities, theme
|
|
3980
|
+
grayscale: ({ matchUtilities , theme })=>{
|
|
3903
3981
|
matchUtilities({
|
|
3904
3982
|
grayscale: (value)=>{
|
|
3905
3983
|
return {
|
|
@@ -3912,7 +3990,7 @@ let corePlugins = {
|
|
|
3912
3990
|
values: theme("grayscale")
|
|
3913
3991
|
});
|
|
3914
3992
|
},
|
|
3915
|
-
hueRotate: ({ matchUtilities, theme
|
|
3993
|
+
hueRotate: ({ matchUtilities , theme })=>{
|
|
3916
3994
|
matchUtilities({
|
|
3917
3995
|
"hue-rotate": (value)=>{
|
|
3918
3996
|
return {
|
|
@@ -3926,7 +4004,7 @@ let corePlugins = {
|
|
|
3926
4004
|
supportsNegativeValues: true
|
|
3927
4005
|
});
|
|
3928
4006
|
},
|
|
3929
|
-
invert: ({ matchUtilities, theme
|
|
4007
|
+
invert: ({ matchUtilities , theme })=>{
|
|
3930
4008
|
matchUtilities({
|
|
3931
4009
|
invert: (value)=>{
|
|
3932
4010
|
return {
|
|
@@ -3939,7 +4017,7 @@ let corePlugins = {
|
|
|
3939
4017
|
values: theme("invert")
|
|
3940
4018
|
});
|
|
3941
4019
|
},
|
|
3942
|
-
saturate: ({ matchUtilities, theme
|
|
4020
|
+
saturate: ({ matchUtilities , theme })=>{
|
|
3943
4021
|
matchUtilities({
|
|
3944
4022
|
saturate: (value)=>{
|
|
3945
4023
|
return {
|
|
@@ -3952,7 +4030,7 @@ let corePlugins = {
|
|
|
3952
4030
|
values: theme("saturate")
|
|
3953
4031
|
});
|
|
3954
4032
|
},
|
|
3955
|
-
sepia: ({ matchUtilities, theme
|
|
4033
|
+
sepia: ({ matchUtilities , theme })=>{
|
|
3956
4034
|
matchUtilities({
|
|
3957
4035
|
sepia: (value)=>{
|
|
3958
4036
|
return {
|
|
@@ -3965,7 +4043,7 @@ let corePlugins = {
|
|
|
3965
4043
|
values: theme("sepia")
|
|
3966
4044
|
});
|
|
3967
4045
|
},
|
|
3968
|
-
filter: ({ addDefaults, addUtilities
|
|
4046
|
+
filter: ({ addDefaults , addUtilities })=>{
|
|
3969
4047
|
addDefaults("filter", {
|
|
3970
4048
|
"--tw-blur": " ",
|
|
3971
4049
|
"--tw-brightness": " ",
|
|
@@ -3987,11 +4065,11 @@ let corePlugins = {
|
|
|
3987
4065
|
}
|
|
3988
4066
|
});
|
|
3989
4067
|
},
|
|
3990
|
-
backdropBlur: ({ matchUtilities, theme
|
|
4068
|
+
backdropBlur: ({ matchUtilities , theme })=>{
|
|
3991
4069
|
matchUtilities({
|
|
3992
4070
|
"backdrop-blur": (value)=>{
|
|
3993
4071
|
return {
|
|
3994
|
-
"--tw-backdrop-blur": `blur(${value})`,
|
|
4072
|
+
"--tw-backdrop-blur": value.trim() === "" ? " " : `blur(${value})`,
|
|
3995
4073
|
"@defaults backdrop-filter": {},
|
|
3996
4074
|
"backdrop-filter": cssBackdropFilterValue
|
|
3997
4075
|
};
|
|
@@ -4000,7 +4078,7 @@ let corePlugins = {
|
|
|
4000
4078
|
values: theme("backdropBlur")
|
|
4001
4079
|
});
|
|
4002
4080
|
},
|
|
4003
|
-
backdropBrightness: ({ matchUtilities, theme
|
|
4081
|
+
backdropBrightness: ({ matchUtilities , theme })=>{
|
|
4004
4082
|
matchUtilities({
|
|
4005
4083
|
"backdrop-brightness": (value)=>{
|
|
4006
4084
|
return {
|
|
@@ -4013,7 +4091,7 @@ let corePlugins = {
|
|
|
4013
4091
|
values: theme("backdropBrightness")
|
|
4014
4092
|
});
|
|
4015
4093
|
},
|
|
4016
|
-
backdropContrast: ({ matchUtilities, theme
|
|
4094
|
+
backdropContrast: ({ matchUtilities , theme })=>{
|
|
4017
4095
|
matchUtilities({
|
|
4018
4096
|
"backdrop-contrast": (value)=>{
|
|
4019
4097
|
return {
|
|
@@ -4026,7 +4104,7 @@ let corePlugins = {
|
|
|
4026
4104
|
values: theme("backdropContrast")
|
|
4027
4105
|
});
|
|
4028
4106
|
},
|
|
4029
|
-
backdropGrayscale: ({ matchUtilities, theme
|
|
4107
|
+
backdropGrayscale: ({ matchUtilities , theme })=>{
|
|
4030
4108
|
matchUtilities({
|
|
4031
4109
|
"backdrop-grayscale": (value)=>{
|
|
4032
4110
|
return {
|
|
@@ -4039,7 +4117,7 @@ let corePlugins = {
|
|
|
4039
4117
|
values: theme("backdropGrayscale")
|
|
4040
4118
|
});
|
|
4041
4119
|
},
|
|
4042
|
-
backdropHueRotate: ({ matchUtilities, theme
|
|
4120
|
+
backdropHueRotate: ({ matchUtilities , theme })=>{
|
|
4043
4121
|
matchUtilities({
|
|
4044
4122
|
"backdrop-hue-rotate": (value)=>{
|
|
4045
4123
|
return {
|
|
@@ -4053,7 +4131,7 @@ let corePlugins = {
|
|
|
4053
4131
|
supportsNegativeValues: true
|
|
4054
4132
|
});
|
|
4055
4133
|
},
|
|
4056
|
-
backdropInvert: ({ matchUtilities, theme
|
|
4134
|
+
backdropInvert: ({ matchUtilities , theme })=>{
|
|
4057
4135
|
matchUtilities({
|
|
4058
4136
|
"backdrop-invert": (value)=>{
|
|
4059
4137
|
return {
|
|
@@ -4066,7 +4144,7 @@ let corePlugins = {
|
|
|
4066
4144
|
values: theme("backdropInvert")
|
|
4067
4145
|
});
|
|
4068
4146
|
},
|
|
4069
|
-
backdropOpacity: ({ matchUtilities, theme
|
|
4147
|
+
backdropOpacity: ({ matchUtilities , theme })=>{
|
|
4070
4148
|
matchUtilities({
|
|
4071
4149
|
"backdrop-opacity": (value)=>{
|
|
4072
4150
|
return {
|
|
@@ -4079,7 +4157,7 @@ let corePlugins = {
|
|
|
4079
4157
|
values: theme("backdropOpacity")
|
|
4080
4158
|
});
|
|
4081
4159
|
},
|
|
4082
|
-
backdropSaturate: ({ matchUtilities, theme
|
|
4160
|
+
backdropSaturate: ({ matchUtilities , theme })=>{
|
|
4083
4161
|
matchUtilities({
|
|
4084
4162
|
"backdrop-saturate": (value)=>{
|
|
4085
4163
|
return {
|
|
@@ -4092,7 +4170,7 @@ let corePlugins = {
|
|
|
4092
4170
|
values: theme("backdropSaturate")
|
|
4093
4171
|
});
|
|
4094
4172
|
},
|
|
4095
|
-
backdropSepia: ({ matchUtilities, theme
|
|
4173
|
+
backdropSepia: ({ matchUtilities , theme })=>{
|
|
4096
4174
|
matchUtilities({
|
|
4097
4175
|
"backdrop-sepia": (value)=>{
|
|
4098
4176
|
return {
|
|
@@ -4105,7 +4183,7 @@ let corePlugins = {
|
|
|
4105
4183
|
values: theme("backdropSepia")
|
|
4106
4184
|
});
|
|
4107
4185
|
},
|
|
4108
|
-
backdropFilter: ({ addDefaults, addUtilities
|
|
4186
|
+
backdropFilter: ({ addDefaults , addUtilities })=>{
|
|
4109
4187
|
addDefaults("backdrop-filter", {
|
|
4110
4188
|
"--tw-backdrop-blur": " ",
|
|
4111
4189
|
"--tw-backdrop-brightness": " ",
|
|
@@ -4127,7 +4205,7 @@ let corePlugins = {
|
|
|
4127
4205
|
}
|
|
4128
4206
|
});
|
|
4129
4207
|
},
|
|
4130
|
-
transitionProperty: ({ matchUtilities, theme
|
|
4208
|
+
transitionProperty: ({ matchUtilities , theme })=>{
|
|
4131
4209
|
let defaultTimingFunction = theme("transitionTimingFunction.DEFAULT");
|
|
4132
4210
|
let defaultDuration = theme("transitionDuration.DEFAULT");
|
|
4133
4211
|
matchUtilities({
|
|
@@ -4180,6 +4258,51 @@ let corePlugins = {
|
|
|
4180
4258
|
]
|
|
4181
4259
|
]
|
|
4182
4260
|
]),
|
|
4261
|
+
contain: ({ addDefaults , addUtilities })=>{
|
|
4262
|
+
let cssContainValue = "var(--tw-contain-size) var(--tw-contain-layout) var(--tw-contain-paint) var(--tw-contain-style)";
|
|
4263
|
+
addDefaults("contain", {
|
|
4264
|
+
"--tw-contain-size": " ",
|
|
4265
|
+
"--tw-contain-layout": " ",
|
|
4266
|
+
"--tw-contain-paint": " ",
|
|
4267
|
+
"--tw-contain-style": " "
|
|
4268
|
+
});
|
|
4269
|
+
addUtilities({
|
|
4270
|
+
".contain-none": {
|
|
4271
|
+
contain: "none"
|
|
4272
|
+
},
|
|
4273
|
+
".contain-content": {
|
|
4274
|
+
contain: "content"
|
|
4275
|
+
},
|
|
4276
|
+
".contain-strict": {
|
|
4277
|
+
contain: "strict"
|
|
4278
|
+
},
|
|
4279
|
+
".contain-size": {
|
|
4280
|
+
"@defaults contain": {},
|
|
4281
|
+
"--tw-contain-size": "size",
|
|
4282
|
+
contain: cssContainValue
|
|
4283
|
+
},
|
|
4284
|
+
".contain-inline-size": {
|
|
4285
|
+
"@defaults contain": {},
|
|
4286
|
+
"--tw-contain-size": "inline-size",
|
|
4287
|
+
contain: cssContainValue
|
|
4288
|
+
},
|
|
4289
|
+
".contain-layout": {
|
|
4290
|
+
"@defaults contain": {},
|
|
4291
|
+
"--tw-contain-layout": "layout",
|
|
4292
|
+
contain: cssContainValue
|
|
4293
|
+
},
|
|
4294
|
+
".contain-paint": {
|
|
4295
|
+
"@defaults contain": {},
|
|
4296
|
+
"--tw-contain-paint": "paint",
|
|
4297
|
+
contain: cssContainValue
|
|
4298
|
+
},
|
|
4299
|
+
".contain-style": {
|
|
4300
|
+
"@defaults contain": {},
|
|
4301
|
+
"--tw-contain-style": "style",
|
|
4302
|
+
contain: cssContainValue
|
|
4303
|
+
}
|
|
4304
|
+
});
|
|
4305
|
+
},
|
|
4183
4306
|
content: (0, _createUtilityPlugin.default)("content", [
|
|
4184
4307
|
[
|
|
4185
4308
|
"content",
|
|
@@ -4191,5 +4314,15 @@ let corePlugins = {
|
|
|
4191
4314
|
]
|
|
4192
4315
|
]
|
|
4193
4316
|
]
|
|
4194
|
-
])
|
|
4317
|
+
]),
|
|
4318
|
+
forcedColorAdjust: ({ addUtilities })=>{
|
|
4319
|
+
addUtilities({
|
|
4320
|
+
".forced-color-adjust-auto": {
|
|
4321
|
+
"forced-color-adjust": "auto"
|
|
4322
|
+
},
|
|
4323
|
+
".forced-color-adjust-none": {
|
|
4324
|
+
"forced-color-adjust": "none"
|
|
4325
|
+
}
|
|
4326
|
+
});
|
|
4327
|
+
}
|
|
4195
4328
|
};
|