@mx-cartographer/insights-ui 1.16.26-alpha.mega1 → 1.16.26-alpha.mega3
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 +2 -0
- package/dist/components/shared/ChartDrawerTemplate/ChartDrawerTemplate.d.ts +27 -0
- package/dist/components/shared/ChartDrawerTemplate/TipSection.d.ts +7 -0
- package/dist/components/shared/InsightsCard/FeedbackCard.d.ts +13 -0
- package/dist/index.es.js +788 -592
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ export * from './shared/GradientBox';
|
|
|
6
6
|
export * from './shared/MiniInsightCard';
|
|
7
7
|
export * from './shared/MenuAction';
|
|
8
8
|
export * from './shared/ProgressBar';
|
|
9
|
+
export * from './shared/ChartDrawerTemplate/ChartDrawerTemplate';
|
|
9
10
|
export * from './shared/Charts';
|
|
10
11
|
export * from './shared/DirectDeposit/DirectDeposit';
|
|
11
12
|
export * from './shared/DirectDeposit/DirectDepositSubHeader';
|
|
@@ -22,6 +23,7 @@ export * from './shared/InsightsCard/CardError';
|
|
|
22
23
|
export * from './shared/InsightsCard/ContentAndDescription';
|
|
23
24
|
export * from './shared/InsightsCard/Description';
|
|
24
25
|
export * from './shared/InsightsCard/EmbeddedCard';
|
|
26
|
+
export * from './shared/InsightsCard/FeedbackCard';
|
|
25
27
|
export * from './shared/InsightsCard/InsightButton';
|
|
26
28
|
export * from './shared/InsightsCard/MiniDescription';
|
|
27
29
|
export * from './shared/ZeroState/LinedCardZeroState';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { TipSectionProps } from './TipSection';
|
|
2
|
+
interface SubHeading {
|
|
3
|
+
category_guid: string;
|
|
4
|
+
description: string;
|
|
5
|
+
merchant_guid: string;
|
|
6
|
+
}
|
|
7
|
+
interface Beat {
|
|
8
|
+
heading?: string;
|
|
9
|
+
subHeading?: SubHeading;
|
|
10
|
+
}
|
|
11
|
+
interface TabData {
|
|
12
|
+
ariaLabel?: string;
|
|
13
|
+
formattedAmount: string;
|
|
14
|
+
label: string;
|
|
15
|
+
value: number;
|
|
16
|
+
}
|
|
17
|
+
export interface ChartDrawerTemplateProps {
|
|
18
|
+
ariaLabel: string;
|
|
19
|
+
beat: Beat;
|
|
20
|
+
chart: (selectedIndex: number, onBarClick: (index: number) => void) => React.ReactNode;
|
|
21
|
+
children?: (selectedIndex: number) => React.ReactNode;
|
|
22
|
+
data: TabData[];
|
|
23
|
+
defaultSelectedIndex?: number;
|
|
24
|
+
tipSection?: TipSectionProps;
|
|
25
|
+
}
|
|
26
|
+
export declare const ChartDrawerTemplate: ({ ariaLabel, beat, chart, children, data, defaultSelectedIndex, tipSection, }: ChartDrawerTemplateProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface TipSectionProps {
|
|
2
|
+
message: React.ReactNode;
|
|
3
|
+
tipAriaLabel?: string;
|
|
4
|
+
onDismiss?: () => void;
|
|
5
|
+
onAction?: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const TipSection: ({ message, tipAriaLabel, onDismiss, onAction }: TipSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface FeedbackCardProps {
|
|
2
|
+
closeAriaLabel: string;
|
|
3
|
+
feedbackTitle: string;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
onBackClick: () => void;
|
|
6
|
+
onSubmit: (selectedRadio: number, feedbackMessage?: string) => void;
|
|
7
|
+
radioOptions: string[];
|
|
8
|
+
characterLimitText: string;
|
|
9
|
+
backButtonTitle: string;
|
|
10
|
+
submitButtonTitle: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const FeedbackCard: ({ closeAriaLabel, feedbackTitle, onClose, onBackClick, onSubmit, radioOptions, characterLimitText, backButtonTitle, submitButtonTitle, }: FeedbackCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|