Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uxf/form

Package Overview
Dependencies
Maintainers
1
Versions
296
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uxf/form - npm Package Compare versions

Comparing version 1.0.0-beta.86 to 1.0.0-beta.87

4

package.json
{
"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,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc