formik-form-components 0.2.28 → 0.2.30
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/README.md +0 -2
- package/dist/index.d.ts +56 -264
- package/dist/index.js +624 -1203
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +601 -1176
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,43 +1,27 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default, { ReactElement, ReactNode, SyntheticEvent, ElementType
|
|
2
|
+
import React__default, { ReactElement, ReactNode, SyntheticEvent, ElementType } from 'react';
|
|
3
3
|
import { FormikValues, FormikConfig, FormikProps } from 'formik';
|
|
4
|
-
import { SxProps, Theme, AutocompleteProps, AutocompleteChangeReason, AutocompleteChangeDetails, TextFieldProps, RadioGroupProps,
|
|
4
|
+
import { SxProps, Theme, SwitchProps, AutocompleteProps, AutocompleteChangeReason, AutocompleteChangeDetails, Checkbox, TextFieldProps, RadioGroupProps, BoxProps } from '@mui/material';
|
|
5
5
|
import { Theme as Theme$1 } from '@mui/material/styles';
|
|
6
|
-
import { SelectProps } from '@mui/material/Select';
|
|
7
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
|
+
import { DateTimePickerProps } from '@mui/x-date-pickers/DateTimePicker';
|
|
8
8
|
import { Dayjs } from 'dayjs';
|
|
9
|
+
import { DatePickerProps } from '@mui/x-date-pickers/DatePicker';
|
|
10
|
+
import { SelectProps } from '@mui/material/Select';
|
|
9
11
|
import { DropzoneOptions } from 'react-dropzone';
|
|
10
12
|
import { IconifyIcon } from '@iconify/react';
|
|
11
13
|
|
|
12
|
-
|
|
14
|
+
declare const AppDatePicker: React__default.ForwardRefExoticComponent<{
|
|
13
15
|
name: string;
|
|
14
16
|
label?: string;
|
|
15
17
|
disabled?: boolean;
|
|
18
|
+
disablePast?: boolean;
|
|
16
19
|
format?: string;
|
|
17
20
|
sx?: SxProps<Theme>;
|
|
18
21
|
textFieldSx?: SxProps<Theme>;
|
|
19
|
-
}
|
|
20
|
-
declare const AppDatePicker: React__default.ForwardRefExoticComponent<AppDatePickerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
21
|
-
|
|
22
|
-
interface AppSelectOptions$2 {
|
|
23
|
-
label: string;
|
|
24
|
-
value: string | number;
|
|
25
|
-
}
|
|
26
|
-
interface Props$8 extends Omit<SelectProps, 'name' | 'label' | 'value' | 'onChange'> {
|
|
27
|
-
name: string;
|
|
28
|
-
label?: string;
|
|
29
|
-
placeholder?: string;
|
|
30
|
-
options: AppSelectOptions$2[];
|
|
31
|
-
disabled?: boolean;
|
|
32
|
-
sx?: SxProps<Theme>;
|
|
33
|
-
formControlSx?: SxProps<Theme>;
|
|
34
|
-
textFieldSx?: SxProps<Theme>;
|
|
35
|
-
listboxSx?: SxProps<Theme>;
|
|
36
|
-
errorSx?: SxProps<Theme>;
|
|
37
|
-
}
|
|
38
|
-
declare function AppAutoCompleter({ placeholder, name, label, options, disabled, sx, formControlSx, textFieldSx, listboxSx, errorSx }: Props$8): React.JSX.Element;
|
|
22
|
+
} & Omit<DatePickerProps<true, Dayjs, Dayjs>, "value" | "onChange" | "renderInput"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
39
23
|
|
|
40
|
-
|
|
24
|
+
type AppDateAndTimePickerProps = {
|
|
41
25
|
/** Field name for formik */
|
|
42
26
|
name: string;
|
|
43
27
|
/** Label for the date and time picker */
|
|
@@ -80,17 +64,17 @@ interface AppDateAndTimePickerProps {
|
|
|
80
64
|
onBlur?: (event: React__default.FocusEvent<HTMLInputElement>) => void;
|
|
81
65
|
/** Additional props to pass to the DateTimePicker */
|
|
82
66
|
[key: string]: any;
|
|
83
|
-
}
|
|
67
|
+
} & Omit<DateTimePickerProps<true, Dayjs, Dayjs>, "value" | "onChange" | "renderInput">;
|
|
84
68
|
declare const AppDateAndTimePicker: React__default.ForwardRefExoticComponent<Omit<AppDateAndTimePickerProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
85
69
|
|
|
86
|
-
interface Props$
|
|
70
|
+
interface Props$6 {
|
|
87
71
|
name: string;
|
|
88
72
|
alwaysShow?: boolean;
|
|
89
73
|
sx?: SxProps<Theme>;
|
|
90
74
|
containerSx?: SxProps<Theme>;
|
|
91
75
|
textSx?: SxProps<Theme>;
|
|
92
76
|
}
|
|
93
|
-
declare function AppFormErrorMessage({ name, alwaysShow, sx, containerSx, textSx }: Props$
|
|
77
|
+
declare function AppFormErrorMessage({ name, alwaysShow, sx, containerSx, textSx, }: Props$6): React.JSX.Element | null;
|
|
94
78
|
|
|
95
79
|
interface AppTextAreaProps {
|
|
96
80
|
/** Field name for formik */
|
|
@@ -136,7 +120,7 @@ interface AppTextAreaProps {
|
|
|
136
120
|
}
|
|
137
121
|
declare const AppTextArea: React$1.ForwardRefExoticComponent<Omit<AppTextAreaProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
138
122
|
|
|
139
|
-
interface Props$
|
|
123
|
+
interface Props$5 extends Omit<SelectProps, 'name' | 'label' | 'value' | 'onChange'> {
|
|
140
124
|
name: string;
|
|
141
125
|
freeSolo?: boolean;
|
|
142
126
|
multiple?: boolean;
|
|
@@ -153,9 +137,9 @@ interface Props$6 extends Omit<SelectProps, 'name' | 'label' | 'value' | 'onChan
|
|
|
153
137
|
chipContainerSx?: SxProps<Theme>;
|
|
154
138
|
inputSx?: SxProps<Theme>;
|
|
155
139
|
}
|
|
156
|
-
declare function AppTagsCreator({ placeholder, name, multiple, label, options, disabled, sx, formControlSx, textFieldSx, chipSx, listboxSx, errorSx, chipContainerSx, inputSx, }: Props$
|
|
140
|
+
declare function AppTagsCreator({ placeholder, name, multiple, label, options, disabled, sx, formControlSx, textFieldSx, chipSx, listboxSx, errorSx, chipContainerSx, inputSx, }: Props$5): React.JSX.Element;
|
|
157
141
|
|
|
158
|
-
interface AppSwitchInputProps {
|
|
142
|
+
interface AppSwitchInputProps extends Omit<SwitchProps, "name" | "checked" | "onChange"> {
|
|
159
143
|
name: string;
|
|
160
144
|
label?: string;
|
|
161
145
|
className?: string;
|
|
@@ -170,7 +154,7 @@ interface AppSwitchInputProps {
|
|
|
170
154
|
}
|
|
171
155
|
declare function AppSwitchInput({ name, label, className, sx, containerSx, switchSx, labelSx, errorSx, labelPlacement, disabled, ...otherProps }: AppSwitchInputProps): React__default.JSX.Element;
|
|
172
156
|
|
|
173
|
-
interface AppSwitchProps {
|
|
157
|
+
interface AppSwitchProps extends Omit<SwitchProps, "name" | "checked" | "onChange"> {
|
|
174
158
|
name: string;
|
|
175
159
|
label: string;
|
|
176
160
|
sx?: SxProps<Theme>;
|
|
@@ -189,7 +173,7 @@ interface FormProps<T> extends FormikConfig<T> {
|
|
|
189
173
|
}
|
|
190
174
|
declare const Form: <T extends FormikValues>({ children, className, ...props }: FormProps<T>) => ReactElement;
|
|
191
175
|
|
|
192
|
-
interface Props$
|
|
176
|
+
interface Props$4 extends Omit<AutocompleteProps<string, true, boolean, false, "div">, "renderInput" | "onChange" | "value" | "multiple" | "freeSolo"> {
|
|
193
177
|
name: string;
|
|
194
178
|
freeSolo?: boolean;
|
|
195
179
|
label?: string;
|
|
@@ -205,61 +189,68 @@ interface Props$5 extends Omit<AutocompleteProps<string, true, boolean, false, '
|
|
|
205
189
|
chipSx?: SxProps<Theme$1>;
|
|
206
190
|
errorSx?: SxProps<Theme$1>;
|
|
207
191
|
}
|
|
208
|
-
declare function AppAutoComplete({ placeholder, name, variant, label, options, value: propValue, onChange: propOnChange, sx, formControlSx, textFieldSx, chipSx, errorSx, }: Props$
|
|
192
|
+
declare function AppAutoComplete({ placeholder, name, variant, label, options, value: propValue, onChange: propOnChange, sx, formControlSx, textFieldSx, chipSx, errorSx, }: Props$4): React.JSX.Element;
|
|
193
|
+
|
|
194
|
+
interface SelectOption {
|
|
195
|
+
label: string;
|
|
196
|
+
value: string | number;
|
|
197
|
+
}
|
|
198
|
+
type OptionType = string | SelectOption;
|
|
199
|
+
interface Props$3 extends Omit<AutocompleteProps<OptionType, boolean, boolean, boolean>, "renderInput" | "options" | "value" | "onChange"> {
|
|
200
|
+
name: string;
|
|
201
|
+
label?: string;
|
|
202
|
+
placeholder?: string;
|
|
203
|
+
options: OptionType[];
|
|
204
|
+
multiple?: boolean;
|
|
205
|
+
freeSolo?: boolean;
|
|
206
|
+
sx?: SxProps<Theme>;
|
|
207
|
+
formControlSx?: SxProps<Theme>;
|
|
208
|
+
textFieldSx?: SxProps<Theme>;
|
|
209
|
+
chipSx?: SxProps<Theme>;
|
|
210
|
+
errorSx?: SxProps<Theme>;
|
|
211
|
+
}
|
|
212
|
+
declare function AppAutoCompleter({ name, label, placeholder, options, multiple, freeSolo, sx, formControlSx, textFieldSx, chipSx, errorSx, ...rest }: Props$3): React__default.JSX.Element;
|
|
209
213
|
|
|
210
214
|
interface CheckboxOption {
|
|
211
215
|
label: string;
|
|
212
216
|
name: string;
|
|
213
|
-
value: string |
|
|
217
|
+
value: string | number | boolean;
|
|
214
218
|
disabled?: boolean;
|
|
215
219
|
}
|
|
216
|
-
interface Props$
|
|
217
|
-
/** Array of checkbox options with label and value */
|
|
218
|
-
option: CheckboxOption[];
|
|
219
|
-
/** Field name for formik */
|
|
220
|
+
interface Props$2 {
|
|
220
221
|
name: string;
|
|
221
|
-
|
|
222
|
+
option: CheckboxOption[];
|
|
222
223
|
label?: string;
|
|
223
|
-
/** Whether the field is required */
|
|
224
224
|
required?: boolean;
|
|
225
|
-
/** Whether the checkbox group is disabled */
|
|
226
225
|
disabled?: boolean;
|
|
227
|
-
/** Whether the checkbox group is in a row */
|
|
228
226
|
row?: boolean;
|
|
229
|
-
/** Custom styles for the root container */
|
|
230
227
|
sx?: SxProps<Theme>;
|
|
231
|
-
/** Custom styles for the checkbox component */
|
|
232
228
|
checkboxSx?: SxProps<Theme>;
|
|
233
|
-
/** Custom styles for the label */
|
|
234
229
|
labelSx?: SxProps<Theme>;
|
|
235
|
-
/** Custom styles for the error message */
|
|
236
230
|
errorSx?: SxProps<Theme>;
|
|
237
|
-
/** Custom styles for the checkbox container */
|
|
238
231
|
containerSx?: SxProps<Theme>;
|
|
239
|
-
/** Custom styles for the checkbox icon */
|
|
240
232
|
iconSx?: SxProps<Theme>;
|
|
241
|
-
/** Custom styles for the checked state */
|
|
242
233
|
checkedSx?: SxProps<Theme>;
|
|
234
|
+
checkboxProps?: React__default.ComponentProps<typeof Checkbox>;
|
|
243
235
|
}
|
|
244
|
-
declare const AppCheckBox: ({ name, option, label, required, disabled, row, sx, checkboxSx, labelSx, errorSx, containerSx, iconSx, checkedSx,
|
|
236
|
+
declare const AppCheckBox: ({ name, option, label, required, disabled, row, sx, checkboxSx, labelSx, errorSx, containerSx, iconSx, checkedSx, checkboxProps, }: Props$2) => react_jsx_runtime.JSX.Element;
|
|
245
237
|
|
|
246
|
-
interface
|
|
238
|
+
interface CustomInputProps {
|
|
247
239
|
name: string;
|
|
248
|
-
label
|
|
240
|
+
label?: ReactNode;
|
|
241
|
+
required?: boolean;
|
|
249
242
|
tagUser?: string;
|
|
250
243
|
hasReply?: boolean;
|
|
251
|
-
required?: boolean;
|
|
252
|
-
variant?: 'outlined' | 'filled' | 'standard';
|
|
253
244
|
}
|
|
254
|
-
|
|
245
|
+
type AppInputFieldProps = CustomInputProps & Omit<TextFieldProps, "name" | "label" | "variant"> & {
|
|
246
|
+
variant?: "outlined" | "filled" | "standard";
|
|
247
|
+
};
|
|
248
|
+
declare function AppInputField({ name, label, type, required, variant, InputProps, ...otherProps }: AppInputFieldProps): React__default.JSX.Element;
|
|
255
249
|
|
|
256
250
|
interface AppSelectOption$1 {
|
|
257
251
|
label: string;
|
|
258
252
|
value: string | number;
|
|
259
253
|
disabled?: boolean;
|
|
260
|
-
searchAbleValue1?: string;
|
|
261
|
-
searchAbleValue2?: string;
|
|
262
|
-
searchAbleValue3?: string;
|
|
263
254
|
sx?: SxProps<Theme>;
|
|
264
255
|
textSx?: SxProps<Theme>;
|
|
265
256
|
icon?: ReactNode;
|
|
@@ -315,49 +306,28 @@ interface AppPhoneNoInputProps {
|
|
|
315
306
|
declare const AppPhoneNoInput: React__default.FC<AppPhoneNoInputProps>;
|
|
316
307
|
|
|
317
308
|
interface RadioOption {
|
|
318
|
-
/** The label to be shown next to the radio button */
|
|
319
309
|
label: string;
|
|
320
|
-
/** The value to be used when this option is selected */
|
|
321
310
|
value: string | number;
|
|
322
|
-
/** Whether this option is disabled */
|
|
323
311
|
disabled?: boolean;
|
|
324
|
-
/** Custom styles for this specific radio option */
|
|
325
312
|
sx?: SxProps<Theme>;
|
|
326
|
-
/** Custom styles for this specific radio button */
|
|
327
313
|
radioSx?: SxProps<Theme>;
|
|
328
|
-
/** Custom styles for this specific label */
|
|
329
314
|
labelSx?: SxProps<Theme>;
|
|
330
315
|
}
|
|
331
|
-
interface AppRadioGroupProps extends Omit<RadioGroupProps,
|
|
332
|
-
/** Field name for formik */
|
|
316
|
+
interface AppRadioGroupProps extends Omit<RadioGroupProps, "onChange" | "onBlur" | "value"> {
|
|
333
317
|
name: string;
|
|
334
|
-
/** Array of radio options */
|
|
335
318
|
options: RadioOption[];
|
|
336
|
-
/** Label for the radio group */
|
|
337
319
|
label?: string;
|
|
338
|
-
/** Whether the field is required */
|
|
339
320
|
required?: boolean;
|
|
340
|
-
/** Whether the radio group is disabled */
|
|
341
321
|
disabled?: boolean;
|
|
342
|
-
/** Whether to show the radio group in a row */
|
|
343
322
|
row?: boolean;
|
|
344
|
-
/** Custom styles for the root container */
|
|
345
323
|
sx?: SxProps<Theme>;
|
|
346
|
-
/** Custom styles for the form control */
|
|
347
324
|
formControlSx?: SxProps<Theme>;
|
|
348
|
-
/** Custom styles for the radio group */
|
|
349
325
|
radioGroupSx?: SxProps<Theme>;
|
|
350
|
-
/** Custom styles for the form label */
|
|
351
326
|
formLabelSx?: SxProps<Theme>;
|
|
352
|
-
/** Custom styles for the radio buttons */
|
|
353
327
|
radioSx?: SxProps<Theme>;
|
|
354
|
-
/** Custom styles for the radio labels */
|
|
355
328
|
labelSx?: SxProps<Theme>;
|
|
356
|
-
/** Custom styles for the error message */
|
|
357
329
|
errorSx?: SxProps<Theme>;
|
|
358
|
-
/** Callback when the value changes */
|
|
359
330
|
onChange?: (event: React__default.ChangeEvent<HTMLInputElement>, value: string) => void;
|
|
360
|
-
/** Callback when the field is blurred */
|
|
361
331
|
onBlur?: (event: React__default.FocusEvent<HTMLInputElement>) => void;
|
|
362
332
|
}
|
|
363
333
|
declare const AppRadioGroup: React__default.ForwardRefExoticComponent<Omit<AppRadioGroupProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
@@ -436,12 +406,12 @@ interface AppRatingProps {
|
|
|
436
406
|
}
|
|
437
407
|
declare const AppRating: React$1.ForwardRefExoticComponent<AppRatingProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
438
408
|
|
|
439
|
-
|
|
409
|
+
type EditorButton = "bold" | "italic" | "underline" | "strike" | "bulletList" | "orderedList" | "alignLeft" | "alignCenter" | "alignRight" | "heading1" | "heading2" | "undo" | "redo" | "link";
|
|
410
|
+
interface Props$1 {
|
|
440
411
|
name: string;
|
|
441
412
|
label?: string;
|
|
442
413
|
placeholder?: string;
|
|
443
414
|
required?: boolean;
|
|
444
|
-
/** Variant of the input field */
|
|
445
415
|
variant?: "outlined" | "filled" | "standard";
|
|
446
416
|
sx?: SxProps<Theme>;
|
|
447
417
|
editorSx?: SxProps<Theme>;
|
|
@@ -452,192 +422,14 @@ interface Props$2 {
|
|
|
452
422
|
buttonSx?: SxProps<Theme>;
|
|
453
423
|
activeButtonSx?: SxProps<Theme>;
|
|
454
424
|
dialogSx?: SxProps<Theme>;
|
|
425
|
+
showButtons?: EditorButton[];
|
|
455
426
|
}
|
|
456
|
-
declare const AppRichTextEditor:
|
|
457
|
-
|
|
458
|
-
interface AppSelectOptions$1 {
|
|
459
|
-
/** Display text for the option */
|
|
460
|
-
label: string;
|
|
461
|
-
/** Unique value for the option */
|
|
462
|
-
value: number | string;
|
|
463
|
-
/** Additional searchable text */
|
|
464
|
-
searchAbleValue1?: string;
|
|
465
|
-
/** Additional searchable text */
|
|
466
|
-
searchAbleValue2?: string;
|
|
467
|
-
/** Additional searchable text */
|
|
468
|
-
searchAbleValue3?: string;
|
|
469
|
-
/** Whether the option is disabled */
|
|
470
|
-
disabled?: boolean;
|
|
471
|
-
/** Custom styles for the option */
|
|
472
|
-
sx?: SxProps<Theme>;
|
|
473
|
-
/** Custom styles for the option text */
|
|
474
|
-
textSx?: SxProps<Theme>;
|
|
475
|
-
/** Custom icon for the option */
|
|
476
|
-
icon?: ReactNode;
|
|
477
|
-
/** Custom component to render the option */
|
|
478
|
-
component?: ElementType;
|
|
479
|
-
/** Custom props for the option component */
|
|
480
|
-
componentProps?: Record<string, any>;
|
|
481
|
-
}
|
|
482
|
-
type CustomAutocompleteProps = Omit<AutocompleteProps<AppSelectOptions$1, boolean, boolean, boolean>, "renderInput" | "options" | "renderTags" | "onChange" | "value" | "multiple">;
|
|
483
|
-
interface AppSearchableMultiSelectorProps extends CustomAutocompleteProps {
|
|
484
|
-
/** Field name for formik */
|
|
485
|
-
name: string;
|
|
486
|
-
/** Label for the input */
|
|
487
|
-
label?: string;
|
|
488
|
-
/** Whether multiple selections are allowed */
|
|
489
|
-
multiple?: boolean;
|
|
490
|
-
/** Available options */
|
|
491
|
-
options: AppSelectOptions$1[];
|
|
492
|
-
/** Callback when search query changes */
|
|
493
|
-
setSearchQuery: React__default.Dispatch<SetStateAction<string>>;
|
|
494
|
-
/** Whether the field is required */
|
|
495
|
-
required?: boolean;
|
|
496
|
-
/** Whether the field is disabled */
|
|
497
|
-
disabled?: boolean;
|
|
498
|
-
/** Whether the field is read-only */
|
|
499
|
-
readOnly?: boolean;
|
|
500
|
-
/** Whether to show the helper text when no error */
|
|
501
|
-
showHelperText?: boolean;
|
|
502
|
-
/** Custom helper text */
|
|
503
|
-
helperText?: string;
|
|
504
|
-
/** Maximum number of selectable items */
|
|
505
|
-
maxSelections?: number;
|
|
506
|
-
/** Whether to show the selected count */
|
|
507
|
-
showSelectedCount?: boolean;
|
|
508
|
-
/** Variant of the input field */
|
|
509
|
-
variant?: "outlined" | "filled" | "standard";
|
|
510
|
-
/** Custom styles for the root container */
|
|
511
|
-
sx?: SxProps<Theme>;
|
|
512
|
-
/** Custom styles for the form control */
|
|
513
|
-
formControlSx?: SxProps<Theme>;
|
|
514
|
-
/** Custom styles for the label */
|
|
515
|
-
labelSx?: SxProps<Theme>;
|
|
516
|
-
/** Custom styles for the input */
|
|
517
|
-
inputSx?: SxProps<Theme>;
|
|
518
|
-
/** Custom styles for the text field */
|
|
519
|
-
textFieldSx?: SxProps<Theme>;
|
|
520
|
-
/** Custom styles for the autocomplete */
|
|
521
|
-
autocompleteSx?: SxProps<Theme>;
|
|
522
|
-
/** Custom styles for the listbox */
|
|
523
|
-
listboxSx?: SxProps<Theme>;
|
|
524
|
-
/** Custom styles for the option */
|
|
525
|
-
optionSx?: SxProps<Theme>;
|
|
526
|
-
/** Custom styles for the chip */
|
|
527
|
-
chipSx?: SxProps<Theme>;
|
|
528
|
-
/** Custom styles for the error message */
|
|
529
|
-
errorSx?: SxProps<Theme>;
|
|
530
|
-
/** Custom styles for the helper text */
|
|
531
|
-
helperTextSx?: SxProps<Theme>;
|
|
532
|
-
/** Custom styles for the selected count */
|
|
533
|
-
selectedCountSx?: SxProps<Theme>;
|
|
534
|
-
/** Custom render function for the input */
|
|
535
|
-
renderInput?: (params: AutocompleteRenderInputParams) => ReactNode;
|
|
536
|
-
/** Custom render function for the option */
|
|
537
|
-
renderOption?: (props: React__default.HTMLAttributes<HTMLLIElement>, option: AppSelectOptions$1, state: AutocompleteRenderOptionState, ownerState: any) => ReactNode;
|
|
538
|
-
/** Custom render function for the selected value */
|
|
539
|
-
renderTags?: (value: AppSelectOptions$1[], getTagProps: (params: {
|
|
540
|
-
index: number;
|
|
541
|
-
}) => {
|
|
542
|
-
key: number | string;
|
|
543
|
-
}, ownerState: any) => ReactNode;
|
|
544
|
-
/** Custom render function for the group */
|
|
545
|
-
renderGroup?: (params: AutocompleteRenderGroupParams) => ReactNode;
|
|
546
|
-
/** Custom component for the label */
|
|
547
|
-
labelComponent?: ElementType;
|
|
548
|
-
/** Custom component for the input */
|
|
549
|
-
inputComponent?: ElementType;
|
|
550
|
-
/** Custom component for the error */
|
|
551
|
-
errorComponent?: ElementType;
|
|
552
|
-
/** Custom component for the helper text */
|
|
553
|
-
helperTextComponent?: ElementType;
|
|
554
|
-
/** Custom props for the label component */
|
|
555
|
-
labelProps?: Record<string, any>;
|
|
556
|
-
/** Custom props for the input component */
|
|
557
|
-
inputProps?: Record<string, any>;
|
|
558
|
-
/** Custom props for the text field component */
|
|
559
|
-
textFieldProps?: Record<string, any>;
|
|
560
|
-
/** Custom props for the autocomplete component */
|
|
561
|
-
autocompleteProps?: Record<string, any>;
|
|
562
|
-
/** Custom props for the checkbox component */
|
|
563
|
-
checkboxProps?: CheckboxProps;
|
|
564
|
-
/** Custom props for the chip component */
|
|
565
|
-
chipProps?: ChipProps;
|
|
566
|
-
/** Custom props for the error component */
|
|
567
|
-
errorProps?: Record<string, any>;
|
|
568
|
-
/** Custom props for the helper text component */
|
|
569
|
-
helperTextProps?: Record<string, any>;
|
|
570
|
-
/** Custom class name for the root container */
|
|
571
|
-
className?: string;
|
|
572
|
-
/** Custom class name for the form control */
|
|
573
|
-
formControlClassName?: string;
|
|
574
|
-
/** Custom class name for the label */
|
|
575
|
-
labelClassName?: string;
|
|
576
|
-
/** Custom class name for the input */
|
|
577
|
-
inputClassName?: string;
|
|
578
|
-
/** Custom class name for the text field */
|
|
579
|
-
textFieldClassName?: string;
|
|
580
|
-
/** Custom class name for the autocomplete */
|
|
581
|
-
autocompleteClassName?: string;
|
|
582
|
-
/** Custom class name for the listbox */
|
|
583
|
-
listboxClassName?: string;
|
|
584
|
-
/** Custom class name for the option */
|
|
585
|
-
optionClassName?: string;
|
|
586
|
-
/** Custom class name for the chip */
|
|
587
|
-
chipClassName?: string;
|
|
588
|
-
/** Custom class name for the error */
|
|
589
|
-
errorClassName?: string;
|
|
590
|
-
/** Custom class name for the helper text */
|
|
591
|
-
helperTextClassName?: string;
|
|
592
|
-
/** Callback when the selection changes */
|
|
593
|
-
onChange?: (event: React__default.SyntheticEvent, value: AppSelectOptions$1[], reason: string) => void;
|
|
594
|
-
/** Callback when the input value changes */
|
|
595
|
-
onInputChange?: (event: React__default.SyntheticEvent, value: string, reason: string) => void;
|
|
596
|
-
/** Callback when the dropdown is opened */
|
|
597
|
-
onOpen?: (event: React__default.SyntheticEvent) => void;
|
|
598
|
-
/** Callback when the dropdown is closed */
|
|
599
|
-
onClose?: (event: React__default.SyntheticEvent, reason: string) => void;
|
|
600
|
-
/** Callback when the blur event occurs */
|
|
601
|
-
onBlur?: (event: React__default.FocusEvent) => void;
|
|
602
|
-
/** Callback when the focus event occurs */
|
|
603
|
-
onFocus?: (event: React__default.FocusEvent) => void;
|
|
604
|
-
/** Callback when the clear button is clicked */
|
|
605
|
-
onClear?: () => void;
|
|
606
|
-
/** Callback when the maximum number of selections is reached */
|
|
607
|
-
onMaxSelectionsReached?: (maxSelections: number) => void;
|
|
608
|
-
/** Callback when a selection is removed */
|
|
609
|
-
onRemove?: (value: AppSelectOptions$1) => void;
|
|
610
|
-
/** Callback when a selection is added */
|
|
611
|
-
onAdd?: (value: AppSelectOptions$1) => void;
|
|
612
|
-
}
|
|
613
|
-
declare const AppSearchableMultiSelector: React__default.ForwardRefExoticComponent<Omit<AppSearchableMultiSelectorProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
614
|
-
|
|
615
|
-
interface AppSelectOptions {
|
|
616
|
-
label: string;
|
|
617
|
-
value: string | number;
|
|
618
|
-
searchAbleValue1?: string;
|
|
619
|
-
searchAbleValue2?: string;
|
|
620
|
-
searchAbleValue3?: string;
|
|
621
|
-
}
|
|
622
|
-
interface Props$1 extends Omit<AutocompleteProps<AppSelectOptions, false, false, false>, "options" | "renderInput" | "value" | "onChange"> {
|
|
623
|
-
name: string;
|
|
624
|
-
label: string;
|
|
625
|
-
options: AppSelectOptions[];
|
|
626
|
-
setSearchQuery?: React__default.Dispatch<SetStateAction<string>> | undefined;
|
|
627
|
-
required?: boolean;
|
|
628
|
-
placeholder?: string;
|
|
629
|
-
isResetRequired?: boolean;
|
|
630
|
-
variant?: "outlined" | "filled" | "standard";
|
|
631
|
-
}
|
|
632
|
-
declare function AppSearchableSelectInput({ name, label, options, required, variant, placeholder, setSearchQuery, isResetRequired, ...otherProps }: Props$1): React__default.JSX.Element;
|
|
427
|
+
declare const AppRichTextEditor: React__default.FC<Props$1>;
|
|
633
428
|
|
|
634
429
|
interface AppSelectOption {
|
|
635
430
|
label: string;
|
|
636
431
|
value: string | number;
|
|
637
432
|
disabled?: boolean;
|
|
638
|
-
searchAbleValue1?: string;
|
|
639
|
-
searchAbleValue2?: string;
|
|
640
|
-
searchAbleValue3?: string;
|
|
641
433
|
sx?: SxProps<Theme>;
|
|
642
434
|
textSx?: SxProps<Theme>;
|
|
643
435
|
icon?: ReactNode;
|
|
@@ -757,4 +549,4 @@ interface Props extends BoxProps {
|
|
|
757
549
|
}
|
|
758
550
|
declare const Iconify: React$1.ForwardRefExoticComponent<Omit<Props, "ref"> & React$1.RefAttributes<SVGElement>>;
|
|
759
551
|
|
|
760
|
-
export { AppAutoComplete, AppAutoCompleter, AppCheckBox, AppDateAndTimePicker, AppDatePicker, AppFormErrorMessage, AppInputField, AppMultiSelector, AppPhoneNoInput, AppRadioGroup, AppRating, AppRichTextEditor,
|
|
552
|
+
export { AppAutoComplete, AppAutoCompleter, AppCheckBox, AppDateAndTimePicker, AppDatePicker, AppFormErrorMessage, AppInputField, AppMultiSelector, AppPhoneNoInput, AppRadioGroup, AppRating, AppRichTextEditor, AppSelectInput, AppSimpleUploadFile, AppSwitch, AppSwitchInput, AppTagsCreator, AppTextArea, AppUploadFile, Form, Iconify, IconifyProps, SubmitButton, UploadProps };
|