@mx-cartographer/experiences 7.11.24 → 7.12.1

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.
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { WeGotTheBeat } from '../interfaces';
3
+ export declare const AreaChartIcon: FC<WeGotTheBeat>;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { WeGotTheBeat } from '../interfaces';
3
+ export declare const AverageSpendComparisonIcon: FC<WeGotTheBeat>;
@@ -1,8 +1,12 @@
1
1
  import { default as React } from 'react';
2
+ import { default as Avatar } from '@mui/material/Avatar';
2
3
  import { Icon } from '@mxenabled/mx-icons';
3
- declare const BeatMaterialIcon: ({ bgColor, name, iconColor, }: {
4
+ declare const BeatMaterialIcon: ({ avatarSx, bgColor, name, iconColor, fill, sx, }: {
5
+ avatarSx?: React.ComponentProps<typeof Avatar>["sx"];
4
6
  bgColor?: string;
5
7
  name: string;
6
8
  iconColor?: React.ComponentProps<typeof Icon>["color"];
9
+ fill?: boolean;
10
+ sx?: React.ComponentProps<typeof Icon>["sx"];
7
11
  }) => import("react/jsx-runtime").JSX.Element;
8
12
  export default BeatMaterialIcon;
@@ -1,5 +1,3 @@
1
1
  import { FC } from 'react';
2
2
  import { WeGotTheBeat } from '../interfaces';
3
- import { DataSeries } from '../../common/types/Beat';
4
- export declare const getColorType: (data: DataSeries | undefined) => "success" | "error" | "primary";
5
3
  export declare const MonthlySpendComparisonIcon: FC<WeGotTheBeat>;
@@ -3,5 +3,7 @@ export { default as BeatMaterialIcon } from './BeatMaterialIcon';
3
3
  export { default as BeatMerchantLogo } from './BeatMerchantLogo';
4
4
  export { ChartFilledIcon } from './ChartFilledIcon';
5
5
  export { MonthlySpendComparisonIcon } from './MonthlySpendComparisonIcon';
6
+ export { AverageSpendComparisonIcon } from './AverageSpendComparisonIcon';
7
+ export { AreaChartIcon } from './AreaChartIcon';
6
8
  export { ZeroStateIcon } from './ZeroStateIcon';
7
9
  export { BeatIcon } from './BeatIcon';
@@ -1,4 +1,4 @@
1
- import { A as u, B as s, C as c, a as v, b as C, I as R, M as H, d as M, c as F, N as V, V as k, Z as x } from "../ViewMoreMicroCard-CLHlPWC-.mjs";
1
+ import { A as u, B as s, C as c, a as v, b as C, I as R, M as H, d as M, c as F, N as V, V as k, Z as x } from "../ViewMoreMicroCard-DirvUT9O.mjs";
2
2
  import { jsx as e, jsxs as l } from "react/jsx-runtime";
3
3
  const a = ({
4
4
  color: i = "currentColor",
@@ -0,0 +1,22 @@
1
+ import { DataSeries } from '../../common/types/Beat';
2
+ declare const PRIMARY = "primary";
3
+ declare const SUCCESS = "success";
4
+ declare const ERROR = "error";
5
+ export type ColorType = typeof PRIMARY | typeof SUCCESS | typeof ERROR;
6
+ /**
7
+ * Determines color type by comparing spending vs income from data series.
8
+ * Data series is expected to have spending data in the first half and income data in the second half.
9
+ *
10
+ * @param data - DataSeries with spending and income data
11
+ * @returns 'error' if spending > income, 'success' if spending < income, 'primary' otherwise
12
+ */
13
+ export declare const getColorType: (data: DataSeries | undefined) => ColorType;
14
+ /**
15
+ * Determines color type by comparing two numeric values.
16
+ *
17
+ * @param currentValue - Current value to compare
18
+ * @param comparisonValue - Value to compare against
19
+ * @returns 'success' if current < comparison, 'error' if current > comparison, 'primary' if equal
20
+ */
21
+ export declare const getComparisonColorType: (currentValue: number, comparisonValue: number) => ColorType;
22
+ export {};
@@ -30,7 +30,7 @@ import Vt from "@mui/material/ToggleButton";
30
30
  import Ft from "@mui/material/ToggleButtonGroup";
31
31
  import { parseISO as it } from "date-fns/parseISO";
32
32
  import { H as ke } from "../HeaderCell-DjuifqHJ.mjs";
33
- import { T as G, b as $t } from "../ViewMoreMicroCard-CLHlPWC-.mjs";
33
+ import { T as G, b as $t } from "../ViewMoreMicroCard-DirvUT9O.mjs";
34
34
  import { useGridApiContext as zt, useGridRootProps as Kt, DataGridPro as Yt } from "@mui/x-data-grid-pro";
35
35
  import jt from "@mui/material/Badge";
36
36
  import Ut from "@mui/material/IconButton";
@@ -86,7 +86,7 @@ const p = (o, t) => {
86
86
  export {
87
87
  A,
88
88
  h as G,
89
- g as a,
90
- E as b,
89
+ E as a,
90
+ g as b,
91
91
  p as u
92
92
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.11.24",
3
+ "version": "7.12.1",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",