digitinary-ui 1.0.13 → 1.0.15
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/README.md +30 -30
- package/dist/components/Accordion/Accordion.d.ts +3 -3
- package/dist/components/Accordion/index.d.ts +1 -1
- package/dist/components/Alert/Alert.d.ts +3 -3
- package/dist/components/Alert/index.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +6 -6
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Card/Card.d.ts +3 -3
- package/dist/components/Card/index.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +3 -3
- package/dist/components/Checkbox/index.d.ts +1 -1
- package/dist/components/Chip/Chip.d.ts +6 -6
- package/dist/components/Chip/index.d.ts +1 -1
- package/dist/components/Date/Date.d.ts +4 -4
- package/dist/components/Date/index.d.ts +1 -1
- package/dist/components/DateRange/DateRange.d.ts +4 -4
- package/dist/components/DateRange/index.d.ts +1 -1
- package/dist/components/Dialog/Dialog.d.ts +3 -3
- package/dist/components/Dialog/index.d.ts +1 -1
- package/dist/components/HelperText/HelperText.d.ts +3 -3
- package/dist/components/HelperText/index.d.ts +1 -1
- package/dist/components/Input/Input.d.ts +3 -3
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/Label/Label.d.ts +3 -3
- package/dist/components/Label/index.d.ts +1 -1
- package/dist/components/Loader/Loader.d.ts +10 -6
- package/dist/components/Loader/index.d.ts +1 -1
- package/dist/components/Overlay/Overlay.d.ts +3 -3
- package/dist/components/Overlay/index.d.ts +1 -1
- package/dist/components/Pagination/Pagination.d.ts +3 -3
- package/dist/components/Pagination/index.d.ts +1 -1
- package/dist/components/Radio/Radio.d.ts +4 -4
- package/dist/components/Radio/index.d.ts +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +3 -3
- package/dist/components/RadioGroup/index.d.ts +1 -1
- package/dist/components/SelectGroup/SelectGroup.d.ts +3 -3
- package/dist/components/SelectGroup/index.d.ts +1 -1
- package/dist/components/SideDrawer/SideDrawer.d.ts +3 -3
- package/dist/components/SideDrawer/index.d.ts +1 -1
- package/dist/components/Switch/Switch.d.ts +3 -3
- package/dist/components/Switch/index.d.ts +1 -1
- package/dist/components/Table/Table.d.ts +3 -3
- package/dist/components/Table/index.d.ts +1 -1
- package/dist/components/TextArea/TextArea.d.ts +3 -3
- package/dist/components/TextArea/index.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +6 -6
- package/dist/components/index.d.ts +20 -20
- package/dist/constants/index.d.ts +1 -4
- package/dist/icons/AlertErrorIcon.d.ts +3 -3
- package/dist/icons/AlertInfoIcon.d.ts +3 -3
- package/dist/icons/AlertSuccessIcon.d.ts +3 -3
- package/dist/icons/AlertWarningIcon.d.ts +3 -3
- package/dist/icons/ArrowBottom.d.ts +3 -3
- package/dist/icons/ArrowLeft.d.ts +3 -3
- package/dist/icons/ArrowRight.d.ts +3 -3
- package/dist/icons/ArrowUpIcon.d.ts +3 -3
- package/dist/icons/Calendar.d.ts +3 -3
- package/dist/icons/CheckMark.d.ts +3 -3
- package/dist/icons/ClearField.d.ts +3 -3
- package/dist/icons/CloseIcon.d.ts +3 -3
- package/dist/icons/DoubleLeftArrow.d.ts +3 -3
- package/dist/icons/DoubleRightArrow.d.ts +3 -3
- package/dist/icons/ExcelIcon.d.ts +3 -3
- package/dist/icons/HidePasswordIcon.d.ts +3 -3
- package/dist/icons/InfoIcon.d.ts +3 -3
- package/dist/icons/LeftArrowIcon.d.ts +3 -3
- package/dist/icons/LoaderIcon.d.ts +3 -3
- package/dist/icons/PdfIcon.d.ts +3 -3
- package/dist/icons/RightArrowIcon.d.ts +3 -3
- package/dist/icons/SearchIcon.d.ts +3 -3
- package/dist/icons/SelectFieldDownArrow.d.ts +3 -3
- package/dist/icons/SelectFieldUpArrow.d.ts +3 -3
- package/dist/icons/ShowPasswordIcon.d.ts +3 -3
- package/dist/icons/SortIcon.d.ts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/types/all.scss.d.ts +4 -4
- package/dist/types/enums.d.ts +21 -21
- package/dist/types/index.d.ts +3 -3
- package/dist/types/interfaces.d.ts +268 -266
- package/dist/types/jsx.d.ts +12 -12
- package/dist/types/types.d.ts +23 -23
- package/dist/utils/index.d.ts +82 -82
- package/package.json +88 -84
package/dist/types/all.scss.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare module '*.module.scss' {
|
|
2
|
-
const classes: { [key: string]: string };
|
|
3
|
-
export default classes;
|
|
4
|
-
}
|
|
1
|
+
declare module '*.module.scss' {
|
|
2
|
+
const classes: { [key: string]: string };
|
|
3
|
+
export default classes;
|
|
4
|
+
}
|
|
5
5
|
|
package/dist/types/enums.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export declare enum Size {
|
|
2
|
-
Small = "small",
|
|
3
|
-
Medium = "medium",
|
|
4
|
-
Large = "large"
|
|
5
|
-
}
|
|
6
|
-
export declare enum Position {
|
|
7
|
-
End = "end",
|
|
8
|
-
Start = "start",
|
|
9
|
-
Top = "top",
|
|
10
|
-
Bottom = "bottom"
|
|
11
|
-
}
|
|
12
|
-
export declare enum Duration {
|
|
13
|
-
Hours = "hours",
|
|
14
|
-
Days = "days",
|
|
15
|
-
Weeks = "weeks",
|
|
16
|
-
Months = "months"
|
|
17
|
-
}
|
|
18
|
-
export declare enum TableLayout {
|
|
19
|
-
AUTO = "auto",
|
|
20
|
-
FIXED = "fixed"
|
|
21
|
-
}
|
|
1
|
+
export declare enum Size {
|
|
2
|
+
Small = "small",
|
|
3
|
+
Medium = "medium",
|
|
4
|
+
Large = "large"
|
|
5
|
+
}
|
|
6
|
+
export declare enum Position {
|
|
7
|
+
End = "end",
|
|
8
|
+
Start = "start",
|
|
9
|
+
Top = "top",
|
|
10
|
+
Bottom = "bottom"
|
|
11
|
+
}
|
|
12
|
+
export declare enum Duration {
|
|
13
|
+
Hours = "hours",
|
|
14
|
+
Days = "days",
|
|
15
|
+
Weeks = "weeks",
|
|
16
|
+
Months = "months"
|
|
17
|
+
}
|
|
18
|
+
export declare enum TableLayout {
|
|
19
|
+
AUTO = "auto",
|
|
20
|
+
FIXED = "fixed"
|
|
21
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './types';
|
|
2
|
-
export * from './interfaces';
|
|
3
|
-
export * from './enums';
|
|
1
|
+
export * from './types';
|
|
2
|
+
export * from './interfaces';
|
|
3
|
+
export * from './enums';
|
|
@@ -1,266 +1,268 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Size } from './enums';
|
|
3
|
-
import { AlertColorType, AlertVariantType, ButtonColorType, ButtonType, ButtonVariantType, InputType, PlacementType, SizeType, SwitchColorType, PositionType, ChipColorType, ChipVariantType, RadioColorType, RadioOption, HelperTextColorType } from './types';
|
|
4
|
-
interface BaseProps {
|
|
5
|
-
id?: string;
|
|
6
|
-
className?: string;
|
|
7
|
-
dataId?: string;
|
|
8
|
-
}
|
|
9
|
-
interface FormProps<T> extends BaseProps {
|
|
10
|
-
label?: JSX.Element | string;
|
|
11
|
-
placeholder?: string;
|
|
12
|
-
errorMsg?: string;
|
|
13
|
-
helperText?: string;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
size?: SizeType;
|
|
16
|
-
required?: boolean;
|
|
17
|
-
clearable?: boolean;
|
|
18
|
-
fullWidth?: boolean;
|
|
19
|
-
value: T;
|
|
20
|
-
onChange: (value: T) => void;
|
|
21
|
-
}
|
|
22
|
-
export interface InputProps extends FormProps<string | number | null> {
|
|
23
|
-
type?: InputType;
|
|
24
|
-
startAdornment?: JSX.Element;
|
|
25
|
-
endAdornment?: JSX.Element;
|
|
26
|
-
blurText?: boolean;
|
|
27
|
-
ref?: React.Ref<HTMLInputElement>;
|
|
28
|
-
direction?: 'ltr' | 'rtl';
|
|
29
|
-
autoComplete?: string;
|
|
30
|
-
onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
31
|
-
onPaste?: React.ClipboardEventHandler<HTMLInputElement>;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Size } from './enums';
|
|
3
|
+
import { AlertColorType, AlertVariantType, ButtonColorType, ButtonType, ButtonVariantType, InputType, PlacementType, SizeType, SwitchColorType, PositionType, ChipColorType, ChipVariantType, RadioColorType, RadioOption, HelperTextColorType } from './types';
|
|
4
|
+
interface BaseProps {
|
|
5
|
+
id?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
dataId?: string;
|
|
8
|
+
}
|
|
9
|
+
interface FormProps<T> extends BaseProps {
|
|
10
|
+
label?: JSX.Element | string;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
errorMsg?: string;
|
|
13
|
+
helperText?: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
size?: SizeType;
|
|
16
|
+
required?: boolean;
|
|
17
|
+
clearable?: boolean;
|
|
18
|
+
fullWidth?: boolean;
|
|
19
|
+
value: T;
|
|
20
|
+
onChange: (value: T) => void;
|
|
21
|
+
}
|
|
22
|
+
export interface InputProps extends FormProps<string | number | null> {
|
|
23
|
+
type?: InputType;
|
|
24
|
+
startAdornment?: JSX.Element;
|
|
25
|
+
endAdornment?: JSX.Element;
|
|
26
|
+
blurText?: boolean;
|
|
27
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
28
|
+
direction?: 'ltr' | 'rtl';
|
|
29
|
+
autoComplete?: string;
|
|
30
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
31
|
+
onPaste?: React.ClipboardEventHandler<HTMLInputElement>;
|
|
32
|
+
onClear?: () => void;
|
|
33
|
+
}
|
|
34
|
+
export interface SelectProps<T> extends FormProps<T | null> {
|
|
35
|
+
options: Group[];
|
|
36
|
+
isMultiple?: boolean;
|
|
37
|
+
withSearch?: boolean;
|
|
38
|
+
itemsLabel?: string;
|
|
39
|
+
isLoading?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export interface DateProps extends FormProps<string | null> {
|
|
42
|
+
disabledDay?: string;
|
|
43
|
+
selectedEndDate?: string;
|
|
44
|
+
success?: boolean;
|
|
45
|
+
disablePastDays?: boolean;
|
|
46
|
+
timePicker?: boolean;
|
|
47
|
+
isEndDay?: boolean;
|
|
48
|
+
defaultFormat?: string;
|
|
49
|
+
acceptSameDay?: boolean;
|
|
50
|
+
setCheckDateOpened?: (value: boolean) => void;
|
|
51
|
+
maxDate?: string | moment.Moment;
|
|
52
|
+
minDate?: string | moment.Moment;
|
|
53
|
+
}
|
|
54
|
+
export interface DateRangeProps extends FormProps<string> {
|
|
55
|
+
success?: boolean;
|
|
56
|
+
hideMoreDateOptions?: boolean;
|
|
57
|
+
showTimePicker?: boolean;
|
|
58
|
+
acceptSameDay?: boolean;
|
|
59
|
+
maxStartDate?: string;
|
|
60
|
+
minStartDate?: string;
|
|
61
|
+
maxEndDate?: string;
|
|
62
|
+
minEndDate?: string;
|
|
63
|
+
labels?: {
|
|
64
|
+
month: string;
|
|
65
|
+
day: string;
|
|
66
|
+
Apply: string;
|
|
67
|
+
week: string;
|
|
68
|
+
Select: string;
|
|
69
|
+
Last: string;
|
|
70
|
+
Start_Date: string;
|
|
71
|
+
End_Date: string;
|
|
72
|
+
Selected_Date: string;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export interface TextAreaProps extends FormProps<string | null> {
|
|
76
|
+
name?: string;
|
|
77
|
+
minRows: number;
|
|
78
|
+
maxRows: number;
|
|
79
|
+
maxLength?: number;
|
|
80
|
+
startDecorator?: JSX.Element;
|
|
81
|
+
endDecorator?: JSX.Element;
|
|
82
|
+
direction?: 'rtl' | 'ltr';
|
|
83
|
+
}
|
|
84
|
+
export interface PaginationProps extends BaseProps {
|
|
85
|
+
page: number;
|
|
86
|
+
setPage: React.Dispatch<React.SetStateAction<number>>;
|
|
87
|
+
count: number;
|
|
88
|
+
totalElement: number;
|
|
89
|
+
disabledExportExcelBtn?: boolean;
|
|
90
|
+
disabledExportPdfBtn?: boolean;
|
|
91
|
+
excelExport?: () => void;
|
|
92
|
+
showPageCount?: boolean;
|
|
93
|
+
showExportButtons?: boolean;
|
|
94
|
+
disabledNextButton?: boolean;
|
|
95
|
+
removeFirstLastButtons?: boolean;
|
|
96
|
+
pageSize?: number;
|
|
97
|
+
labels?: {
|
|
98
|
+
currentPage: string;
|
|
99
|
+
to: string;
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
export interface TablePaginationProps extends PaginationProps {
|
|
103
|
+
show: boolean;
|
|
104
|
+
}
|
|
105
|
+
export interface TableProps extends BaseProps {
|
|
106
|
+
headCells: HeadCellProps[];
|
|
107
|
+
data: Record<string, any>[];
|
|
108
|
+
sort: string;
|
|
109
|
+
setSort: (prev: string) => void;
|
|
110
|
+
currentHeadCell: string;
|
|
111
|
+
setCurrentHeadCell: (prev: string) => void;
|
|
112
|
+
fallback?: JSX.Element;
|
|
113
|
+
footer?: JSX.Element;
|
|
114
|
+
onRowClick?: (rowId: string | number) => void;
|
|
115
|
+
selectableRow?: boolean;
|
|
116
|
+
selectedRowId?: string;
|
|
117
|
+
rowDataId?: string;
|
|
118
|
+
paginationOptions?: TablePaginationProps;
|
|
119
|
+
}
|
|
120
|
+
export interface SwitchProps {
|
|
121
|
+
checked: boolean;
|
|
122
|
+
onClick: () => void;
|
|
123
|
+
label?: string;
|
|
124
|
+
disabled?: boolean;
|
|
125
|
+
labelPlacement?: PlacementType;
|
|
126
|
+
color?: SwitchColorType;
|
|
127
|
+
}
|
|
128
|
+
export interface AlertProps extends BaseProps {
|
|
129
|
+
severity?: AlertColorType;
|
|
130
|
+
color?: AlertColorType;
|
|
131
|
+
variant?: AlertVariantType;
|
|
132
|
+
onClose?: (() => void) | boolean;
|
|
133
|
+
action?: JSX.Element;
|
|
134
|
+
icon?: JSX.Element | boolean;
|
|
135
|
+
customStyle?: Record<string, string | number>;
|
|
136
|
+
children?: JSX.Element | string;
|
|
137
|
+
}
|
|
138
|
+
export interface AccordionProps extends BaseProps {
|
|
139
|
+
defaultExpanded?: boolean;
|
|
140
|
+
expanded?: boolean;
|
|
141
|
+
disabled?: boolean;
|
|
142
|
+
onChange?: () => void;
|
|
143
|
+
summary: JSX.Element | string;
|
|
144
|
+
children: JSX.Element | string;
|
|
145
|
+
}
|
|
146
|
+
export interface ButtonPropsType extends BaseProps {
|
|
147
|
+
children: JSX.Element | string | number;
|
|
148
|
+
type?: ButtonType;
|
|
149
|
+
variant?: ButtonVariantType;
|
|
150
|
+
color?: ButtonColorType;
|
|
151
|
+
size?: Size;
|
|
152
|
+
fullWidth?: boolean;
|
|
153
|
+
disabled?: boolean;
|
|
154
|
+
loading?: boolean;
|
|
155
|
+
startIcon?: JSX.Element;
|
|
156
|
+
endIcon?: JSX.Element;
|
|
157
|
+
onKeyDown?: (event: React.KeyboardEvent) => void;
|
|
158
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
159
|
+
active?: boolean;
|
|
160
|
+
}
|
|
161
|
+
export interface CardPropsType extends BaseProps {
|
|
162
|
+
header?: JSX.Element;
|
|
163
|
+
children?: JSX.Element | string;
|
|
164
|
+
footer?: JSX.Element;
|
|
165
|
+
rounded?: boolean;
|
|
166
|
+
}
|
|
167
|
+
export interface CheckboxPropsType extends BaseProps {
|
|
168
|
+
label: string;
|
|
169
|
+
labelPlacement?: PositionType;
|
|
170
|
+
handleCheckboxChange: () => void;
|
|
171
|
+
checked?: boolean;
|
|
172
|
+
size?: Size;
|
|
173
|
+
disabled?: boolean;
|
|
174
|
+
}
|
|
175
|
+
export interface ChipPropsType extends BaseProps {
|
|
176
|
+
color?: ChipColorType;
|
|
177
|
+
children?: JSX.Element | string;
|
|
178
|
+
size?: Size;
|
|
179
|
+
variant?: ChipVariantType;
|
|
180
|
+
clickable?: boolean;
|
|
181
|
+
onClick?: () => void;
|
|
182
|
+
onDelete?: (arg: string) => void;
|
|
183
|
+
}
|
|
184
|
+
export interface DialogPropsType extends BaseProps {
|
|
185
|
+
open: boolean;
|
|
186
|
+
onClose?: () => void;
|
|
187
|
+
header?: JSX.Element | string;
|
|
188
|
+
content?: JSX.Element | string;
|
|
189
|
+
footer?: JSX.Element | string;
|
|
190
|
+
position: string;
|
|
191
|
+
size?: string;
|
|
192
|
+
disableOverlay?: boolean;
|
|
193
|
+
disableBackdropClick?: boolean;
|
|
194
|
+
fullWidth?: boolean;
|
|
195
|
+
scroll?: string;
|
|
196
|
+
}
|
|
197
|
+
export interface HelperTextPropsType extends BaseProps {
|
|
198
|
+
type?: HelperTextColorType;
|
|
199
|
+
text: string;
|
|
200
|
+
}
|
|
201
|
+
export interface TooltipProps extends BaseProps {
|
|
202
|
+
children: JSX.Element | string;
|
|
203
|
+
content: JSX.Element | string;
|
|
204
|
+
}
|
|
205
|
+
export interface LabelPropsType extends BaseProps {
|
|
206
|
+
required?: boolean;
|
|
207
|
+
label: string | JSX.Element;
|
|
208
|
+
}
|
|
209
|
+
export interface OverlayPropsType extends BaseProps {
|
|
210
|
+
children?: JSX.Element;
|
|
211
|
+
open?: boolean;
|
|
212
|
+
}
|
|
213
|
+
export interface RadioPropsType extends BaseProps {
|
|
214
|
+
name?: string;
|
|
215
|
+
size?: Size;
|
|
216
|
+
checked: boolean;
|
|
217
|
+
onChange: () => void;
|
|
218
|
+
disabled?: boolean;
|
|
219
|
+
label?: string;
|
|
220
|
+
labelPosition?: PositionType;
|
|
221
|
+
color?: RadioColorType;
|
|
222
|
+
}
|
|
223
|
+
export interface RadioGroupProps extends BaseProps {
|
|
224
|
+
name: string;
|
|
225
|
+
options: RadioOption[];
|
|
226
|
+
defaultValue?: string;
|
|
227
|
+
onChange: (value: string) => void;
|
|
228
|
+
size?: Size;
|
|
229
|
+
labelPosition?: PositionType;
|
|
230
|
+
color?: RadioColorType;
|
|
231
|
+
label?: string;
|
|
232
|
+
checked?: any;
|
|
233
|
+
direction?: 'horizontal' | 'vertical';
|
|
234
|
+
gap?: string;
|
|
235
|
+
value?: string;
|
|
236
|
+
}
|
|
237
|
+
export interface SideDrawerPropsType extends BaseProps {
|
|
238
|
+
open: boolean;
|
|
239
|
+
setOpen: (open: boolean) => void;
|
|
240
|
+
children: JSX.Element | string;
|
|
241
|
+
onClickOutSide?: () => void;
|
|
242
|
+
width?: string;
|
|
243
|
+
anchor?: 'left' | 'right';
|
|
244
|
+
}
|
|
245
|
+
export interface Option {
|
|
246
|
+
value: string;
|
|
247
|
+
label: string | JSX.Element;
|
|
248
|
+
[key: string]: any;
|
|
249
|
+
}
|
|
250
|
+
export interface Group {
|
|
251
|
+
groupName?: string;
|
|
252
|
+
list: Option[];
|
|
253
|
+
}
|
|
254
|
+
export interface HeadCellProps {
|
|
255
|
+
id: string;
|
|
256
|
+
label: string;
|
|
257
|
+
classes?: string;
|
|
258
|
+
sortable?: boolean;
|
|
259
|
+
tooltip?: boolean;
|
|
260
|
+
width?: string;
|
|
261
|
+
minWidth?: string;
|
|
262
|
+
}
|
|
263
|
+
export interface IconProps {
|
|
264
|
+
height?: string | number;
|
|
265
|
+
width?: string | number;
|
|
266
|
+
[key: string]: any;
|
|
267
|
+
}
|
|
268
|
+
export {};
|
package/dist/types/jsx.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
// In a file named `jsx.d.ts` in your project's root or a suitable directory
|
|
2
|
-
declare namespace JSX {
|
|
3
|
-
interface IntrinsicElements {
|
|
4
|
-
// Define the types for HTML tags
|
|
5
|
-
div: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
6
|
-
span: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>;
|
|
7
|
-
|
|
8
|
-
// Define the types for custom components
|
|
9
|
-
SVG: React.SVGProps<SVGSVGElement>;
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
}
|
|
1
|
+
// In a file named `jsx.d.ts` in your project's root or a suitable directory
|
|
2
|
+
declare namespace JSX {
|
|
3
|
+
interface IntrinsicElements {
|
|
4
|
+
// Define the types for HTML tags
|
|
5
|
+
div: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
6
|
+
span: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>;
|
|
7
|
+
|
|
8
|
+
// Define the types for custom components
|
|
9
|
+
SVG: React.SVGProps<SVGSVGElement>;
|
|
10
|
+
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
13
|
|