@adyen/kyc-components 2.27.1 → 2.27.2
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.
|
@@ -278,7 +278,7 @@ const serviceAgreementSignFailed = "Service agreement signing failed";
|
|
|
278
278
|
const failedToGetServiceAgreementStatus = "Failed to get the service agreement status";
|
|
279
279
|
const failedToGetServiceAgreement = "Failed to get the service agreement";
|
|
280
280
|
const failedToGetServiceAgreementInSelectedLanguageFallbackToEn = "Failed to get the service agreement in the selected language. Falling back to English.";
|
|
281
|
-
const iHaveReadAndIAcceptTheseTerms = "I have read and I accept these terms and confirm that I am a legal representative authorized to accept these terms on behalf of the company. I have taken notice of the privacy statement (www.adyen.com/privacy) and I consent to my (personal) data being used for the purposes described therein.";
|
|
281
|
+
const iHaveReadAndIAcceptTheseTerms = "I have read and I accept these terms and confirm that I am a legal representative authorized to accept these terms on behalf of the company. I have taken notice of the privacy statement (www.adyen.com/policies-and-disclaimer/privacy-policy) and I consent to my (personal) data being used for the purposes described therein.";
|
|
282
282
|
const verified = "Verified";
|
|
283
283
|
const signed = "Signed";
|
|
284
284
|
const invalidRole = "Please select a role";
|
|
@@ -5960,7 +5960,11 @@ const matchAgainstMask = (pureValue, mask) => {
|
|
|
5960
5960
|
}
|
|
5961
5961
|
}
|
|
5962
5962
|
};
|
|
5963
|
-
const deriveInputState = (isValid, isFocused, hasBlurred, errorMessage, shouldValidate, potentiallyMoreOptionalCharacters, formatGuidance, i18n) => {
|
|
5963
|
+
const deriveInputState = (isValid, isFocused, hasBlurred, isDisabled, errorMessage, shouldValidate, potentiallyMoreOptionalCharacters, formatGuidance, i18n) => {
|
|
5964
|
+
if (isDisabled)
|
|
5965
|
+
return {
|
|
5966
|
+
isError: false
|
|
5967
|
+
};
|
|
5964
5968
|
if (isValid && (!potentiallyMoreOptionalCharacters || !isFocused))
|
|
5965
5969
|
return {
|
|
5966
5970
|
isError: false,
|
|
@@ -6045,7 +6049,7 @@ const MaskedInputText = ({
|
|
|
6045
6049
|
}, [mask]);
|
|
6046
6050
|
const maskResult = useMemo(() => getMaskResult(value), [getMaskResult, value]);
|
|
6047
6051
|
const displayValue = maskResult.outcome === "mismatch" ? maskResult.partialDisplayValue : maskResult.displayValue;
|
|
6048
|
-
const inputState = deriveInputState(validationIsValid && maskResult.outcome !== "mismatch", isFocused, hasBlurred, errorMessage, shouldValidate, maskResult.outcome === "correct" && !!maskResult.potentialForMoreOptionalInput, formatGuidance, i18n);
|
|
6052
|
+
const inputState = deriveInputState(validationIsValid && maskResult.outcome !== "mismatch", isFocused, hasBlurred, disabled, errorMessage, shouldValidate, maskResult.outcome === "correct" && !!maskResult.potentialForMoreOptionalInput, formatGuidance, i18n);
|
|
6049
6053
|
useEffect(() => {
|
|
6050
6054
|
if (mask && maskResult.outcome === "mismatch") {
|
|
6051
6055
|
const strippedValue = displayValueToPure(value);
|
|
@@ -6073,6 +6077,7 @@ Falling back to partially valid value "${fallback}"`);
|
|
|
6073
6077
|
helper: inputState.isError ? void 0 : inputState.text,
|
|
6074
6078
|
helperPosition: "below",
|
|
6075
6079
|
classNameModifiers: classNameModifiers == null ? void 0 : classNameModifiers.field,
|
|
6080
|
+
disabled,
|
|
6076
6081
|
children: ({
|
|
6077
6082
|
onBlurHandler: fieldOnBlur,
|
|
6078
6083
|
onFocusHandler: fieldOnFocus,
|