@ioca/react 1.2.1 → 1.2.3

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.
@@ -237,6 +237,7 @@ interface IDrawer extends HTMLAttributes<HTMLDivElement> {
237
237
  hideCloseButton?: boolean;
238
238
  backdropClosable?: boolean;
239
239
  keepDOM?: boolean;
240
+ disabledEsc?: boolean;
240
241
  onVisibleChange?: (visible: boolean) => void;
241
242
  onClose?: () => void;
242
243
  }
@@ -298,6 +299,7 @@ interface IEditor {
298
299
  placeholder?: string;
299
300
  width?: string | number;
300
301
  height?: string | number;
302
+ autosize?: boolean;
301
303
  controls?: string[] | "simple" | "all";
302
304
  onInput?: (html: string, e: FormEvent<HTMLDivElement>) => void;
303
305
  }
@@ -347,6 +349,7 @@ interface IForm extends HTMLAttributes<HTMLFormElement> {
347
349
  rules?: {
348
350
  [key: string]: boolean | TValidator | TRule;
349
351
  };
352
+ columns?: number | string;
350
353
  initialValues?: Record<string, any>;
351
354
  width?: string | number;
352
355
  gap?: string | number;
@@ -493,6 +496,7 @@ declare namespace message {
493
496
  declare function useModal(): {
494
497
  open: (props: IModal) => void;
495
498
  update: (props: IModal) => void;
499
+ close: () => void;
496
500
  };
497
501
 
498
502
  interface IModal extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
@@ -511,6 +515,8 @@ interface IModal extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
511
515
  okButtonProps?: IButton;
512
516
  cancelButtonProps?: IButton;
513
517
  footerLeft?: ReactNode;
518
+ keepDOM?: boolean;
519
+ disableEsc?: boolean;
514
520
  onVisibleChange?: (visible: boolean) => void;
515
521
  onOk?: () => void | Promise<any>;
516
522
  onClose?: () => void;
@@ -595,13 +601,17 @@ interface IProgress extends Omit<BaseInput, "value" | "hideClear" | "onChange">
595
601
  value?: number;
596
602
  precision?: number;
597
603
  height?: number;
604
+ circleSize?: number;
605
+ lineWidth?: number;
598
606
  size?: number;
599
607
  barClass?: string;
600
608
  draggable?: boolean;
609
+ vertical?: boolean;
601
610
  type?: "line" | "circle";
602
611
  className?: string;
603
612
  style?: CSSProperties;
604
613
  renderCursor?: (value: number) => ReactNode;
614
+ onDraggingChange?: (dragging: boolean) => void;
605
615
  onChange?: (value: number) => void;
606
616
  }
607
617
 
@@ -902,7 +912,7 @@ interface IUpload extends Omit<BaseInput, "ref">, Omit<InputHTMLAttributes<HTMLI
902
912
  renderItem?: (file: IFile, i: number) => ReactNode;
903
913
  onFilesChange?: (files: IFile[], changed: IFile[], e?: ChangeEvent<HTMLInputElement>) => void;
904
914
  onRemove?: (file: IFile) => void;
905
- onUpload?: (file: IFile) => void;
915
+ onUpload?: (result: any) => void | Promise<any>;
906
916
  }
907
917
  interface IFile extends File {
908
918
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ioca/react",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",