@unocss/preset-wind 0.37.0 → 0.37.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 +28 -5
- package/dist/index.mjs +28 -5
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -150,10 +150,10 @@ const backgroundStyles = [
|
|
|
150
150
|
["bg-fixed", { "background-attachment": "fixed" }],
|
|
151
151
|
["bg-local", { "background-attachment": "local" }],
|
|
152
152
|
["bg-scroll", { "background-attachment": "scroll" }],
|
|
153
|
-
["bg-clip-border", { "-webkit-background-clip": "border-box", "background-
|
|
154
|
-
["bg-clip-content", { "-webkit-background-clip": "content-box", "background-
|
|
155
|
-
["bg-clip-padding", { "-webkit-background-clip": "padding-box", "background-
|
|
156
|
-
["bg-clip-text", { "-webkit-background-clip": "text", "background-
|
|
153
|
+
["bg-clip-border", { "-webkit-background-clip": "border-box", "background-clip": "border-box" }],
|
|
154
|
+
["bg-clip-content", { "-webkit-background-clip": "content-box", "background-clip": "content-box" }],
|
|
155
|
+
["bg-clip-padding", { "-webkit-background-clip": "padding-box", "background-clip": "padding-box" }],
|
|
156
|
+
["bg-clip-text", { "-webkit-background-clip": "text", "background-clip": "text" }],
|
|
157
157
|
[/^bg-([-\w]{3,})$/, ([, s]) => ({ "background-position": utils.positionMap[s] })],
|
|
158
158
|
["bg-repeat", { "background-repeat": "repeat" }],
|
|
159
159
|
["bg-no-repeat", { "background-repeat": "no-repeat" }],
|
|
@@ -530,6 +530,10 @@ const mixBlendModes = [
|
|
|
530
530
|
["mix-blend-normal", { "mix-blend-mode": "normal" }]
|
|
531
531
|
];
|
|
532
532
|
|
|
533
|
+
const borderSpacingBase = {
|
|
534
|
+
"--un-border-spacing-x": 0,
|
|
535
|
+
"--un-border-spacing-y": 0
|
|
536
|
+
};
|
|
533
537
|
const tables = [
|
|
534
538
|
["inline-table", { display: "inline-table" }],
|
|
535
539
|
["table", { display: "table" }],
|
|
@@ -543,7 +547,25 @@ const tables = [
|
|
|
543
547
|
["table-row-group", { display: "table-row-group" }],
|
|
544
548
|
["border-collapse", { "border-collapse": "collapse" }],
|
|
545
549
|
["border-separate", { "border-collapse": "separate" }],
|
|
546
|
-
[/^border-spacing-(.+)$/, ([,
|
|
550
|
+
[/^border-spacing-(.+)$/, ([, s], { theme }) => {
|
|
551
|
+
const v = theme.spacing?.[s] ?? utils.handler.bracket.cssvar.global.auto.fraction.rem(s);
|
|
552
|
+
if (v != null) {
|
|
553
|
+
return {
|
|
554
|
+
"--un-border-spacing-x": v,
|
|
555
|
+
"--un-border-spacing-y": v,
|
|
556
|
+
"border-spacing": "var(--un-border-spacing-x) var(--un-border-spacing-y)"
|
|
557
|
+
};
|
|
558
|
+
}
|
|
559
|
+
}, { autocomplete: ["border-spacing", "border-spacing-$spacing"] }],
|
|
560
|
+
[/^border-spacing-([xy])-(.+)$/, ([, d, s], { theme }) => {
|
|
561
|
+
const v = theme.spacing?.[s] ?? utils.handler.bracket.cssvar.global.auto.fraction.rem(s);
|
|
562
|
+
if (v != null) {
|
|
563
|
+
return {
|
|
564
|
+
[`--un-border-spacing-${d}`]: v,
|
|
565
|
+
"border-spacing": "var(--un-border-spacing-x) var(--un-border-spacing-y)"
|
|
566
|
+
};
|
|
567
|
+
}
|
|
568
|
+
}, { autocomplete: ["border-spacing-(x|y)", "border-spacing-(x|y)-$spacing"] }],
|
|
547
569
|
["caption-top", { "caption-side": "top" }],
|
|
548
570
|
["caption-bottom", { "caption-side": "bottom" }],
|
|
549
571
|
["table-auto", { "table-layout": "auto" }],
|
|
@@ -977,6 +999,7 @@ const theme = {
|
|
|
977
999
|
...touchActionBase,
|
|
978
1000
|
...scrollSnapTypeBase,
|
|
979
1001
|
...fontVariantNumericBase,
|
|
1002
|
+
...borderSpacingBase,
|
|
980
1003
|
...rules$1.boxShadowsBase,
|
|
981
1004
|
...rules$1.ringBase,
|
|
982
1005
|
...filterBase,
|
package/dist/index.mjs
CHANGED
|
@@ -147,10 +147,10 @@ const backgroundStyles = [
|
|
|
147
147
|
["bg-fixed", { "background-attachment": "fixed" }],
|
|
148
148
|
["bg-local", { "background-attachment": "local" }],
|
|
149
149
|
["bg-scroll", { "background-attachment": "scroll" }],
|
|
150
|
-
["bg-clip-border", { "-webkit-background-clip": "border-box", "background-
|
|
151
|
-
["bg-clip-content", { "-webkit-background-clip": "content-box", "background-
|
|
152
|
-
["bg-clip-padding", { "-webkit-background-clip": "padding-box", "background-
|
|
153
|
-
["bg-clip-text", { "-webkit-background-clip": "text", "background-
|
|
150
|
+
["bg-clip-border", { "-webkit-background-clip": "border-box", "background-clip": "border-box" }],
|
|
151
|
+
["bg-clip-content", { "-webkit-background-clip": "content-box", "background-clip": "content-box" }],
|
|
152
|
+
["bg-clip-padding", { "-webkit-background-clip": "padding-box", "background-clip": "padding-box" }],
|
|
153
|
+
["bg-clip-text", { "-webkit-background-clip": "text", "background-clip": "text" }],
|
|
154
154
|
[/^bg-([-\w]{3,})$/, ([, s]) => ({ "background-position": positionMap[s] })],
|
|
155
155
|
["bg-repeat", { "background-repeat": "repeat" }],
|
|
156
156
|
["bg-no-repeat", { "background-repeat": "no-repeat" }],
|
|
@@ -527,6 +527,10 @@ const mixBlendModes = [
|
|
|
527
527
|
["mix-blend-normal", { "mix-blend-mode": "normal" }]
|
|
528
528
|
];
|
|
529
529
|
|
|
530
|
+
const borderSpacingBase = {
|
|
531
|
+
"--un-border-spacing-x": 0,
|
|
532
|
+
"--un-border-spacing-y": 0
|
|
533
|
+
};
|
|
530
534
|
const tables = [
|
|
531
535
|
["inline-table", { display: "inline-table" }],
|
|
532
536
|
["table", { display: "table" }],
|
|
@@ -540,7 +544,25 @@ const tables = [
|
|
|
540
544
|
["table-row-group", { display: "table-row-group" }],
|
|
541
545
|
["border-collapse", { "border-collapse": "collapse" }],
|
|
542
546
|
["border-separate", { "border-collapse": "separate" }],
|
|
543
|
-
[/^border-spacing-(.+)$/, ([,
|
|
547
|
+
[/^border-spacing-(.+)$/, ([, s], { theme }) => {
|
|
548
|
+
const v = theme.spacing?.[s] ?? handler.bracket.cssvar.global.auto.fraction.rem(s);
|
|
549
|
+
if (v != null) {
|
|
550
|
+
return {
|
|
551
|
+
"--un-border-spacing-x": v,
|
|
552
|
+
"--un-border-spacing-y": v,
|
|
553
|
+
"border-spacing": "var(--un-border-spacing-x) var(--un-border-spacing-y)"
|
|
554
|
+
};
|
|
555
|
+
}
|
|
556
|
+
}, { autocomplete: ["border-spacing", "border-spacing-$spacing"] }],
|
|
557
|
+
[/^border-spacing-([xy])-(.+)$/, ([, d, s], { theme }) => {
|
|
558
|
+
const v = theme.spacing?.[s] ?? handler.bracket.cssvar.global.auto.fraction.rem(s);
|
|
559
|
+
if (v != null) {
|
|
560
|
+
return {
|
|
561
|
+
[`--un-border-spacing-${d}`]: v,
|
|
562
|
+
"border-spacing": "var(--un-border-spacing-x) var(--un-border-spacing-y)"
|
|
563
|
+
};
|
|
564
|
+
}
|
|
565
|
+
}, { autocomplete: ["border-spacing-(x|y)", "border-spacing-(x|y)-$spacing"] }],
|
|
544
566
|
["caption-top", { "caption-side": "top" }],
|
|
545
567
|
["caption-bottom", { "caption-side": "bottom" }],
|
|
546
568
|
["table-auto", { "table-layout": "auto" }],
|
|
@@ -974,6 +996,7 @@ const theme = {
|
|
|
974
996
|
...touchActionBase,
|
|
975
997
|
...scrollSnapTypeBase,
|
|
976
998
|
...fontVariantNumericBase,
|
|
999
|
+
...borderSpacingBase,
|
|
977
1000
|
...boxShadowsBase,
|
|
978
1001
|
...ringBase,
|
|
979
1002
|
...filterBase,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-wind",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.1",
|
|
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.37.
|
|
39
|
-
"@unocss/preset-mini": "0.37.
|
|
38
|
+
"@unocss/core": "0.37.1",
|
|
39
|
+
"@unocss/preset-mini": "0.37.1"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "unbuild",
|