nuxt-hs-ui 4.0.1 → 4.0.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.
- package/README.md +2 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +4 -4
- package/dist/runtime/utils/theme.d.ts +2 -2
- package/dist/runtime/utils/theme.js +2 -2
- package/package.json +101 -101
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# nuxt-hs-ui
|
|
1
|
+
# nuxt-hs-ui
|
|
2
2
|
|
|
3
3
|
A Nuxt 4 UI component library for business management applications, built on top of [@nuxt/ui](https://ui.nuxt.com/) and Tailwind CSS v4.
|
|
4
4
|
|
|
@@ -192,7 +192,7 @@ All composables are auto-imported.
|
|
|
192
192
|
|
|
193
193
|
## Utils
|
|
194
194
|
|
|
195
|
-
Available via `nuxt-hs-ui
|
|
195
|
+
Available via `nuxt-hs-ui/utils/*` named exports.
|
|
196
196
|
|
|
197
197
|
| Module | Description |
|
|
198
198
|
|---|---|
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -8,7 +8,7 @@ const AddTheme = (theme) => {
|
|
|
8
8
|
return ret;
|
|
9
9
|
}, {});
|
|
10
10
|
addTemplate({
|
|
11
|
-
filename: "nuxt-hs-ui
|
|
11
|
+
filename: "nuxt-hs-ui/runtime/theme.mjs",
|
|
12
12
|
getContents: () => `
|
|
13
13
|
export const Theme = ${JSON.stringify(Theme, null, 2)};
|
|
14
14
|
const themeColor = ${themeColor};
|
|
@@ -18,16 +18,16 @@ export function GetColorCode(key){
|
|
|
18
18
|
`
|
|
19
19
|
});
|
|
20
20
|
addTemplate({
|
|
21
|
-
filename: "nuxt-hs-ui
|
|
21
|
+
filename: "nuxt-hs-ui/types/theme.d.ts",
|
|
22
22
|
getContents: () => {
|
|
23
23
|
const union = themekey.length ? themekey.map((k) => `'${k}'`).join(" | ") : "never";
|
|
24
24
|
return `
|
|
25
|
-
declare module '#build/nuxt-hs-ui
|
|
25
|
+
declare module '#build/nuxt-hs-ui/runtime/theme' {
|
|
26
26
|
export type ThemeColor = ${union};
|
|
27
27
|
export const Theme: Record<ThemeColor, ThemeColor>;
|
|
28
28
|
export function GetColorCode(key: ThemeColor): string;
|
|
29
29
|
}
|
|
30
|
-
declare module '#build/nuxt-hs-ui
|
|
30
|
+
declare module '#build/nuxt-hs-ui/runtime/theme-internal' {
|
|
31
31
|
export function GetColorCode(key: string): string;
|
|
32
32
|
}
|
|
33
33
|
export type ThemeColor = ${union};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ThemeColor } from '#build/nuxt-hs-ui
|
|
1
|
+
import type { ThemeColor } from '#build/nuxt-hs-ui/types/theme';
|
|
2
2
|
export declare const GetColorCode: (theme: ThemeColor) => string;
|
|
3
|
-
export type { ThemeColor } from '#build/nuxt-hs-ui
|
|
3
|
+
export type { ThemeColor } from '#build/nuxt-hs-ui/types/theme';
|
|
4
4
|
export declare const Theme: Record<ThemeColor, ThemeColor>;
|
|
5
5
|
export declare function GetTextColor(bgHex: string, over?: string): '#000000' | '#ffffff';
|
|
6
6
|
export declare function pickTextColor(bgHex: string, over?: string): '#000000' | '#ffffff';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GetColorCode as _GetColorCode } from "#build/nuxt-hs-ui
|
|
1
|
+
import { GetColorCode as _GetColorCode } from "#build/nuxt-hs-ui/runtime/theme.mjs";
|
|
2
2
|
export const GetColorCode = (theme2) => _GetColorCode(theme2);
|
|
3
|
-
import { Theme as theme } from "#build/nuxt-hs-ui
|
|
3
|
+
import { Theme as theme } from "#build/nuxt-hs-ui/runtime/theme.mjs";
|
|
4
4
|
export const Theme = theme;
|
|
5
5
|
export function GetTextColor(bgHex, over = "#ffffff") {
|
|
6
6
|
try {
|
package/package.json
CHANGED
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "nuxt-hs-ui",
|
|
3
|
-
"version": "4.0.
|
|
4
|
-
"description": "This repository is dedicated to the ongoing migration of **nuxt-hs-ui** to **Nuxt 4**",
|
|
5
|
-
"repository": "https://github.com/hare-systems-ryo/nuxt-hs-ui
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"author": {
|
|
8
|
-
"name": "Ryo@Hare-Systems",
|
|
9
|
-
"email": "admin@hare-systems.net"
|
|
10
|
-
},
|
|
11
|
-
"type": "module",
|
|
12
|
-
"exports": {
|
|
13
|
-
".": {
|
|
14
|
-
"types": "./dist/types.d.mts",
|
|
15
|
-
"import": "./dist/module.mjs"
|
|
16
|
-
},
|
|
17
|
-
"./utils/tailwindcss": {
|
|
18
|
-
"types": "./dist/runtime/assets/tailwind.config.d.ts",
|
|
19
|
-
"import": "./dist/runtime/assets/tailwind.config.js",
|
|
20
|
-
"require": "./dist/runtime/assets/tailwind.config.js"
|
|
21
|
-
},
|
|
22
|
-
"./utils/*": {
|
|
23
|
-
"types": "./dist/runtime/utils/*.d.ts",
|
|
24
|
-
"import": "./dist/runtime/utils/*.js",
|
|
25
|
-
"default": "./dist/runtime/utils/*.js"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"main": "./dist/module.mjs",
|
|
29
|
-
"typesVersions": {
|
|
30
|
-
"*": {
|
|
31
|
-
".": [
|
|
32
|
-
"./dist/types.d.mts"
|
|
33
|
-
]
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"files": [
|
|
37
|
-
"dist"
|
|
38
|
-
],
|
|
39
|
-
"volta": {
|
|
40
|
-
"node": "22.22.2",
|
|
41
|
-
"npm": "10.9.7"
|
|
42
|
-
},
|
|
43
|
-
"scripts": {
|
|
44
|
-
"prepack": "nuxt-module-build build --failOnWarn=false",
|
|
45
|
-
"dev": "npm run dev:prepare && nuxi dev playground",
|
|
46
|
-
"dev:build": "nuxi build playground",
|
|
47
|
-
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
48
|
-
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
|
|
49
|
-
"release-nologen": "npm run lint && npm run test && npm run prepack && npm publish && git push --follow-tags",
|
|
50
|
-
"release-beta": "npm run lint && npm run test && npm run prepack && npm publish --tag beta && git push --follow-tags",
|
|
51
|
-
"lint": "eslint .",
|
|
52
|
-
"test": "vitest run",
|
|
53
|
-
"test:watch": "vitest watch",
|
|
54
|
-
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
|
|
55
|
-
},
|
|
56
|
-
"peerDependencies": {
|
|
57
|
-
"@vueuse/nuxt": "^14.3.0",
|
|
58
|
-
"sass-embedded": "^1.89.2"
|
|
59
|
-
},
|
|
60
|
-
"dependencies": {
|
|
61
|
-
"@nuxt/kit": "^4.4.8",
|
|
62
|
-
"@pinia/nuxt": "^0.11.3",
|
|
63
|
-
"@vueuse/core": "^14.3.0",
|
|
64
|
-
"@vueuse/integrations": "^14.3.0",
|
|
65
|
-
"@vueuse/nuxt": "^14.3.0",
|
|
66
|
-
"bignumber.js": "^9.3.1",
|
|
67
|
-
"body-scroll-lock": "^4.0.0-beta.0",
|
|
68
|
-
"dayjs": "^1.11.21",
|
|
69
|
-
"flatpickr": "^4.6.13",
|
|
70
|
-
"focus-trap": "^7.6.6",
|
|
71
|
-
"pinia": "^3.0.4",
|
|
72
|
-
"pinia-plugin-persistedstate": "^4.7.1",
|
|
73
|
-
"tabulator-tables": "^6.4.0",
|
|
74
|
-
"tailwind-merge": "^3.4.0",
|
|
75
|
-
"tailwind-variants": "^3.2.2",
|
|
76
|
-
"tailwindcss": "^4.1.18",
|
|
77
|
-
"vue-select": "^4.0.0-beta.6"
|
|
78
|
-
},
|
|
79
|
-
"devDependencies": {
|
|
80
|
-
"@nuxt/devtools": "^3.2.4",
|
|
81
|
-
"@nuxt/eslint": "^1.16.0",
|
|
82
|
-
"@nuxt/eslint-config": "^1.16.0",
|
|
83
|
-
"@nuxt/image": "^2.0.0",
|
|
84
|
-
"@nuxt/module-builder": "^1.0.2",
|
|
85
|
-
"@nuxt/schema": "^4.4.8",
|
|
86
|
-
"@nuxt/test-utils": "^3.21.0",
|
|
87
|
-
"@nuxt/ui": "^4.8.2",
|
|
88
|
-
"@types/body-scroll-lock": "^3.1.2",
|
|
89
|
-
"@types/node": "latest",
|
|
90
|
-
"@types/tabulator-tables": "^6.3.4",
|
|
91
|
-
"@types/vue-select": "^3.16.8",
|
|
92
|
-
"changelogen": "^0.6.2",
|
|
93
|
-
"eslint": "^10.5.0",
|
|
94
|
-
"npm": "^11.17.0",
|
|
95
|
-
"nuxt": "^4.4.8",
|
|
96
|
-
"sass": "^1.97.0",
|
|
97
|
-
"typescript": "~5.9.3",
|
|
98
|
-
"vitest": "^3.2.4",
|
|
99
|
-
"vue-tsc": "^3.1.8"
|
|
100
|
-
}
|
|
101
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "nuxt-hs-ui",
|
|
3
|
+
"version": "4.0.3",
|
|
4
|
+
"description": "This repository is dedicated to the ongoing migration of **nuxt-hs-ui** to **Nuxt 4**",
|
|
5
|
+
"repository": "https://github.com/hare-systems-ryo/nuxt-hs-ui",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Ryo@Hare-Systems",
|
|
9
|
+
"email": "admin@hare-systems.net"
|
|
10
|
+
},
|
|
11
|
+
"type": "module",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/types.d.mts",
|
|
15
|
+
"import": "./dist/module.mjs"
|
|
16
|
+
},
|
|
17
|
+
"./utils/tailwindcss": {
|
|
18
|
+
"types": "./dist/runtime/assets/tailwind.config.d.ts",
|
|
19
|
+
"import": "./dist/runtime/assets/tailwind.config.js",
|
|
20
|
+
"require": "./dist/runtime/assets/tailwind.config.js"
|
|
21
|
+
},
|
|
22
|
+
"./utils/*": {
|
|
23
|
+
"types": "./dist/runtime/utils/*.d.ts",
|
|
24
|
+
"import": "./dist/runtime/utils/*.js",
|
|
25
|
+
"default": "./dist/runtime/utils/*.js"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"main": "./dist/module.mjs",
|
|
29
|
+
"typesVersions": {
|
|
30
|
+
"*": {
|
|
31
|
+
".": [
|
|
32
|
+
"./dist/types.d.mts"
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"dist"
|
|
38
|
+
],
|
|
39
|
+
"volta": {
|
|
40
|
+
"node": "22.22.2",
|
|
41
|
+
"npm": "10.9.7"
|
|
42
|
+
},
|
|
43
|
+
"scripts": {
|
|
44
|
+
"prepack": "nuxt-module-build build --failOnWarn=false",
|
|
45
|
+
"dev": "npm run dev:prepare && nuxi dev playground",
|
|
46
|
+
"dev:build": "nuxi build playground",
|
|
47
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
48
|
+
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
|
|
49
|
+
"release-nologen": "npm run lint && npm run test && npm run prepack && npm publish && git push --follow-tags",
|
|
50
|
+
"release-beta": "npm run lint && npm run test && npm run prepack && npm publish --tag beta && git push --follow-tags",
|
|
51
|
+
"lint": "eslint .",
|
|
52
|
+
"test": "vitest run",
|
|
53
|
+
"test:watch": "vitest watch",
|
|
54
|
+
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
|
|
55
|
+
},
|
|
56
|
+
"peerDependencies": {
|
|
57
|
+
"@vueuse/nuxt": "^14.3.0",
|
|
58
|
+
"sass-embedded": "^1.89.2"
|
|
59
|
+
},
|
|
60
|
+
"dependencies": {
|
|
61
|
+
"@nuxt/kit": "^4.4.8",
|
|
62
|
+
"@pinia/nuxt": "^0.11.3",
|
|
63
|
+
"@vueuse/core": "^14.3.0",
|
|
64
|
+
"@vueuse/integrations": "^14.3.0",
|
|
65
|
+
"@vueuse/nuxt": "^14.3.0",
|
|
66
|
+
"bignumber.js": "^9.3.1",
|
|
67
|
+
"body-scroll-lock": "^4.0.0-beta.0",
|
|
68
|
+
"dayjs": "^1.11.21",
|
|
69
|
+
"flatpickr": "^4.6.13",
|
|
70
|
+
"focus-trap": "^7.6.6",
|
|
71
|
+
"pinia": "^3.0.4",
|
|
72
|
+
"pinia-plugin-persistedstate": "^4.7.1",
|
|
73
|
+
"tabulator-tables": "^6.4.0",
|
|
74
|
+
"tailwind-merge": "^3.4.0",
|
|
75
|
+
"tailwind-variants": "^3.2.2",
|
|
76
|
+
"tailwindcss": "^4.1.18",
|
|
77
|
+
"vue-select": "^4.0.0-beta.6"
|
|
78
|
+
},
|
|
79
|
+
"devDependencies": {
|
|
80
|
+
"@nuxt/devtools": "^3.2.4",
|
|
81
|
+
"@nuxt/eslint": "^1.16.0",
|
|
82
|
+
"@nuxt/eslint-config": "^1.16.0",
|
|
83
|
+
"@nuxt/image": "^2.0.0",
|
|
84
|
+
"@nuxt/module-builder": "^1.0.2",
|
|
85
|
+
"@nuxt/schema": "^4.4.8",
|
|
86
|
+
"@nuxt/test-utils": "^3.21.0",
|
|
87
|
+
"@nuxt/ui": "^4.8.2",
|
|
88
|
+
"@types/body-scroll-lock": "^3.1.2",
|
|
89
|
+
"@types/node": "latest",
|
|
90
|
+
"@types/tabulator-tables": "^6.3.4",
|
|
91
|
+
"@types/vue-select": "^3.16.8",
|
|
92
|
+
"changelogen": "^0.6.2",
|
|
93
|
+
"eslint": "^10.5.0",
|
|
94
|
+
"npm": "^11.17.0",
|
|
95
|
+
"nuxt": "^4.4.8",
|
|
96
|
+
"sass": "^1.97.0",
|
|
97
|
+
"typescript": "~5.9.3",
|
|
98
|
+
"vitest": "^3.2.4",
|
|
99
|
+
"vue-tsc": "^3.1.8"
|
|
100
|
+
}
|
|
101
|
+
}
|