@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.
Files changed (48) hide show
  1. package/README.md +24 -0
  2. package/dist/components/DirectDeposit/DirectDeposit.d.ts +16 -0
  3. package/dist/components/DirectDeposit/FullFeedBodyHeader.d.ts +6 -0
  4. package/dist/components/DirectDeposit/FullFeedLogoSection.d.ts +7 -0
  5. package/dist/components/DirectDeposit/LeftBox.d.ts +7 -0
  6. package/dist/components/DirectDeposit/LowerBoxSection.d.ts +10 -0
  7. package/dist/components/DirectDeposit/MiniBodyHeader.d.ts +7 -0
  8. package/dist/components/DirectDeposit/RightBox.d.ts +8 -0
  9. package/dist/components/GenericFeedback/FeedbackButtons.d.ts +15 -0
  10. package/dist/components/GenericFeedback/FeedbackDescription.d.ts +6 -0
  11. package/dist/components/GenericFeedback/FeedbackHeader.d.ts +15 -0
  12. package/dist/components/GenericFeedback/FeedbackOptions.d.ts +9 -0
  13. package/dist/components/GenericFeedback/FeedbackText.d.ts +12 -0
  14. package/dist/components/GoalProgress.d.ts +10 -0
  15. package/dist/components/GradientBox.d.ts +8 -0
  16. package/dist/components/InsightsCard/CardButtonSection.d.ts +7 -0
  17. package/dist/components/InsightsCard/CardError.d.ts +6 -0
  18. package/dist/components/InsightsCard/CardHeader.d.ts +7 -0
  19. package/dist/components/InsightsCard/CardLoading.d.ts +6 -0
  20. package/dist/components/InsightsCard/ContentAndDescription.d.ts +13 -0
  21. package/dist/components/InsightsCard/Description.d.ts +11 -0
  22. package/dist/components/InsightsCard/InsightButton.d.ts +14 -0
  23. package/dist/components/InsightsCard/Shell.d.ts +13 -0
  24. package/dist/components/Menu/MenuHeaderCloseButton.d.ts +10 -0
  25. package/dist/components/ProgressBar.d.ts +9 -0
  26. package/dist/components/index.d.ts +24 -0
  27. package/dist/constants/Logo.d.ts +2 -0
  28. package/dist/constants/Theme.d.ts +4 -0
  29. package/dist/index.d.ts +4 -0
  30. package/dist/index.es.js +1127 -0
  31. package/dist/index.es.js.map +1 -0
  32. package/dist/insights/MonthlyEmergencyFundReview/LastMonthsContributionSection.d.ts +6 -0
  33. package/dist/insights/MonthlyEmergencyFundReview/MonthlyEmergencyFundReviewBody.d.ts +21 -0
  34. package/dist/insights/MonthlyEmergencyFundReview/ProjectedCompletionSection.d.ts +6 -0
  35. package/dist/insights/MonthlyEmergencyFundReview/TotalSection.d.ts +7 -0
  36. package/dist/insights/MonthlyEmergencyFundReview/index.d.ts +4 -0
  37. package/dist/insights/SetUpDirectDeposit/SetUpDirectDepositBody.d.ts +17 -0
  38. package/dist/insights/SetUpDirectDeposit/index.d.ts +1 -0
  39. package/dist/insights/SwitchDirectDeposit/AccountBox.d.ts +7 -0
  40. package/dist/insights/SwitchDirectDeposit/SwitchDirectDepositBody.d.ts +21 -0
  41. package/dist/insights/SwitchDirectDeposit/SwitchDirectDepositMainContainer.d.ts +9 -0
  42. package/dist/insights/SwitchDirectDeposit/index.d.ts +3 -0
  43. package/dist/insights/__tests__/SetUpDirectDeposit.test.d.ts +0 -0
  44. package/dist/insights/__tests__/SwitchDirectDeposit.test.d.ts +0 -0
  45. package/dist/insights/index.d.ts +3 -0
  46. package/dist/themes/Typography.d.ts +3 -0
  47. package/dist/themes/index.d.ts +1 -0
  48. 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,6 @@
1
+ import { default as React } from 'react';
2
+ interface BodyHeaderProps {
3
+ headerString: string;
4
+ }
5
+ export declare const FullFeedBodyHeader: React.FC<BodyHeaderProps>;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ interface FullFeedLogoSectionProps {
3
+ accountGuid: string;
4
+ width: string | number;
5
+ }
6
+ export declare const FullFeedLogoSection: React.FC<FullFeedLogoSectionProps>;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ interface LeftBoxProps {
3
+ leftLowerText: string;
4
+ leftUpperText: string;
5
+ }
6
+ export declare const LeftBox: React.FC<LeftBoxProps>;
7
+ 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,7 @@
1
+ import { default as React } from 'react';
2
+ interface MiniBodyHeaderProps {
3
+ accountGuid: string;
4
+ headerString: string;
5
+ }
6
+ export declare const MiniBodyHeader: React.FC<MiniBodyHeaderProps>;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ interface RightBoxProps {
3
+ isComplete?: boolean;
4
+ rightLowerText: string;
5
+ rightUpperText: string;
6
+ }
7
+ export declare const RightBox: React.FC<RightBoxProps>;
8
+ 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,6 @@
1
+ import { default as React } from 'react';
2
+ interface FeedbackDescriptionProps {
3
+ bodyText: string;
4
+ }
5
+ export declare const FeedbackDescription: React.FC<FeedbackDescriptionProps>;
6
+ 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,8 @@
1
+ import { default as React } from 'react';
2
+ interface PulseGraidentBoxProps {
3
+ children: React.ReactNode;
4
+ gradientOverride?: string;
5
+ title: string;
6
+ }
7
+ export declare const PulseGraidentBox: React.FC<PulseGraidentBoxProps>;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ interface CardButtonSectionProps {
3
+ button: React.ReactNode;
4
+ withFullWidthImage?: boolean;
5
+ }
6
+ export declare const CardButtonSection: React.FC<CardButtonSectionProps>;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface CardErrorProps {
3
+ erroredText: string;
4
+ }
5
+ export declare const CardError: React.FC<CardErrorProps>;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ interface CardHeaderProps {
3
+ children: React.ReactNode;
4
+ withFullWidthImage?: boolean;
5
+ }
6
+ export declare const CardHeader: React.FC<CardHeaderProps>;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface CardLoadingProps {
3
+ altImg?: string;
4
+ }
5
+ export declare const CardLoading: React.FC<CardLoadingProps>;
6
+ 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,9 @@
1
+ import { default as React } from 'react';
2
+ interface PulseProgressBarProps {
3
+ backgroundColor?: string;
4
+ color: string;
5
+ percent: number;
6
+ height: number;
7
+ }
8
+ export declare const PulseProgressBar: React.FC<PulseProgressBarProps>;
9
+ 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';
@@ -0,0 +1,2 @@
1
+ export declare const DEFAULT_LOGO_SIZE = 32;
2
+ export declare const ASSETS_URL = "https://content.moneydesktop.com/storage/MD_Assets";
@@ -0,0 +1,4 @@
1
+ export declare const MODE: {
2
+ LIGHT: string;
3
+ DARK: string;
4
+ };
@@ -0,0 +1,4 @@
1
+ export * from './components';
2
+ export * from './insights/MonthlyEmergencyFundReview';
3
+ export * from './insights/SetUpDirectDeposit';
4
+ export * from './insights/SwitchDirectDeposit';