@comercti/react-components-hmg 0.22.9 → 0.22.11

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/index.d.ts CHANGED
@@ -284,6 +284,7 @@ updateFiles: (file: FileItem[]) => any;
284
284
  onUpdateFiles?: (file: FileItem[]) => any;
285
285
  }>, {
286
286
  disabled: boolean;
287
+ file: FileItem | null;
287
288
  rounded: "md" | "lg" | "xl";
288
289
  compact: boolean;
289
290
  variant: "primary" | "secondary";
@@ -2101,7 +2102,7 @@ declare interface DropdownProps {
2101
2102
  declare interface FileItem {
2102
2103
  file: File;
2103
2104
  progress: number;
2104
- status: string;
2105
+ status: 'uploading' | 'success' | 'error';
2105
2106
  }
2106
2107
 
2107
2108
  declare type FormatDate = 'yyyy-MM-dd' | 'dd/MM/yyyy' | 'timestamp' | 'iso' | 'string';
@@ -2171,6 +2172,8 @@ declare interface IDropzone {
2171
2172
  compact?: boolean;
2172
2173
  /** Define o tamanho dos badges */
2173
2174
  rounded?: 'md' | 'lg' | 'xl';
2175
+ /** Prop utilizada para atualizar o progresso quando simulateProgress é false */
2176
+ file?: FileItem | null;
2174
2177
  }
2175
2178
 
2176
2179
  declare interface IItems {
@@ -2352,8 +2355,6 @@ id: number;
2352
2355
  data: IData | null;
2353
2356
  }[]>;
2354
2357
 
2355
- export declare const updateProgress: (file: File, progress: number | "error" | "done", status?: "uploading" | "success" | "error") => void;
2356
-
2357
2358
  export { }
2358
2359
 
2359
2360
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comercti/react-components-hmg",
3
- "version": "0.22.9",
3
+ "version": "0.22.11",
4
4
  "types": "index.d.ts",
5
5
  "type": "module",
6
6
  "license": "private",