formik-form-components 0.2.14 → 0.2.15

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 { IconifyIcon } from '@iconify/react';
11
10
  import { DropzoneOptions } from 'react-dropzone';
11
+ import { IconifyIcon } from '@iconify/react';
12
12
 
13
13
  type PickerChangeHandlerContext = {
14
14
  validationError: string | null;
@@ -787,49 +787,6 @@ 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
-
833
790
  interface FileItem extends File {
834
791
  id?: number | string;
835
792
  preview?: string;
@@ -865,4 +822,35 @@ interface UploadProps extends DropzoneOptions {
865
822
  onRemoveAll?: VoidFunction;
866
823
  }
867
824
 
825
+ interface AppUploadFilePropTypes extends UploadProps {
826
+ name: string;
827
+ label?: string;
828
+ }
829
+ declare const AppUploadFile: ({ name, ...rest }: AppUploadFilePropTypes) => react_jsx_runtime.JSX.Element;
830
+
831
+ interface SubmitButtonProps {
832
+ children: React__default.ReactNode;
833
+ loading?: boolean;
834
+ disabled?: boolean;
835
+ fullWidth?: boolean;
836
+ variant?: 'text' | 'outlined' | 'contained';
837
+ color?: 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
838
+ size?: 'small' | 'medium' | 'large';
839
+ startIcon?: React__default.ReactNode;
840
+ endIcon?: React__default.ReactNode;
841
+ sx?: SxProps<Theme>;
842
+ buttonSx?: SxProps<Theme>;
843
+ loadingSx?: SxProps<Theme>;
844
+ disabledSx?: SxProps<Theme>;
845
+ [key: string]: any;
846
+ }
847
+ declare const SubmitButton: ({ children, loading, disabled, fullWidth, variant, color, size, startIcon, endIcon, sx, buttonSx, loadingSx, disabledSx, ...rest }: SubmitButtonProps) => React__default.JSX.Element;
848
+
849
+ type IconifyProps = IconifyIcon | string;
850
+
851
+ interface Props extends BoxProps {
852
+ icon: IconifyProps;
853
+ }
854
+ declare const Iconify: React$1.ForwardRefExoticComponent<Omit<Props, "ref"> & React$1.RefAttributes<SVGElement>>;
855
+
868
856
  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 };