ados-rcm 1.1.455 → 1.1.456

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,15 +1,57 @@
1
1
  import { IAProgressBarProps } from '../AProgressBar/AProgressBar';
2
2
  import { EDir4 } from '../ATypes/ATypes';
3
+ /**
4
+ * AComponent : ABase
5
+ *
6
+ * Description : ABase is a base component(like div) that can have isDisabled, isLoading and tooltip.
7
+ *
8
+ * Basic Usage :
9
+ *
10
+ * if (case 1)
11
+ * <ABase>
12
+ * {children}
13
+ * </ABase>
14
+ *
15
+ * if (case 2)
16
+ * <ABase isDisabled>
17
+ * {children}
18
+ * </ABase>
19
+ *
20
+ * if (case 3)
21
+ * <ABase isLoading>
22
+ * {children}
23
+ * </ABase>
24
+ *
25
+ * if (case 4)
26
+ * <ABase tooltip="tooltip text">
27
+ * {children}
28
+ * </ABase>
29
+ *
30
+ * if (case 5)
31
+ * <ABase isLoading progress={50}>
32
+ * {children}
33
+ * </ABase>
34
+ *
35
+ * if (case 6)
36
+ * <ABase abaseRef={myRef}>
37
+ * {children}
38
+ * </ABase>
39
+ *
40
+ * if (case 7)
41
+ * <ABase ref={(el) => { myCallbackRef(el) }}>
42
+ * {children}
43
+ * </ABase>
44
+ */
3
45
  export interface IABaseProps extends React.HTMLAttributes<HTMLElement> {
4
46
  className?: string;
5
47
  style?: React.CSSProperties;
6
48
  children?: React.ReactNode;
7
49
  /**
8
- * abaseRef? : React.RefObject<HTMLDivElement> | ((element: HTMLDivElement | null) => void)
50
+ * abaseRef? : React.RefObject<HTMLDivElement>
9
51
  *
10
- * Description : ref of ABase. Supports both RefObject and callback ref.
52
+ * Description : ref of ABase. Accepts a RefObject for external access.
11
53
  */
12
- abaseRef?: React.RefObject<HTMLDivElement> | ((element: HTMLDivElement | null) => void);
54
+ abaseRef?: React.RefObject<HTMLDivElement>;
13
55
  /**
14
56
  * isDisabled? : boolean | string
15
57
  *
@@ -65,41 +107,4 @@ export interface IABaseProps extends React.HTMLAttributes<HTMLElement> {
65
107
  */
66
108
  progressProps?: Omit<IAProgressBarProps, 'progress'>;
67
109
  }
68
- /**
69
- * AComponent : ABase
70
- *
71
- * Description : ABase is a base component(like div) that can have isDisabled, isLoading and tooltip.
72
- *
73
- * Basic Usage :
74
- *
75
- * if (case 1)
76
- * <ABase>
77
- * {children}
78
- * </ABase>
79
- *
80
- * if (case 2)
81
- * <ABase isDisabled>
82
- * {children}
83
- * </ABase>
84
- *
85
- * if (case 3)
86
- * <ABase isLoading>
87
- * {children}
88
- * </ABase>
89
- *
90
- * if (case 4)
91
- * <ABase tooltip="tooltip text">
92
- * {children}
93
- * </ABase>
94
- *
95
- * if (case 5)
96
- * <ABase isLoading progress={50}>
97
- * {children}
98
- * </ABase>
99
- *
100
- * if (case 6)
101
- * <ABase abaseRef={(el) => { myCallbackRef(el) }}>
102
- * {children}
103
- * </ABase>
104
- */
105
110
  export declare const ABase: (props: IABaseProps) => React.ReactNode;