formik-form-components 0.2.13 → 0.2.14

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
@@ -7,8 +7,8 @@ import { SelectProps, SelectChangeEvent as SelectChangeEvent$1 } from '@mui/mate
7
7
  import * as react_jsx_runtime from 'react/jsx-runtime';
8
8
  import { Dayjs } from 'dayjs';
9
9
  import { DatePickerProps } from '@mui/x-date-pickers/DatePicker';
10
- import { DropzoneOptions } from 'react-dropzone';
11
10
  import { IconifyIcon } from '@iconify/react';
11
+ import { DropzoneOptions } from 'react-dropzone';
12
12
 
13
13
  type PickerChangeHandlerContext = {
14
14
  validationError: string | null;
@@ -492,7 +492,7 @@ interface Props$2 {
492
492
  placeholder?: string;
493
493
  required?: boolean;
494
494
  /** Variant of the input field */
495
- variant?: 'outlined' | 'filled' | 'standard';
495
+ variant?: "outlined" | "filled" | "standard";
496
496
  sx?: SxProps<Theme>;
497
497
  editorSx?: SxProps<Theme>;
498
498
  toolbarSx?: SxProps<Theme>;
@@ -787,6 +787,49 @@ interface AppSimpleUploadFileProps {
787
787
  }
788
788
  declare const AppSimpleUploadFile: React__default.FC<AppSimpleUploadFileProps>;
789
789
 
790
+ interface AppUploadFileProps {
791
+ name: string;
792
+ label?: string;
793
+ multiple?: boolean;
794
+ accept?: string;
795
+ maxFiles?: number;
796
+ maxSize?: number;
797
+ disabled?: boolean;
798
+ sx?: SxProps<Theme>;
799
+ dropZoneSx?: SxProps<Theme>;
800
+ previewSx?: SxProps<Theme>;
801
+ errorSx?: SxProps<Theme>;
802
+ helperTextSx?: SxProps<Theme>;
803
+ onDrop?: (acceptedFiles: File[]) => void;
804
+ onDelete?: () => void;
805
+ }
806
+ declare const AppUploadFile: ({ name, label, multiple, accept, maxFiles, maxSize, disabled, sx, dropZoneSx, previewSx, errorSx, helperTextSx, onDrop: externalOnDrop, onDelete: externalOnDelete, ...rest }: AppUploadFileProps) => react_jsx_runtime.JSX.Element;
807
+
808
+ interface SubmitButtonProps {
809
+ children: React__default.ReactNode;
810
+ loading?: boolean;
811
+ disabled?: boolean;
812
+ fullWidth?: boolean;
813
+ variant?: 'text' | 'outlined' | 'contained';
814
+ color?: 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
815
+ size?: 'small' | 'medium' | 'large';
816
+ startIcon?: React__default.ReactNode;
817
+ endIcon?: React__default.ReactNode;
818
+ sx?: SxProps<Theme>;
819
+ buttonSx?: SxProps<Theme>;
820
+ loadingSx?: SxProps<Theme>;
821
+ disabledSx?: SxProps<Theme>;
822
+ [key: string]: any;
823
+ }
824
+ declare const SubmitButton: ({ children, loading, disabled, fullWidth, variant, color, size, startIcon, endIcon, sx, buttonSx, loadingSx, disabledSx, ...rest }: SubmitButtonProps) => React__default.JSX.Element;
825
+
826
+ type IconifyProps = IconifyIcon | string;
827
+
828
+ interface Props extends BoxProps {
829
+ icon: IconifyProps;
830
+ }
831
+ declare const Iconify: React$1.ForwardRefExoticComponent<Omit<Props, "ref"> & React$1.RefAttributes<SVGElement>>;
832
+
790
833
  interface FileItem extends File {
791
834
  id?: number | string;
792
835
  preview?: string;
@@ -822,41 +865,4 @@ interface UploadProps extends DropzoneOptions {
822
865
  onRemoveAll?: VoidFunction;
823
866
  }
824
867
 
825
- interface AppUploadFilePropTypes extends UploadProps {
826
- name: string;
827
- label?: string;
828
- sx?: SxProps<Theme>;
829
- uploadSx?: SxProps<Theme>;
830
- errorSx?: SxProps<Theme>;
831
- helperTextSx?: SxProps<Theme>;
832
- previewSx?: SxProps<Theme>;
833
- dropZoneSx?: SxProps<Theme>;
834
- }
835
- declare const AppUploadFile: ({ name, sx, uploadSx, errorSx, helperTextSx, previewSx, dropZoneSx, ...rest }: AppUploadFilePropTypes) => react_jsx_runtime.JSX.Element;
836
-
837
- interface SubmitButtonProps {
838
- children: React__default.ReactNode;
839
- loading?: boolean;
840
- disabled?: boolean;
841
- fullWidth?: boolean;
842
- variant?: 'text' | 'outlined' | 'contained';
843
- color?: 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
844
- size?: 'small' | 'medium' | 'large';
845
- startIcon?: React__default.ReactNode;
846
- endIcon?: React__default.ReactNode;
847
- sx?: SxProps<Theme>;
848
- buttonSx?: SxProps<Theme>;
849
- loadingSx?: SxProps<Theme>;
850
- disabledSx?: SxProps<Theme>;
851
- [key: string]: any;
852
- }
853
- declare const SubmitButton: ({ children, loading, disabled, fullWidth, variant, color, size, startIcon, endIcon, sx, buttonSx, loadingSx, disabledSx, ...rest }: SubmitButtonProps) => React__default.JSX.Element;
854
-
855
- type IconifyProps = IconifyIcon | string;
856
-
857
- interface Props extends BoxProps {
858
- icon: IconifyProps;
859
- }
860
- declare const Iconify: React$1.ForwardRefExoticComponent<Omit<Props, "ref"> & React$1.RefAttributes<SVGElement>>;
861
-
862
868
  export { AppAutoComplete, AppAutoCompleter, AppCheckBox, AppDateAndTimePicker, AppDatePicker, AppFormErrorMessage, AppInputField, AppMultiSelector, AppPhoneNoInput, AppRadioGroup, AppRating, AppRichTextEditor, AppSearchableMultiSelector, AppSearchableSelectInput, AppSelectInput, AppSimpleUploadFile, AppSwitch, AppSwitchInput, AppTagsCreator, AppTextArea, AppUploadFile, Form, Iconify, IconifyProps, SubmitButton, UploadProps };