@mx-cartographer/experiences 9.0.6 → 9.0.7-alpha.al1

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/README.md CHANGED
@@ -41,9 +41,9 @@ The library is built using a modern React stack, leveraging industry-standard to
41
41
 
42
42
  ### Prerequisites
43
43
  - **Node.js**: v18.0.0 or higher
44
- - **Yarn**: 4.11.0 [^YARN_VER]
45
- - **React**: 18.3.1 [^REACT_VER]
46
- - **MobX**: 6.13.6 [^MOBX_VER]
44
+ - **Yarn**: 4.15.0 [^YARN_VER]
45
+ - **React**: 19.x [^REACT_VER]
46
+ - **MobX**: 6.15.0 [^MOBX_VER]
47
47
 
48
48
  ### Installation
49
49
 
@@ -219,10 +219,10 @@ For technical assistance or internal inquiries:
219
219
  [^2]: [src/common/context/WidgetContainerProvider.tsx:10](src/common/context/WidgetContainerProvider.tsx#L10)
220
220
  [^3]: [src/common/context/GlobalStoreProvider.tsx:10](src/common/context/GlobalStoreProvider.tsx#L10)
221
221
  [^4]: [src/common/hooks/useScreenSize.tsx:4](src/common/hooks/useScreenSize.tsx#L4)
222
- [^5]: [package.json:267](package.json#L267)
223
- [^6]: [package.json:160](package.json#L160)
224
- [^MUI_VER]: [package.json:188](package.json#L188)
225
- [^MXUI_VER]: [package.json:196](package.json#L196)
226
- [^MOBX_VER]: [package.json:202](package.json#L202)
227
- [^REACT_VER]: [package.json:206](package.json#L206)
228
- [^YARN_VER]: [package.json:284](package.json#L284)
222
+ [^5]: [package.json:187](package.json#L187)
223
+ [^6]: [package.json:229](package.json#L229)
224
+ [^MUI_VER]: [package.json:195](package.json#L195)
225
+ [^MXUI_VER]: [package.json:203](package.json#L203)
226
+ [^MOBX_VER]: [package.json:209](package.json#L209)
227
+ [^REACT_VER]: [package.json:213](package.json#L213)
228
+ [^YARN_VER]: [package.json:297](package.json#L297)
@@ -1,108 +1,108 @@
1
- import { l as Y } from "../UserStore-DzWku3t0.mjs";
2
- import { b as $, a as H } from "../Localization-DnoVyBNK.mjs";
3
- import { f as j, b as V, a as K, c as Z, g as J, d as X } from "../NumberFormatting--XMeeBfr.mjs";
4
- import { C as rr, a as er, b as or } from "../CurrencyDialog-DumQCTPO.mjs";
5
- import { C as ar } from "../CurrencyInput-DaGEQaLW.mjs";
6
- import { D as nr, S as ir } from "../Select-CSpkK5cR.mjs";
7
- import { D as lr, W as mr, u as dr } from "../WidgetContainer-D-LzIKFb.mjs";
8
- import { D as fr } from "../Dialog-Bvd2n8hz.mjs";
9
- import { D as yr } from "../Donut-SzzfZDHF.mjs";
10
- import { D as xr } from "../Drawer-BXqqBMxg.mjs";
11
- import { E as hr } from "../ErrorBoundary-CsdOcnJ9.mjs";
12
- import { I as Cr } from "../IconBacking-DgT8DCeh.mjs";
13
- import { I as vr } from "../InformationTooltip-4su8bn1e.mjs";
14
- import { L as br } from "../Loader-CxeBwuPG.mjs";
15
- import { M as Dr } from "../MicroWidgetContainer-B2NnKBgW.mjs";
16
- import { M as Ir } from "../MiniWidgetContainer-Bmv_WeUd.mjs";
17
- import { jsxs as g, jsx as y } from "react/jsx-runtime";
18
- import { css as C } from "@mxenabled/cssinjs";
19
- import { D as _, a as v } from "../SingleSegmentDonut-7Uy6VEld.mjs";
20
- import { S as Mr } from "../SingleSegmentDonut-7Uy6VEld.mjs";
21
- import { R as wr } from "../ResponsiveButton-CC9F_Ezk.mjs";
22
- import { S as Lr } from "../SelectionBox-B4xELRgp.mjs";
23
- import { S as Ur } from "../StatusBar-CPfSXe80.mjs";
24
- import { I as Br, P as Rr, S as qr, T as Yr } from "../TabContentContainer-B0eYJP5p.mjs";
25
- import { A as $r } from "../Analytics-WeZYytR0.mjs";
26
- import { C as Qr } from "../ConnectCard-Dwfgv24k.mjs";
27
- import { C as Vr } from "../ConnectDrawer-DytyIhaF.mjs";
28
- import { C as Zr } from "../CurrencyText-CCbE6MmF.mjs";
29
- import { E as Xr } from "../EmptyState-CJUDc3kD.mjs";
30
- import { E as re } from "../Error-Dtw6yxkf.mjs";
31
- import { G as oe } from "../GlobalAccountFilter-CYqzqmAd.mjs";
32
- import { G as ae, m as se, n as ne, W as ie, c as ue, i as le, o as me, p as de, l as ce, q as fe, r as pe, f as ye, s as ge, u as xe, e as Ee, a as he, k as Se, t as Ce, v as _e, w as ve, b as ke, x as be, y as Oe, z as De, h as Te, A as Ie, g as Ae, B as Me, C as Pe, D as we } from "../hooks-97sNJ_lf.mjs";
33
- import { L as Le } from "../ListItemAction-BqUCLj_w.mjs";
34
- import { L as Ue } from "../ListItemRow-kH1rn8Xu.mjs";
35
- import { L as Be } from "../ListItemWrapper-BHIbqx7E.mjs";
36
- import { S as qe } from "../SearchBox-Cpgu_gdO.mjs";
37
- import { S as Fe, T as $e } from "../Sizes-DISGrlUg.mjs";
38
- import { T as Qe, a as je } from "../ToggleListItem-Dl1lXNwj.mjs";
39
- import { a as Ke, u as Ze, b as Je } from "../Analytics-CkYXKvco.mjs";
40
- import { alpha as k, darken as x, lighten as E } from "@mui/material";
41
- import { u as ze } from "../useAccountDisplayName-BsiXA0qf.mjs";
42
- import { u as eo } from "../useInsightsEnabled-D5Sdm0TJ.mjs";
43
- import { useRef as b, useEffect as O } from "react";
44
- import { u as to } from "../useScreenSize-mWpmnh5w.mjs";
45
- import { u as so } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
46
- var i = /* @__PURE__ */ ((r) => (r[r.Unknown = 0] = "Unknown", r[r.EveryWeek = 1] = "EveryWeek", r[r.EveryOtherWeek = 2] = "EveryOtherWeek", r[r.EveryMonth = 3] = "EveryMonth", r[r.EveryOtherMonth = 4] = "EveryOtherMonth", r[r.EveryQuarter = 5] = "EveryQuarter", r[r.EveryOtherQuarter = 6] = "EveryOtherQuarter", r[r.EveryYear = 7] = "EveryYear", r))(i || {});
47
- const N = (r) => {
48
- const o = b(null);
49
- return O(() => {
50
- o.current = r;
51
- }, [r]), o.current;
52
- }, L = [
53
- { id: i.Unknown, copy: "frequency_unknown" },
54
- { id: i.EveryWeek, copy: "frequency_every_week" },
55
- { id: i.EveryOtherWeek, copy: "frequency_every_other_week" },
56
- { id: i.EveryMonth, copy: "frequency_every_month" },
57
- { id: i.EveryOtherMonth, copy: "frequency_every_other_month" },
58
- { id: i.EveryQuarter, copy: "frequency_every_quarter" },
59
- { id: i.EveryOtherQuarter, copy: "frequency_every_other_quarter" },
60
- { id: i.EveryYear, copy: "frequency_every_year" }
61
- ], W = {
1
+ import { l as U } from "../UserStore-DzWku3t0.mjs";
2
+ import { b as B, a as q } from "../Localization-DnoVyBNK.mjs";
3
+ import { f as P, b as Y, a as $, c as F, g as H, d as Q } from "../NumberFormatting--XMeeBfr.mjs";
4
+ import { C as j, a as K, b as Z } from "../CurrencyDialog-DumQCTPO.mjs";
5
+ import { C as J } from "../CurrencyInput-DaGEQaLW.mjs";
6
+ import { D as rr, S as or } from "../Select-CSpkK5cR.mjs";
7
+ import { D as tr, W as ar, u as sr } from "../WidgetContainer-D-LzIKFb.mjs";
8
+ import { D as ir } from "../Dialog-Bvd2n8hz.mjs";
9
+ import { D as dr } from "../Donut-SzzfZDHF.mjs";
10
+ import { D as cr } from "../Drawer-BXqqBMxg.mjs";
11
+ import { E as pr } from "../ErrorBoundary-CsdOcnJ9.mjs";
12
+ import { I as gr } from "../IconBacking-DgT8DCeh.mjs";
13
+ import { I as _r } from "../InformationTooltip-4su8bn1e.mjs";
14
+ import { L as hr } from "../Loader-CxeBwuPG.mjs";
15
+ import { M as Er } from "../MicroWidgetContainer-B2NnKBgW.mjs";
16
+ import { M as Sr } from "../MiniWidgetContainer-Bmv_WeUd.mjs";
17
+ import { jsxs as f, jsx as p } from "react/jsx-runtime";
18
+ import { css as g } from "@mxenabled/cssinjs";
19
+ import { D as y, a as _ } from "../SingleSegmentDonut-7Uy6VEld.mjs";
20
+ import { S as br } from "../SingleSegmentDonut-7Uy6VEld.mjs";
21
+ import { R as Dr } from "../ResponsiveButton-CC9F_Ezk.mjs";
22
+ import { S as Tr } from "../SelectionBox-B4xELRgp.mjs";
23
+ import { S as Ar } from "../StatusBar-CPfSXe80.mjs";
24
+ import { I as Nr, P as Lr, S as Wr, T as Ur } from "../TabContentContainer-B0eYJP5p.mjs";
25
+ import { A as Br } from "../Analytics-WeZYytR0.mjs";
26
+ import { C as Rr } from "../ConnectCard-Dwfgv24k.mjs";
27
+ import { C as Yr } from "../ConnectDrawer-DytyIhaF.mjs";
28
+ import { C as Fr } from "../CurrencyText-CCbE6MmF.mjs";
29
+ import { E as Qr } from "../EmptyState-CJUDc3kD.mjs";
30
+ import { E as jr } from "../Error-Dtw6yxkf.mjs";
31
+ import { G as Zr } from "../GlobalAccountFilter-CYqzqmAd.mjs";
32
+ import { G as Jr, m as Xr, n as ro, W as oo, c as eo, i as to, o as ao, p as so, l as no, q as io, r as uo, f as lo, s as co, u as mo, e as po, a as fo, k as go, t as yo, v as _o, w as xo, b as ho, x as Co, y as Eo, z as ko, h as So, A as vo, g as bo, B as Oo, C as Do, D as Io } from "../hooks-97sNJ_lf.mjs";
33
+ import { L as Mo } from "../ListItemAction-BqUCLj_w.mjs";
34
+ import { L as wo } from "../ListItemRow-kH1rn8Xu.mjs";
35
+ import { L as Lo } from "../ListItemWrapper-BHIbqx7E.mjs";
36
+ import { S as Uo } from "../SearchBox-Cpgu_gdO.mjs";
37
+ import { S as Bo, T as qo } from "../Sizes-DISGrlUg.mjs";
38
+ import { T as Po, a as Yo } from "../ToggleListItem-Dl1lXNwj.mjs";
39
+ import { a as Fo, u as Ho, b as Qo } from "../Analytics-CkYXKvco.mjs";
40
+ import { alpha as x } from "@mui/material";
41
+ import { u as jo } from "../useAccountDisplayName-BsiXA0qf.mjs";
42
+ import { u as Zo } from "../useInsightsEnabled-D5Sdm0TJ.mjs";
43
+ import { useRef as h, useEffect as C } from "react";
44
+ import { u as Jo } from "../useScreenSize-mWpmnh5w.mjs";
45
+ import { u as re } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
46
+ var s = /* @__PURE__ */ ((r) => (r[r.Unknown = 0] = "Unknown", r[r.EveryWeek = 1] = "EveryWeek", r[r.EveryOtherWeek = 2] = "EveryOtherWeek", r[r.EveryMonth = 3] = "EveryMonth", r[r.EveryOtherMonth = 4] = "EveryOtherMonth", r[r.EveryQuarter = 5] = "EveryQuarter", r[r.EveryOtherQuarter = 6] = "EveryOtherQuarter", r[r.EveryYear = 7] = "EveryYear", r))(s || {});
47
+ const I = (r) => {
48
+ const a = h(null);
49
+ return C(() => {
50
+ a.current = r;
51
+ }, [r]), a.current;
52
+ }, T = [
53
+ { id: s.Unknown, copy: "frequency_unknown" },
54
+ { id: s.EveryWeek, copy: "frequency_every_week" },
55
+ { id: s.EveryOtherWeek, copy: "frequency_every_other_week" },
56
+ { id: s.EveryMonth, copy: "frequency_every_month" },
57
+ { id: s.EveryOtherMonth, copy: "frequency_every_other_month" },
58
+ { id: s.EveryQuarter, copy: "frequency_every_quarter" },
59
+ { id: s.EveryOtherQuarter, copy: "frequency_every_other_quarter" },
60
+ { id: s.EveryYear, copy: "frequency_every_year" }
61
+ ], M = {
62
62
  ERROR: "ERROR",
63
63
  LOADING: "LOADING",
64
64
  SUCCESS: "SUCCESS"
65
- }, U = ({
65
+ }, A = ({
66
66
  hasGap: r = !1,
67
- segments: o,
68
- size: n = _,
69
- strokeWidth: u = v,
70
- children: m
67
+ segments: a,
68
+ size: o = y,
69
+ strokeWidth: e = _,
70
+ children: i
71
71
  }) => {
72
- const d = D(n), t = (n - u) / 2, a = n / 2;
73
- let c = -90 - (r ? 1 : 0), s = 0;
74
- return /* @__PURE__ */ g("div", { className: `mx-cmn-multi-segment-donut ${d}`, children: [
75
- /* @__PURE__ */ g("svg", { height: n, width: n, children: [
76
- /* @__PURE__ */ y(
72
+ const u = E(o), n = (o - e) / 2, t = o / 2;
73
+ let l = -90 - (r ? 1 : 0), d = 0;
74
+ return /* @__PURE__ */ f("div", { className: `mx-cmn-multi-segment-donut ${u}`, children: [
75
+ /* @__PURE__ */ f("svg", { height: o, width: o, children: [
76
+ /* @__PURE__ */ p(
77
77
  "circle",
78
78
  {
79
- cx: a,
80
- cy: a,
79
+ cx: t,
80
+ cy: t,
81
81
  fill: "none",
82
- r: t,
82
+ r: n,
83
83
  stroke: "#E4E8EE",
84
- strokeWidth: u
84
+ strokeWidth: e
85
85
  }
86
86
  ),
87
- o.map((l, f) => (c += 360 * s + (r ? 1 : 0), s = (l.percent - (r ? 0.3 : 0)) / 100, /* @__PURE__ */ y(
87
+ a.map((c, m) => (l += 360 * d + (r ? 1 : 0), d = (c.percent - (r ? 0.3 : 0)) / 100, /* @__PURE__ */ p(
88
88
  "circle",
89
89
  {
90
- cx: a,
91
- cy: a,
90
+ cx: t,
91
+ cy: t,
92
92
  fill: "none",
93
- r: t,
94
- stroke: l.color,
95
- strokeDasharray: 2 * Math.PI * t,
96
- strokeDashoffset: 2 * Math.PI * t * (1 - s),
97
- strokeWidth: u,
98
- transform: `rotate(${c}, ${a}, ${a})`
93
+ r: n,
94
+ stroke: c.color,
95
+ strokeDasharray: 2 * Math.PI * n,
96
+ strokeDashoffset: 2 * Math.PI * n * (1 - d),
97
+ strokeWidth: e,
98
+ transform: `rotate(${l}, ${t}, ${t})`
99
99
  },
100
- f
100
+ m
101
101
  )))
102
102
  ] }),
103
- /* @__PURE__ */ y("div", { className: "mx-cmn-multi-segment-donut-children", children: m })
103
+ /* @__PURE__ */ p("div", { className: "mx-cmn-multi-segment-donut-children", children: i })
104
104
  ] });
105
- }, D = (r) => C({
105
+ }, E = (r) => g({
106
106
  height: r,
107
107
  marginTop: "-8px",
108
108
  position: "relative",
@@ -114,198 +114,189 @@ const N = (r) => {
114
114
  top: "50%",
115
115
  transform: "translate(-50%, -50%)"
116
116
  }
117
- }), T = [
118
- "fontFamily",
119
- "h1",
120
- "h2",
121
- "h3",
122
- "body1",
123
- "body2",
124
- "button",
125
- "caption",
126
- "subtitle1",
127
- "subtitle2",
128
- "tiny"
129
- ], h = [
117
+ }), k = [
130
118
  { key: "primary", light: "primary_color", dark: "primary_color_dark" },
131
- { key: "secondary", light: "neutral_color", dark: "neutral_color_dark" },
119
+ { key: "secondary", light: "secondary_color", dark: "secondary_color_dark" },
132
120
  { key: "error", light: "error_color", dark: "error_color_dark" },
133
121
  { key: "warning", light: "warning_color", dark: "warning_color_dark" },
134
122
  { key: "info", light: "info_color", dark: "info_color_dark" },
135
- { key: "success", light: "success_color", dark: "success_color_dark" }
136
- ], G = (r, o) => {
137
- const n = o === "dark", u = {};
138
- for (const { key: m, light: d, dark: t } of h) {
139
- const a = r?.[n ? t : d];
140
- a && (u[m] = a);
123
+ { key: "success", light: "success_color", dark: "success_color_dark" },
124
+ { key: "grey", light: "neutral_color", dark: "neutral_color_dark" }
125
+ ], w = (r, a) => {
126
+ const o = a === "dark", e = {};
127
+ for (const { key: l, light: d, dark: c } of k) {
128
+ const m = r?.[o ? c : d];
129
+ m && (e[l] = m);
141
130
  }
142
- return u;
143
- }, B = (r, o, n) => {
144
- const u = r.palette.mode === "dark", m = (n?.master?.style?.font_name || o?.system_font) ?? r.typography.fontFamily, d = (e, p) => e ? {
145
- lighter: E(e, 0.5),
146
- light: E(e, 0.25),
147
- main: e,
148
- dark: x(e, 0.25),
149
- darker: x(e, 0.5)
150
- } : p, t = Object.fromEntries(
151
- h.map(({ key: e, light: p, dark: S }) => [
152
- e,
153
- d(
154
- o?.[u ? S : p],
155
- r.palette[e]
156
- )
157
- ])
158
- ), a = Object.fromEntries(
159
- T.map((e) => [
160
- e,
161
- e === "fontFamily" ? m : { fontFamily: m }
162
- ])
163
- ), c = {
131
+ const i = r?.background_color;
132
+ i && (e.background = {
133
+ ...e.background,
134
+ default: o ? { light: "", dark: i } : { light: i, dark: "" }
135
+ });
136
+ const u = r?.paper_color;
137
+ u && (e.background = {
138
+ ...e.background,
139
+ paper: o ? { light: "", dark: u } : { light: u, dark: "" }
140
+ });
141
+ const n = r?.body_font_name || r?.system_font, t = r?.header_font_name;
142
+ return {
143
+ paletteOptions: e,
144
+ ...r?.use_glass != null && {
145
+ styleOptions: { useGlass: r.use_glass }
146
+ },
147
+ ...(n || t) && {
148
+ typographyOptions: {
149
+ ...n && { fontFamily: n },
150
+ ...t && { headerFontFamily: t }
151
+ }
152
+ },
153
+ ...r?.card_corner_radius != null && {
154
+ shapeOptions: { borderRadius: r.card_corner_radius }
155
+ }
156
+ };
157
+ }, N = (r, a) => {
158
+ const o = a?.button_corner_radius, e = a?.card_corner_radius;
159
+ return { components: {
164
160
  MuiTabs: {
165
161
  styleOverrides: {
166
- indicator: { backgroundColor: t.primary.light }
162
+ indicator: { backgroundColor: r.palette.primary.light }
167
163
  }
168
164
  },
169
165
  MuiPickersCalendarHeader: {
170
166
  styleOverrides: {
171
167
  switchViewButton: {
172
- color: t.primary.lighter,
173
- "&:hover": { backgroundColor: k(t.primary.light, 0.1) }
168
+ color: r.palette.primary.lighter,
169
+ "&:hover": { backgroundColor: x(r.palette.primary.light, 0.1) }
174
170
  }
175
171
  }
176
- }
177
- }, s = o?.button_corner_radius, l = o?.card_corner_radius, f = {
178
- ...c,
179
- ...s && {
172
+ },
173
+ ...o && {
180
174
  MuiButton: {
181
175
  styleOverrides: {
182
- root: { borderRadius: `${s}px`, textTransform: "none" }
176
+ root: { borderRadius: `${o}px`, textTransform: "none" }
183
177
  }
184
178
  },
185
179
  MuiIconButton: {
186
180
  styleOverrides: {
187
181
  root: {
188
- borderRadius: `${s}px`,
189
- minWidth: s,
190
- minHeight: s
182
+ borderRadius: `${o}px`,
183
+ minWidth: o,
184
+ minHeight: o
191
185
  }
192
186
  }
193
187
  },
194
188
  MuiToggleButton: {
195
189
  styleOverrides: {
196
- root: { borderRadius: `${s}px`, textTransform: "none" }
190
+ root: { borderRadius: `${o}px`, textTransform: "none" }
197
191
  }
198
192
  }
199
193
  },
200
- ...l && {
194
+ ...e && {
201
195
  MuiCard: {
202
- styleOverrides: { root: { borderRadius: `${l}px` } }
203
- }
204
- },
205
- ...l && {
196
+ styleOverrides: { root: { borderRadius: `${e}px` } }
197
+ },
206
198
  MuiPaper: {
207
199
  styleOverrides: {
208
- rounded: { borderRadius: `${l}px` }
200
+ rounded: { borderRadius: `${e}px` }
209
201
  }
210
202
  }
211
203
  }
212
- };
213
- return { typography: a, palette: t, components: f };
204
+ } };
214
205
  };
215
206
  export {
216
- $r as ANALYTICS_EVENTS,
217
- rr as Calendar,
218
- er as CalendarSelectionTypes,
219
- Qr as ConnectCard,
220
- Vr as ConnectDrawer,
221
- or as CurrencyDialog,
222
- ar as CurrencyInput,
223
- Zr as CurrencyText,
224
- _ as DEFAULT_DONUT_SIZE,
225
- v as DEFAULT_STROKE_WIDTH,
226
- nr as DataRow,
227
- lr as DateRangeSelector,
228
- fr as Dialog,
229
- yr as Donut,
230
- xr as Drawer,
231
- Xr as EmptyState,
232
- re as Error,
233
- hr as ErrorBoundary,
234
- oe as GlobalAccountFilter,
235
- ae as GlobalDataContext,
236
- se as GlobalDataProvider,
237
- Y as GlobalStore,
238
- Br as INCOME_ACCOUNT_TYPES,
239
- Cr as IconBacking,
240
- vr as InformationTooltip,
241
- W as LOADING_STATUS,
242
- Le as ListItemAction,
243
- Ue as ListItemRow,
244
- Be as ListItemWrapper,
245
- br as Loader,
246
- Dr as MicroWidgetContainer,
247
- Ir as MiniWidgetContainer,
248
- U as MultiSegmentDonut,
249
- Rr as PAYMENT_ACCOUNT_TYPES,
250
- L as RECURRENCE_COPY,
251
- wr as ResponsiveButton,
252
- qr as SPENDING_ACCOUNT_TYPES,
253
- qe as SearchBox,
254
- ir as Select,
255
- Lr as SelectionBox,
256
- Mr as SingleSegmentDonut,
257
- Fe as Sizes,
258
- Ur as StatusBar,
259
- $e as TOUCH_TARGET,
260
- Yr as TabContentContainer,
261
- Qe as ToggleButtonListItem,
262
- je as ToggleListItem,
263
- mr as WidgetContainer,
264
- ne as WidgetContainerContext,
265
- ie as WidgetContainerProvider,
266
- Ke as analyticsSession,
267
- $ as buildDynamicCopy,
268
- H as buildPluralCopy,
269
- j as formatCurrency,
270
- V as formatOrdinal,
271
- K as formatPercentage,
272
- Z as generateEqualIntervals,
273
- G as getClientPaletteOptions,
274
- B as getClientTheme,
275
- J as getCurrencyCodes,
276
- X as getPluralRules,
277
- ze as useAccountDisplayName,
278
- ue as useAccountStore,
279
- le as useAppConfig,
280
- me as useBudgetsStore,
281
- de as useCashflowStore,
282
- ce as useCategoryStore,
283
- Ze as useCombineEvents,
284
- Je as useCombinePageviews,
285
- fe as useDebtStore,
286
- pe as useError,
287
- ye as useEvent,
288
- ge as useFinstrongStore,
289
- xe as useGlobalCopyStore,
290
- Ee as useGlobalStore,
291
- he as useGlobalUiStore,
292
- Se as useGoalStore,
293
- Ce as useHelpStore,
294
- _e as useHoldingStore,
295
- eo as useInsightsEnabled,
296
- ve as useLoad,
297
- ke as useMerchantStore,
298
- be as useNetWorthStore,
299
- Oe as useNotificationStore,
300
- De as usePageView,
301
- N as usePrevious,
302
- Te as useRecurringTransactionsStore,
303
- to as useScreenSize,
304
- Ie as useSettingsStore,
305
- Ae as useTransactionStore,
306
- Me as useTrendsStore,
307
- Pe as useUserStore,
308
- we as useWidgetContainerProvider,
309
- dr as useWidgetHeaderStyles,
310
- so as useWidgetLoadTimer
207
+ Br as ANALYTICS_EVENTS,
208
+ j as Calendar,
209
+ K as CalendarSelectionTypes,
210
+ Rr as ConnectCard,
211
+ Yr as ConnectDrawer,
212
+ Z as CurrencyDialog,
213
+ J as CurrencyInput,
214
+ Fr as CurrencyText,
215
+ y as DEFAULT_DONUT_SIZE,
216
+ _ as DEFAULT_STROKE_WIDTH,
217
+ rr as DataRow,
218
+ tr as DateRangeSelector,
219
+ ir as Dialog,
220
+ dr as Donut,
221
+ cr as Drawer,
222
+ Qr as EmptyState,
223
+ jr as Error,
224
+ pr as ErrorBoundary,
225
+ Zr as GlobalAccountFilter,
226
+ Jr as GlobalDataContext,
227
+ Xr as GlobalDataProvider,
228
+ U as GlobalStore,
229
+ Nr as INCOME_ACCOUNT_TYPES,
230
+ gr as IconBacking,
231
+ _r as InformationTooltip,
232
+ M as LOADING_STATUS,
233
+ Mo as ListItemAction,
234
+ wo as ListItemRow,
235
+ Lo as ListItemWrapper,
236
+ hr as Loader,
237
+ Er as MicroWidgetContainer,
238
+ Sr as MiniWidgetContainer,
239
+ A as MultiSegmentDonut,
240
+ Lr as PAYMENT_ACCOUNT_TYPES,
241
+ T as RECURRENCE_COPY,
242
+ Dr as ResponsiveButton,
243
+ Wr as SPENDING_ACCOUNT_TYPES,
244
+ Uo as SearchBox,
245
+ or as Select,
246
+ Tr as SelectionBox,
247
+ br as SingleSegmentDonut,
248
+ Bo as Sizes,
249
+ Ar as StatusBar,
250
+ qo as TOUCH_TARGET,
251
+ Ur as TabContentContainer,
252
+ Po as ToggleButtonListItem,
253
+ Yo as ToggleListItem,
254
+ ar as WidgetContainer,
255
+ ro as WidgetContainerContext,
256
+ oo as WidgetContainerProvider,
257
+ Fo as analyticsSession,
258
+ B as buildDynamicCopy,
259
+ q as buildPluralCopy,
260
+ P as formatCurrency,
261
+ Y as formatOrdinal,
262
+ $ as formatPercentage,
263
+ F as generateEqualIntervals,
264
+ w as getClientCustomizations,
265
+ N as getClientTheme,
266
+ H as getCurrencyCodes,
267
+ Q as getPluralRules,
268
+ jo as useAccountDisplayName,
269
+ eo as useAccountStore,
270
+ to as useAppConfig,
271
+ ao as useBudgetsStore,
272
+ so as useCashflowStore,
273
+ no as useCategoryStore,
274
+ Ho as useCombineEvents,
275
+ Qo as useCombinePageviews,
276
+ io as useDebtStore,
277
+ uo as useError,
278
+ lo as useEvent,
279
+ co as useFinstrongStore,
280
+ mo as useGlobalCopyStore,
281
+ po as useGlobalStore,
282
+ fo as useGlobalUiStore,
283
+ go as useGoalStore,
284
+ yo as useHelpStore,
285
+ _o as useHoldingStore,
286
+ Zo as useInsightsEnabled,
287
+ xo as useLoad,
288
+ ho as useMerchantStore,
289
+ Co as useNetWorthStore,
290
+ Eo as useNotificationStore,
291
+ ko as usePageView,
292
+ I as usePrevious,
293
+ So as useRecurringTransactionsStore,
294
+ Jo as useScreenSize,
295
+ vo as useSettingsStore,
296
+ bo as useTransactionStore,
297
+ Oo as useTrendsStore,
298
+ Do as useUserStore,
299
+ Io as useWidgetContainerProvider,
300
+ sr as useWidgetHeaderStyles,
301
+ re as useWidgetLoadTimer
311
302
  };
@@ -1,33 +1,19 @@
1
- import { PaletteColor, PaletteMode, Theme } from '@mui/material';
1
+ import { PaletteMode, Theme } from '@mui/material';
2
+ import { Customizations } from '@mxenabled/mxui';
2
3
  import { ClientStyleProfile } from '../../core';
3
- import { ClientConfig } from '../../core/types/AppData';
4
- export declare const getClientPaletteOptions: (clientStyleProfile: ClientStyleProfile, mode: PaletteMode) => Record<string, string>;
5
- export declare const getClientTheme: (theme: Theme, clientStyleProfile: ClientStyleProfile, clientConfig?: ClientConfig) => {
6
- typography: {
7
- [k: string]: string | {
8
- fontFamily: string | undefined;
9
- } | undefined;
10
- };
11
- palette: {
12
- [k: string]: PaletteColor | {
13
- lighter: string;
14
- light: string;
15
- main: string;
16
- dark: string;
17
- darker: string;
18
- };
19
- };
4
+ export declare const getClientCustomizations: (clientStyleProfile: ClientStyleProfile, mode: PaletteMode) => Customizations;
5
+ export declare const getClientTheme: (theme: Theme, clientStyleProfile: ClientStyleProfile) => {
20
6
  components: {
21
- MuiPaper?: {
7
+ MuiCard?: {
22
8
  styleOverrides: {
23
- rounded: {
9
+ root: {
24
10
  borderRadius: string;
25
11
  };
26
12
  };
27
13
  } | undefined;
28
- MuiCard?: {
14
+ MuiPaper?: {
29
15
  styleOverrides: {
30
- root: {
16
+ rounded: {
31
17
  borderRadius: string;
32
18
  };
33
19
  };
@@ -67,7 +53,7 @@ export declare const getClientTheme: (theme: Theme, clientStyleProfile: ClientSt
67
53
  MuiPickersCalendarHeader: {
68
54
  styleOverrides: {
69
55
  switchViewButton: {
70
- color: string | undefined;
56
+ color: any;
71
57
  '&:hover': {
72
58
  backgroundColor: string;
73
59
  };
@@ -1,2 +1,2 @@
1
1
  export { analyticsSession } from './Analytics';
2
- export { getClientPaletteOptions, getClientTheme } from './Theme';
2
+ export { getClientCustomizations, getClientTheme } from './Theme';
@@ -48,7 +48,21 @@ export interface MasterConfig {
48
48
  ui_message_webview_url_scheme?: string;
49
49
  }
50
50
  export interface StyleConfig {
51
+ background_color?: string;
52
+ corner_radius?: number;
53
+ error_color?: string;
51
54
  font_name?: string;
55
+ header_font_name?: string;
56
+ info_color?: string;
57
+ neutral_color?: string;
58
+ paper_color?: string;
59
+ primary_color?: string;
60
+ secondary_color?: string;
61
+ success_color?: string;
62
+ use_body_font_url?: boolean;
63
+ use_glass?: boolean;
64
+ use_header_font_url?: boolean;
65
+ warning_color?: string;
52
66
  }
53
67
  export interface DeepLinkParams {
54
68
  account_guids?: string[];
@@ -96,23 +96,30 @@ export interface ClientInsightProfile {
96
96
  is_recurring_transactions_manager_enabled: boolean;
97
97
  }
98
98
  export interface ClientStyleProfile {
99
- primary_color?: string;
100
- primary_font_regular?: string;
101
- secondary_color?: string;
102
- neutral_color?: string;
103
- success_color?: string;
99
+ background_color?: string;
100
+ body_font_name?: string;
101
+ body_font_url?: string;
102
+ button_corner_radius?: number;
103
+ card_corner_radius?: number;
104
104
  error_color?: string;
105
- warning_color?: string;
105
+ error_color_dark?: string;
106
+ header_font_name?: string;
107
+ header_font_url?: string;
106
108
  info_color?: string;
109
+ info_color_dark?: string;
110
+ mode?: 'dark' | 'light' | 'browser';
111
+ neutral_color?: string;
112
+ neutral_color_dark?: string;
113
+ paper_color?: string;
114
+ primary_color?: string;
107
115
  primary_color_dark?: string;
116
+ primary_font_regular?: string;
117
+ secondary_color?: string;
108
118
  secondary_color_dark?: string;
109
- neutral_color_dark?: string;
119
+ success_color?: string;
110
120
  success_color_dark?: string;
111
- error_color_dark?: string;
112
- warning_color_dark?: string;
113
- info_color_dark?: string;
114
- mode?: 'dark' | 'light' | 'browser';
115
121
  system_font?: string;
116
- card_corner_radius?: number;
117
- button_corner_radius?: number;
122
+ use_glass?: boolean;
123
+ warning_color?: string;
124
+ warning_color_dark?: string;
118
125
  }
@@ -1,7 +1,7 @@
1
1
  export type { Account, DetailedAccount, Member, MonthlyAccountBalance } from './Account';
2
2
  export { AccountIcon, AccountIconVariants, AccountSubType, AccountType, AccountTypeName, ConnectionStatus, ConnectionStatusEnums, ErrorStatuses, MfaStatuses, NonConnectedStatuses, ProcessingStatuses, PropertyType, PropertyTypeName, StatusName, } from './Account';
3
3
  export type { AnalyticsEvent, AnalyticsPageview, BasicAnalyticsEvent, BasicAnalyticsPageview, AnalyticsSession, AnalyticEventFunction, AnalyticPageviewFunction, AnalyticsSessionInstance, } from './Analytics';
4
- export type { AppConfig, AppData, Banner, ClientConfig, Config, Options } from './AppData';
4
+ export type { AppConfig, AppData, Banner, ClientConfig, Config, Options, StyleConfig } from './AppData';
5
5
  export type { Beat, DataSeries } from './Beat';
6
6
  export { UserVerification } from './Beat';
7
7
  export type { Budget, BudgetColors, DetailedBudget, MerchantBudget } from './Budget';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "9.0.6",
3
+ "version": "9.0.7-alpha.al1",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",
@@ -200,7 +200,7 @@
200
200
  "@mui/x-date-pickers-pro": "^7.29.4",
201
201
  "@mxenabled/cssinjs": "^0.6.0",
202
202
  "@mxenabled/mx-icons": "^2",
203
- "@mxenabled/mxui": "2.5.3",
203
+ "@mxenabled/mxui": "2.5.4-alpha.al0",
204
204
  "@mxenabled/web-widget-sdk": "^0.0.15",
205
205
  "@tanstack/react-virtual": "^3.13.24",
206
206
  "bowser": "^2.14.1",