@loafacto/ui 0.1.3 → 0.3.0
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/components/AppShell.vue.d.ts +8 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +398 -230
- package/dist/index.js.map +1 -1
- package/dist/loafacto-ui.css +150 -72
- package/dist/stores/confirm.d.ts +1 -1
- package/dist/stores/toast.d.ts +1 -1
- package/dist/theme/applyTheme.d.ts +14 -2
- package/dist/theme/useTheme.d.ts +26 -0
- package/package.json +1 -1
|
@@ -4,6 +4,13 @@ type __VLS_Props = {
|
|
|
4
4
|
currentServiceId?: string;
|
|
5
5
|
/** 다른 사이트로 나가는 링크. 상단바에 아이콘으로 놓이고 새 탭에서 열린다. */
|
|
6
6
|
shortcuts?: ShortcutLink[];
|
|
7
|
+
/**
|
|
8
|
+
* 상단바에 테마 전환 버튼을 놓는다.
|
|
9
|
+
* 서비스가 자체 토글을 이미 갖고 있다면 false 로 꺼서 중복을 피한다 —
|
|
10
|
+
* 다만 두 토글이 서로 다른 저장소를 쓰면 설정이 어긋나므로, 끄기보다는
|
|
11
|
+
* 자체 토글을 걷어내고 이쪽으로 통일하는 편이 낫다.
|
|
12
|
+
*/
|
|
13
|
+
themeToggle?: boolean;
|
|
7
14
|
brandName?: string;
|
|
8
15
|
brandHref?: string;
|
|
9
16
|
logoUrl?: string;
|
|
@@ -40,6 +47,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
40
47
|
}>, {
|
|
41
48
|
services: ServiceDescriptor[];
|
|
42
49
|
shortcuts: ShortcutLink[];
|
|
50
|
+
themeToggle: boolean;
|
|
43
51
|
brandName: string;
|
|
44
52
|
brandHref: string;
|
|
45
53
|
user: ShellUser | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export { useLoadingStore } from './stores/loading';
|
|
|
23
23
|
export { useConfirmStore, type ConfirmOptions } from './stores/confirm';
|
|
24
24
|
export { useToast } from './composables/useToast';
|
|
25
25
|
export { useConfirm } from './composables/useConfirm';
|
|
26
|
-
export { applyTheme, DEFAULT_THEME, type ThemeConfig } from './theme/applyTheme';
|
|
26
|
+
export { applyTheme, DARK_THEME, LIGHT_THEME, DEFAULT_THEME, type ThemeConfig, } from './theme/applyTheme';
|
|
27
|
+
export { initTheme, useTheme, type ThemeMode } from './theme/useTheme';
|
|
27
28
|
export { deriveSemanticPalette, applySemanticPalette, isLightBackground, colorToRgb, hexToRgb, luminance, contrastRatio, type SemanticPalette, } from './theme/themeColors';
|
|
28
29
|
export type { ServiceDescriptor, ShellUser, ShortcutLink } from './types';
|