@unocss/nuxt 0.30.6 → 0.30.10
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.d.ts +7 -0
- package/dist/index.mjs +5 -1
- package/package.json +12 -11
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { IconsOptions } from '@unocss/preset-icons';
|
|
|
5
5
|
import { UserConfig } from '@unocss/core';
|
|
6
6
|
import { WebFontsOptions } from '@unocss/preset-web-fonts';
|
|
7
7
|
import { TypographyOptions } from '@unocss/preset-typography';
|
|
8
|
+
import { PresetWindOptions } from '@unocss/preset-wind';
|
|
8
9
|
|
|
9
10
|
interface UnocssNuxtOptions extends UserConfig {
|
|
10
11
|
/**
|
|
@@ -56,6 +57,12 @@ interface UnocssNuxtOptions extends UserConfig {
|
|
|
56
57
|
* @default false
|
|
57
58
|
*/
|
|
58
59
|
typography?: boolean | TypographyOptions;
|
|
60
|
+
/**
|
|
61
|
+
* Enable the wind preset
|
|
62
|
+
* Only works when `presets` is not specified
|
|
63
|
+
* @default false
|
|
64
|
+
*/
|
|
65
|
+
wind?: boolean | PresetWindOptions;
|
|
59
66
|
}
|
|
60
67
|
declare const _default: _nuxt_schema.NuxtModule<UnocssNuxtOptions>;
|
|
61
68
|
|
package/dist/index.mjs
CHANGED
|
@@ -8,6 +8,7 @@ import presetAttributify from '@unocss/preset-attributify';
|
|
|
8
8
|
import presetIcons from '@unocss/preset-icons';
|
|
9
9
|
import presetWebFonts from '@unocss/preset-web-fonts';
|
|
10
10
|
import presetTypography from '@unocss/preset-typography';
|
|
11
|
+
import presetWind from '@unocss/preset-wind';
|
|
11
12
|
|
|
12
13
|
const dir = dirname(fileURLToPath(import.meta.url));
|
|
13
14
|
const index = defineNuxtModule({
|
|
@@ -22,13 +23,16 @@ const index = defineNuxtModule({
|
|
|
22
23
|
uno: true,
|
|
23
24
|
attributify: false,
|
|
24
25
|
webFonts: false,
|
|
25
|
-
icons: false
|
|
26
|
+
icons: false,
|
|
27
|
+
wind: false
|
|
26
28
|
},
|
|
27
29
|
setup(options) {
|
|
28
30
|
if (options.presets == null) {
|
|
29
31
|
options.presets = [];
|
|
30
32
|
if (options.uno)
|
|
31
33
|
options.presets.push(presetUno(typeof options.uno === "boolean" ? {} : options.uno));
|
|
34
|
+
if (options.wind)
|
|
35
|
+
options.presets.push(presetWind(typeof options.wind === "boolean" ? {} : options.wind));
|
|
32
36
|
if (options.attributify)
|
|
33
37
|
options.presets.push(presetAttributify(typeof options.attributify === "boolean" ? {} : options.attributify));
|
|
34
38
|
if (options.icons)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/nuxt",
|
|
3
|
-
"version": "0.30.
|
|
3
|
+
"version": "0.30.10",
|
|
4
4
|
"description": "Nuxt module for UnoCSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"unocss",
|
|
@@ -37,16 +37,17 @@
|
|
|
37
37
|
"sideEffects": false,
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@nuxt/kit": "npm:@nuxt/kit-edge@latest",
|
|
40
|
-
"@unocss/core": "0.30.
|
|
41
|
-
"@unocss/preset-attributify": "0.30.
|
|
42
|
-
"@unocss/preset-icons": "0.30.
|
|
43
|
-
"@unocss/preset-typography": "0.30.
|
|
44
|
-
"@unocss/preset-uno": "0.30.
|
|
45
|
-
"@unocss/preset-
|
|
46
|
-
"@unocss/
|
|
47
|
-
"@unocss/
|
|
48
|
-
"@unocss/
|
|
49
|
-
"unocss": "0.30.
|
|
40
|
+
"@unocss/core": "0.30.10",
|
|
41
|
+
"@unocss/preset-attributify": "0.30.10",
|
|
42
|
+
"@unocss/preset-icons": "0.30.10",
|
|
43
|
+
"@unocss/preset-typography": "0.30.10",
|
|
44
|
+
"@unocss/preset-uno": "0.30.10",
|
|
45
|
+
"@unocss/preset-wind": "0.30.10",
|
|
46
|
+
"@unocss/preset-web-fonts": "0.30.10",
|
|
47
|
+
"@unocss/reset": "0.30.10",
|
|
48
|
+
"@unocss/vite": "0.30.10",
|
|
49
|
+
"@unocss/webpack": "0.30.10",
|
|
50
|
+
"unocss": "0.30.10"
|
|
50
51
|
},
|
|
51
52
|
"devDependencies": {
|
|
52
53
|
"@nuxt/schema": "npm:@nuxt/schema-edge@latest"
|