tailwindcss 0.0.0-insiders.ba2fd32 → 0.0.0-insiders.bbafc8e
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 +292 -3
- package/LICENSE +1 -2
- package/README.md +8 -4
- package/colors.js +2 -1
- package/defaultConfig.js +2 -1
- package/defaultTheme.js +2 -1
- package/lib/cli.js +96 -61
- package/lib/constants.js +1 -1
- package/lib/corePluginList.js +4 -0
- package/lib/corePlugins.js +399 -374
- package/lib/css/preflight.css +6 -5
- package/lib/featureFlags.js +7 -8
- package/lib/index.js +12 -3
- package/lib/lib/cacheInvalidation.js +69 -0
- package/lib/lib/collapseAdjacentRules.js +14 -1
- package/lib/lib/collapseDuplicateDeclarations.js +54 -3
- package/lib/lib/defaultExtractor.js +44 -0
- package/lib/lib/detectNesting.js +17 -2
- package/lib/lib/evaluateTailwindFunctions.js +10 -6
- package/lib/lib/expandApplyAtRules.js +264 -59
- package/lib/lib/expandTailwindAtRules.js +63 -46
- package/lib/lib/generateRules.js +181 -43
- package/lib/lib/normalizeTailwindDirectives.js +10 -2
- package/lib/lib/partitionApplyAtRules.js +53 -0
- package/lib/lib/resolveDefaultsAtRules.js +32 -14
- package/lib/lib/setupContextUtils.js +152 -153
- package/lib/lib/setupTrackingContext.js +8 -7
- package/lib/lib/sharedState.js +38 -5
- package/lib/lib/substituteScreenAtRules.js +7 -4
- package/{nesting → lib/postcss-plugins/nesting}/README.md +0 -0
- package/lib/postcss-plugins/nesting/index.js +17 -0
- package/lib/postcss-plugins/nesting/plugin.js +85 -0
- package/lib/processTailwindFeatures.js +10 -2
- package/lib/util/buildMediaQuery.js +13 -24
- package/lib/util/cloneNodes.js +12 -1
- package/lib/util/color.js +23 -8
- package/lib/util/createPlugin.js +1 -2
- package/lib/util/createUtilityPlugin.js +6 -10
- package/lib/util/dataTypes.js +25 -3
- package/lib/util/defaults.js +6 -0
- package/lib/util/flattenColorPalette.js +1 -3
- package/lib/util/formatVariantSelector.js +93 -9
- package/lib/util/isValidArbitraryValue.js +64 -0
- package/lib/util/log.js +10 -6
- package/lib/util/nameClass.js +1 -0
- package/lib/util/normalizeConfig.js +54 -22
- package/lib/util/normalizeScreens.js +59 -0
- package/lib/util/parseBoxShadowValue.js +117 -0
- package/lib/util/pluginUtils.js +18 -24
- package/lib/util/prefixSelector.js +4 -5
- package/lib/util/resolveConfig.js +52 -31
- package/lib/util/resolveConfigPath.js +1 -2
- package/lib/util/toColorValue.js +1 -2
- package/lib/util/toPath.js +6 -1
- package/lib/util/transformThemeValue.js +4 -8
- package/nesting/index.js +2 -12
- package/package.json +28 -33
- package/peers/index.js +6970 -7268
- package/plugin.js +2 -1
- package/resolveConfig.js +2 -1
- package/src/cli.js +62 -15
- package/src/corePluginList.js +1 -1
- package/src/corePlugins.js +329 -255
- package/src/css/preflight.css +6 -5
- package/src/featureFlags.js +3 -3
- package/src/index.js +14 -6
- package/src/lib/cacheInvalidation.js +52 -0
- package/src/lib/collapseAdjacentRules.js +16 -1
- package/src/lib/collapseDuplicateDeclarations.js +66 -1
- package/src/lib/defaultExtractor.js +50 -0
- package/src/lib/detectNesting.js +22 -3
- package/src/lib/evaluateTailwindFunctions.js +6 -3
- package/src/lib/expandApplyAtRules.js +285 -56
- package/src/lib/expandTailwindAtRules.js +75 -35
- package/src/lib/generateRules.js +154 -26
- package/src/lib/normalizeTailwindDirectives.js +7 -1
- package/src/lib/partitionApplyAtRules.js +52 -0
- package/src/lib/resolveDefaultsAtRules.js +35 -10
- package/src/lib/setupContextUtils.js +133 -103
- package/src/lib/setupTrackingContext.js +8 -7
- package/src/lib/sharedState.js +42 -4
- package/src/lib/substituteScreenAtRules.js +6 -3
- package/src/postcss-plugins/nesting/README.md +42 -0
- package/src/postcss-plugins/nesting/index.js +13 -0
- package/src/postcss-plugins/nesting/plugin.js +80 -0
- package/src/processTailwindFeatures.js +12 -2
- package/src/util/buildMediaQuery.js +14 -18
- package/src/util/cloneNodes.js +14 -1
- package/src/util/color.js +20 -7
- package/src/util/dataTypes.js +24 -6
- package/src/util/defaults.js +6 -0
- package/src/util/formatVariantSelector.js +92 -1
- package/src/util/isValidArbitraryValue.js +61 -0
- package/src/util/log.js +10 -6
- package/src/util/nameClass.js +1 -1
- package/src/util/normalizeConfig.js +24 -3
- package/src/util/normalizeScreens.js +45 -0
- package/src/util/parseBoxShadowValue.js +119 -0
- package/src/util/pluginUtils.js +3 -1
- package/src/util/prefixSelector.js +7 -5
- package/src/util/resolveConfig.js +41 -1
- package/src/util/toPath.js +23 -1
- package/stubs/defaultConfig.stub.js +27 -11
- package/lib/lib/setupWatchingContext.js +0 -288
- package/nesting/plugin.js +0 -41
- package/src/lib/setupWatchingContext.js +0 -311
package/lib/corePlugins.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
|
-
exports.
|
|
5
|
+
exports.corePlugins = exports.variantPlugins = void 0;
|
|
6
6
|
var _fs = _interopRequireDefault(require("fs"));
|
|
7
7
|
var path = _interopRequireWildcard(require("path"));
|
|
8
8
|
var _postcss = _interopRequireDefault(require("postcss"));
|
|
@@ -16,6 +16,8 @@ var _isPlainObject = _interopRequireDefault(require("./util/isPlainObject"));
|
|
|
16
16
|
var _transformThemeValue = _interopRequireDefault(require("./util/transformThemeValue"));
|
|
17
17
|
var _packageJson = require("../package.json");
|
|
18
18
|
var _log = _interopRequireDefault(require("./util/log"));
|
|
19
|
+
var _normalizeScreens = require("./util/normalizeScreens");
|
|
20
|
+
var _parseBoxShadowValue = require("./util/parseBoxShadowValue");
|
|
19
21
|
function _interopRequireDefault(obj) {
|
|
20
22
|
return obj && obj.__esModule ? obj : {
|
|
21
23
|
default: obj
|
|
@@ -25,13 +27,11 @@ function _interopRequireWildcard(obj) {
|
|
|
25
27
|
if (obj && obj.__esModule) {
|
|
26
28
|
return obj;
|
|
27
29
|
} else {
|
|
28
|
-
var newObj = {
|
|
29
|
-
};
|
|
30
|
+
var newObj = {};
|
|
30
31
|
if (obj != null) {
|
|
31
32
|
for(var key in obj){
|
|
32
33
|
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
33
|
-
var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {
|
|
34
|
-
};
|
|
34
|
+
var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {};
|
|
35
35
|
if (desc.get || desc.set) {
|
|
36
36
|
Object.defineProperty(newObj, key, desc);
|
|
37
37
|
} else {
|
|
@@ -57,6 +57,7 @@ let variantPlugins = {
|
|
|
57
57
|
'&::selection'
|
|
58
58
|
]);
|
|
59
59
|
addVariant('file', '&::file-selector-button');
|
|
60
|
+
addVariant('placeholder', '&::placeholder');
|
|
60
61
|
addVariant('before', ({ container })=>{
|
|
61
62
|
container.walkRules((rule)=>{
|
|
62
63
|
let foundContent = false;
|
|
@@ -115,7 +116,28 @@ let variantPlugins = {
|
|
|
115
116
|
'last-of-type',
|
|
116
117
|
'only-of-type',
|
|
117
118
|
// State
|
|
118
|
-
|
|
119
|
+
[
|
|
120
|
+
'visited',
|
|
121
|
+
({ container })=>{
|
|
122
|
+
let toRemove = [
|
|
123
|
+
'--tw-text-opacity',
|
|
124
|
+
'--tw-border-opacity',
|
|
125
|
+
'--tw-bg-opacity'
|
|
126
|
+
];
|
|
127
|
+
container.walkDecls((decl)=>{
|
|
128
|
+
if (toRemove.includes(decl.prop)) {
|
|
129
|
+
decl.remove();
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
for (const varName of toRemove){
|
|
133
|
+
if (decl.value.includes(`/ var(${varName})`)) {
|
|
134
|
+
decl.value = decl.value.replace(`/ var(${varName})`, '');
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
return ':visited';
|
|
139
|
+
},
|
|
140
|
+
],
|
|
119
141
|
'target',
|
|
120
142
|
[
|
|
121
143
|
'open',
|
|
@@ -148,13 +170,22 @@ let variantPlugins = {
|
|
|
148
170
|
]
|
|
149
171
|
);
|
|
150
172
|
for (let [variantName, state] of pseudoVariants){
|
|
151
|
-
addVariant(variantName,
|
|
173
|
+
addVariant(variantName, (ctx)=>{
|
|
174
|
+
let result = typeof state === 'function' ? state(ctx) : state;
|
|
175
|
+
return `&${result}`;
|
|
176
|
+
});
|
|
152
177
|
}
|
|
153
178
|
for (let [variantName1, state1] of pseudoVariants){
|
|
154
|
-
addVariant(`group-${variantName1}`,
|
|
179
|
+
addVariant(`group-${variantName1}`, (ctx)=>{
|
|
180
|
+
let result = typeof state1 === 'function' ? state1(ctx) : state1;
|
|
181
|
+
return `:merge(.group)${result} &`;
|
|
182
|
+
});
|
|
155
183
|
}
|
|
156
184
|
for (let [variantName2, state2] of pseudoVariants){
|
|
157
|
-
addVariant(`peer-${variantName2}`,
|
|
185
|
+
addVariant(`peer-${variantName2}`, (ctx)=>{
|
|
186
|
+
let result = typeof state2 === 'function' ? state2(ctx) : state2;
|
|
187
|
+
return `:merge(.peer)${result} ~ &`;
|
|
188
|
+
});
|
|
158
189
|
}
|
|
159
190
|
},
|
|
160
191
|
directionVariants: ({ addVariant })=>{
|
|
@@ -183,7 +214,8 @@ let variantPlugins = {
|
|
|
183
214
|
mode = 'media';
|
|
184
215
|
_log.default.warn('darkmode-false', [
|
|
185
216
|
'The `darkMode` option in your Tailwind CSS configuration is set to `false`, which now behaves the same as `media`.',
|
|
186
|
-
'Change `darkMode` to `media` or remove it entirely.',
|
|
217
|
+
'Change `darkMode` to `media` or remove it entirely.',
|
|
218
|
+
'https://tailwindcss.com/docs/upgrade-guide#remove-dark-mode-configuration',
|
|
187
219
|
]);
|
|
188
220
|
}
|
|
189
221
|
if (mode === 'class') {
|
|
@@ -196,14 +228,47 @@ let variantPlugins = {
|
|
|
196
228
|
addVariant('print', '@media print');
|
|
197
229
|
},
|
|
198
230
|
screenVariants: ({ theme , addVariant })=>{
|
|
199
|
-
for(let screen
|
|
200
|
-
let
|
|
201
|
-
|
|
202
|
-
addVariant(screen, `@media ${query}`);
|
|
231
|
+
for (let screen of (0, _normalizeScreens).normalizeScreens(theme('screens'))){
|
|
232
|
+
let query = (0, _buildMediaQuery).default(screen);
|
|
233
|
+
addVariant(screen.name, `@media ${query}`);
|
|
203
234
|
}
|
|
235
|
+
},
|
|
236
|
+
orientationVariants: ({ addVariant })=>{
|
|
237
|
+
addVariant('portrait', '@media (orientation: portrait)');
|
|
238
|
+
addVariant('landscape', '@media (orientation: landscape)');
|
|
204
239
|
}
|
|
205
240
|
};
|
|
206
241
|
exports.variantPlugins = variantPlugins;
|
|
242
|
+
let cssTransformValue = [
|
|
243
|
+
'translate(var(--tw-translate-x), var(--tw-translate-y))',
|
|
244
|
+
'rotate(var(--tw-rotate))',
|
|
245
|
+
'skewX(var(--tw-skew-x))',
|
|
246
|
+
'skewY(var(--tw-skew-y))',
|
|
247
|
+
'scaleX(var(--tw-scale-x))',
|
|
248
|
+
'scaleY(var(--tw-scale-y))',
|
|
249
|
+
].join(' ');
|
|
250
|
+
let cssFilterValue = [
|
|
251
|
+
'var(--tw-blur)',
|
|
252
|
+
'var(--tw-brightness)',
|
|
253
|
+
'var(--tw-contrast)',
|
|
254
|
+
'var(--tw-grayscale)',
|
|
255
|
+
'var(--tw-hue-rotate)',
|
|
256
|
+
'var(--tw-invert)',
|
|
257
|
+
'var(--tw-saturate)',
|
|
258
|
+
'var(--tw-sepia)',
|
|
259
|
+
'var(--tw-drop-shadow)',
|
|
260
|
+
].join(' ');
|
|
261
|
+
let cssBackdropFilterValue = [
|
|
262
|
+
'var(--tw-backdrop-blur)',
|
|
263
|
+
'var(--tw-backdrop-brightness)',
|
|
264
|
+
'var(--tw-backdrop-contrast)',
|
|
265
|
+
'var(--tw-backdrop-grayscale)',
|
|
266
|
+
'var(--tw-backdrop-hue-rotate)',
|
|
267
|
+
'var(--tw-backdrop-invert)',
|
|
268
|
+
'var(--tw-backdrop-opacity)',
|
|
269
|
+
'var(--tw-backdrop-saturate)',
|
|
270
|
+
'var(--tw-backdrop-sepia)',
|
|
271
|
+
].join(' ');
|
|
207
272
|
let corePlugins = {
|
|
208
273
|
preflight: ({ addBase })=>{
|
|
209
274
|
let preflightStyles = _postcss.default.parse(_fs.default.readFileSync(path.join(__dirname, './css/preflight.css'), 'utf8'));
|
|
@@ -215,27 +280,11 @@ let corePlugins = {
|
|
|
215
280
|
]);
|
|
216
281
|
},
|
|
217
282
|
container: (()=>{
|
|
218
|
-
function extractMinWidths(breakpoints) {
|
|
219
|
-
return
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
min: breakpoints
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
if (!Array.isArray(breakpoints)) {
|
|
227
|
-
breakpoints = [
|
|
228
|
-
breakpoints
|
|
229
|
-
];
|
|
230
|
-
}
|
|
231
|
-
return breakpoints.filter((breakpoint)=>{
|
|
232
|
-
var ref;
|
|
233
|
-
return (breakpoint === null || breakpoint === void 0 ? void 0 : (ref = breakpoint.hasOwnProperty) === null || ref === void 0 ? void 0 : ref.call(breakpoint, 'min')) || (breakpoint === null || breakpoint === void 0 ? void 0 : breakpoint.hasOwnProperty('min-width'));
|
|
234
|
-
}).map((breakpoint)=>{
|
|
235
|
-
var ref;
|
|
236
|
-
return (ref = breakpoint['min-width']) !== null && ref !== void 0 ? ref : breakpoint.min;
|
|
237
|
-
});
|
|
238
|
-
});
|
|
283
|
+
function extractMinWidths(breakpoints = []) {
|
|
284
|
+
return breakpoints.flatMap((breakpoint1)=>breakpoint1.values.map((breakpoint)=>breakpoint.min
|
|
285
|
+
)
|
|
286
|
+
).filter((v)=>v !== undefined
|
|
287
|
+
);
|
|
239
288
|
}
|
|
240
289
|
function mapMinWidthsToPadding(minWidths, screens, paddings) {
|
|
241
290
|
if (typeof paddings === 'undefined') {
|
|
@@ -259,29 +308,28 @@ let corePlugins = {
|
|
|
259
308
|
});
|
|
260
309
|
}
|
|
261
310
|
for (let minWidth of minWidths){
|
|
262
|
-
for (let
|
|
263
|
-
let
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
}
|
|
311
|
+
for (let screen of screens){
|
|
312
|
+
for (let { min } of screen.values){
|
|
313
|
+
if (min === minWidth) {
|
|
314
|
+
mapping.push({
|
|
315
|
+
minWidth,
|
|
316
|
+
padding: paddings[screen.name]
|
|
317
|
+
});
|
|
318
|
+
}
|
|
270
319
|
}
|
|
271
320
|
}
|
|
272
321
|
}
|
|
273
322
|
return mapping;
|
|
274
323
|
}
|
|
275
324
|
return function({ addComponents , theme }) {
|
|
276
|
-
let screens = theme('container.screens', theme('screens'));
|
|
325
|
+
let screens = (0, _normalizeScreens).normalizeScreens(theme('container.screens', theme('screens')));
|
|
277
326
|
let minWidths = extractMinWidths(screens);
|
|
278
327
|
let paddings = mapMinWidthsToPadding(minWidths, screens, theme('container.padding'));
|
|
279
328
|
let generatePaddingFor = (minWidth)=>{
|
|
280
|
-
let paddingConfig = paddings.find((padding)
|
|
329
|
+
let paddingConfig = paddings.find((padding)=>padding.minWidth === minWidth
|
|
281
330
|
);
|
|
282
331
|
if (!paddingConfig) {
|
|
283
|
-
return {
|
|
284
|
-
};
|
|
332
|
+
return {};
|
|
285
333
|
}
|
|
286
334
|
return {
|
|
287
335
|
paddingRight: paddingConfig.padding,
|
|
@@ -305,8 +353,7 @@ let corePlugins = {
|
|
|
305
353
|
}, theme('container.center', false) ? {
|
|
306
354
|
marginRight: 'auto',
|
|
307
355
|
marginLeft: 'auto'
|
|
308
|
-
} : {
|
|
309
|
-
}, generatePaddingFor(0))
|
|
356
|
+
} : {}, generatePaddingFor(0))
|
|
310
357
|
},
|
|
311
358
|
...atRules,
|
|
312
359
|
]);
|
|
@@ -788,13 +835,12 @@ let corePlugins = {
|
|
|
788
835
|
[
|
|
789
836
|
[
|
|
790
837
|
'@defaults transform',
|
|
791
|
-
{
|
|
792
|
-
}
|
|
838
|
+
{}
|
|
793
839
|
],
|
|
794
840
|
'--tw-translate-x',
|
|
795
841
|
[
|
|
796
842
|
'transform',
|
|
797
|
-
|
|
843
|
+
cssTransformValue
|
|
798
844
|
]
|
|
799
845
|
],
|
|
800
846
|
],
|
|
@@ -803,13 +849,12 @@ let corePlugins = {
|
|
|
803
849
|
[
|
|
804
850
|
[
|
|
805
851
|
'@defaults transform',
|
|
806
|
-
{
|
|
807
|
-
}
|
|
852
|
+
{}
|
|
808
853
|
],
|
|
809
854
|
'--tw-translate-y',
|
|
810
855
|
[
|
|
811
856
|
'transform',
|
|
812
|
-
|
|
857
|
+
cssTransformValue
|
|
813
858
|
]
|
|
814
859
|
],
|
|
815
860
|
],
|
|
@@ -823,16 +868,15 @@ let corePlugins = {
|
|
|
823
868
|
[
|
|
824
869
|
[
|
|
825
870
|
'@defaults transform',
|
|
826
|
-
{
|
|
827
|
-
}
|
|
871
|
+
{}
|
|
828
872
|
],
|
|
829
873
|
'--tw-rotate',
|
|
830
874
|
[
|
|
831
875
|
'transform',
|
|
832
|
-
|
|
876
|
+
cssTransformValue
|
|
833
877
|
]
|
|
834
|
-
]
|
|
835
|
-
]
|
|
878
|
+
]
|
|
879
|
+
]
|
|
836
880
|
], {
|
|
837
881
|
supportsNegativeValues: true
|
|
838
882
|
}),
|
|
@@ -843,30 +887,28 @@ let corePlugins = {
|
|
|
843
887
|
[
|
|
844
888
|
[
|
|
845
889
|
'@defaults transform',
|
|
846
|
-
{
|
|
847
|
-
}
|
|
890
|
+
{}
|
|
848
891
|
],
|
|
849
892
|
'--tw-skew-x',
|
|
850
893
|
[
|
|
851
894
|
'transform',
|
|
852
|
-
|
|
895
|
+
cssTransformValue
|
|
853
896
|
]
|
|
854
|
-
]
|
|
897
|
+
]
|
|
855
898
|
],
|
|
856
899
|
[
|
|
857
900
|
'skew-y',
|
|
858
901
|
[
|
|
859
902
|
[
|
|
860
903
|
'@defaults transform',
|
|
861
|
-
{
|
|
862
|
-
}
|
|
904
|
+
{}
|
|
863
905
|
],
|
|
864
906
|
'--tw-skew-y',
|
|
865
907
|
[
|
|
866
908
|
'transform',
|
|
867
|
-
|
|
909
|
+
cssTransformValue
|
|
868
910
|
]
|
|
869
|
-
]
|
|
911
|
+
]
|
|
870
912
|
],
|
|
871
913
|
],
|
|
872
914
|
], {
|
|
@@ -878,14 +920,13 @@ let corePlugins = {
|
|
|
878
920
|
[
|
|
879
921
|
[
|
|
880
922
|
'@defaults transform',
|
|
881
|
-
{
|
|
882
|
-
}
|
|
923
|
+
{}
|
|
883
924
|
],
|
|
884
925
|
'--tw-scale-x',
|
|
885
926
|
'--tw-scale-y',
|
|
886
927
|
[
|
|
887
928
|
'transform',
|
|
888
|
-
|
|
929
|
+
cssTransformValue
|
|
889
930
|
],
|
|
890
931
|
],
|
|
891
932
|
],
|
|
@@ -895,13 +936,12 @@ let corePlugins = {
|
|
|
895
936
|
[
|
|
896
937
|
[
|
|
897
938
|
'@defaults transform',
|
|
898
|
-
{
|
|
899
|
-
}
|
|
939
|
+
{}
|
|
900
940
|
],
|
|
901
941
|
'--tw-scale-x',
|
|
902
942
|
[
|
|
903
943
|
'transform',
|
|
904
|
-
|
|
944
|
+
cssTransformValue
|
|
905
945
|
]
|
|
906
946
|
],
|
|
907
947
|
],
|
|
@@ -910,65 +950,39 @@ let corePlugins = {
|
|
|
910
950
|
[
|
|
911
951
|
[
|
|
912
952
|
'@defaults transform',
|
|
913
|
-
{
|
|
914
|
-
}
|
|
953
|
+
{}
|
|
915
954
|
],
|
|
916
955
|
'--tw-scale-y',
|
|
917
956
|
[
|
|
918
957
|
'transform',
|
|
919
|
-
|
|
958
|
+
cssTransformValue
|
|
920
959
|
]
|
|
921
960
|
],
|
|
922
961
|
],
|
|
923
962
|
],
|
|
924
|
-
]
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
'translateX(var(--tw-translate-x))',
|
|
937
|
-
'translateY(var(--tw-translate-y))',
|
|
938
|
-
'rotate(var(--tw-rotate))',
|
|
939
|
-
'skewX(var(--tw-skew-x))',
|
|
940
|
-
'skewY(var(--tw-skew-y))',
|
|
941
|
-
'scaleX(var(--tw-scale-x))',
|
|
942
|
-
'scaleY(var(--tw-scale-y))',
|
|
943
|
-
].join(' ')
|
|
944
|
-
}
|
|
963
|
+
], {
|
|
964
|
+
supportsNegativeValues: true
|
|
965
|
+
}),
|
|
966
|
+
transform: ({ addDefaults , addUtilities })=>{
|
|
967
|
+
addDefaults('transform', {
|
|
968
|
+
'--tw-translate-x': '0',
|
|
969
|
+
'--tw-translate-y': '0',
|
|
970
|
+
'--tw-rotate': '0',
|
|
971
|
+
'--tw-skew-x': '0',
|
|
972
|
+
'--tw-skew-y': '0',
|
|
973
|
+
'--tw-scale-x': '1',
|
|
974
|
+
'--tw-scale-y': '1'
|
|
945
975
|
});
|
|
946
976
|
addUtilities({
|
|
947
977
|
'.transform': {
|
|
948
|
-
'@defaults transform': {
|
|
949
|
-
|
|
950
|
-
transform: 'var(--tw-transform)'
|
|
978
|
+
'@defaults transform': {},
|
|
979
|
+
transform: cssTransformValue
|
|
951
980
|
},
|
|
952
981
|
'.transform-cpu': {
|
|
953
|
-
|
|
954
|
-
'translateX(var(--tw-translate-x))',
|
|
955
|
-
'translateY(var(--tw-translate-y))',
|
|
956
|
-
'rotate(var(--tw-rotate))',
|
|
957
|
-
'skewX(var(--tw-skew-x))',
|
|
958
|
-
'skewY(var(--tw-skew-y))',
|
|
959
|
-
'scaleX(var(--tw-scale-x))',
|
|
960
|
-
'scaleY(var(--tw-scale-y))',
|
|
961
|
-
].join(' ')
|
|
982
|
+
transform: cssTransformValue
|
|
962
983
|
},
|
|
963
984
|
'.transform-gpu': {
|
|
964
|
-
'--tw-
|
|
965
|
-
'translate3d(var(--tw-translate-x), var(--tw-translate-y), 0)',
|
|
966
|
-
'rotate(var(--tw-rotate))',
|
|
967
|
-
'skewX(var(--tw-skew-x))',
|
|
968
|
-
'skewY(var(--tw-skew-y))',
|
|
969
|
-
'scaleX(var(--tw-scale-x))',
|
|
970
|
-
'scaleY(var(--tw-scale-y))',
|
|
971
|
-
].join(' ')
|
|
985
|
+
transform: cssTransformValue.replace('translate(var(--tw-translate-x), var(--tw-translate-y))', 'translate3d(var(--tw-translate-x), var(--tw-translate-y), 0)')
|
|
972
986
|
},
|
|
973
987
|
'.transform-none': {
|
|
974
988
|
transform: 'none'
|
|
@@ -979,8 +993,7 @@ let corePlugins = {
|
|
|
979
993
|
let prefixName = (name)=>prefix(`.${name}`).slice(1)
|
|
980
994
|
;
|
|
981
995
|
var ref;
|
|
982
|
-
let keyframes = Object.fromEntries(Object.entries((ref = theme('keyframes')) !== null && ref !== void 0 ? ref : {
|
|
983
|
-
}).map(([key, value])=>{
|
|
996
|
+
let keyframes = Object.fromEntries(Object.entries((ref = theme('keyframes')) !== null && ref !== void 0 ? ref : {}).map(([key, value])=>{
|
|
984
997
|
return [
|
|
985
998
|
key,
|
|
986
999
|
{
|
|
@@ -989,8 +1002,8 @@ let corePlugins = {
|
|
|
989
1002
|
];
|
|
990
1003
|
}));
|
|
991
1004
|
matchUtilities({
|
|
992
|
-
animate: (
|
|
993
|
-
let animations = (0, _parseAnimationValue).default(
|
|
1005
|
+
animate: (value1)=>{
|
|
1006
|
+
let animations = (0, _parseAnimationValue).default(value1);
|
|
994
1007
|
return [
|
|
995
1008
|
...animations.flatMap((animation)=>keyframes[animation.name]
|
|
996
1009
|
),
|
|
@@ -1009,7 +1022,13 @@ let corePlugins = {
|
|
|
1009
1022
|
});
|
|
1010
1023
|
},
|
|
1011
1024
|
cursor: (0, _createUtilityPlugin).default('cursor'),
|
|
1012
|
-
touchAction: ({ addUtilities })=>{
|
|
1025
|
+
touchAction: ({ addDefaults , addUtilities })=>{
|
|
1026
|
+
addDefaults('touch-action', {
|
|
1027
|
+
'--tw-pan-x': ' ',
|
|
1028
|
+
'--tw-pan-y': ' ',
|
|
1029
|
+
'--tw-pinch-zoom': ' '
|
|
1030
|
+
});
|
|
1031
|
+
let cssTouchActionValue = 'var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)';
|
|
1013
1032
|
addUtilities({
|
|
1014
1033
|
'.touch-auto': {
|
|
1015
1034
|
'touch-action': 'auto'
|
|
@@ -1018,25 +1037,39 @@ let corePlugins = {
|
|
|
1018
1037
|
'touch-action': 'none'
|
|
1019
1038
|
},
|
|
1020
1039
|
'.touch-pan-x': {
|
|
1021
|
-
'touch-action':
|
|
1040
|
+
'@defaults touch-action': {},
|
|
1041
|
+
'--tw-pan-x': 'pan-x',
|
|
1042
|
+
'touch-action': cssTouchActionValue
|
|
1022
1043
|
},
|
|
1023
1044
|
'.touch-pan-left': {
|
|
1024
|
-
'touch-action':
|
|
1045
|
+
'@defaults touch-action': {},
|
|
1046
|
+
'--tw-pan-x': 'pan-left',
|
|
1047
|
+
'touch-action': cssTouchActionValue
|
|
1025
1048
|
},
|
|
1026
1049
|
'.touch-pan-right': {
|
|
1027
|
-
'touch-action':
|
|
1050
|
+
'@defaults touch-action': {},
|
|
1051
|
+
'--tw-pan-x': 'pan-right',
|
|
1052
|
+
'touch-action': cssTouchActionValue
|
|
1028
1053
|
},
|
|
1029
1054
|
'.touch-pan-y': {
|
|
1030
|
-
'touch-action':
|
|
1055
|
+
'@defaults touch-action': {},
|
|
1056
|
+
'--tw-pan-y': 'pan-y',
|
|
1057
|
+
'touch-action': cssTouchActionValue
|
|
1031
1058
|
},
|
|
1032
1059
|
'.touch-pan-up': {
|
|
1033
|
-
'touch-action':
|
|
1060
|
+
'@defaults touch-action': {},
|
|
1061
|
+
'--tw-pan-y': 'pan-up',
|
|
1062
|
+
'touch-action': cssTouchActionValue
|
|
1034
1063
|
},
|
|
1035
1064
|
'.touch-pan-down': {
|
|
1036
|
-
'touch-action':
|
|
1065
|
+
'@defaults touch-action': {},
|
|
1066
|
+
'--tw-pan-y': 'pan-down',
|
|
1067
|
+
'touch-action': cssTouchActionValue
|
|
1037
1068
|
},
|
|
1038
1069
|
'.touch-pinch-zoom': {
|
|
1039
|
-
'touch-action':
|
|
1070
|
+
'@defaults touch-action': {},
|
|
1071
|
+
'--tw-pinch-zoom': 'pinch-zoom',
|
|
1072
|
+
'touch-action': cssTouchActionValue
|
|
1040
1073
|
},
|
|
1041
1074
|
'.touch-manipulation': {
|
|
1042
1075
|
'touch-action': 'manipulation'
|
|
@@ -1075,29 +1108,24 @@ let corePlugins = {
|
|
|
1075
1108
|
}
|
|
1076
1109
|
});
|
|
1077
1110
|
},
|
|
1078
|
-
scrollSnapType: ({
|
|
1079
|
-
|
|
1080
|
-
'
|
|
1081
|
-
'--tw-scroll-snap-strictness': 'proximity'
|
|
1082
|
-
}
|
|
1111
|
+
scrollSnapType: ({ addDefaults , addUtilities })=>{
|
|
1112
|
+
addDefaults('scroll-snap-type', {
|
|
1113
|
+
'--tw-scroll-snap-strictness': 'proximity'
|
|
1083
1114
|
});
|
|
1084
1115
|
addUtilities({
|
|
1085
1116
|
'.snap-none': {
|
|
1086
1117
|
'scroll-snap-type': 'none'
|
|
1087
1118
|
},
|
|
1088
1119
|
'.snap-x': {
|
|
1089
|
-
'@defaults scroll-snap-type': {
|
|
1090
|
-
},
|
|
1120
|
+
'@defaults scroll-snap-type': {},
|
|
1091
1121
|
'scroll-snap-type': 'x var(--tw-scroll-snap-strictness)'
|
|
1092
1122
|
},
|
|
1093
1123
|
'.snap-y': {
|
|
1094
|
-
'@defaults scroll-snap-type': {
|
|
1095
|
-
},
|
|
1124
|
+
'@defaults scroll-snap-type': {},
|
|
1096
1125
|
'scroll-snap-type': 'y var(--tw-scroll-snap-strictness)'
|
|
1097
1126
|
},
|
|
1098
1127
|
'.snap-both': {
|
|
1099
|
-
'@defaults scroll-snap-type': {
|
|
1100
|
-
},
|
|
1128
|
+
'@defaults scroll-snap-type': {},
|
|
1101
1129
|
'scroll-snap-type': 'both var(--tw-scroll-snap-strictness)'
|
|
1102
1130
|
},
|
|
1103
1131
|
'.snap-mandatory': {
|
|
@@ -1601,8 +1629,7 @@ let corePlugins = {
|
|
|
1601
1629
|
value = value === '0' ? '0px' : value;
|
|
1602
1630
|
return {
|
|
1603
1631
|
'& > :not([hidden]) ~ :not([hidden])': {
|
|
1604
|
-
'@defaults border-width': {
|
|
1605
|
-
},
|
|
1632
|
+
'@defaults border-width': {},
|
|
1606
1633
|
'--tw-divide-x-reverse': '0',
|
|
1607
1634
|
'border-right-width': `calc(${value} * var(--tw-divide-x-reverse))`,
|
|
1608
1635
|
'border-left-width': `calc(${value} * calc(1 - var(--tw-divide-x-reverse)))`
|
|
@@ -1613,8 +1640,7 @@ let corePlugins = {
|
|
|
1613
1640
|
value = value === '0' ? '0px' : value;
|
|
1614
1641
|
return {
|
|
1615
1642
|
'& > :not([hidden]) ~ :not([hidden])': {
|
|
1616
|
-
'@defaults border-width': {
|
|
1617
|
-
},
|
|
1643
|
+
'@defaults border-width': {},
|
|
1618
1644
|
'--tw-divide-y-reverse': '0',
|
|
1619
1645
|
'border-top-width': `calc(${value} * calc(1 - var(--tw-divide-y-reverse)))`,
|
|
1620
1646
|
'border-bottom-width': `calc(${value} * var(--tw-divide-y-reverse))`
|
|
@@ -1630,13 +1656,11 @@ let corePlugins = {
|
|
|
1630
1656
|
});
|
|
1631
1657
|
addUtilities({
|
|
1632
1658
|
'.divide-y-reverse > :not([hidden]) ~ :not([hidden])': {
|
|
1633
|
-
'@defaults border-width': {
|
|
1634
|
-
},
|
|
1659
|
+
'@defaults border-width': {},
|
|
1635
1660
|
'--tw-divide-y-reverse': '1'
|
|
1636
1661
|
},
|
|
1637
1662
|
'.divide-x-reverse > :not([hidden]) ~ :not([hidden])': {
|
|
1638
|
-
'@defaults border-width': {
|
|
1639
|
-
},
|
|
1663
|
+
'@defaults border-width': {},
|
|
1640
1664
|
'--tw-divide-x-reverse': '1'
|
|
1641
1665
|
}
|
|
1642
1666
|
});
|
|
@@ -1660,10 +1684,10 @@ let corePlugins = {
|
|
|
1660
1684
|
}
|
|
1661
1685
|
});
|
|
1662
1686
|
},
|
|
1663
|
-
divideColor: ({ matchUtilities , theme , corePlugins })=>{
|
|
1687
|
+
divideColor: ({ matchUtilities , theme , corePlugins: corePlugins1 })=>{
|
|
1664
1688
|
matchUtilities({
|
|
1665
1689
|
divide: (value)=>{
|
|
1666
|
-
if (!
|
|
1690
|
+
if (!corePlugins1('divideOpacity')) {
|
|
1667
1691
|
return {
|
|
1668
1692
|
['& > :not([hidden]) ~ :not([hidden])']: {
|
|
1669
1693
|
'border-color': (0, _toColorValue).default(value)
|
|
@@ -1968,8 +1992,7 @@ let corePlugins = {
|
|
|
1968
1992
|
[
|
|
1969
1993
|
[
|
|
1970
1994
|
'@defaults border-width',
|
|
1971
|
-
{
|
|
1972
|
-
}
|
|
1995
|
+
{}
|
|
1973
1996
|
],
|
|
1974
1997
|
'border-width'
|
|
1975
1998
|
]
|
|
@@ -1980,8 +2003,7 @@ let corePlugins = {
|
|
|
1980
2003
|
[
|
|
1981
2004
|
[
|
|
1982
2005
|
'@defaults border-width',
|
|
1983
|
-
{
|
|
1984
|
-
}
|
|
2006
|
+
{}
|
|
1985
2007
|
],
|
|
1986
2008
|
'border-left-width',
|
|
1987
2009
|
'border-right-width'
|
|
@@ -1992,8 +2014,7 @@ let corePlugins = {
|
|
|
1992
2014
|
[
|
|
1993
2015
|
[
|
|
1994
2016
|
'@defaults border-width',
|
|
1995
|
-
{
|
|
1996
|
-
}
|
|
2017
|
+
{}
|
|
1997
2018
|
],
|
|
1998
2019
|
'border-top-width',
|
|
1999
2020
|
'border-bottom-width'
|
|
@@ -2006,8 +2027,7 @@ let corePlugins = {
|
|
|
2006
2027
|
[
|
|
2007
2028
|
[
|
|
2008
2029
|
'@defaults border-width',
|
|
2009
|
-
{
|
|
2010
|
-
}
|
|
2030
|
+
{}
|
|
2011
2031
|
],
|
|
2012
2032
|
'border-top-width'
|
|
2013
2033
|
]
|
|
@@ -2017,8 +2037,7 @@ let corePlugins = {
|
|
|
2017
2037
|
[
|
|
2018
2038
|
[
|
|
2019
2039
|
'@defaults border-width',
|
|
2020
|
-
{
|
|
2021
|
-
}
|
|
2040
|
+
{}
|
|
2022
2041
|
],
|
|
2023
2042
|
'border-right-width'
|
|
2024
2043
|
]
|
|
@@ -2028,8 +2047,7 @@ let corePlugins = {
|
|
|
2028
2047
|
[
|
|
2029
2048
|
[
|
|
2030
2049
|
'@defaults border-width',
|
|
2031
|
-
{
|
|
2032
|
-
}
|
|
2050
|
+
{}
|
|
2033
2051
|
],
|
|
2034
2052
|
'border-bottom-width'
|
|
2035
2053
|
]
|
|
@@ -2039,8 +2057,7 @@ let corePlugins = {
|
|
|
2039
2057
|
[
|
|
2040
2058
|
[
|
|
2041
2059
|
'@defaults border-width',
|
|
2042
|
-
{
|
|
2043
|
-
}
|
|
2060
|
+
{}
|
|
2044
2061
|
],
|
|
2045
2062
|
'border-left-width'
|
|
2046
2063
|
]
|
|
@@ -2074,26 +2091,10 @@ let corePlugins = {
|
|
|
2074
2091
|
}
|
|
2075
2092
|
});
|
|
2076
2093
|
},
|
|
2077
|
-
borderColor: ({
|
|
2078
|
-
if (!corePlugins('borderOpacity')) {
|
|
2079
|
-
let value = theme('borderColor.DEFAULT', 'currentColor');
|
|
2080
|
-
addBase({
|
|
2081
|
-
'@defaults border-width': {
|
|
2082
|
-
'border-color': (0, _toColorValue).default(value)
|
|
2083
|
-
}
|
|
2084
|
-
});
|
|
2085
|
-
} else {
|
|
2086
|
-
addBase({
|
|
2087
|
-
'@defaults border-width': (0, _withAlphaVariable).default({
|
|
2088
|
-
color: theme('borderColor.DEFAULT', 'currentColor'),
|
|
2089
|
-
property: 'border-color',
|
|
2090
|
-
variable: '--tw-border-opacity'
|
|
2091
|
-
})
|
|
2092
|
-
});
|
|
2093
|
-
}
|
|
2094
|
+
borderColor: ({ matchUtilities , theme , corePlugins: corePlugins2 })=>{
|
|
2094
2095
|
matchUtilities({
|
|
2095
2096
|
border: (value)=>{
|
|
2096
|
-
if (!
|
|
2097
|
+
if (!corePlugins2('borderOpacity')) {
|
|
2097
2098
|
return {
|
|
2098
2099
|
'border-color': (0, _toColorValue).default(value)
|
|
2099
2100
|
};
|
|
@@ -2113,7 +2114,7 @@ let corePlugins = {
|
|
|
2113
2114
|
});
|
|
2114
2115
|
matchUtilities({
|
|
2115
2116
|
'border-x': (value)=>{
|
|
2116
|
-
if (!
|
|
2117
|
+
if (!corePlugins2('borderOpacity')) {
|
|
2117
2118
|
return {
|
|
2118
2119
|
'border-left-color': (0, _toColorValue).default(value),
|
|
2119
2120
|
'border-right-color': (0, _toColorValue).default(value)
|
|
@@ -2129,7 +2130,7 @@ let corePlugins = {
|
|
|
2129
2130
|
});
|
|
2130
2131
|
},
|
|
2131
2132
|
'border-y': (value)=>{
|
|
2132
|
-
if (!
|
|
2133
|
+
if (!corePlugins2('borderOpacity')) {
|
|
2133
2134
|
return {
|
|
2134
2135
|
'border-top-color': (0, _toColorValue).default(value),
|
|
2135
2136
|
'border-bottom-color': (0, _toColorValue).default(value)
|
|
@@ -2151,7 +2152,7 @@ let corePlugins = {
|
|
|
2151
2152
|
});
|
|
2152
2153
|
matchUtilities({
|
|
2153
2154
|
'border-t': (value)=>{
|
|
2154
|
-
if (!
|
|
2155
|
+
if (!corePlugins2('borderOpacity')) {
|
|
2155
2156
|
return {
|
|
2156
2157
|
'border-top-color': (0, _toColorValue).default(value)
|
|
2157
2158
|
};
|
|
@@ -2163,7 +2164,7 @@ let corePlugins = {
|
|
|
2163
2164
|
});
|
|
2164
2165
|
},
|
|
2165
2166
|
'border-r': (value)=>{
|
|
2166
|
-
if (!
|
|
2167
|
+
if (!corePlugins2('borderOpacity')) {
|
|
2167
2168
|
return {
|
|
2168
2169
|
'border-right-color': (0, _toColorValue).default(value)
|
|
2169
2170
|
};
|
|
@@ -2175,7 +2176,7 @@ let corePlugins = {
|
|
|
2175
2176
|
});
|
|
2176
2177
|
},
|
|
2177
2178
|
'border-b': (value)=>{
|
|
2178
|
-
if (!
|
|
2179
|
+
if (!corePlugins2('borderOpacity')) {
|
|
2179
2180
|
return {
|
|
2180
2181
|
'border-bottom-color': (0, _toColorValue).default(value)
|
|
2181
2182
|
};
|
|
@@ -2187,7 +2188,7 @@ let corePlugins = {
|
|
|
2187
2188
|
});
|
|
2188
2189
|
},
|
|
2189
2190
|
'border-l': (value)=>{
|
|
2190
|
-
if (!
|
|
2191
|
+
if (!corePlugins2('borderOpacity')) {
|
|
2191
2192
|
return {
|
|
2192
2193
|
'border-left-color': (0, _toColorValue).default(value)
|
|
2193
2194
|
};
|
|
@@ -2212,10 +2213,10 @@ let corePlugins = {
|
|
|
2212
2213
|
]
|
|
2213
2214
|
],
|
|
2214
2215
|
]),
|
|
2215
|
-
backgroundColor: ({ matchUtilities , theme , corePlugins })=>{
|
|
2216
|
+
backgroundColor: ({ matchUtilities , theme , corePlugins: corePlugins3 })=>{
|
|
2216
2217
|
matchUtilities({
|
|
2217
2218
|
bg: (value)=>{
|
|
2218
|
-
if (!
|
|
2219
|
+
if (!corePlugins3('backgroundOpacity')) {
|
|
2219
2220
|
return {
|
|
2220
2221
|
'background-color': (0, _toColorValue).default(value)
|
|
2221
2222
|
};
|
|
@@ -2296,6 +2297,12 @@ let corePlugins = {
|
|
|
2296
2297
|
},
|
|
2297
2298
|
'.decoration-clone': {
|
|
2298
2299
|
'box-decoration-break': 'clone'
|
|
2300
|
+
},
|
|
2301
|
+
'.box-decoration-slice': {
|
|
2302
|
+
'box-decoration-break': 'slice'
|
|
2303
|
+
},
|
|
2304
|
+
'.box-decoration-clone': {
|
|
2305
|
+
'box-decoration-break': 'clone'
|
|
2299
2306
|
}
|
|
2300
2307
|
});
|
|
2301
2308
|
},
|
|
@@ -2595,12 +2602,10 @@ let corePlugins = {
|
|
|
2595
2602
|
};
|
|
2596
2603
|
return {
|
|
2597
2604
|
'font-size': fontSize,
|
|
2598
|
-
...lineHeight === undefined ? {
|
|
2599
|
-
} : {
|
|
2605
|
+
...lineHeight === undefined ? {} : {
|
|
2600
2606
|
'line-height': lineHeight
|
|
2601
2607
|
},
|
|
2602
|
-
...letterSpacing === undefined ? {
|
|
2603
|
-
} : {
|
|
2608
|
+
...letterSpacing === undefined ? {} : {
|
|
2604
2609
|
'letter-spacing': letterSpacing
|
|
2605
2610
|
}
|
|
2606
2611
|
};
|
|
@@ -2654,66 +2659,58 @@ let corePlugins = {
|
|
|
2654
2659
|
}
|
|
2655
2660
|
});
|
|
2656
2661
|
},
|
|
2657
|
-
fontVariantNumeric: ({ addUtilities })=>{
|
|
2662
|
+
fontVariantNumeric: ({ addDefaults , addUtilities })=>{
|
|
2663
|
+
let cssFontVariantNumericValue = 'var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)';
|
|
2664
|
+
addDefaults('font-variant-numeric', {
|
|
2665
|
+
'--tw-ordinal': ' ',
|
|
2666
|
+
'--tw-slashed-zero': ' ',
|
|
2667
|
+
'--tw-numeric-figure': ' ',
|
|
2668
|
+
'--tw-numeric-spacing': ' ',
|
|
2669
|
+
'--tw-numeric-fraction': ' '
|
|
2670
|
+
});
|
|
2658
2671
|
addUtilities({
|
|
2659
|
-
'@defaults font-variant-numeric': {
|
|
2660
|
-
'--tw-ordinal': 'var(--tw-empty,/*!*/ /*!*/)',
|
|
2661
|
-
'--tw-slashed-zero': 'var(--tw-empty,/*!*/ /*!*/)',
|
|
2662
|
-
'--tw-numeric-figure': 'var(--tw-empty,/*!*/ /*!*/)',
|
|
2663
|
-
'--tw-numeric-spacing': 'var(--tw-empty,/*!*/ /*!*/)',
|
|
2664
|
-
'--tw-numeric-fraction': 'var(--tw-empty,/*!*/ /*!*/)',
|
|
2665
|
-
'--tw-font-variant-numeric': 'var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)'
|
|
2666
|
-
},
|
|
2667
2672
|
'.normal-nums': {
|
|
2668
2673
|
'font-variant-numeric': 'normal'
|
|
2669
2674
|
},
|
|
2670
2675
|
'.ordinal': {
|
|
2671
|
-
'@defaults font-variant-numeric': {
|
|
2672
|
-
},
|
|
2676
|
+
'@defaults font-variant-numeric': {},
|
|
2673
2677
|
'--tw-ordinal': 'ordinal',
|
|
2674
|
-
'font-variant-numeric':
|
|
2678
|
+
'font-variant-numeric': cssFontVariantNumericValue
|
|
2675
2679
|
},
|
|
2676
2680
|
'.slashed-zero': {
|
|
2677
|
-
'@defaults font-variant-numeric': {
|
|
2678
|
-
},
|
|
2681
|
+
'@defaults font-variant-numeric': {},
|
|
2679
2682
|
'--tw-slashed-zero': 'slashed-zero',
|
|
2680
|
-
'font-variant-numeric':
|
|
2683
|
+
'font-variant-numeric': cssFontVariantNumericValue
|
|
2681
2684
|
},
|
|
2682
2685
|
'.lining-nums': {
|
|
2683
|
-
'@defaults font-variant-numeric': {
|
|
2684
|
-
},
|
|
2686
|
+
'@defaults font-variant-numeric': {},
|
|
2685
2687
|
'--tw-numeric-figure': 'lining-nums',
|
|
2686
|
-
'font-variant-numeric':
|
|
2688
|
+
'font-variant-numeric': cssFontVariantNumericValue
|
|
2687
2689
|
},
|
|
2688
2690
|
'.oldstyle-nums': {
|
|
2689
|
-
'@defaults font-variant-numeric': {
|
|
2690
|
-
},
|
|
2691
|
+
'@defaults font-variant-numeric': {},
|
|
2691
2692
|
'--tw-numeric-figure': 'oldstyle-nums',
|
|
2692
|
-
'font-variant-numeric':
|
|
2693
|
+
'font-variant-numeric': cssFontVariantNumericValue
|
|
2693
2694
|
},
|
|
2694
2695
|
'.proportional-nums': {
|
|
2695
|
-
'@defaults font-variant-numeric': {
|
|
2696
|
-
},
|
|
2696
|
+
'@defaults font-variant-numeric': {},
|
|
2697
2697
|
'--tw-numeric-spacing': 'proportional-nums',
|
|
2698
|
-
'font-variant-numeric':
|
|
2698
|
+
'font-variant-numeric': cssFontVariantNumericValue
|
|
2699
2699
|
},
|
|
2700
2700
|
'.tabular-nums': {
|
|
2701
|
-
'@defaults font-variant-numeric': {
|
|
2702
|
-
},
|
|
2701
|
+
'@defaults font-variant-numeric': {},
|
|
2703
2702
|
'--tw-numeric-spacing': 'tabular-nums',
|
|
2704
|
-
'font-variant-numeric':
|
|
2703
|
+
'font-variant-numeric': cssFontVariantNumericValue
|
|
2705
2704
|
},
|
|
2706
2705
|
'.diagonal-fractions': {
|
|
2707
|
-
'@defaults font-variant-numeric': {
|
|
2708
|
-
},
|
|
2706
|
+
'@defaults font-variant-numeric': {},
|
|
2709
2707
|
'--tw-numeric-fraction': 'diagonal-fractions',
|
|
2710
|
-
'font-variant-numeric':
|
|
2708
|
+
'font-variant-numeric': cssFontVariantNumericValue
|
|
2711
2709
|
},
|
|
2712
2710
|
'.stacked-fractions': {
|
|
2713
|
-
'@defaults font-variant-numeric': {
|
|
2714
|
-
},
|
|
2711
|
+
'@defaults font-variant-numeric': {},
|
|
2715
2712
|
'--tw-numeric-fraction': 'stacked-fractions',
|
|
2716
|
-
'font-variant-numeric':
|
|
2713
|
+
'font-variant-numeric': cssFontVariantNumericValue
|
|
2717
2714
|
}
|
|
2718
2715
|
});
|
|
2719
2716
|
},
|
|
@@ -2735,10 +2732,10 @@ let corePlugins = {
|
|
|
2735
2732
|
], {
|
|
2736
2733
|
supportsNegativeValues: true
|
|
2737
2734
|
}),
|
|
2738
|
-
textColor: ({ matchUtilities , theme , corePlugins })=>{
|
|
2735
|
+
textColor: ({ matchUtilities , theme , corePlugins: corePlugins4 })=>{
|
|
2739
2736
|
matchUtilities({
|
|
2740
2737
|
text: (value)=>{
|
|
2741
|
-
if (!
|
|
2738
|
+
if (!corePlugins4('textOpacity')) {
|
|
2742
2739
|
return {
|
|
2743
2740
|
color: (0, _toColorValue).default(value)
|
|
2744
2741
|
};
|
|
@@ -2765,13 +2762,16 @@ let corePlugins = {
|
|
|
2765
2762
|
textDecoration: ({ addUtilities })=>{
|
|
2766
2763
|
addUtilities({
|
|
2767
2764
|
'.underline': {
|
|
2768
|
-
'text-decoration': 'underline'
|
|
2765
|
+
'text-decoration-line': 'underline'
|
|
2766
|
+
},
|
|
2767
|
+
'.overline': {
|
|
2768
|
+
'text-decoration-line': 'overline'
|
|
2769
2769
|
},
|
|
2770
2770
|
'.line-through': {
|
|
2771
|
-
'text-decoration': 'line-through'
|
|
2771
|
+
'text-decoration-line': 'line-through'
|
|
2772
2772
|
},
|
|
2773
2773
|
'.no-underline': {
|
|
2774
|
-
'text-decoration': 'none'
|
|
2774
|
+
'text-decoration-line': 'none'
|
|
2775
2775
|
}
|
|
2776
2776
|
});
|
|
2777
2777
|
},
|
|
@@ -2785,11 +2785,55 @@ let corePlugins = {
|
|
|
2785
2785
|
}, {
|
|
2786
2786
|
values: (0, _flattenColorPalette).default(theme('textDecorationColor')),
|
|
2787
2787
|
type: [
|
|
2788
|
-
'color'
|
|
2789
|
-
'any'
|
|
2788
|
+
'color'
|
|
2790
2789
|
]
|
|
2791
2790
|
});
|
|
2792
2791
|
},
|
|
2792
|
+
textDecorationStyle: ({ addUtilities })=>{
|
|
2793
|
+
addUtilities({
|
|
2794
|
+
'.decoration-solid': {
|
|
2795
|
+
'text-decoration-style': 'solid'
|
|
2796
|
+
},
|
|
2797
|
+
'.decoration-double': {
|
|
2798
|
+
'text-decoration-style': 'double'
|
|
2799
|
+
},
|
|
2800
|
+
'.decoration-dotted': {
|
|
2801
|
+
'text-decoration-style': 'dotted'
|
|
2802
|
+
},
|
|
2803
|
+
'.decoration-dashed': {
|
|
2804
|
+
'text-decoration-style': 'dashed'
|
|
2805
|
+
},
|
|
2806
|
+
'.decoration-wavy': {
|
|
2807
|
+
'text-decoration-style': 'wavy'
|
|
2808
|
+
}
|
|
2809
|
+
});
|
|
2810
|
+
},
|
|
2811
|
+
textDecorationThickness: (0, _createUtilityPlugin).default('textDecorationThickness', [
|
|
2812
|
+
[
|
|
2813
|
+
'decoration',
|
|
2814
|
+
[
|
|
2815
|
+
'text-decoration-thickness'
|
|
2816
|
+
]
|
|
2817
|
+
]
|
|
2818
|
+
], {
|
|
2819
|
+
type: [
|
|
2820
|
+
'length',
|
|
2821
|
+
'percentage'
|
|
2822
|
+
]
|
|
2823
|
+
}),
|
|
2824
|
+
textUnderlineOffset: (0, _createUtilityPlugin).default('textUnderlineOffset', [
|
|
2825
|
+
[
|
|
2826
|
+
'underline-offset',
|
|
2827
|
+
[
|
|
2828
|
+
'text-underline-offset'
|
|
2829
|
+
]
|
|
2830
|
+
]
|
|
2831
|
+
], {
|
|
2832
|
+
type: [
|
|
2833
|
+
'length',
|
|
2834
|
+
'percentage'
|
|
2835
|
+
]
|
|
2836
|
+
}),
|
|
2793
2837
|
fontSmoothing: ({ addUtilities })=>{
|
|
2794
2838
|
addUtilities({
|
|
2795
2839
|
'.antialiased': {
|
|
@@ -2802,10 +2846,10 @@ let corePlugins = {
|
|
|
2802
2846
|
}
|
|
2803
2847
|
});
|
|
2804
2848
|
},
|
|
2805
|
-
placeholderColor: ({ matchUtilities , theme , corePlugins })=>{
|
|
2849
|
+
placeholderColor: ({ matchUtilities , theme , corePlugins: corePlugins5 })=>{
|
|
2806
2850
|
matchUtilities({
|
|
2807
2851
|
placeholder: (value)=>{
|
|
2808
|
-
if (!
|
|
2852
|
+
if (!corePlugins5('placeholderOpacity')) {
|
|
2809
2853
|
return {
|
|
2810
2854
|
'&::placeholder': {
|
|
2811
2855
|
color: (0, _toColorValue).default(value)
|
|
@@ -2990,29 +3034,54 @@ let corePlugins = {
|
|
|
2990
3034
|
`var(--tw-ring-shadow, 0 0 #0000)`,
|
|
2991
3035
|
`var(--tw-shadow)`,
|
|
2992
3036
|
].join(', ');
|
|
2993
|
-
return function({ matchUtilities ,
|
|
2994
|
-
|
|
2995
|
-
'
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
}
|
|
3037
|
+
return function({ matchUtilities , addDefaults , theme }) {
|
|
3038
|
+
addDefaults(' box-shadow', {
|
|
3039
|
+
'--tw-ring-offset-shadow': '0 0 #0000',
|
|
3040
|
+
'--tw-ring-shadow': '0 0 #0000',
|
|
3041
|
+
'--tw-shadow': '0 0 #0000',
|
|
3042
|
+
'--tw-shadow-colored': '0 0 #0000'
|
|
3000
3043
|
});
|
|
3001
3044
|
matchUtilities({
|
|
3002
3045
|
shadow: (value)=>{
|
|
3003
3046
|
value = transformValue(value);
|
|
3047
|
+
let ast = (0, _parseBoxShadowValue).parseBoxShadowValue(value);
|
|
3048
|
+
for (let shadow of ast){
|
|
3049
|
+
// Don't override color if the whole shadow is a variable
|
|
3050
|
+
if (!shadow.valid) {
|
|
3051
|
+
continue;
|
|
3052
|
+
}
|
|
3053
|
+
shadow.color = 'var(--tw-shadow-color)';
|
|
3054
|
+
}
|
|
3004
3055
|
return {
|
|
3005
|
-
'@defaults box-shadow': {
|
|
3006
|
-
},
|
|
3056
|
+
'@defaults box-shadow': {},
|
|
3007
3057
|
'--tw-shadow': value === 'none' ? '0 0 #0000' : value,
|
|
3058
|
+
'--tw-shadow-colored': value === 'none' ? '0 0 #0000' : (0, _parseBoxShadowValue).formatBoxShadowValue(ast),
|
|
3008
3059
|
'box-shadow': defaultBoxShadow
|
|
3009
3060
|
};
|
|
3010
3061
|
}
|
|
3011
3062
|
}, {
|
|
3012
|
-
values: theme('boxShadow')
|
|
3063
|
+
values: theme('boxShadow'),
|
|
3064
|
+
type: [
|
|
3065
|
+
'shadow'
|
|
3066
|
+
]
|
|
3013
3067
|
});
|
|
3014
3068
|
};
|
|
3015
3069
|
})(),
|
|
3070
|
+
boxShadowColor: ({ matchUtilities , theme })=>{
|
|
3071
|
+
matchUtilities({
|
|
3072
|
+
shadow: (value)=>{
|
|
3073
|
+
return {
|
|
3074
|
+
'--tw-shadow-color': (0, _toColorValue).default(value),
|
|
3075
|
+
'--tw-shadow': 'var(--tw-shadow-colored)'
|
|
3076
|
+
};
|
|
3077
|
+
}
|
|
3078
|
+
}, {
|
|
3079
|
+
values: (0, _flattenColorPalette).default(theme('boxShadowColor')),
|
|
3080
|
+
type: [
|
|
3081
|
+
'color'
|
|
3082
|
+
]
|
|
3083
|
+
});
|
|
3084
|
+
},
|
|
3016
3085
|
outlineStyle: ({ addUtilities })=>{
|
|
3017
3086
|
addUtilities({
|
|
3018
3087
|
'.outline-none': {
|
|
@@ -3078,25 +3147,24 @@ let corePlugins = {
|
|
|
3078
3147
|
]
|
|
3079
3148
|
});
|
|
3080
3149
|
},
|
|
3081
|
-
ringWidth: ({ matchUtilities ,
|
|
3150
|
+
ringWidth: ({ matchUtilities , addDefaults , addUtilities , theme })=>{
|
|
3151
|
+
var ref;
|
|
3082
3152
|
let ringOpacityDefault = theme('ringOpacity.DEFAULT', '0.5');
|
|
3083
|
-
let ringColorDefault = (0, _withAlphaVariable).withAlphaValue(theme('ringColor.DEFAULT
|
|
3084
|
-
|
|
3085
|
-
'
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
}
|
|
3153
|
+
let ringColorDefault = (0, _withAlphaVariable).withAlphaValue((ref = theme('ringColor')) === null || ref === void 0 ? void 0 : ref.DEFAULT, ringOpacityDefault, `rgb(147 197 253 / ${ringOpacityDefault})`);
|
|
3154
|
+
addDefaults('ring-width', {
|
|
3155
|
+
'--tw-ring-inset': ' ',
|
|
3156
|
+
'--tw-ring-offset-width': theme('ringOffsetWidth.DEFAULT', '0px'),
|
|
3157
|
+
'--tw-ring-offset-color': theme('ringOffsetColor.DEFAULT', '#fff'),
|
|
3158
|
+
'--tw-ring-color': ringColorDefault,
|
|
3159
|
+
'--tw-ring-offset-shadow': '0 0 #0000',
|
|
3160
|
+
'--tw-ring-shadow': '0 0 #0000',
|
|
3161
|
+
'--tw-shadow': '0 0 #0000',
|
|
3162
|
+
'--tw-shadow-colored': '0 0 #0000'
|
|
3094
3163
|
});
|
|
3095
3164
|
matchUtilities({
|
|
3096
3165
|
ring: (value)=>{
|
|
3097
3166
|
return {
|
|
3098
|
-
'@defaults ring-width': {
|
|
3099
|
-
},
|
|
3167
|
+
'@defaults ring-width': {},
|
|
3100
3168
|
'--tw-ring-offset-shadow': `var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)`,
|
|
3101
3169
|
'--tw-ring-shadow': `var(--tw-ring-inset) 0 0 0 calc(${value} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,
|
|
3102
3170
|
'box-shadow': [
|
|
@@ -3112,15 +3180,19 @@ let corePlugins = {
|
|
|
3112
3180
|
});
|
|
3113
3181
|
addUtilities({
|
|
3114
3182
|
'.ring-inset': {
|
|
3115
|
-
'@defaults ring-width': {
|
|
3116
|
-
},
|
|
3183
|
+
'@defaults ring-width': {},
|
|
3117
3184
|
'--tw-ring-inset': 'inset'
|
|
3118
3185
|
}
|
|
3119
3186
|
});
|
|
3120
3187
|
},
|
|
3121
|
-
ringColor: ({ matchUtilities , theme })=>{
|
|
3188
|
+
ringColor: ({ matchUtilities , theme , corePlugins: corePlugins6 })=>{
|
|
3122
3189
|
matchUtilities({
|
|
3123
3190
|
ring: (value)=>{
|
|
3191
|
+
if (!corePlugins6('ringOpacity')) {
|
|
3192
|
+
return {
|
|
3193
|
+
'--tw-ring-color': (0, _toColorValue).default(value)
|
|
3194
|
+
};
|
|
3195
|
+
}
|
|
3124
3196
|
return (0, _withAlphaVariable).default({
|
|
3125
3197
|
color: value,
|
|
3126
3198
|
property: '--tw-ring-color',
|
|
@@ -3170,9 +3242,8 @@ let corePlugins = {
|
|
|
3170
3242
|
blur: (value)=>{
|
|
3171
3243
|
return {
|
|
3172
3244
|
'--tw-blur': `blur(${value})`,
|
|
3173
|
-
'@defaults filter': {
|
|
3174
|
-
|
|
3175
|
-
filter: 'var(--tw-filter)'
|
|
3245
|
+
'@defaults filter': {},
|
|
3246
|
+
filter: cssFilterValue
|
|
3176
3247
|
};
|
|
3177
3248
|
}
|
|
3178
3249
|
}, {
|
|
@@ -3184,9 +3255,8 @@ let corePlugins = {
|
|
|
3184
3255
|
brightness: (value)=>{
|
|
3185
3256
|
return {
|
|
3186
3257
|
'--tw-brightness': `brightness(${value})`,
|
|
3187
|
-
'@defaults filter': {
|
|
3188
|
-
|
|
3189
|
-
filter: 'var(--tw-filter)'
|
|
3258
|
+
'@defaults filter': {},
|
|
3259
|
+
filter: cssFilterValue
|
|
3190
3260
|
};
|
|
3191
3261
|
}
|
|
3192
3262
|
}, {
|
|
@@ -3198,9 +3268,8 @@ let corePlugins = {
|
|
|
3198
3268
|
contrast: (value)=>{
|
|
3199
3269
|
return {
|
|
3200
3270
|
'--tw-contrast': `contrast(${value})`,
|
|
3201
|
-
'@defaults filter': {
|
|
3202
|
-
|
|
3203
|
-
filter: 'var(--tw-filter)'
|
|
3271
|
+
'@defaults filter': {},
|
|
3272
|
+
filter: cssFilterValue
|
|
3204
3273
|
};
|
|
3205
3274
|
}
|
|
3206
3275
|
}, {
|
|
@@ -3213,9 +3282,8 @@ let corePlugins = {
|
|
|
3213
3282
|
return {
|
|
3214
3283
|
'--tw-drop-shadow': Array.isArray(value) ? value.map((v)=>`drop-shadow(${v})`
|
|
3215
3284
|
).join(' ') : `drop-shadow(${value})`,
|
|
3216
|
-
'@defaults filter': {
|
|
3217
|
-
|
|
3218
|
-
filter: 'var(--tw-filter)'
|
|
3285
|
+
'@defaults filter': {},
|
|
3286
|
+
filter: cssFilterValue
|
|
3219
3287
|
};
|
|
3220
3288
|
}
|
|
3221
3289
|
}, {
|
|
@@ -3227,9 +3295,8 @@ let corePlugins = {
|
|
|
3227
3295
|
grayscale: (value)=>{
|
|
3228
3296
|
return {
|
|
3229
3297
|
'--tw-grayscale': `grayscale(${value})`,
|
|
3230
|
-
'@defaults filter': {
|
|
3231
|
-
|
|
3232
|
-
filter: 'var(--tw-filter)'
|
|
3298
|
+
'@defaults filter': {},
|
|
3299
|
+
filter: cssFilterValue
|
|
3233
3300
|
};
|
|
3234
3301
|
}
|
|
3235
3302
|
}, {
|
|
@@ -3241,9 +3308,8 @@ let corePlugins = {
|
|
|
3241
3308
|
'hue-rotate': (value)=>{
|
|
3242
3309
|
return {
|
|
3243
3310
|
'--tw-hue-rotate': `hue-rotate(${value})`,
|
|
3244
|
-
'@defaults filter': {
|
|
3245
|
-
|
|
3246
|
-
filter: 'var(--tw-filter)'
|
|
3311
|
+
'@defaults filter': {},
|
|
3312
|
+
filter: cssFilterValue
|
|
3247
3313
|
};
|
|
3248
3314
|
}
|
|
3249
3315
|
}, {
|
|
@@ -3256,9 +3322,8 @@ let corePlugins = {
|
|
|
3256
3322
|
invert: (value)=>{
|
|
3257
3323
|
return {
|
|
3258
3324
|
'--tw-invert': `invert(${value})`,
|
|
3259
|
-
'@defaults filter': {
|
|
3260
|
-
|
|
3261
|
-
filter: 'var(--tw-filter)'
|
|
3325
|
+
'@defaults filter': {},
|
|
3326
|
+
filter: cssFilterValue
|
|
3262
3327
|
};
|
|
3263
3328
|
}
|
|
3264
3329
|
}, {
|
|
@@ -3270,9 +3335,8 @@ let corePlugins = {
|
|
|
3270
3335
|
saturate: (value)=>{
|
|
3271
3336
|
return {
|
|
3272
3337
|
'--tw-saturate': `saturate(${value})`,
|
|
3273
|
-
'@defaults filter': {
|
|
3274
|
-
|
|
3275
|
-
filter: 'var(--tw-filter)'
|
|
3338
|
+
'@defaults filter': {},
|
|
3339
|
+
filter: cssFilterValue
|
|
3276
3340
|
};
|
|
3277
3341
|
}
|
|
3278
3342
|
}, {
|
|
@@ -3284,45 +3348,30 @@ let corePlugins = {
|
|
|
3284
3348
|
sepia: (value)=>{
|
|
3285
3349
|
return {
|
|
3286
3350
|
'--tw-sepia': `sepia(${value})`,
|
|
3287
|
-
'@defaults filter': {
|
|
3288
|
-
|
|
3289
|
-
filter: 'var(--tw-filter)'
|
|
3351
|
+
'@defaults filter': {},
|
|
3352
|
+
filter: cssFilterValue
|
|
3290
3353
|
};
|
|
3291
3354
|
}
|
|
3292
3355
|
}, {
|
|
3293
3356
|
values: theme('sepia')
|
|
3294
3357
|
});
|
|
3295
3358
|
},
|
|
3296
|
-
filter: ({
|
|
3297
|
-
|
|
3298
|
-
'
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
'--tw-drop-shadow': 'var(--tw-empty,/*!*/ /*!*/)',
|
|
3308
|
-
'--tw-filter': [
|
|
3309
|
-
'var(--tw-blur)',
|
|
3310
|
-
'var(--tw-brightness)',
|
|
3311
|
-
'var(--tw-contrast)',
|
|
3312
|
-
'var(--tw-grayscale)',
|
|
3313
|
-
'var(--tw-hue-rotate)',
|
|
3314
|
-
'var(--tw-invert)',
|
|
3315
|
-
'var(--tw-saturate)',
|
|
3316
|
-
'var(--tw-sepia)',
|
|
3317
|
-
'var(--tw-drop-shadow)',
|
|
3318
|
-
].join(' ')
|
|
3319
|
-
}
|
|
3359
|
+
filter: ({ addDefaults , addUtilities })=>{
|
|
3360
|
+
addDefaults('filter', {
|
|
3361
|
+
'--tw-blur': ' ',
|
|
3362
|
+
'--tw-brightness': ' ',
|
|
3363
|
+
'--tw-contrast': ' ',
|
|
3364
|
+
'--tw-grayscale': ' ',
|
|
3365
|
+
'--tw-hue-rotate': ' ',
|
|
3366
|
+
'--tw-invert': ' ',
|
|
3367
|
+
'--tw-saturate': ' ',
|
|
3368
|
+
'--tw-sepia': ' ',
|
|
3369
|
+
'--tw-drop-shadow': ' '
|
|
3320
3370
|
});
|
|
3321
3371
|
addUtilities({
|
|
3322
3372
|
'.filter': {
|
|
3323
|
-
'@defaults filter': {
|
|
3324
|
-
|
|
3325
|
-
filter: 'var(--tw-filter)'
|
|
3373
|
+
'@defaults filter': {},
|
|
3374
|
+
filter: cssFilterValue
|
|
3326
3375
|
},
|
|
3327
3376
|
'.filter-none': {
|
|
3328
3377
|
filter: 'none'
|
|
@@ -3334,9 +3383,8 @@ let corePlugins = {
|
|
|
3334
3383
|
'backdrop-blur': (value)=>{
|
|
3335
3384
|
return {
|
|
3336
3385
|
'--tw-backdrop-blur': `blur(${value})`,
|
|
3337
|
-
'@defaults backdrop-filter': {
|
|
3338
|
-
|
|
3339
|
-
'backdrop-filter': 'var(--tw-backdrop-filter)'
|
|
3386
|
+
'@defaults backdrop-filter': {},
|
|
3387
|
+
'backdrop-filter': cssBackdropFilterValue
|
|
3340
3388
|
};
|
|
3341
3389
|
}
|
|
3342
3390
|
}, {
|
|
@@ -3348,9 +3396,8 @@ let corePlugins = {
|
|
|
3348
3396
|
'backdrop-brightness': (value)=>{
|
|
3349
3397
|
return {
|
|
3350
3398
|
'--tw-backdrop-brightness': `brightness(${value})`,
|
|
3351
|
-
'@defaults backdrop-filter': {
|
|
3352
|
-
|
|
3353
|
-
'backdrop-filter': 'var(--tw-backdrop-filter)'
|
|
3399
|
+
'@defaults backdrop-filter': {},
|
|
3400
|
+
'backdrop-filter': cssBackdropFilterValue
|
|
3354
3401
|
};
|
|
3355
3402
|
}
|
|
3356
3403
|
}, {
|
|
@@ -3362,9 +3409,8 @@ let corePlugins = {
|
|
|
3362
3409
|
'backdrop-contrast': (value)=>{
|
|
3363
3410
|
return {
|
|
3364
3411
|
'--tw-backdrop-contrast': `contrast(${value})`,
|
|
3365
|
-
'@defaults backdrop-filter': {
|
|
3366
|
-
|
|
3367
|
-
'backdrop-filter': 'var(--tw-backdrop-filter)'
|
|
3412
|
+
'@defaults backdrop-filter': {},
|
|
3413
|
+
'backdrop-filter': cssBackdropFilterValue
|
|
3368
3414
|
};
|
|
3369
3415
|
}
|
|
3370
3416
|
}, {
|
|
@@ -3376,9 +3422,8 @@ let corePlugins = {
|
|
|
3376
3422
|
'backdrop-grayscale': (value)=>{
|
|
3377
3423
|
return {
|
|
3378
3424
|
'--tw-backdrop-grayscale': `grayscale(${value})`,
|
|
3379
|
-
'@defaults backdrop-filter': {
|
|
3380
|
-
|
|
3381
|
-
'backdrop-filter': 'var(--tw-backdrop-filter)'
|
|
3425
|
+
'@defaults backdrop-filter': {},
|
|
3426
|
+
'backdrop-filter': cssBackdropFilterValue
|
|
3382
3427
|
};
|
|
3383
3428
|
}
|
|
3384
3429
|
}, {
|
|
@@ -3390,9 +3435,8 @@ let corePlugins = {
|
|
|
3390
3435
|
'backdrop-hue-rotate': (value)=>{
|
|
3391
3436
|
return {
|
|
3392
3437
|
'--tw-backdrop-hue-rotate': `hue-rotate(${value})`,
|
|
3393
|
-
'@defaults backdrop-filter': {
|
|
3394
|
-
|
|
3395
|
-
'backdrop-filter': 'var(--tw-backdrop-filter)'
|
|
3438
|
+
'@defaults backdrop-filter': {},
|
|
3439
|
+
'backdrop-filter': cssBackdropFilterValue
|
|
3396
3440
|
};
|
|
3397
3441
|
}
|
|
3398
3442
|
}, {
|
|
@@ -3405,9 +3449,8 @@ let corePlugins = {
|
|
|
3405
3449
|
'backdrop-invert': (value)=>{
|
|
3406
3450
|
return {
|
|
3407
3451
|
'--tw-backdrop-invert': `invert(${value})`,
|
|
3408
|
-
'@defaults backdrop-filter': {
|
|
3409
|
-
|
|
3410
|
-
'backdrop-filter': 'var(--tw-backdrop-filter)'
|
|
3452
|
+
'@defaults backdrop-filter': {},
|
|
3453
|
+
'backdrop-filter': cssBackdropFilterValue
|
|
3411
3454
|
};
|
|
3412
3455
|
}
|
|
3413
3456
|
}, {
|
|
@@ -3419,9 +3462,8 @@ let corePlugins = {
|
|
|
3419
3462
|
'backdrop-opacity': (value)=>{
|
|
3420
3463
|
return {
|
|
3421
3464
|
'--tw-backdrop-opacity': `opacity(${value})`,
|
|
3422
|
-
'@defaults backdrop-filter': {
|
|
3423
|
-
|
|
3424
|
-
'backdrop-filter': 'var(--tw-backdrop-filter)'
|
|
3465
|
+
'@defaults backdrop-filter': {},
|
|
3466
|
+
'backdrop-filter': cssBackdropFilterValue
|
|
3425
3467
|
};
|
|
3426
3468
|
}
|
|
3427
3469
|
}, {
|
|
@@ -3433,9 +3475,8 @@ let corePlugins = {
|
|
|
3433
3475
|
'backdrop-saturate': (value)=>{
|
|
3434
3476
|
return {
|
|
3435
3477
|
'--tw-backdrop-saturate': `saturate(${value})`,
|
|
3436
|
-
'@defaults backdrop-filter': {
|
|
3437
|
-
|
|
3438
|
-
'backdrop-filter': 'var(--tw-backdrop-filter)'
|
|
3478
|
+
'@defaults backdrop-filter': {},
|
|
3479
|
+
'backdrop-filter': cssBackdropFilterValue
|
|
3439
3480
|
};
|
|
3440
3481
|
}
|
|
3441
3482
|
}, {
|
|
@@ -3447,45 +3488,30 @@ let corePlugins = {
|
|
|
3447
3488
|
'backdrop-sepia': (value)=>{
|
|
3448
3489
|
return {
|
|
3449
3490
|
'--tw-backdrop-sepia': `sepia(${value})`,
|
|
3450
|
-
'@defaults backdrop-filter': {
|
|
3451
|
-
|
|
3452
|
-
'backdrop-filter': 'var(--tw-backdrop-filter)'
|
|
3491
|
+
'@defaults backdrop-filter': {},
|
|
3492
|
+
'backdrop-filter': cssBackdropFilterValue
|
|
3453
3493
|
};
|
|
3454
3494
|
}
|
|
3455
3495
|
}, {
|
|
3456
3496
|
values: theme('backdropSepia')
|
|
3457
3497
|
});
|
|
3458
3498
|
},
|
|
3459
|
-
backdropFilter: ({
|
|
3460
|
-
|
|
3461
|
-
'
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
'--tw-backdrop-sepia': 'var(--tw-empty,/*!*/ /*!*/)',
|
|
3471
|
-
'--tw-backdrop-filter': [
|
|
3472
|
-
'var(--tw-backdrop-blur)',
|
|
3473
|
-
'var(--tw-backdrop-brightness)',
|
|
3474
|
-
'var(--tw-backdrop-contrast)',
|
|
3475
|
-
'var(--tw-backdrop-grayscale)',
|
|
3476
|
-
'var(--tw-backdrop-hue-rotate)',
|
|
3477
|
-
'var(--tw-backdrop-invert)',
|
|
3478
|
-
'var(--tw-backdrop-opacity)',
|
|
3479
|
-
'var(--tw-backdrop-saturate)',
|
|
3480
|
-
'var(--tw-backdrop-sepia)',
|
|
3481
|
-
].join(' ')
|
|
3482
|
-
}
|
|
3499
|
+
backdropFilter: ({ addDefaults , addUtilities })=>{
|
|
3500
|
+
addDefaults('backdrop-filter', {
|
|
3501
|
+
'--tw-backdrop-blur': ' ',
|
|
3502
|
+
'--tw-backdrop-brightness': ' ',
|
|
3503
|
+
'--tw-backdrop-contrast': ' ',
|
|
3504
|
+
'--tw-backdrop-grayscale': ' ',
|
|
3505
|
+
'--tw-backdrop-hue-rotate': ' ',
|
|
3506
|
+
'--tw-backdrop-invert': ' ',
|
|
3507
|
+
'--tw-backdrop-opacity': ' ',
|
|
3508
|
+
'--tw-backdrop-saturate': ' ',
|
|
3509
|
+
'--tw-backdrop-sepia': ' '
|
|
3483
3510
|
});
|
|
3484
3511
|
addUtilities({
|
|
3485
3512
|
'.backdrop-filter': {
|
|
3486
|
-
'@defaults backdrop-filter': {
|
|
3487
|
-
|
|
3488
|
-
'backdrop-filter': 'var(--tw-backdrop-filter)'
|
|
3513
|
+
'@defaults backdrop-filter': {},
|
|
3514
|
+
'backdrop-filter': cssBackdropFilterValue
|
|
3489
3515
|
},
|
|
3490
3516
|
'.backdrop-filter-none': {
|
|
3491
3517
|
'backdrop-filter': 'none'
|
|
@@ -3499,8 +3525,7 @@ let corePlugins = {
|
|
|
3499
3525
|
transition: (value)=>{
|
|
3500
3526
|
return {
|
|
3501
3527
|
'transition-property': value,
|
|
3502
|
-
...value === 'none' ? {
|
|
3503
|
-
} : {
|
|
3528
|
+
...value === 'none' ? {} : {
|
|
3504
3529
|
'transition-timing-function': defaultTimingFunction,
|
|
3505
3530
|
'transition-duration': defaultDuration
|
|
3506
3531
|
}
|