formik-form-components 0.2.16 → 0.2.18

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/index.d.ts CHANGED
@@ -6,48 +6,18 @@ import { Theme as Theme$1 } from '@mui/material/styles';
6
6
  import { SelectProps, SelectChangeEvent as SelectChangeEvent$1 } from '@mui/material/Select';
7
7
  import * as react_jsx_runtime from 'react/jsx-runtime';
8
8
  import { Dayjs } from 'dayjs';
9
- import { DatePickerProps } from '@mui/x-date-pickers/DatePicker';
10
9
  import { DropzoneOptions } from 'react-dropzone';
11
10
  import { IconifyIcon } from '@iconify/react';
12
11
 
13
- type PickerChangeHandlerContext = {
14
- validationError: string | null;
15
- };
16
-
17
- declare const AppDatePicker: React__default.ForwardRefExoticComponent<Omit<DatePickerProps<boolean, Dayjs, Dayjs>, "value" | "onChange" | "renderInput" | "slotProps"> & {
18
- /** Variant of the input field */
19
- variant?: "outlined" | "filled" | "standard";
20
- /** Field name for formik */
12
+ type AppDatePickerProps = {
21
13
  name: string;
22
- /** Label for the date picker */
23
14
  label?: string;
24
- /** Whether the field is required */
25
- required?: boolean;
26
- /** Whether the field is disabled */
27
15
  disabled?: boolean;
28
- /** Whether to show the calendar icon */
29
- showIcon?: boolean;
30
- /** Format for the displayed date */
31
16
  format?: string;
32
- /** Custom styles for the root container */
33
17
  sx?: SxProps<Theme>;
34
- /** Custom styles for the form control */
35
- formControlSx?: SxProps<Theme>;
36
- /** Custom styles for the text field */
37
18
  textFieldSx?: SxProps<Theme>;
38
- /** Custom styles for the label */
39
- labelSx?: SxProps<Theme>;
40
- /** Custom styles for the input */
41
- inputSx?: SxProps<Theme>;
42
- /** Custom styles for the error message */
43
- errorSx?: SxProps<Theme>;
44
- /** Custom styles for the calendar icon */
45
- iconSx?: SxProps<Theme>;
46
- /** Callback when the value changes */
47
- onChange?: (value: Dayjs | null, context: PickerChangeHandlerContext) => void;
48
- /** Callback when the field is blurred */
49
- onBlur?: (event: React__default.FocusEvent<HTMLInputElement>) => void;
50
- } & React__default.RefAttributes<HTMLDivElement>>;
19
+ };
20
+ declare const AppDatePicker: React__default.ForwardRefExoticComponent<AppDatePickerProps & React__default.RefAttributes<HTMLDivElement>>;
51
21
 
52
22
  interface AppSelectOptions$4 {
53
23
  label: string;
@@ -73,7 +43,7 @@ interface AppDateAndTimePickerProps {
73
43
  /** Label for the date and time picker */
74
44
  label?: string;
75
45
  /** Variant of the input field */
76
- variant?: 'outlined' | 'filled' | 'standard';
46
+ variant?: "outlined" | "filled" | "standard";
77
47
  /** Placeholder text */
78
48
  placeholder?: string;
79
49
  /** Whether the field is required */
@@ -428,7 +398,7 @@ interface AppRatingProps {
428
398
  /** Precision of the rating */
429
399
  precision?: number;
430
400
  /** Size of the rating icons */
431
- size?: 'small' | 'medium' | 'large' | number;
401
+ size?: "small" | "medium" | "large" | number;
432
402
  /** Custom icon for empty rating */
433
403
  emptyIcon?: ReactNode;
434
404
  /** Custom icon for filled rating */