demio-ui 2.5.23 → 2.5.25

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.
@@ -1,11 +1,12 @@
1
1
  import { FC, ReactNode } from 'react';
2
2
  export interface SelectOptions {
3
+ cancelUpload?: () => void;
4
+ croppedImageURL?: string;
3
5
  itemNumber: number;
4
- file?: string;
5
- resetUpload?: () => void;
6
- setFile?: (file: string) => void;
6
+ setFileUrl?: (file: string) => void;
7
7
  }
8
8
  export interface UploadMenuItem {
9
+ action?: 'cancel';
9
10
  className?: string;
10
11
  icon?: ReactNode;
11
12
  onSelect?: (e: Event, options: SelectOptions) => void;
package/dist/types.d.ts CHANGED
@@ -476,12 +476,13 @@ interface TypoProps extends PropsWithChildren {
476
476
  declare const Typography: ({ tag, dataTestId, align, className, children, emphasis, title, variant, ...restProps }: TypoProps) => React__default.JSX.Element;
477
477
 
478
478
  interface SelectOptions {
479
+ cancelUpload?: () => void;
480
+ croppedImageURL?: string;
479
481
  itemNumber: number;
480
- file?: string;
481
- resetUpload?: () => void;
482
- setFile?: (file: string) => void;
482
+ setFileUrl?: (file: string) => void;
483
483
  }
484
484
  interface UploadMenuItem {
485
+ action?: 'cancel';
485
486
  className?: string;
486
487
  icon?: ReactNode;
487
488
  onSelect?: (e: Event, options: SelectOptions) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "demio-ui",
3
- "version": "2.5.23",
3
+ "version": "2.5.25",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",