@veevarts/design-system 1.13.0-alpha.2 → 1.13.0-alpha.3
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/dist/index.cjs +4 -4
- package/dist/index.js +3611 -3446
- package/dist/patterns/InstallmentFundAssignment/utils.d.ts +1 -0
- package/dist/patterns/InstallmentSchedule/InstallmentSchedule.d.ts +1 -1
- package/dist/patterns/InstallmentSchedule/InstallmentTable.d.ts +1 -1
- package/dist/patterns/InstallmentSchedule/index.d.ts +1 -1
- package/dist/patterns/InstallmentSchedule/types.d.ts +20 -4
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { InstallmentFundAssignmentEntry, InstallmentFundAssignmentMode } from './types';
|
|
2
2
|
export declare const createEmptyAssignment: () => InstallmentFundAssignmentEntry;
|
|
3
|
+
export declare function isEmptyAssignmentDraft(assignment: InstallmentFundAssignmentEntry): boolean;
|
|
3
4
|
export declare function getAssignmentsForModeChange({ nextMode, assignments, previousSingleAssignments, previousSplitAssignments, }: {
|
|
4
5
|
nextMode: InstallmentFundAssignmentMode;
|
|
5
6
|
assignments: InstallmentFundAssignmentEntry[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
2
|
import { InstallmentScheduleProps } from './types';
|
|
3
|
-
export declare function InstallmentSchedule({ mode, donationAmount, currency, locale, installments, automaticSettings, labels: customLabels, classNames, isSaving, isModeSwitchDisabled, onModeChange, onAutomaticSettingsChange, onInstallmentsChange, onSave, }: InstallmentScheduleProps): JSX.Element;
|
|
3
|
+
export declare function InstallmentSchedule({ mode: controlledMode, donationAmount, currency, locale, installments, automaticSettings, defaultTab, showTitle, showCard, showSavePayment, showTabs, inputs, startDate, labels: customLabels, classNames, isSaving, isModeSwitchDisabled, onModeChange, onAutomaticSettingsChange, onInstallmentsChange, onSave, }: InstallmentScheduleProps): JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
2
|
import { InstallmentTableProps } from './types';
|
|
3
|
-
export declare function InstallmentTable({ installments, currency, locale, labels: customLabels, isSaving, onEditInstallments, onPayInstallment, onDeleteInstallment, }: InstallmentTableProps): JSX.Element;
|
|
3
|
+
export declare function InstallmentTable({ installments, currency, locale, showTitle, showCard, showEditPayment, labels: customLabels, isSaving, onEditInstallments, onPayInstallment, onDeleteInstallment, }: InstallmentTableProps): JSX.Element;
|
|
@@ -2,4 +2,4 @@ export { InstallmentSchedule } from './InstallmentSchedule';
|
|
|
2
2
|
export { InstallmentScheduleSkeleton } from './InstallmentScheduleSkeleton';
|
|
3
3
|
export { InstallmentTable } from './InstallmentTable';
|
|
4
4
|
export { generateAutomaticInstallments } from './utils';
|
|
5
|
-
export type { AutomaticScheduleSettings, InstallmentFrequency, InstallmentTableLabels, InstallmentTableProps, InstallmentScheduleClassNames, InstallmentScheduleLabels, InstallmentScheduleMode, InstallmentScheduleProps, ScheduledInstallment, } from './types';
|
|
5
|
+
export type { AutomaticScheduleSettings, InstallmentFrequency, InstallmentScheduleInput, InstallmentTableLabels, InstallmentTableProps, InstallmentScheduleClassNames, InstallmentScheduleLabels, InstallmentScheduleMode, InstallmentScheduleProps, ScheduledInstallment, } from './types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
export type InstallmentScheduleMode = 'automatic' | 'manual';
|
|
3
|
-
export type InstallmentFrequency = 'monthly' | 'quarterly' | 'annual';
|
|
3
|
+
export type InstallmentFrequency = 'weekly' | 'monthly' | 'quarterly' | 'annual';
|
|
4
4
|
export type ScheduledInstallment = {
|
|
5
5
|
id: string;
|
|
6
6
|
dueDate: string;
|
|
@@ -12,6 +12,7 @@ export type AutomaticScheduleSettings = {
|
|
|
12
12
|
frequency: InstallmentFrequency;
|
|
13
13
|
firstInstallmentDate: string;
|
|
14
14
|
};
|
|
15
|
+
export type InstallmentScheduleInput = keyof AutomaticScheduleSettings | 'dayOfMonth';
|
|
15
16
|
export type InstallmentScheduleLabels = {
|
|
16
17
|
title?: string;
|
|
17
18
|
automaticMode?: string;
|
|
@@ -24,6 +25,7 @@ export type InstallmentScheduleLabels = {
|
|
|
24
25
|
emptyManual?: string;
|
|
25
26
|
numberOfInstallments?: string;
|
|
26
27
|
frequency?: string;
|
|
28
|
+
dayOfMonth?: string;
|
|
27
29
|
firstInstallmentDate?: string;
|
|
28
30
|
installment?: string;
|
|
29
31
|
dueDate?: string;
|
|
@@ -31,6 +33,7 @@ export type InstallmentScheduleLabels = {
|
|
|
31
33
|
total?: string;
|
|
32
34
|
remaining?: string;
|
|
33
35
|
deleteInstallment?: string;
|
|
36
|
+
weekly?: string;
|
|
34
37
|
monthly?: string;
|
|
35
38
|
quarterly?: string;
|
|
36
39
|
annual?: string;
|
|
@@ -48,23 +51,33 @@ export type InstallmentScheduleClassNames = {
|
|
|
48
51
|
panel?: string;
|
|
49
52
|
header?: string;
|
|
50
53
|
tabs?: string;
|
|
54
|
+
controls?: string;
|
|
55
|
+
preview?: string;
|
|
56
|
+
summary?: string;
|
|
51
57
|
content?: string;
|
|
52
58
|
};
|
|
53
59
|
export type InstallmentScheduleProps = {
|
|
54
|
-
mode
|
|
60
|
+
mode?: InstallmentScheduleMode;
|
|
55
61
|
donationAmount: number;
|
|
56
62
|
currency?: string;
|
|
57
63
|
locale?: string;
|
|
58
64
|
installments: ScheduledInstallment[];
|
|
59
65
|
automaticSettings: AutomaticScheduleSettings;
|
|
66
|
+
defaultTab?: InstallmentScheduleMode;
|
|
67
|
+
showTitle?: boolean;
|
|
68
|
+
showCard?: boolean;
|
|
69
|
+
showSavePayment?: boolean;
|
|
70
|
+
showTabs?: boolean;
|
|
71
|
+
inputs?: InstallmentScheduleInput[];
|
|
72
|
+
startDate?: string;
|
|
60
73
|
labels?: InstallmentScheduleLabels;
|
|
61
74
|
classNames?: InstallmentScheduleClassNames;
|
|
62
75
|
isSaving?: boolean;
|
|
63
76
|
isModeSwitchDisabled?: boolean;
|
|
64
|
-
onModeChange
|
|
77
|
+
onModeChange?: (mode: InstallmentScheduleMode) => void;
|
|
65
78
|
onAutomaticSettingsChange: (settings: AutomaticScheduleSettings) => void;
|
|
66
79
|
onInstallmentsChange: (installments: ScheduledInstallment[]) => void;
|
|
67
|
-
onSave
|
|
80
|
+
onSave?: () => void;
|
|
68
81
|
};
|
|
69
82
|
export type InstallmentTableLabels = {
|
|
70
83
|
title?: string;
|
|
@@ -92,6 +105,9 @@ export type InstallmentTableProps = {
|
|
|
92
105
|
installments: ScheduledInstallment[];
|
|
93
106
|
currency: string;
|
|
94
107
|
locale?: string;
|
|
108
|
+
showTitle?: boolean;
|
|
109
|
+
showCard?: boolean;
|
|
110
|
+
showEditPayment?: boolean;
|
|
95
111
|
labels?: InstallmentTableLabels;
|
|
96
112
|
isSaving?: boolean;
|
|
97
113
|
onEditInstallments: () => void;
|