@swan-io/shared-business 12.4.2 → 13.0.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.
- package/package.json +12 -13
- package/src/components/AccountStatement.d.ts +2 -2
- package/src/components/AccountStatement.js +1 -1
- package/src/components/CreditStatement.js +2 -2
- package/src/components/RIB.d.ts +4 -0
- package/src/components/RIB.js +1 -0
- package/src/assets/3d-card/environment/nx.png +0 -0
- package/src/assets/3d-card/environment/ny.png +0 -0
- package/src/assets/3d-card/environment/nz.png +0 -0
- package/src/assets/3d-card/environment/px.png +0 -0
- package/src/assets/3d-card/environment/py.png +0 -0
- package/src/assets/3d-card/environment/pz.png +0 -0
- package/src/assets/3d-card/model/MaisonNeue-Book.woff +0 -0
- package/src/assets/3d-card/model/MarkPro-Regular.ttf +0 -0
- package/src/assets/3d-card/model/band_roughness.jpg +0 -0
- package/src/assets/3d-card/model/card.gltf +0 -850
- package/src/assets/3d-card/model/chip.jpg +0 -0
- package/src/assets/3d-card/model/color_black.jpg +0 -0
- package/src/assets/3d-card/model/color_silver.jpg +0 -0
- package/src/assets/images/powered_by_google_on_white_hdpi.png +0 -0
- package/src/components/Filters.d.ts +0 -123
- package/src/components/Filters.js +0 -280
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swan-io/shared-business",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": "^22.12.0"
|
|
6
6
|
},
|
|
@@ -25,32 +25,31 @@
|
|
|
25
25
|
],
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@swan-io/lake": "
|
|
28
|
+
"@swan-io/lake": "13.0.0"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@formatjs/intl": "^3.1.6",
|
|
32
32
|
"@placekit/client-js": "^2.3.0",
|
|
33
33
|
"@swan-io/boxed": "^3.2.0",
|
|
34
|
-
"@swan-io/request": "^
|
|
34
|
+
"@swan-io/request": "^3.1.0",
|
|
35
35
|
"@swan-io/use-form": "^3.1.0",
|
|
36
36
|
"dayjs": "^1.11.13",
|
|
37
37
|
"iban": "^0.0.14",
|
|
38
|
-
"react": "^19.1.
|
|
39
|
-
"react-atomic-state": "^2.
|
|
40
|
-
"react-dom": "^19.1.
|
|
38
|
+
"react": "^19.1.1",
|
|
39
|
+
"react-atomic-state": "^2.1.0",
|
|
40
|
+
"react-dom": "^19.1.1",
|
|
41
41
|
"react-dropzone": "^14.3.8",
|
|
42
|
-
"react-native-web": "^0.
|
|
42
|
+
"react-native-web": "^0.21.1",
|
|
43
43
|
"rifm": "^0.12.1",
|
|
44
|
-
"ts-pattern": "^5.
|
|
44
|
+
"ts-pattern": "^5.8.0",
|
|
45
45
|
"uuid": "^11.1.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/iban": "0.0.35",
|
|
49
|
-
"@types/react": "^19.1.
|
|
50
|
-
"@types/react-dom": "^19.1.
|
|
49
|
+
"@types/react": "^19.1.10",
|
|
50
|
+
"@types/react-dom": "^19.1.7",
|
|
51
51
|
"@types/react-native": "^0.72.8",
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"@swan-io/lake": "12.4.2"
|
|
52
|
+
"type-fest": "^4.41.0",
|
|
53
|
+
"@swan-io/lake": "13.0.0"
|
|
55
54
|
}
|
|
56
55
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StyleProp, ViewStyle } from "react-native";
|
|
2
2
|
import { CountryCCA3 } from "../constants/countries";
|
|
3
|
-
export type TransactionType = "Card" | "Check" | "Fees" | "InternationalDirectDebit" | "InternationalCreditTransfer" | "SepaCreditTransfer" | "SepaDirectDebit";
|
|
3
|
+
export type TransactionType = "Card" | "Check" | "Fees" | "InternationalDirectDebit" | "InternationalCreditTransfer" | "SepaCreditTransfer" | "SepaDirectDebit" | (string & {});
|
|
4
4
|
type AddressInfo = {
|
|
5
5
|
street: string;
|
|
6
6
|
city: string;
|
|
@@ -14,7 +14,7 @@ export type Transaction = {
|
|
|
14
14
|
id: string;
|
|
15
15
|
label: string;
|
|
16
16
|
date: string;
|
|
17
|
-
type:
|
|
17
|
+
type: TransactionType;
|
|
18
18
|
credit?: Amount;
|
|
19
19
|
debit?: Amount;
|
|
20
20
|
};
|
|
@@ -99,7 +99,7 @@ const translateTransaction = (transaction) => {
|
|
|
99
99
|
.with("Fees", () => t("accountStatement.fees"))
|
|
100
100
|
.with("InternationalDirectDebit", "SepaDirectDebit", () => t("accountStatement.directDebit"))
|
|
101
101
|
.with("InternationalCreditTransfer", "SepaCreditTransfer", () => t("accountStatement.creditTransfer"))
|
|
102
|
-
.
|
|
102
|
+
.otherwise(() => transaction);
|
|
103
103
|
};
|
|
104
104
|
const logoStyle = {
|
|
105
105
|
height: LOGO_MAX_HEIGHT,
|
|
@@ -3,7 +3,7 @@ import { Box } from "@swan-io/lake/src/components/Box";
|
|
|
3
3
|
import { Separator } from "@swan-io/lake/src/components/Separator";
|
|
4
4
|
import { Space } from "@swan-io/lake/src/components/Space";
|
|
5
5
|
import { SwanLogo } from "@swan-io/lake/src/components/SwanLogo";
|
|
6
|
-
import { colors, fonts,
|
|
6
|
+
import { colors, fonts, invariantColors, primaryFontStyle, spacings, } from "@swan-io/lake/src/constants/design";
|
|
7
7
|
import { isNotNullish, isNotNullishOrEmpty } from "@swan-io/lake/src/utils/nullish";
|
|
8
8
|
import { StyleSheet, Text } from "react-native";
|
|
9
9
|
import { match } from "ts-pattern";
|
|
@@ -12,7 +12,7 @@ import { formatCurrencySymbol, t } from "../utils/i18n";
|
|
|
12
12
|
const LOGO_MAX_HEIGHT = 24;
|
|
13
13
|
const LOGO_MAX_WIDTH = 150;
|
|
14
14
|
const getTextStyle = (type, fontSize) => ({
|
|
15
|
-
...(type === "mono" ? { fontFamily: fonts.iban } :
|
|
15
|
+
...(type === "mono" ? { fontFamily: fonts.iban } : primaryFontStyle),
|
|
16
16
|
color: colors.gray[900],
|
|
17
17
|
fontSize,
|
|
18
18
|
lineHeight: fontSize * 1.25,
|
package/src/components/RIB.d.ts
CHANGED
|
@@ -35,6 +35,10 @@ type RIBv1Props = {
|
|
|
35
35
|
accountCountry: "ITA";
|
|
36
36
|
agency: string;
|
|
37
37
|
bankNumber: string;
|
|
38
|
+
} | {
|
|
39
|
+
accountCountry: "BEL";
|
|
40
|
+
agency: string;
|
|
41
|
+
bankNumber: string;
|
|
38
42
|
});
|
|
39
43
|
export type RIBProps = RIBv1Props;
|
|
40
44
|
export declare const RIB: (props: RIBProps) => import("react/jsx-runtime").JSX.Element;
|
package/src/components/RIB.js
CHANGED
|
@@ -79,6 +79,7 @@ const RIBv1 = ({ accountHolderAddress, bank, bankAddress, bic, iban, partnerColo
|
|
|
79
79
|
.with({ accountCountry: "ESP" }, ({ agency, bankNumber, nationalCode }) => (_jsxs(_Fragment, { children: [_jsx(Item, { kind: "small", label: t("rib.bank"), value: bank }), _jsx(Space, { width: 24 }), _jsx(Item, { kind: "small", label: t("rib.agency"), value: agency }), _jsx(Space, { width: 24 }), _jsx(Item, { kind: "small", label: t("rib.nationalCode"), value: nationalCode }), _jsx(Space, { width: 24 }), _jsx(Item, { kind: "small", label: t("rib.number"), value: bankNumber })] })))
|
|
80
80
|
.with({ accountCountry: "NLD" }, ({ bankKey, bankNumber }) => (_jsxs(_Fragment, { children: [_jsx(Item, { kind: "small", label: t("rib.bank"), value: bank }), _jsx(Space, { width: 24 }), _jsx(Item, { kind: "small", label: t("rib.number"), value: bankNumber }), _jsx(Space, { width: 24 }), _jsx(Item, { kind: "small", label: t("rib.key"), value: bankKey })] })))
|
|
81
81
|
.with({ accountCountry: "ITA" }, ({ agency, bankNumber }) => (_jsxs(_Fragment, { children: [_jsx(Item, { kind: "small", label: t("rib.bank"), value: bank }), _jsx(Space, { width: 24 }), _jsx(Item, { kind: "small", label: t("rib.agency"), value: agency }), _jsx(Space, { width: 24 }), _jsx(Item, { kind: "small", label: t("rib.number"), value: bankNumber })] })))
|
|
82
|
+
.with({ accountCountry: "BEL" }, ({ agency, bankNumber }) => (_jsxs(_Fragment, { children: [_jsx(Item, { kind: "small", label: t("rib.bank"), value: bank }), _jsx(Space, { width: 24 }), _jsx(Item, { kind: "small", label: t("rib.agency"), value: agency }), _jsx(Space, { width: 24 }), _jsx(Item, { kind: "small", label: t("rib.number"), value: bankNumber })] })))
|
|
82
83
|
.exhaustive() })] }), _jsx(Separator, {}), _jsxs(View, { style: styles.half, children: [_jsxs(Box, { direction: "row", alignItems: "center", children: [_jsx(Item, { kind: "address", color: "partner", label: t("rib.address"), value: [
|
|
83
84
|
bankAddress.name,
|
|
84
85
|
bankAddress.address,
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|