@adyen/kyc-components 3.1.1 → 3.1.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";
|
|
@@ -6010,7 +6010,11 @@ const matchAgainstMask = (pureValue, mask) => {
|
|
|
6010
6010
|
}
|
|
6011
6011
|
}
|
|
6012
6012
|
};
|
|
6013
|
-
const deriveInputState = (isValid, isFocused, hasBlurred, errorMessage, shouldValidate, potentiallyMoreOptionalCharacters, formatGuidance, i18n) => {
|
|
6013
|
+
const deriveInputState = (isValid, isFocused, hasBlurred, isDisabled, errorMessage, shouldValidate, potentiallyMoreOptionalCharacters, formatGuidance, i18n) => {
|
|
6014
|
+
if (isDisabled)
|
|
6015
|
+
return {
|
|
6016
|
+
isError: false
|
|
6017
|
+
};
|
|
6014
6018
|
if (isValid && (!potentiallyMoreOptionalCharacters || !isFocused))
|
|
6015
6019
|
return {
|
|
6016
6020
|
isError: false,
|
|
@@ -6095,7 +6099,7 @@ const MaskedInputText = ({
|
|
|
6095
6099
|
}, [mask]);
|
|
6096
6100
|
const maskResult = useMemo(() => getMaskResult(value), [getMaskResult, value]);
|
|
6097
6101
|
const displayValue = maskResult.outcome === "mismatch" ? maskResult.partialDisplayValue : maskResult.displayValue;
|
|
6098
|
-
const inputState = deriveInputState(validationIsValid && maskResult.outcome !== "mismatch", isFocused, hasBlurred, errorMessage, shouldValidate, maskResult.outcome === "correct" && !!maskResult.potentialForMoreOptionalInput, formatGuidance, i18n);
|
|
6102
|
+
const inputState = deriveInputState(validationIsValid && maskResult.outcome !== "mismatch", isFocused, hasBlurred, disabled, errorMessage, shouldValidate, maskResult.outcome === "correct" && !!maskResult.potentialForMoreOptionalInput, formatGuidance, i18n);
|
|
6099
6103
|
useEffect(() => {
|
|
6100
6104
|
if (mask && maskResult.outcome === "mismatch") {
|
|
6101
6105
|
const strippedValue = displayValueToPure(value);
|
|
@@ -6123,6 +6127,7 @@ Falling back to partially valid value "${fallback}"`);
|
|
|
6123
6127
|
helper: inputState.isError ? void 0 : inputState.text,
|
|
6124
6128
|
helperPosition: "below",
|
|
6125
6129
|
classNameModifiers: classNameModifiers == null ? void 0 : classNameModifiers.field,
|
|
6130
|
+
disabled,
|
|
6126
6131
|
children: ({
|
|
6127
6132
|
onBlurHandler: fieldOnBlur,
|
|
6128
6133
|
onFocusHandler: fieldOnFocus,
|