tailwindcss 0.0.0-insiders.cbbfa82 → 0.0.0-insiders.cc1eec6
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 -1
- package/lib/cli/build/index.js +7 -3
- package/lib/cli/build/plugin.js +65 -51
- package/lib/cli/build/watching.js +4 -2
- package/lib/cli/index.js +222 -10
- package/lib/cli/init/index.js +22 -7
- package/lib/cli.js +4 -236
- package/lib/corePluginList.js +4 -0
- package/lib/corePlugins.js +319 -52
- package/lib/css/preflight.css +2 -0
- package/lib/featureFlags.js +16 -9
- package/lib/index.js +4 -46
- package/lib/lib/collapseAdjacentRules.js +2 -2
- package/lib/lib/collapseDuplicateDeclarations.js +2 -2
- package/lib/lib/content.js +16 -16
- package/lib/lib/defaultExtractor.js +10 -5
- package/lib/lib/detectNesting.js +7 -1
- package/lib/lib/evaluateTailwindFunctions.js +4 -4
- package/lib/lib/expandApplyAtRules.js +14 -3
- package/lib/lib/expandTailwindAtRules.js +34 -9
- package/lib/lib/findAtConfigPath.js +3 -3
- package/lib/lib/generateRules.js +123 -64
- package/lib/lib/getModuleDependencies.js +79 -33
- package/lib/lib/load-config.js +40 -0
- package/lib/lib/offsets.js +88 -1
- package/lib/lib/remap-bitfield.js +87 -0
- package/lib/lib/resolveDefaultsAtRules.js +4 -4
- package/lib/lib/setupContextUtils.js +123 -68
- package/lib/lib/setupTrackingContext.js +29 -8
- package/lib/lib/sharedState.js +25 -2
- package/lib/oxide/cli/build/deps.js +81 -0
- package/lib/oxide/cli/build/index.js +51 -0
- package/lib/oxide/cli/build/plugin.js +373 -0
- package/lib/oxide/cli/build/utils.js +77 -0
- package/lib/oxide/cli/build/watching.js +177 -0
- package/lib/oxide/cli/help/index.js +70 -0
- package/lib/oxide/cli/index.js +214 -0
- package/lib/oxide/cli/init/index.js +50 -0
- package/lib/oxide/cli.js +5 -0
- package/lib/oxide/postcss-plugin.js +2 -0
- package/lib/plugin.js +98 -0
- package/lib/postcss-plugins/nesting/plugin.js +2 -2
- package/lib/public/colors.js +44 -22
- package/lib/public/default-config.js +2 -2
- package/lib/public/default-theme.js +2 -2
- package/lib/public/load-config.js +10 -0
- package/lib/util/applyImportantSelector.js +37 -0
- package/lib/util/cloneNodes.js +2 -2
- package/lib/util/color.js +20 -6
- package/lib/util/createUtilityPlugin.js +2 -2
- package/lib/util/dataTypes.js +26 -2
- package/lib/util/defaults.js +4 -4
- package/lib/util/escapeClassName.js +3 -3
- package/lib/util/formatVariantSelector.js +173 -115
- package/lib/util/getAllConfigs.js +4 -4
- package/lib/util/negateValue.js +2 -2
- package/lib/util/normalizeConfig.js +21 -22
- package/lib/util/pluginUtils.js +20 -39
- package/lib/util/prefixSelector.js +22 -8
- package/lib/util/resolveConfig.js +7 -7
- package/lib/util/resolveConfigPath.js +19 -7
- package/lib/util/splitAtTopLevelOnly.js +7 -1
- package/lib/util/validateConfig.js +11 -0
- package/loadConfig.d.ts +4 -0
- package/loadConfig.js +2 -0
- package/package.json +33 -21
- package/peers/index.js +108 -173
- package/resolveConfig.d.ts +11 -2
- package/scripts/swap-engines.js +40 -0
- package/src/cli/build/index.js +7 -7
- package/src/cli/build/plugin.js +40 -30
- package/src/cli/build/watching.js +4 -2
- package/src/cli/index.js +216 -3
- package/src/cli/init/index.js +37 -8
- package/src/cli.js +4 -231
- package/src/corePluginList.js +1 -1
- package/src/corePlugins.js +205 -29
- package/src/css/preflight.css +2 -0
- package/src/featureFlags.js +7 -0
- package/src/index.js +4 -46
- package/src/lib/content.js +12 -17
- package/src/lib/defaultExtractor.js +9 -3
- package/src/lib/detectNesting.js +9 -1
- package/src/lib/expandApplyAtRules.js +14 -1
- package/src/lib/expandTailwindAtRules.js +35 -6
- package/src/lib/generateRules.js +124 -42
- package/src/lib/getModuleDependencies.js +70 -30
- package/src/lib/load-config.ts +31 -0
- package/src/lib/offsets.js +104 -1
- package/src/lib/remap-bitfield.js +82 -0
- package/src/lib/setupContextUtils.js +99 -43
- package/src/lib/setupTrackingContext.js +35 -10
- package/src/lib/sharedState.js +30 -4
- package/src/oxide/cli/build/deps.ts +91 -0
- package/src/oxide/cli/build/index.ts +47 -0
- package/src/oxide/cli/build/plugin.ts +442 -0
- package/src/oxide/cli/build/utils.ts +74 -0
- package/src/oxide/cli/build/watching.ts +225 -0
- package/src/oxide/cli/help/index.ts +69 -0
- package/src/oxide/cli/index.ts +204 -0
- package/src/oxide/cli/init/index.ts +59 -0
- package/src/oxide/cli.ts +1 -0
- package/src/oxide/postcss-plugin.ts +1 -0
- package/src/plugin.js +107 -0
- package/src/public/colors.js +22 -0
- package/src/public/default-config.js +1 -1
- package/src/public/default-theme.js +2 -2
- package/src/public/load-config.js +2 -0
- package/src/util/applyImportantSelector.js +30 -0
- package/src/util/color.js +17 -2
- package/src/util/dataTypes.js +29 -4
- package/src/util/formatVariantSelector.js +240 -121
- package/src/util/getAllConfigs.js +2 -2
- package/src/util/negateValue.js +1 -1
- package/src/util/normalizeConfig.js +2 -1
- package/src/util/pluginUtils.js +10 -29
- package/src/util/prefixSelector.js +28 -10
- package/src/util/resolveConfigPath.js +12 -1
- package/src/util/splitAtTopLevelOnly.js +8 -1
- package/src/util/validateConfig.js +13 -0
- package/stubs/.gitignore +1 -0
- package/stubs/.prettierrc.json +6 -0
- package/stubs/{defaultConfig.stub.js → config.full.js} +183 -146
- package/stubs/{simpleConfig.stub.js → config.simple.js} +0 -1
- package/stubs/postcss.config.js +6 -0
- package/stubs/tailwind.config.cjs +2 -0
- package/stubs/tailwind.config.js +2 -0
- package/stubs/tailwind.config.ts +3 -0
- package/types/config.d.ts +15 -9
- package/types/generated/colors.d.ts +22 -0
- package/types/generated/corePluginList.d.ts +1 -1
- package/types/generated/default-theme.d.ts +108 -79
- package/CHANGELOG.md +0 -2339
- package/lib/cli/shared.js +0 -12
- package/lib/constants.js +0 -44
- package/scripts/install-integrations.js +0 -27
- package/scripts/rebuildFixtures.js +0 -68
- package/src/cli/shared.js +0 -5
- package/src/constants.js +0 -17
- /package/stubs/{defaultPostCssConfig.stub.js → postcss.config.cjs} +0 -0
package/lib/corePlugins.js
CHANGED
|
@@ -15,6 +15,7 @@ _export(exports, {
|
|
|
15
15
|
const _fs = /*#__PURE__*/ _interopRequireDefault(require("fs"));
|
|
16
16
|
const _path = /*#__PURE__*/ _interopRequireWildcard(require("path"));
|
|
17
17
|
const _postcss = /*#__PURE__*/ _interopRequireDefault(require("postcss"));
|
|
18
|
+
const _sharedState = require("./lib/sharedState");
|
|
18
19
|
const _createUtilityPlugin = /*#__PURE__*/ _interopRequireDefault(require("./util/createUtilityPlugin"));
|
|
19
20
|
const _buildMediaQuery = /*#__PURE__*/ _interopRequireDefault(require("./util/buildMediaQuery"));
|
|
20
21
|
const _escapeClassName = /*#__PURE__*/ _interopRequireDefault(require("./util/escapeClassName"));
|
|
@@ -212,14 +213,14 @@ let variantPlugins = {
|
|
|
212
213
|
}
|
|
213
214
|
let variants = {
|
|
214
215
|
group: (_, { modifier })=>modifier ? [
|
|
215
|
-
`:merge(.group\\/${modifier})`,
|
|
216
|
+
`:merge(.group\\/${(0, _escapeClassName.default)(modifier)})`,
|
|
216
217
|
" &"
|
|
217
218
|
] : [
|
|
218
219
|
`:merge(.group)`,
|
|
219
220
|
" &"
|
|
220
221
|
],
|
|
221
222
|
peer: (_, { modifier })=>modifier ? [
|
|
222
|
-
`:merge(.peer\\/${modifier})`,
|
|
223
|
+
`:merge(.peer\\/${(0, _escapeClassName.default)(modifier)})`,
|
|
223
224
|
" ~ &"
|
|
224
225
|
] : [
|
|
225
226
|
`:merge(.peer)`,
|
|
@@ -231,27 +232,33 @@ let variantPlugins = {
|
|
|
231
232
|
let result = (0, _dataTypes.normalize)(typeof value === "function" ? value(extra) : value);
|
|
232
233
|
if (!result.includes("&")) result = "&" + result;
|
|
233
234
|
let [a, b] = fn("", extra);
|
|
234
|
-
|
|
235
|
+
let start = null;
|
|
236
|
+
let end = null;
|
|
237
|
+
let quotes = 0;
|
|
238
|
+
for(let i = 0; i < result.length; ++i){
|
|
239
|
+
let c = result[i];
|
|
240
|
+
if (c === "&") {
|
|
241
|
+
start = i;
|
|
242
|
+
} else if (c === "'" || c === '"') {
|
|
243
|
+
quotes += 1;
|
|
244
|
+
} else if (start !== null && c === " " && !quotes) {
|
|
245
|
+
end = i;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
if (start !== null && end === null) {
|
|
249
|
+
end = result.length;
|
|
250
|
+
}
|
|
251
|
+
// Basically this but can handle quotes:
|
|
252
|
+
// result.replace(/&(\S+)?/g, (_, pseudo = '') => a + pseudo + b)
|
|
253
|
+
return result.slice(0, start) + a + result.slice(start + 1, end) + b + result.slice(end);
|
|
235
254
|
}, {
|
|
236
255
|
values: Object.fromEntries(pseudoVariants)
|
|
237
256
|
});
|
|
238
257
|
}
|
|
239
258
|
},
|
|
240
259
|
directionVariants: ({ addVariant })=>{
|
|
241
|
-
addVariant("ltr", ()
|
|
242
|
-
|
|
243
|
-
"The RTL features in Tailwind CSS are currently in preview.",
|
|
244
|
-
"Preview features are not covered by semver, and may be improved in breaking ways at any time."
|
|
245
|
-
]);
|
|
246
|
-
return '[dir="ltr"] &';
|
|
247
|
-
});
|
|
248
|
-
addVariant("rtl", ()=>{
|
|
249
|
-
_log.default.warn("rtl-experimental", [
|
|
250
|
-
"The RTL features in Tailwind CSS are currently in preview.",
|
|
251
|
-
"Preview features are not covered by semver, and may be improved in breaking ways at any time."
|
|
252
|
-
]);
|
|
253
|
-
return '[dir="rtl"] &';
|
|
254
|
-
});
|
|
260
|
+
addVariant("ltr", ':is([dir="ltr"] &)');
|
|
261
|
+
addVariant("rtl", ':is([dir="rtl"] &)');
|
|
255
262
|
},
|
|
256
263
|
reducedMotionVariants: ({ addVariant })=>{
|
|
257
264
|
addVariant("motion-safe", "@media (prefers-reduced-motion: no-preference)");
|
|
@@ -268,7 +275,7 @@ let variantPlugins = {
|
|
|
268
275
|
]);
|
|
269
276
|
}
|
|
270
277
|
if (mode === "class") {
|
|
271
|
-
addVariant("dark",
|
|
278
|
+
addVariant("dark", `:is(${className} &)`);
|
|
272
279
|
} else if (mode === "media") {
|
|
273
280
|
addVariant("dark", "@media (prefers-color-scheme: dark)");
|
|
274
281
|
}
|
|
@@ -277,15 +284,15 @@ let variantPlugins = {
|
|
|
277
284
|
addVariant("print", "@media print");
|
|
278
285
|
},
|
|
279
286
|
screenVariants: ({ theme , addVariant , matchVariant })=>{
|
|
280
|
-
var
|
|
281
|
-
let rawScreens = (
|
|
287
|
+
var _theme;
|
|
288
|
+
let rawScreens = (_theme = theme("screens")) !== null && _theme !== void 0 ? _theme : {};
|
|
282
289
|
let areSimpleScreens = Object.values(rawScreens).every((v)=>typeof v === "string");
|
|
283
290
|
let screens = (0, _normalizeScreens.normalizeScreens)(theme("screens"));
|
|
284
291
|
/** @type {Set<string>} */ let unitCache = new Set([]);
|
|
285
292
|
/** @param {string} value */ function units(value) {
|
|
286
|
-
var
|
|
287
|
-
var
|
|
288
|
-
return (
|
|
293
|
+
var _value_match;
|
|
294
|
+
var _value_match_;
|
|
295
|
+
return (_value_match_ = (_value_match = value.match(/(\D+)$/)) === null || _value_match === void 0 ? void 0 : _value_match[1]) !== null && _value_match_ !== void 0 ? _value_match_ : "(none)";
|
|
289
296
|
}
|
|
290
297
|
/** @param {string} value */ function recordUnits(value) {
|
|
291
298
|
if (value !== undefined) {
|
|
@@ -384,7 +391,7 @@ let variantPlugins = {
|
|
|
384
391
|
});
|
|
385
392
|
},
|
|
386
393
|
supportsVariants: ({ matchVariant , theme })=>{
|
|
387
|
-
var
|
|
394
|
+
var _theme;
|
|
388
395
|
matchVariant("supports", (value = "")=>{
|
|
389
396
|
let check = (0, _dataTypes.normalize)(value);
|
|
390
397
|
let isRaw = /^\w*\s*\(/.test(check);
|
|
@@ -402,35 +409,35 @@ let variantPlugins = {
|
|
|
402
409
|
}
|
|
403
410
|
return `@supports ${check}`;
|
|
404
411
|
}, {
|
|
405
|
-
values: (
|
|
412
|
+
values: (_theme = theme("supports")) !== null && _theme !== void 0 ? _theme : {}
|
|
406
413
|
});
|
|
407
414
|
},
|
|
408
415
|
ariaVariants: ({ matchVariant , theme })=>{
|
|
409
|
-
var
|
|
416
|
+
var _theme;
|
|
410
417
|
matchVariant("aria", (value)=>`&[aria-${(0, _dataTypes.normalize)(value)}]`, {
|
|
411
|
-
values: (
|
|
418
|
+
values: (_theme = theme("aria")) !== null && _theme !== void 0 ? _theme : {}
|
|
412
419
|
});
|
|
413
|
-
var
|
|
420
|
+
var _theme1;
|
|
414
421
|
matchVariant("group-aria", (value, { modifier })=>modifier ? `:merge(.group\\/${modifier})[aria-${(0, _dataTypes.normalize)(value)}] &` : `:merge(.group)[aria-${(0, _dataTypes.normalize)(value)}] &`, {
|
|
415
|
-
values: (
|
|
422
|
+
values: (_theme1 = theme("aria")) !== null && _theme1 !== void 0 ? _theme1 : {}
|
|
416
423
|
});
|
|
417
|
-
var
|
|
424
|
+
var _theme2;
|
|
418
425
|
matchVariant("peer-aria", (value, { modifier })=>modifier ? `:merge(.peer\\/${modifier})[aria-${(0, _dataTypes.normalize)(value)}] ~ &` : `:merge(.peer)[aria-${(0, _dataTypes.normalize)(value)}] ~ &`, {
|
|
419
|
-
values: (
|
|
426
|
+
values: (_theme2 = theme("aria")) !== null && _theme2 !== void 0 ? _theme2 : {}
|
|
420
427
|
});
|
|
421
428
|
},
|
|
422
429
|
dataVariants: ({ matchVariant , theme })=>{
|
|
423
|
-
var
|
|
430
|
+
var _theme;
|
|
424
431
|
matchVariant("data", (value)=>`&[data-${(0, _dataTypes.normalize)(value)}]`, {
|
|
425
|
-
values: (
|
|
432
|
+
values: (_theme = theme("data")) !== null && _theme !== void 0 ? _theme : {}
|
|
426
433
|
});
|
|
427
|
-
var
|
|
434
|
+
var _theme1;
|
|
428
435
|
matchVariant("group-data", (value, { modifier })=>modifier ? `:merge(.group\\/${modifier})[data-${(0, _dataTypes.normalize)(value)}] &` : `:merge(.group)[data-${(0, _dataTypes.normalize)(value)}] &`, {
|
|
429
|
-
values: (
|
|
436
|
+
values: (_theme1 = theme("data")) !== null && _theme1 !== void 0 ? _theme1 : {}
|
|
430
437
|
});
|
|
431
|
-
var
|
|
438
|
+
var _theme2;
|
|
432
439
|
matchVariant("peer-data", (value, { modifier })=>modifier ? `:merge(.peer\\/${modifier})[data-${(0, _dataTypes.normalize)(value)}] ~ &` : `:merge(.peer)[data-${(0, _dataTypes.normalize)(value)}] ~ &`, {
|
|
433
|
-
values: (
|
|
440
|
+
values: (_theme2 = theme("data")) !== null && _theme2 !== void 0 ? _theme2 : {}
|
|
434
441
|
});
|
|
435
442
|
},
|
|
436
443
|
orientationVariants: ({ addVariant })=>{
|
|
@@ -627,10 +634,7 @@ let corePlugins = {
|
|
|
627
634
|
[
|
|
628
635
|
"inset",
|
|
629
636
|
[
|
|
630
|
-
"
|
|
631
|
-
"right",
|
|
632
|
-
"bottom",
|
|
633
|
-
"left"
|
|
637
|
+
"inset"
|
|
634
638
|
]
|
|
635
639
|
],
|
|
636
640
|
[
|
|
@@ -650,6 +654,18 @@ let corePlugins = {
|
|
|
650
654
|
]
|
|
651
655
|
],
|
|
652
656
|
[
|
|
657
|
+
[
|
|
658
|
+
"start",
|
|
659
|
+
[
|
|
660
|
+
"inset-inline-start"
|
|
661
|
+
]
|
|
662
|
+
],
|
|
663
|
+
[
|
|
664
|
+
"end",
|
|
665
|
+
[
|
|
666
|
+
"inset-inline-end"
|
|
667
|
+
]
|
|
668
|
+
],
|
|
653
669
|
[
|
|
654
670
|
"top",
|
|
655
671
|
[
|
|
@@ -802,6 +818,18 @@ let corePlugins = {
|
|
|
802
818
|
]
|
|
803
819
|
],
|
|
804
820
|
[
|
|
821
|
+
[
|
|
822
|
+
"ms",
|
|
823
|
+
[
|
|
824
|
+
"margin-inline-start"
|
|
825
|
+
]
|
|
826
|
+
],
|
|
827
|
+
[
|
|
828
|
+
"me",
|
|
829
|
+
[
|
|
830
|
+
"margin-inline-end"
|
|
831
|
+
]
|
|
832
|
+
],
|
|
805
833
|
[
|
|
806
834
|
"mt",
|
|
807
835
|
[
|
|
@@ -840,6 +868,26 @@ let corePlugins = {
|
|
|
840
868
|
}
|
|
841
869
|
});
|
|
842
870
|
},
|
|
871
|
+
lineClamp: ({ matchUtilities , addUtilities , theme })=>{
|
|
872
|
+
matchUtilities({
|
|
873
|
+
"line-clamp": (value)=>({
|
|
874
|
+
overflow: "hidden",
|
|
875
|
+
display: "-webkit-box",
|
|
876
|
+
"-webkit-box-orient": "vertical",
|
|
877
|
+
"-webkit-line-clamp": `${value}`
|
|
878
|
+
})
|
|
879
|
+
}, {
|
|
880
|
+
values: theme("lineClamp")
|
|
881
|
+
});
|
|
882
|
+
addUtilities({
|
|
883
|
+
".line-clamp-none": {
|
|
884
|
+
overflow: "visible",
|
|
885
|
+
display: "block",
|
|
886
|
+
"-webkit-box-orient": "horizontal",
|
|
887
|
+
"-webkit-line-clamp": "none"
|
|
888
|
+
}
|
|
889
|
+
});
|
|
890
|
+
},
|
|
843
891
|
display: ({ addUtilities })=>{
|
|
844
892
|
addUtilities({
|
|
845
893
|
".block": {
|
|
@@ -1010,6 +1058,16 @@ let corePlugins = {
|
|
|
1010
1058
|
}
|
|
1011
1059
|
});
|
|
1012
1060
|
},
|
|
1061
|
+
captionSide: ({ addUtilities })=>{
|
|
1062
|
+
addUtilities({
|
|
1063
|
+
".caption-top": {
|
|
1064
|
+
"caption-side": "top"
|
|
1065
|
+
},
|
|
1066
|
+
".caption-bottom": {
|
|
1067
|
+
"caption-side": "bottom"
|
|
1068
|
+
}
|
|
1069
|
+
});
|
|
1070
|
+
},
|
|
1013
1071
|
borderCollapse: ({ addUtilities })=>{
|
|
1014
1072
|
addUtilities({
|
|
1015
1073
|
".border-collapse": {
|
|
@@ -1223,8 +1281,8 @@ let corePlugins = {
|
|
|
1223
1281
|
},
|
|
1224
1282
|
animation: ({ matchUtilities , theme , config })=>{
|
|
1225
1283
|
let prefixName = (name)=>`${config("prefix")}${(0, _escapeClassName.default)(name)}`;
|
|
1226
|
-
var
|
|
1227
|
-
let keyframes = Object.fromEntries(Object.entries((
|
|
1284
|
+
var _theme;
|
|
1285
|
+
let keyframes = Object.fromEntries(Object.entries((_theme = theme("keyframes")) !== null && _theme !== void 0 ? _theme : {}).map(([key, value])=>{
|
|
1228
1286
|
return [
|
|
1229
1287
|
key,
|
|
1230
1288
|
{
|
|
@@ -1416,6 +1474,18 @@ let corePlugins = {
|
|
|
1416
1474
|
]
|
|
1417
1475
|
],
|
|
1418
1476
|
[
|
|
1477
|
+
[
|
|
1478
|
+
"scroll-ms",
|
|
1479
|
+
[
|
|
1480
|
+
"scroll-margin-inline-start"
|
|
1481
|
+
]
|
|
1482
|
+
],
|
|
1483
|
+
[
|
|
1484
|
+
"scroll-me",
|
|
1485
|
+
[
|
|
1486
|
+
"scroll-margin-inline-end"
|
|
1487
|
+
]
|
|
1488
|
+
],
|
|
1419
1489
|
[
|
|
1420
1490
|
"scroll-mt",
|
|
1421
1491
|
[
|
|
@@ -1468,6 +1538,18 @@ let corePlugins = {
|
|
|
1468
1538
|
]
|
|
1469
1539
|
],
|
|
1470
1540
|
[
|
|
1541
|
+
[
|
|
1542
|
+
"scroll-ps",
|
|
1543
|
+
[
|
|
1544
|
+
"scroll-padding-inline-start"
|
|
1545
|
+
]
|
|
1546
|
+
],
|
|
1547
|
+
[
|
|
1548
|
+
"scroll-pe",
|
|
1549
|
+
[
|
|
1550
|
+
"scroll-padding-inline-end"
|
|
1551
|
+
]
|
|
1552
|
+
],
|
|
1471
1553
|
[
|
|
1472
1554
|
"scroll-pt",
|
|
1473
1555
|
[
|
|
@@ -1512,6 +1594,14 @@ let corePlugins = {
|
|
|
1512
1594
|
]
|
|
1513
1595
|
]
|
|
1514
1596
|
]),
|
|
1597
|
+
listStyleImage: (0, _createUtilityPlugin.default)("listStyleImage", [
|
|
1598
|
+
[
|
|
1599
|
+
"list-image",
|
|
1600
|
+
[
|
|
1601
|
+
"listStyleImage"
|
|
1602
|
+
]
|
|
1603
|
+
]
|
|
1604
|
+
]),
|
|
1515
1605
|
appearance: ({ addUtilities })=>{
|
|
1516
1606
|
addUtilities({
|
|
1517
1607
|
".appearance-none": {
|
|
@@ -1728,6 +1818,9 @@ let corePlugins = {
|
|
|
1728
1818
|
},
|
|
1729
1819
|
alignContent: ({ addUtilities })=>{
|
|
1730
1820
|
addUtilities({
|
|
1821
|
+
".content-normal": {
|
|
1822
|
+
"align-content": "normal"
|
|
1823
|
+
},
|
|
1731
1824
|
".content-center": {
|
|
1732
1825
|
"align-content": "center"
|
|
1733
1826
|
},
|
|
@@ -1748,6 +1841,9 @@ let corePlugins = {
|
|
|
1748
1841
|
},
|
|
1749
1842
|
".content-baseline": {
|
|
1750
1843
|
"align-content": "baseline"
|
|
1844
|
+
},
|
|
1845
|
+
".content-stretch": {
|
|
1846
|
+
"align-content": "stretch"
|
|
1751
1847
|
}
|
|
1752
1848
|
});
|
|
1753
1849
|
},
|
|
@@ -1772,6 +1868,9 @@ let corePlugins = {
|
|
|
1772
1868
|
},
|
|
1773
1869
|
justifyContent: ({ addUtilities })=>{
|
|
1774
1870
|
addUtilities({
|
|
1871
|
+
".justify-normal": {
|
|
1872
|
+
"justify-content": "normal"
|
|
1873
|
+
},
|
|
1775
1874
|
".justify-start": {
|
|
1776
1875
|
"justify-content": "flex-start"
|
|
1777
1876
|
},
|
|
@@ -1789,6 +1888,9 @@ let corePlugins = {
|
|
|
1789
1888
|
},
|
|
1790
1889
|
".justify-evenly": {
|
|
1791
1890
|
"justify-content": "space-evenly"
|
|
1891
|
+
},
|
|
1892
|
+
".justify-stretch": {
|
|
1893
|
+
"justify-content": "stretch"
|
|
1792
1894
|
}
|
|
1793
1895
|
});
|
|
1794
1896
|
},
|
|
@@ -1834,6 +1936,15 @@ let corePlugins = {
|
|
|
1834
1936
|
matchUtilities({
|
|
1835
1937
|
"space-x": (value)=>{
|
|
1836
1938
|
value = value === "0" ? "0px" : value;
|
|
1939
|
+
if (_sharedState.env.OXIDE) {
|
|
1940
|
+
return {
|
|
1941
|
+
"& > :not([hidden]) ~ :not([hidden])": {
|
|
1942
|
+
"--tw-space-x-reverse": "0",
|
|
1943
|
+
"margin-inline-end": `calc(${value} * var(--tw-space-x-reverse))`,
|
|
1944
|
+
"margin-inline-start": `calc(${value} * calc(1 - var(--tw-space-x-reverse)))`
|
|
1945
|
+
}
|
|
1946
|
+
};
|
|
1947
|
+
}
|
|
1837
1948
|
return {
|
|
1838
1949
|
"& > :not([hidden]) ~ :not([hidden])": {
|
|
1839
1950
|
"--tw-space-x-reverse": "0",
|
|
@@ -1869,6 +1980,16 @@ let corePlugins = {
|
|
|
1869
1980
|
matchUtilities({
|
|
1870
1981
|
"divide-x": (value)=>{
|
|
1871
1982
|
value = value === "0" ? "0px" : value;
|
|
1983
|
+
if (_sharedState.env.OXIDE) {
|
|
1984
|
+
return {
|
|
1985
|
+
"& > :not([hidden]) ~ :not([hidden])": {
|
|
1986
|
+
"@defaults border-width": {},
|
|
1987
|
+
"--tw-divide-x-reverse": "0",
|
|
1988
|
+
"border-inline-end-width": `calc(${value} * var(--tw-divide-x-reverse))`,
|
|
1989
|
+
"border-inline-start-width": `calc(${value} * calc(1 - var(--tw-divide-x-reverse)))`
|
|
1990
|
+
}
|
|
1991
|
+
};
|
|
1992
|
+
}
|
|
1872
1993
|
return {
|
|
1873
1994
|
"& > :not([hidden]) ~ :not([hidden])": {
|
|
1874
1995
|
"@defaults border-width": {},
|
|
@@ -2134,6 +2255,19 @@ let corePlugins = {
|
|
|
2134
2255
|
}
|
|
2135
2256
|
});
|
|
2136
2257
|
},
|
|
2258
|
+
hyphens: ({ addUtilities })=>{
|
|
2259
|
+
addUtilities({
|
|
2260
|
+
".hyphens-none": {
|
|
2261
|
+
hyphens: "none"
|
|
2262
|
+
},
|
|
2263
|
+
".hyphens-manual": {
|
|
2264
|
+
hyphens: "manual"
|
|
2265
|
+
},
|
|
2266
|
+
".hyphens-auto": {
|
|
2267
|
+
hyphens: "auto"
|
|
2268
|
+
}
|
|
2269
|
+
});
|
|
2270
|
+
},
|
|
2137
2271
|
whitespace: ({ addUtilities })=>{
|
|
2138
2272
|
addUtilities({
|
|
2139
2273
|
".whitespace-normal": {
|
|
@@ -2150,6 +2284,9 @@ let corePlugins = {
|
|
|
2150
2284
|
},
|
|
2151
2285
|
".whitespace-pre-wrap": {
|
|
2152
2286
|
"white-space": "pre-wrap"
|
|
2287
|
+
},
|
|
2288
|
+
".whitespace-break-spaces": {
|
|
2289
|
+
"white-space": "break-spaces"
|
|
2153
2290
|
}
|
|
2154
2291
|
});
|
|
2155
2292
|
},
|
|
@@ -2178,6 +2315,20 @@ let corePlugins = {
|
|
|
2178
2315
|
]
|
|
2179
2316
|
],
|
|
2180
2317
|
[
|
|
2318
|
+
[
|
|
2319
|
+
"rounded-s",
|
|
2320
|
+
[
|
|
2321
|
+
"border-start-start-radius",
|
|
2322
|
+
"border-end-start-radius"
|
|
2323
|
+
]
|
|
2324
|
+
],
|
|
2325
|
+
[
|
|
2326
|
+
"rounded-e",
|
|
2327
|
+
[
|
|
2328
|
+
"border-start-end-radius",
|
|
2329
|
+
"border-end-end-radius"
|
|
2330
|
+
]
|
|
2331
|
+
],
|
|
2181
2332
|
[
|
|
2182
2333
|
"rounded-t",
|
|
2183
2334
|
[
|
|
@@ -2208,6 +2359,30 @@ let corePlugins = {
|
|
|
2208
2359
|
]
|
|
2209
2360
|
],
|
|
2210
2361
|
[
|
|
2362
|
+
[
|
|
2363
|
+
"rounded-ss",
|
|
2364
|
+
[
|
|
2365
|
+
"border-start-start-radius"
|
|
2366
|
+
]
|
|
2367
|
+
],
|
|
2368
|
+
[
|
|
2369
|
+
"rounded-se",
|
|
2370
|
+
[
|
|
2371
|
+
"border-start-end-radius"
|
|
2372
|
+
]
|
|
2373
|
+
],
|
|
2374
|
+
[
|
|
2375
|
+
"rounded-ee",
|
|
2376
|
+
[
|
|
2377
|
+
"border-end-end-radius"
|
|
2378
|
+
]
|
|
2379
|
+
],
|
|
2380
|
+
[
|
|
2381
|
+
"rounded-es",
|
|
2382
|
+
[
|
|
2383
|
+
"border-end-start-radius"
|
|
2384
|
+
]
|
|
2385
|
+
],
|
|
2211
2386
|
[
|
|
2212
2387
|
"rounded-tl",
|
|
2213
2388
|
[
|
|
@@ -2270,6 +2445,26 @@ let corePlugins = {
|
|
|
2270
2445
|
]
|
|
2271
2446
|
],
|
|
2272
2447
|
[
|
|
2448
|
+
[
|
|
2449
|
+
"border-s",
|
|
2450
|
+
[
|
|
2451
|
+
[
|
|
2452
|
+
"@defaults border-width",
|
|
2453
|
+
{}
|
|
2454
|
+
],
|
|
2455
|
+
"border-inline-start-width"
|
|
2456
|
+
]
|
|
2457
|
+
],
|
|
2458
|
+
[
|
|
2459
|
+
"border-e",
|
|
2460
|
+
[
|
|
2461
|
+
[
|
|
2462
|
+
"@defaults border-width",
|
|
2463
|
+
{}
|
|
2464
|
+
],
|
|
2465
|
+
"border-inline-end-width"
|
|
2466
|
+
]
|
|
2467
|
+
],
|
|
2273
2468
|
[
|
|
2274
2469
|
"border-t",
|
|
2275
2470
|
[
|
|
@@ -2401,6 +2596,30 @@ let corePlugins = {
|
|
|
2401
2596
|
]
|
|
2402
2597
|
});
|
|
2403
2598
|
matchUtilities({
|
|
2599
|
+
"border-s": (value)=>{
|
|
2600
|
+
if (!corePlugins("borderOpacity")) {
|
|
2601
|
+
return {
|
|
2602
|
+
"border-inline-start-color": (0, _toColorValue.default)(value)
|
|
2603
|
+
};
|
|
2604
|
+
}
|
|
2605
|
+
return (0, _withAlphaVariable.default)({
|
|
2606
|
+
color: value,
|
|
2607
|
+
property: "border-inline-start-color",
|
|
2608
|
+
variable: "--tw-border-opacity"
|
|
2609
|
+
});
|
|
2610
|
+
},
|
|
2611
|
+
"border-e": (value)=>{
|
|
2612
|
+
if (!corePlugins("borderOpacity")) {
|
|
2613
|
+
return {
|
|
2614
|
+
"border-inline-end-color": (0, _toColorValue.default)(value)
|
|
2615
|
+
};
|
|
2616
|
+
}
|
|
2617
|
+
return (0, _withAlphaVariable.default)({
|
|
2618
|
+
color: value,
|
|
2619
|
+
property: "border-inline-end-color",
|
|
2620
|
+
variable: "--tw-border-opacity"
|
|
2621
|
+
});
|
|
2622
|
+
},
|
|
2404
2623
|
"border-t": (value)=>{
|
|
2405
2624
|
if (!corePlugins("borderOpacity")) {
|
|
2406
2625
|
return {
|
|
@@ -2521,30 +2740,63 @@ let corePlugins = {
|
|
|
2521
2740
|
"any"
|
|
2522
2741
|
]
|
|
2523
2742
|
};
|
|
2743
|
+
let positionOptions = {
|
|
2744
|
+
values: theme("gradientColorStopPositions"),
|
|
2745
|
+
type: [
|
|
2746
|
+
"length",
|
|
2747
|
+
"percentage"
|
|
2748
|
+
]
|
|
2749
|
+
};
|
|
2524
2750
|
matchUtilities({
|
|
2525
2751
|
from: (value)=>{
|
|
2526
2752
|
let transparentToValue = transparentTo(value);
|
|
2527
2753
|
return {
|
|
2528
|
-
"--tw-gradient-from": (0, _toColorValue.default)(value, "from")
|
|
2529
|
-
"--tw-gradient-
|
|
2754
|
+
"--tw-gradient-from": `${(0, _toColorValue.default)(value, "from")} var(--tw-gradient-from-position)`,
|
|
2755
|
+
"--tw-gradient-from-position": " ",
|
|
2756
|
+
"--tw-gradient-to": `${transparentToValue} var(--tw-gradient-from-position)`,
|
|
2757
|
+
"--tw-gradient-to-position": " ",
|
|
2530
2758
|
"--tw-gradient-stops": `var(--tw-gradient-from), var(--tw-gradient-to)`
|
|
2531
2759
|
};
|
|
2532
2760
|
}
|
|
2533
2761
|
}, options);
|
|
2762
|
+
matchUtilities({
|
|
2763
|
+
from: (value)=>{
|
|
2764
|
+
return {
|
|
2765
|
+
"--tw-gradient-from-position": value
|
|
2766
|
+
};
|
|
2767
|
+
}
|
|
2768
|
+
}, positionOptions);
|
|
2534
2769
|
matchUtilities({
|
|
2535
2770
|
via: (value)=>{
|
|
2536
2771
|
let transparentToValue = transparentTo(value);
|
|
2537
2772
|
return {
|
|
2538
|
-
"--tw-gradient-
|
|
2539
|
-
"--tw-gradient-
|
|
2773
|
+
"--tw-gradient-via-position": " ",
|
|
2774
|
+
"--tw-gradient-to": `${transparentToValue} var(--tw-gradient-to-position)`,
|
|
2775
|
+
"--tw-gradient-to-position": " ",
|
|
2776
|
+
"--tw-gradient-stops": `var(--tw-gradient-from), ${(0, _toColorValue.default)(value, "via")} var(--tw-gradient-via-position), var(--tw-gradient-to)`
|
|
2540
2777
|
};
|
|
2541
2778
|
}
|
|
2542
2779
|
}, options);
|
|
2780
|
+
matchUtilities({
|
|
2781
|
+
via: (value)=>{
|
|
2782
|
+
return {
|
|
2783
|
+
"--tw-gradient-via-position": value
|
|
2784
|
+
};
|
|
2785
|
+
}
|
|
2786
|
+
}, positionOptions);
|
|
2543
2787
|
matchUtilities({
|
|
2544
2788
|
to: (value)=>({
|
|
2545
|
-
"--tw-gradient-to": (0, _toColorValue.default)(value, "to")
|
|
2789
|
+
"--tw-gradient-to": `${(0, _toColorValue.default)(value, "to")} var(--tw-gradient-to-position)`,
|
|
2790
|
+
"--tw-gradient-to-position": " "
|
|
2546
2791
|
})
|
|
2547
2792
|
}, options);
|
|
2793
|
+
matchUtilities({
|
|
2794
|
+
to: (value)=>{
|
|
2795
|
+
return {
|
|
2796
|
+
"--tw-gradient-to-position": value
|
|
2797
|
+
};
|
|
2798
|
+
}
|
|
2799
|
+
}, positionOptions);
|
|
2548
2800
|
};
|
|
2549
2801
|
})(),
|
|
2550
2802
|
boxDecorationBreak: ({ addUtilities })=>{
|
|
@@ -2756,6 +3008,18 @@ let corePlugins = {
|
|
|
2756
3008
|
]
|
|
2757
3009
|
],
|
|
2758
3010
|
[
|
|
3011
|
+
[
|
|
3012
|
+
"ps",
|
|
3013
|
+
[
|
|
3014
|
+
"padding-inline-start"
|
|
3015
|
+
]
|
|
3016
|
+
],
|
|
3017
|
+
[
|
|
3018
|
+
"pe",
|
|
3019
|
+
[
|
|
3020
|
+
"padding-inline-end"
|
|
3021
|
+
]
|
|
3022
|
+
],
|
|
2759
3023
|
[
|
|
2760
3024
|
"pt",
|
|
2761
3025
|
[
|
|
@@ -2853,11 +3117,14 @@ let corePlugins = {
|
|
|
2853
3117
|
let [families, options = {}] = Array.isArray(value) && (0, _isPlainObject.default)(value[1]) ? value : [
|
|
2854
3118
|
value
|
|
2855
3119
|
];
|
|
2856
|
-
let { fontFeatureSettings } = options;
|
|
3120
|
+
let { fontFeatureSettings , fontVariationSettings } = options;
|
|
2857
3121
|
return {
|
|
2858
3122
|
"font-family": Array.isArray(families) ? families.join(", ") : families,
|
|
2859
3123
|
...fontFeatureSettings === undefined ? {} : {
|
|
2860
3124
|
"font-feature-settings": fontFeatureSettings
|
|
3125
|
+
},
|
|
3126
|
+
...fontVariationSettings === undefined ? {} : {
|
|
3127
|
+
"font-variation-settings": fontVariationSettings
|
|
2861
3128
|
}
|
|
2862
3129
|
};
|
|
2863
3130
|
}
|
|
@@ -3448,15 +3715,15 @@ let corePlugins = {
|
|
|
3448
3715
|
},
|
|
3449
3716
|
ringWidth: ({ matchUtilities , addDefaults , addUtilities , theme , config })=>{
|
|
3450
3717
|
let ringColorDefault = (()=>{
|
|
3451
|
-
var
|
|
3718
|
+
var _theme, _theme1;
|
|
3452
3719
|
if ((0, _featureFlags.flagEnabled)(config(), "respectDefaultRingColorOpacity")) {
|
|
3453
3720
|
return theme("ringColor.DEFAULT");
|
|
3454
3721
|
}
|
|
3455
3722
|
let ringOpacityDefault = theme("ringOpacity.DEFAULT", "0.5");
|
|
3456
|
-
if (!((
|
|
3723
|
+
if (!((_theme = theme("ringColor")) === null || _theme === void 0 ? void 0 : _theme.DEFAULT)) {
|
|
3457
3724
|
return `rgb(147 197 253 / ${ringOpacityDefault})`;
|
|
3458
3725
|
}
|
|
3459
|
-
return (0, _withAlphaVariable.withAlphaValue)((
|
|
3726
|
+
return (0, _withAlphaVariable.withAlphaValue)((_theme1 = theme("ringColor")) === null || _theme1 === void 0 ? void 0 : _theme1.DEFAULT, ringOpacityDefault, `rgb(147 197 253 / ${ringOpacityDefault})`);
|
|
3460
3727
|
})();
|
|
3461
3728
|
addDefaults("ring-width", {
|
|
3462
3729
|
"--tw-ring-inset": " ",
|
package/lib/css/preflight.css
CHANGED
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
3. Use a more readable tab size.
|
|
24
24
|
4. Use the user's configured `sans` font-family by default.
|
|
25
25
|
5. Use the user's configured `sans` font-feature-settings by default.
|
|
26
|
+
6. Use the user's configured `sans` font-variation-settings by default.
|
|
26
27
|
*/
|
|
27
28
|
|
|
28
29
|
html {
|
|
@@ -32,6 +33,7 @@ html {
|
|
|
32
33
|
tab-size: 4; /* 3 */
|
|
33
34
|
font-family: theme('fontFamily.sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"); /* 4 */
|
|
34
35
|
font-feature-settings: theme('fontFamily.sans[1].fontFeatureSettings', normal); /* 5 */
|
|
36
|
+
font-variation-settings: theme('fontFamily.sans[1].fontVariationSettings', normal); /* 6 */
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
/*
|