@windi-ui/tailwind 0.8.0 → 0.8.1
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/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{plugin-BDVW4Keh.cjs → plugin-CF2n2EvP.cjs} +6 -2
- package/dist/{plugin-DJjsT2Zj.mjs → plugin-CvjK4HEJ.mjs} +6 -2
- package/dist/v3.cjs +1 -1
- package/dist/v3.mjs +1 -1
- package/dist/v4.cjs +1 -1
- package/dist/v4.mjs +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_plugin = require("./plugin-
|
|
5
|
+
const require_plugin = require("./plugin-CF2n2EvP.cjs");
|
|
6
6
|
const require_config = require("./config.cjs");
|
|
7
7
|
const require_safelist = require("./safelist.cjs");
|
|
8
8
|
require("./presets.cjs");
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createWindiUIPlugin } from "./plugin-
|
|
1
|
+
import { t as createWindiUIPlugin } from "./plugin-CvjK4HEJ.mjs";
|
|
2
2
|
import { defineConfig, loadWindiUIConfig } from "./config.mjs";
|
|
3
3
|
import { classSource, safelistSource } from "./safelist.mjs";
|
|
4
4
|
import { definePreset, nuxtUi } from "./presets.mjs";
|
|
@@ -234,6 +234,10 @@ function getDarkSelector(darkMode) {
|
|
|
234
234
|
function rootDarkSelector(selector) {
|
|
235
235
|
return selector.map((chain) => chain.map((s) => s.replace(/^&:(is|not)\((.+) \*\)$/, "&:$1($2, $2 *)")));
|
|
236
236
|
}
|
|
237
|
+
/** The dark selector for the rule on every element: `&:not(.light *)` matches the `.light` element itself, whose descendants inherit what it sets. */
|
|
238
|
+
function universalDarkSelector(selector) {
|
|
239
|
+
return selector.map((chain) => chain.map((s) => s.replace(/^&:not\((.+) \*\)$/, "&:not($1, $1 *)")));
|
|
240
|
+
}
|
|
237
241
|
function setNestedValue(obj, keys, value) {
|
|
238
242
|
if (keys.length === 0) return obj;
|
|
239
243
|
let curr = obj;
|
|
@@ -423,11 +427,11 @@ function WindiUITailwindCSS(config, ver) {
|
|
|
423
427
|
tw.addBase({ [root]: applyDark(rootDarkSelector(darkSelector), gt.colors.rootVars()) });
|
|
424
428
|
tw.addBase({ [root]: gt.sizes.rootVars() });
|
|
425
429
|
const scope = wiu.config.variantScope;
|
|
426
|
-
if (scope === "universal") tw.addBase({ "*": applyDark(darkSelector, gt.variants.rootVars()) });
|
|
430
|
+
if (scope === "universal") tw.addBase({ "*": applyDark(universalDarkSelector(darkSelector), gt.variants.rootVars()) });
|
|
427
431
|
else {
|
|
428
432
|
const mode = gt.variants.modeVars();
|
|
429
433
|
tw.addBase({ ":where(:root)": mode.light });
|
|
430
|
-
tw.addBase({ "*": applyDark(darkSelector, { "@dark": mode.dark }) });
|
|
434
|
+
tw.addBase({ "*": applyDark(universalDarkSelector(darkSelector), { "@dark": mode.dark }) });
|
|
431
435
|
const reset = gt.variants.resetVars();
|
|
432
436
|
if (scope === "element") tw.addBase({ ":where([class*=\"v-\"]) > *": reset });
|
|
433
437
|
tw.addUtilities({ ".v-scope": { ":where(&) > *": reset } });
|
|
@@ -234,6 +234,10 @@ function getDarkSelector(darkMode) {
|
|
|
234
234
|
function rootDarkSelector(selector) {
|
|
235
235
|
return selector.map((chain) => chain.map((s) => s.replace(/^&:(is|not)\((.+) \*\)$/, "&:$1($2, $2 *)")));
|
|
236
236
|
}
|
|
237
|
+
/** The dark selector for the rule on every element: `&:not(.light *)` matches the `.light` element itself, whose descendants inherit what it sets. */
|
|
238
|
+
function universalDarkSelector(selector) {
|
|
239
|
+
return selector.map((chain) => chain.map((s) => s.replace(/^&:not\((.+) \*\)$/, "&:not($1, $1 *)")));
|
|
240
|
+
}
|
|
237
241
|
function setNestedValue(obj, keys, value) {
|
|
238
242
|
if (keys.length === 0) return obj;
|
|
239
243
|
let curr = obj;
|
|
@@ -423,11 +427,11 @@ function WindiUITailwindCSS(config, ver) {
|
|
|
423
427
|
tw.addBase({ [root]: applyDark(rootDarkSelector(darkSelector), gt.colors.rootVars()) });
|
|
424
428
|
tw.addBase({ [root]: gt.sizes.rootVars() });
|
|
425
429
|
const scope = wiu.config.variantScope;
|
|
426
|
-
if (scope === "universal") tw.addBase({ "*": applyDark(darkSelector, gt.variants.rootVars()) });
|
|
430
|
+
if (scope === "universal") tw.addBase({ "*": applyDark(universalDarkSelector(darkSelector), gt.variants.rootVars()) });
|
|
427
431
|
else {
|
|
428
432
|
const mode = gt.variants.modeVars();
|
|
429
433
|
tw.addBase({ ":where(:root)": mode.light });
|
|
430
|
-
tw.addBase({ "*": applyDark(darkSelector, { "@dark": mode.dark }) });
|
|
434
|
+
tw.addBase({ "*": applyDark(universalDarkSelector(darkSelector), { "@dark": mode.dark }) });
|
|
431
435
|
const reset = gt.variants.resetVars();
|
|
432
436
|
if (scope === "element") tw.addBase({ ":where([class*=\"v-\"]) > *": reset });
|
|
433
437
|
tw.addUtilities({ ".v-scope": { ":where(&) > *": reset } });
|
package/dist/v3.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/v3.ts
|
|
2
2
|
/** Builds for Tailwind 3 without looking at the Tailwind that runs the plugin. */
|
|
3
|
-
var v3_default = require("./plugin-
|
|
3
|
+
var v3_default = require("./plugin-CF2n2EvP.cjs").createWindiUIPlugin(3);
|
|
4
4
|
module.exports = v3_default;
|
|
5
5
|
|
package/dist/v3.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createWindiUIPlugin } from "./plugin-
|
|
1
|
+
import { t as createWindiUIPlugin } from "./plugin-CvjK4HEJ.mjs";
|
|
2
2
|
// src/v3.ts
|
|
3
3
|
/** Builds for Tailwind 3 without looking at the Tailwind that runs the plugin. */
|
|
4
4
|
var v3_default = createWindiUIPlugin(3);
|
package/dist/v4.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/v4.ts
|
|
2
2
|
/** Builds for Tailwind 4 without looking at the Tailwind that runs the plugin. */
|
|
3
|
-
var v4_default = require("./plugin-
|
|
3
|
+
var v4_default = require("./plugin-CF2n2EvP.cjs").createWindiUIPlugin(4);
|
|
4
4
|
module.exports = v4_default;
|
|
5
5
|
|
package/dist/v4.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createWindiUIPlugin } from "./plugin-
|
|
1
|
+
import { t as createWindiUIPlugin } from "./plugin-CvjK4HEJ.mjs";
|
|
2
2
|
// src/v4.ts
|
|
3
3
|
/** Builds for Tailwind 4 without looking at the Tailwind that runs the plugin. */
|
|
4
4
|
var v4_default = createWindiUIPlugin(4);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@windi-ui/tailwind",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Waleed Khaled <https://github.com/Waleed-KH>",
|
|
6
6
|
"description": "Modern, modular, and customizable UI component library",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"dist"
|
|
52
52
|
],
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@windi-ui/core": "0.8.
|
|
54
|
+
"@windi-ui/core": "0.8.1",
|
|
55
55
|
"unconfig": "^7.5.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|