ados-rcm 1.0.10 → 1.0.13
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 +33 -26
- package/dist/AModule/AComponents/AButton/AButton.d.ts +21 -7
- package/dist/AModule/AComponents/AButton/AIconButton.d.ts +15 -9
- package/dist/AModule/AComponents/ACheckBox/ACheckBox.d.ts +19 -12
- package/dist/AModule/AComponents/AClock/AClock.d.ts +32 -38
- package/dist/AModule/AComponents/ADatePicker/ADatePicker.d.ts +39 -54
- package/dist/AModule/AComponents/ADatePicker/ADateRangePicker.d.ts +20 -22
- package/dist/AModule/AComponents/ADialog/ADialog.d.ts +54 -66
- package/dist/AModule/AComponents/AFileBox/AFileBox.d.ts +30 -16
- package/dist/AModule/AComponents/AFloatMenu/AFloatMenu.d.ts +45 -61
- package/dist/AModule/AComponents/AFrames/AFrames.d.ts +33 -24
- package/dist/AModule/AComponents/AGrow/AGrow.d.ts +11 -7
- package/dist/AModule/AComponents/AIcon/AIcon.d.ts +14 -8
- package/dist/AModule/AComponents/AInput/AInput.d.ts +37 -48
- package/dist/AModule/AComponents/AListView/AListView.d.ts +38 -27
- package/dist/AModule/AComponents/ASelect/ASelect.d.ts +56 -56
- package/dist/AModule/AComponents/ASpace/ASpace.d.ts +9 -11
- package/dist/AModule/AComponents/AStepper/AStepper.d.ts +34 -35
- package/dist/AModule/AComponents/ASwitch/ASwitch.d.ts +13 -10
- package/dist/AModule/AComponents/ATab/ATab.d.ts +34 -35
- package/dist/AModule/AComponents/ATable/ATable.d.ts +249 -200
- package/dist/AModule/AComponents/AText/AText.d.ts +24 -9
- package/dist/AModule/AComponents/ATextArea/ATextArea.d.ts +33 -38
- package/dist/AModule/AComponents/ATooltip/ATooltip.d.ts +22 -11
- package/dist/AModule/AComponents/ATree/ATree.d.ts +71 -38
- package/dist/AModule/AComponents/AWrap/AWrap.d.ts +19 -10
- package/dist/index.cjs.js +15 -15
- package/dist/index.es.js +2095 -2069
- package/package.json +1 -1
|
@@ -3,74 +3,73 @@ import { TUseValues } from '../../AHooks/useValues';
|
|
|
3
3
|
export interface IATabOptionRendererProps<T> {
|
|
4
4
|
/**
|
|
5
5
|
* option : T
|
|
6
|
-
*
|
|
6
|
+
*
|
|
7
|
+
* Description : option of ATab
|
|
7
8
|
*/
|
|
8
9
|
option: T;
|
|
9
10
|
}
|
|
10
11
|
export interface IATabProps<T> {
|
|
11
12
|
/**
|
|
12
13
|
* options : T[]
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* <br/>(1)const options = ['Option1', 'Option2', 'Option3'];
|
|
16
|
-
* <ATab options={options}/>
|
|
14
|
+
*
|
|
15
|
+
* Description : options of ATab
|
|
17
16
|
*/
|
|
18
17
|
options: T[];
|
|
19
18
|
/**
|
|
20
19
|
* type? : 'Primary' | 'Secondary' = 'Primary'
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* <br/>(1)<ATab type="Secondary"/>
|
|
20
|
+
*
|
|
21
|
+
* Description : type of ATab
|
|
24
22
|
*/
|
|
25
23
|
type?: 'Primary' | 'Secondary';
|
|
26
24
|
/**
|
|
27
25
|
* useSelect? : TUseValues<T>
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* <br/>(1)const [selected, setSelected] = useState<typeof options[0]>(options[0]);
|
|
31
|
-
* <ATab options={options} useSelect={[selected, setSelected]}/>
|
|
26
|
+
*
|
|
27
|
+
* Description : useSelect of ATab
|
|
32
28
|
*/
|
|
33
29
|
useSelect?: TUseValues<T>;
|
|
34
30
|
/**
|
|
35
31
|
* tabProps? : React.HTMLProps<HTMLDivElement>
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* <br/>(1)<ATab tabProps={{className: 'test'}}/>
|
|
32
|
+
*
|
|
33
|
+
* Description : tabProps of ATab
|
|
39
34
|
*/
|
|
40
35
|
tabProps?: React.HTMLProps<HTMLDivElement>;
|
|
41
36
|
/**
|
|
42
37
|
* optionWidth? : string | number
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* <br/>(1)<ATab optionWidth="100px"/>
|
|
38
|
+
*
|
|
39
|
+
* Description : optionWidth of ATab. if not set, tabs will have 1/n width.
|
|
46
40
|
*/
|
|
47
41
|
optionWidth?: string | number;
|
|
48
42
|
/**
|
|
49
43
|
* OptionRenderer? : (props: IATabOptionRendererProps<T>) => React.ReactNode = DefaultItemRenderer
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* <br/>(1)const options = ['Option1', 'Option2', 'Option3'];
|
|
53
|
-
* const OptionRenderer = ({option}) => 'This is option' + option;
|
|
54
|
-
* <ATab options={options} OptionRenderer={OptionRenderer}/>
|
|
44
|
+
*
|
|
45
|
+
* Description : OptionRenderer of ATab
|
|
55
46
|
*/
|
|
56
47
|
OptionRenderer?: (props: IATabOptionRendererProps<T>) => React.ReactNode;
|
|
57
48
|
}
|
|
58
49
|
/**
|
|
59
50
|
* AComponent : ATab
|
|
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
|
-
* return <ATab options={options}/>
|
|
64
51
|
*
|
|
65
|
-
*
|
|
66
|
-
* const OptionRenderer = ({option}) => 'This is option' + option;
|
|
67
|
-
* return <ATab options={options} OptionRenderer={OptionRenderer}/>
|
|
52
|
+
* Description : ATab is a tab component that can select a tab.
|
|
68
53
|
*
|
|
69
|
-
*
|
|
70
|
-
* const [selected, setSelected] = useState<typeof options[0]>(options[0]);
|
|
71
|
-
* return <ATab options={options} useSelect={[selected, setSelected]}/>
|
|
54
|
+
* Basic Usage :
|
|
72
55
|
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
56
|
+
* const options = ['Option1', 'Option2', 'Option3'];
|
|
57
|
+
* const [selected, setSelected] = useState<typeof options[0]>(options[0]);
|
|
58
|
+
* const OptionRenderer = ({option}) => 'This is option' + option;
|
|
59
|
+
*
|
|
60
|
+
* if (case 1)
|
|
61
|
+
* <ATab options={options}/>
|
|
62
|
+
*
|
|
63
|
+
* if (case 2)
|
|
64
|
+
* <ATab options={options}
|
|
65
|
+
* OptionRenderer={OptionRenderer}/>
|
|
66
|
+
*
|
|
67
|
+
* if (case 3)
|
|
68
|
+
* <ATab options={options}
|
|
69
|
+
* useSelect={[selected, setSelected]}/>
|
|
70
|
+
*
|
|
71
|
+
* if (case 4)
|
|
72
|
+
* <ATab options={options}
|
|
73
|
+
* type="Secondary"/>
|
|
75
74
|
*/
|
|
76
75
|
export declare const ATab: <T>({ options, useSelect, type, tabProps, optionWidth, OptionRenderer, }: IATabProps<T>) => import("react/jsx-runtime").JSX.Element | null;
|