@mx-cartographer/experiences 6.17.1 → 6.18.0-alpha.san1
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/CHANGELOG.md +4 -0
- package/dist/common/components/MicroWidgetContainer.d.ts +1 -0
- package/dist/common/types/localization/TrendsCopy.d.ts +5 -0
- package/dist/index.es.js +3011 -2836
- package/dist/index.es.js.map +1 -1
- package/dist/trends/TrendsMicroWidget.d.ts +7 -0
- package/dist/trends/ZeroStateMicroWidget.d.ts +3 -0
- package/dist/trends/components/TrendsMicroSpendingIncomeBox.d.ts +10 -0
- package/dist/trends/index.d.ts +1 -0
- package/dist/trends/utils/shared.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface TrendsMicroSpendingIncomeBoxProps {
|
|
2
|
+
title: string;
|
|
3
|
+
totalAmount: number;
|
|
4
|
+
transactionType: 'spending' | 'income';
|
|
5
|
+
percentage: number;
|
|
6
|
+
secondaryLabel: string;
|
|
7
|
+
shouldDisplayPercentage: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const TrendsMicroSpendingIncomeBox: ({ title, totalAmount, transactionType, percentage, secondaryLabel, shouldDisplayPercentage, }: TrendsMicroSpendingIncomeBoxProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
package/dist/trends/index.d.ts
CHANGED
|
@@ -7,4 +7,5 @@ export declare const isPayment: (totals: TotalsData) => boolean;
|
|
|
7
7
|
export declare const isTransfer: (totals: TotalsData) => boolean;
|
|
8
8
|
export declare const isSpend: (totals: TotalsData) => boolean;
|
|
9
9
|
export declare const getTopLevelCategoryTotals: (totals: (MonthlyCategoryTotals | StackedLineChartData)[]) => (MonthlyCategoryTotals | StackedLineChartData)[];
|
|
10
|
+
export declare const calculateRelativeChange: (current: number, previous: number) => number;
|
|
10
11
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mx-cartographer/experiences",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.18.0-alpha.san1",
|
|
4
4
|
"description": "Library containing experience widgets",
|
|
5
5
|
"main": "dist/index.es.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -125,4 +125,4 @@
|
|
|
125
125
|
"README.md"
|
|
126
126
|
],
|
|
127
127
|
"packageManager": "yarn@4.9.2"
|
|
128
|
-
}
|
|
128
|
+
}
|