tide-design-system 2.0.26 → 2.0.28
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.
- package/dist/style.css +1 -1
- package/dist/tide-design-system.cjs +2 -2
- package/dist/tide-design-system.esm.d.ts +21 -4
- package/dist/tide-design-system.esm.js +401 -368
- package/dist/utilities/validation.ts +18 -8
- package/index.ts +6 -0
- package/package.json +1 -1
- package/src/components/TideInputText.vue +1 -0
- package/src/types/Validation.ts +1 -0
- package/src/utilities/validation.ts +18 -8
|
@@ -1697,7 +1697,7 @@ required: boolean;
|
|
|
1697
1697
|
supportingText: undefined;
|
|
1698
1698
|
value: string;
|
|
1699
1699
|
}>, {
|
|
1700
|
-
error: Ref<
|
|
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:
|
|
1712
|
+
error: ValidationError_2;
|
|
1713
1713
|
required: boolean;
|
|
1714
1714
|
disabled: boolean;
|
|
1715
1715
|
inputId: string;
|
|
@@ -1916,13 +1916,30 @@ 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;
|
|
1920
1922
|
|
|
1921
|
-
declare type
|
|
1923
|
+
export declare type ValidationLength = {
|
|
1924
|
+
maxlength?: number;
|
|
1925
|
+
minlength?: number;
|
|
1926
|
+
required?: boolean;
|
|
1927
|
+
value: string;
|
|
1928
|
+
};
|
|
1929
|
+
|
|
1930
|
+
export declare type ValidationResult = {
|
|
1922
1931
|
message: string;
|
|
1923
1932
|
valid: boolean;
|
|
1924
1933
|
};
|
|
1925
1934
|
|
|
1935
|
+
export declare const VALIDATOR: {
|
|
1936
|
+
readonly ALPHA_NUMBER_EMPTY: (value: string) => ValidationResult;
|
|
1937
|
+
readonly ALPHA_SPACE: (value: string) => ValidationResult;
|
|
1938
|
+
readonly EMAIL: (value: string) => ValidationResult;
|
|
1939
|
+
readonly NUMBER: (value: string) => ValidationResult;
|
|
1940
|
+
readonly PHONE: (value: string) => ValidationResult;
|
|
1941
|
+
};
|
|
1942
|
+
|
|
1926
1943
|
declare type Validator = (value: string) => ValidationResult;
|
|
1927
1944
|
|
|
1928
1945
|
export { }
|