@vueless/nuxt 1.0.1-beta.5 → 1.0.1-beta.7

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/module.d.mts CHANGED
@@ -4,10 +4,12 @@ declare const _default: _nuxt_schema.NuxtModule<{
4
4
  include: never[];
5
5
  mirrorCacheDir: string;
6
6
  debug: boolean;
7
+ postcss: boolean;
7
8
  }, {
8
9
  include: never[];
9
10
  mirrorCacheDir: string;
10
11
  debug: boolean;
12
+ postcss: boolean;
11
13
  }, false>;
12
14
 
13
15
  export { _default as default };
package/dist/module.json CHANGED
@@ -4,9 +4,9 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.13.0"
6
6
  },
7
- "version": "1.0.1-beta.5",
7
+ "version": "1.0.1-beta.7",
8
8
  "builder": {
9
- "@nuxt/module-builder": "1.0.1",
10
- "unbuild": "3.5.0"
9
+ "@nuxt/module-builder": "1.0.2",
10
+ "unbuild": "3.6.0"
11
11
  }
12
12
  }
package/dist/module.mjs CHANGED
@@ -1,10 +1,11 @@
1
+ import fs from 'node:fs';
1
2
  import path from 'node:path';
2
3
  import { cwd } from 'node:process';
3
- import fs from 'node:fs';
4
+ import { pathToFileURL } from 'node:url';
4
5
  import { createRequire } from 'node:module';
5
6
  import { defineNuxtModule, createResolver, hasNuxtModule, addPlugin, addComponent, addImportsDir } from '@nuxt/kit';
6
- import { TailwindCSS, Vueless } from 'vueless/plugin-vite.js';
7
- import { cacheMergedConfigs } from 'vueless/utils/node/helper.js';
7
+ import { TailwindCSS, Vueless } from 'vueless/plugin-vite';
8
+ import { autoImportUserConfigs, cacheMergedConfigs } from 'vueless/utils/node/helper.js';
8
9
  import { NUXT_MODULE_ENV, VUELESS_PACKAGE_DIR, COMPONENTS, VUELESS_CONFIG_FILE_NAME } from 'vueless/constants.js';
9
10
 
10
11
  const require = createRequire(import.meta.url);
@@ -19,11 +20,13 @@ const module = defineNuxtModule({
19
20
  defaults: {
20
21
  include: [],
21
22
  mirrorCacheDir: "",
22
- debug: false
23
+ debug: false,
24
+ postcss: false
23
25
  },
24
26
  async setup(_options, _nuxt) {
25
- const { include, mirrorCacheDir, debug } = _options;
27
+ const { include, mirrorCacheDir, debug, postcss } = _options;
26
28
  const { resolve } = createResolver(import.meta.url);
29
+ await autoImportUserConfigs();
27
30
  const { vuelessConfig, dependencies } = await getVuelessConfig();
28
31
  _nuxt.options.runtimeConfig.public.vueless = vuelessConfig;
29
32
  _nuxt.options.build.transpile.push("vueless");
@@ -40,13 +43,13 @@ const module = defineNuxtModule({
40
43
  _nuxt.hook("vite:extendConfig", async (config) => {
41
44
  config.plugins = config.plugins || [];
42
45
  config.plugins.push(
43
- TailwindCSS(),
46
+ TailwindCSS({ postcss }),
44
47
  Vueless({ env: NUXT_MODULE_ENV, mirrorCacheDir, debug, include })
45
48
  );
46
49
  });
47
50
  if (_nuxt.options.dev) {
48
51
  const chokidarPath = require.resolve("chokidar");
49
- const chokidar = await import(chokidarPath);
52
+ const chokidar = await import(pathToFileURL(chokidarPath).href);
50
53
  const watcher = chokidar.watch(dependencies, { ignoreInitial: true });
51
54
  watcher.on("change", async () => {
52
55
  const { dependencies: newDependencies } = await getVuelessConfig();
@@ -69,7 +72,7 @@ const module = defineNuxtModule({
69
72
  });
70
73
  async function getVuelessConfig() {
71
74
  const esbuildPath = require.resolve("esbuild");
72
- const esbuild = await import(esbuildPath);
75
+ const esbuild = await import(pathToFileURL(esbuildPath).href);
73
76
  const esbuildConfig = {
74
77
  bundle: true,
75
78
  platform: "node",
package/dist/package.json CHANGED
@@ -1,26 +1,10 @@
1
1
  {
2
2
  "name": "@vueless/nuxt",
3
- "version": "1.0.1-beta.5",
4
- "license": "MIT",
3
+ "version": "1.0.1-beta.7",
5
4
  "description": "Nuxt Styleless UI Component Library, powered by Tailwind CSS.",
6
- "keywords": [
7
- "vueless",
8
- "nuxt",
9
- "nuxt.js",
10
- "nuxt3",
11
- "ui library",
12
- "component library",
13
- "nuxt framework",
14
- "design system",
15
- "tailwind",
16
- "tailwindcss",
17
- "unstyled",
18
- "styleless",
19
- "headlessui",
20
- "ui"
21
- ],
5
+ "author": "Johnny Grid <hello@vueless.com> (https://vueless.com)",
22
6
  "homepage": "https://vueless.com",
23
- "author": "Johnny Grid",
7
+ "license": "MIT",
24
8
  "type": "module",
25
9
  "publishConfig": {
26
10
  "access": "public"
@@ -43,7 +27,7 @@
43
27
  "dev:preview": "nuxi preview playground",
44
28
  "prepack": "nuxi prepare && nuxt-module-build build && cp package.json LICENSE README.md dist/",
45
29
  "release:beta": "release-it --ci --npm.publish --preRelease=beta --increment=prerelease",
46
- "release:patch": "release-it patch --ci --npm.publish",
30
+ "release:patch": "release-it patch --ci --npm.publish --git.tag --github.release",
47
31
  "release:minor": "release-it minor --ci --npm.publish --git.tag --github.release",
48
32
  "release:major": "release-it major --ci --npm.publish --git.tag --github.release",
49
33
  "lint": "eslint . --no-fix",
@@ -54,24 +38,24 @@
54
38
  "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
55
39
  },
56
40
  "dependencies": {
57
- "@nuxt/kit": "^3.17.4",
58
- "vueless": "^1.0.2-beta.9"
41
+ "vueless": "^1.1.1-beta.31"
59
42
  },
60
43
  "devDependencies": {
61
- "@material-symbols/svg-500": "^0.31.4",
62
- "@nuxt/devtools": "^2.4.1",
63
- "@nuxt/eslint-config": "^1.4.1",
64
- "@nuxt/module-builder": "^1.0.1",
65
- "@nuxt/schema": "^3.17.4",
66
- "@nuxt/test-utils": "^3.19.1",
44
+ "@material-symbols/svg-500": "^0.34.1",
45
+ "@nuxt/devtools": "^2.6.2",
46
+ "@nuxt/eslint-config": "^1.8.0",
47
+ "@nuxt/kit": "^4.0.3",
48
+ "@nuxt/module-builder": "^1.0.2",
49
+ "@nuxt/schema": "^4.0.3",
50
+ "@nuxt/test-utils": "^3.19.2",
67
51
  "@types/node": "latest",
68
- "changelogen": "^0.5.5",
69
- "eslint": "^9.27.0",
70
- "nuxt": "^3.17.4",
71
- "release-it": "^19.0.2",
52
+ "changelogen": "^0.6.2",
53
+ "eslint": "^9.33.0",
54
+ "nuxt": "^4.0.3",
55
+ "release-it": "^19.0.4",
72
56
  "typescript": "latest",
73
- "vitest": "^3.1.4",
74
- "vue-tsc": "^2.2.10"
57
+ "vitest": "^3.2.4",
58
+ "vue-tsc": "^3.0.5"
75
59
  },
76
60
  "repository": {
77
61
  "type": "git",
@@ -79,5 +63,22 @@
79
63
  },
80
64
  "bugs": {
81
65
  "url": "https://github.com/vuelessjs/vueless-module-nuxt/issues"
82
- }
66
+ },
67
+ "keywords": [
68
+ "vueless",
69
+ "nuxt",
70
+ "nuxt.js",
71
+ "nuxt3",
72
+ "nuxt4",
73
+ "ui library",
74
+ "component library",
75
+ "nuxt framework",
76
+ "design system",
77
+ "tailwind",
78
+ "tailwindcss",
79
+ "unstyled",
80
+ "styleless",
81
+ "headlessui",
82
+ "ui"
83
+ ]
83
84
  }
@@ -1,5 +1,4 @@
1
- import { createVueless, setTheme } from "vueless";
2
- import createVueI18nAdapter from "vueless/adapter.locale/vue-i18n";
1
+ import { createVueless, createVueI18nAdapter, setTheme, vClickOutside, vTooltip, vuelessConfig } from "vueless";
3
2
  import {
4
3
  TEXT,
5
4
  OUTLINE,
@@ -11,18 +10,17 @@ import {
11
10
  DARK_MODE_CLASS,
12
11
  LIGHT_MODE_CLASS,
13
12
  DISABLED_OPACITY
14
- } from "vueless/constants";
13
+ } from "vueless/constants.js";
15
14
  import { ColorMode } from "vueless/types";
16
- import vClickOutside from "vueless/directives/clickOutside/vClickOutside";
17
- import vTooltip from "vueless/directives/tooltip/vTooltip";
18
- import { vuelessConfig } from "vueless/utils/ui";
19
15
  import { useRuntimeConfig } from "#imports";
20
16
  import { defineNuxtPlugin } from "#app";
21
17
  function parseCookies(cookieHeader) {
22
18
  if (!cookieHeader) return {};
23
19
  return cookieHeader.split(";").reduce((acc, cookie) => {
24
20
  const [key, value] = cookie.trim().split("=");
25
- if (key) acc[key] = value;
21
+ if (key) {
22
+ acc[key] = value || "";
23
+ }
26
24
  return acc;
27
25
  }, {});
28
26
  }
package/package.json CHANGED
@@ -1,26 +1,10 @@
1
1
  {
2
2
  "name": "@vueless/nuxt",
3
- "version": "1.0.1-beta.5",
4
- "license": "MIT",
3
+ "version": "1.0.1-beta.7",
5
4
  "description": "Nuxt Styleless UI Component Library, powered by Tailwind CSS.",
6
- "keywords": [
7
- "vueless",
8
- "nuxt",
9
- "nuxt.js",
10
- "nuxt3",
11
- "ui library",
12
- "component library",
13
- "nuxt framework",
14
- "design system",
15
- "tailwind",
16
- "tailwindcss",
17
- "unstyled",
18
- "styleless",
19
- "headlessui",
20
- "ui"
21
- ],
5
+ "author": "Johnny Grid <hello@vueless.com> (https://vueless.com)",
22
6
  "homepage": "https://vueless.com",
23
- "author": "Johnny Grid",
7
+ "license": "MIT",
24
8
  "type": "module",
25
9
  "publishConfig": {
26
10
  "access": "public"
@@ -43,7 +27,7 @@
43
27
  "dev:preview": "nuxi preview playground",
44
28
  "prepack": "nuxi prepare && nuxt-module-build build && cp package.json LICENSE README.md dist/",
45
29
  "release:beta": "release-it --ci --npm.publish --preRelease=beta --increment=prerelease",
46
- "release:patch": "release-it patch --ci --npm.publish",
30
+ "release:patch": "release-it patch --ci --npm.publish --git.tag --github.release",
47
31
  "release:minor": "release-it minor --ci --npm.publish --git.tag --github.release",
48
32
  "release:major": "release-it major --ci --npm.publish --git.tag --github.release",
49
33
  "lint": "eslint . --no-fix",
@@ -54,24 +38,24 @@
54
38
  "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
55
39
  },
56
40
  "dependencies": {
57
- "@nuxt/kit": "^3.17.4",
58
- "vueless": "^1.0.2-beta.9"
41
+ "vueless": "^1.1.1-beta.31"
59
42
  },
60
43
  "devDependencies": {
61
- "@material-symbols/svg-500": "^0.31.4",
62
- "@nuxt/devtools": "^2.4.1",
63
- "@nuxt/eslint-config": "^1.4.1",
64
- "@nuxt/module-builder": "^1.0.1",
65
- "@nuxt/schema": "^3.17.4",
66
- "@nuxt/test-utils": "^3.19.1",
44
+ "@material-symbols/svg-500": "^0.34.1",
45
+ "@nuxt/devtools": "^2.6.2",
46
+ "@nuxt/eslint-config": "^1.8.0",
47
+ "@nuxt/kit": "^4.0.3",
48
+ "@nuxt/module-builder": "^1.0.2",
49
+ "@nuxt/schema": "^4.0.3",
50
+ "@nuxt/test-utils": "^3.19.2",
67
51
  "@types/node": "latest",
68
- "changelogen": "^0.5.5",
69
- "eslint": "^9.27.0",
70
- "nuxt": "^3.17.4",
71
- "release-it": "^19.0.2",
52
+ "changelogen": "^0.6.2",
53
+ "eslint": "^9.33.0",
54
+ "nuxt": "^4.0.3",
55
+ "release-it": "^19.0.4",
72
56
  "typescript": "latest",
73
- "vitest": "^3.1.4",
74
- "vue-tsc": "^2.2.10"
57
+ "vitest": "^3.2.4",
58
+ "vue-tsc": "^3.0.5"
75
59
  },
76
60
  "repository": {
77
61
  "type": "git",
@@ -79,5 +63,22 @@
79
63
  },
80
64
  "bugs": {
81
65
  "url": "https://github.com/vuelessjs/vueless-module-nuxt/issues"
82
- }
66
+ },
67
+ "keywords": [
68
+ "vueless",
69
+ "nuxt",
70
+ "nuxt.js",
71
+ "nuxt3",
72
+ "nuxt4",
73
+ "ui library",
74
+ "component library",
75
+ "nuxt framework",
76
+ "design system",
77
+ "tailwind",
78
+ "tailwindcss",
79
+ "unstyled",
80
+ "styleless",
81
+ "headlessui",
82
+ "ui"
83
+ ]
83
84
  }