@vueless/nuxt 1.0.1-beta.12 → 1.0.1-beta.14
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/README.md +1 -1
- package/dist/README.md +1 -1
- package/dist/module.json +1 -1
- package/dist/package.json +8 -3
- package/dist/runtime/plugin.js +1 -4
- package/package.json +8 -3
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ Vueless is simple enough for everyday use and powerful enough for advanced scena
|
|
|
39
39
|
- 🔩️ Add or hide props to components
|
|
40
40
|
- 🧿 `npm` package ships full source without TypeScript transpilation for better DX.
|
|
41
41
|
|
|
42
|
-
## Quick Start
|
|
42
|
+
## Quick Start
|
|
43
43
|
|
|
44
44
|
1. Install Vueless Nuxt module.
|
|
45
45
|
|
package/dist/README.md
CHANGED
|
@@ -39,7 +39,7 @@ Vueless is simple enough for everyday use and powerful enough for advanced scena
|
|
|
39
39
|
- 🔩️ Add or hide props to components
|
|
40
40
|
- 🧿 `npm` package ships full source without TypeScript transpilation for better DX.
|
|
41
41
|
|
|
42
|
-
## Quick Start
|
|
42
|
+
## Quick Start
|
|
43
43
|
|
|
44
44
|
1. Install Vueless Nuxt module.
|
|
45
45
|
|
package/dist/module.json
CHANGED
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vueless/nuxt",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.14",
|
|
4
4
|
"description": "Nuxt Styleless UI Component Library, powered by Tailwind CSS.",
|
|
5
5
|
"author": "Johnny Grid <hello@vueless.com> (https://vueless.com)",
|
|
6
6
|
"homepage": "https://vueless.com",
|
|
@@ -23,10 +23,14 @@
|
|
|
23
23
|
"lint:fix": "eslint . --fix",
|
|
24
24
|
"lint:ci": "eslint . --no-fix --max-warnings=0",
|
|
25
25
|
"test": "vitest run",
|
|
26
|
-
"test:watch": "vitest watch"
|
|
26
|
+
"test:watch": "vitest watch",
|
|
27
|
+
"sb:dev": "storybook dev -p 6006 --no-open",
|
|
28
|
+
"sb:dev:docs": "storybook dev -p 6006 --docs --no-open",
|
|
29
|
+
"sb:build": "storybook build --docs",
|
|
30
|
+
"sb:preview": "vite preview --host --outDir=storybook-static"
|
|
27
31
|
},
|
|
28
32
|
"dependencies": {
|
|
29
|
-
"vueless": "^1.
|
|
33
|
+
"vueless": "^1.2.2"
|
|
30
34
|
},
|
|
31
35
|
"devDependencies": {
|
|
32
36
|
"@material-symbols/svg-500": "^0.34.1",
|
|
@@ -37,6 +41,7 @@
|
|
|
37
41
|
"@nuxt/schema": "^4.0.3",
|
|
38
42
|
"@nuxt/test-utils": "^3.19.2",
|
|
39
43
|
"@types/node": "latest",
|
|
44
|
+
"@vueless/storybook": "^1.2.0",
|
|
40
45
|
"changelogen": "^0.6.2",
|
|
41
46
|
"eslint": "^9.33.0",
|
|
42
47
|
"nuxt": "^4.0.3",
|
package/dist/runtime/plugin.js
CHANGED
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
ROUNDING,
|
|
7
7
|
PRIMARY_COLOR,
|
|
8
8
|
NEUTRAL_COLOR,
|
|
9
|
-
AUTO_MODE_KEY,
|
|
10
9
|
COLOR_MODE_KEY,
|
|
11
10
|
DARK_MODE_CLASS,
|
|
12
11
|
LIGHT_MODE_CLASS,
|
|
@@ -70,9 +69,7 @@ export default defineNuxtPlugin((_nuxtApp) => {
|
|
|
70
69
|
const disabledOpacityValue = Number(cookies?.[`vl-${DISABLED_OPACITY}`]);
|
|
71
70
|
const disabledOpacity = !Number.isNaN(disabledOpacityValue) ? disabledOpacityValue : void 0;
|
|
72
71
|
const colorMode = cookies?.[COLOR_MODE_KEY] || vuelessConfig.colorMode || ColorMode.Light;
|
|
73
|
-
const
|
|
74
|
-
const isCachedAutoMode = Boolean(!Number.isNaN(autoModeValue) ? autoModeValue : void 0);
|
|
75
|
-
const themeRootVariables = setTheme({ primary, neutral, text, outline, rounding, disabledOpacity, colorMode }, isCachedAutoMode);
|
|
72
|
+
const themeRootVariables = setTheme({ primary, neutral, text, outline, rounding, disabledOpacity, colorMode });
|
|
76
73
|
const colorModeClass = colorMode === ColorMode.Dark ? DARK_MODE_CLASS : LIGHT_MODE_CLASS;
|
|
77
74
|
_nuxtApp.ssrContext?.head.push({
|
|
78
75
|
style: [{ innerHTML: themeRootVariables }],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vueless/nuxt",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.14",
|
|
4
4
|
"description": "Nuxt Styleless UI Component Library, powered by Tailwind CSS.",
|
|
5
5
|
"author": "Johnny Grid <hello@vueless.com> (https://vueless.com)",
|
|
6
6
|
"homepage": "https://vueless.com",
|
|
@@ -23,10 +23,14 @@
|
|
|
23
23
|
"lint:fix": "eslint . --fix",
|
|
24
24
|
"lint:ci": "eslint . --no-fix --max-warnings=0",
|
|
25
25
|
"test": "vitest run",
|
|
26
|
-
"test:watch": "vitest watch"
|
|
26
|
+
"test:watch": "vitest watch",
|
|
27
|
+
"sb:dev": "storybook dev -p 6006 --no-open",
|
|
28
|
+
"sb:dev:docs": "storybook dev -p 6006 --docs --no-open",
|
|
29
|
+
"sb:build": "storybook build --docs",
|
|
30
|
+
"sb:preview": "vite preview --host --outDir=storybook-static"
|
|
27
31
|
},
|
|
28
32
|
"dependencies": {
|
|
29
|
-
"vueless": "^1.
|
|
33
|
+
"vueless": "^1.2.2"
|
|
30
34
|
},
|
|
31
35
|
"devDependencies": {
|
|
32
36
|
"@material-symbols/svg-500": "^0.34.1",
|
|
@@ -37,6 +41,7 @@
|
|
|
37
41
|
"@nuxt/schema": "^4.0.3",
|
|
38
42
|
"@nuxt/test-utils": "^3.19.2",
|
|
39
43
|
"@types/node": "latest",
|
|
44
|
+
"@vueless/storybook": "^1.2.0",
|
|
40
45
|
"changelogen": "^0.6.2",
|
|
41
46
|
"eslint": "^9.33.0",
|
|
42
47
|
"nuxt": "^4.0.3",
|