unocss 0.50.8 → 0.51.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/README.md +1 -1
- package/dist/index.cjs +4 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.mjs +4 -1
- package/package.json +23 -22
package/README.md
CHANGED
|
@@ -56,7 +56,7 @@ Read the [documentation](https://unocss.dev/) for more details.
|
|
|
56
56
|
- [CDN Runtime](https://unocss.dev/integrations/runtime)
|
|
57
57
|
- [CLI](https://unocss.dev/integrations/cli)
|
|
58
58
|
- [VS Code extension](https://unocss.dev/integrations/vscode)
|
|
59
|
-
- [ESLint Config](https://unocss.dev/integrations/eslint
|
|
59
|
+
- [ESLint Config](https://unocss.dev/integrations/eslint)
|
|
60
60
|
- [PostCSS](https://unocss.dev/integrations/postcss)
|
|
61
61
|
|
|
62
62
|
## Acknowledgement
|
package/dist/index.cjs
CHANGED
|
@@ -34,6 +34,9 @@ const transformerAttributifyJsx__default = /*#__PURE__*/_interopDefaultLegacy(tr
|
|
|
34
34
|
function defineConfig(config) {
|
|
35
35
|
return config;
|
|
36
36
|
}
|
|
37
|
+
function definePreset(preset) {
|
|
38
|
+
return preset;
|
|
39
|
+
}
|
|
37
40
|
|
|
38
41
|
exports.presetUno = presetUno__default;
|
|
39
42
|
exports.presetAttributify = presetAttributify__default;
|
|
@@ -48,6 +51,7 @@ exports.transformerVariantGroup = transformerVariantGroup__default;
|
|
|
48
51
|
exports.transformerCompileClass = transformerCompileClass__default;
|
|
49
52
|
exports.transformerAttributifyJsx = transformerAttributifyJsx__default;
|
|
50
53
|
exports.defineConfig = defineConfig;
|
|
54
|
+
exports.definePreset = definePreset;
|
|
51
55
|
for (const k in core) {
|
|
52
56
|
if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = core[k];
|
|
53
57
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UserConfig } from '@unocss/core';
|
|
1
|
+
import { UserConfig, Preset } from '@unocss/core';
|
|
2
2
|
export * from '@unocss/core';
|
|
3
3
|
import { Theme } from '@unocss/preset-uno';
|
|
4
4
|
export { default as presetUno } from '@unocss/preset-uno';
|
|
@@ -15,5 +15,6 @@ export { default as transformerCompileClass } from '@unocss/transformer-compile-
|
|
|
15
15
|
export { default as transformerAttributifyJsx } from '@unocss/transformer-attributify-jsx';
|
|
16
16
|
|
|
17
17
|
declare function defineConfig<Theme extends {} = Theme>(config: UserConfig<Theme>): UserConfig<Theme>;
|
|
18
|
+
declare function definePreset<Theme extends {} = {}>(preset: Preset<Theme>): Preset<Theme>;
|
|
18
19
|
|
|
19
|
-
export { defineConfig };
|
|
20
|
+
export { defineConfig, definePreset };
|
package/dist/index.mjs
CHANGED
|
@@ -15,5 +15,8 @@ export { default as transformerAttributifyJsx } from '@unocss/transformer-attrib
|
|
|
15
15
|
function defineConfig(config) {
|
|
16
16
|
return config;
|
|
17
17
|
}
|
|
18
|
+
function definePreset(preset) {
|
|
19
|
+
return preset;
|
|
20
|
+
}
|
|
18
21
|
|
|
19
|
-
export { defineConfig };
|
|
22
|
+
export { defineConfig, definePreset };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unocss",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.51.1",
|
|
4
4
|
"description": "The instant on-demand Atomic CSS engine.",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"node": ">=14"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
|
-
"@unocss/webpack": "0.
|
|
106
|
+
"@unocss/webpack": "0.51.1"
|
|
107
107
|
},
|
|
108
108
|
"peerDependenciesMeta": {
|
|
109
109
|
"@unocss/webpack": {
|
|
@@ -111,28 +111,29 @@
|
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
113
|
"dependencies": {
|
|
114
|
-
"@unocss/astro": "0.
|
|
115
|
-
"@unocss/cli": "0.
|
|
116
|
-
"@unocss/core": "0.
|
|
117
|
-
"@unocss/
|
|
118
|
-
"@unocss/
|
|
119
|
-
"@unocss/preset-
|
|
120
|
-
"@unocss/preset-
|
|
121
|
-
"@unocss/preset-
|
|
122
|
-
"@unocss/preset-
|
|
123
|
-
"@unocss/preset-
|
|
124
|
-
"@unocss/preset-
|
|
125
|
-
"@unocss/preset-
|
|
126
|
-
"@unocss/
|
|
127
|
-
"@unocss/
|
|
128
|
-
"@unocss/transformer-attributify-jsx
|
|
129
|
-
"@unocss/transformer-
|
|
130
|
-
"@unocss/transformer-
|
|
131
|
-
"@unocss/transformer-
|
|
132
|
-
"@unocss/
|
|
114
|
+
"@unocss/astro": "0.51.1",
|
|
115
|
+
"@unocss/cli": "0.51.1",
|
|
116
|
+
"@unocss/core": "0.51.1",
|
|
117
|
+
"@unocss/extractor-arbitrary-variants": "0.51.1",
|
|
118
|
+
"@unocss/postcss": "0.51.1",
|
|
119
|
+
"@unocss/preset-attributify": "0.51.1",
|
|
120
|
+
"@unocss/preset-icons": "0.51.1",
|
|
121
|
+
"@unocss/preset-mini": "0.51.1",
|
|
122
|
+
"@unocss/preset-tagify": "0.51.1",
|
|
123
|
+
"@unocss/preset-typography": "0.51.1",
|
|
124
|
+
"@unocss/preset-uno": "0.51.1",
|
|
125
|
+
"@unocss/preset-web-fonts": "0.51.1",
|
|
126
|
+
"@unocss/preset-wind": "0.51.1",
|
|
127
|
+
"@unocss/reset": "0.51.1",
|
|
128
|
+
"@unocss/transformer-attributify-jsx": "0.51.1",
|
|
129
|
+
"@unocss/transformer-attributify-jsx-babel": "0.51.1",
|
|
130
|
+
"@unocss/transformer-compile-class": "0.51.1",
|
|
131
|
+
"@unocss/transformer-directives": "0.51.1",
|
|
132
|
+
"@unocss/transformer-variant-group": "0.51.1",
|
|
133
|
+
"@unocss/vite": "0.51.1"
|
|
133
134
|
},
|
|
134
135
|
"devDependencies": {
|
|
135
|
-
"@unocss/webpack": "0.
|
|
136
|
+
"@unocss/webpack": "0.51.1"
|
|
136
137
|
},
|
|
137
138
|
"scripts": {
|
|
138
139
|
"build": "unbuild",
|