ados-rcm 1.0.9 → 1.0.12
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/dist/AModule/AComponents/ABase/ABase.d.ts +26 -19
- package/dist/AModule/AComponents/AButton/AButton.d.ts +18 -4
- package/dist/AModule/AComponents/AButton/AIconButton.d.ts +11 -5
- package/dist/AModule/AComponents/ACheckBox/ACheckBox.d.ts +15 -8
- package/dist/AModule/AComponents/AClock/AClock.d.ts +22 -28
- package/dist/AModule/AComponents/ADatePicker/ADatePicker.d.ts +25 -40
- package/dist/AModule/AComponents/ADatePicker/ADateRangePicker.d.ts +15 -17
- package/dist/AModule/AComponents/ADialog/ADialog.d.ts +35 -47
- package/dist/AModule/AComponents/AFileBox/AFileBox.d.ts +11 -9
- package/dist/AModule/AComponents/AFloatMenu/AFloatMenu.d.ts +30 -46
- package/dist/AModule/AComponents/AFrames/AFrames.d.ts +26 -17
- package/dist/AModule/AComponents/AGrow/AGrow.d.ts +9 -5
- package/dist/AModule/AComponents/AIcon/AIcon.d.ts +6 -3
- package/dist/AModule/AComponents/AInput/AInput.d.ts +21 -32
- package/dist/AModule/AComponents/AListView/AListView.d.ts +28 -17
- package/dist/AModule/AComponents/ASelect/ASelect.d.ts +39 -39
- package/dist/AModule/AComponents/ASpace/ASpace.d.ts +6 -8
- package/dist/AModule/AComponents/AStepper/AStepper.d.ts +26 -27
- package/dist/AModule/AComponents/ASwitch/ASwitch.d.ts +11 -8
- package/dist/AModule/AComponents/ATab/ATab.d.ts +25 -26
- package/dist/AModule/AComponents/ATable/ATable.d.ts +147 -98
- package/dist/AModule/AComponents/AText/AText.d.ts +19 -4
- package/dist/AModule/AComponents/ATextArea/ATextArea.d.ts +19 -24
- package/dist/AModule/AComponents/ATooltip/ATooltip.d.ts +16 -5
- package/dist/AModule/AComponents/ATree/ATree.d.ts +44 -11
- package/dist/AModule/AComponents/AWrap/AWrap.d.ts +12 -3
- package/dist/index.cjs.js +3 -3
- package/dist/index.es.js +152 -152
- package/package.json +1 -1
|
@@ -2,31 +2,46 @@ import React from 'react';
|
|
|
2
2
|
interface IATextProps {
|
|
3
3
|
/**
|
|
4
4
|
* text? : string
|
|
5
|
+
*
|
|
5
6
|
* Description : text of AText
|
|
6
7
|
*/
|
|
7
8
|
text?: string;
|
|
8
9
|
/**
|
|
9
10
|
* styled? : boolean | string
|
|
11
|
+
*
|
|
10
12
|
* Description : styled of AText. if true, all text is styled. if string, the matching string on text will be styled.
|
|
11
13
|
*/
|
|
12
14
|
styled?: boolean | string;
|
|
13
15
|
/**
|
|
14
16
|
* style? : 'bold' | React.CSSProperties
|
|
17
|
+
*
|
|
15
18
|
* Description : style of AText. if 'bold', text will be bold. if React.CSSProperties, text will be styled with the style.
|
|
16
19
|
*/
|
|
17
20
|
style?: 'bold' | React.CSSProperties;
|
|
18
21
|
}
|
|
19
22
|
/**
|
|
20
23
|
* AComponent : AText
|
|
24
|
+
*
|
|
21
25
|
* Description : AText is a text component that can be styled.
|
|
26
|
+
*
|
|
22
27
|
* Basic Usage :
|
|
23
|
-
* (1) <AText text="This is text"/>
|
|
24
28
|
*
|
|
25
|
-
* (
|
|
29
|
+
* if (case 1)
|
|
30
|
+
* <AText text="This is text"/>
|
|
31
|
+
*
|
|
32
|
+
* if (case 2)
|
|
33
|
+
* <AText text="This is text"
|
|
34
|
+
* styled/>
|
|
26
35
|
*
|
|
27
|
-
* (3)
|
|
36
|
+
* if (case 3)
|
|
37
|
+
* <AText text="This is text"
|
|
38
|
+
* styled="is"
|
|
39
|
+
* style='bold'/>
|
|
28
40
|
*
|
|
29
|
-
* (4)
|
|
41
|
+
* if (case 4)
|
|
42
|
+
* <AText text="This is text"
|
|
43
|
+
* styled="text"
|
|
44
|
+
* style={{color: 'red'}}/>
|
|
30
45
|
*/
|
|
31
46
|
export declare const AText: ({ text, styled, style }: IATextProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
47
|
export {};
|
|
@@ -6,92 +6,87 @@ export type TTextAreaType = 'Primary' | 'Secondary' | 'Error';
|
|
|
6
6
|
export interface IATextAreaProps extends IABaseProps, IAWrapProps {
|
|
7
7
|
/**
|
|
8
8
|
* onEnterPress? : (value: string) => void
|
|
9
|
+
*
|
|
9
10
|
* Description : onEnterPress of ATextArea
|
|
10
|
-
* Basic Usage :
|
|
11
|
-
* (1) <AInput onEnterPress={value => console.log(value)}/>
|
|
12
11
|
*/
|
|
13
12
|
onEnterPress?: (value: string) => void;
|
|
14
13
|
/**
|
|
15
14
|
* type? : TTextAreaType = 'Primary'
|
|
15
|
+
*
|
|
16
16
|
* Description : type of ATextArea
|
|
17
|
-
* Basic Usage :
|
|
18
|
-
* (1) <AInput type="Secondary"/>
|
|
19
17
|
*/
|
|
20
18
|
type?: TTextAreaType;
|
|
21
19
|
/**
|
|
22
20
|
* textAreaRef? : React.RefObject<HTMLTextAreaElement>
|
|
21
|
+
*
|
|
23
22
|
* Description : textAreaRef of ATextArea
|
|
24
|
-
* Basic Usage :
|
|
25
|
-
* (1) const textAreaRef = useRef<HTMLTextAreaElement>(null);
|
|
26
|
-
* <AInput textAreaRef={textAreaRef}/>
|
|
27
23
|
*/
|
|
28
24
|
textAreaRef?: React.RefObject<HTMLTextAreaElement>;
|
|
29
25
|
/**
|
|
30
26
|
* useValue? : TUseValues<string>
|
|
27
|
+
*
|
|
31
28
|
* Description : useValue of ATextArea
|
|
32
|
-
* Basic Usage :
|
|
33
|
-
* (1) const [value, setValue] = useState<string>('');
|
|
34
|
-
* <AInput useValue={[value, setValue]}/>
|
|
35
29
|
*/
|
|
36
30
|
useValue?: TUseValues<string>;
|
|
37
31
|
/**
|
|
38
32
|
* rows? : number
|
|
33
|
+
*
|
|
39
34
|
* Description : rows of ATextArea
|
|
40
|
-
* Basic Usage :
|
|
41
|
-
* (1) <ATextArea rows={5}/>
|
|
42
35
|
*/
|
|
43
36
|
rows?: number;
|
|
44
37
|
/**
|
|
45
38
|
* readonly? : boolean
|
|
39
|
+
*
|
|
46
40
|
* Description : decides whether the input is readonly or not
|
|
47
|
-
* Basic Usage :
|
|
48
|
-
* (1) <ATextArea readonly/>
|
|
49
41
|
*/
|
|
50
42
|
readonly?: boolean;
|
|
51
43
|
/**
|
|
52
44
|
* onChange? : (e: React.ChangeEvent<HTMLTextAreaElement>) => void
|
|
45
|
+
*
|
|
53
46
|
* Description : onChange of ATextArea
|
|
54
47
|
*/
|
|
55
48
|
onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
56
49
|
/**
|
|
57
50
|
* placeholder? : string
|
|
51
|
+
*
|
|
58
52
|
* Description : placeholder of ATextArea
|
|
59
|
-
* Basic Usage :
|
|
60
|
-
* (1) <ATextArea placeholder="Placeholder"/>
|
|
61
53
|
*/
|
|
62
54
|
placeholder?: string;
|
|
63
55
|
/**
|
|
64
56
|
* maxLength? : number
|
|
57
|
+
*
|
|
65
58
|
* Description : maxLength of ATextArea
|
|
66
|
-
* Basic Usage :
|
|
67
|
-
* (1) <ATextArea maxLength={10}/>
|
|
68
59
|
*/
|
|
69
60
|
maxLength?: number;
|
|
70
61
|
/**
|
|
71
62
|
* tabIndex? : number
|
|
63
|
+
*
|
|
72
64
|
* Description : tabIndex of ATextArea
|
|
73
|
-
* Basic Usage :
|
|
74
|
-
* (1) <ATextArea tabIndex={1}/>
|
|
75
65
|
*/
|
|
76
66
|
tabIndex?: number;
|
|
77
67
|
/**
|
|
78
68
|
* autoFocus? : boolean
|
|
69
|
+
*
|
|
79
70
|
* Description : decides whether the input is focused or not
|
|
80
|
-
* Basic Usage :
|
|
81
|
-
* (1) <ATextArea autoFocus/>
|
|
82
71
|
*/
|
|
83
72
|
autoFocus?: boolean;
|
|
84
73
|
/**
|
|
85
74
|
* textAreaProps? : React.TextareaHTMLAttributes<HTMLTextAreaElement>
|
|
75
|
+
*
|
|
86
76
|
* Description : textAreaProps of ATextArea
|
|
87
77
|
*/
|
|
88
78
|
textAreaProps?: React.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
89
79
|
}
|
|
90
80
|
/**
|
|
91
81
|
* AComponent : ATextArea
|
|
82
|
+
*
|
|
92
83
|
* Description : ATextArea is a textarea component. it has AWrap and ABase inside, so be careful with the styles. I recommend checking out the element hierarchy first.
|
|
84
|
+
*
|
|
93
85
|
* Basic Usage :
|
|
94
|
-
*
|
|
95
|
-
*
|
|
86
|
+
*
|
|
87
|
+
* const [value, setValue] = useState('');
|
|
88
|
+
*
|
|
89
|
+
* if (case 1)
|
|
90
|
+
* <ATextArea useValue={[value, setValue]}/>
|
|
96
91
|
*/
|
|
97
92
|
export declare const ATextArea: ({ onEnterPress, type, textAreaRef, useValue, rows, readonly, placeholder, maxLength, tabIndex, autoFocus, textAreaProps, wrapProps, helperText, label, wrapType, ...abaseProps }: IATextAreaProps) => React.ReactNode;
|
|
@@ -2,34 +2,45 @@ import { RefObject } from 'react';
|
|
|
2
2
|
interface IATooltipProps {
|
|
3
3
|
/**
|
|
4
4
|
* tooltip : React.ReactNode
|
|
5
|
+
*
|
|
5
6
|
* Description : tooltip of ATooltip
|
|
6
7
|
*/
|
|
7
8
|
tooltip: React.ReactNode;
|
|
8
9
|
/**
|
|
9
10
|
* targetRef : React.RefObject<HTMLElement>
|
|
11
|
+
*
|
|
10
12
|
* Description : targetRef of ATooltip
|
|
11
13
|
*/
|
|
12
14
|
targetRef: RefObject<HTMLElement>;
|
|
13
15
|
/**
|
|
14
16
|
* delay? : number = 0
|
|
17
|
+
*
|
|
15
18
|
* Description : delay of ATooltip
|
|
16
19
|
*/
|
|
17
20
|
delay: number;
|
|
18
21
|
/**
|
|
19
22
|
* distance? : number = 10
|
|
23
|
+
*
|
|
20
24
|
* Description : distance of ATooltip
|
|
21
25
|
*/
|
|
22
26
|
distance: number;
|
|
23
27
|
}
|
|
24
28
|
/**
|
|
25
29
|
* AComponent : ATooltip
|
|
30
|
+
*
|
|
26
31
|
* Description : ATooltip is a tooltip component that can be attached to a target element.
|
|
32
|
+
*
|
|
27
33
|
* Basic Usage :
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
34
|
+
*
|
|
35
|
+
* const targetRef = useRef<HTMLDivElement>(null);
|
|
36
|
+
*
|
|
37
|
+
* if (case 1)
|
|
38
|
+
* <div ref={targetRef}>
|
|
39
|
+
* Hover me
|
|
40
|
+
* </div>
|
|
41
|
+
* <ATooltip tooltip="This is tooltip"
|
|
42
|
+
* targetRef={targetRef}/>
|
|
43
|
+
*
|
|
33
44
|
*
|
|
34
45
|
*/
|
|
35
46
|
export declare const ATooltip: ({ tooltip, targetRef, delay, distance }: IATooltipProps) => import("react").ReactPortal | null;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ATree
|
|
3
|
+
*
|
|
3
4
|
* Description :
|
|
4
5
|
* - select and check is not different, check is just appeared when showCheckbox is true.
|
|
5
6
|
*
|
|
@@ -18,16 +19,19 @@ import { IATreeItemProps } from './ATreeItem';
|
|
|
18
19
|
export interface IATreeSearchResult<T> {
|
|
19
20
|
/**
|
|
20
21
|
* keyword : string
|
|
22
|
+
*
|
|
21
23
|
* Description : keyword of search result
|
|
22
24
|
*/
|
|
23
25
|
keyword: string;
|
|
24
26
|
/**
|
|
25
27
|
* items : T[]
|
|
28
|
+
*
|
|
26
29
|
* Description : items of search result
|
|
27
30
|
*/
|
|
28
31
|
items: T[];
|
|
29
32
|
/**
|
|
30
33
|
* item? : T
|
|
34
|
+
*
|
|
31
35
|
* Description : item of search result
|
|
32
36
|
*/
|
|
33
37
|
item?: T;
|
|
@@ -35,6 +39,7 @@ export interface IATreeSearchResult<T> {
|
|
|
35
39
|
export interface IATreeItem<T> extends IItem {
|
|
36
40
|
/**
|
|
37
41
|
* children? : T[]
|
|
42
|
+
*
|
|
38
43
|
* Description : children of IATreeItem. tree will be rendered recursively.
|
|
39
44
|
*/
|
|
40
45
|
children?: T[];
|
|
@@ -42,11 +47,13 @@ export interface IATreeItem<T> extends IItem {
|
|
|
42
47
|
export interface IATreeAction {
|
|
43
48
|
/**
|
|
44
49
|
* expandAll : () => void
|
|
50
|
+
*
|
|
45
51
|
* Description : expand all items
|
|
46
52
|
*/
|
|
47
53
|
expandAll: () => void;
|
|
48
54
|
/**
|
|
49
55
|
* collapseAll : () => void
|
|
56
|
+
*
|
|
50
57
|
* Description : collapse all items
|
|
51
58
|
*/
|
|
52
59
|
collapseAll: () => void;
|
|
@@ -54,41 +61,49 @@ export interface IATreeAction {
|
|
|
54
61
|
export interface IATreeProps<T extends IATreeItem<T>> extends IABaseProps {
|
|
55
62
|
/**
|
|
56
63
|
* ItemRenderer? : (props: IATreeItemProps<T>) => React.ReactNode
|
|
64
|
+
*
|
|
57
65
|
* Description : ItemRenderer of ATree
|
|
58
66
|
*/
|
|
59
67
|
ItemRenderer?: (props: IATreeItemProps<T>) => React.ReactNode;
|
|
60
68
|
/**
|
|
61
69
|
* useItems? : TUseValues<T[]>
|
|
70
|
+
*
|
|
62
71
|
* Description : useItems of ATree. items will be changed if dragging is used
|
|
63
72
|
*/
|
|
64
73
|
useItems?: TUseValues<T[]>;
|
|
65
74
|
/**
|
|
66
75
|
* useExpand? : TUseValues<T[]>
|
|
76
|
+
*
|
|
67
77
|
* Description : useExpand of ATree
|
|
68
78
|
*/
|
|
69
79
|
useExpand?: TUseValues<T[]>;
|
|
70
80
|
/**
|
|
71
81
|
* useSelect? : TUseValues<T[]>
|
|
82
|
+
*
|
|
72
83
|
* Description : useSelect of ATree
|
|
73
84
|
*/
|
|
74
85
|
useSelect?: TUseValues<T[]>;
|
|
75
86
|
/**
|
|
76
87
|
* selectDisabled? : (item: T) => boolean | string | undefined
|
|
88
|
+
*
|
|
77
89
|
* Description : selectDisabled of ATree. if string is returned, it will be used as tooltip.
|
|
78
90
|
*/
|
|
79
91
|
selectDisabled?: (item: T) => boolean | string | undefined;
|
|
80
92
|
/**
|
|
81
93
|
* useSearch? : TUseValues<IATreeSearchResult<T> | undefined>
|
|
94
|
+
*
|
|
82
95
|
* Description : useSearch of ATree
|
|
83
96
|
*/
|
|
84
97
|
useSearch?: TUseValues<IATreeSearchResult<T> | undefined>;
|
|
85
98
|
/**
|
|
86
99
|
* showCheckbox? : boolean
|
|
100
|
+
*
|
|
87
101
|
* Description : showCheckbox of ATree
|
|
88
102
|
*/
|
|
89
103
|
showCheckbox?: boolean;
|
|
90
104
|
/**
|
|
91
105
|
* icons? : { noChild?: TIcons; collapsed?: TIcons; expanded?: TIcons }
|
|
106
|
+
*
|
|
92
107
|
* Description : icons of ATree
|
|
93
108
|
*/
|
|
94
109
|
icons?: {
|
|
@@ -98,75 +113,93 @@ export interface IATreeProps<T extends IATreeItem<T>> extends IABaseProps {
|
|
|
98
113
|
};
|
|
99
114
|
/**
|
|
100
115
|
* iconWidth? : number
|
|
116
|
+
*
|
|
101
117
|
* Description : iconWidth of ATree
|
|
102
118
|
*/
|
|
103
119
|
iconWidth?: number;
|
|
104
120
|
/**
|
|
105
121
|
* isSelectMulti? : boolean
|
|
122
|
+
*
|
|
106
123
|
* Description : isSelectMulti of ATree
|
|
107
124
|
*/
|
|
108
125
|
isSelectMulti?: boolean;
|
|
109
126
|
/**
|
|
110
127
|
* noSearch? : boolean
|
|
128
|
+
*
|
|
111
129
|
* Description : noSearch of ATree. if true, search will not be rendered.
|
|
112
130
|
*/
|
|
113
131
|
noSearch?: boolean;
|
|
114
132
|
/**
|
|
115
133
|
* enableDrag? : boolean
|
|
134
|
+
*
|
|
116
135
|
* Description : enableDrag of ATree
|
|
117
136
|
*/
|
|
118
137
|
enableDrag?: boolean;
|
|
119
138
|
/**
|
|
120
139
|
* syncSearchSelect? : boolean
|
|
140
|
+
*
|
|
121
141
|
* Description : syncSearchSelect of ATree. if true, selectedItems will be synced with searchResult.
|
|
122
142
|
*/
|
|
123
143
|
syncSearchSelect?: boolean;
|
|
124
144
|
/**
|
|
125
145
|
* searchPredicate? : (inputValue: string, item: IATreeItem<T>) => any
|
|
146
|
+
*
|
|
126
147
|
* Description : searchPredicate of ATree.
|
|
127
148
|
*/
|
|
128
149
|
searchPredicate?: (inputValue: string, item: IATreeItem<T>) => any;
|
|
129
150
|
/**
|
|
130
151
|
* actionRef? : TActionRef<IATreeAction>
|
|
152
|
+
*
|
|
131
153
|
* Description : actionRef of ATree
|
|
132
154
|
*/
|
|
133
155
|
actionRef?: TActionRef<IATreeAction>;
|
|
134
156
|
/**
|
|
135
157
|
* HeaderRightAddon? : React.ReactNode
|
|
158
|
+
*
|
|
136
159
|
* Description : HeaderRightAddon of ATree
|
|
137
160
|
*/
|
|
138
161
|
HeaderRightAddon?: React.ReactNode;
|
|
139
162
|
/**
|
|
140
163
|
* RightStickyRenderer? : (props: IATreeItemProps<T>) => React.ReactNode
|
|
164
|
+
*
|
|
141
165
|
* Description : RightStickyRenderer of ATree
|
|
142
166
|
*/
|
|
143
167
|
RightStickyRenderer?: (props: IATreeItemProps<T>) => React.ReactNode;
|
|
144
168
|
/**
|
|
145
169
|
* resources? : Partial<typeof Resources.ATree>
|
|
170
|
+
*
|
|
146
171
|
* Description : resources of ATree
|
|
147
172
|
*/
|
|
148
173
|
resources?: Partial<typeof Resources.ATree>;
|
|
149
174
|
}
|
|
150
175
|
/**
|
|
151
176
|
* AComponent : ATree
|
|
177
|
+
*
|
|
152
178
|
* Description : ATree component. tree will be rendered recursively.
|
|
153
179
|
* select and check are not different, check is just appeared when showCheckbox is true.
|
|
154
180
|
* select, check, expand, drag-to-move, search are available.
|
|
181
|
+
*
|
|
155
182
|
* Basic Usage :
|
|
156
|
-
* (1) const items = [{name: 'Item1', children: [{name: 'Item1-1'}]}];
|
|
157
|
-
* return <ATree useItems={[items, setItems]}/>
|
|
158
183
|
*
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
*
|
|
184
|
+
* const items = [{name: 'Item1', children: [{name: 'Item1-1'}]}, {name: 'Item2'}, {name: 'Item3'}];
|
|
185
|
+
* const [selected, setSelected] = useState<typeof items[0]>(items[0]);
|
|
186
|
+
* const [expanded, setExpanded] = useState<typeof items[0]>(items[0]);
|
|
187
|
+
* const [searchResult, setSearchResult] = useState<IATreeSearchResult<typeof items[0]> | undefined>(undefined);
|
|
188
|
+
*
|
|
189
|
+
* if (case 1)
|
|
190
|
+
* <ATree useItems={[items, undefined]}/>
|
|
191
|
+
*
|
|
192
|
+
* if (case 2)
|
|
193
|
+
* <ATree useItems={[items, setItems]}
|
|
194
|
+
* useSelect={[selected, setSelected]}/>
|
|
162
195
|
*
|
|
163
|
-
* (3)
|
|
164
|
-
*
|
|
165
|
-
*
|
|
196
|
+
* if (case 3)
|
|
197
|
+
* <ATree useItems={[items, setItems]}
|
|
198
|
+
* useExpand={[expanded, setExpanded]}/>
|
|
166
199
|
*
|
|
167
|
-
* (4)
|
|
168
|
-
*
|
|
169
|
-
*
|
|
200
|
+
* if (case 4)
|
|
201
|
+
* <ATree useItems={[items, setItems]}
|
|
202
|
+
* useSearch={[searchResult, setSearchResult]}/>
|
|
170
203
|
*
|
|
171
204
|
*/
|
|
172
205
|
export declare const ATree: <T extends IATreeItem<T>>({ selectDisabled, ItemRenderer, useItems, useExpand, useSelect, useSearch, showCheckbox, iconWidth, icons, isSelectMulti, noSearch, enableDrag, syncSearchSelect, actionRef, HeaderRightAddon, RightStickyRenderer, resources: extResources, searchPredicate, isDisabled, ...abaseProps }: IATreeProps<T>) => React.ReactNode;
|
|
@@ -2,36 +2,45 @@ import React from 'react';
|
|
|
2
2
|
export interface IAWrapProps {
|
|
3
3
|
/**
|
|
4
4
|
* wrapProps? : React.HTMLAttributes<HTMLDivElement>
|
|
5
|
+
*
|
|
5
6
|
* Description : wrapProps of AWrap
|
|
6
7
|
*/
|
|
7
8
|
wrapProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
8
9
|
/**
|
|
9
10
|
* helperText? : React.ReactNode | React.ReactNode[]
|
|
11
|
+
*
|
|
10
12
|
* Description : helperText of AWrap
|
|
11
13
|
*/
|
|
12
14
|
helperText?: React.ReactNode | React.ReactNode[];
|
|
13
15
|
/**
|
|
14
16
|
* wrapType? : 'Default' | 'Error' = 'Default'
|
|
17
|
+
*
|
|
15
18
|
* Description : wrapType of AWrap
|
|
16
19
|
*/
|
|
17
20
|
wrapType?: 'Default' | 'Error';
|
|
18
21
|
/**
|
|
19
22
|
* label? : React.ReactNode
|
|
23
|
+
*
|
|
20
24
|
* Description : label of AWrap
|
|
21
25
|
*/
|
|
22
26
|
label?: React.ReactNode;
|
|
23
27
|
/**
|
|
24
28
|
* children? : React.ReactNode
|
|
29
|
+
*
|
|
25
30
|
* Description : children of AWrap
|
|
26
31
|
*/
|
|
27
32
|
children?: React.ReactNode;
|
|
28
33
|
}
|
|
29
34
|
/**
|
|
30
35
|
* AComponent : AWrap
|
|
36
|
+
*
|
|
31
37
|
* Description : AWrap is a wrap component that wraps the children with a label and helper text.
|
|
38
|
+
*
|
|
32
39
|
* Basic Usage :
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
40
|
+
*
|
|
41
|
+
* if (case 1)
|
|
42
|
+
* <AWrap label="Label" helperText="Helper Text">
|
|
43
|
+
* <AInput/>
|
|
44
|
+
* </AWrap>
|
|
36
45
|
*/
|
|
37
46
|
export declare const AWrap: ({ wrapProps, helperText, wrapType, label, children }: IAWrapProps) => React.ReactNode;
|