@swan-io/shared-business 13.7.10 → 13.7.11
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swan-io/shared-business",
|
|
3
|
-
"version": "13.7.
|
|
3
|
+
"version": "13.7.11",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">22.12.0"
|
|
6
6
|
},
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
],
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@swan-io/lake": "13.7.
|
|
28
|
+
"@swan-io/lake": "13.7.11"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@formatjs/intl": "^4.1.2",
|
|
@@ -50,6 +50,6 @@
|
|
|
50
50
|
"@types/react-dom": "^19.2.3",
|
|
51
51
|
"@types/react-native": "^0.72.8",
|
|
52
52
|
"type-fest": "^5.4.3",
|
|
53
|
-
"@swan-io/lake": "13.7.
|
|
53
|
+
"@swan-io/lake": "13.7.11"
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -25,7 +25,7 @@ const styles = StyleSheet.create({
|
|
|
25
25
|
closingBalanceRow: {
|
|
26
26
|
...getTextStyle("sans", 12),
|
|
27
27
|
backgroundColor: colors.gray[50],
|
|
28
|
-
width: "
|
|
28
|
+
width: "55%",
|
|
29
29
|
},
|
|
30
30
|
flexGrow: {
|
|
31
31
|
flexGrow: 1,
|
|
@@ -68,5 +68,5 @@ const styles = StyleSheet.create({
|
|
|
68
68
|
});
|
|
69
69
|
export const AccountStatementAnnualFees = ({ annualFeeStatement, language, }) => {
|
|
70
70
|
const t = useTranslation(language);
|
|
71
|
-
return (_jsxs(Box, { style: styles.container, children: [_jsx(Box, { style: styles.flexGrow, children: _jsx(Text, { style: styles.feeStatementTitle, children: t("accountStatement.feeStatement") }) }), _jsx(Space, { height: 24 }), _jsx(Box, { style: styles.dateContainer, children: _jsxs(Text, { style: styles.dateText, children: [t("accountStatement.from"), " ", _jsx(Text, { style: styles.dateBold, children: annualFeeStatement.openingDate }), " ", t("accountStatement.to"), " ", _jsx(Text, { style: styles.dateBold, children: annualFeeStatement.closingDate })] }) }), _jsx(Space, { height: 8 }), _jsxs(Box, { style: styles.headerRow, direction: "row", justifyContent: "spaceBetween", children: [_jsx(Text, { style: [styles.headerText, { width: "60%" }], children: t("accountStatement.feeType") }), _jsx(Text, { style: styles.headerText, children: t("accountStatement.operationCount") }), _jsx(Text, { style: styles.headerText, children: t("accountStatement.total") })] }), _jsx(Space, { height: 4 }), annualFeeStatement.feeOperations.map((feeOperation, index) => (_jsxs(Box, { direction: "row", children: [_jsx(Text, { style: [styles.operationText, { width: "68%" }], children: feeOperation.label }), _jsx(Text, { style: [styles.operationText, { width: "20%" }], children: feeOperation.count }), _jsx(Text, { style: styles.operationText, children: feeOperation.total.value })] }, index))), _jsx(Space, { height: 32 }), _jsx(Box, { children: _jsx(Box, { direction: "row", justifyContent: "end", children: _jsxs(Box, { direction: "row", alignItems: "center", justifyContent: "spaceBetween", style: styles.closingBalanceRow, children: [_jsx(Text, { style: [styles.row, { width: "
|
|
71
|
+
return (_jsxs(Box, { style: styles.container, children: [_jsx(Box, { style: styles.flexGrow, children: _jsx(Text, { style: styles.feeStatementTitle, children: t("accountStatement.feeStatement") }) }), _jsx(Space, { height: 24 }), _jsx(Box, { style: styles.dateContainer, children: _jsxs(Text, { style: styles.dateText, children: [t("accountStatement.from"), " ", _jsx(Text, { style: styles.dateBold, children: annualFeeStatement.openingDate }), " ", t("accountStatement.to"), " ", _jsx(Text, { style: styles.dateBold, children: annualFeeStatement.closingDate })] }) }), _jsx(Space, { height: 8 }), _jsxs(Box, { style: styles.headerRow, direction: "row", justifyContent: "spaceBetween", children: [_jsx(Text, { style: [styles.headerText, { width: "60%" }], children: t("accountStatement.feeType") }), _jsx(Text, { style: styles.headerText, children: t("accountStatement.operationCount") }), _jsx(Text, { style: styles.headerText, children: t("accountStatement.total") })] }), _jsx(Space, { height: 4 }), annualFeeStatement.feeOperations.map((feeOperation, index) => (_jsxs(Box, { direction: "row", children: [_jsx(Text, { style: [styles.operationText, { width: "68%" }], children: feeOperation.label }), _jsx(Text, { style: [styles.operationText, { width: "20%" }], children: feeOperation.count }), _jsx(Text, { style: styles.operationText, children: feeOperation.total.value })] }, index))), _jsx(Space, { height: 32 }), _jsx(Box, { children: _jsx(Box, { direction: "row", justifyContent: "end", children: _jsxs(Box, { direction: "row", alignItems: "center", justifyContent: "spaceBetween", style: styles.closingBalanceRow, children: [_jsx(Text, { style: [styles.row, { width: "30%" }], children: t("accountStatement.total") }), _jsx(Text, { style: styles.totalAmount, children: annualFeeStatement.operationCount }), _jsx(Box, { style: styles.row }), _jsx(Text, { style: styles.totalAmount, children: annualFeeStatement.total.value })] }) }) })] }));
|
|
72
72
|
};
|