@unocss/nuxt 0.55.1 → 0.55.3

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.
@@ -0,0 +1,101 @@
1
+ import * as _nuxt_schema from '@nuxt/schema';
2
+ import { UserConfig } from '@unocss/core';
3
+ import { PresetUnoOptions } from '@unocss/preset-uno';
4
+ import { AttributifyOptions } from '@unocss/preset-attributify';
5
+ import { IconsOptions } from '@unocss/preset-icons';
6
+ import { WebFontsOptions } from '@unocss/preset-web-fonts';
7
+ import { TypographyOptions } from '@unocss/preset-typography';
8
+ import { TagifyOptions } from '@unocss/preset-tagify';
9
+ import { PresetWindOptions } from '@unocss/preset-wind';
10
+ import { VitePluginConfig } from '@unocss/vite';
11
+
12
+ interface UnocssNuxtOptions extends UserConfig {
13
+ /**
14
+ * CSS Generation mode. Only work with Vite.
15
+ *
16
+ * @see https://unocss.dev/integrations/vite#modes
17
+ */
18
+ mode?: VitePluginConfig['mode'];
19
+ /**
20
+ * Injecting `uno.css` entry
21
+ *
22
+ * @default true
23
+ */
24
+ autoImport?: boolean;
25
+ /**
26
+ * Injecting `@unocss/reset/tailwind.css` entry
27
+ *
28
+ * @default false
29
+ */
30
+ preflight?: boolean;
31
+ /**
32
+ * Installing UnoCSS components
33
+ * - `<UnoIcon>`
34
+ *
35
+ * @default true
36
+ */
37
+ components?: boolean;
38
+ /**
39
+ * Enable the default preset
40
+ * Only works when `presets` is not specified
41
+ * @default true
42
+ */
43
+ uno?: boolean | PresetUnoOptions;
44
+ /**
45
+ * Enable attributify mode and the options of it
46
+ * Only works when `presets` is not specified
47
+ * @default false
48
+ */
49
+ attributify?: boolean | AttributifyOptions;
50
+ /**
51
+ * Enable tagify mode and the options of it
52
+ * Only works when `presets` is not specified
53
+ * @default false
54
+ */
55
+ tagify?: boolean | TagifyOptions;
56
+ /**
57
+ * Enable icons preset and the options of it
58
+ * Only works when `presets` is not specified
59
+ * @default false
60
+ */
61
+ icons?: boolean | IconsOptions;
62
+ /**
63
+ * Enable web fonts preset and the options of it
64
+ * Only works when `presets` is not specified
65
+ * @default false
66
+ */
67
+ webFonts?: boolean | WebFontsOptions;
68
+ /**
69
+ * Enable typography preset and the options of it
70
+ * Only works when `presets` is not specified
71
+ * @default false
72
+ */
73
+ typography?: boolean | TypographyOptions;
74
+ /**
75
+ * Enable the wind preset
76
+ * Only works when `presets` is not specified
77
+ * @default false
78
+ */
79
+ wind?: boolean | PresetWindOptions;
80
+ }
81
+ declare module '@nuxt/schema' {
82
+ interface NuxtHooks {
83
+ /**
84
+ * When UnoCSS load config completed.
85
+ */
86
+ 'unocss:config': (config: UserConfig) => void;
87
+ }
88
+ }
89
+
90
+ declare const _default: _nuxt_schema.NuxtModule<UnocssNuxtOptions>;
91
+
92
+ declare module '@nuxt/schema' {
93
+ interface NuxtConfig {
94
+ unocss?: UnocssNuxtOptions;
95
+ }
96
+ interface NuxtOptions {
97
+ unocss?: UnocssNuxtOptions;
98
+ }
99
+ }
100
+
101
+ export { type UnocssNuxtOptions, _default as default };
package/dist/index.d.ts CHANGED
@@ -98,4 +98,4 @@ declare module '@nuxt/schema' {
98
98
  }
99
99
  }
100
100
 
101
- export { UnocssNuxtOptions, _default as default };
101
+ export { type UnocssNuxtOptions, _default as default };
package/dist/index.mjs CHANGED
@@ -55,6 +55,7 @@ const index = defineNuxtModule({
55
55
  autoImport: true,
56
56
  preflight: false,
57
57
  components: true,
58
+ // presets
58
59
  uno: true,
59
60
  attributify: false,
60
61
  webFonts: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/nuxt",
3
- "version": "0.55.1",
3
+ "version": "0.55.3",
4
4
  "description": "Nuxt module for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -38,19 +38,19 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "@nuxt/kit": "^3.6.5",
41
- "@unocss/config": "0.55.1",
42
- "@unocss/core": "0.55.1",
43
- "@unocss/preset-attributify": "0.55.1",
44
- "@unocss/preset-icons": "0.55.1",
45
- "@unocss/preset-tagify": "0.55.1",
46
- "@unocss/preset-typography": "0.55.1",
47
- "@unocss/preset-uno": "0.55.1",
48
- "@unocss/preset-web-fonts": "0.55.1",
49
- "@unocss/preset-wind": "0.55.1",
50
- "@unocss/reset": "0.55.1",
51
- "@unocss/vite": "0.55.1",
52
- "@unocss/webpack": "0.55.1",
53
- "unocss": "0.55.1"
41
+ "@unocss/config": "0.55.3",
42
+ "@unocss/core": "0.55.3",
43
+ "@unocss/preset-attributify": "0.55.3",
44
+ "@unocss/preset-icons": "0.55.3",
45
+ "@unocss/preset-tagify": "0.55.3",
46
+ "@unocss/preset-typography": "0.55.3",
47
+ "@unocss/preset-uno": "0.55.3",
48
+ "@unocss/preset-web-fonts": "0.55.3",
49
+ "@unocss/preset-wind": "0.55.3",
50
+ "@unocss/reset": "0.55.3",
51
+ "@unocss/vite": "0.55.3",
52
+ "@unocss/webpack": "0.55.3",
53
+ "unocss": "0.55.3"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@nuxt/schema": "^3.6.5"