@mx-cartographer/experiences 6.0.15 → 6.0.17-alpha-ram1-budgets-empty-state

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/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [6.0.17] - 05-09-2025
2
+
3
+ - **ADDED** - EmptyState for Budgets Component.
4
+
5
+ ## [6.0.16] - 05-09-2025
6
+
7
+ - **ADDED** - Initial Investments layout
8
+
1
9
  ## [6.0.15] - 05-08-2025
2
10
 
3
11
  - **UPDATED** - `Dashboard` to use updated MXUI breakpoints
@@ -4,7 +4,6 @@ export declare class BudgetsApi {
4
4
  constructor(endpoint: string, token: string);
5
5
  addBudget: (category: Category, amount: number, parentGuid?: string | null) => Promise<any>;
6
6
  deleteBudget: (guid: string) => Promise<any>;
7
- generateBudgets: () => Promise<any>;
8
7
  getBudgets: () => Promise<any>;
9
8
  updateBudget: (budget: Budget) => Promise<any>;
10
9
  }
@@ -1,5 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  interface BubbleBudgetsProps {
3
+ createBudgetOnClick?: () => void;
3
4
  height: number;
4
5
  isDraggable?: boolean;
5
6
  shouldShowZeroState: boolean;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ interface BudgetsEmptyStateProps {
3
+ onConnectAccountsClick: () => void;
4
+ createBudgetOnClick: () => void;
5
+ height?: number;
6
+ width?: number;
7
+ }
8
+ export declare const BudgetsEmptyState: React.FC<BudgetsEmptyStateProps>;
9
+ export {};
@@ -18,6 +18,7 @@ export declare class BudgetsStore {
18
18
  get totalBudgeted(): number;
19
19
  addBudget: (category: Category, amount: number, parentGuid?: string | null) => Promise<void>;
20
20
  deleteBudget: (guid: string) => Promise<void>;
21
+ deleteAllBudgets: () => Promise<void[]>;
21
22
  loadBudgets: () => Promise<void>;
22
23
  setAlert: (alert: string) => string;
23
24
  setDateRange: (dateRange: DateRange) => DateRange;
@@ -28,6 +29,9 @@ export declare class BudgetsStore {
28
29
  * Recalculate budget by using the average amount from top-level categories
29
30
  * @param categories Detailed categories
30
31
  */
31
- recalculateBudgets: (categories: DetailedCategory[]) => Promise<void>;
32
+ recalculateBudgets: (categories: DetailedCategory[]) => Promise<{
33
+ data: Budget[];
34
+ isSuccess: boolean;
35
+ }>;
32
36
  updateBudget: (budget: Budget) => Promise<void>;
33
37
  }
@@ -1,10 +1,14 @@
1
1
  import { default as React } from 'react';
2
+ import { SxProps } from '@mui/material/styles';
2
3
  interface EmptyWidgetProps {
3
- buttonText: string;
4
+ iconColor?: string;
4
5
  header: string;
5
6
  icon: string;
6
- onClick: () => void;
7
+ onClick: (buttonType: string) => void;
8
+ primaryButton: string;
9
+ secondaryButton?: string;
7
10
  subText: string;
11
+ sx?: SxProps;
8
12
  }
9
13
  export declare const EmptyState: React.FC<EmptyWidgetProps>;
10
14
  export {};
@@ -1,4 +1,4 @@
1
- import { AccountsCopy, BudgetsCopy, CashflowCopy, CategoryCopy, CommonCopy, ConnectCopy, DebtsCopy, GoalsCopy, HelpCopy, InsightsFeedCopy, MicroInsightsCopy, NetWorthCopy, NotificationsCopy, RecurringCopy, SettingsCopy, SpendingCopy, TransactionsCopy, TrendsCopy } from './localization';
1
+ import { AccountsCopy, BudgetsCopy, CashflowCopy, CategoryCopy, CommonCopy, ConnectCopy, DebtsCopy, GoalsCopy, HelpCopy, InsightsFeedCopy, InvestmentsCopy, MicroInsightsCopy, NetWorthCopy, NotificationsCopy, RecurringCopy, SettingsCopy, SpendingCopy, TransactionsCopy, TrendsCopy } from './localization';
2
2
  export interface GlobalCopy {
3
3
  accounts: AccountsCopy;
4
4
  budgets: BudgetsCopy;
@@ -10,6 +10,7 @@ export interface GlobalCopy {
10
10
  goals: GoalsCopy;
11
11
  help: HelpCopy;
12
12
  insights_feed: InsightsFeedCopy;
13
+ investments: InvestmentsCopy;
13
14
  micro_insights: MicroInsightsCopy;
14
15
  net_worth: NetWorthCopy;
15
16
  notifications: NotificationsCopy;
@@ -1,4 +1,5 @@
1
1
  export interface BudgetsCopy {
2
+ add_budgets_button: string;
2
3
  add_description_bottom: string;
3
4
  add_description_top: string;
4
5
  add_label: string;
@@ -12,11 +13,15 @@ export interface BudgetsCopy {
12
13
  alert_budget_updated: string;
13
14
  alert_csv_downloaded: string;
14
15
  alert_recalculated_budgets: string;
16
+ autogenerate_budgets_error_header: string;
17
+ autogenerate_budgets_error_subheader: string;
18
+ autogenerate_budgets_error_primary_button: string;
15
19
  budget_categories_title: string;
16
20
  budget_remaining_left: string;
17
21
  budget_remaining_over: string;
18
22
  budgeted: string;
19
23
  budgets_title: string;
24
+ create_budgets_title: string;
20
25
  delete_description: string;
21
26
  delete_title: string;
22
27
  details_cta: string;
@@ -28,6 +33,9 @@ export interface BudgetsCopy {
28
33
  details_transaction_drawer: string;
29
34
  details_transactions_tab: string;
30
35
  edit_save_button: string;
36
+ empty_state_subheader: string;
37
+ empty_state_primary_button: string;
38
+ empty_state_secondary_button: string;
31
39
  get_started_cta: string;
32
40
  income_description: string;
33
41
  income_title: string;
@@ -45,7 +53,12 @@ export interface BudgetsCopy {
45
53
  remaining: string;
46
54
  spending_description: string;
47
55
  spending_title: string;
56
+ zero_state_budget_list_text: string;
48
57
  zero_state_description: string;
58
+ zero_state_generate_budgets_header: string;
59
+ zero_state_generate_budgets_primary_button: string;
60
+ zero_state_generate_budgets_secondary_button: string;
61
+ zero_state_generate_budgets_subheader: string;
49
62
  zero_state_title: string;
50
63
  zero_state_no_sub_budgets: string;
51
64
  zero_state_no_sub_budgets_description: string;
@@ -0,0 +1,6 @@
1
+ export interface InvestmentsCopy {
2
+ tab_allocation_title: string;
3
+ tab_analysis_title: string;
4
+ tab_overview_title: string;
5
+ title: string;
6
+ }
@@ -12,6 +12,7 @@ export type { DebtsCopy } from './DebtsCopy';
12
12
  export type { GoalsCopy } from './GoalsCopy';
13
13
  export type { HelpCopy } from './HelpCopy';
14
14
  export type { InsightsFeedCopy } from './InsightsFeedCopy';
15
+ export type { InvestmentsCopy } from './InvestmentsCopy';
15
16
  export type { MicroInsightsCopy } from './MicroInsightsCopy';
16
17
  export type { NetWorthCopy } from './NetWorthCopy';
17
18
  export type { NotificationsCopy } from './NotificationsCopy';
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ export * from './dashboard';
7
7
  export * from './debts';
8
8
  export * from './goals';
9
9
  export * from './help';
10
+ export * from './investments';
10
11
  export * from './merchants';
11
12
  export * from './microinsights';
12
13
  export * from './networth';