@unocss/preset-wind 0.50.4 → 0.50.6
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 +6 -2
- package/dist/index.mjs +6 -2
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -473,8 +473,10 @@ const spaces = [
|
|
|
473
473
|
[/^space-(block|inline)-reverse$/, ([, d]) => ({ [`--un-space-${d}-reverse`]: 1 })]
|
|
474
474
|
];
|
|
475
475
|
function handlerSpace([, d, s], { theme }) {
|
|
476
|
-
|
|
476
|
+
let v = theme.spacing?.[s || "DEFAULT"] ?? utils.handler.bracket.cssvar.auto.fraction.rem(s || "1");
|
|
477
477
|
if (v != null) {
|
|
478
|
+
if (v === "0")
|
|
479
|
+
v = "0px";
|
|
478
480
|
const results = utils.directionMap[d].map((item) => {
|
|
479
481
|
const key = `margin${item}`;
|
|
480
482
|
const value = item.endsWith("right") || item.endsWith("bottom") ? `calc(${v} * var(--un-space-${d}-reverse))` : `calc(${v} * calc(1 - var(--un-space-${d}-reverse)))`;
|
|
@@ -681,8 +683,10 @@ const divides = [
|
|
|
681
683
|
...rules$1.borderStyles.map((style) => [`divide-${style}`, { "border-style": style }])
|
|
682
684
|
];
|
|
683
685
|
function handlerDivide([, d, s], { theme }) {
|
|
684
|
-
|
|
686
|
+
let v = theme.lineWidth?.[s || "DEFAULT"] ?? utils.handler.bracket.cssvar.px(s || "1");
|
|
685
687
|
if (v != null) {
|
|
688
|
+
if (v === "0")
|
|
689
|
+
v = "0px";
|
|
686
690
|
const results = utils.directionMap[d].map((item) => {
|
|
687
691
|
const key = `border${item}-width`;
|
|
688
692
|
const value = item.endsWith("right") || item.endsWith("bottom") ? `calc(${v} * var(--un-divide-${d}-reverse))` : `calc(${v} * calc(1 - var(--un-divide-${d}-reverse)))`;
|
package/dist/index.mjs
CHANGED
|
@@ -470,8 +470,10 @@ const spaces = [
|
|
|
470
470
|
[/^space-(block|inline)-reverse$/, ([, d]) => ({ [`--un-space-${d}-reverse`]: 1 })]
|
|
471
471
|
];
|
|
472
472
|
function handlerSpace([, d, s], { theme }) {
|
|
473
|
-
|
|
473
|
+
let v = theme.spacing?.[s || "DEFAULT"] ?? handler.bracket.cssvar.auto.fraction.rem(s || "1");
|
|
474
474
|
if (v != null) {
|
|
475
|
+
if (v === "0")
|
|
476
|
+
v = "0px";
|
|
475
477
|
const results = directionMap[d].map((item) => {
|
|
476
478
|
const key = `margin${item}`;
|
|
477
479
|
const value = item.endsWith("right") || item.endsWith("bottom") ? `calc(${v} * var(--un-space-${d}-reverse))` : `calc(${v} * calc(1 - var(--un-space-${d}-reverse)))`;
|
|
@@ -678,8 +680,10 @@ const divides = [
|
|
|
678
680
|
...borderStyles.map((style) => [`divide-${style}`, { "border-style": style }])
|
|
679
681
|
];
|
|
680
682
|
function handlerDivide([, d, s], { theme }) {
|
|
681
|
-
|
|
683
|
+
let v = theme.lineWidth?.[s || "DEFAULT"] ?? handler.bracket.cssvar.px(s || "1");
|
|
682
684
|
if (v != null) {
|
|
685
|
+
if (v === "0")
|
|
686
|
+
v = "0px";
|
|
683
687
|
const results = directionMap[d].map((item) => {
|
|
684
688
|
const key = `border${item}-width`;
|
|
685
689
|
const value = item.endsWith("right") || item.endsWith("bottom") ? `calc(${v} * var(--un-divide-${d}-reverse))` : `calc(${v} * calc(1 - var(--un-divide-${d}-reverse)))`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-wind",
|
|
3
|
-
"version": "0.50.
|
|
3
|
+
"version": "0.50.6",
|
|
4
4
|
"description": "Tailwind / Windi CSS compact preset for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"*.css"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@unocss/core": "0.50.
|
|
39
|
-
"@unocss/preset-mini": "0.50.
|
|
38
|
+
"@unocss/core": "0.50.6",
|
|
39
|
+
"@unocss/preset-mini": "0.50.6"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "unbuild",
|