@unocss/preset-wind 0.60.1 → 0.60.3
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.mjs +19 -19
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -57,7 +57,7 @@ const animations = [
|
|
|
57
57
|
]
|
|
58
58
|
}],
|
|
59
59
|
// others
|
|
60
|
-
[/^animate-(?:iteration-count-|iteration-|count-)(.+)$/, ([, d]) => ({ "animation-iteration-count": h.bracket.cssvar(d) ?? d.replace(
|
|
60
|
+
[/^animate-(?:iteration-count-|iteration-|count-)(.+)$/, ([, d]) => ({ "animation-iteration-count": h.bracket.cssvar(d) ?? d.replace(/-/g, ",") }), { autocomplete: ["animate-(iteration|count|iteration-count)", "animate-(iteration|count|iteration-count)-<num>"] }],
|
|
61
61
|
[/^animate-(play-state-|play-|state-)?(.+)$/, ([, t, d]) => ["paused", "running", ...[t ? globalKeywords : []]].includes(d) ? { "animation-play-state": d } : void 0, {
|
|
62
62
|
autocomplete: [
|
|
63
63
|
"animate-(play|state|play-state)",
|
|
@@ -132,7 +132,7 @@ const backgroundStyles = [
|
|
|
132
132
|
[/^(?:bg-gradient-)?(via)-(.+)$/, bgGradientColorResolver()],
|
|
133
133
|
[/^(?:bg-gradient-)?(to)-(.+)$/, bgGradientColorResolver()],
|
|
134
134
|
[/^(?:bg-gradient-)?(from|via|to)-op(?:acity)?-?(.+)$/, ([, position, opacity]) => ({ [`--un-${position}-opacity`]: h.bracket.percent(opacity) })],
|
|
135
|
-
[/^(from|via|to)-([\d
|
|
135
|
+
[/^(from|via|to)-([\d.]+)%$/, bgGradientPositionResolver()],
|
|
136
136
|
// images
|
|
137
137
|
[/^bg-gradient-((?:repeating-)?(?:linear|radial|conic))$/, ([, s]) => ({
|
|
138
138
|
"background-image": `${s}-gradient(var(--un-gradient, var(--un-gradient-stops, rgb(255 255 255 / 0))))`
|
|
@@ -464,7 +464,7 @@ const filters = [
|
|
|
464
464
|
[/^(?:(backdrop-)|filter-)?hue-rotate-(.+)$/, toFilter("hue-rotate", (s) => h.bracket.cssvar.degree(s))],
|
|
465
465
|
[/^(?:(backdrop-)|filter-)?invert(?:-(.+))?$/, toFilter("invert", percentWithDefault), { autocomplete: ["(backdrop|filter)-invert", "(backdrop|filter)-invert-<percent>", "invert-<percent>"] }],
|
|
466
466
|
// opacity only on backdrop-filter
|
|
467
|
-
[/^(backdrop-)op(?:acity)
|
|
467
|
+
[/^(backdrop-)op(?:acity)?-(.+)$/, toFilter("opacity", (s) => h.bracket.cssvar.percent(s)), { autocomplete: ["backdrop-(op|opacity)", "backdrop-(op|opacity)-<percent>"] }],
|
|
468
468
|
[/^(?:(backdrop-)|filter-)?saturate-(.+)$/, toFilter("saturate", (s) => h.bracket.cssvar.percent(s)), { autocomplete: ["(backdrop|filter)-saturate", "(backdrop|filter)-saturate-<percent>", "saturate-<percent>"] }],
|
|
469
469
|
[/^(?:(backdrop-)|filter-)?sepia(?:-(.+))?$/, toFilter("sepia", percentWithDefault), { autocomplete: ["(backdrop|filter)-sepia", "(backdrop|filter)-sepia-<percent>", "sepia-<percent>"] }],
|
|
470
470
|
// base
|
|
@@ -487,9 +487,9 @@ const filters = [
|
|
|
487
487
|
];
|
|
488
488
|
|
|
489
489
|
const spaces = [
|
|
490
|
-
[/^space-([xy])-(
|
|
490
|
+
[/^space-([xy])-(.+)$/, handlerSpace, { autocomplete: ["space-(x|y|block|inline)", "space-(x|y|block|inline)-reverse", "space-(x|y|block|inline)-$spacing"] }],
|
|
491
491
|
[/^space-([xy])-reverse$/, ([, d]) => ({ [`--un-space-${d}-reverse`]: 1 })],
|
|
492
|
-
[/^space-(block|inline)-(
|
|
492
|
+
[/^space-(block|inline)-(.+)$/, handlerSpace],
|
|
493
493
|
[/^space-(block|inline)-reverse$/, ([, d]) => ({ [`--un-space-${d}-reverse`]: 1 })]
|
|
494
494
|
];
|
|
495
495
|
function handlerSpace([, d, s], { theme }) {
|
|
@@ -710,10 +710,10 @@ const cssVariables = [
|
|
|
710
710
|
const divides = [
|
|
711
711
|
// divides
|
|
712
712
|
[/^divide-?([xy])$/, handlerDivide, { autocomplete: ["divide-(x|y|block|inline)", "divide-(x|y|block|inline)-reverse", "divide-(x|y|block|inline)-$lineWidth"] }],
|
|
713
|
-
[/^divide-?([xy])-?(
|
|
713
|
+
[/^divide-?([xy])-?(.+)$/, handlerDivide],
|
|
714
714
|
[/^divide-?([xy])-reverse$/, ([, d]) => ({ [`--un-divide-${d}-reverse`]: 1 })],
|
|
715
715
|
[/^divide-(block|inline)$/, handlerDivide],
|
|
716
|
-
[/^divide-(block|inline)-(
|
|
716
|
+
[/^divide-(block|inline)-(.+)$/, handlerDivide],
|
|
717
717
|
[/^divide-(block|inline)-reverse$/, ([, d]) => ({ [`--un-divide-${d}-reverse`]: 1 })],
|
|
718
718
|
// color & opacity
|
|
719
719
|
[/^divide-(.+)$/, colorResolver("border-color", "divide", "borderColor"), { autocomplete: "divide-$colors" }],
|
|
@@ -830,7 +830,7 @@ const scrolls = [
|
|
|
830
830
|
["snap-normal", { "scroll-snap-stop": "normal" }],
|
|
831
831
|
["snap-always", { "scroll-snap-stop": "always" }],
|
|
832
832
|
// scroll margin
|
|
833
|
-
[/^scroll-ma?()-?(
|
|
833
|
+
[/^scroll-ma?()-?(.+)$/, directionSize("scroll-margin"), {
|
|
834
834
|
autocomplete: [
|
|
835
835
|
"scroll-(m|p|ma|pa|block|inline)",
|
|
836
836
|
"scroll-(m|p|ma|pa|block|inline)-$spacing",
|
|
@@ -838,16 +838,16 @@ const scrolls = [
|
|
|
838
838
|
"scroll-(m|p|ma|pa|block|inline)-(x|y|r|l|t|b|bs|be|is|ie)-$spacing"
|
|
839
839
|
]
|
|
840
840
|
}],
|
|
841
|
-
[/^scroll-m-?([xy])-?(
|
|
842
|
-
[/^scroll-m-?([rltb])-?(
|
|
843
|
-
[/^scroll-m-(block|inline)-(
|
|
844
|
-
[/^scroll-m-?([bi][se])-?(
|
|
841
|
+
[/^scroll-m-?([xy])-?(.+)$/, directionSize("scroll-margin")],
|
|
842
|
+
[/^scroll-m-?([rltb])-?(.+)$/, directionSize("scroll-margin")],
|
|
843
|
+
[/^scroll-m-(block|inline)-(.+)$/, directionSize("scroll-margin")],
|
|
844
|
+
[/^scroll-m-?([bi][se])-?(.+)$/, directionSize("scroll-margin")],
|
|
845
845
|
// scroll padding
|
|
846
|
-
[/^scroll-pa?()-?(
|
|
847
|
-
[/^scroll-p-?([xy])-?(
|
|
848
|
-
[/^scroll-p-?([rltb])-?(
|
|
849
|
-
[/^scroll-p-(block|inline)-(
|
|
850
|
-
[/^scroll-p-?([bi][se])-?(
|
|
846
|
+
[/^scroll-pa?()-?(.+)$/, directionSize("scroll-padding")],
|
|
847
|
+
[/^scroll-p-?([xy])-?(.+)$/, directionSize("scroll-padding")],
|
|
848
|
+
[/^scroll-p-?([rltb])-?(.+)$/, directionSize("scroll-padding")],
|
|
849
|
+
[/^scroll-p-(block|inline)-(.+)$/, directionSize("scroll-padding")],
|
|
850
|
+
[/^scroll-p-?([bi][se])-?(.+)$/, directionSize("scroll-padding")]
|
|
851
851
|
];
|
|
852
852
|
|
|
853
853
|
const placeholders = [
|
|
@@ -858,7 +858,7 @@ const placeholders = [
|
|
|
858
858
|
];
|
|
859
859
|
|
|
860
860
|
const viewTransition = [
|
|
861
|
-
[/^view-transition-([\
|
|
861
|
+
[/^view-transition-([\w-]+)$/, ([, name]) => {
|
|
862
862
|
return { "view-transition-name": name };
|
|
863
863
|
}]
|
|
864
864
|
];
|
|
@@ -1192,7 +1192,7 @@ const variantOrientations = [
|
|
|
1192
1192
|
const variantSpaceAndDivide = (matcher) => {
|
|
1193
1193
|
if (matcher.startsWith("_"))
|
|
1194
1194
|
return;
|
|
1195
|
-
if (/space-
|
|
1195
|
+
if (/space-[xy]-.+$/.test(matcher) || /divide-/.test(matcher)) {
|
|
1196
1196
|
return {
|
|
1197
1197
|
matcher,
|
|
1198
1198
|
selector: (input) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-wind",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.60.
|
|
4
|
+
"version": "0.60.3",
|
|
5
5
|
"description": "Tailwind / Windi CSS compact preset for UnoCSS",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"dist"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@unocss/
|
|
39
|
-
"@unocss/
|
|
40
|
-
"@unocss/rule-utils": "0.60.
|
|
38
|
+
"@unocss/core": "0.60.3",
|
|
39
|
+
"@unocss/preset-mini": "0.60.3",
|
|
40
|
+
"@unocss/rule-utils": "0.60.3"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "unbuild",
|