@mx-cartographer/insights-ui 1.2.0
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 +24 -0
- package/dist/components/DirectDeposit/DirectDeposit.d.ts +16 -0
- package/dist/components/DirectDeposit/FullFeedBodyHeader.d.ts +6 -0
- package/dist/components/DirectDeposit/FullFeedLogoSection.d.ts +7 -0
- package/dist/components/DirectDeposit/LeftBox.d.ts +7 -0
- package/dist/components/DirectDeposit/LowerBoxSection.d.ts +10 -0
- package/dist/components/DirectDeposit/MiniBodyHeader.d.ts +7 -0
- package/dist/components/DirectDeposit/RightBox.d.ts +8 -0
- package/dist/components/GenericFeedback/FeedbackButtons.d.ts +15 -0
- package/dist/components/GenericFeedback/FeedbackDescription.d.ts +6 -0
- package/dist/components/GenericFeedback/FeedbackHeader.d.ts +15 -0
- package/dist/components/GenericFeedback/FeedbackOptions.d.ts +9 -0
- package/dist/components/GenericFeedback/FeedbackText.d.ts +12 -0
- package/dist/components/GoalProgress.d.ts +10 -0
- package/dist/components/GradientBox.d.ts +8 -0
- package/dist/components/InsightsCard/CardButtonSection.d.ts +7 -0
- package/dist/components/InsightsCard/CardError.d.ts +6 -0
- package/dist/components/InsightsCard/CardHeader.d.ts +7 -0
- package/dist/components/InsightsCard/CardLoading.d.ts +6 -0
- package/dist/components/InsightsCard/ContentAndDescription.d.ts +13 -0
- package/dist/components/InsightsCard/Description.d.ts +11 -0
- package/dist/components/InsightsCard/InsightButton.d.ts +14 -0
- package/dist/components/InsightsCard/Shell.d.ts +13 -0
- package/dist/components/Menu/MenuHeaderCloseButton.d.ts +10 -0
- package/dist/components/ProgressBar.d.ts +9 -0
- package/dist/components/index.d.ts +24 -0
- package/dist/constants/Logo.d.ts +2 -0
- package/dist/constants/Theme.d.ts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.es.js +1127 -0
- package/dist/index.es.js.map +1 -0
- package/dist/insights/MonthlyEmergencyFundReview/LastMonthsContributionSection.d.ts +6 -0
- package/dist/insights/MonthlyEmergencyFundReview/MonthlyEmergencyFundReviewBody.d.ts +21 -0
- package/dist/insights/MonthlyEmergencyFundReview/ProjectedCompletionSection.d.ts +6 -0
- package/dist/insights/MonthlyEmergencyFundReview/TotalSection.d.ts +7 -0
- package/dist/insights/MonthlyEmergencyFundReview/index.d.ts +4 -0
- package/dist/insights/SetUpDirectDeposit/SetUpDirectDepositBody.d.ts +17 -0
- package/dist/insights/SetUpDirectDeposit/index.d.ts +1 -0
- package/dist/insights/SwitchDirectDeposit/AccountBox.d.ts +7 -0
- package/dist/insights/SwitchDirectDeposit/SwitchDirectDepositBody.d.ts +21 -0
- package/dist/insights/SwitchDirectDeposit/SwitchDirectDepositMainContainer.d.ts +9 -0
- package/dist/insights/SwitchDirectDeposit/index.d.ts +3 -0
- package/dist/insights/__tests__/SetUpDirectDeposit.test.d.ts +0 -0
- package/dist/insights/__tests__/SwitchDirectDeposit.test.d.ts +0 -0
- package/dist/insights/index.d.ts +3 -0
- package/dist/themes/Typography.d.ts +3 -0
- package/dist/themes/index.d.ts +1 -0
- package/package.json +92 -0
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
## Getting started
|
|
2
|
+
In order to run the project you will need to make sure that you have yarn installed. It must be higher than 1.22 in order to do that you must have corepack enabled. Do not just run "npm i" to install dependencies, all packages must be installed with yarn.
|
|
3
|
+
|
|
4
|
+
1. Install [yarn](https://yarnpkg.com/getting-started/install)
|
|
5
|
+
1. From the project root dir, run `yarn` or `yarn install` to install dependencies
|
|
6
|
+
1. To start the project run `yarn dev` (the project should automatically run in the browser)
|
|
7
|
+
|
|
8
|
+
## Merging and Publishing
|
|
9
|
+
|
|
10
|
+
1. After MR is approved, type `shipit` in the comments. Wait for shipit to merge your branch.
|
|
11
|
+
1. After your changes have been merged to master, switch to the master branch and pull down the new changes.
|
|
12
|
+
1. Run `npm publish --dry-run`.
|
|
13
|
+
1. If the dry run works, go ahead and run `npm publish`. Look for something like '@insights/ui@2.4.2' in the terminal output. Copy it and paste it to the end of `git tag` ex: `git tag @insights/ui@2.4.2`in the terminal. After that, run `git push origin --tags` and you're done.
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## Insight-ui
|
|
17
|
+
|
|
18
|
+
The QA storybook containing the latest changes is [accessible here] In the works.
|
|
19
|
+
|
|
20
|
+
This will be the new home for individual insight ui.
|
|
21
|
+
|
|
22
|
+
#Getting Started
|
|
23
|
+
|
|
24
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface DirectDepositProps {
|
|
3
|
+
accountGuid: string;
|
|
4
|
+
animation: {
|
|
5
|
+
shouldRun?: boolean;
|
|
6
|
+
};
|
|
7
|
+
leftLowerText: string;
|
|
8
|
+
leftUpperText: string;
|
|
9
|
+
headerString: string;
|
|
10
|
+
isComplete?: boolean;
|
|
11
|
+
isMini: boolean;
|
|
12
|
+
rightLowerText: string;
|
|
13
|
+
rightUpperText: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const DirectDeposit: React.FC<DirectDepositProps>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface LowerBoxSectionProps {
|
|
3
|
+
isComplete?: boolean;
|
|
4
|
+
leftLowerText: string;
|
|
5
|
+
leftUpperText: string;
|
|
6
|
+
rightLowerText: string;
|
|
7
|
+
rightUpperText: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const LowerBoxesSection: React.FC<LowerBoxSectionProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface FeedbackButtonsProps {
|
|
3
|
+
buttonText: {
|
|
4
|
+
cancelText: string;
|
|
5
|
+
submitText: string;
|
|
6
|
+
};
|
|
7
|
+
errorMessage: string;
|
|
8
|
+
feedbackMessage: string;
|
|
9
|
+
onCancel: () => void;
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
otherOptionIndex: number;
|
|
12
|
+
selectedRadio?: number;
|
|
13
|
+
}
|
|
14
|
+
export declare const FeedbackButtons: React.FC<FeedbackButtonsProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface FeedbackHeaderProps {
|
|
3
|
+
ariaLabelText: string;
|
|
4
|
+
headerText: string;
|
|
5
|
+
menuHeaderCloserButtonAriaLabel: {
|
|
6
|
+
ratingExist: string;
|
|
7
|
+
ratingDoesntExist: string;
|
|
8
|
+
ariaLabelText: string;
|
|
9
|
+
};
|
|
10
|
+
onCancel: () => void;
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
rating?: number;
|
|
13
|
+
}
|
|
14
|
+
export declare const FeedbackHeader: React.FC<FeedbackHeaderProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface FeedBackOptionsProps {
|
|
3
|
+
feedbackOptions: Array<string>;
|
|
4
|
+
groupAriaLabel: string;
|
|
5
|
+
selectedRadio?: number;
|
|
6
|
+
setSelectedRadio: (i: number) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const FeedbackOptions: React.FC<FeedBackOptionsProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface BeatFeedbackTextProps {
|
|
3
|
+
feedbackAriaLabel: string;
|
|
4
|
+
feedbackDescriptionPlaceHolder: string;
|
|
5
|
+
feedbackLabel: string;
|
|
6
|
+
feedbackMessage?: string;
|
|
7
|
+
sendAnalytics: () => void;
|
|
8
|
+
setFeedbackMessage: (event?: React.MouseEvent<HTMLButtonElement, MouseEvent> | string | undefined) => void;
|
|
9
|
+
validateForm: (event?: React.MouseEvent<HTMLButtonElement, MouseEvent> | string | undefined) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const BeatFeedbackText: React.FC<BeatFeedbackTextProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface PulseGoalProgressProps {
|
|
3
|
+
backgroundOverride?: string;
|
|
4
|
+
goalPercentage: number;
|
|
5
|
+
height?: number;
|
|
6
|
+
percentageCompleteText: string;
|
|
7
|
+
progressColorOverride?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const PulseGoalProgress: React.FC<PulseGoalProgressProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ContentAndDescriptionProps {
|
|
3
|
+
beat: {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
};
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
descriptionPlacement?: string;
|
|
8
|
+
hideDescription?: boolean;
|
|
9
|
+
inDescriptionCtaOnClick?: (event?: React.MouseEvent<HTMLButtonElement, MouseEvent> | string | undefined) => void;
|
|
10
|
+
withFullWidthImage?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const ContentAndDescription: React.FC<ContentAndDescriptionProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface DescriptionProps {
|
|
3
|
+
beat: {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
};
|
|
6
|
+
buttonInText?: boolean;
|
|
7
|
+
inDescriptionCtaOnClick?: (event?: React.MouseEvent<HTMLButtonElement, MouseEvent> | string | undefined) => void;
|
|
8
|
+
withFullWidthImage?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const Description: React.FC<DescriptionProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface InsightButtonProps {
|
|
3
|
+
beat: {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
};
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
hide?: boolean;
|
|
8
|
+
onClick?: (event?: React.MouseEvent<HTMLButtonElement, MouseEvent> | string | undefined) => void;
|
|
9
|
+
primary?: boolean;
|
|
10
|
+
sx?: object;
|
|
11
|
+
variant?: 'text' | 'contained' | 'outlined';
|
|
12
|
+
}
|
|
13
|
+
export declare const InsightButton: React.FC<InsightButtonProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ShellProps {
|
|
3
|
+
ariaHidden?: boolean;
|
|
4
|
+
beat: {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
};
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
DismissedBeatSwitcher?: React.ReactNode;
|
|
9
|
+
elementTag?: string;
|
|
10
|
+
setRefs?: (...args: any[]) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const Shell: React.FC<ShellProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SxProps } from '@mui/material/styles';
|
|
3
|
+
interface MenuHeaderCloseButtonProps {
|
|
4
|
+
ariaLabel: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
sx?: SxProps;
|
|
8
|
+
}
|
|
9
|
+
export declare const MenuHeaderCloseButton: React.FC<MenuHeaderCloseButtonProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export * from './GoalProgress';
|
|
2
|
+
export * from './GradientBox';
|
|
3
|
+
export * from './ProgressBar';
|
|
4
|
+
export * from './DirectDeposit/DirectDeposit';
|
|
5
|
+
export * from './DirectDeposit/FullFeedBodyHeader';
|
|
6
|
+
export * from './DirectDeposit/FullFeedLogoSection';
|
|
7
|
+
export * from './DirectDeposit/LeftBox';
|
|
8
|
+
export * from './DirectDeposit/LowerBoxSection';
|
|
9
|
+
export * from './DirectDeposit/MiniBodyHeader';
|
|
10
|
+
export * from './DirectDeposit/RightBox';
|
|
11
|
+
export * from './InsightsCard/CardHeader';
|
|
12
|
+
export * from './InsightsCard/CardLoading';
|
|
13
|
+
export * from './InsightsCard/CardButtonSection';
|
|
14
|
+
export * from './InsightsCard/CardError';
|
|
15
|
+
export * from './InsightsCard/ContentAndDescription';
|
|
16
|
+
export * from './InsightsCard/Description';
|
|
17
|
+
export * from './InsightsCard/InsightButton';
|
|
18
|
+
export * from './InsightsCard/Shell';
|
|
19
|
+
export * from './GenericFeedback/FeedbackHeader';
|
|
20
|
+
export * from './GenericFeedback/FeedbackButtons';
|
|
21
|
+
export * from './GenericFeedback/FeedbackDescription';
|
|
22
|
+
export * from './GenericFeedback/FeedbackOptions';
|
|
23
|
+
export * from './GenericFeedback/FeedbackText';
|
|
24
|
+
export * from './Menu/MenuHeaderCloseButton';
|
package/dist/index.d.ts
ADDED