@mx-cartographer/experiences 6.2.7 → 6.2.8-alpha.mm1
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/common/types/Client.d.ts +9 -1
- package/dist/index.es.js +19 -19
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
@@ -83,11 +83,19 @@ export interface ClientProfile {
|
|
83
83
|
export interface ClientStyleProfile {
|
84
84
|
primary_color?: string;
|
85
85
|
secondary_color?: string;
|
86
|
+
neutral_color?: string;
|
86
87
|
success_color?: string;
|
87
88
|
error_color?: string;
|
88
89
|
warning_color?: string;
|
89
90
|
info_color?: string;
|
90
|
-
|
91
|
+
primary_color_dark?: string;
|
92
|
+
secondary_color_dark?: string;
|
93
|
+
neutral_color_dark?: string;
|
94
|
+
success_color_dark?: string;
|
95
|
+
error_color_dark?: string;
|
96
|
+
warning_color_dark?: string;
|
97
|
+
info_color_dark?: string;
|
98
|
+
mode?: 'dark' | 'light' | '';
|
91
99
|
system_font?: string;
|
92
100
|
card_corner_radius?: number;
|
93
101
|
button_corner_radius?: number;
|
package/dist/index.es.js
CHANGED
@@ -975,36 +975,36 @@ const B = (e, n, i) => {
|
|
975
975
|
const a = mu(n).select(e);
|
976
976
|
return `${e}${i[a]}`;
|
977
977
|
}, L2 = (e, n) => {
|
978
|
-
const i = (
|
979
|
-
const
|
978
|
+
const i = e.palette.mode === "dark", a = (s, c) => {
|
979
|
+
const d = n?.[s];
|
980
980
|
return {
|
981
|
-
lighter:
|
982
|
-
light:
|
983
|
-
main:
|
984
|
-
dark:
|
985
|
-
darker:
|
981
|
+
lighter: d ? Zr(d, 0.5) : c.lighter,
|
982
|
+
light: d ? Zr(d, 0.25) : c.light,
|
983
|
+
main: d || c.main,
|
984
|
+
dark: d ? Qr(d, 0.25) : c.dark,
|
985
|
+
darker: d ? Qr(d, 0.5) : c.darker
|
986
986
|
};
|
987
|
-
}, a = {
|
988
|
-
primary: i("primary_color", e.palette.primary),
|
989
|
-
secondary: i("secondary_color", e.palette.secondary),
|
990
|
-
error: i("error_color", e.palette.error),
|
991
|
-
warning: i("warning_color", e.palette.warning),
|
992
|
-
info: i("info_color", e.palette.info),
|
993
|
-
success: i("success_color", e.palette.success)
|
994
987
|
}, r = {
|
988
|
+
primary: a(i ? "primary_color_dark" : "primary_color", e.palette.primary),
|
989
|
+
secondary: a(i ? "neutral_color_dark" : "neutral_color", e.palette.secondary),
|
990
|
+
error: a(i ? "error_color_dark" : "error_color", e.palette.error),
|
991
|
+
warning: a(i ? "warning_color_dark" : "warning_color", e.palette.warning),
|
992
|
+
info: a(i ? "info_color_dark" : "info_color", e.palette.info),
|
993
|
+
success: a(i ? "success_color_dark" : "success_color", e.palette.success)
|
994
|
+
}, o = {
|
995
995
|
MuiTabs: {
|
996
996
|
styleOverrides: {
|
997
997
|
indicator: {
|
998
|
-
backgroundColor:
|
998
|
+
backgroundColor: r.primary.light
|
999
999
|
}
|
1000
1000
|
}
|
1001
1001
|
},
|
1002
1002
|
MuiPickersCalendarHeader: {
|
1003
1003
|
styleOverrides: {
|
1004
1004
|
switchViewButton: {
|
1005
|
-
color:
|
1005
|
+
color: r.primary.lighter,
|
1006
1006
|
"&:hover": {
|
1007
|
-
backgroundColor: wl(
|
1007
|
+
backgroundColor: wl(r.primary.light, 0.1)
|
1008
1008
|
}
|
1009
1009
|
}
|
1010
1010
|
}
|
@@ -1032,8 +1032,8 @@ const B = (e, n, i) => {
|
|
1032
1032
|
typography: {
|
1033
1033
|
fontFamily: n?.system_font ?? e.typography.fontFamily
|
1034
1034
|
},
|
1035
|
-
palette:
|
1036
|
-
components:
|
1035
|
+
palette: r,
|
1036
|
+
components: o
|
1037
1037
|
};
|
1038
1038
|
};
|
1039
1039
|
class pu {
|