@vueless/nuxt 0.0.9-beta.29 → 0.0.9-beta.30

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.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.13.0"
6
6
  },
7
- "version": "0.0.9-beta.29",
7
+ "version": "0.0.9-beta.30",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.1",
10
10
  "unbuild": "3.5.0"
package/dist/module.mjs CHANGED
@@ -3,8 +3,7 @@ import { cwd } from 'node:process';
3
3
  import fs from 'node:fs';
4
4
  import { defineNuxtModule, createResolver, hasNuxtModule, addPlugin, addComponent, addImportsDir } from '@nuxt/kit';
5
5
  import { TailwindCSS, Vueless } from 'vueless/plugin-vite.js';
6
- import { cacheMergedConfigs, getNuxtDirs } from 'vueless/utils/node/helper.js';
7
- import { createTailwindSafelist } from 'vueless/utils/node/tailwindSafelist.js';
6
+ import { cacheMergedConfigs } from 'vueless/utils/node/helper.js';
8
7
  import { NUXT_MODULE_ENV, VUELESS_PACKAGE_DIR, COMPONENTS, VUELESS_CONFIG_FILE_NAME } from 'vueless/constants.js';
9
8
 
10
9
  const module = defineNuxtModule({
@@ -55,11 +54,6 @@ const module = defineNuxtModule({
55
54
  });
56
55
  }
57
56
  await cacheMergedConfigs(VUELESS_PACKAGE_DIR);
58
- await createTailwindSafelist({
59
- targetFiles: getNuxtDirs(),
60
- srcDir: VUELESS_PACKAGE_DIR,
61
- env: NUXT_MODULE_ENV
62
- });
63
57
  addPlugin(resolve("./runtime/plugin"));
64
58
  for (const componentName in COMPONENTS) {
65
59
  addComponent({
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vueless/nuxt",
3
- "version": "0.0.9-beta.29",
3
+ "version": "0.0.9-beta.30",
4
4
  "license": "MIT",
5
5
  "description": "Nuxt Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
@@ -37,10 +37,11 @@
37
37
  "dist"
38
38
  ],
39
39
  "scripts": {
40
- "dev": "npm run dev:prepare && nuxi dev playground",
40
+ "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
41
+ "dev:clear": "nuxi cleanup && cd playground && rm -rf .nuxt .output node_modules/.cache",
42
+ "dev": "npm run dev:clear && npm run dev:prepare && nuxi dev playground",
41
43
  "dev:build": "nuxi build playground",
42
44
  "dev:preview": "nuxi preview playground",
43
- "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
44
45
  "prepack": "nuxt-module-build build && cp package.json LICENSE README.md dist/",
45
46
  "release:beta": "release-it --ci --npm.publish --preRelease=beta --increment=prerelease",
46
47
  "release:patch": "release-it patch --ci --npm.publish",
@@ -55,7 +56,7 @@
55
56
  },
56
57
  "dependencies": {
57
58
  "@nuxt/kit": "^3.17.4",
58
- "vueless": "^0.0.825-beta.178"
59
+ "vueless": "^0.0.825-beta.186"
59
60
  },
60
61
  "devDependencies": {
61
62
  "@material-symbols/svg-500": "^0.31.4",
@@ -15,6 +15,7 @@ import {
15
15
  import { ColorMode } from "vueless/types";
16
16
  import vClickOutside from "vueless/directives/clickOutside/vClickOutside";
17
17
  import vTooltip from "vueless/directives/tooltip/vTooltip";
18
+ import { vuelessConfig } from "vueless/utils/ui";
18
19
  import { useRuntimeConfig } from "#imports";
19
20
  import { defineNuxtPlugin } from "#app";
20
21
  function parseCookies(cookieHeader) {
@@ -59,7 +60,7 @@ export default defineNuxtPlugin((_nuxtApp) => {
59
60
  lg: cookies?.[`vl-${ROUNDING}-lg`]
60
61
  };
61
62
  const disabledOpacity = cookies?.[`vl-${DISABLED_OPACITY}`];
62
- const colorMode = cookies?.[COLOR_MODE_KEY];
63
+ const colorMode = cookies?.[COLOR_MODE_KEY] || vuelessConfig.colorMode || ColorMode.Light;
63
64
  const isCachedAutoMode = Boolean(Number(cookies?.[AUTO_MODE_KEY]));
64
65
  const themeRootVariables = setTheme({ primary, neutral, text, outline, rounding, disabledOpacity, colorMode }, isCachedAutoMode);
65
66
  const colorModeClass = colorMode === ColorMode.Dark ? DARK_MODE_CLASS : LIGHT_MODE_CLASS;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vueless/nuxt",
3
- "version": "0.0.9-beta.29",
3
+ "version": "0.0.9-beta.30",
4
4
  "license": "MIT",
5
5
  "description": "Nuxt Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
@@ -37,10 +37,11 @@
37
37
  "dist"
38
38
  ],
39
39
  "scripts": {
40
- "dev": "npm run dev:prepare && nuxi dev playground",
40
+ "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
41
+ "dev:clear": "nuxi cleanup && cd playground && rm -rf .nuxt .output node_modules/.cache",
42
+ "dev": "npm run dev:clear && npm run dev:prepare && nuxi dev playground",
41
43
  "dev:build": "nuxi build playground",
42
44
  "dev:preview": "nuxi preview playground",
43
- "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
44
45
  "prepack": "nuxt-module-build build && cp package.json LICENSE README.md dist/",
45
46
  "release:beta": "release-it --ci --npm.publish --preRelease=beta --increment=prerelease",
46
47
  "release:patch": "release-it patch --ci --npm.publish",
@@ -55,7 +56,7 @@
55
56
  },
56
57
  "dependencies": {
57
58
  "@nuxt/kit": "^3.17.4",
58
- "vueless": "^0.0.825-beta.178"
59
+ "vueless": "^0.0.825-beta.186"
59
60
  },
60
61
  "devDependencies": {
61
62
  "@material-symbols/svg-500": "^0.31.4",