@mx-cartographer/insights-ui 1.4.5 → 1.4.6-alpha.mega2
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/dist/components/index.d.ts +3 -1
- package/dist/components/shared/Charts/BarChart/BarChart.d.ts +2 -0
- package/dist/components/shared/Charts/BarChart/ChartLegend.d.ts +7 -0
- package/dist/components/shared/Charts/BarChart/CustomBarPlot.d.ts +8 -0
- package/dist/components/shared/Charts/BarChart/index.d.ts +1 -0
- package/dist/components/shared/Charts/index.d.ts +1 -0
- package/dist/components/shared/InsightsCard/BeatCard.d.ts +15 -0
- package/dist/components/shared/InsightsCard/CardHeader.d.ts +1 -2
- package/dist/components/shared/InsightsCard/ContentAndDescription.d.ts +3 -4
- package/dist/components/shared/InsightsCard/Description.d.ts +2 -5
- package/dist/components/shared/InsightsCard/InsightButton.d.ts +3 -5
- package/dist/index.es.js +836 -580
- package/dist/index.es.js.map +1 -1
- package/package.json +4 -3
- /package/dist/components/shared/InsightsCard/{cardError/CardError.d.ts → CardError.d.ts} +0 -0
|
@@ -2,6 +2,7 @@ export * from './shared/GoalProgress';
|
|
|
2
2
|
export * from './shared/GradientBox';
|
|
3
3
|
export * from './shared/ProgressBar';
|
|
4
4
|
export * from './shared/BottomSheet';
|
|
5
|
+
export * from './shared/Charts/BarChart';
|
|
5
6
|
export * from './shared/DirectDeposit/DirectDeposit';
|
|
6
7
|
export * from './shared/DirectDeposit/DirectDepositSubHeader';
|
|
7
8
|
export * from './shared/DirectDeposit/FullFeedBodyHeader';
|
|
@@ -10,10 +11,11 @@ export * from './shared/DirectDeposit/LeftBox';
|
|
|
10
11
|
export * from './shared/DirectDeposit/LowerBoxSection';
|
|
11
12
|
export * from './shared/DirectDeposit/MiniBodyHeader';
|
|
12
13
|
export * from './shared/DirectDeposit/RightBox';
|
|
14
|
+
export * from './shared/InsightsCard/BeatCard';
|
|
13
15
|
export * from './shared/InsightsCard/CardHeader';
|
|
14
16
|
export * from './shared/InsightsCard/CardLoading';
|
|
15
17
|
export * from './shared/InsightsCard/CardButtonSection';
|
|
16
|
-
export * from './shared/InsightsCard/
|
|
18
|
+
export * from './shared/InsightsCard/CardError';
|
|
17
19
|
export * from './shared/InsightsCard/ContentAndDescription';
|
|
18
20
|
export * from './shared/InsightsCard/Description';
|
|
19
21
|
export * from './shared/InsightsCard/InsightButton';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface LegendProps {
|
|
2
|
+
average?: number;
|
|
3
|
+
color: string;
|
|
4
|
+
legendLabelAvg?: string;
|
|
5
|
+
legendLabelMain?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const Legend: ({ average, color, legendLabelAvg, legendLabelMain }: LegendProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BarDataProps } from '../../../../types/Charts/BarChart';
|
|
2
|
+
export interface CustomBarPlotProps {
|
|
3
|
+
colorRange: string[];
|
|
4
|
+
data: BarDataProps[];
|
|
5
|
+
dataIndex: number;
|
|
6
|
+
style: React.CSSProperties | undefined;
|
|
7
|
+
}
|
|
8
|
+
export declare const CustomBarPlot: ({ colorRange, data, dataIndex, style, ...restProps }: CustomBarPlotProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BarChart';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BarChart';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CardHeaderProps } from './CardHeader';
|
|
3
|
+
import { ContentAndDescriptionProps } from './ContentAndDescription';
|
|
4
|
+
interface BeatCardProps {
|
|
5
|
+
button?: React.ReactNode;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
description: ContentAndDescriptionProps;
|
|
8
|
+
feedback?: React.ReactNode;
|
|
9
|
+
header: CardHeaderProps;
|
|
10
|
+
isError?: boolean;
|
|
11
|
+
isLoading?: boolean;
|
|
12
|
+
errorText?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const BeatCard: ({ button, children, description, header, isError, isLoading, errorText, feedback, }: BeatCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { MenuItemProps } from './CardMenuItem';
|
|
3
|
-
interface CardHeaderProps {
|
|
3
|
+
export interface CardHeaderProps {
|
|
4
4
|
ariaLabel?: string;
|
|
5
5
|
menuItems?: MenuItemProps[];
|
|
6
6
|
onClick?: (index: number, key: string) => void;
|
|
@@ -9,4 +9,3 @@ interface CardHeaderProps {
|
|
|
9
9
|
title: string;
|
|
10
10
|
}
|
|
11
11
|
export declare const CardHeader: React.FC<CardHeaderProps>;
|
|
12
|
-
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface ContentAndDescriptionProps {
|
|
4
|
-
beat:
|
|
2
|
+
import { Beat } from '../../../types/CommonBeat';
|
|
3
|
+
export interface ContentAndDescriptionProps {
|
|
4
|
+
beat: Beat;
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
descriptionPlacement?: 'top' | 'bottom';
|
|
7
7
|
hideDescription?: boolean;
|
|
@@ -10,4 +10,3 @@ interface ContentAndDescriptionProps {
|
|
|
10
10
|
hasFooterButton?: boolean;
|
|
11
11
|
}
|
|
12
12
|
export declare const ContentAndDescription: React.FC<ContentAndDescriptionProps>;
|
|
13
|
-
export {};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
html_description: string;
|
|
4
|
-
in_description_cta: string;
|
|
5
|
-
}
|
|
2
|
+
import { Beat } from '../../../types/CommonBeat';
|
|
6
3
|
interface DescriptionProps {
|
|
7
|
-
beat:
|
|
4
|
+
beat: Beat;
|
|
8
5
|
inDescriptionCtaOnClick?: (event?: React.MouseEvent<HTMLButtonElement, MouseEvent> | string) => void;
|
|
9
6
|
hasFullWidthImage?: boolean;
|
|
10
7
|
footerButton: boolean;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
2
|
+
import { Beat } from '../../../types/CommonBeat';
|
|
3
|
+
export interface InsightButtonProps {
|
|
4
|
+
beat: Beat;
|
|
6
5
|
disabled?: boolean;
|
|
7
6
|
hide?: boolean;
|
|
8
7
|
onClick?: (event?: React.MouseEvent<HTMLButtonElement, MouseEvent> | string | undefined) => void;
|
|
@@ -11,4 +10,3 @@ interface InsightButtonProps {
|
|
|
11
10
|
variant?: 'text' | 'contained' | 'outlined';
|
|
12
11
|
}
|
|
13
12
|
export declare const InsightButton: React.FC<InsightButtonProps>;
|
|
14
|
-
export {};
|