@mx-cartographer/insights-ui 1.9.2 → 1.11.0-alpha.mega1

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,2 @@
1
+ import { MonthlySpendToIncomeComparisonV2Props } from './types';
2
+ export declare const MonthlySpendToIncomeComparisonV2: React.FC<MonthlySpendToIncomeComparisonV2Props>;
@@ -0,0 +1 @@
1
+ export * from './MonthlySpendToIncomeComparisonV2';
@@ -5,6 +5,7 @@ export * from './FederalBankHoliday';
5
5
  export * from './MarketingHub';
6
6
  export * from './MonthlyEmergencyFundReview';
7
7
  export * from './MonthlySpendingComparisonV2';
8
+ export * from './MonthlySpendToIncomeComparisonV2';
8
9
  export * from './P2pCategorization';
9
10
  export * from './SetUpDirectDeposit';
10
11
  export * from './SwitchDirectDeposit';
@@ -0,0 +1,18 @@
1
+ import { SpringValue } from '@react-spring/web';
2
+ import { DataSet } from '../../../../types/Charts/BarChart';
3
+ interface BarStyleProps extends React.CSSProperties {
4
+ x?: SpringValue<number>;
5
+ y?: SpringValue<number>;
6
+ }
7
+ interface CustomDoubleBarPlotProps {
8
+ color: string;
9
+ data: DataSet[];
10
+ series: Series;
11
+ style: BarStyleProps;
12
+ }
13
+ interface Series {
14
+ index: number;
15
+ type: number;
16
+ }
17
+ export declare const CustomDoubleBarPlot: ({ color, data, series, style, ...restProps }: CustomDoubleBarPlotProps) => import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -0,0 +1,2 @@
1
+ import { DoubleBarChartProps } from '../../../../types/Charts/BarChart';
2
+ export declare const DoubleBarChart: ({ amounts, barGapRatio, categoryGapRatio, colors, data, isMini, legendLabelComparison, legendLabelMain, margin, onBarClick, }: DoubleBarChartProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { SxProps } from '@mui/material/styles';
2
+ interface DoubleBarChartLegendProps {
3
+ comparisonColor: string;
4
+ legendLabelComparison?: string;
5
+ legendLabelMain?: string;
6
+ legendStyle?: SxProps;
7
+ mainColor: string;
8
+ }
9
+ export declare const DoubleBarChartLegend: ({ comparisonColor, legendLabelComparison, legendLabelMain, legendStyle, mainColor, }: DoubleBarChartLegendProps) => import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -1 +1,2 @@
1
1
  export * from './BarChart';
2
+ export * from './DoubleBarChart';
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
+ import { Beat } from '../../../types/CommonBeat';
2
3
  import { CardHeaderProps } from './CardHeader';
3
4
  import { ContentAndDescriptionProps } from './ContentAndDescription';
4
- import { Beat } from '../../../types/CommonBeat';
5
5
  interface BeatCardProps {
6
6
  altLoadingText: string;
7
7
  asteriskText?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/insights-ui",
3
- "version": "1.9.2",
3
+ "version": "1.11.0-alpha.mega1",
4
4
  "description": "Package containing MX theme and common controls for MUI",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -70,6 +70,7 @@
70
70
  "eslint": "^8.57.0",
71
71
  "eslint-config-mx": "^4.0.0",
72
72
  "eslint-config-prettier": "^9.1.0",
73
+ "eslint-plugin-import": "^2.31.0",
73
74
  "eslint-plugin-jsx-a11y": "^6.9.0",
74
75
  "eslint-plugin-react": "^7.34.3",
75
76
  "eslint-plugin-react-hooks": "^4.6.2",
@@ -1,2 +0,0 @@
1
- export declare const DEFAULT_LOGO_SIZE = 32;
2
- export declare const ASSETS_URL = "https://content.moneydesktop.com/storage/MD_Assets";
@@ -1,4 +0,0 @@
1
- export declare const MODE: {
2
- LIGHT: string;
3
- DARK: string;
4
- };