@mx-cartographer/experiences 6.3.0-alpha.mega1 → 6.3.2

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,2 +1,4 @@
1
- declare const Allocation: () => import("react/jsx-runtime").JSX.Element;
2
- export default Allocation;
1
+ declare const _default: (() => import("react/jsx-runtime").JSX.Element) & {
2
+ displayName: string;
3
+ };
4
+ export default _default;
@@ -14,7 +14,6 @@ interface InvestmentDetailsDrawerProps {
14
14
  accountHoldingsData: {
15
15
  accounts: any;
16
16
  holdings: HoldingDetail[];
17
- members: any;
18
17
  };
19
18
  }
20
19
  declare const InvestmentDetailsDrawer: React.FC<InvestmentDetailsDrawerProps>;
@@ -0,0 +1,10 @@
1
+ import { InvestmentsData } from './InvestmentsAllocationChart';
2
+ interface InvestmentAllocationListProps {
3
+ data: InvestmentsData;
4
+ onSelected: (id: string) => void;
5
+ selectedId?: string;
6
+ selectedTabs: number;
7
+ setSelectedTabs: (value: number) => void;
8
+ }
9
+ export declare const InvestementAllocationList: ({ data, onSelected, selectedId, selectedTabs, setSelectedTabs, }: InvestmentAllocationListProps) => import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,29 @@
1
+ import { default as React } from 'react';
2
+ import { InvestmentsAllocationData } from './util/createInvestementsAllocationData';
3
+ export interface DonutData {
4
+ id: string;
5
+ label?: string;
6
+ color: string;
7
+ value: number;
8
+ }
9
+ export interface InvestmentsData {
10
+ investmentsData: InvestmentsAllocationData[];
11
+ donutData: DonutData[];
12
+ totalAmount: number;
13
+ totalGainLoss: number;
14
+ totalMarketValue: number;
15
+ totalGainLossPercentage: number;
16
+ }
17
+ interface InvestementAllocationProps {
18
+ data: InvestmentsData;
19
+ hoveredId?: string;
20
+ isPercentage?: boolean;
21
+ onSelected: (id: string) => void;
22
+ onMouseEnter: (id: string) => void;
23
+ onMouseLeave: (id: string) => void;
24
+ selectedId?: string;
25
+ size?: number;
26
+ totalLabel: string;
27
+ }
28
+ export declare const InvestementsAllocationChart: React.FC<InvestementAllocationProps>;
29
+ export {};
@@ -0,0 +1,28 @@
1
+ import { Account, Holding } from '../../../../common';
2
+ import { InvestmentAllocationCopy } from '../../../../common/types/localization/InvestmentsCopy';
3
+ import { DonutData } from '../InvestmentsAllocationChart';
4
+ export interface InvestmentsAllocationData {
5
+ name: string;
6
+ displayName: string;
7
+ guid: string;
8
+ holdings: InvestmentAllocationTotals[];
9
+ percentage: number;
10
+ value: number;
11
+ color: string;
12
+ }
13
+ export interface InvestmentAllocationTotals {
14
+ displayName: string;
15
+ name: string;
16
+ value: number;
17
+ percentage: number;
18
+ }
19
+ export declare const createInvestmentsAllocationData: (accounts: Account[], copy: InvestmentAllocationCopy, holdings: Holding[]) => {
20
+ investmentsData: InvestmentsAllocationData[];
21
+ donutData: DonutData[];
22
+ totalAmount: number;
23
+ totalGainLoss: number;
24
+ totalMarketValue: number;
25
+ totalGainLossPercentage: number;
26
+ };
27
+ export declare const percentageDisplay: (value: number) => string | number | undefined;
28
+ export declare const currencyDisplay: (value: number) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "6.3.0-alpha.mega1",
3
+ "version": "6.3.2",
4
4
  "description": "Library containing experience widgets",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",