mamba-layout 0.6.0 → 0.7.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/index.js +28 -24
- package/dist/layout/hooks/index.js +16 -12
- package/dist/layout/hooks/useTheme.d.ts +4 -0
- package/dist/layout/hooks/useTheme.js +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,31 +1,35 @@
|
|
|
1
1
|
import { default as o } from "./layout/BaseLayout.vue.js";
|
|
2
2
|
import { useApp as a } from "./layout/hooks/useApp.js";
|
|
3
|
-
import { injectLayoutContext as
|
|
4
|
-
import {
|
|
5
|
-
import { provideSetting as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { messages as
|
|
3
|
+
import { injectLayoutContext as s, provideLayoutContext as f, useStateHook as p } from "./layout/hooks/useState.js";
|
|
4
|
+
import { applyThemeClass as x, getBrowserPreferredTheme as l, initTheme as n, normalizeTheme as i, resolveTheme as d, setTheme as T, syncThemeFromSetting as h, toggleTheme as g, useTheme as y } from "./layout/hooks/useTheme.js";
|
|
5
|
+
import { provideSetting as c, useSetting as v } from "./layout/hooks/useSetting.js";
|
|
6
|
+
import { default as B } from "./components/UserAvatar/src/UserAvatar.vue.js";
|
|
7
|
+
import { default as z } from "./layout/components/LayoutBreadcrumb.vue.js";
|
|
8
|
+
import { default as U } from "./layout/components/TimezoneSelect.vue.js";
|
|
9
|
+
import { default as j } from "./layout/components/UserInfo.vue.js";
|
|
10
|
+
import { default as w } from "./locales/index.js";
|
|
11
|
+
import { messages as H } from "./locales/messages.js";
|
|
12
12
|
export {
|
|
13
13
|
o as BaseLayout,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
s as
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
14
|
+
z as LayoutBreadcrumb,
|
|
15
|
+
U as TimezoneSelect,
|
|
16
|
+
B as UserAvatar,
|
|
17
|
+
j as UserInfo,
|
|
18
|
+
x as applyThemeClass,
|
|
19
|
+
l as getBrowserPreferredTheme,
|
|
20
|
+
w as i18n,
|
|
21
|
+
n as initTheme,
|
|
22
|
+
s as injectLayoutContext,
|
|
23
|
+
H as messages,
|
|
24
|
+
i as normalizeTheme,
|
|
25
|
+
f as provideLayoutContext,
|
|
26
|
+
c as provideSetting,
|
|
27
|
+
d as resolveTheme,
|
|
28
|
+
T as setTheme,
|
|
29
|
+
h as syncThemeFromSetting,
|
|
30
|
+
g as toggleTheme,
|
|
27
31
|
a as useApp,
|
|
28
|
-
|
|
32
|
+
v as useSetting,
|
|
29
33
|
p as useStateHook,
|
|
30
|
-
|
|
34
|
+
y as useTheme
|
|
31
35
|
};
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import { useApp as o } from "./useApp.js";
|
|
2
|
-
import { provideSetting as m, useSetting as
|
|
3
|
-
import { injectLayoutContext as
|
|
4
|
-
import {
|
|
2
|
+
import { provideSetting as m, useSetting as p } from "./useSetting.js";
|
|
3
|
+
import { injectLayoutContext as h, provideLayoutContext as i, useStateHook as n } from "./useState.js";
|
|
4
|
+
import { applyThemeClass as a, getBrowserPreferredTheme as g, initTheme as u, normalizeTheme as x, resolveTheme as f, setTheme as l, syncThemeFromSetting as y, toggleTheme as S, useTheme as d } from "./useTheme.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
a as applyThemeClass,
|
|
7
|
+
g as getBrowserPreferredTheme,
|
|
8
|
+
u as initTheme,
|
|
9
|
+
h as injectLayoutContext,
|
|
10
|
+
x as normalizeTheme,
|
|
11
|
+
i as provideLayoutContext,
|
|
9
12
|
m as provideSetting,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
f as resolveTheme,
|
|
14
|
+
l as setTheme,
|
|
15
|
+
y as syncThemeFromSetting,
|
|
16
|
+
S as toggleTheme,
|
|
13
17
|
o as useApp,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
18
|
+
p as useSetting,
|
|
19
|
+
n as useStateHook,
|
|
20
|
+
d as useTheme
|
|
17
21
|
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export type ThemeMode = "light" | "dark";
|
|
2
|
+
export declare const normalizeTheme: (value: unknown) => ThemeMode | null;
|
|
3
|
+
export declare const getBrowserPreferredTheme: () => ThemeMode;
|
|
4
|
+
export declare const resolveTheme: (fallback?: ThemeMode) => ThemeMode;
|
|
5
|
+
export declare const applyThemeClass: (value: ThemeMode) => void;
|
|
2
6
|
export declare function initTheme(fallback?: ThemeMode): ThemeMode;
|
|
3
7
|
export declare function setTheme(value: ThemeMode, options?: {
|
|
4
8
|
persist?: boolean;
|