@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.
@@ -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
- mode?: 'dark' | 'light' | 'user';
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 = (o, s) => {
979
- const c = n?.[o];
978
+ const i = e.palette.mode === "dark", a = (s, c) => {
979
+ const d = n?.[s];
980
980
  return {
981
- lighter: c ? Zr(c, 0.5) : s.lighter,
982
- light: c ? Zr(c, 0.25) : s.light,
983
- main: c || s.main,
984
- dark: c ? Qr(c, 0.25) : s.dark,
985
- darker: c ? Qr(c, 0.5) : s.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: a.primary.light
998
+ backgroundColor: r.primary.light
999
999
  }
1000
1000
  }
1001
1001
  },
1002
1002
  MuiPickersCalendarHeader: {
1003
1003
  styleOverrides: {
1004
1004
  switchViewButton: {
1005
- color: a.primary.lighter,
1005
+ color: r.primary.lighter,
1006
1006
  "&:hover": {
1007
- backgroundColor: wl(a.primary.light, 0.1)
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: a,
1036
- components: r
1035
+ palette: r,
1036
+ components: o
1037
1037
  };
1038
1038
  };
1039
1039
  class pu {