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.
Files changed (29) hide show
  1. package/dist/AModule/AComponents/ABase/ABase.d.ts +33 -26
  2. package/dist/AModule/AComponents/AButton/AButton.d.ts +21 -7
  3. package/dist/AModule/AComponents/AButton/AIconButton.d.ts +15 -9
  4. package/dist/AModule/AComponents/ACheckBox/ACheckBox.d.ts +19 -12
  5. package/dist/AModule/AComponents/AClock/AClock.d.ts +32 -38
  6. package/dist/AModule/AComponents/ADatePicker/ADatePicker.d.ts +39 -54
  7. package/dist/AModule/AComponents/ADatePicker/ADateRangePicker.d.ts +20 -22
  8. package/dist/AModule/AComponents/ADialog/ADialog.d.ts +54 -66
  9. package/dist/AModule/AComponents/AFileBox/AFileBox.d.ts +30 -16
  10. package/dist/AModule/AComponents/AFloatMenu/AFloatMenu.d.ts +45 -61
  11. package/dist/AModule/AComponents/AFrames/AFrames.d.ts +33 -24
  12. package/dist/AModule/AComponents/AGrow/AGrow.d.ts +11 -7
  13. package/dist/AModule/AComponents/AIcon/AIcon.d.ts +14 -8
  14. package/dist/AModule/AComponents/AInput/AInput.d.ts +37 -48
  15. package/dist/AModule/AComponents/AListView/AListView.d.ts +38 -27
  16. package/dist/AModule/AComponents/ASelect/ASelect.d.ts +56 -56
  17. package/dist/AModule/AComponents/ASpace/ASpace.d.ts +9 -11
  18. package/dist/AModule/AComponents/AStepper/AStepper.d.ts +34 -35
  19. package/dist/AModule/AComponents/ASwitch/ASwitch.d.ts +13 -10
  20. package/dist/AModule/AComponents/ATab/ATab.d.ts +34 -35
  21. package/dist/AModule/AComponents/ATable/ATable.d.ts +249 -200
  22. package/dist/AModule/AComponents/AText/AText.d.ts +24 -9
  23. package/dist/AModule/AComponents/ATextArea/ATextArea.d.ts +33 -38
  24. package/dist/AModule/AComponents/ATooltip/ATooltip.d.ts +22 -11
  25. package/dist/AModule/AComponents/ATree/ATree.d.ts +71 -38
  26. package/dist/AModule/AComponents/AWrap/AWrap.d.ts +19 -10
  27. package/dist/index.cjs.js +15 -15
  28. package/dist/index.es.js +2095 -2069
  29. package/package.json +1 -1
@@ -6,110 +6,99 @@ export type TInputType = 'Primary' | 'Secondary' | 'Error';
6
6
  export interface IAInputProps extends IABaseProps, IAWrapProps {
7
7
  /**
8
8
  * onEnterPress? : (value: string) => void
9
- * <br/>Description : onEnterPress of AInput
10
- * <br/>Basic Usage :
11
- * <br/>(1)<AInput onEnterPress={value => console.log(value)}/>
9
+ *
10
+ * Description : onEnterPress of AInput
12
11
  */
13
12
  onEnterPress?: (value: string) => void;
14
13
  /**
15
14
  * type? : TInputType = 'Primary'
16
- * <br/>Description : type of AInput
17
- * <br/>Basic Usage :
18
- * <br/>(1)<AInput type="Secondary"/>
15
+ *
16
+ * Description : type of AInput
19
17
  */
20
18
  type?: TInputType;
21
19
  /**
22
20
  * inputRef? : React.RefObject<HTMLInputElement>
23
- * <br/>Description : inputRef of AInput
24
- * <br/>Basic Usage :
25
- * <br/>(1)const inputRef = useRef<HTMLInputElement>(null);
26
- * <AInput inputRef={inputRef}/>
21
+ *
22
+ * Description : inputRef of AInput
27
23
  */
28
24
  inputRef?: React.RefObject<HTMLInputElement>;
29
25
  /**
30
26
  * useValue? : TUseValues<string>
31
- * <br/>Description : useValue of AInput
32
- * <br/>Basic Usage :
33
- * <br/>(1)const [value, setValue] = useState<string>('');
34
- * <AInput useValue={[value, setValue]}/>
27
+ *
28
+ * Description : useValue of AInput
35
29
  */
36
30
  useValue?: TUseValues<string>;
37
31
  /**
38
32
  * isReadonly? : boolean
39
- * <br/>Description : decides whether the input is readonly or not
40
- * <br/>Basic Usage :
41
- * <br/>(1)<AInput isReadonly/>
33
+ *
34
+ * Description : decides whether the input is readonly or not
42
35
  */
43
36
  isReadonly?: boolean;
44
37
  /**
45
38
  * placeholder? : string
46
- * <br/>Description : placeholder of AInput
47
- * <br/>Basic Usage :
48
- * <br/>(1)<AInput placeholder="Placeholder"/>
39
+ *
40
+ * Description : placeholder of AInput
49
41
  */
50
42
  placeholder?: string;
51
43
  /**
52
44
  * maxLength? : number
53
- * <br/>Description : maxLength of AInput
54
- * <br/>Basic Usage :
55
- * <br/>(1)<AInput maxLength={10}/>
45
+ *
46
+ * Description : maxLength of AInput
56
47
  */
57
48
  maxLength?: number;
58
49
  /**
59
50
  * tabIndex? : number
60
- * <br/>Description : tabIndex of AInput
61
- * <br/>Basic Usage :
62
- * <br/>(1)<AInput tabIndex={1}/>
51
+ *
52
+ * Description : tabIndex of AInput
63
53
  */
64
54
  tabIndex?: number;
65
55
  /**
66
56
  * autoFocus? : boolean
67
- * <br/>Description : decides whether the input is focused or not
68
- * <br/>Basic Usage :
69
- * <br/>(1)<AInput autoFocus/>
57
+ *
58
+ * Description : decides whether the input is focused or not
70
59
  */
71
60
  autoFocus?: boolean;
72
61
  /**
73
62
  * isPassword? : boolean
74
- * <br/>Description : decides whether the input is password or not. if true, values will be masked.
75
- * <br/>Basic Usage :
76
- * <br/>(1)<AInput isPassword/>
63
+ *
64
+ * Description : decides whether the input is password or not. if true, values will be masked.
77
65
  */
78
66
  isPassword?: boolean;
79
67
  /**
80
68
  * autoComplete? : string = 'off'
81
- * <br/>Description : autoComplete of AInput
82
- * <br/>Basic Usage :
83
- * <br/>(1)<AInput autoComplete="on"/>
69
+ *
70
+ * Description : autoComplete of AInput
84
71
  */
85
72
  autoComplete?: string;
86
73
  /**
87
74
  * LeftAddon? : React.ReactNode
88
- * <br/>Description : LeftAddon of AInput
89
- * <br/>Basic Usage :
90
- * <br/>(1)<AInput LeftAddon={<AICon icon="Search"/>}/>
75
+ *
76
+ * Description : LeftAddon of AInput
91
77
  */
92
78
  LeftAddon?: React.ReactNode;
93
79
  /**
94
80
  * RightAddon? : React.ReactNode
95
- * <br/>Description : RightAddon of AInput
96
- * <br/>Basic Usage :
97
- * <br/>(1)<AInput RightAddon={<AICon icon="Search"/>}/>
81
+ *
82
+ * Description : RightAddon of AInput
98
83
  */
99
84
  RightAddon?: React.ReactNode;
100
85
  /**
101
86
  * inputProps? : React.InputHTMLAttributes<HTMLInputElement>
102
- * <br/>Description : inputProps of AInput
103
- * <br/>Basic Usage :
104
- * <br/>(1)<AInput inputProps={{onFocus: () => console.log('focus')}}/>
87
+ *
88
+ * Description : inputProps of AInput
105
89
  */
106
90
  inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
107
91
  }
108
92
  /**
109
93
  * AComponent : AInput
110
- * <br/>Description : AInput is an input component. it has AWrap and ABase inside, so be careful with the styles. I recommend checking out the element hierarchy first.
111
- * <br/>Basic Usage :
112
- * <br/>(1)const [value, setValue] = useState<string>('');
113
- * return <AInput useValue={[value, setValue]}/>
94
+ *
95
+ * Description : AInput is an input component. it has AWrap and ABase inside, so be careful with the styles. I recommend checking out the element hierarchy first.
96
+ *
97
+ * Basic Usage :
98
+ *
99
+ * const [value, setValue] = useState<string>('');
100
+ *
101
+ * if (case 1)
102
+ * <AInput useValue={[value, setValue]}/>
114
103
  */
115
104
  export declare const AInput: ({ onEnterPress, type, inputRef, useValue, isReadonly, placeholder, maxLength, tabIndex, autoFocus, isPassword, autoComplete, LeftAddon, RightAddon, inputProps, wrapProps, helperText, label, wrapType, ...abaseProps }: IAInputProps) => React.ReactNode;
@@ -17,29 +17,34 @@ import { TIdx } from '../ATypes/ATypes';
17
17
  export interface IAListViewContentProps<T extends IObject> {
18
18
  /**
19
19
  * defKey : TIdx
20
- * <br/>Description : defKey of AListView
20
+ *
21
+ * Description : defKey of AListView
21
22
  */
22
23
  defKey: TIdx;
23
24
  /**
24
25
  * item : T
25
- * <br/>Description : item of AListView
26
+ *
27
+ * Description : item of AListView
26
28
  */
27
29
  item: T;
28
30
  /**
29
31
  * def : IAListViewDef<T>
30
- * <br/>Description : def of AListView
32
+ *
33
+ * Description : def of AListView
31
34
  */
32
35
  def: IAListViewDef<T>;
33
36
  }
34
37
  export interface IAListViewDef<T extends IObject> {
35
38
  /**
36
39
  * label? : TCanCallback<IAListViewContentProps<T>, React.ReactNode>
37
- * <br/>Description : label of AListView
40
+ *
41
+ * Description : label of AListView
38
42
  */
39
43
  label?: TCanCallback<IAListViewContentProps<T>, React.ReactNode>;
40
44
  /**
41
45
  * content? : TCanCallback<IAListViewContentProps<T>, React.ReactNode>
42
- * <br/>Description : content of AListView
46
+ *
47
+ * Description : content of AListView
43
48
  */
44
49
  content?: TCanCallback<IAListViewContentProps<T>, React.ReactNode>;
45
50
  }
@@ -51,40 +56,46 @@ export type TAListViewDefs<T extends IObject> = {
51
56
  export interface IAListViewProps<T extends IObject> extends IABaseProps {
52
57
  /**
53
58
  * defs : TAListViewDefs<T>
54
- * <br/>Description : defs of AListView
55
- * <br/>Basic Usage :
56
- * const defs = {
57
- * 'Name': {label: ({item}) => item.name},
58
- * 'Age': {content: ({item}) => item.age},
59
- * }
60
- * <AListView defs={defs} item={{name: 'John', age: 20}}/>
59
+ *
60
+ * Description : defs of AListView
61
61
  */
62
62
  defs: TAListViewDefs<T>;
63
63
  /**
64
64
  * defaultDef? : IAListViewDef<T>
65
- * <br/>Description : defaultDef of AListView. it affects no all defs, and can be overridden by each def.
66
- * <br/>Basic Usage :
67
- * <br/>(1)const defaultDef = {label: ({defKey}) => defKey};
68
- * <AListView defs={{'Name': {content: ({item}) => item.name}}} defaultDef={defaultDef}/>
65
+ *
66
+ * Description : defaultDef of AListView. it affects no all defs, and can be overridden by each def.
69
67
  */
70
68
  defaultDef?: IAListViewDef<T>;
71
69
  /**
72
70
  * item : T
73
- * <br/>Description : item of AListView
74
- * <br/>Basic Usage :
75
- * <br/>(1)<AListView defs={{'Name': {content: ({item}) => item.name}}} item={{name: 'John'}}/>
71
+ *
72
+ * Description : item of AListView
76
73
  */
77
74
  item: T;
78
75
  }
79
76
  /**
80
77
  * AComponent : AListView
81
- * <br/>Description : AListView is a list view component that can show the key:values of items
82
- * <br/>Basic Usage :
83
- * <br/>(1)const defs = {
84
- * 'Name': {label: ({item}) => item.name},
85
- * 'Age': {content: ({item}) => item.age},
86
- * }
87
- * const item = {name: 'John', age: 20};
88
- * return <AListView defs={defs} item={item}/>
78
+ *
79
+ * Description : AListView is a list view component that can show the key:values of items
80
+ *
81
+ * Basic Usage :
82
+ *
83
+ * const defs = {
84
+ * name : {label: 'Name~'}
85
+ * age : {content: ({item}) => item.age},
86
+ * height : {}
87
+ * description : {}
88
+ * }
89
+ * const defaultDef = {
90
+ * label: ({defKey}) => 'label is ' + defKey,
91
+ * content: ({defKey, item}) => 'content is ' + item[defKey]
92
+ * }
93
+ * const user = {name: 'John', age: 20, height: 180, description: 'good'}
94
+ *
95
+ * if (case 1)
96
+ * <AListView defs={defs} item={user}/>
97
+ *
98
+ * if (case 2)
99
+ * <AListView defs={defs} item={user} defaultDef={defaultDef}/>
89
100
  */
90
101
  export declare const AListView: <T extends IObject>({ defs: extDefs, defaultDef: extDefaultDef, item, ...abaseProps }: IAListViewProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -5,130 +5,130 @@ 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
- * <br/>Description : OptionRenderer of ASelect
8
+ *
9
+ * Description : OptionRenderer of ASelect
9
10
  */
10
11
  OptionRenderer: (props: IASelectOptionRendererProps<TItem>) => React.ReactNode;
11
12
  /**
12
13
  * selected : T[]
13
- * <br/>Description : selected items of ASelect
14
+ *
15
+ * Description : selected items of ASelect
14
16
  */
15
17
  selected: TSelected;
16
18
  /**
17
19
  * placeholder : React.ReactNode
18
- * <br/>Description : placeholder of ASelect
20
+ *
21
+ * Description : placeholder of ASelect
19
22
  */
20
23
  placeholder?: React.ReactNode;
21
24
  }
22
25
  export interface IASelectOptionRendererProps<TItem> {
23
26
  /**
24
27
  * option : T
25
- * <br/>Description : option of ASelect
28
+ *
29
+ * Description : option of ASelect
26
30
  */
27
31
  option: TItem;
28
32
  }
29
33
  export interface IASelectProps<TItem, TGivenSelected, TSelected = TGivenSelected extends Array<TItem> ? TItem[] : null | TItem> extends IABaseProps, IAWrapProps {
30
34
  /**
31
35
  * options : T[]
32
- * <br/>Description : options of ASelect
33
- * <br/>Basic Usage :
34
- * <br/>(1)const options = ['Option1', 'Option2', 'Option3'];
35
- * <ASelect options={options}/>
36
+ *
37
+ * Description : options of ASelect
36
38
  */
37
39
  options: TItem[];
38
40
  /**
39
41
  * useSelect? : TUseValues<T[]>
40
- * <br/>Description : useSelect of ASelect
41
- * <br/>Basic Usage :
42
- * <br/>(1)const [selected, setSelected] = useState<T[]>([]);
43
- * <ASelect options={options} useSelect={[selected, setSelected]}/>
42
+ *
43
+ * Description : useSelect of ASelect
44
44
  */
45
45
  useSelect?: TUseValues<TSelected>;
46
46
  /**
47
47
  * type? : 'Primary' | 'Secondary' = 'Primary'
48
- * <br/>Description : type of ASelect
49
- * <br/>Basic Usage :
50
- * <br/>(1)<ASelect type="Secondary"/>
48
+ *
49
+ * Description : type of ASelect
51
50
  */
52
51
  type?: 'Primary' | 'Secondary';
53
52
  /**
54
53
  * placeholder? : React.ReactNode
55
- * <br/>Description : placeholder of ASelect. it is shown when no option is selected
56
- * <br/>Basic Usage :
57
- * <br/>(1)<ASelect placeholder="Select"/>
54
+ *
55
+ * Description : placeholder of ASelect. it is shown when no option is selected
58
56
  */
59
57
  placeholder?: React.ReactNode;
60
58
  /**
61
59
  * isSelectMulti? : boolean = false
62
- * <br/>Description : isSelectMulti of ASelect. if it is true, multiple options can be selected
63
- * <br/>Basic Usage :
64
- * <br/>(1)<ASelect isSelectMulti/>
60
+ *
61
+ * Description : isSelectMulti of ASelect. if it is true, multiple options can be selected
65
62
  */
66
63
  isSelectMulti?: boolean;
67
64
  /**
68
65
  * onClose? : () => void
69
- * <br/>Description : onClose of ASelect
70
- * <br/>Basic Usage :
71
- * <br/>(1)<ASelect onClose={() => console.log('closed')}/>
66
+ *
67
+ * Description : onClose of ASelect
72
68
  */
73
69
  onClose?: () => void;
74
70
  /**
75
71
  * SelectedRenderer? : (props: IASelectSelectedRendererProps<T>) => React.ReactNode = DefaultSelectedRenderer
76
- * <br/>Description : Renderer of Selected Options of ASelect
77
- * <br/>Basic Usage :
78
- * <br/>(1)<ASelect SelectedRenderer={({selected, placeholder}) => selected ? selected : placeholder}/>
72
+ *
73
+ * Description : Renderer of Selected Options of ASelect
79
74
  */
80
75
  SelectedRenderer?: (props: IASelectSelectedRendererProps<TItem, TGivenSelected, TSelected>) => React.ReactNode;
81
76
  /**
82
77
  * OptionRenderer? : (props: IASelectOptionRendererProps<T>) => React.ReactNode = DefaultOptionRenderer
83
- * <br/>Description : Renderer of Options of ASelect
84
- * <br/>Basic Usage :
85
- * <br/>(1)<ASelect OptionRenderer={({option}) => <div>{option}</div>}/>
78
+ *
79
+ * Description : Renderer of Options of ASelect
86
80
  */
87
81
  OptionRenderer?: (props: IASelectOptionRendererProps<TItem>) => React.ReactNode;
88
82
  /**
89
83
  * minShowRows? : number = 2
90
- * <br/>Description : minShowRows of ASelect
91
- * <br/>Basic Usage :
92
- * <br/>(1)<ASelect minShowRows={2}/>
84
+ *
85
+ * Description : minShowRows of ASelect
93
86
  */
94
87
  minShowRows?: number;
95
88
  /**
96
89
  * maxShowRows? : number = 6
97
- * <br/>Description : maxShowRows of ASelect. scrollbar will appear when overflow
98
- * <br/>Basic Usage :
99
- * <br/>(1)<ASelect maxShowRows={6}/>
90
+ *
91
+ * Description : maxShowRows of ASelect. scrollbar will appear when overflow
100
92
  */
101
93
  maxShowRows?: number;
102
94
  /**
103
95
  * arrowProps? : React.HTMLProps<HTMLDivElement>
104
- * <br/>Description : divProps for Arrow of ASelect
105
- * <br/>Basic Usage :
106
- * <br/>(1)<ASelect arrowProps={{style: {color: 'red'}}}/>
96
+ *
97
+ * Description : divProps for Arrow of ASelect
107
98
  */
108
99
  arrowProps?: React.HTMLProps<HTMLDivElement>;
109
100
  }
110
101
  /**
111
102
  * AComponent : ASelect
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
- * const [selected, setSelected] = useState<string | null>(null);
116
- * return <ASelect options={options} useSelect={[selected, setSelected]}/>
117
103
  *
118
- * <br/>(2)const options = ['Option1', 'Option2', 'Option3'];
119
- * const [selected, setSelected] = useState<string[]>([]);
120
- * return <ASelect options={options} useSelect={[selected, setSelected]} isSelectMulti/>
104
+ * Description : ASelect is a select component. give options and useSelect to select an option.
121
105
  *
122
- * <br/>(3)const options = [{idx : 1, name : 'option1'}, {idx : 2, name : 'option2'}, {idx : 3, name : 'option3'}];
123
- * const [selected, setSelected] = useState<{idx : number, name : string}[]>([]);
124
- * const OptionRenderer = ({option}) => <div>{option.name}</div>;
125
- * return <ASelect options={options} useSelect={[selected, setSelected]} OptionRenderer={OptionRenderer}/>
106
+ * Basic Usage :
107
+ *
108
+ * const strOptions = ['Option1', 'Option2', 'Option3'];
109
+ * const options = [{idx : 1, name : 'option1'}, {idx : 2, name : 'option2'}, {idx : 3, name : 'option3'}];
110
+ * const [strSelected, setStrSelected] = useState<string | null>(null);
111
+ * const [selected, setSelected] = useState<{idx : number, name : string}[]>([]);
112
+ * const OptionRenderer = ({option}) => <div>{option.name}</div>;
113
+ * const SelectedRenderer = ({selected, placeholder}) => selected.length > 0 ? string.join(selected.map(e => e.name), ', ') : placeholder;
114
+ *
115
+ * if (case 1)
116
+ * <ASelect options={strOptions}
117
+ * useSelect={[strSelected, setStrSelected]}/>
118
+ *
119
+ * if (case 2)
120
+ * <ASelect options={options}
121
+ * useSelect={[selected, setSelected]}
122
+ * OptionRenderer={OptionRenderer}
123
+ * isSelectMulti
124
+ *
125
+ * if (case 3)
126
+ * <ASelect options={options}
127
+ * useSelect={[selected, setSelected]}
128
+ * OptionRenderer={OptionRenderer}
129
+ * SelectedRenderer={SelectedRenderer}
130
+ * isSelectMulti/>
126
131
  *
127
- * <br/>(4)const options = [{idx : 1, name : 'option1'}, {idx : 2, name : 'option2'}, {idx : 3, name : 'option3'}];
128
- * const [selected, setSelected] = useState<{idx : number, name : string}[]>([]);
129
- * const OptionRenderer = ({option}) => <div>{option.name}</div>;
130
- * const SelectedRenderer = ({selected, placeholder}) => selected.length > 0 ? string.join(selected.map(e => e.name), ', ') : placeholder;
131
- * return <ASelect options={options} useSelect={[selected, setSelected]} OptionRenderer={OptionRenderer} SelectedRenderer={SelectedRenderer}/>
132
132
  */
133
133
  export declare const ASelect: <TItem, TGivenSelected, TSelected = TGivenSelected extends TItem[] ? TItem[] : TItem | null>({ options, useSelect, type, placeholder, isSelectMulti, onClose, SelectedRenderer, OptionRenderer, minShowRows, maxShowRows, arrowProps, wrapProps, helperText, label, ...abaseProps }: IASelectProps<TItem, TGivenSelected, TSelected>) => React.ReactNode;
134
134
  export declare const DefaultOptionRenderer: <T>({ option }: IASelectOptionRendererProps<T>) => React.ReactNode;
@@ -2,28 +2,26 @@ import { HTMLAttributes } from 'react';
2
2
  interface IASpaceProps extends HTMLAttributes<HTMLElement> {
3
3
  /**
4
4
  * h? : number | string
5
- * <br/>Description : height of ASpace
6
- * <br/>Basic Usage :
7
- * <br/>(1)<ASpace h={10}/>
5
+ *
6
+ * Description : height of ASpace
8
7
  */
9
8
  h?: number | string;
10
9
  /**
11
10
  * w? : number | string
12
- * <br/>Description : width of ASpace
13
- * <br/>Basic Usage :
14
- * <br/>(1)<ASpace w={10}/>
11
+ *
12
+ * Description : width of ASpace
15
13
  */
16
14
  w?: number | string;
17
15
  }
18
16
  /**
19
17
  * AComponent : ASpace
20
- * <br/>Description : ASpace is a component to make spaces.
21
- * <br/>Basic Usage :
22
- * <br/>(1)<ASpace h={10}/>
23
18
  *
24
- * <br/>(2)<ASpace w={10}/>
19
+ * Description : ASpace is a component to make spaces.
25
20
  *
26
- * <br/>(3)<ASpace h={10} w={10}/>
21
+ * Basic Usage :
22
+ *
23
+ * if (case 1)
24
+ * <ASpace h={10} w={10}/>
27
25
  */
28
26
  export declare const ASpace: ({ h, w, ...divProps }: IASpaceProps) => React.ReactNode;
29
27
  export {};
@@ -3,71 +3,70 @@ import { TUseValues } from '../../AHooks/useValues';
3
3
  interface IStepRendererProps<T> {
4
4
  /**
5
5
  * step : T
6
- * <br/>Description : step of AStepper
6
+ *
7
+ * Description : step of AStepper
7
8
  */
8
9
  step: T;
9
10
  /**
10
11
  * stepIdx : number
11
- * <br/>Description : stepIdx of AStepper
12
+ *
13
+ * Description : stepIdx of AStepper
12
14
  */
13
15
  stepIdx: number;
14
16
  }
15
17
  export interface IAStepperProps<T> {
16
18
  /**
17
19
  * useSelect? : TUseValues<T>
18
- * <br/>Description : useStep of AStepper
19
- * <br/>Basic Usage :
20
- * <br/>(1)const steps = ['Step1', 'Step2', 'Step3'];
21
- * const [step, setStep] = useState<typeof steps[0]>(steps[0]);
22
- * <AStepper useSelect={[step, setStep]} steps={steps}/>
20
+ *
21
+ * Description : useStep of AStepper
23
22
  */
24
23
  useSelect?: TUseValues<T>;
25
24
  /**
26
25
  * steps : T[]
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
- * <AStepper steps={steps}/>
26
+ *
27
+ * Description : steps of AStepper. must have at least one step.
31
28
  */
32
29
  steps: T[];
33
30
  /**
34
31
  * StepRenderer? : (props: IStepRendererProps<T>) => React.ReactNode = DefaultRenderer
35
- * <br/>Description : StepRenderer of AStepper
36
- * <br/>Basic Usage :
37
- * <br/>(1)const steps = ['Step1', 'Step2', 'Step3'];
38
- * const StepRenderer = ({step, stepIdx}) => 'This is step' + stepIdx;
39
- * <AStepper steps={steps} StepRenderer={StepRenderer}/>
32
+ *
33
+ * Description : StepRenderer of AStepper
40
34
  */
41
35
  StepRenderer?: (props: IStepRendererProps<T>) => React.ReactNode;
42
36
  /**
43
37
  * ContentRenderer? : (props: IStepRendererProps<T>) => React.ReactNode = DefaultRenderer
44
- * <br/>Description : ContentRenderer of AStepper
45
- * <br/>Basic Usage :
46
- * <br/>(1)const steps = ['Step1', 'Step2', 'Step3'];
47
- * const ContentRenderer = ({step, stepIdx}) => 'This is content' + stepIdx;
48
- * <AStepper steps={steps} ContentRenderer={ContentRenderer}/>
38
+ *
39
+ * Description : ContentRenderer of AStepper
49
40
  */
50
41
  ContentRenderer?: (props: IStepRendererProps<T>) => React.ReactNode;
51
42
  }
52
43
  /**
53
44
  * AComponent : AStepper
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
- * return <AStepper steps={steps}/>
58
45
  *
59
- * <br/>(2)const steps = ['Step1', 'Step2', 'Step3'];
60
- * const StepRenderer = ({step, stepIdx}) => 'This is step' + stepIdx;
61
- * return <AStepper steps={steps} StepRenderer={StepRenderer}/>
46
+ * Description : AStepper is a stepper component that can select a step. all steps are rendered even if they are not selected.
62
47
  *
63
- * <br/>(3)const steps = ['Step1', 'Step2', 'Step3'];
64
- * const ContentRenderer = ({step, stepIdx}) => 'This is content' + stepIdx;
65
- * return <AStepper steps={steps} ContentRenderer={ContentRenderer}/>
48
+ * Basic Usage :
49
+ *
50
+ * const steps = ['Step1', 'Step2', 'Step3'];
51
+ * const StepRenderer = ({step, stepIdx}) => 'This is step' + stepIdx;
52
+ * const ContentRenderer = ({step, stepIdx}) => 'This is content' + stepIdx;
53
+ *
54
+ * if (case 1)
55
+ * <AStepper steps={steps}/>
56
+ *
57
+ * if (case 2)
58
+ * <AStepper steps={steps}
59
+ * StepRenderer={StepRenderer}/>
60
+ *
61
+ * if (case 3)
62
+ * <AStepper steps={steps}
63
+ * ContentRenderer={ContentRenderer}/>
64
+ *
65
+ * if (case 4)
66
+ * <AStepper steps={steps}
67
+ * StepRenderer={StepRenderer}
68
+ * ContentRenderer={ContentRenderer}/>
66
69
  *
67
- * <br/>(4)const steps = ['Step1', 'Step2', 'Step3'];
68
- * const StepRenderer = ({step, stepIdx}) => 'This is step' + stepIdx;
69
- * const ContentRenderer = ({step, stepIdx}) => 'This is content' + stepIdx;
70
- * return <AStepper steps={steps} StepRenderer={StepRenderer} ContentRenderer={ContentRenderer}/>
71
70
  */
72
71
  export declare const AStepper: <T>({ useSelect, steps, StepRenderer, ContentRenderer, }: IAStepperProps<T>) => import("react/jsx-runtime").JSX.Element | null;
73
72
  export {};
@@ -4,21 +4,24 @@ import { IAWrapProps } from '../AWrap/AWrap';
4
4
  export interface ASwitchProps extends IAWrapProps, IABaseProps {
5
5
  /**
6
6
  * useCheck? : TUseValues<any>
7
- * <br/>Description : ContentRenderer of AStepper
8
- * <br/>Basic Usage :
9
- * <br/>(1)const steps = ['Step1', 'Step2', 'Step3'];
10
- * const ContentRenderer = ({step, stepIdx}) => 'This is content' + stepIdx;
11
- * <AStepper steps={steps} ContentRenderer={ContentRenderer}/>
7
+ *
8
+ * Description : useCheck of ASwitch
12
9
  */
13
10
  useCheck?: TUseValues<any>;
14
11
  }
15
12
  /**
16
13
  * AComponent : ASwitch
17
- * <br/>Description : ASwitch is a switch component that can be toggled.
18
- * <br/>Basic Usage :
19
- * <br/>(1)<ASwitch/>
20
14
  *
21
- * <br/>(2)const [check, setCheck] = useState<boolean>(false);
22
- * <ASwitch useCheck={[check, setCheck]}/>
15
+ * Description : ASwitch is a switch component that can be toggled.
16
+ *
17
+ * Basic Usage :
18
+ *
19
+ * const [check, setCheck] = useState<boolean>(false);
20
+ *
21
+ * if (case 1)
22
+ * <ASwitch/>
23
+ *
24
+ * if (case 2)
25
+ * <ASwitch useCheck={[check, setCheck]}/>
23
26
  */
24
27
  export declare const ASwitch: ({ wrapProps, helperText, label, useCheck, ...abaseProps }: ASwitchProps) => import("react/jsx-runtime").JSX.Element;