@groupeactual/ui-kit 1.7.1 → 1.7.2

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.
@@ -247,6 +247,7 @@ interface FileDataType {
247
247
  size: number;
248
248
  type: string;
249
249
  url: string;
250
+ file?: File;
250
251
  driveFileId?: string;
251
252
  driveAccessToken?: string;
252
253
  }
@@ -262,6 +263,8 @@ interface Props$a {
262
263
  accept?: string[];
263
264
  acceptText?: AcceptTextType;
264
265
  orText?: string;
266
+ fromLocalText?: string;
267
+ fromGoogleDriveText?: string;
265
268
  disabled?: boolean;
266
269
  error?: string;
267
270
  enableGoogleDrive?: boolean;
@@ -270,9 +273,9 @@ interface Props$a {
270
273
  _isDroppingFile?: boolean;
271
274
  validateFile?: (_size: number, _type: string, _accept: string[], _setUploadFileError: React.Dispatch<React.SetStateAction<boolean | string>>) => boolean;
272
275
  onTouched?: () => void;
273
- onFilesDataChange?: (_fileData: FileDataType[] | undefined, _filesInput?: File[]) => void;
276
+ onFilesDataChange?: (_fileData: FileDataType[] | undefined) => void;
274
277
  }
275
- declare const FileUploader: ({ title, subTitle, titleAddButton, helperText, titleTooltip, files, isMulti, accept, acceptText, orText, disabled, error, enableGoogleDrive, googleAuthClientId, googleApiKey, _isDroppingFile, validateFile, onTouched, onFilesDataChange, }: Props$a) => React.JSX.Element;
278
+ declare const FileUploader: ({ title, subTitle, titleAddButton, helperText, titleTooltip, files, isMulti, accept, acceptText, orText, fromLocalText, fromGoogleDriveText, disabled, error, enableGoogleDrive, googleAuthClientId, googleApiKey, _isDroppingFile, validateFile, onTouched, onFilesDataChange, }: Props$a) => React.JSX.Element;
276
279
 
277
280
  interface Props$9 extends Omit<MenuItemProps, 'onClick'> {
278
281
  onClick: (_event?: React.MouseEvent<HTMLElement>) => void;