@unocss/nuxt 0.11.1 → 0.11.5

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 CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as _nuxt_kit from '@nuxt/kit';
2
+ import { UnoOptions } from '@unocss/preset-uno';
2
3
  import { AttributifyOptions } from '@unocss/preset-attributify';
3
4
  import { IconsOptions } from '@unocss/preset-icons';
4
5
  import { UserConfig } from '@unocss/core';
@@ -40,7 +41,7 @@ interface UnocssNuxtOptions extends PluginOptions {
40
41
  * Only works when `presets` is not specified
41
42
  * @default true
42
43
  */
43
- uno?: boolean;
44
+ uno?: boolean | UnoOptions;
44
45
  /**
45
46
  * Enable attributify mode and the options of it
46
47
  * Only works when `presets` is not specified
package/dist/index.mjs CHANGED
@@ -23,11 +23,11 @@ var src_default = defineNuxtModule({
23
23
  if (options.presets == null) {
24
24
  options.presets = [];
25
25
  if (options.uno)
26
- options.presets.push(presetUno());
26
+ options.presets.push(presetUno(typeof options.uno === "boolean" ? {} : options.uno));
27
27
  if (options.attributify)
28
- options.presets.push(presetAttributify(typeof options.attributify == "boolean" ? {} : options.attributify));
28
+ options.presets.push(presetAttributify(typeof options.attributify === "boolean" ? {} : options.attributify));
29
29
  if (options.icons)
30
- options.presets.push(presetIcons(typeof options.icons == "boolean" ? {} : options.icons));
30
+ options.presets.push(presetIcons(typeof options.icons === "boolean" ? {} : options.icons));
31
31
  }
32
32
  if (options.autoImport) {
33
33
  addPluginTemplate({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/nuxt",
3
- "version": "0.11.1",
3
+ "version": "0.11.5",
4
4
  "description": "Nuxt module for UnoCSS",
5
5
  "keywords": [
6
6
  "unocss",
@@ -36,13 +36,13 @@
36
36
  "runtime"
37
37
  ],
38
38
  "dependencies": {
39
- "@unocss/core": "0.11.1",
40
- "@unocss/webpack": "0.11.1",
41
- "@unocss/vite": "0.11.1",
42
- "@unocss/reset": "0.11.1",
43
- "@unocss/preset-uno": "0.11.1",
44
- "@unocss/preset-attributify": "0.11.1",
45
- "@unocss/preset-icons": "0.11.1",
39
+ "@unocss/core": "0.11.5",
40
+ "@unocss/webpack": "0.11.5",
41
+ "@unocss/vite": "0.11.5",
42
+ "@unocss/reset": "0.11.5",
43
+ "@unocss/preset-uno": "0.11.5",
44
+ "@unocss/preset-attributify": "0.11.5",
45
+ "@unocss/preset-icons": "0.11.5",
46
46
  "@nuxt/kit": "npm:@nuxt/kit-edge@latest"
47
47
  },
48
48
  "scripts": {