tailwindcss 0.0.0-oxide-insiders.5bb351e → 0.0.0-oxide-insiders.c7d605f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/corePlugins.js +2 -14
- package/package.json +3 -3
- package/peers/index.js +13 -9
- package/src/corePlugins.js +2 -17
package/lib/corePlugins.js
CHANGED
|
@@ -257,20 +257,8 @@ let variantPlugins = {
|
|
|
257
257
|
}
|
|
258
258
|
},
|
|
259
259
|
directionVariants: ({ addVariant })=>{
|
|
260
|
-
addVariant("ltr",
|
|
261
|
-
|
|
262
|
-
"The RTL features in Tailwind CSS are currently in preview.",
|
|
263
|
-
"Preview features are not covered by semver, and may be improved in breaking ways at any time."
|
|
264
|
-
]);
|
|
265
|
-
return '[dir="ltr"] &';
|
|
266
|
-
});
|
|
267
|
-
addVariant("rtl", ()=>{
|
|
268
|
-
_log.default.warn("rtl-experimental", [
|
|
269
|
-
"The RTL features in Tailwind CSS are currently in preview.",
|
|
270
|
-
"Preview features are not covered by semver, and may be improved in breaking ways at any time."
|
|
271
|
-
]);
|
|
272
|
-
return '[dir="rtl"] &';
|
|
273
|
-
});
|
|
260
|
+
addVariant("ltr", '[dir="ltr"] &');
|
|
261
|
+
addVariant("rtl", '[dir="rtl"] &');
|
|
274
262
|
},
|
|
275
263
|
reducedMotionVariants: ({ addVariant })=>{
|
|
276
264
|
addVariant("motion-safe", "@media (prefers-reduced-motion: no-preference)");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tailwindcss",
|
|
3
|
-
"version": "0.0.0-oxide-insiders.
|
|
3
|
+
"version": "0.0.0-oxide-insiders.c7d605f",
|
|
4
4
|
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"postcss": "^8.0.9"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@tailwindcss/oxide": "0.0.0-oxide-insiders.
|
|
73
|
+
"@tailwindcss/oxide": "0.0.0-oxide-insiders.c7d605f",
|
|
74
74
|
"arg": "^5.0.2",
|
|
75
75
|
"browserslist": "^4.21.5",
|
|
76
76
|
"chokidar": "^3.5.3",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"glob-parent": "^6.0.2",
|
|
83
83
|
"is-glob": "^4.0.3",
|
|
84
84
|
"lightningcss": "^1.18.0",
|
|
85
|
-
"lilconfig": "^2.0
|
|
85
|
+
"lilconfig": "^2.1.0",
|
|
86
86
|
"micromatch": "^4.0.5",
|
|
87
87
|
"normalize-path": "^3.0.0",
|
|
88
88
|
"object-hash": "^3.0.0",
|
package/peers/index.js
CHANGED
|
@@ -27406,8 +27406,12 @@ var require_dist2 = __commonJS({
|
|
|
27406
27406
|
"package.json",
|
|
27407
27407
|
`.${name}rc.json`,
|
|
27408
27408
|
`.${name}rc.js`,
|
|
27409
|
-
`${name}.config.js`,
|
|
27410
27409
|
`.${name}rc.cjs`,
|
|
27410
|
+
`.config/${name}rc`,
|
|
27411
|
+
`.config/${name}rc.json`,
|
|
27412
|
+
`.config/${name}rc.js`,
|
|
27413
|
+
`.config/${name}rc.cjs`,
|
|
27414
|
+
`${name}.config.js`,
|
|
27411
27415
|
`${name}.config.cjs`
|
|
27412
27416
|
];
|
|
27413
27417
|
}
|
|
@@ -27461,10 +27465,10 @@ var require_dist2 = __commonJS({
|
|
|
27461
27465
|
}
|
|
27462
27466
|
function getSearchItems(searchPlaces, searchPaths) {
|
|
27463
27467
|
return searchPaths.reduce((acc, searchPath) => {
|
|
27464
|
-
searchPlaces.forEach((
|
|
27465
|
-
|
|
27466
|
-
filepath: path.join(searchPath,
|
|
27467
|
-
loaderKey: path.extname(
|
|
27468
|
+
searchPlaces.forEach((sp) => acc.push({
|
|
27469
|
+
searchPlace: sp,
|
|
27470
|
+
filepath: path.join(searchPath, sp),
|
|
27471
|
+
loaderKey: path.extname(sp) || "noExt"
|
|
27468
27472
|
}));
|
|
27469
27473
|
return acc;
|
|
27470
27474
|
}, []);
|
|
@@ -27489,7 +27493,7 @@ var require_dist2 = __commonJS({
|
|
|
27489
27493
|
filepath: ""
|
|
27490
27494
|
};
|
|
27491
27495
|
const searchItems = getSearchItems(searchPlaces, searchPaths);
|
|
27492
|
-
for (const {
|
|
27496
|
+
for (const { searchPlace, filepath, loaderKey } of searchItems) {
|
|
27493
27497
|
try {
|
|
27494
27498
|
await fs.promises.access(filepath);
|
|
27495
27499
|
} catch (_a) {
|
|
@@ -27497,7 +27501,7 @@ var require_dist2 = __commonJS({
|
|
|
27497
27501
|
}
|
|
27498
27502
|
const content = String(await fsReadFileAsync(filepath));
|
|
27499
27503
|
const loader = loaders[loaderKey];
|
|
27500
|
-
if (
|
|
27504
|
+
if (searchPlace === "package.json") {
|
|
27501
27505
|
const pkg = await loader(filepath, content);
|
|
27502
27506
|
const maybeConfig = getPackageProp(packageProp, pkg);
|
|
27503
27507
|
if (maybeConfig != null) {
|
|
@@ -27566,7 +27570,7 @@ var require_dist2 = __commonJS({
|
|
|
27566
27570
|
filepath: ""
|
|
27567
27571
|
};
|
|
27568
27572
|
const searchItems = getSearchItems(searchPlaces, searchPaths);
|
|
27569
|
-
for (const {
|
|
27573
|
+
for (const { searchPlace, filepath, loaderKey } of searchItems) {
|
|
27570
27574
|
try {
|
|
27571
27575
|
fs.accessSync(filepath);
|
|
27572
27576
|
} catch (_a) {
|
|
@@ -27574,7 +27578,7 @@ var require_dist2 = __commonJS({
|
|
|
27574
27578
|
}
|
|
27575
27579
|
const loader = loaders[loaderKey];
|
|
27576
27580
|
const content = String(fs.readFileSync(filepath));
|
|
27577
|
-
if (
|
|
27581
|
+
if (searchPlace === "package.json") {
|
|
27578
27582
|
const pkg = loader(filepath, content);
|
|
27579
27583
|
const maybeConfig = getPackageProp(packageProp, pkg);
|
|
27580
27584
|
if (maybeConfig != null) {
|
package/src/corePlugins.js
CHANGED
|
@@ -199,23 +199,8 @@ export let variantPlugins = {
|
|
|
199
199
|
},
|
|
200
200
|
|
|
201
201
|
directionVariants: ({ addVariant }) => {
|
|
202
|
-
addVariant('ltr',
|
|
203
|
-
|
|
204
|
-
'The RTL features in Tailwind CSS are currently in preview.',
|
|
205
|
-
'Preview features are not covered by semver, and may be improved in breaking ways at any time.',
|
|
206
|
-
])
|
|
207
|
-
|
|
208
|
-
return '[dir="ltr"] &'
|
|
209
|
-
})
|
|
210
|
-
|
|
211
|
-
addVariant('rtl', () => {
|
|
212
|
-
log.warn('rtl-experimental', [
|
|
213
|
-
'The RTL features in Tailwind CSS are currently in preview.',
|
|
214
|
-
'Preview features are not covered by semver, and may be improved in breaking ways at any time.',
|
|
215
|
-
])
|
|
216
|
-
|
|
217
|
-
return '[dir="rtl"] &'
|
|
218
|
-
})
|
|
202
|
+
addVariant('ltr', '[dir="ltr"] &')
|
|
203
|
+
addVariant('rtl', '[dir="rtl"] &')
|
|
219
204
|
},
|
|
220
205
|
|
|
221
206
|
reducedMotionVariants: ({ addVariant }) => {
|