@uxf/form
Advanced tools
Comparing version 1.0.0-beta.86 to 1.0.0-beta.87
{ | ||
"name": "@uxf/form", | ||
"version": "1.0.0-beta.86", | ||
"version": "1.0.0-beta.87", | ||
"description": "", | ||
@@ -16,5 +16,5 @@ "publishConfig": { | ||
"dependencies": { | ||
"@uxf/ui": "^1.0.0-beta.86", | ||
"@uxf/ui": "^1.0.0-beta.87", | ||
"react-hook-form": "latest" | ||
} | ||
} |
@@ -5,6 +5,16 @@ /// <reference types="react" /> | ||
export declare type TextInputProps<FormData extends FieldValues> = UseControllerProps<FormData> & Omit<UITextInputProps, "isInvalid" | "max" | "min" | "pattern" | "step" | "name" | "onChange" | "value" | "type"> & { | ||
patternErrorMessage?: string; | ||
requiredMessage?: string; | ||
type?: "email" | "password" | "search" | "tel" | "text" | "url"; | ||
}; | ||
} & ({ | ||
type: "email"; | ||
invalidEmailMessage?: string; | ||
invalidPhoneMessage?: never; | ||
} | { | ||
type: "tel"; | ||
invalidEmailMessage?: never; | ||
invalidPhoneMessage?: string; | ||
} | { | ||
type?: "password" | "search" | "text" | "url"; | ||
invalidEmailMessage?: never; | ||
invalidPhoneMessage?: never; | ||
}); | ||
export declare function TextInput<FormData extends FieldValues>(props: TextInputProps<FormData>): JSX.Element; |
@@ -23,3 +23,3 @@ "use strict"; | ||
value: EMAIL_REGEXP, | ||
message: (_a = props.patternErrorMessage) !== null && _a !== void 0 ? _a : "E-mail by měl být ve\xa0formátu: info@email.cz", | ||
message: (_a = props.invalidEmailMessage) !== null && _a !== void 0 ? _a : "E-mail by měl být ve\xa0formátu: info@email.cz", | ||
} | ||
@@ -29,3 +29,3 @@ : props.type === "tel" | ||
value: PHONE_REGEXP, | ||
message: (_b = props.patternErrorMessage) !== null && _b !== void 0 ? _b : "Zadaný telefon není ve správném formátu", | ||
message: (_b = props.invalidPhoneMessage) !== null && _b !== void 0 ? _b : "Zadaný telefon není ve správném formátu", | ||
} | ||
@@ -32,0 +32,0 @@ : undefined, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73978
1358
Updated@uxf/ui@^1.0.0-beta.87