@mx-cartographer/insights-ui 1.4.2 → 1.4.5-alpha.JB0
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/README.md +4 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/insights/DiscoveredAccounts/DiscoveredAccountsBody.d.ts +1 -0
- package/dist/components/insights/DiscoveredAccounts/DiscoveredAccountsLearnMoreDrawer.d.ts +20 -0
- package/dist/components/insights/DiscoveredAccounts/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 +7 -8
- package/dist/components/shared/InsightsCard/Description.d.ts +5 -6
- package/dist/components/shared/InsightsCard/InsightButton.d.ts +3 -5
- package/dist/components/shared/ZeroState/LinedCardZeroState.d.ts +1 -0
- package/dist/index.es.js +927 -674
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,6 +5,10 @@ In order to run the project you will need to make sure that you have yarn instal
|
|
|
5
5
|
1. From the project root dir, run `yarn` or `yarn install` to install dependencies
|
|
6
6
|
1. To start the project run `yarn dev` (the project should automatically run in the browser)
|
|
7
7
|
|
|
8
|
+
## Publishing alpha versions
|
|
9
|
+
1. Bump the version in package.json using the format `major.minor.patch-alpha.<yourinitials><n>`
|
|
10
|
+
1. Run `npm publish --tag alpha`.
|
|
11
|
+
|
|
8
12
|
## Merging and Publishing
|
|
9
13
|
|
|
10
14
|
1. After MR is approved, type `shipit` in the comments. Wait for shipit to merge your branch.
|
|
@@ -10,6 +10,7 @@ export * from './shared/DirectDeposit/LeftBox';
|
|
|
10
10
|
export * from './shared/DirectDeposit/LowerBoxSection';
|
|
11
11
|
export * from './shared/DirectDeposit/MiniBodyHeader';
|
|
12
12
|
export * from './shared/DirectDeposit/RightBox';
|
|
13
|
+
export * from './shared/InsightsCard/BeatCard';
|
|
13
14
|
export * from './shared/InsightsCard/CardHeader';
|
|
14
15
|
export * from './shared/InsightsCard/CardLoading';
|
|
15
16
|
export * from './shared/InsightsCard/CardButtonSection';
|
|
@@ -17,6 +18,7 @@ export * from './shared/InsightsCard/CardError';
|
|
|
17
18
|
export * from './shared/InsightsCard/ContentAndDescription';
|
|
18
19
|
export * from './shared/InsightsCard/Description';
|
|
19
20
|
export * from './shared/InsightsCard/InsightButton';
|
|
21
|
+
export * from './shared/ZeroState/LinedCardZeroState';
|
|
20
22
|
export * from './shared/InsightsCard/Shell';
|
|
21
23
|
export * from './shared/GenericFeedback/FeedbackHeader';
|
|
22
24
|
export * from './shared/GenericFeedback/FeedbackButtons';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
interface DrawerProps {
|
|
2
|
+
footerTitle: string;
|
|
3
|
+
headerText: string;
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
lowerDescription: string;
|
|
6
|
+
lowerHeaderText: string;
|
|
7
|
+
lowerList: Array<{
|
|
8
|
+
content: string;
|
|
9
|
+
icon_name: string;
|
|
10
|
+
title: string;
|
|
11
|
+
}>;
|
|
12
|
+
noButtonText: string;
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
sendResponseAnalytics: (str: string) => void;
|
|
15
|
+
upperDescription: string;
|
|
16
|
+
upperList: string[];
|
|
17
|
+
yesButtonText: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const DiscoveredAccountsLearnMoreDrawer: React.FC<DrawerProps>;
|
|
20
|
+
export {};
|
|
@@ -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,13 +1,12 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
2
|
+
import { Beat } from '../../../types/CommonBeat';
|
|
3
|
+
export interface ContentAndDescriptionProps {
|
|
4
|
+
beat: Beat;
|
|
6
5
|
children?: React.ReactNode;
|
|
7
|
-
descriptionPlacement?:
|
|
6
|
+
descriptionPlacement?: 'top' | 'bottom';
|
|
8
7
|
hideDescription?: boolean;
|
|
9
|
-
inDescriptionCtaOnClick?: (event?: React.MouseEvent<HTMLButtonElement, MouseEvent> | string
|
|
10
|
-
|
|
8
|
+
inDescriptionCtaOnClick?: (event?: React.MouseEvent<HTMLButtonElement, MouseEvent> | string) => void;
|
|
9
|
+
hasFullWidthImage?: boolean;
|
|
10
|
+
hasFooterButton?: boolean;
|
|
11
11
|
}
|
|
12
12
|
export declare const ContentAndDescription: React.FC<ContentAndDescriptionProps>;
|
|
13
|
-
export {};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { Beat } from '../../../types/CommonBeat';
|
|
2
3
|
interface DescriptionProps {
|
|
3
|
-
beat:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
inDescriptionCtaOnClick?: (event?: React.MouseEvent<HTMLButtonElement, MouseEvent> | string | undefined) => void;
|
|
8
|
-
withFullWidthImage?: boolean;
|
|
4
|
+
beat: Beat;
|
|
5
|
+
inDescriptionCtaOnClick?: (event?: React.MouseEvent<HTMLButtonElement, MouseEvent> | string) => void;
|
|
6
|
+
hasFullWidthImage?: boolean;
|
|
7
|
+
footerButton: boolean;
|
|
9
8
|
}
|
|
10
9
|
export declare const Description: React.FC<DescriptionProps>;
|
|
11
10
|
export {};
|
|
@@ -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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LinedCardZeroState: () => import("react/jsx-runtime").JSX.Element;
|