@swan-io/shared-business 13.4.12 → 13.4.13
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.4.
|
|
3
|
+
"version": "13.4.13",
|
|
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.4.
|
|
28
|
+
"@swan-io/lake": "13.4.13"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@formatjs/intl": "^3.1.6",
|
|
@@ -50,6 +50,6 @@
|
|
|
50
50
|
"@types/react-dom": "^19.1.7",
|
|
51
51
|
"@types/react-native": "^0.72.8",
|
|
52
52
|
"type-fest": "^4.41.0",
|
|
53
|
-
"@swan-io/lake": "13.4.
|
|
53
|
+
"@swan-io/lake": "13.4.13"
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -10,5 +10,5 @@ export const TaxIdentificationNumberInput = ({ ref, value, error, valid, disable
|
|
|
10
10
|
? getCompanyTaxNumberPlaceholder(country)
|
|
11
11
|
: getIndividualTaxNumberPlaceholder(country), }) => {
|
|
12
12
|
const tooltipContents = getTaxNumberTooltip(country);
|
|
13
|
-
return (_jsx(LakeLabel, { label: label, optionalLabel: required === true ? undefined : t("common.optional"), help: tooltipContents != null ? (_jsx(LakeTooltip, { content: tooltipContents, placement: "right",
|
|
13
|
+
return (_jsx(LakeLabel, { label: label, optionalLabel: required === true ? undefined : t("common.optional"), help: tooltipContents != null ? (_jsx(LakeTooltip, { content: tooltipContents, placement: "right", children: _jsx(Icon, { name: "question-circle-regular", size: 16, color: colors.gray[600] }) })) : null, render: id => (_jsx(LakeTextInput, { id: id, ref: ref, placeholder: placeholder, help: isCompany ? getCompanyTaxNumberHelp(country) : getIndividualTaxNumberHelp(country), value: value, error: error, valid: valid, disabled: disabled, onChangeText: onChange, onBlur: onBlur })) }));
|
|
14
14
|
};
|
package/src/utils/validation.js
CHANGED
|
@@ -229,7 +229,7 @@ export const getCompanyTaxNumberPlaceholder = (country) => match(country)
|
|
|
229
229
|
.with("ITA", () => `${t("common.form.taxIdentificationNumber.placeholder")} (Codice fiscale)`)
|
|
230
230
|
.otherwise(() => t("common.form.taxIdentificationNumber.placeholder"));
|
|
231
231
|
export const getTaxNumberTooltip = (country) => match(country)
|
|
232
|
-
.with("DEU", () => "
|
|
232
|
+
.with("DEU", () => "Persönliche Steueridentifikationsnummer des wirtschaftlich Berechtigten")
|
|
233
233
|
.with("ESP", () => "Número de Identificación Fiscal") // no need to translate
|
|
234
234
|
.with("ITA", () => t("common.form.taxIdentificationNumber.tooltip.ita"))
|
|
235
235
|
.otherwise(() => undefined);
|