unocss 66.6.0 → 66.6.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/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  <br>
2
2
 
3
3
  <p align="center">
4
- <img src="https://raw.githubusercontent.com/unocss/unocss/main/playground/public/icon-gray.svg" style="width:100px;" />
4
+ <img src="https://raw.githubusercontent.com/unocss/unocss/main/playground/public/icon-gray.svg" style="width:100px;" alt="UnoCSS Logo" />
5
5
  </p>
6
6
 
7
7
  <h1 align="center">UnoCSS</h1>
@@ -79,7 +79,7 @@ UnoCSS is made possible thanks to the inspirations from the following projects:
79
79
 
80
80
  <p align="center">
81
81
  <a href="https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg">
82
- <img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg'/>
82
+ <img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg' alt="Sponsors"/>
83
83
  </a>
84
84
  </p>
85
85
 
package/dist/vite.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { VitePluginConfig } from "@unocss/vite";
2
- import * as vite0 from "vite";
2
+ import { Plugin } from "vite";
3
3
  export * from "@unocss/vite";
4
4
 
5
5
  //#region src/vite.d.ts
6
- declare function UnocssVitePlugin<Theme extends object>(configOrPath?: VitePluginConfig<Theme> | string): vite0.Plugin<any>[];
6
+ declare function UnocssVitePlugin<Theme extends object>(configOrPath?: VitePluginConfig<Theme> | string): Plugin[];
7
7
  //#endregion
8
8
  export { UnocssVitePlugin as default };
@@ -1,6 +1,7 @@
1
1
  import { WebpackPluginOptions } from "@unocss/webpack";
2
+ import { WebpackPluginInstance } from "webpack";
2
3
  export * from "@unocss/webpack";
3
4
 
4
5
  //#region src/webpack.d.ts
5
- declare function UnocssWebpackPlugin<Theme extends object>(configOrPath?: WebpackPluginOptions<Theme> | string): any;
6
+ declare function UnocssWebpackPlugin<Theme extends object>(configOrPath?: WebpackPluginOptions<Theme> | string): WebpackPluginInstance;
6
7
  export = UnocssWebpackPlugin;
@@ -1,7 +1,8 @@
1
1
  import { WebpackPluginOptions } from "@unocss/webpack";
2
+ import { WebpackPluginInstance } from "webpack";
2
3
  export * from "@unocss/webpack";
3
4
 
4
5
  //#region src/webpack.d.ts
5
- declare function UnocssWebpackPlugin<Theme extends object>(configOrPath?: WebpackPluginOptions<Theme> | string): any;
6
+ declare function UnocssWebpackPlugin<Theme extends object>(configOrPath?: WebpackPluginOptions<Theme> | string): WebpackPluginInstance;
6
7
  //#endregion
7
8
  export { UnocssWebpackPlugin as default };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unocss",
3
3
  "type": "module",
4
- "version": "66.6.0",
4
+ "version": "66.6.2",
5
5
  "description": "The instant on-demand Atomic CSS engine.",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -28,86 +28,37 @@
28
28
  ],
29
29
  "sideEffects": false,
30
30
  "exports": {
31
- ".": {
32
- "types": "./dist/index.d.mts",
33
- "default": "./dist/index.mjs"
34
- },
35
- "./preset-attributify": {
36
- "types": "./dist/preset-attributify.d.mts",
37
- "default": "./dist/preset-attributify.mjs"
38
- },
39
- "./preset-tagify": {
40
- "types": "./dist/preset-tagify.d.mts",
41
- "default": "./dist/preset-tagify.mjs"
42
- },
43
- "./preset-icons": {
44
- "types": "./dist/preset-icons.d.mts",
45
- "default": "./dist/preset-icons.mjs"
46
- },
47
- "./preset-mini": {
48
- "types": "./dist/preset-mini.d.mts",
49
- "default": "./dist/preset-mini.mjs"
50
- },
51
- "./preset-typography": {
52
- "types": "./dist/preset-typography.d.mts",
53
- "default": "./dist/preset-typography.mjs"
54
- },
55
- "./preset-uno": {
56
- "types": "./dist/preset-uno.d.mts",
57
- "default": "./dist/preset-uno.mjs"
58
- },
59
- "./preset-web-fonts": {
60
- "types": "./dist/preset-web-fonts.d.mts",
61
- "default": "./dist/preset-web-fonts.mjs"
62
- },
63
- "./preset-wind": {
64
- "types": "./dist/preset-wind.d.mts",
65
- "default": "./dist/preset-wind.mjs"
66
- },
67
- "./preset-wind3": {
68
- "types": "./dist/preset-wind3.d.mts",
69
- "default": "./dist/preset-wind3.mjs"
70
- },
71
- "./preset-wind4": {
72
- "types": "./dist/preset-wind4.d.mts",
73
- "default": "./dist/preset-wind4.mjs"
74
- },
75
- "./vite": {
76
- "types": "./dist/vite.d.mts",
77
- "default": "./dist/vite.mjs"
78
- },
79
- "./astro": {
80
- "types": "./dist/astro.d.mts",
81
- "default": "./dist/astro.mjs"
31
+ ".": "./dist/index.mjs",
32
+ "./astro": "./dist/astro.mjs",
33
+ "./postcss": {
34
+ "require": "./dist/postcss.cjs",
35
+ "import": "./dist/postcss.mjs"
82
36
  },
37
+ "./preset-attributify": "./dist/preset-attributify.mjs",
38
+ "./preset-icons": "./dist/preset-icons.mjs",
39
+ "./preset-mini": "./dist/preset-mini.mjs",
40
+ "./preset-tagify": "./dist/preset-tagify.mjs",
41
+ "./preset-typography": "./dist/preset-typography.mjs",
42
+ "./preset-uno": "./dist/preset-uno.mjs",
43
+ "./preset-web-fonts": "./dist/preset-web-fonts.mjs",
44
+ "./preset-wind": "./dist/preset-wind.mjs",
45
+ "./preset-wind3": "./dist/preset-wind3.mjs",
46
+ "./preset-wind4": "./dist/preset-wind4.mjs",
47
+ "./vite": "./dist/vite.mjs",
83
48
  "./webpack": {
84
- "import": {
85
- "types": "./dist/webpack.d.mts",
86
- "default": "./dist/webpack.mjs"
87
- },
88
- "require": {
89
- "types": "./dist/webpack.d.cts",
90
- "default": "./dist/webpack.cjs"
91
- }
49
+ "require": "./dist/webpack.cjs",
50
+ "import": "./dist/webpack.mjs"
92
51
  },
93
- "./postcss": {
94
- "import": {
95
- "types": "./dist/postcss.d.mts",
96
- "default": "./dist/postcss.mjs"
97
- },
98
- "require": {
99
- "types": "./dist/postcss.d.cts",
100
- "default": "./dist/postcss.cjs"
101
- }
102
- }
52
+ "./package.json": "./package.json"
103
53
  },
104
- "main": "dist/index.mjs",
105
- "module": "dist/index.mjs",
106
- "types": "dist/index.d.ts",
54
+ "main": "./dist/index.mjs",
55
+ "module": "./dist/index.mjs",
56
+ "types": "./dist/index.d.mts",
107
57
  "typesVersions": {
108
58
  "*": {
109
59
  "*": [
110
- "./dist/*",
60
+ "./dist/*.d.mts",
61
+ "./dist/*.d.cts",
111
62
  "./*"
112
63
  ]
113
64
  }
@@ -119,41 +70,44 @@
119
70
  "node": ">=14"
120
71
  },
121
72
  "peerDependencies": {
122
- "vite": "^2.9.0 || ^3.0.0-0 || ^4.0.0 || ^5.0.0-0 || ^6.0.0-0 || ^7.0.0-0 || ^8.0.0-0",
123
- "@unocss/webpack": "66.6.0"
73
+ "@unocss/postcss": "66.6.2",
74
+ "@unocss/astro": "66.6.2",
75
+ "@unocss/webpack": "66.6.2"
124
76
  },
125
77
  "peerDependenciesMeta": {
126
- "@unocss/webpack": {
78
+ "@unocss/astro": {
79
+ "optional": true
80
+ },
81
+ "@unocss/postcss": {
127
82
  "optional": true
128
83
  },
129
- "vite": {
84
+ "@unocss/webpack": {
130
85
  "optional": true
131
86
  }
132
87
  },
133
88
  "dependencies": {
134
- "@unocss/astro": "66.6.0",
135
- "@unocss/cli": "66.6.0",
136
- "@unocss/postcss": "66.6.0",
137
- "@unocss/preset-attributify": "66.6.0",
138
- "@unocss/core": "66.6.0",
139
- "@unocss/preset-icons": "66.6.0",
140
- "@unocss/preset-mini": "66.6.0",
141
- "@unocss/preset-typography": "66.6.0",
142
- "@unocss/preset-tagify": "66.6.0",
143
- "@unocss/preset-uno": "66.6.0",
144
- "@unocss/preset-web-fonts": "66.6.0",
145
- "@unocss/preset-wind": "66.6.0",
146
- "@unocss/preset-wind3": "66.6.0",
147
- "@unocss/preset-wind4": "66.6.0",
148
- "@unocss/transformer-attributify-jsx": "66.6.0",
149
- "@unocss/transformer-compile-class": "66.6.0",
150
- "@unocss/transformer-directives": "66.6.0",
151
- "@unocss/transformer-variant-group": "66.6.0",
152
- "@unocss/vite": "66.6.0"
89
+ "@unocss/cli": "66.6.2",
90
+ "@unocss/preset-attributify": "66.6.2",
91
+ "@unocss/core": "66.6.2",
92
+ "@unocss/preset-icons": "66.6.2",
93
+ "@unocss/preset-mini": "66.6.2",
94
+ "@unocss/preset-tagify": "66.6.2",
95
+ "@unocss/preset-typography": "66.6.2",
96
+ "@unocss/preset-web-fonts": "66.6.2",
97
+ "@unocss/preset-uno": "66.6.2",
98
+ "@unocss/preset-wind": "66.6.2",
99
+ "@unocss/preset-wind3": "66.6.2",
100
+ "@unocss/preset-wind4": "66.6.2",
101
+ "@unocss/transformer-compile-class": "66.6.2",
102
+ "@unocss/transformer-directives": "66.6.2",
103
+ "@unocss/vite": "66.6.2",
104
+ "@unocss/transformer-variant-group": "66.6.2",
105
+ "@unocss/transformer-attributify-jsx": "66.6.2"
153
106
  },
154
107
  "devDependencies": {
155
- "vite": "^7.3.1",
156
- "@unocss/webpack": "66.6.0"
108
+ "@unocss/astro": "66.6.2",
109
+ "@unocss/postcss": "66.6.2",
110
+ "@unocss/webpack": "66.6.2"
157
111
  },
158
112
  "scripts": {
159
113
  "build": "tsdown",