@mx-cartographer/experiences 3.5.0 → 3.6.0

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,5 @@
1
+ import { default as React } from 'react';
2
+ import { WidgetProps } from '../common';
3
+
4
+ declare const _default: React.FunctionComponent<WidgetProps>;
5
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ import { MonthlyCategoryTotals } from '../../common';
3
+
4
+ interface TrendsTableProps {
5
+ height?: number | string;
6
+ monthlyCategoryTotals: MonthlyCategoryTotals[];
7
+ sx?: any;
8
+ }
9
+ declare const TrendsTable: React.FC<TrendsTableProps>;
10
+ export default TrendsTable;
@@ -0,0 +1,3 @@
1
+ import { GridCellParams } from '@mui/x-data-grid';
2
+
3
+ export declare const AmountCell: (params: GridCellParams) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { GridCellParams } from '@mui/x-data-grid';
2
+
3
+ export declare const CategoryCell: (params: GridCellParams) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { GridColumnHeaderParams } from '@mui/x-data-grid';
2
+
3
+ export declare const HeaderCell: (params: GridColumnHeaderParams) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1,2 @@
1
+ export { default as TrendsFullWidget } from './TrendsFullWidget';
1
2
  export { default as TrendsMiniWidget } from './TrendsMiniWidget';
@@ -0,0 +1,34 @@
1
+ import { GridComparatorFn } from '@mui/x-data-grid-pro';
2
+ import { MonthlyCategoryTotals } from '../../common';
3
+
4
+ type DateRange = {
5
+ start: Date;
6
+ end: Date;
7
+ };
8
+ export declare const isIncome: (totals: MonthlyCategoryTotals) => boolean;
9
+ export declare const isPayment: (totals: MonthlyCategoryTotals) => boolean;
10
+ export declare const isTransfer: (totals: MonthlyCategoryTotals) => boolean;
11
+ export declare const isSpend: (totals: MonthlyCategoryTotals) => boolean;
12
+ export declare const getMonthlyTotalsDataset: (totals: MonthlyCategoryTotals[]) => {
13
+ x: string;
14
+ y: number;
15
+ }[][];
16
+ export declare const getMonthlyTotals: (totals: MonthlyCategoryTotals[], range?: DateRange) => {
17
+ x: string;
18
+ y: number;
19
+ }[];
20
+ export declare const getIncomeTotals: (totals: MonthlyCategoryTotals[], range?: DateRange) => {
21
+ y: number;
22
+ x: string;
23
+ }[];
24
+ export declare const getPaymentTotals: (totals: MonthlyCategoryTotals[], range?: DateRange) => {
25
+ y: number;
26
+ x: string;
27
+ }[];
28
+ export declare const getSpendingTotals: (totals: MonthlyCategoryTotals[], range?: DateRange) => {
29
+ x: string;
30
+ y: number;
31
+ }[];
32
+ export declare const getTopLevelCategoryTotals: (totals: MonthlyCategoryTotals[]) => MonthlyCategoryTotals[];
33
+ export declare const amountComparator: GridComparatorFn<string | number>;
34
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "3.5.0",
3
+ "version": "3.6.0",
4
4
  "description": "Library containing experience widgets",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",