@ahmadmubarak98/namozaj 1.6.24 → 1.6.26
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/main.d.ts +22 -4
- package/dist/namozaj.js +5382 -5363
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import { CountryIso2 } from 'react-international-phone';
|
|
|
2
2
|
import { default as default_2 } from 'react';
|
|
3
3
|
import { FieldValues } from 'react-hook-form';
|
|
4
4
|
import { PickersTimezone } from '@mui/x-date-pickers';
|
|
5
|
+
import { SxProps } from '@mui/material';
|
|
6
|
+
import { Theme } from '@mui/material';
|
|
5
7
|
import { UseFormReturn } from 'react-hook-form';
|
|
6
8
|
|
|
7
9
|
export declare type AutoPlacement = "auto" | "auto-start" | "auto-end";
|
|
@@ -204,11 +206,22 @@ export declare type FileFieldConfig = BaseFieldConfig & {
|
|
|
204
206
|
variant?: FileFieldVariant;
|
|
205
207
|
acceptExtensions?: string[] | string;
|
|
206
208
|
multiple?: boolean;
|
|
207
|
-
minSize?: number
|
|
208
|
-
|
|
209
|
+
minSize?: number | {
|
|
210
|
+
value: number | null;
|
|
211
|
+
errorMessage?: string;
|
|
212
|
+
} | ((data: any, formMethods: UseFormReturn<FieldValues, any, FieldValues>) => {
|
|
213
|
+
value: number | null;
|
|
214
|
+
errorMessage?: string;
|
|
215
|
+
} | null);
|
|
216
|
+
maxSize?: number | {
|
|
217
|
+
value: number | null;
|
|
218
|
+
errorMessage?: string;
|
|
219
|
+
} | ((data: any, formMethods: UseFormReturn<FieldValues, any, FieldValues>) => {
|
|
220
|
+
value: number | null;
|
|
221
|
+
errorMessage?: string;
|
|
222
|
+
} | null);
|
|
209
223
|
minFiles?: number;
|
|
210
224
|
maxFiles?: number;
|
|
211
|
-
fileSizeErrorMessage?: string;
|
|
212
225
|
fileTypeErrorMessage?: string;
|
|
213
226
|
uploadErrorMessage?: string | ((error: any) => string);
|
|
214
227
|
uploadBtnText?: string;
|
|
@@ -217,6 +230,11 @@ export declare type FileFieldConfig = BaseFieldConfig & {
|
|
|
217
230
|
dropText?: string;
|
|
218
231
|
enablePreview?: boolean;
|
|
219
232
|
avatarIcon?: string;
|
|
233
|
+
sx?: {
|
|
234
|
+
avatar?: {
|
|
235
|
+
previewImage?: SxProps<Theme> | undefined;
|
|
236
|
+
};
|
|
237
|
+
};
|
|
220
238
|
previewFiles?: FileFieldFilePreview[] | ((data: any, locale: string) => FileFieldFilePreview[]);
|
|
221
239
|
uploadCb?: (files: File[]) => Promise<string>;
|
|
222
240
|
uploadApi?: {
|
|
@@ -463,7 +481,7 @@ export declare type ValidationMode = "onChange" | "onBlur" | "onTouched" | "onSu
|
|
|
463
481
|
|
|
464
482
|
export declare type ValidationRule = {
|
|
465
483
|
type: "required" | "pattern" | "minLength" | "maxLength" | "min" | "max" | "email" | "phone" | "url" | "between";
|
|
466
|
-
value?: FieldValueType;
|
|
484
|
+
value?: FieldValueType | RegExp;
|
|
467
485
|
when?: {
|
|
468
486
|
field: string;
|
|
469
487
|
operator: Operator;
|