@blockscout/ui-toolkit 2.8.1-alpha.2 → 2.9.0

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.
@@ -2,7 +2,7 @@ import { default as React } from 'react';
2
2
  import { FieldValues } from 'react-hook-form';
3
3
  import { FormFieldPropsBase } from './types';
4
4
  import { UrlValidatorParams } from '../validators/url';
5
- declare const FormFieldUrlContent: <FormFields extends FieldValues>(props: FormFieldPropsBase<FormFields> & {
5
+ declare const FormFieldUrlContent: <FormFields extends FieldValues>({ urlValidatorParams, ...rest }: FormFieldPropsBase<FormFields> & {
6
6
  urlValidatorParams?: UrlValidatorParams;
7
7
  }) => React.JSX.Element;
8
8
  export declare const FormFieldUrl: typeof FormFieldUrlContent;
@@ -1,8 +1,8 @@
1
1
  export type UrlScheme = 'http' | 'https' | 'ws' | 'wss';
2
+ export declare const URL_SCHEME_REGEXP: RegExp;
2
3
  export interface UrlValidatorParams {
3
4
  loose?: boolean;
4
- schemes?: Array<UrlScheme>;
5
5
  }
6
- export declare function urlValidator({ loose, schemes }?: UrlValidatorParams): (value: string | undefined) => true | "Incorrect URL";
6
+ export declare function urlValidator({ loose }?: UrlValidatorParams): (value: string | undefined) => true | "Incorrect URL";
7
7
  export declare const DOMAIN_REGEXP: RegExp;
8
8
  export declare function domainValidator(value: string | undefined): true | "Incorrect domain";