beca-ui 2.0.20-beta.34 → 2.0.20-beta.35
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/beca-ui.js
CHANGED
|
@@ -89040,7 +89040,7 @@ const BS = 10, MGe = (e, t) => {
|
|
|
89040
89040
|
if (Fe.mode) {
|
|
89041
89041
|
const Xe = Fe.mode === "Dark";
|
|
89042
89042
|
Y(Xe), M && M(Fe.mode), document.body.classList.add(Xe ? "dark-theme" : "light-theme");
|
|
89043
|
-
} else {
|
|
89043
|
+
} else if (Fe.getApi) {
|
|
89044
89044
|
const Xe = await qi.get(Fe.getApi, {
|
|
89045
89045
|
headers: {
|
|
89046
89046
|
"Content-Type": "application/json"
|
|
@@ -89053,7 +89053,7 @@ const BS = 10, MGe = (e, t) => {
|
|
|
89053
89053
|
console.log("getTheme", Xe);
|
|
89054
89054
|
}
|
|
89055
89055
|
}, ue = async (Fe) => {
|
|
89056
|
-
O && qi.put(
|
|
89056
|
+
O && O.updateApi && qi.put(
|
|
89057
89057
|
O.updateApi,
|
|
89058
89058
|
O.params ? JSON.stringify({
|
|
89059
89059
|
isDarkMode: Fe
|
|
@@ -35,10 +35,10 @@ export interface HeaderProps extends ApplicationsCardProps {
|
|
|
35
35
|
config?: MainLayoutConfig;
|
|
36
36
|
}
|
|
37
37
|
export type ThemeModel = {
|
|
38
|
-
getApi
|
|
39
|
-
updateApi
|
|
38
|
+
getApi?: string;
|
|
39
|
+
updateApi?: string;
|
|
40
40
|
params?: any;
|
|
41
|
-
mode
|
|
41
|
+
mode?: Theme;
|
|
42
42
|
};
|
|
43
43
|
export interface NotificationType {
|
|
44
44
|
title?: string;
|