ados-rcm 1.0.338 → 1.0.339

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,13 +1,14 @@
1
+ /// <reference types="react" />
1
2
  import { IABaseProps } from '../ABase/ABase';
2
3
  import { TIcons } from '../AIcon/AIcon';
3
4
  type TAIconButtonTypes = 'Primary' | 'Raw';
4
5
  interface IAIconButtonProps extends IABaseProps {
5
6
  /**
6
- * icon : TIcons
7
+ * icon : TIcons | Exclude<React.ReactNode, string>;
7
8
  *
8
- * Description : icon of AIconButton
9
+ * Description : icon of AIconButton. if 'none', no icon is set as default.
9
10
  */
10
- icon: TIcons;
11
+ icon: TIcons | Exclude<React.ReactNode, string>;
11
12
  /**
12
13
  * type? : TAIconButtonTypes = 'Primary'
13
14
  *
@@ -97,9 +97,9 @@ export interface IATreeProps<T extends IATreeItem<T>> extends IABaseProps {
97
97
  * Description : icons of ATree
98
98
  */
99
99
  icons?: {
100
- noChild?: TIcons;
101
- collapsed?: TIcons;
102
- expanded?: TIcons;
100
+ noChild?: TIcons | Exclude<React.ReactNode, string>;
101
+ collapsed?: TIcons | Exclude<React.ReactNode, string>;
102
+ expanded?: TIcons | Exclude<React.ReactNode, string>;
103
103
  };
104
104
  /**
105
105
  * iconWidth? : number
@@ -16,10 +16,10 @@ export interface IATreeItemProps<T> {
16
16
  onDragOver?: (e: React.DragEvent<HTMLElement>, item: T) => void;
17
17
  onDragEnd?: (e: React.DragEvent<HTMLElement>, item: T) => void;
18
18
  showCheckbox?: boolean;
19
- icons?: {
20
- noChild?: TIcons;
21
- collapsed?: TIcons;
22
- expanded?: TIcons;
19
+ icons: {
20
+ noChild?: TIcons | Exclude<React.ReactNode, string>;
21
+ collapsed?: TIcons | Exclude<React.ReactNode, string>;
22
+ expanded?: TIcons | Exclude<React.ReactNode, string>;
23
23
  };
24
24
  iconWidth: number;
25
25
  isSelectMulti: boolean;