tide-design-system 2.0.26 → 2.0.27

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.
@@ -1697,7 +1697,7 @@ required: boolean;
1697
1697
  supportingText: undefined;
1698
1698
  value: string;
1699
1699
  }>, {
1700
- error: Ref<ValidationError>;
1700
+ error: Ref<ValidationError_2>;
1701
1701
  value: Ref<string>;
1702
1702
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_15<__VLS_TypePropsToOption_19<Props_19>, {
1703
1703
  disabled: boolean;
@@ -1709,7 +1709,7 @@ supportingText: undefined;
1709
1709
  value: string;
1710
1710
  }>>>, {
1711
1711
  label: string;
1712
- error: ValidationError;
1712
+ error: ValidationError_2;
1713
1713
  required: boolean;
1714
1714
  disabled: boolean;
1715
1715
  inputId: string;
@@ -1916,13 +1916,29 @@ onChange?: ((...args: any[]) => any) | undefined;
1916
1916
  disabled: boolean;
1917
1917
  }, {}>;
1918
1918
 
1919
- declare type ValidationError = string | boolean;
1919
+ export declare type ValidationError = string | boolean;
1920
+
1921
+ declare type ValidationError_2 = string | boolean;
1922
+
1923
+ export declare type ValidationLength = {
1924
+ maxlength?: number;
1925
+ minlength?: number;
1926
+ value: string;
1927
+ };
1920
1928
 
1921
- declare type ValidationResult = {
1929
+ export declare type ValidationResult = {
1922
1930
  message: string;
1923
1931
  valid: boolean;
1924
1932
  };
1925
1933
 
1934
+ export declare const VALIDATOR: {
1935
+ readonly ALPHA_NUMBER_EMPTY: (value: string) => ValidationResult;
1936
+ readonly ALPHA_SPACE: (value: string) => ValidationResult;
1937
+ readonly EMAIL: (value: string) => ValidationResult;
1938
+ readonly NUMBER: (value: string) => ValidationResult;
1939
+ readonly PHONE: (value: string) => ValidationResult;
1940
+ };
1941
+
1926
1942
  declare type Validator = (value: string) => ValidationResult;
1927
1943
 
1928
1944
  export { }