@swan-io/shared-business 12.2.14 → 12.2.16
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": "12.2.
|
|
3
|
+
"version": "12.2.16",
|
|
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": "12.2.
|
|
28
|
+
"@swan-io/lake": "12.2.16"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@formatjs/intl": "^3.1.6",
|
|
@@ -51,6 +51,6 @@
|
|
|
51
51
|
"@types/react-native": "^0.72.8",
|
|
52
52
|
"jsdom": "^26.1.0",
|
|
53
53
|
"vitest": "^3.2.0",
|
|
54
|
-
"@swan-io/lake": "12.2.
|
|
54
|
+
"@swan-io/lake": "12.2.16"
|
|
55
55
|
}
|
|
56
56
|
}
|
|
@@ -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, 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 { formatCurrencyIso, 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.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Space } from "@swan-io/lake/src/components/Space";
|
|
|
6
6
|
import { SwanLogo } from "@swan-io/lake/src/components/SwanLogo";
|
|
7
7
|
import { WithPartnerAccentColor } from "@swan-io/lake/src/components/WithPartnerAccentColor";
|
|
8
8
|
import { commonStyles } from "@swan-io/lake/src/constants/commonStyles";
|
|
9
|
-
import { colors, fonts,
|
|
9
|
+
import { colors, fonts, invariantColors, primaryFontStyle, radii, spacings, } from "@swan-io/lake/src/constants/design";
|
|
10
10
|
import { isNotNullishOrEmpty } from "@swan-io/lake/src/utils/nullish";
|
|
11
11
|
import { StyleSheet, Text, View } from "react-native";
|
|
12
12
|
import { match } from "ts-pattern";
|
|
@@ -14,7 +14,7 @@ import { t } from "../utils/i18n";
|
|
|
14
14
|
const LOGO_MAX_HEIGHT = 24;
|
|
15
15
|
const LOGO_MAX_WIDTH = 150;
|
|
16
16
|
const getTextStyle = (type, fontSize) => ({
|
|
17
|
-
...(type === "mono" ? { fontFamily: fonts.iban } :
|
|
17
|
+
...(type === "mono" ? { fontFamily: fonts.iban } : primaryFontStyle),
|
|
18
18
|
color: colors.gray[900],
|
|
19
19
|
fontSize,
|
|
20
20
|
lineHeight: fontSize * 1.25,
|
|
@@ -5,7 +5,7 @@ import { Separator } from "@swan-io/lake/src/components/Separator";
|
|
|
5
5
|
import { Space } from "@swan-io/lake/src/components/Space";
|
|
6
6
|
import { Stack } from "@swan-io/lake/src/components/Stack";
|
|
7
7
|
import { SwanLogo } from "@swan-io/lake/src/components/SwanLogo";
|
|
8
|
-
import { colors, fonts,
|
|
8
|
+
import { colors, fonts, primaryFontStyle } from "@swan-io/lake/src/constants/design";
|
|
9
9
|
import { isNotNullish, isNotNullishOrEmpty } from "@swan-io/lake/src/utils/nullish";
|
|
10
10
|
import IBAN from "iban";
|
|
11
11
|
import { StyleSheet, Text, View } from "react-native";
|
|
@@ -14,7 +14,7 @@ import { formatCurrencyIso, t } from "../utils/i18n";
|
|
|
14
14
|
const LOGO_MAX_HEIGHT = 24;
|
|
15
15
|
const LOGO_MAX_WIDTH = 150;
|
|
16
16
|
const getTextStyle = (type, fontSize) => ({
|
|
17
|
-
...(type === "mono" ? { fontFamily: fonts.iban } :
|
|
17
|
+
...(type === "mono" ? { fontFamily: fonts.iban } : primaryFontStyle),
|
|
18
18
|
color: colors.gray[900],
|
|
19
19
|
fontSize,
|
|
20
20
|
lineHeight: fontSize * 1.25,
|