@mx-cartographer/experiences 6.0.16 → 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 +4 -0
- package/dist/budgets/api/BudgetsApi.d.ts +0 -1
- package/dist/budgets/components/BubbleBudgets.d.ts +1 -0
- package/dist/budgets/components/BudgetsEmptyState.d.ts +9 -0
- package/dist/budgets/store/BudgetsStore.d.ts +5 -1
- package/dist/common/components/EmptyState.d.ts +6 -2
- package/dist/common/types/localization/BudgetsCopy.d.ts +13 -0
- package/dist/index.es.js +2267 -2109
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -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
|
}
|
|
@@ -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<
|
|
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
|
-
|
|
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,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;
|