@unocss/preset-wind 0.56.0 → 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 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
- /^animate-(fill-mode-|fill-|mode-)?(.+)$/,
62
- ([, t, d]) => ["none", "forwards", "backwards", "both", ...[t ? utils.globalKeywords : []]].includes(d) ? { "animation-fill-mode": d } : void 0,
63
- {
64
- autocomplete: [
65
- "animate-(fill|mode|fill-mode)",
66
- "animate-(fill|mode|fill-mode)-(none|forwards|backwards|both|inherit|initial|revert|revert-layer|unset)",
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
- /^animate-(direction-)?(.+)$/,
74
- ([, t, d]) => ["normal", "reverse", "alternate", "alternate-reverse", ...[t ? utils.globalKeywords : []]].includes(d) ? { "animation-direction": d } : void 0,
75
- {
76
- autocomplete: [
77
- "animate-direction",
78
- "animate-direction-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|revert-layer|unset)",
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
- /^animate-(play-state-|play-|state-)?(.+)$/,
87
- ([, t, d]) => ["paused", "running", ...[t ? utils.globalKeywords : []]].includes(d) ? { "animation-play-state": d } : void 0,
88
- {
89
- autocomplete: [
90
- "animate-(play|state|play-state)",
91
- "animate-(play|state|play-state)-(paused|running|inherit|initial|revert|revert-layer|unset)",
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.d.cts CHANGED
@@ -4,7 +4,7 @@ import * as _unocss_preset_mini from '@unocss/preset-mini';
4
4
  import { Theme, PresetMiniOptions } from '@unocss/preset-mini';
5
5
  export { Theme, colors, preflights } from '@unocss/preset-mini';
6
6
 
7
- declare const rules: Rule[];
7
+ declare const rules: Rule<Theme>[];
8
8
 
9
9
  declare const shortcuts: _unocss_core.Shortcut<_unocss_preset_mini.Theme>[];
10
10
 
@@ -14,6 +14,6 @@ declare function variants(options: PresetWindOptions): Variant<Theme>[];
14
14
 
15
15
  interface PresetWindOptions extends PresetMiniOptions {
16
16
  }
17
- declare const presetWind: _unocss_core.PresetFactory<object, PresetWindOptions>;
17
+ declare const presetWind: _unocss_core.PresetFactory<_unocss_preset_mini.Theme, PresetWindOptions>;
18
18
 
19
19
  export { type PresetWindOptions, presetWind as default, presetWind, rules, shortcuts, theme, variants };
package/dist/index.d.mts CHANGED
@@ -4,7 +4,7 @@ import * as _unocss_preset_mini from '@unocss/preset-mini';
4
4
  import { Theme, PresetMiniOptions } from '@unocss/preset-mini';
5
5
  export { Theme, colors, preflights } from '@unocss/preset-mini';
6
6
 
7
- declare const rules: Rule[];
7
+ declare const rules: Rule<Theme>[];
8
8
 
9
9
  declare const shortcuts: _unocss_core.Shortcut<_unocss_preset_mini.Theme>[];
10
10
 
@@ -14,6 +14,6 @@ declare function variants(options: PresetWindOptions): Variant<Theme>[];
14
14
 
15
15
  interface PresetWindOptions extends PresetMiniOptions {
16
16
  }
17
- declare const presetWind: _unocss_core.PresetFactory<object, PresetWindOptions>;
17
+ declare const presetWind: _unocss_core.PresetFactory<_unocss_preset_mini.Theme, PresetWindOptions>;
18
18
 
19
19
  export { type PresetWindOptions, presetWind as default, presetWind, rules, shortcuts, theme, variants };
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import * as _unocss_preset_mini from '@unocss/preset-mini';
4
4
  import { Theme, PresetMiniOptions } from '@unocss/preset-mini';
5
5
  export { Theme, colors, preflights } from '@unocss/preset-mini';
6
6
 
7
- declare const rules: Rule[];
7
+ declare const rules: Rule<Theme>[];
8
8
 
9
9
  declare const shortcuts: _unocss_core.Shortcut<_unocss_preset_mini.Theme>[];
10
10
 
@@ -14,6 +14,6 @@ declare function variants(options: PresetWindOptions): Variant<Theme>[];
14
14
 
15
15
  interface PresetWindOptions extends PresetMiniOptions {
16
16
  }
17
- declare const presetWind: _unocss_core.PresetFactory<object, PresetWindOptions>;
17
+ declare const presetWind: _unocss_core.PresetFactory<_unocss_preset_mini.Theme, PresetWindOptions>;
18
18
 
19
19
  export { type PresetWindOptions, presetWind as default, presetWind, rules, shortcuts, theme, variants };
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
- /^animate-(fill-mode-|fill-|mode-)?(.+)$/,
46
- ([, t, d]) => ["none", "forwards", "backwards", "both", ...[t ? globalKeywords : []]].includes(d) ? { "animation-fill-mode": d } : void 0,
47
- {
48
- autocomplete: [
49
- "animate-(fill|mode|fill-mode)",
50
- "animate-(fill|mode|fill-mode)-(none|forwards|backwards|both|inherit|initial|revert|revert-layer|unset)",
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
- /^animate-(direction-)?(.+)$/,
58
- ([, t, d]) => ["normal", "reverse", "alternate", "alternate-reverse", ...[t ? globalKeywords : []]].includes(d) ? { "animation-direction": d } : void 0,
59
- {
60
- autocomplete: [
61
- "animate-direction",
62
- "animate-direction-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|revert-layer|unset)",
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
- /^animate-(play-state-|play-|state-)?(.+)$/,
71
- ([, t, d]) => ["paused", "running", ...[t ? globalKeywords : []]].includes(d) ? { "animation-play-state": d } : void 0,
72
- {
73
- autocomplete: [
74
- "animate-(play|state|play-state)",
75
- "animate-(play|state|play-state)-(paused|running|inherit|initial|revert|revert-layer|unset)",
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.0",
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
- "dist",
35
- "*.css"
34
+ "*.css",
35
+ "dist"
36
36
  ],
37
37
  "dependencies": {
38
- "@unocss/core": "0.56.0",
39
- "@unocss/preset-mini": "0.56.0",
40
- "@unocss/rule-utils": "0.56.0"
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",