@zealicsolutions/web-ui 0.3.15 → 0.3.16
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/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/fieldsConfiguration/types.d.ts +1 -1
- package/dist/cjs/src/helpers/validations.d.ts +3 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/fieldsConfiguration/types.d.ts +1 -1
- package/dist/esm/src/helpers/validations.d.ts +3 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
@@ -2,7 +2,7 @@
|
|
2
2
|
import { ControllerProps } from 'react-hook-form';
|
3
3
|
import { SelectOption } from 'atoms';
|
4
4
|
import { InputFieldProps, SelectFieldProps } from 'molecules';
|
5
|
-
export declare type InputFieldTypes = '
|
5
|
+
export declare type InputFieldTypes = 'phone_number' | 'text' | 'email' | 'password' | 'numerical' | 'month_year_date' | 'day_month_year_date' | 'month_day_year_date' | 'us_zip_code' | 'any';
|
6
6
|
export declare type FieldTypes = 'input' | 'select' | 'checkbox';
|
7
7
|
export declare type UIField<T = string> = (UIInputField & UISelectField & UICheckboxField) & {
|
8
8
|
name: T;
|
@@ -5,7 +5,9 @@ export declare const phoneNumberValidation: RegExp;
|
|
5
5
|
export declare const numberValidation: RegExp;
|
6
6
|
export declare const emailValidation: RegExp;
|
7
7
|
export declare const textValidation: RegExp;
|
8
|
-
export declare const
|
8
|
+
export declare const monthDayYearDateValidation: RegExp;
|
9
|
+
export declare const dayMonthYearDateValidation: RegExp;
|
10
|
+
export declare const monthYearDateValidation: RegExp;
|
9
11
|
export declare const usZipCode: RegExp;
|
10
12
|
export declare const getInputValidation: (type?: InputFieldTypes) => ValidationRule<RegExp> | undefined;
|
11
13
|
export declare const postCodeMask: RegExp[];
|
package/dist/index.d.ts
CHANGED
@@ -114,7 +114,7 @@ declare const Select: ({ ref, onBlur, onChange, value, placeholder, options, dis
|
|
114
114
|
|
115
115
|
declare const getFieldPlaceholder: (type: FieldTypes$1, title?: string) => string;
|
116
116
|
|
117
|
-
declare type InputFieldTypes = '
|
117
|
+
declare type InputFieldTypes = 'phone_number' | 'text' | 'email' | 'password' | 'numerical' | 'month_year_date' | 'day_month_year_date' | 'month_day_year_date' | 'us_zip_code' | 'any';
|
118
118
|
declare type FieldTypes = 'input' | 'select' | 'checkbox';
|
119
119
|
declare type UIField<T = string> = (UIInputField & UISelectField & UICheckboxField) & {
|
120
120
|
name: T;
|