ados-rcm 1.0.9 → 1.0.10
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 +25 -25
- package/dist/AModule/AComponents/AButton/AButton.d.ts +7 -7
- package/dist/AModule/AComponents/AButton/AIconButton.d.ts +9 -9
- package/dist/AModule/AComponents/ACheckBox/ACheckBox.d.ts +9 -9
- package/dist/AModule/AComponents/AClock/AClock.d.ts +19 -19
- package/dist/AModule/AComponents/ADatePicker/ADatePicker.d.ts +34 -34
- package/dist/AModule/AComponents/ADatePicker/ADateRangePicker.d.ts +9 -9
- package/dist/AModule/AComponents/ADialog/ADialog.d.ts +50 -50
- package/dist/AModule/AComponents/AFileBox/AFileBox.d.ts +13 -13
- package/dist/AModule/AComponents/AFloatMenu/AFloatMenu.d.ts +26 -26
- package/dist/AModule/AComponents/AFrames/AFrames.d.ts +12 -12
- package/dist/AModule/AComponents/AGrow/AGrow.d.ts +3 -3
- package/dist/AModule/AComponents/AIcon/AIcon.d.ts +6 -6
- package/dist/AModule/AComponents/AInput/AInput.d.ts +45 -45
- package/dist/AModule/AComponents/AListView/AListView.d.ts +16 -16
- package/dist/AModule/AComponents/ASelect/ASelect.d.ts +43 -43
- package/dist/AModule/AComponents/ASpace/ASpace.d.ts +11 -11
- package/dist/AModule/AComponents/AStepper/AStepper.d.ts +20 -20
- package/dist/AModule/AComponents/ASwitch/ASwitch.d.ts +7 -7
- package/dist/AModule/AComponents/ATab/ATab.d.ts +25 -25
- package/dist/AModule/AComponents/ATable/ATable.d.ts +136 -136
- package/dist/AModule/AComponents/AText/AText.d.ts +9 -9
- package/dist/AModule/AComponents/ATextArea/ATextArea.d.ts +35 -35
- package/dist/AModule/AComponents/ATooltip/ATooltip.d.ts +7 -7
- package/dist/AModule/AComponents/ATree/ATree.d.ts +31 -31
- package/dist/AModule/AComponents/AWrap/AWrap.d.ts +8 -8
- package/package.json +1 -1
|
@@ -5,126 +5,126 @@ import { IAWrapProps } from '../AWrap/AWrap';
|
|
|
5
5
|
export interface IASelectSelectedRendererProps<TItem, TGivenSelected, TSelected = TGivenSelected extends Array<TItem> ? TItem[] : null | TItem> {
|
|
6
6
|
/**
|
|
7
7
|
* OptionRenderer : (props: IASelectOptionRendererProps<T>) => React.ReactNode
|
|
8
|
-
* Description : OptionRenderer of ASelect
|
|
8
|
+
* <br/>Description : OptionRenderer of ASelect
|
|
9
9
|
*/
|
|
10
10
|
OptionRenderer: (props: IASelectOptionRendererProps<TItem>) => React.ReactNode;
|
|
11
11
|
/**
|
|
12
12
|
* selected : T[]
|
|
13
|
-
* Description : selected items of ASelect
|
|
13
|
+
* <br/>Description : selected items of ASelect
|
|
14
14
|
*/
|
|
15
15
|
selected: TSelected;
|
|
16
16
|
/**
|
|
17
17
|
* placeholder : React.ReactNode
|
|
18
|
-
* Description : placeholder of ASelect
|
|
18
|
+
* <br/>Description : placeholder of ASelect
|
|
19
19
|
*/
|
|
20
20
|
placeholder?: React.ReactNode;
|
|
21
21
|
}
|
|
22
22
|
export interface IASelectOptionRendererProps<TItem> {
|
|
23
23
|
/**
|
|
24
24
|
* option : T
|
|
25
|
-
* Description : option of ASelect
|
|
25
|
+
* <br/>Description : option of ASelect
|
|
26
26
|
*/
|
|
27
27
|
option: TItem;
|
|
28
28
|
}
|
|
29
29
|
export interface IASelectProps<TItem, TGivenSelected, TSelected = TGivenSelected extends Array<TItem> ? TItem[] : null | TItem> extends IABaseProps, IAWrapProps {
|
|
30
30
|
/**
|
|
31
31
|
* options : T[]
|
|
32
|
-
* Description : options of ASelect
|
|
33
|
-
* Basic Usage :
|
|
34
|
-
* (1)
|
|
32
|
+
* <br/>Description : options of ASelect
|
|
33
|
+
* <br/>Basic Usage :
|
|
34
|
+
* <br/>(1)const options = ['Option1', 'Option2', 'Option3'];
|
|
35
35
|
* <ASelect options={options}/>
|
|
36
36
|
*/
|
|
37
37
|
options: TItem[];
|
|
38
38
|
/**
|
|
39
39
|
* useSelect? : TUseValues<T[]>
|
|
40
|
-
* Description : useSelect of ASelect
|
|
41
|
-
* Basic Usage :
|
|
42
|
-
* (1)
|
|
40
|
+
* <br/>Description : useSelect of ASelect
|
|
41
|
+
* <br/>Basic Usage :
|
|
42
|
+
* <br/>(1)const [selected, setSelected] = useState<T[]>([]);
|
|
43
43
|
* <ASelect options={options} useSelect={[selected, setSelected]}/>
|
|
44
44
|
*/
|
|
45
45
|
useSelect?: TUseValues<TSelected>;
|
|
46
46
|
/**
|
|
47
47
|
* type? : 'Primary' | 'Secondary' = 'Primary'
|
|
48
|
-
* Description : type of ASelect
|
|
49
|
-
* Basic Usage :
|
|
50
|
-
* (1)
|
|
48
|
+
* <br/>Description : type of ASelect
|
|
49
|
+
* <br/>Basic Usage :
|
|
50
|
+
* <br/>(1)<ASelect type="Secondary"/>
|
|
51
51
|
*/
|
|
52
52
|
type?: 'Primary' | 'Secondary';
|
|
53
53
|
/**
|
|
54
54
|
* placeholder? : React.ReactNode
|
|
55
|
-
* Description : placeholder of ASelect. it is shown when no option is selected
|
|
56
|
-
* Basic Usage :
|
|
57
|
-
* (1)
|
|
55
|
+
* <br/>Description : placeholder of ASelect. it is shown when no option is selected
|
|
56
|
+
* <br/>Basic Usage :
|
|
57
|
+
* <br/>(1)<ASelect placeholder="Select"/>
|
|
58
58
|
*/
|
|
59
59
|
placeholder?: React.ReactNode;
|
|
60
60
|
/**
|
|
61
61
|
* isSelectMulti? : boolean = false
|
|
62
|
-
* Description : isSelectMulti of ASelect. if it is true, multiple options can be selected
|
|
63
|
-
* Basic Usage :
|
|
64
|
-
* (1)
|
|
62
|
+
* <br/>Description : isSelectMulti of ASelect. if it is true, multiple options can be selected
|
|
63
|
+
* <br/>Basic Usage :
|
|
64
|
+
* <br/>(1)<ASelect isSelectMulti/>
|
|
65
65
|
*/
|
|
66
66
|
isSelectMulti?: boolean;
|
|
67
67
|
/**
|
|
68
68
|
* onClose? : () => void
|
|
69
|
-
* Description : onClose of ASelect
|
|
70
|
-
* Basic Usage :
|
|
71
|
-
* (1)
|
|
69
|
+
* <br/>Description : onClose of ASelect
|
|
70
|
+
* <br/>Basic Usage :
|
|
71
|
+
* <br/>(1)<ASelect onClose={() => console.log('closed')}/>
|
|
72
72
|
*/
|
|
73
73
|
onClose?: () => void;
|
|
74
74
|
/**
|
|
75
75
|
* SelectedRenderer? : (props: IASelectSelectedRendererProps<T>) => React.ReactNode = DefaultSelectedRenderer
|
|
76
|
-
* Description : Renderer of Selected Options of ASelect
|
|
77
|
-
* Basic Usage :
|
|
78
|
-
* (1)
|
|
76
|
+
* <br/>Description : Renderer of Selected Options of ASelect
|
|
77
|
+
* <br/>Basic Usage :
|
|
78
|
+
* <br/>(1)<ASelect SelectedRenderer={({selected, placeholder}) => selected ? selected : placeholder}/>
|
|
79
79
|
*/
|
|
80
80
|
SelectedRenderer?: (props: IASelectSelectedRendererProps<TItem, TGivenSelected, TSelected>) => React.ReactNode;
|
|
81
81
|
/**
|
|
82
82
|
* OptionRenderer? : (props: IASelectOptionRendererProps<T>) => React.ReactNode = DefaultOptionRenderer
|
|
83
|
-
* Description : Renderer of Options of ASelect
|
|
84
|
-
* Basic Usage :
|
|
85
|
-
* (1)
|
|
83
|
+
* <br/>Description : Renderer of Options of ASelect
|
|
84
|
+
* <br/>Basic Usage :
|
|
85
|
+
* <br/>(1)<ASelect OptionRenderer={({option}) => <div>{option}</div>}/>
|
|
86
86
|
*/
|
|
87
87
|
OptionRenderer?: (props: IASelectOptionRendererProps<TItem>) => React.ReactNode;
|
|
88
88
|
/**
|
|
89
89
|
* minShowRows? : number = 2
|
|
90
|
-
* Description : minShowRows of ASelect
|
|
91
|
-
* Basic Usage :
|
|
92
|
-
* (1)
|
|
90
|
+
* <br/>Description : minShowRows of ASelect
|
|
91
|
+
* <br/>Basic Usage :
|
|
92
|
+
* <br/>(1)<ASelect minShowRows={2}/>
|
|
93
93
|
*/
|
|
94
94
|
minShowRows?: number;
|
|
95
95
|
/**
|
|
96
96
|
* maxShowRows? : number = 6
|
|
97
|
-
* Description : maxShowRows of ASelect. scrollbar will appear when overflow
|
|
98
|
-
* Basic Usage :
|
|
99
|
-
* (1)
|
|
97
|
+
* <br/>Description : maxShowRows of ASelect. scrollbar will appear when overflow
|
|
98
|
+
* <br/>Basic Usage :
|
|
99
|
+
* <br/>(1)<ASelect maxShowRows={6}/>
|
|
100
100
|
*/
|
|
101
101
|
maxShowRows?: number;
|
|
102
102
|
/**
|
|
103
103
|
* arrowProps? : React.HTMLProps<HTMLDivElement>
|
|
104
|
-
* Description : divProps for Arrow of ASelect
|
|
105
|
-
* Basic Usage :
|
|
106
|
-
* (1)
|
|
104
|
+
* <br/>Description : divProps for Arrow of ASelect
|
|
105
|
+
* <br/>Basic Usage :
|
|
106
|
+
* <br/>(1)<ASelect arrowProps={{style: {color: 'red'}}}/>
|
|
107
107
|
*/
|
|
108
108
|
arrowProps?: React.HTMLProps<HTMLDivElement>;
|
|
109
109
|
}
|
|
110
110
|
/**
|
|
111
111
|
* AComponent : ASelect
|
|
112
|
-
* Description : ASelect is a select component. give options and useSelect to select an option.
|
|
113
|
-
* Basic Usage :
|
|
114
|
-
* (1)
|
|
112
|
+
* <br/>Description : ASelect is a select component. give options and useSelect to select an option.
|
|
113
|
+
* <br/>Basic Usage :
|
|
114
|
+
* <br/>(1)const options = ['Option1', 'Option2', 'Option3'];
|
|
115
115
|
* const [selected, setSelected] = useState<string | null>(null);
|
|
116
116
|
* return <ASelect options={options} useSelect={[selected, setSelected]}/>
|
|
117
117
|
*
|
|
118
|
-
* (2)
|
|
118
|
+
* <br/>(2)const options = ['Option1', 'Option2', 'Option3'];
|
|
119
119
|
* const [selected, setSelected] = useState<string[]>([]);
|
|
120
120
|
* return <ASelect options={options} useSelect={[selected, setSelected]} isSelectMulti/>
|
|
121
121
|
*
|
|
122
|
-
* (3)
|
|
122
|
+
* <br/>(3)const options = [{idx : 1, name : 'option1'}, {idx : 2, name : 'option2'}, {idx : 3, name : 'option3'}];
|
|
123
123
|
* const [selected, setSelected] = useState<{idx : number, name : string}[]>([]);
|
|
124
124
|
* const OptionRenderer = ({option}) => <div>{option.name}</div>;
|
|
125
125
|
* return <ASelect options={options} useSelect={[selected, setSelected]} OptionRenderer={OptionRenderer}/>
|
|
126
126
|
*
|
|
127
|
-
* (4)
|
|
127
|
+
* <br/>(4)const options = [{idx : 1, name : 'option1'}, {idx : 2, name : 'option2'}, {idx : 3, name : 'option3'}];
|
|
128
128
|
* const [selected, setSelected] = useState<{idx : number, name : string}[]>([]);
|
|
129
129
|
* const OptionRenderer = ({option}) => <div>{option.name}</div>;
|
|
130
130
|
* const SelectedRenderer = ({selected, placeholder}) => selected.length > 0 ? string.join(selected.map(e => e.name), ', ') : placeholder;
|
|
@@ -2,28 +2,28 @@ import { HTMLAttributes } from 'react';
|
|
|
2
2
|
interface IASpaceProps extends HTMLAttributes<HTMLElement> {
|
|
3
3
|
/**
|
|
4
4
|
* h? : number | string
|
|
5
|
-
* Description : height of ASpace
|
|
6
|
-
* Basic Usage :
|
|
7
|
-
* (1)
|
|
5
|
+
* <br/>Description : height of ASpace
|
|
6
|
+
* <br/>Basic Usage :
|
|
7
|
+
* <br/>(1)<ASpace h={10}/>
|
|
8
8
|
*/
|
|
9
9
|
h?: number | string;
|
|
10
10
|
/**
|
|
11
11
|
* w? : number | string
|
|
12
|
-
* Description : width of ASpace
|
|
13
|
-
* Basic Usage :
|
|
14
|
-
* (1)
|
|
12
|
+
* <br/>Description : width of ASpace
|
|
13
|
+
* <br/>Basic Usage :
|
|
14
|
+
* <br/>(1)<ASpace w={10}/>
|
|
15
15
|
*/
|
|
16
16
|
w?: number | string;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* AComponent : ASpace
|
|
20
|
-
* Description : ASpace is a component to make spaces.
|
|
21
|
-
* Basic Usage :
|
|
22
|
-
* (1)
|
|
20
|
+
* <br/>Description : ASpace is a component to make spaces.
|
|
21
|
+
* <br/>Basic Usage :
|
|
22
|
+
* <br/>(1)<ASpace h={10}/>
|
|
23
23
|
*
|
|
24
|
-
* (2)
|
|
24
|
+
* <br/>(2)<ASpace w={10}/>
|
|
25
25
|
*
|
|
26
|
-
* (3)
|
|
26
|
+
* <br/>(3)<ASpace h={10} w={10}/>
|
|
27
27
|
*/
|
|
28
28
|
export declare const ASpace: ({ h, w, ...divProps }: IASpaceProps) => React.ReactNode;
|
|
29
29
|
export {};
|
|
@@ -3,47 +3,47 @@ import { TUseValues } from '../../AHooks/useValues';
|
|
|
3
3
|
interface IStepRendererProps<T> {
|
|
4
4
|
/**
|
|
5
5
|
* step : T
|
|
6
|
-
* Description : step of AStepper
|
|
6
|
+
* <br/>Description : step of AStepper
|
|
7
7
|
*/
|
|
8
8
|
step: T;
|
|
9
9
|
/**
|
|
10
10
|
* stepIdx : number
|
|
11
|
-
* Description : stepIdx of AStepper
|
|
11
|
+
* <br/>Description : stepIdx of AStepper
|
|
12
12
|
*/
|
|
13
13
|
stepIdx: number;
|
|
14
14
|
}
|
|
15
15
|
export interface IAStepperProps<T> {
|
|
16
16
|
/**
|
|
17
17
|
* useSelect? : TUseValues<T>
|
|
18
|
-
* Description : useStep of AStepper
|
|
19
|
-
* Basic Usage :
|
|
20
|
-
* (1)
|
|
18
|
+
* <br/>Description : useStep of AStepper
|
|
19
|
+
* <br/>Basic Usage :
|
|
20
|
+
* <br/>(1)const steps = ['Step1', 'Step2', 'Step3'];
|
|
21
21
|
* const [step, setStep] = useState<typeof steps[0]>(steps[0]);
|
|
22
22
|
* <AStepper useSelect={[step, setStep]} steps={steps}/>
|
|
23
23
|
*/
|
|
24
24
|
useSelect?: TUseValues<T>;
|
|
25
25
|
/**
|
|
26
26
|
* steps : T[]
|
|
27
|
-
* Description : steps of AStepper. must have at least one step.
|
|
28
|
-
* Basic Usage :
|
|
29
|
-
* (1)
|
|
27
|
+
* <br/>Description : steps of AStepper. must have at least one step.
|
|
28
|
+
* <br/>Basic Usage :
|
|
29
|
+
* <br/>(1)const steps = ['Step1', 'Step2', 'Step3'];
|
|
30
30
|
* <AStepper steps={steps}/>
|
|
31
31
|
*/
|
|
32
32
|
steps: T[];
|
|
33
33
|
/**
|
|
34
34
|
* StepRenderer? : (props: IStepRendererProps<T>) => React.ReactNode = DefaultRenderer
|
|
35
|
-
* Description : StepRenderer of AStepper
|
|
36
|
-
* Basic Usage :
|
|
37
|
-
* (1)
|
|
35
|
+
* <br/>Description : StepRenderer of AStepper
|
|
36
|
+
* <br/>Basic Usage :
|
|
37
|
+
* <br/>(1)const steps = ['Step1', 'Step2', 'Step3'];
|
|
38
38
|
* const StepRenderer = ({step, stepIdx}) => 'This is step' + stepIdx;
|
|
39
39
|
* <AStepper steps={steps} StepRenderer={StepRenderer}/>
|
|
40
40
|
*/
|
|
41
41
|
StepRenderer?: (props: IStepRendererProps<T>) => React.ReactNode;
|
|
42
42
|
/**
|
|
43
43
|
* ContentRenderer? : (props: IStepRendererProps<T>) => React.ReactNode = DefaultRenderer
|
|
44
|
-
* Description : ContentRenderer of AStepper
|
|
45
|
-
* Basic Usage :
|
|
46
|
-
* (1)
|
|
44
|
+
* <br/>Description : ContentRenderer of AStepper
|
|
45
|
+
* <br/>Basic Usage :
|
|
46
|
+
* <br/>(1)const steps = ['Step1', 'Step2', 'Step3'];
|
|
47
47
|
* const ContentRenderer = ({step, stepIdx}) => 'This is content' + stepIdx;
|
|
48
48
|
* <AStepper steps={steps} ContentRenderer={ContentRenderer}/>
|
|
49
49
|
*/
|
|
@@ -51,20 +51,20 @@ export interface IAStepperProps<T> {
|
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* AComponent : AStepper
|
|
54
|
-
* Description : AStepper is a stepper component that can select a step. all steps are rendered even if they are not selected.
|
|
55
|
-
* Basic Usage :
|
|
56
|
-
* (1)
|
|
54
|
+
* <br/>Description : AStepper is a stepper component that can select a step. all steps are rendered even if they are not selected.
|
|
55
|
+
* <br/>Basic Usage :
|
|
56
|
+
* <br/>(1)const steps = ['Step1', 'Step2', 'Step3'];
|
|
57
57
|
* return <AStepper steps={steps}/>
|
|
58
58
|
*
|
|
59
|
-
* (2)
|
|
59
|
+
* <br/>(2)const steps = ['Step1', 'Step2', 'Step3'];
|
|
60
60
|
* const StepRenderer = ({step, stepIdx}) => 'This is step' + stepIdx;
|
|
61
61
|
* return <AStepper steps={steps} StepRenderer={StepRenderer}/>
|
|
62
62
|
*
|
|
63
|
-
* (3)
|
|
63
|
+
* <br/>(3)const steps = ['Step1', 'Step2', 'Step3'];
|
|
64
64
|
* const ContentRenderer = ({step, stepIdx}) => 'This is content' + stepIdx;
|
|
65
65
|
* return <AStepper steps={steps} ContentRenderer={ContentRenderer}/>
|
|
66
66
|
*
|
|
67
|
-
* (4)
|
|
67
|
+
* <br/>(4)const steps = ['Step1', 'Step2', 'Step3'];
|
|
68
68
|
* const StepRenderer = ({step, stepIdx}) => 'This is step' + stepIdx;
|
|
69
69
|
* const ContentRenderer = ({step, stepIdx}) => 'This is content' + stepIdx;
|
|
70
70
|
* return <AStepper steps={steps} StepRenderer={StepRenderer} ContentRenderer={ContentRenderer}/>
|
|
@@ -4,9 +4,9 @@ import { IAWrapProps } from '../AWrap/AWrap';
|
|
|
4
4
|
export interface ASwitchProps extends IAWrapProps, IABaseProps {
|
|
5
5
|
/**
|
|
6
6
|
* useCheck? : TUseValues<any>
|
|
7
|
-
* Description : ContentRenderer of AStepper
|
|
8
|
-
* Basic Usage :
|
|
9
|
-
* (1)
|
|
7
|
+
* <br/>Description : ContentRenderer of AStepper
|
|
8
|
+
* <br/>Basic Usage :
|
|
9
|
+
* <br/>(1)const steps = ['Step1', 'Step2', 'Step3'];
|
|
10
10
|
* const ContentRenderer = ({step, stepIdx}) => 'This is content' + stepIdx;
|
|
11
11
|
* <AStepper steps={steps} ContentRenderer={ContentRenderer}/>
|
|
12
12
|
*/
|
|
@@ -14,11 +14,11 @@ export interface ASwitchProps extends IAWrapProps, IABaseProps {
|
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* AComponent : ASwitch
|
|
17
|
-
* Description : ASwitch is a switch component that can be toggled.
|
|
18
|
-
* Basic Usage :
|
|
19
|
-
* (1)
|
|
17
|
+
* <br/>Description : ASwitch is a switch component that can be toggled.
|
|
18
|
+
* <br/>Basic Usage :
|
|
19
|
+
* <br/>(1)<ASwitch/>
|
|
20
20
|
*
|
|
21
|
-
* (2)
|
|
21
|
+
* <br/>(2)const [check, setCheck] = useState<boolean>(false);
|
|
22
22
|
* <ASwitch useCheck={[check, setCheck]}/>
|
|
23
23
|
*/
|
|
24
24
|
export declare const ASwitch: ({ wrapProps, helperText, label, useCheck, ...abaseProps }: ASwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,53 +3,53 @@ import { TUseValues } from '../../AHooks/useValues';
|
|
|
3
3
|
export interface IATabOptionRendererProps<T> {
|
|
4
4
|
/**
|
|
5
5
|
* option : T
|
|
6
|
-
* Description : option of ATab
|
|
6
|
+
* <br/>Description : option of ATab
|
|
7
7
|
*/
|
|
8
8
|
option: T;
|
|
9
9
|
}
|
|
10
10
|
export interface IATabProps<T> {
|
|
11
11
|
/**
|
|
12
12
|
* options : T[]
|
|
13
|
-
* Description : options of ATab
|
|
14
|
-
* Basic Usage :
|
|
15
|
-
* (1)
|
|
13
|
+
* <br/>Description : options of ATab
|
|
14
|
+
* <br/>Basic Usage :
|
|
15
|
+
* <br/>(1)const options = ['Option1', 'Option2', 'Option3'];
|
|
16
16
|
* <ATab options={options}/>
|
|
17
17
|
*/
|
|
18
18
|
options: T[];
|
|
19
19
|
/**
|
|
20
20
|
* type? : 'Primary' | 'Secondary' = 'Primary'
|
|
21
|
-
* Description : type of ATab
|
|
22
|
-
* Basic Usage :
|
|
23
|
-
* (1)
|
|
21
|
+
* <br/>Description : type of ATab
|
|
22
|
+
* <br/>Basic Usage :
|
|
23
|
+
* <br/>(1)<ATab type="Secondary"/>
|
|
24
24
|
*/
|
|
25
25
|
type?: 'Primary' | 'Secondary';
|
|
26
26
|
/**
|
|
27
27
|
* useSelect? : TUseValues<T>
|
|
28
|
-
* Description : useSelect of ATab
|
|
29
|
-
* Basic Usage :
|
|
30
|
-
* (1)
|
|
28
|
+
* <br/>Description : useSelect of ATab
|
|
29
|
+
* <br/>Basic Usage :
|
|
30
|
+
* <br/>(1)const [selected, setSelected] = useState<typeof options[0]>(options[0]);
|
|
31
31
|
* <ATab options={options} useSelect={[selected, setSelected]}/>
|
|
32
32
|
*/
|
|
33
33
|
useSelect?: TUseValues<T>;
|
|
34
34
|
/**
|
|
35
35
|
* tabProps? : React.HTMLProps<HTMLDivElement>
|
|
36
|
-
* Description : tabProps of ATab
|
|
37
|
-
* Basic Usage :
|
|
38
|
-
* (1)
|
|
36
|
+
* <br/>Description : tabProps of ATab
|
|
37
|
+
* <br/>Basic Usage :
|
|
38
|
+
* <br/>(1)<ATab tabProps={{className: 'test'}}/>
|
|
39
39
|
*/
|
|
40
40
|
tabProps?: React.HTMLProps<HTMLDivElement>;
|
|
41
41
|
/**
|
|
42
42
|
* optionWidth? : string | number
|
|
43
|
-
* Description : optionWidth of ATab. if not set, tabs will have 1/n width.
|
|
44
|
-
* Basic Usage :
|
|
45
|
-
* (1)
|
|
43
|
+
* <br/>Description : optionWidth of ATab. if not set, tabs will have 1/n width.
|
|
44
|
+
* <br/>Basic Usage :
|
|
45
|
+
* <br/>(1)<ATab optionWidth="100px"/>
|
|
46
46
|
*/
|
|
47
47
|
optionWidth?: string | number;
|
|
48
48
|
/**
|
|
49
49
|
* OptionRenderer? : (props: IATabOptionRendererProps<T>) => React.ReactNode = DefaultItemRenderer
|
|
50
|
-
* Description : OptionRenderer of ATab
|
|
51
|
-
* Basic Usage :
|
|
52
|
-
* (1)
|
|
50
|
+
* <br/>Description : OptionRenderer of ATab
|
|
51
|
+
* <br/>Basic Usage :
|
|
52
|
+
* <br/>(1)const options = ['Option1', 'Option2', 'Option3'];
|
|
53
53
|
* const OptionRenderer = ({option}) => 'This is option' + option;
|
|
54
54
|
* <ATab options={options} OptionRenderer={OptionRenderer}/>
|
|
55
55
|
*/
|
|
@@ -57,20 +57,20 @@ export interface IATabProps<T> {
|
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
59
|
* AComponent : ATab
|
|
60
|
-
* Description : ATab is a tab component that can select a tab.
|
|
61
|
-
* Basic Usage :
|
|
62
|
-
* (1)
|
|
60
|
+
* <br/>Description : ATab is a tab component that can select a tab.
|
|
61
|
+
* <br/>Basic Usage :
|
|
62
|
+
* <br/>(1)const options = ['Option1', 'Option2', 'Option3'];
|
|
63
63
|
* return <ATab options={options}/>
|
|
64
64
|
*
|
|
65
|
-
* (2)
|
|
65
|
+
* <br/>(2)const options = ['Option1', 'Option2', 'Option3'];
|
|
66
66
|
* const OptionRenderer = ({option}) => 'This is option' + option;
|
|
67
67
|
* return <ATab options={options} OptionRenderer={OptionRenderer}/>
|
|
68
68
|
*
|
|
69
|
-
* (3)
|
|
69
|
+
* <br/>(3)const options = ['Option1', 'Option2', 'Option3'];
|
|
70
70
|
* const [selected, setSelected] = useState<typeof options[0]>(options[0]);
|
|
71
71
|
* return <ATab options={options} useSelect={[selected, setSelected]}/>
|
|
72
72
|
*
|
|
73
|
-
* (4)
|
|
73
|
+
* <br/>(4)const options = ['Option1', 'Option2', 'Option3'];
|
|
74
74
|
* return <ATab options={options} type="Secondary"/>
|
|
75
75
|
*/
|
|
76
76
|
export declare const ATab: <T>({ options, useSelect, type, tabProps, optionWidth, OptionRenderer, }: IATabProps<T>) => import("react/jsx-runtime").JSX.Element | null;
|