nuxt-hs-ui 4.0.2 → 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 +1 -1
- 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 +3 -3
package/README.md
CHANGED
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,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-hs-ui",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
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
|
|
5
|
+
"repository": "https://github.com/hare-systems-ryo/nuxt-hs-ui",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "Ryo@Hare-Systems",
|
|
@@ -98,4 +98,4 @@
|
|
|
98
98
|
"vitest": "^3.2.4",
|
|
99
99
|
"vue-tsc": "^3.1.8"
|
|
100
100
|
}
|
|
101
|
-
}
|
|
101
|
+
}
|