@mx-cartographer/experiences 9.0.7-alpha.al0 → 9.0.7-alpha.al2

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.
@@ -1,108 +1,108 @@
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 = {
1
+ import { l as V } from "../UserStore-DzWku3t0.mjs";
2
+ import { b as Z, a as z } from "../Localization-DnoVyBNK.mjs";
3
+ import { f as X, b as rr, a as or, c as er, g as tr, d as ar } from "../NumberFormatting--XMeeBfr.mjs";
4
+ import { C as nr, a as ir, b as ur } from "../CurrencyDialog-DumQCTPO.mjs";
5
+ import { C as lr } from "../CurrencyInput-DaGEQaLW.mjs";
6
+ import { D as mr, S as pr } from "../Select-CSpkK5cR.mjs";
7
+ import { D as gr, W as yr, u as _r } from "../WidgetContainer-D-LzIKFb.mjs";
8
+ import { D as xr } from "../Dialog-Bvd2n8hz.mjs";
9
+ import { D as Cr } from "../Donut-SzzfZDHF.mjs";
10
+ import { D as br } from "../Drawer-BXqqBMxg.mjs";
11
+ import { E as Sr } from "../ErrorBoundary-CsdOcnJ9.mjs";
12
+ import { I as Dr } from "../IconBacking-DgT8DCeh.mjs";
13
+ import { I as Ir } from "../InformationTooltip-4su8bn1e.mjs";
14
+ import { L as Nr } from "../Loader-CxeBwuPG.mjs";
15
+ import { M as Mr } from "../MicroWidgetContainer-B2NnKBgW.mjs";
16
+ import { M as Pr } from "../MiniWidgetContainer-Bmv_WeUd.mjs";
17
+ import { jsxs as h, jsx as _ } from "react/jsx-runtime";
18
+ import { css as v } from "@mxenabled/cssinjs";
19
+ import { D as b, a as O } from "../SingleSegmentDonut-7Uy6VEld.mjs";
20
+ import { S as Gr } from "../SingleSegmentDonut-7Uy6VEld.mjs";
21
+ import { R as Ur } from "../ResponsiveButton-CC9F_Ezk.mjs";
22
+ import { S as Br } from "../SelectionBox-B4xELRgp.mjs";
23
+ import { S as Yr } from "../StatusBar-CPfSXe80.mjs";
24
+ import { I as Hr, P as jr, S as Qr, T as Vr } from "../TabContentContainer-B0eYJP5p.mjs";
25
+ import { A as Zr } from "../Analytics-WeZYytR0.mjs";
26
+ import { C as Jr } from "../ConnectCard-Dwfgv24k.mjs";
27
+ import { C as ro } from "../ConnectDrawer-DytyIhaF.mjs";
28
+ import { C as eo } from "../CurrencyText-CCbE6MmF.mjs";
29
+ import { E as ao } from "../EmptyState-CJUDc3kD.mjs";
30
+ import { E as no } from "../Error-Dtw6yxkf.mjs";
31
+ import { G as uo } from "../GlobalAccountFilter-CYqzqmAd.mjs";
32
+ import { G as lo, m as mo, n as po, W as fo, c as go, i as yo, o as _o, p as ho, l as xo, q as Eo, r as Co, f as vo, s as bo, u as Oo, e as So, a as ko, k as Do, t as To, v as Io, w as Ao, b as No, x as wo, y as Mo, z as Lo, h as Po, A as Wo, g as Go, B as Ro, C as Uo, D as Fo } from "../hooks-97sNJ_lf.mjs";
33
+ import { L as qo } from "../ListItemAction-BqUCLj_w.mjs";
34
+ import { L as $o } from "../ListItemRow-kH1rn8Xu.mjs";
35
+ import { L as jo } from "../ListItemWrapper-BHIbqx7E.mjs";
36
+ import { S as Vo } from "../SearchBox-Cpgu_gdO.mjs";
37
+ import { S as Zo, T as zo } from "../Sizes-DISGrlUg.mjs";
38
+ import { T as Xo, a as re } from "../ToggleListItem-Dl1lXNwj.mjs";
39
+ import { a as ee, u as te, b as ae } from "../Analytics-CkYXKvco.mjs";
40
+ import { alpha as S, darken as k, lighten as D } from "@mui/material";
41
+ import { u as ne } from "../useAccountDisplayName-BsiXA0qf.mjs";
42
+ import { u as ue } from "../useInsightsEnabled-D5Sdm0TJ.mjs";
43
+ import { useRef as T, useEffect as I } from "react";
44
+ import { u as le } from "../useScreenSize-mWpmnh5w.mjs";
45
+ import { u as me } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
46
+ var d = /* @__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))(d || {});
47
+ const F = (r) => {
48
+ const o = T(null);
49
+ return I(() => {
50
+ o.current = r;
51
+ }, [r]), o.current;
52
+ }, B = [
53
+ { id: d.Unknown, copy: "frequency_unknown" },
54
+ { id: d.EveryWeek, copy: "frequency_every_week" },
55
+ { id: d.EveryOtherWeek, copy: "frequency_every_other_week" },
56
+ { id: d.EveryMonth, copy: "frequency_every_month" },
57
+ { id: d.EveryOtherMonth, copy: "frequency_every_other_month" },
58
+ { id: d.EveryQuarter, copy: "frequency_every_quarter" },
59
+ { id: d.EveryOtherQuarter, copy: "frequency_every_other_quarter" },
60
+ { id: d.EveryYear, copy: "frequency_every_year" }
61
+ ], q = {
62
62
  ERROR: "ERROR",
63
63
  LOADING: "LOADING",
64
64
  SUCCESS: "SUCCESS"
65
- }, A = ({
65
+ }, Y = ({
66
66
  hasGap: r = !1,
67
- segments: a,
68
- size: o = y,
69
- strokeWidth: e = _,
70
- children: i
67
+ segments: o,
68
+ size: a = b,
69
+ strokeWidth: m = O,
70
+ children: s
71
71
  }) => {
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(
72
+ const c = A(a), i = (a - m) / 2, e = a / 2;
73
+ let p = -90 - (r ? 1 : 0), l = 0;
74
+ return /* @__PURE__ */ h("div", { className: `mx-cmn-multi-segment-donut ${c}`, children: [
75
+ /* @__PURE__ */ h("svg", { height: a, width: a, children: [
76
+ /* @__PURE__ */ _(
77
77
  "circle",
78
78
  {
79
- cx: t,
80
- cy: t,
79
+ cx: e,
80
+ cy: e,
81
81
  fill: "none",
82
- r: n,
82
+ r: i,
83
83
  stroke: "#E4E8EE",
84
- strokeWidth: e
84
+ strokeWidth: m
85
85
  }
86
86
  ),
87
- a.map((c, m) => (l += 360 * d + (r ? 1 : 0), d = (c.percent - (r ? 0.3 : 0)) / 100, /* @__PURE__ */ p(
87
+ o.map((n, t) => (p += 360 * l + (r ? 1 : 0), l = (n.percent - (r ? 0.3 : 0)) / 100, /* @__PURE__ */ _(
88
88
  "circle",
89
89
  {
90
- cx: t,
91
- cy: t,
90
+ cx: e,
91
+ cy: e,
92
92
  fill: "none",
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})`
93
+ r: i,
94
+ stroke: n.color,
95
+ strokeDasharray: 2 * Math.PI * i,
96
+ strokeDashoffset: 2 * Math.PI * i * (1 - l),
97
+ strokeWidth: m,
98
+ transform: `rotate(${p}, ${e}, ${e})`
99
99
  },
100
- m
100
+ t
101
101
  )))
102
102
  ] }),
103
- /* @__PURE__ */ p("div", { className: "mx-cmn-multi-segment-donut-children", children: i })
103
+ /* @__PURE__ */ _("div", { className: "mx-cmn-multi-segment-donut-children", children: s })
104
104
  ] });
105
- }, E = (r) => g({
105
+ }, A = (r) => v({
106
106
  height: r,
107
107
  marginTop: "-8px",
108
108
  position: "relative",
@@ -114,189 +114,222 @@ const I = (r) => {
114
114
  top: "50%",
115
115
  transform: "translate(-50%, -50%)"
116
116
  }
117
- }), k = [
117
+ }), N = [
118
+ "fontFamily",
119
+ "h1",
120
+ "h2",
121
+ "h3",
122
+ "body1",
123
+ "body2",
124
+ "button",
125
+ "caption",
126
+ "subtitle1",
127
+ "subtitle2",
128
+ "tiny"
129
+ ], w = [
118
130
  { key: "primary", light: "primary_color", dark: "primary_color_dark" },
119
- { key: "secondary", light: "secondary_color", dark: "secondary_color_dark" },
131
+ { key: "secondary", light: "neutral_color", dark: "neutral_color_dark" },
120
132
  { key: "error", light: "error_color", dark: "error_color_dark" },
121
133
  { key: "warning", light: "warning_color", dark: "warning_color_dark" },
122
134
  { key: "info", light: "info_color", dark: "info_color_dark" },
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);
135
+ { key: "success", light: "success_color", dark: "success_color_dark" }
136
+ ], M = [
137
+ { source: "primary_color", target: "primary" },
138
+ { source: "secondary_color", target: "secondary" },
139
+ { source: "error_color", target: "error" },
140
+ { source: "warning_color", target: "warning" },
141
+ { source: "info_color", target: "info" },
142
+ { source: "success_color", target: "success" },
143
+ { source: "neutral_color", target: "grey" }
144
+ ], L = [
145
+ { source: "background_color", target: "default" },
146
+ { source: "paper_color", target: "paper" }
147
+ ], $ = (r, o, a) => {
148
+ const m = (t) => r?.[t] || o?.[t], s = {}, c = {};
149
+ for (const { source: t, target: g } of M) {
150
+ const f = m(t);
151
+ f && (c[g] = f);
130
152
  }
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: {
153
+ const i = {};
154
+ for (const { source: t, target: g } of L) {
155
+ const f = m(t);
156
+ f && (i[g] = { [a]: f });
157
+ }
158
+ Object.keys(i).length > 0 && (c.background = i), Object.keys(c).length > 0 && (s.paletteOptions = c);
159
+ const e = r?.use_glass ?? o?.use_glass;
160
+ e !== void 0 && (s.styleOptions = { useGlass: e });
161
+ const p = o?.body_font_name, l = r?.header_font_name || o?.header_font_name;
162
+ (p || l) && (s.typographyOptions = {}, p && (s.typographyOptions.fontFamily = p), l && (s.typographyOptions.headerFontFamily = l));
163
+ const n = r?.corner_radius || o?.card_corner_radius;
164
+ return n !== void 0 && (s.shapeOptions = { borderRadius: n }), s;
165
+ }, H = (r, o, a, m) => {
166
+ const s = r.palette.mode === "dark", c = (a?.font_name || m?.master?.style?.font_name || o?.system_font) ?? r.typography.fontFamily, i = (u, y) => u ? {
167
+ light: D(u, 0.25),
168
+ main: u,
169
+ dark: k(u, 0.25)
170
+ } : y, e = Object.fromEntries(
171
+ w.map(({ key: u, light: y, dark: x }) => {
172
+ const E = o?.[s ? x : y], C = s ? void 0 : a?.[y];
173
+ return [u, i(C || E, r.palette[u])];
174
+ })
175
+ ), p = Object.fromEntries(
176
+ N.map((u) => [
177
+ u,
178
+ u === "fontFamily" ? c : { fontFamily: c }
179
+ ])
180
+ ), l = {
160
181
  MuiTabs: {
161
182
  styleOverrides: {
162
- indicator: { backgroundColor: r.palette.primary.light }
183
+ indicator: { backgroundColor: e.primary.light }
163
184
  }
164
185
  },
165
186
  MuiPickersCalendarHeader: {
166
187
  styleOverrides: {
167
188
  switchViewButton: {
168
- color: r.palette.primary.lighter,
169
- "&:hover": { backgroundColor: x(r.palette.primary.light, 0.1) }
189
+ color: e.primary.light,
190
+ "&:hover": { backgroundColor: S(e.primary.light, 0.1) }
170
191
  }
171
192
  }
172
- },
173
- ...o && {
193
+ }
194
+ }, n = o?.button_corner_radius, t = a?.corner_radius || o?.card_corner_radius, g = a?.use_glass ?? o?.use_glass, f = {
195
+ ...l,
196
+ ...n && {
174
197
  MuiButton: {
175
198
  styleOverrides: {
176
- root: { borderRadius: `${o}px`, textTransform: "none" }
199
+ root: { borderRadius: `${n}px`, textTransform: "none" }
177
200
  }
178
201
  },
179
202
  MuiIconButton: {
180
203
  styleOverrides: {
181
204
  root: {
182
- borderRadius: `${o}px`,
183
- minWidth: o,
184
- minHeight: o
205
+ borderRadius: `${n}px`,
206
+ minWidth: n,
207
+ minHeight: n
185
208
  }
186
209
  }
187
210
  },
188
211
  MuiToggleButton: {
189
212
  styleOverrides: {
190
- root: { borderRadius: `${o}px`, textTransform: "none" }
213
+ root: { borderRadius: `${n}px`, textTransform: "none" }
191
214
  }
192
215
  }
193
216
  },
194
- ...e && {
217
+ ...t && {
195
218
  MuiCard: {
196
- styleOverrides: { root: { borderRadius: `${e}px` } }
197
- },
219
+ styleOverrides: { root: { borderRadius: `${t}px` } }
220
+ }
221
+ },
222
+ ...(t || g) && {
198
223
  MuiPaper: {
199
224
  styleOverrides: {
200
- rounded: { borderRadius: `${e}px` }
225
+ ...t && { rounded: { borderRadius: `${t}px` } },
226
+ ...g && {
227
+ root: {
228
+ backgroundColor: "rgba(255, 255, 255, 0.1)",
229
+ backdropFilter: "blur(10px)",
230
+ WebkitBackdropFilter: "blur(10px)"
231
+ }
232
+ }
201
233
  }
202
234
  }
203
235
  }
204
- } };
236
+ };
237
+ return { typography: p, palette: e, components: f };
205
238
  };
206
239
  export {
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
240
+ Zr as ANALYTICS_EVENTS,
241
+ nr as Calendar,
242
+ ir as CalendarSelectionTypes,
243
+ Jr as ConnectCard,
244
+ ro as ConnectDrawer,
245
+ ur as CurrencyDialog,
246
+ lr as CurrencyInput,
247
+ eo as CurrencyText,
248
+ b as DEFAULT_DONUT_SIZE,
249
+ O as DEFAULT_STROKE_WIDTH,
250
+ mr as DataRow,
251
+ gr as DateRangeSelector,
252
+ xr as Dialog,
253
+ Cr as Donut,
254
+ br as Drawer,
255
+ ao as EmptyState,
256
+ no as Error,
257
+ Sr as ErrorBoundary,
258
+ uo as GlobalAccountFilter,
259
+ lo as GlobalDataContext,
260
+ mo as GlobalDataProvider,
261
+ V as GlobalStore,
262
+ Hr as INCOME_ACCOUNT_TYPES,
263
+ Dr as IconBacking,
264
+ Ir as InformationTooltip,
265
+ q as LOADING_STATUS,
266
+ qo as ListItemAction,
267
+ $o as ListItemRow,
268
+ jo as ListItemWrapper,
269
+ Nr as Loader,
270
+ Mr as MicroWidgetContainer,
271
+ Pr as MiniWidgetContainer,
272
+ Y as MultiSegmentDonut,
273
+ jr as PAYMENT_ACCOUNT_TYPES,
274
+ B as RECURRENCE_COPY,
275
+ Ur as ResponsiveButton,
276
+ Qr as SPENDING_ACCOUNT_TYPES,
277
+ Vo as SearchBox,
278
+ pr as Select,
279
+ Br as SelectionBox,
280
+ Gr as SingleSegmentDonut,
281
+ Zo as Sizes,
282
+ Yr as StatusBar,
283
+ zo as TOUCH_TARGET,
284
+ Vr as TabContentContainer,
285
+ Xo as ToggleButtonListItem,
286
+ re as ToggleListItem,
287
+ yr as WidgetContainer,
288
+ po as WidgetContainerContext,
289
+ fo as WidgetContainerProvider,
290
+ ee as analyticsSession,
291
+ Z as buildDynamicCopy,
292
+ z as buildPluralCopy,
293
+ X as formatCurrency,
294
+ rr as formatOrdinal,
295
+ or as formatPercentage,
296
+ er as generateEqualIntervals,
297
+ $ as getClientPaletteOptions,
298
+ H as getClientTheme,
299
+ tr as getCurrencyCodes,
300
+ ar as getPluralRules,
301
+ ne as useAccountDisplayName,
302
+ go as useAccountStore,
303
+ yo as useAppConfig,
304
+ _o as useBudgetsStore,
305
+ ho as useCashflowStore,
306
+ xo as useCategoryStore,
307
+ te as useCombineEvents,
308
+ ae as useCombinePageviews,
309
+ Eo as useDebtStore,
310
+ Co as useError,
311
+ vo as useEvent,
312
+ bo as useFinstrongStore,
313
+ Oo as useGlobalCopyStore,
314
+ So as useGlobalStore,
315
+ ko as useGlobalUiStore,
316
+ Do as useGoalStore,
317
+ To as useHelpStore,
318
+ Io as useHoldingStore,
319
+ ue as useInsightsEnabled,
320
+ Ao as useLoad,
321
+ No as useMerchantStore,
322
+ wo as useNetWorthStore,
323
+ Mo as useNotificationStore,
324
+ Lo as usePageView,
325
+ F as usePrevious,
326
+ Po as useRecurringTransactionsStore,
327
+ le as useScreenSize,
328
+ Wo as useSettingsStore,
329
+ Go as useTransactionStore,
330
+ Ro as useTrendsStore,
331
+ Uo as useUserStore,
332
+ Fo as useWidgetContainerProvider,
333
+ _r as useWidgetHeaderStyles,
334
+ me as useWidgetLoadTimer
302
335
  };
@@ -1,19 +1,36 @@
1
- import { PaletteMode, Theme } from '@mui/material';
1
+ import { PaletteColor, PaletteMode, Theme } from '@mui/material';
2
2
  import { Customizations } from '@mxenabled/mxui';
3
- import { ClientStyleProfile } from '../../core';
4
- export declare const getClientCustomizations: (clientStyleProfile: ClientStyleProfile, mode: PaletteMode) => Customizations;
5
- export declare const getClientTheme: (theme: Theme, clientStyleProfile: ClientStyleProfile) => {
3
+ import { ClientStyleProfile, ClientConfig, StyleConfig } from '../../core';
4
+ export declare const getClientPaletteOptions: (clientStyleConfig: StyleConfig, clientStyleProfile: ClientStyleProfile, mode: PaletteMode) => Customizations;
5
+ export declare const getClientTheme: (theme: Theme, clientStyleProfile: ClientStyleProfile, clientStyleConfig?: StyleConfig, clientConfig?: ClientConfig) => {
6
+ typography: {
7
+ [k: string]: string | {
8
+ fontFamily: string | undefined;
9
+ } | undefined;
10
+ };
11
+ palette: {
12
+ [k: string]: PaletteColor | {
13
+ light: string;
14
+ main: string;
15
+ dark: string;
16
+ };
17
+ };
6
18
  components: {
7
- MuiCard?: {
19
+ MuiPaper?: {
8
20
  styleOverrides: {
9
- root: {
21
+ root?: {
22
+ backgroundColor: string;
23
+ backdropFilter: string;
24
+ WebkitBackdropFilter: string;
25
+ } | undefined;
26
+ rounded?: {
10
27
  borderRadius: string;
11
- };
28
+ } | undefined;
12
29
  };
13
30
  } | undefined;
14
- MuiPaper?: {
31
+ MuiCard?: {
15
32
  styleOverrides: {
16
- rounded: {
33
+ root: {
17
34
  borderRadius: string;
18
35
  };
19
36
  };
@@ -53,7 +70,7 @@ export declare const getClientTheme: (theme: Theme, clientStyleProfile: ClientSt
53
70
  MuiPickersCalendarHeader: {
54
71
  styleOverrides: {
55
72
  switchViewButton: {
56
- color: any;
73
+ color: string;
57
74
  '&:hover': {
58
75
  backgroundColor: string;
59
76
  };
@@ -1,2 +1,2 @@
1
1
  export { analyticsSession } from './Analytics';
2
- export { getClientCustomizations, getClientTheme } from './Theme';
2
+ export { getClientPaletteOptions, getClientTheme } from './Theme';
@@ -59,7 +59,7 @@ export interface StyleConfig {
59
59
  primary_color?: string;
60
60
  secondary_color?: string;
61
61
  success_color?: string;
62
- use_body_font_url?: boolean;
62
+ use_font_url?: boolean;
63
63
  use_glass?: boolean;
64
64
  use_header_font_url?: boolean;
65
65
  warning_color?: string;
@@ -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.7-alpha.al0",
3
+ "version": "9.0.7-alpha.al2",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",