@unocss/preset-wind 0.56.1 → 0.56.2
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 +21 -33
- package/dist/index.mjs +21 -33
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -57,42 +57,30 @@ const animations = [
|
|
|
57
57
|
[/^animate-delay-(.+)$/, ([, d], { theme }) => ({ "animation-delay": theme.duration?.[d || "DEFAULT"] ?? utils.h.bracket.cssvar.time(d) }), { autocomplete: ["animate-delay", "animate-delay-$duration"] }],
|
|
58
58
|
[/^animate-ease(?:-(.+))?$/, ([, d], { theme }) => ({ "animation-timing-function": theme.easing?.[d || "DEFAULT"] ?? utils.h.bracket.cssvar(d) }), { autocomplete: ["animate-ease", "animate-ease-$easing"] }],
|
|
59
59
|
// fill mode
|
|
60
|
-
[
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"animate-(none|forwards|backwards|both|inherit|initial|revert|revert-layer|unset)"
|
|
68
|
-
]
|
|
69
|
-
}
|
|
70
|
-
],
|
|
60
|
+
[/^animate-(fill-mode-|fill-|mode-)?(.+)$/, ([, t, d]) => ["none", "forwards", "backwards", "both", ...[t ? utils.globalKeywords : []]].includes(d) ? { "animation-fill-mode": d } : void 0, {
|
|
61
|
+
autocomplete: [
|
|
62
|
+
"animate-(fill|mode|fill-mode)",
|
|
63
|
+
"animate-(fill|mode|fill-mode)-(none|forwards|backwards|both|inherit|initial|revert|revert-layer|unset)",
|
|
64
|
+
"animate-(none|forwards|backwards|both|inherit|initial|revert|revert-layer|unset)"
|
|
65
|
+
]
|
|
66
|
+
}],
|
|
71
67
|
// direction
|
|
72
|
-
[
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
"animate-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|revert-layer|unset)"
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
],
|
|
68
|
+
[/^animate-(direction-)?(.+)$/, ([, t, d]) => ["normal", "reverse", "alternate", "alternate-reverse", ...[t ? utils.globalKeywords : []]].includes(d) ? { "animation-direction": d } : void 0, {
|
|
69
|
+
autocomplete: [
|
|
70
|
+
"animate-direction",
|
|
71
|
+
"animate-direction-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|revert-layer|unset)",
|
|
72
|
+
"animate-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|revert-layer|unset)"
|
|
73
|
+
]
|
|
74
|
+
}],
|
|
83
75
|
// others
|
|
84
76
|
[/^animate-(?:iteration-count-|iteration-|count-)(.+)$/, ([, d]) => ({ "animation-iteration-count": utils.h.bracket.cssvar(d) ?? d.replace(/\-/g, ",") }), { autocomplete: ["animate-(iteration|count|iteration-count)", "animate-(iteration|count|iteration-count)-<num>"] }],
|
|
85
|
-
[
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
"animate-(paused|running|inherit|initial|revert|revert-layer|unset)"
|
|
93
|
-
]
|
|
94
|
-
}
|
|
95
|
-
],
|
|
77
|
+
[/^animate-(play-state-|play-|state-)?(.+)$/, ([, t, d]) => ["paused", "running", ...[t ? utils.globalKeywords : []]].includes(d) ? { "animation-play-state": d } : void 0, {
|
|
78
|
+
autocomplete: [
|
|
79
|
+
"animate-(play|state|play-state)",
|
|
80
|
+
"animate-(play|state|play-state)-(paused|running|inherit|initial|revert|revert-layer|unset)",
|
|
81
|
+
"animate-(paused|running|inherit|initial|revert|revert-layer|unset)"
|
|
82
|
+
]
|
|
83
|
+
}],
|
|
96
84
|
["animate-none", { animation: "none" }],
|
|
97
85
|
...utils.makeGlobalStaticRules("animate", "animation")
|
|
98
86
|
];
|
package/dist/index.mjs
CHANGED
|
@@ -41,42 +41,30 @@ const animations = [
|
|
|
41
41
|
[/^animate-delay-(.+)$/, ([, d], { theme }) => ({ "animation-delay": theme.duration?.[d || "DEFAULT"] ?? h.bracket.cssvar.time(d) }), { autocomplete: ["animate-delay", "animate-delay-$duration"] }],
|
|
42
42
|
[/^animate-ease(?:-(.+))?$/, ([, d], { theme }) => ({ "animation-timing-function": theme.easing?.[d || "DEFAULT"] ?? h.bracket.cssvar(d) }), { autocomplete: ["animate-ease", "animate-ease-$easing"] }],
|
|
43
43
|
// fill mode
|
|
44
|
-
[
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"animate-(none|forwards|backwards|both|inherit|initial|revert|revert-layer|unset)"
|
|
52
|
-
]
|
|
53
|
-
}
|
|
54
|
-
],
|
|
44
|
+
[/^animate-(fill-mode-|fill-|mode-)?(.+)$/, ([, t, d]) => ["none", "forwards", "backwards", "both", ...[t ? globalKeywords : []]].includes(d) ? { "animation-fill-mode": d } : void 0, {
|
|
45
|
+
autocomplete: [
|
|
46
|
+
"animate-(fill|mode|fill-mode)",
|
|
47
|
+
"animate-(fill|mode|fill-mode)-(none|forwards|backwards|both|inherit|initial|revert|revert-layer|unset)",
|
|
48
|
+
"animate-(none|forwards|backwards|both|inherit|initial|revert|revert-layer|unset)"
|
|
49
|
+
]
|
|
50
|
+
}],
|
|
55
51
|
// direction
|
|
56
|
-
[
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"animate-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|revert-layer|unset)"
|
|
64
|
-
]
|
|
65
|
-
}
|
|
66
|
-
],
|
|
52
|
+
[/^animate-(direction-)?(.+)$/, ([, t, d]) => ["normal", "reverse", "alternate", "alternate-reverse", ...[t ? globalKeywords : []]].includes(d) ? { "animation-direction": d } : void 0, {
|
|
53
|
+
autocomplete: [
|
|
54
|
+
"animate-direction",
|
|
55
|
+
"animate-direction-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|revert-layer|unset)",
|
|
56
|
+
"animate-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|revert-layer|unset)"
|
|
57
|
+
]
|
|
58
|
+
}],
|
|
67
59
|
// others
|
|
68
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>"] }],
|
|
69
|
-
[
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"animate-(paused|running|inherit|initial|revert|revert-layer|unset)"
|
|
77
|
-
]
|
|
78
|
-
}
|
|
79
|
-
],
|
|
61
|
+
[/^animate-(play-state-|play-|state-)?(.+)$/, ([, t, d]) => ["paused", "running", ...[t ? globalKeywords : []]].includes(d) ? { "animation-play-state": d } : void 0, {
|
|
62
|
+
autocomplete: [
|
|
63
|
+
"animate-(play|state|play-state)",
|
|
64
|
+
"animate-(play|state|play-state)-(paused|running|inherit|initial|revert|revert-layer|unset)",
|
|
65
|
+
"animate-(paused|running|inherit|initial|revert|revert-layer|unset)"
|
|
66
|
+
]
|
|
67
|
+
}],
|
|
80
68
|
["animate-none", { animation: "none" }],
|
|
81
69
|
...makeGlobalStaticRules("animate", "animation")
|
|
82
70
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-wind",
|
|
3
|
-
"version": "0.56.
|
|
3
|
+
"version": "0.56.2",
|
|
4
4
|
"description": "Tailwind / Windi CSS compact preset for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"module": "dist/index.mjs",
|
|
32
32
|
"types": "dist/index.d.ts",
|
|
33
33
|
"files": [
|
|
34
|
-
"
|
|
35
|
-
"
|
|
34
|
+
"*.css",
|
|
35
|
+
"dist"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@unocss/core": "0.56.
|
|
39
|
-
"@unocss/preset-mini": "0.56.
|
|
40
|
-
"@unocss/rule-utils": "0.56.
|
|
38
|
+
"@unocss/core": "0.56.2",
|
|
39
|
+
"@unocss/preset-mini": "0.56.2",
|
|
40
|
+
"@unocss/rule-utils": "0.56.2"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "unbuild",
|