react-asc 25.5.5 → 25.5.6
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/index.d.ts +1028 -0
- package/index.es.js +29 -40
- package/index.js +93 -111
- package/package.json +1 -1
- package/index.es.js.map +0 -1
- package/index.js.map +0 -1
package/index.d.ts
ADDED
|
@@ -0,0 +1,1028 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React$1, { ReactNode, Component, ComponentProps, ReactElement } from 'react';
|
|
3
|
+
|
|
4
|
+
declare enum COLOR {
|
|
5
|
+
primary = "primary",
|
|
6
|
+
accent = "accent",
|
|
7
|
+
secondary = "secondary",
|
|
8
|
+
danger = "danger",
|
|
9
|
+
light = "light",
|
|
10
|
+
dark = "dark"
|
|
11
|
+
}
|
|
12
|
+
declare enum VARIANT {
|
|
13
|
+
contained = "contained",
|
|
14
|
+
outline = "outline",
|
|
15
|
+
text = "text"
|
|
16
|
+
}
|
|
17
|
+
declare enum SIZE {
|
|
18
|
+
sm = "sm",
|
|
19
|
+
md = "md",
|
|
20
|
+
lg = "lg"
|
|
21
|
+
}
|
|
22
|
+
declare enum POSITION {
|
|
23
|
+
right = "right",
|
|
24
|
+
left = "left"
|
|
25
|
+
}
|
|
26
|
+
declare enum STATUS {
|
|
27
|
+
HOVERED = "hovered",
|
|
28
|
+
NORMAL = "normal"
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface IAlertProps extends React$1.ComponentProps<'div'> {
|
|
32
|
+
children?: ReactNode;
|
|
33
|
+
className?: string;
|
|
34
|
+
variant?: VARIANT;
|
|
35
|
+
color?: COLOR;
|
|
36
|
+
shadow?: boolean | SIZE.sm | SIZE.md | SIZE.lg;
|
|
37
|
+
}
|
|
38
|
+
declare const Alert: (props: IAlertProps) => JSX.Element;
|
|
39
|
+
|
|
40
|
+
interface IAppBarProps extends React$1.ComponentProps<'nav'> {
|
|
41
|
+
children?: ReactNode;
|
|
42
|
+
className?: string;
|
|
43
|
+
color?: COLOR;
|
|
44
|
+
shadow?: boolean | SIZE.sm | SIZE.md | SIZE.lg;
|
|
45
|
+
}
|
|
46
|
+
declare const AppBar: (props: IAppBarProps) => JSX.Element;
|
|
47
|
+
|
|
48
|
+
interface IAppBarTitleProps extends React$1.ComponentProps<'div'> {
|
|
49
|
+
children?: ReactNode;
|
|
50
|
+
}
|
|
51
|
+
declare const AppBarTitle: (props: IAppBarTitleProps) => JSX.Element;
|
|
52
|
+
|
|
53
|
+
interface HtmlBaseProps {
|
|
54
|
+
className?: string;
|
|
55
|
+
id?: string;
|
|
56
|
+
name?: string;
|
|
57
|
+
autoFocus?: boolean;
|
|
58
|
+
readOnly?: boolean;
|
|
59
|
+
disabled?: boolean;
|
|
60
|
+
}
|
|
61
|
+
interface HtmlInputProps extends HtmlBaseProps {
|
|
62
|
+
onBlur?: (val: React.FocusEvent<HTMLInputElement>) => void;
|
|
63
|
+
onChange?: (val: React.FocusEvent<HTMLInputElement>) => void;
|
|
64
|
+
placeholder?: string;
|
|
65
|
+
}
|
|
66
|
+
interface ISelectOption {
|
|
67
|
+
value: string;
|
|
68
|
+
label?: React.ReactNode;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
interface IAutoCompleteProps {
|
|
72
|
+
id?: string;
|
|
73
|
+
name?: string;
|
|
74
|
+
className?: string;
|
|
75
|
+
options?: ISelectOption[];
|
|
76
|
+
value?: string;
|
|
77
|
+
openOnFocus?: boolean;
|
|
78
|
+
disabled?: boolean;
|
|
79
|
+
placeholder?: string;
|
|
80
|
+
readOnly?: boolean;
|
|
81
|
+
debounce?: number;
|
|
82
|
+
showClearButton?: boolean;
|
|
83
|
+
onSelect?: (val: ISelectOption) => void;
|
|
84
|
+
onChange?: (val: string | undefined) => void;
|
|
85
|
+
}
|
|
86
|
+
declare const AutoComplete: (props: IAutoCompleteProps) => JSX.Element;
|
|
87
|
+
|
|
88
|
+
interface IBackdropProps extends React$1.ComponentProps<'div'> {
|
|
89
|
+
target?: HTMLElement;
|
|
90
|
+
isTransparent?: boolean;
|
|
91
|
+
}
|
|
92
|
+
declare const Backdrop: (props: IBackdropProps) => JSX.Element;
|
|
93
|
+
|
|
94
|
+
interface IBadgeProps extends React$1.ComponentProps<'div'> {
|
|
95
|
+
color?: COLOR;
|
|
96
|
+
content?: React$1.ReactNode;
|
|
97
|
+
}
|
|
98
|
+
declare const Badge: (props: IBadgeProps) => JSX.Element;
|
|
99
|
+
|
|
100
|
+
interface IBreadcrumbProps extends React$1.ComponentProps<'nav'> {
|
|
101
|
+
children?: ReactNode;
|
|
102
|
+
}
|
|
103
|
+
declare const Breadcrumb: (props: IBreadcrumbProps) => JSX.Element;
|
|
104
|
+
|
|
105
|
+
interface IBreadcrumbItemProps extends React$1.ComponentProps<'li'> {
|
|
106
|
+
isActive?: boolean;
|
|
107
|
+
path?: string;
|
|
108
|
+
}
|
|
109
|
+
declare const BreadcrumbItem: (props: IBreadcrumbItemProps) => JSX.Element;
|
|
110
|
+
|
|
111
|
+
interface IButtonProps extends React$1.ComponentProps<'button'> {
|
|
112
|
+
color?: COLOR;
|
|
113
|
+
isActive?: boolean;
|
|
114
|
+
isRounded?: boolean;
|
|
115
|
+
variant?: VARIANT;
|
|
116
|
+
startIcon?: React$1.ReactNode;
|
|
117
|
+
endIcon?: React$1.ReactNode;
|
|
118
|
+
shadow?: boolean;
|
|
119
|
+
block?: boolean;
|
|
120
|
+
}
|
|
121
|
+
declare const Button: React$1.FunctionComponent<IButtonProps>;
|
|
122
|
+
|
|
123
|
+
interface IButtonContext {
|
|
124
|
+
color: COLOR | null;
|
|
125
|
+
}
|
|
126
|
+
declare const ButtonContext: React.Context<IButtonContext>;
|
|
127
|
+
declare const useButtonContext: () => IButtonContext;
|
|
128
|
+
|
|
129
|
+
interface IButtonGroupProps extends React$1.ComponentProps<'div'> {
|
|
130
|
+
color?: COLOR;
|
|
131
|
+
}
|
|
132
|
+
declare const ButtonGroup: (props: IButtonGroupProps) => JSX.Element;
|
|
133
|
+
|
|
134
|
+
interface ICardProps extends React$1.ComponentProps<'div'> {
|
|
135
|
+
shadow?: boolean;
|
|
136
|
+
}
|
|
137
|
+
declare const Card: (props: ICardProps) => JSX.Element;
|
|
138
|
+
|
|
139
|
+
declare const CardBody: (props: React$1.ComponentProps<'div'>) => JSX.Element;
|
|
140
|
+
|
|
141
|
+
declare const CardFooter: (props: React$1.ComponentProps<'div'>) => JSX.Element;
|
|
142
|
+
|
|
143
|
+
declare const CardSubtitle: (props: React$1.ComponentProps<'div'>) => JSX.Element;
|
|
144
|
+
|
|
145
|
+
declare const CardText: (props: React$1.ComponentProps<'p'>) => JSX.Element;
|
|
146
|
+
|
|
147
|
+
interface ICardTitleProps extends React$1.ComponentProps<'div'> {
|
|
148
|
+
as?: any;
|
|
149
|
+
}
|
|
150
|
+
declare const CardTitle: (props: ICardTitleProps) => JSX.Element;
|
|
151
|
+
|
|
152
|
+
declare const CardImage: (props: React$1.ComponentProps<'img'>) => JSX.Element;
|
|
153
|
+
|
|
154
|
+
interface ICheckboxProps extends React$1.ComponentProps<'input'> {
|
|
155
|
+
label?: string;
|
|
156
|
+
value?: string;
|
|
157
|
+
onKeyDown?: (event: React$1.KeyboardEvent) => void;
|
|
158
|
+
}
|
|
159
|
+
declare const Checkbox: (props: ICheckboxProps) => JSX.Element;
|
|
160
|
+
|
|
161
|
+
interface IChipProps extends React$1.ComponentProps<'div'> {
|
|
162
|
+
color?: COLOR;
|
|
163
|
+
shadow?: boolean;
|
|
164
|
+
onClick?: (e: React$1.MouseEvent<Element>) => void;
|
|
165
|
+
isDeletable?: boolean;
|
|
166
|
+
onDelete?: (e: React$1.MouseEvent<Element>) => void;
|
|
167
|
+
deleteIcon?: JSX.Element;
|
|
168
|
+
}
|
|
169
|
+
declare const Chip: (props: IChipProps) => JSX.Element;
|
|
170
|
+
|
|
171
|
+
interface IConditionalWrapperProps {
|
|
172
|
+
condition: boolean;
|
|
173
|
+
wrapper: (children: React$1.ReactNode) => JSX.Element;
|
|
174
|
+
children: any;
|
|
175
|
+
}
|
|
176
|
+
declare const ConditionalWrapper: ({ condition, wrapper, children }: IConditionalWrapperProps) => JSX.Element;
|
|
177
|
+
|
|
178
|
+
interface ICssTransitionProps {
|
|
179
|
+
className: string;
|
|
180
|
+
children: React$1.ReactNode;
|
|
181
|
+
show: boolean;
|
|
182
|
+
}
|
|
183
|
+
declare const CssTransition: (props: ICssTransitionProps) => JSX.Element;
|
|
184
|
+
|
|
185
|
+
interface IDatePickerProps {
|
|
186
|
+
value?: Date;
|
|
187
|
+
selectRange?: boolean;
|
|
188
|
+
minDate?: Date;
|
|
189
|
+
maxDate?: Date;
|
|
190
|
+
onChange?: (val: Date) => void;
|
|
191
|
+
}
|
|
192
|
+
declare const DatePicker: (props: IDatePickerProps) => JSX.Element;
|
|
193
|
+
|
|
194
|
+
declare enum DATEMODE {
|
|
195
|
+
YEAR = 0,
|
|
196
|
+
MONTH = 1,
|
|
197
|
+
DAY = 2
|
|
198
|
+
}
|
|
199
|
+
interface IDateSelectProps {
|
|
200
|
+
value?: Date;
|
|
201
|
+
className?: string;
|
|
202
|
+
disabled?: boolean;
|
|
203
|
+
yearConfig?: {
|
|
204
|
+
from?: number;
|
|
205
|
+
to?: number;
|
|
206
|
+
};
|
|
207
|
+
onChange?: (val: Date) => void;
|
|
208
|
+
}
|
|
209
|
+
declare const DateSelect: (props: IDateSelectProps) => JSX.Element;
|
|
210
|
+
|
|
211
|
+
interface IYearProps {
|
|
212
|
+
from?: number;
|
|
213
|
+
to?: number;
|
|
214
|
+
value?: number;
|
|
215
|
+
className?: string;
|
|
216
|
+
id?: string;
|
|
217
|
+
name?: string;
|
|
218
|
+
disabled?: boolean;
|
|
219
|
+
onChange?: (val: number) => void;
|
|
220
|
+
}
|
|
221
|
+
declare const YearSelect: (props: IYearProps) => JSX.Element;
|
|
222
|
+
|
|
223
|
+
interface IDaySelectProps {
|
|
224
|
+
day?: number;
|
|
225
|
+
month?: number;
|
|
226
|
+
year?: number;
|
|
227
|
+
className?: string;
|
|
228
|
+
id?: string;
|
|
229
|
+
name?: string;
|
|
230
|
+
disabled?: boolean;
|
|
231
|
+
onChange?: (val: number) => void;
|
|
232
|
+
}
|
|
233
|
+
declare const DaySelect: (props: IDaySelectProps) => JSX.Element;
|
|
234
|
+
|
|
235
|
+
interface IMonthProps {
|
|
236
|
+
value?: number;
|
|
237
|
+
className?: string;
|
|
238
|
+
id?: string;
|
|
239
|
+
name?: string;
|
|
240
|
+
disabled?: boolean;
|
|
241
|
+
onChange?: (val: number) => void;
|
|
242
|
+
}
|
|
243
|
+
declare const MonthSelect: (props: IMonthProps) => JSX.Element;
|
|
244
|
+
|
|
245
|
+
interface IDrawerProps extends React$1.ComponentProps<'div'> {
|
|
246
|
+
position?: 'left' | 'right';
|
|
247
|
+
shadow?: boolean;
|
|
248
|
+
onClickBackdrop?: () => void;
|
|
249
|
+
permanent?: boolean;
|
|
250
|
+
target?: HTMLElement;
|
|
251
|
+
}
|
|
252
|
+
declare const Drawer: (props: IDrawerProps) => JSX.Element;
|
|
253
|
+
|
|
254
|
+
interface IExpansionPanelProps {
|
|
255
|
+
header: ReactNode;
|
|
256
|
+
children: ReactNode;
|
|
257
|
+
isExpanded?: boolean;
|
|
258
|
+
shadow?: boolean;
|
|
259
|
+
onChange?: (event: React$1.MouseEvent, isExpanded: boolean) => void;
|
|
260
|
+
}
|
|
261
|
+
declare const ExpansionPanel: (props: IExpansionPanelProps) => JSX.Element;
|
|
262
|
+
|
|
263
|
+
interface IExpansionPanelHeaderProps {
|
|
264
|
+
onClick?: (event: React$1.MouseEvent) => void;
|
|
265
|
+
children?: ReactNode;
|
|
266
|
+
isExpanded: boolean;
|
|
267
|
+
}
|
|
268
|
+
declare const ExpansionPanelHeader: (props: IExpansionPanelHeaderProps) => JSX.Element;
|
|
269
|
+
|
|
270
|
+
interface IExpansionPanelContentProps {
|
|
271
|
+
children?: ReactNode;
|
|
272
|
+
}
|
|
273
|
+
declare const ExpansionPanelContent: ({ children }: IExpansionPanelContentProps) => JSX.Element;
|
|
274
|
+
|
|
275
|
+
interface IFileInputProps extends React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> {
|
|
276
|
+
deletable?: boolean;
|
|
277
|
+
}
|
|
278
|
+
declare const FileInput: (props: IFileInputProps) => JSX.Element;
|
|
279
|
+
|
|
280
|
+
interface IFloatingActionButtonProps extends React$1.DetailedHTMLProps<React$1.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
|
|
281
|
+
icon?: React$1.ReactNode;
|
|
282
|
+
color?: COLOR;
|
|
283
|
+
size?: SIZE;
|
|
284
|
+
fixed?: boolean;
|
|
285
|
+
isActive?: boolean;
|
|
286
|
+
disabled?: boolean;
|
|
287
|
+
position?: 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
|
|
288
|
+
onClick?: (e: React$1.MouseEvent) => void;
|
|
289
|
+
}
|
|
290
|
+
declare const FloatingActionButton: (props: IFloatingActionButtonProps) => JSX.Element;
|
|
291
|
+
|
|
292
|
+
declare type IFormControlType = 'text' | 'textarea' | 'email' | 'number' | 'checkbox' | 'checkboxgroup' | 'radio' | 'select' | 'password' | 'color' | 'time' | 'file' | 'date' | 'datetime-local' | 'autocomplete';
|
|
293
|
+
declare type IFormValidatorType = 'required' | 'email' | 'match';
|
|
294
|
+
|
|
295
|
+
declare class FormControl {
|
|
296
|
+
value: any;
|
|
297
|
+
validators: string[];
|
|
298
|
+
type: IFormControlType;
|
|
299
|
+
config: IFormControlConfig;
|
|
300
|
+
constructor(value: any, validators: string[], type: IFormControlType, config: IFormControlConfig);
|
|
301
|
+
errors: IFormInputError[];
|
|
302
|
+
isValid: boolean;
|
|
303
|
+
isDirty: boolean;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
interface IControls {
|
|
307
|
+
[key: string]: FormControl;
|
|
308
|
+
}
|
|
309
|
+
interface IFormTextAreaOptions {
|
|
310
|
+
rows?: number;
|
|
311
|
+
resize?: boolean;
|
|
312
|
+
}
|
|
313
|
+
interface IFormSelectOptions {
|
|
314
|
+
multiple?: boolean;
|
|
315
|
+
}
|
|
316
|
+
interface IFormAutoCompleteOptions {
|
|
317
|
+
openOnFocus?: boolean;
|
|
318
|
+
}
|
|
319
|
+
interface IFormInputError {
|
|
320
|
+
validator: string;
|
|
321
|
+
message: string;
|
|
322
|
+
}
|
|
323
|
+
interface IFormInputOptions {
|
|
324
|
+
id?: string;
|
|
325
|
+
value: string;
|
|
326
|
+
label?: React.ReactNode;
|
|
327
|
+
}
|
|
328
|
+
interface IFormControlConfig {
|
|
329
|
+
label: string;
|
|
330
|
+
placeholder?: string;
|
|
331
|
+
formControlClassName?: string;
|
|
332
|
+
formGroupClassName?: string;
|
|
333
|
+
labelClassName?: string;
|
|
334
|
+
labelPosition?: string;
|
|
335
|
+
autoFocus?: boolean;
|
|
336
|
+
hint?: string;
|
|
337
|
+
disabled?: boolean;
|
|
338
|
+
readonly?: boolean;
|
|
339
|
+
options?: IFormInputOptions[];
|
|
340
|
+
textareaOptions?: IFormTextAreaOptions;
|
|
341
|
+
selectOptions?: IFormSelectOptions;
|
|
342
|
+
autoCompleteOptions?: IFormAutoCompleteOptions;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
interface IFormProps {
|
|
346
|
+
className?: string;
|
|
347
|
+
controls: IControls;
|
|
348
|
+
validateOnBlur?: boolean;
|
|
349
|
+
onSubmit?: (values: any) => void;
|
|
350
|
+
onChange?: (values: any) => void;
|
|
351
|
+
submitOnEnter?: boolean;
|
|
352
|
+
}
|
|
353
|
+
interface IFormState {
|
|
354
|
+
controls: IControls | undefined;
|
|
355
|
+
isValid: boolean;
|
|
356
|
+
isSubmitted: boolean;
|
|
357
|
+
isChanged: boolean;
|
|
358
|
+
submitOnEnter?: boolean;
|
|
359
|
+
}
|
|
360
|
+
declare class Form extends Component<IFormProps, IFormState> {
|
|
361
|
+
constructor(props: IFormProps);
|
|
362
|
+
getCssClasses(): string;
|
|
363
|
+
static getDerivedStateFromProps(nextProps: IFormProps, state: IFormState): {
|
|
364
|
+
controls: IControls;
|
|
365
|
+
} | null;
|
|
366
|
+
myForm: React$1.RefObject<HTMLFormElement>;
|
|
367
|
+
handleChange(): void;
|
|
368
|
+
private validateField;
|
|
369
|
+
private handleInputChange;
|
|
370
|
+
private handleOnBlur;
|
|
371
|
+
private isRequired;
|
|
372
|
+
private isInvalid;
|
|
373
|
+
getControl(name: string): FormControl;
|
|
374
|
+
private renderLabel;
|
|
375
|
+
handleFormSubmit(): void;
|
|
376
|
+
handleFormReset(): void;
|
|
377
|
+
handleOnKeyDown(e: React$1.KeyboardEvent<HTMLInputElement | undefined>): void;
|
|
378
|
+
destroy(): void;
|
|
379
|
+
getFormGroupCssClass(fieldKey: string): string | undefined;
|
|
380
|
+
render(): JSX.Element;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
interface IFormErrorProps {
|
|
384
|
+
className?: string;
|
|
385
|
+
errors?: IFormInputError[];
|
|
386
|
+
}
|
|
387
|
+
declare const FormError: (props: IFormErrorProps) => JSX.Element;
|
|
388
|
+
|
|
389
|
+
interface IFormGroupProps {
|
|
390
|
+
children?: React$1.ReactNode;
|
|
391
|
+
className?: string;
|
|
392
|
+
}
|
|
393
|
+
declare const FormGroup: (props: IFormGroupProps) => JSX.Element;
|
|
394
|
+
|
|
395
|
+
declare const FormHint: (props: React$1.ComponentProps<'small'>) => JSX.Element;
|
|
396
|
+
|
|
397
|
+
interface IFormInputEvent {
|
|
398
|
+
value: any;
|
|
399
|
+
type?: string;
|
|
400
|
+
name?: string;
|
|
401
|
+
}
|
|
402
|
+
interface IFormInputProps {
|
|
403
|
+
value: any;
|
|
404
|
+
name: string;
|
|
405
|
+
type: IFormControlType;
|
|
406
|
+
placeholder?: string;
|
|
407
|
+
className?: string;
|
|
408
|
+
disabled?: boolean;
|
|
409
|
+
readonly?: boolean;
|
|
410
|
+
isValid?: boolean;
|
|
411
|
+
autoFocus?: boolean;
|
|
412
|
+
options?: IFormInputOptions[];
|
|
413
|
+
textareaOptions?: IFormTextAreaOptions;
|
|
414
|
+
selectOptions?: IFormSelectOptions;
|
|
415
|
+
autoCompleteOptions?: IFormAutoCompleteOptions;
|
|
416
|
+
label?: string;
|
|
417
|
+
onInput?: (e: IFormInputEvent) => void;
|
|
418
|
+
onChange?: (e: IFormInputEvent) => void;
|
|
419
|
+
onBlur?: React$1.FocusEventHandler<HTMLInputElement> | undefined;
|
|
420
|
+
onKeyDown?: React$1.KeyboardEventHandler<HTMLInputElement | undefined>;
|
|
421
|
+
}
|
|
422
|
+
declare const FormInput: (props: IFormInputProps) => JSX.Element;
|
|
423
|
+
|
|
424
|
+
declare const FormLabel: ({ children, className, htmlFor, ...rest }: React$1.ComponentProps<'label'>) => JSX.Element;
|
|
425
|
+
|
|
426
|
+
declare const EmailValidator: (value: string) => boolean;
|
|
427
|
+
|
|
428
|
+
declare const IsEmptyValidator: (value: string) => boolean;
|
|
429
|
+
|
|
430
|
+
declare const IsEqualValidator: (valueA: unknown, valueB: unknown) => boolean;
|
|
431
|
+
|
|
432
|
+
declare const MaxValidator: (val: string, valueB: number) => boolean;
|
|
433
|
+
|
|
434
|
+
declare const MinValidator: (val: string, minLength: number) => boolean;
|
|
435
|
+
|
|
436
|
+
interface IColProps extends React$1.ComponentProps<'div'> {
|
|
437
|
+
xs?: number;
|
|
438
|
+
sm?: number;
|
|
439
|
+
md?: number;
|
|
440
|
+
lg?: number;
|
|
441
|
+
xl?: number;
|
|
442
|
+
}
|
|
443
|
+
declare const Column: (props: IColProps) => JSX.Element;
|
|
444
|
+
|
|
445
|
+
interface IContainerProps extends React$1.ComponentProps<'div'> {
|
|
446
|
+
direction?: 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
447
|
+
}
|
|
448
|
+
declare const Row: ({ children, direction, className, ...rest }: IContainerProps) => JSX.Element;
|
|
449
|
+
|
|
450
|
+
interface IIconProps extends ComponentProps<'div'> {
|
|
451
|
+
iconColor?: COLOR;
|
|
452
|
+
children?: React$1.ReactNode;
|
|
453
|
+
}
|
|
454
|
+
declare const Icon: (props: IIconProps) => JSX.Element;
|
|
455
|
+
|
|
456
|
+
interface IIconButtonProps extends React$1.ComponentProps<'button'> {
|
|
457
|
+
icon?: React$1.ReactNode;
|
|
458
|
+
color?: COLOR;
|
|
459
|
+
size?: SIZE;
|
|
460
|
+
isActive?: boolean;
|
|
461
|
+
variant?: VARIANT;
|
|
462
|
+
shadow?: boolean;
|
|
463
|
+
}
|
|
464
|
+
declare const IconButton: (props: IIconButtonProps) => JSX.Element;
|
|
465
|
+
|
|
466
|
+
declare const Link: (props: React$1.ComponentProps<'a'>) => JSX.Element;
|
|
467
|
+
|
|
468
|
+
interface IListProps extends React$1.ComponentProps<'ul'> {
|
|
469
|
+
isFlush?: boolean;
|
|
470
|
+
}
|
|
471
|
+
declare const List: (props: IListProps) => JSX.Element;
|
|
472
|
+
|
|
473
|
+
interface IListItemProps extends React$1.ComponentProps<'li'> {
|
|
474
|
+
color?: COLOR;
|
|
475
|
+
active?: boolean;
|
|
476
|
+
isHoverable?: boolean;
|
|
477
|
+
disabled?: boolean;
|
|
478
|
+
}
|
|
479
|
+
declare const ListItem: (props: IListItemProps) => JSX.Element;
|
|
480
|
+
|
|
481
|
+
interface IListItemAvatarProps extends React$1.ComponentProps<'div'> {
|
|
482
|
+
avatar: React$1.ReactNode;
|
|
483
|
+
}
|
|
484
|
+
declare const ListItemAvatar: ({ avatar, ...rest }: IListItemAvatarProps) => JSX.Element;
|
|
485
|
+
|
|
486
|
+
interface IListItemIconProps extends React$1.ComponentProps<'div'> {
|
|
487
|
+
icon: React$1.ReactNode;
|
|
488
|
+
}
|
|
489
|
+
declare const ListItemIcon: ({ icon, ...rest }: IListItemIconProps) => JSX.Element;
|
|
490
|
+
|
|
491
|
+
declare const ListItemAction: ({ children, onClick, ...rest }: React$1.ComponentProps<'div'>) => JSX.Element;
|
|
492
|
+
|
|
493
|
+
interface IListItemTextProps extends React$1.ComponentProps<'div'> {
|
|
494
|
+
primary: ReactNode;
|
|
495
|
+
secondary?: ReactNode;
|
|
496
|
+
}
|
|
497
|
+
declare const ListItemText: ({ primary, secondary, ...rest }: IListItemTextProps) => JSX.Element;
|
|
498
|
+
|
|
499
|
+
declare const LoadingIndicator: ({ ...rest }: React$1.ComponentProps<'div'>) => JSX.Element;
|
|
500
|
+
|
|
501
|
+
interface ILoadingIndicatorContainerProps {
|
|
502
|
+
children: React$1.ReactNode;
|
|
503
|
+
isFixed?: boolean;
|
|
504
|
+
}
|
|
505
|
+
declare const LoadingIndicatorContainer: ({ children, isFixed }: ILoadingIndicatorContainerProps) => JSX.Element;
|
|
506
|
+
|
|
507
|
+
interface ILoadingIndicatorService {
|
|
508
|
+
show(message: string): void;
|
|
509
|
+
}
|
|
510
|
+
declare class LoadingIndicatorService implements ILoadingIndicatorService {
|
|
511
|
+
private container;
|
|
512
|
+
private handler;
|
|
513
|
+
private root;
|
|
514
|
+
show(): void;
|
|
515
|
+
hide(): void;
|
|
516
|
+
}
|
|
517
|
+
declare const loadingIndicatorService: LoadingIndicatorService;
|
|
518
|
+
|
|
519
|
+
declare type MenuPosition = 'right' | 'left';
|
|
520
|
+
|
|
521
|
+
interface IMenuProps extends React$1.DetailedHTMLProps<React$1.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
522
|
+
toggle?: ReactElement;
|
|
523
|
+
open?: boolean;
|
|
524
|
+
children?: ReactElement<IListItemProps> | ReactElement<IListItemProps>[];
|
|
525
|
+
menuPosition?: MenuPosition;
|
|
526
|
+
onClickBackdrop?: () => void;
|
|
527
|
+
}
|
|
528
|
+
declare const Menu: (props: IMenuProps) => JSX.Element;
|
|
529
|
+
|
|
530
|
+
interface IMenuBodyProps {
|
|
531
|
+
children?: ReactElement<IListItemProps> | ReactElement<IListItemProps>[];
|
|
532
|
+
className?: string;
|
|
533
|
+
menuPosition?: MenuPosition;
|
|
534
|
+
parentRef: React$1.RefObject<HTMLDivElement>;
|
|
535
|
+
shadow?: boolean;
|
|
536
|
+
onClickBackdrop?: () => void;
|
|
537
|
+
}
|
|
538
|
+
declare const MenuBody: (props: IMenuBodyProps) => JSX.Element;
|
|
539
|
+
|
|
540
|
+
declare const MenuItem: (props: IListItemProps) => JSX.Element;
|
|
541
|
+
|
|
542
|
+
interface IMenuToggleProps {
|
|
543
|
+
children?: ReactNode;
|
|
544
|
+
}
|
|
545
|
+
declare const MenuToggle: ({ children }: IMenuToggleProps) => ReactNode;
|
|
546
|
+
|
|
547
|
+
declare const MenuDivider: () => JSX.Element;
|
|
548
|
+
|
|
549
|
+
interface IModalProps$1 {
|
|
550
|
+
target?: HTMLElement;
|
|
551
|
+
className?: string;
|
|
552
|
+
children?: ReactNode;
|
|
553
|
+
header?: string | ReactElement;
|
|
554
|
+
footer?: string | ReactElement;
|
|
555
|
+
onHeaderCloseClick?: () => void;
|
|
556
|
+
onBackdropClick?: () => void;
|
|
557
|
+
isDismissable?: boolean;
|
|
558
|
+
fullScreen?: boolean;
|
|
559
|
+
size?: SIZE;
|
|
560
|
+
}
|
|
561
|
+
declare const Modal: (props: IModalProps$1) => JSX.Element;
|
|
562
|
+
|
|
563
|
+
interface IModalBodyProps {
|
|
564
|
+
children?: ReactNode;
|
|
565
|
+
}
|
|
566
|
+
declare const ModalBody: ({ children }: IModalBodyProps) => JSX.Element;
|
|
567
|
+
|
|
568
|
+
interface IModalFooterProps extends React$1.ComponentProps<'div'> {
|
|
569
|
+
shadow?: boolean;
|
|
570
|
+
}
|
|
571
|
+
declare const ModalFooter: (props: IModalFooterProps) => JSX.Element;
|
|
572
|
+
|
|
573
|
+
interface IModalHeaderProps extends React$1.ComponentProps<'div'> {
|
|
574
|
+
onClose?: () => void;
|
|
575
|
+
isDismissable?: boolean;
|
|
576
|
+
shadow?: boolean;
|
|
577
|
+
}
|
|
578
|
+
declare const ModalHeader: (props: IModalHeaderProps) => JSX.Element;
|
|
579
|
+
|
|
580
|
+
declare enum MODALTYPE {
|
|
581
|
+
BASIC = "BASIC",
|
|
582
|
+
FORM = "FORM"
|
|
583
|
+
}
|
|
584
|
+
declare enum MODALBUTTONTYPE {
|
|
585
|
+
OK = "OK",
|
|
586
|
+
CANCEL = "CANCEL",
|
|
587
|
+
RESET = "RESET",
|
|
588
|
+
DEFAULT = "DEFAULT"
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
interface IModalButton {
|
|
592
|
+
label: string;
|
|
593
|
+
variant?: VARIANT;
|
|
594
|
+
color?: COLOR;
|
|
595
|
+
handler?: () => void;
|
|
596
|
+
autoFocus?: boolean;
|
|
597
|
+
type?: MODALBUTTONTYPE;
|
|
598
|
+
focus?: boolean;
|
|
599
|
+
shadow?: boolean;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
interface IModalService {
|
|
603
|
+
show(title: string, description: string | ReactElement, options?: IModalOptions): Promise<void>;
|
|
604
|
+
}
|
|
605
|
+
interface IModalOptions {
|
|
606
|
+
isDismissable?: boolean;
|
|
607
|
+
buttons?: IModalButton[];
|
|
608
|
+
fullScreen?: boolean;
|
|
609
|
+
size?: SIZE;
|
|
610
|
+
}
|
|
611
|
+
declare class ModalService implements IModalService {
|
|
612
|
+
private container;
|
|
613
|
+
private root;
|
|
614
|
+
show(title: string, description: string | ReactElement, options?: IModalOptions): Promise<void>;
|
|
615
|
+
showForm<T>(title: string, formControls: IControls, options?: IModalOptions): Promise<T>;
|
|
616
|
+
private hide;
|
|
617
|
+
}
|
|
618
|
+
declare const modalService: ModalService;
|
|
619
|
+
|
|
620
|
+
interface IModalProps {
|
|
621
|
+
title?: string;
|
|
622
|
+
description?: string | ReactElement;
|
|
623
|
+
formControls?: IControls;
|
|
624
|
+
modalType?: MODALTYPE;
|
|
625
|
+
onOk: <T>(values?: T) => void;
|
|
626
|
+
onChange?: <T>(values?: T) => void;
|
|
627
|
+
onCancel?: () => void;
|
|
628
|
+
onBackdropClick?: () => void;
|
|
629
|
+
isDismissable?: boolean;
|
|
630
|
+
buttons?: IModalButton[];
|
|
631
|
+
fullScreen?: boolean;
|
|
632
|
+
size?: SIZE;
|
|
633
|
+
}
|
|
634
|
+
declare const GlobalModal: ({ title, description, formControls, onOk, onChange, onCancel, onBackdropClick, isDismissable, buttons, size, fullScreen }: IModalProps) => JSX.Element;
|
|
635
|
+
|
|
636
|
+
interface INumberSelectProps {
|
|
637
|
+
value?: number;
|
|
638
|
+
from?: number;
|
|
639
|
+
to?: number;
|
|
640
|
+
className?: string;
|
|
641
|
+
id?: string;
|
|
642
|
+
name?: string;
|
|
643
|
+
disabled?: boolean;
|
|
644
|
+
onChange?: (val: number) => void;
|
|
645
|
+
}
|
|
646
|
+
declare const NumberSelect: (props: INumberSelectProps) => JSX.Element;
|
|
647
|
+
|
|
648
|
+
interface IPortalProps {
|
|
649
|
+
children: React.ReactNode;
|
|
650
|
+
target?: HTMLElement;
|
|
651
|
+
className?: string;
|
|
652
|
+
}
|
|
653
|
+
declare const Portal: ({ children, target, className }: IPortalProps) => JSX.Element;
|
|
654
|
+
|
|
655
|
+
interface IProgressBarProps extends React$1.ComponentProps<'div'> {
|
|
656
|
+
className?: string;
|
|
657
|
+
color?: COLOR;
|
|
658
|
+
value?: number;
|
|
659
|
+
indeterminate?: boolean;
|
|
660
|
+
}
|
|
661
|
+
declare const ProgressBar: (props: IProgressBarProps) => JSX.Element;
|
|
662
|
+
|
|
663
|
+
interface ISelectProps {
|
|
664
|
+
id?: string;
|
|
665
|
+
name?: string;
|
|
666
|
+
className?: string;
|
|
667
|
+
options?: ISelectOption[];
|
|
668
|
+
value?: string | string[];
|
|
669
|
+
multiple?: boolean;
|
|
670
|
+
multipleMaxCountItems?: number;
|
|
671
|
+
disabled?: boolean;
|
|
672
|
+
readOnly?: boolean;
|
|
673
|
+
onChange?: (val: string | string[]) => void;
|
|
674
|
+
onKeyDown?: (event: React$1.KeyboardEvent<HTMLDivElement>) => void;
|
|
675
|
+
}
|
|
676
|
+
declare const Select: (props: ISelectProps) => JSX.Element;
|
|
677
|
+
|
|
678
|
+
interface ISidebarItem {
|
|
679
|
+
id: string;
|
|
680
|
+
path: string;
|
|
681
|
+
label: string;
|
|
682
|
+
icon?: string;
|
|
683
|
+
items?: ISidebarItem[];
|
|
684
|
+
isCollapsible?: boolean;
|
|
685
|
+
isCollapsed?: boolean;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
interface ISidebarProps extends React$1.ComponentProps<'nav'> {
|
|
689
|
+
items: ISidebarItem[];
|
|
690
|
+
currentUrl: string;
|
|
691
|
+
onItemClicked: (path: string) => void;
|
|
692
|
+
}
|
|
693
|
+
declare const Sidebar: (props: ISidebarProps) => JSX.Element;
|
|
694
|
+
|
|
695
|
+
interface ISkeletonAvatarProps extends React$1.ComponentProps<'div'> {
|
|
696
|
+
indeterminate?: boolean;
|
|
697
|
+
}
|
|
698
|
+
declare const SkeletonAvatar: (props: ISkeletonAvatarProps) => JSX.Element;
|
|
699
|
+
|
|
700
|
+
interface ISkeletonTextProps extends React$1.ComponentProps<'div'> {
|
|
701
|
+
indeterminate?: boolean;
|
|
702
|
+
}
|
|
703
|
+
declare const SkeletonText: (props: ISkeletonTextProps) => JSX.Element;
|
|
704
|
+
|
|
705
|
+
interface ISkeletonFooterProps extends React$1.ComponentProps<'div'> {
|
|
706
|
+
indeterminate?: boolean;
|
|
707
|
+
}
|
|
708
|
+
declare const SkeletonFooter: (props: ISkeletonFooterProps) => JSX.Element;
|
|
709
|
+
|
|
710
|
+
interface ISkeletonImageProps extends React$1.ComponentProps<'div'> {
|
|
711
|
+
indeterminate?: boolean;
|
|
712
|
+
}
|
|
713
|
+
declare const SkeletonImage: (props: ISkeletonImageProps) => JSX.Element;
|
|
714
|
+
|
|
715
|
+
interface ISnackbarProps extends ComponentProps<'div'> {
|
|
716
|
+
color?: COLOR;
|
|
717
|
+
actionText?: string;
|
|
718
|
+
onOk?: (e: React$1.MouseEvent) => void;
|
|
719
|
+
}
|
|
720
|
+
declare const Snackbar: (props: ISnackbarProps) => JSX.Element;
|
|
721
|
+
|
|
722
|
+
interface ISnackbarService {
|
|
723
|
+
show(message: React$1.ReactNode | string, options?: ISnackbarOptions): Promise<void>;
|
|
724
|
+
}
|
|
725
|
+
interface ISnackbarOptions {
|
|
726
|
+
actionText?: string;
|
|
727
|
+
timeout?: number;
|
|
728
|
+
color?: COLOR;
|
|
729
|
+
target?: HTMLElement;
|
|
730
|
+
}
|
|
731
|
+
declare class SnackbarService implements ISnackbarService {
|
|
732
|
+
private container;
|
|
733
|
+
private handler;
|
|
734
|
+
private root;
|
|
735
|
+
show(message: React$1.ReactNode | string, options?: ISnackbarOptions): Promise<void>;
|
|
736
|
+
private hide;
|
|
737
|
+
}
|
|
738
|
+
declare const snackbarService: SnackbarService;
|
|
739
|
+
|
|
740
|
+
interface ISpeedDialProps extends React$1.DetailedHTMLProps<React$1.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
741
|
+
onClose?: (e: React$1.MouseEvent) => void;
|
|
742
|
+
onOpen?: (e: React$1.MouseEvent) => void;
|
|
743
|
+
open?: boolean;
|
|
744
|
+
}
|
|
745
|
+
declare const SpeedDial: (props: ISpeedDialProps) => JSX.Element;
|
|
746
|
+
|
|
747
|
+
interface ISpeedDialActionProps extends React$1.DetailedHTMLProps<React$1.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
748
|
+
icon: React$1.ReactNode;
|
|
749
|
+
tooltipTitle?: string;
|
|
750
|
+
color?: COLOR;
|
|
751
|
+
onClick?: (e: React$1.MouseEvent) => void;
|
|
752
|
+
}
|
|
753
|
+
declare const SpeedDialAction: (props: ISpeedDialActionProps) => JSX.Element;
|
|
754
|
+
|
|
755
|
+
interface ISpeedDialIconProps extends React$1.DetailedHTMLProps<React$1.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
756
|
+
openIcon?: ReactElement;
|
|
757
|
+
}
|
|
758
|
+
declare const SpeedDialIcon: (props: ISpeedDialIconProps) => JSX.Element;
|
|
759
|
+
|
|
760
|
+
interface IStepProps {
|
|
761
|
+
value: string;
|
|
762
|
+
index?: number;
|
|
763
|
+
label?: ReactNode;
|
|
764
|
+
children?: ReactNode;
|
|
765
|
+
showLabel?: boolean;
|
|
766
|
+
isActive?: boolean;
|
|
767
|
+
isDone?: boolean;
|
|
768
|
+
isDisabled?: boolean;
|
|
769
|
+
isOptional?: boolean;
|
|
770
|
+
className?: string;
|
|
771
|
+
showProgressCheckIcon?: boolean;
|
|
772
|
+
onClick?: (e: {
|
|
773
|
+
event: React$1.MouseEvent;
|
|
774
|
+
value: string;
|
|
775
|
+
}) => void;
|
|
776
|
+
}
|
|
777
|
+
declare const Step: (props: IStepProps) => JSX.Element;
|
|
778
|
+
|
|
779
|
+
interface IStepperProps {
|
|
780
|
+
children?: ReactElement<IStepProps> | ReactElement<IStepProps>[];
|
|
781
|
+
isLinear?: boolean;
|
|
782
|
+
isDisabled?: boolean;
|
|
783
|
+
showLabel?: boolean;
|
|
784
|
+
showProgressCheckIcon?: boolean;
|
|
785
|
+
isHorizontal?: boolean;
|
|
786
|
+
onChange?: (val: number) => void;
|
|
787
|
+
onFinish?: () => void;
|
|
788
|
+
alternativeLabel?: boolean;
|
|
789
|
+
value?: number;
|
|
790
|
+
isReadonly?: boolean;
|
|
791
|
+
showDoneButton?: boolean;
|
|
792
|
+
showResetButton?: boolean;
|
|
793
|
+
showSteps?: boolean;
|
|
794
|
+
showDots?: boolean;
|
|
795
|
+
}
|
|
796
|
+
declare const Stepper: (props: IStepperProps) => JSX.Element;
|
|
797
|
+
|
|
798
|
+
interface IStepperActionsProps {
|
|
799
|
+
className?: string;
|
|
800
|
+
showDoneButton?: boolean;
|
|
801
|
+
showResetButton?: boolean;
|
|
802
|
+
isCompleted?: boolean;
|
|
803
|
+
isFirstStep?: boolean;
|
|
804
|
+
isStepOptional?: boolean;
|
|
805
|
+
onBack?: () => void;
|
|
806
|
+
onSkip?: () => void;
|
|
807
|
+
onNext?: () => void;
|
|
808
|
+
onReset?: () => void;
|
|
809
|
+
}
|
|
810
|
+
declare const StepperActions: (props: IStepperActionsProps) => JSX.Element;
|
|
811
|
+
|
|
812
|
+
interface IDot extends React$1.ComponentProps<'div'> {
|
|
813
|
+
color?: COLOR;
|
|
814
|
+
isActive?: boolean;
|
|
815
|
+
}
|
|
816
|
+
declare const Dot: (props: IDot) => JSX.Element;
|
|
817
|
+
|
|
818
|
+
interface ITableProps extends React$1.ComponentProps<'table'> {
|
|
819
|
+
striped?: boolean;
|
|
820
|
+
bordered?: boolean;
|
|
821
|
+
hover?: boolean;
|
|
822
|
+
responsive?: boolean;
|
|
823
|
+
}
|
|
824
|
+
declare const Table: (props: ITableProps) => JSX.Element;
|
|
825
|
+
|
|
826
|
+
declare const TableRow: (props: React$1.ComponentProps<'tr'>) => JSX.Element;
|
|
827
|
+
|
|
828
|
+
declare const TableHead: (props: React$1.ComponentProps<'thead'>) => JSX.Element;
|
|
829
|
+
|
|
830
|
+
declare const TableBody: (props: React$1.ComponentProps<'tbody'>) => JSX.Element;
|
|
831
|
+
|
|
832
|
+
interface ITableCellProps extends React$1.ComponentProps<'th'>, React$1.ComponentProps<'td'> {
|
|
833
|
+
component?: 'th';
|
|
834
|
+
}
|
|
835
|
+
declare const TableCell: (props: ITableCellProps) => JSX.Element;
|
|
836
|
+
|
|
837
|
+
interface ITabProps {
|
|
838
|
+
label: ReactNode;
|
|
839
|
+
value: string;
|
|
840
|
+
disabled?: boolean;
|
|
841
|
+
className?: string;
|
|
842
|
+
onClick?: (e: {
|
|
843
|
+
event: React$1.MouseEvent;
|
|
844
|
+
value: string;
|
|
845
|
+
}) => void;
|
|
846
|
+
}
|
|
847
|
+
declare const Tab: (props: ITabProps) => JSX.Element;
|
|
848
|
+
|
|
849
|
+
interface ITabsProps {
|
|
850
|
+
color?: COLOR;
|
|
851
|
+
indicatorColor?: COLOR;
|
|
852
|
+
children?: ReactElement<ITabProps> | ReactElement<ITabProps>[];
|
|
853
|
+
className?: string;
|
|
854
|
+
fixed?: boolean;
|
|
855
|
+
onChange?: (value: string) => void;
|
|
856
|
+
value?: string;
|
|
857
|
+
}
|
|
858
|
+
declare const Tabs: (props: ITabsProps) => JSX.Element;
|
|
859
|
+
|
|
860
|
+
interface ITabPanelProps extends React$1.DetailedHTMLProps<React$1.HTMLProps<HTMLDivElement>, HTMLDivElement> {
|
|
861
|
+
value: string;
|
|
862
|
+
index: string;
|
|
863
|
+
}
|
|
864
|
+
declare const TabPanel: (props: ITabPanelProps) => JSX.Element;
|
|
865
|
+
|
|
866
|
+
interface ITextareaProps extends React$1.ComponentProps<'textarea'> {
|
|
867
|
+
error?: boolean;
|
|
868
|
+
}
|
|
869
|
+
declare const Textarea: (props: ITextareaProps) => JSX.Element;
|
|
870
|
+
|
|
871
|
+
declare enum TIMEMODE {
|
|
872
|
+
HOUR = 0,
|
|
873
|
+
MINUTE = 1,
|
|
874
|
+
SECONDS = 2,
|
|
875
|
+
MILLISECONDS = 3
|
|
876
|
+
}
|
|
877
|
+
interface ITimeSelectProps {
|
|
878
|
+
value?: Date;
|
|
879
|
+
className?: string;
|
|
880
|
+
id?: string;
|
|
881
|
+
name?: string;
|
|
882
|
+
showHours?: boolean;
|
|
883
|
+
showMinutes?: boolean;
|
|
884
|
+
showSeconds?: boolean;
|
|
885
|
+
showMilliSeconds?: boolean;
|
|
886
|
+
disabled?: boolean;
|
|
887
|
+
onChange?: (val: Date) => void;
|
|
888
|
+
}
|
|
889
|
+
declare const TimeSelect: (props: ITimeSelectProps) => JSX.Element;
|
|
890
|
+
|
|
891
|
+
interface IHourProps {
|
|
892
|
+
value?: number;
|
|
893
|
+
className?: string;
|
|
894
|
+
id?: string;
|
|
895
|
+
name?: string;
|
|
896
|
+
disabled?: boolean;
|
|
897
|
+
onChange?: (val: number) => void;
|
|
898
|
+
}
|
|
899
|
+
declare const HourSelect: (props: IHourProps) => JSX.Element;
|
|
900
|
+
|
|
901
|
+
interface IMinuteProps {
|
|
902
|
+
value?: number;
|
|
903
|
+
className?: string;
|
|
904
|
+
id?: string;
|
|
905
|
+
name?: string;
|
|
906
|
+
disabled?: boolean;
|
|
907
|
+
onChange?: (val: number) => void;
|
|
908
|
+
}
|
|
909
|
+
declare const MinuteSelect: (props: IMinuteProps) => JSX.Element;
|
|
910
|
+
|
|
911
|
+
interface ISecondProps {
|
|
912
|
+
value?: number;
|
|
913
|
+
className?: string;
|
|
914
|
+
id?: string;
|
|
915
|
+
name?: string;
|
|
916
|
+
disabled?: boolean;
|
|
917
|
+
onChange?: (val: number) => void;
|
|
918
|
+
}
|
|
919
|
+
declare const SecondSelect: (props: ISecondProps) => JSX.Element;
|
|
920
|
+
|
|
921
|
+
interface IMilliSecondProps {
|
|
922
|
+
className?: string;
|
|
923
|
+
value?: number;
|
|
924
|
+
steps?: number;
|
|
925
|
+
id?: string;
|
|
926
|
+
name?: string;
|
|
927
|
+
disabled?: boolean;
|
|
928
|
+
onChange?: (val: number) => void;
|
|
929
|
+
}
|
|
930
|
+
declare const MilliSecondSelect: (props: IMilliSecondProps) => JSX.Element;
|
|
931
|
+
|
|
932
|
+
declare enum TooltipPlacement {
|
|
933
|
+
top = "top",
|
|
934
|
+
bottom = "bottom",
|
|
935
|
+
right = "right",
|
|
936
|
+
left = "left"
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
interface ITooltipProps extends React$1.ComponentProps<'div'> {
|
|
940
|
+
placement?: TooltipPlacement;
|
|
941
|
+
text?: string;
|
|
942
|
+
delay?: number;
|
|
943
|
+
isOpen?: boolean;
|
|
944
|
+
isShowClose?: boolean;
|
|
945
|
+
}
|
|
946
|
+
declare const Tooltip: (props: ITooltipProps) => JSX.Element;
|
|
947
|
+
|
|
948
|
+
declare const TreeView: (props: React$1.ComponentProps<'ul'>) => JSX.Element;
|
|
949
|
+
|
|
950
|
+
interface ITreeItemProps extends React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLLIElement>, HTMLLIElement> {
|
|
951
|
+
nodeId?: string;
|
|
952
|
+
label?: string;
|
|
953
|
+
isExpanded?: boolean;
|
|
954
|
+
isSelected?: boolean;
|
|
955
|
+
isSelectable?: boolean;
|
|
956
|
+
onToggleExpand?: (id: string) => void;
|
|
957
|
+
onItemSelect?: (e: {
|
|
958
|
+
id: string;
|
|
959
|
+
isSelected: boolean;
|
|
960
|
+
}) => void;
|
|
961
|
+
}
|
|
962
|
+
declare const TreeItem: (props: ITreeItemProps) => JSX.Element;
|
|
963
|
+
|
|
964
|
+
interface IWrapperProps {
|
|
965
|
+
as?: string;
|
|
966
|
+
children: React$1.ReactNode;
|
|
967
|
+
className?: string;
|
|
968
|
+
wrap?: boolean;
|
|
969
|
+
}
|
|
970
|
+
interface ITypographyProps extends React$1.ComponentProps<'span'> {
|
|
971
|
+
as?: string;
|
|
972
|
+
wrap?: boolean;
|
|
973
|
+
}
|
|
974
|
+
declare const Typography: ({ children, as, wrap, ...rest }: ITypographyProps) => JSX.Element;
|
|
975
|
+
|
|
976
|
+
declare const useConstructor: (callBack: () => void) => void;
|
|
977
|
+
|
|
978
|
+
declare function useCssClasses(cssClasses: string[]): string[];
|
|
979
|
+
|
|
980
|
+
declare function useDebounce(callback: () => void, timeout: number, deps: React$1.DependencyList): void;
|
|
981
|
+
|
|
982
|
+
declare function useHover(): (boolean | React.MutableRefObject<null>)[];
|
|
983
|
+
|
|
984
|
+
declare function useMobileDetect(): {
|
|
985
|
+
isMobile: boolean;
|
|
986
|
+
};
|
|
987
|
+
|
|
988
|
+
declare const useOnDestroy: (callBack: () => void) => void;
|
|
989
|
+
|
|
990
|
+
interface IUseWindowSize {
|
|
991
|
+
width: number;
|
|
992
|
+
height: number;
|
|
993
|
+
}
|
|
994
|
+
declare function useWindowSize(): IUseWindowSize;
|
|
995
|
+
|
|
996
|
+
declare const CaretDownSolidIcon: () => JSX.Element;
|
|
997
|
+
|
|
998
|
+
declare const CheckSolidIcon: () => JSX.Element;
|
|
999
|
+
|
|
1000
|
+
declare const CheckSquareRegularIcon: () => JSX.Element;
|
|
1001
|
+
|
|
1002
|
+
declare const ChevronDownSolidIcon: () => JSX.Element;
|
|
1003
|
+
|
|
1004
|
+
declare const ChevronLeftSolidIcon: () => JSX.Element;
|
|
1005
|
+
|
|
1006
|
+
declare const ChevronRightSolidIcon: () => JSX.Element;
|
|
1007
|
+
|
|
1008
|
+
declare const ChevronUpSolidIcon: () => JSX.Element;
|
|
1009
|
+
|
|
1010
|
+
declare const CircleSolidIcon: () => JSX.Element;
|
|
1011
|
+
|
|
1012
|
+
declare const HomeSolidIcon: () => JSX.Element;
|
|
1013
|
+
|
|
1014
|
+
declare const PlusSolidIcon: () => JSX.Element;
|
|
1015
|
+
|
|
1016
|
+
declare const SpinnerSolidIcon: () => JSX.Element;
|
|
1017
|
+
|
|
1018
|
+
declare const SquareRegularIcon: () => JSX.Element;
|
|
1019
|
+
|
|
1020
|
+
declare const TimesCircleSolidIcon: () => JSX.Element;
|
|
1021
|
+
|
|
1022
|
+
declare const TimesSolidIcon: () => JSX.Element;
|
|
1023
|
+
|
|
1024
|
+
interface IDictionary<T> {
|
|
1025
|
+
[key: string]: T;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
export { Alert, AppBar, AppBarTitle, AutoComplete, Backdrop, Badge, Breadcrumb, BreadcrumbItem, Button, ButtonContext, ButtonGroup, COLOR, Card, CardBody, CardFooter, CardImage, CardSubtitle, CardText, CardTitle, CaretDownSolidIcon, CheckSolidIcon, CheckSquareRegularIcon, Checkbox, ChevronDownSolidIcon, ChevronLeftSolidIcon, ChevronRightSolidIcon, ChevronUpSolidIcon, Chip, CircleSolidIcon, Column, ConditionalWrapper, CssTransition, DATEMODE, DatePicker, DateSelect, DaySelect, Dot, Drawer, EmailValidator, ExpansionPanel, ExpansionPanelContent, ExpansionPanelHeader, FileInput, FloatingActionButton, Form, FormControl, FormError, FormGroup, FormHint, FormInput, FormLabel, GlobalModal, HomeSolidIcon, HourSelect, HtmlBaseProps, HtmlInputProps, IAlertProps, IAppBarProps, IAppBarTitleProps, IAutoCompleteProps, IBackdropProps, IBadgeProps, IBreadcrumbItemProps, IBreadcrumbProps, IButtonContext, IButtonGroupProps, IButtonProps, ICheckboxProps, IChipProps, IContainerProps, IControls, IDatePickerProps, IDateSelectProps, IDaySelectProps, IDictionary, IDot, IDrawerProps, IExpansionPanelContentProps, IExpansionPanelHeaderProps, IExpansionPanelProps, IFileInputProps, IFloatingActionButtonProps, IFormAutoCompleteOptions, IFormControlConfig, IFormControlType, IFormInputError, IFormInputEvent, IFormInputOptions, IFormInputProps, IFormProps, IFormSelectOptions, IFormState, IFormTextAreaOptions, IFormValidatorType, IHourProps, IIconButtonProps, IIconProps, IListItemProps, IListProps, ILoadingIndicatorContainerProps, ILoadingIndicatorService, IMenuBodyProps, IMenuProps, IMilliSecondProps, IMinuteProps, IModalButton, IModalOptions, IModalProps$1 as IModalProps, IModalService, IMonthProps, INumberSelectProps, IPortalProps, IProgressBarProps, ISecondProps, ISelectOption, ISelectProps, ISidebarItem, ISkeletonAvatarProps, ISkeletonFooterProps, ISkeletonImageProps, ISkeletonTextProps, ISnackbarOptions, ISnackbarProps, ISnackbarService, ISpeedDialActionProps, ISpeedDialIconProps, ISpeedDialProps, IStepProps, IStepperActionsProps, IStepperProps, ITabPanelProps, ITabProps, ITableCellProps, ITableProps, ITabsProps, ITextareaProps, ITimeSelectProps, ITooltipProps, ITreeItemProps, ITypographyProps, IUseWindowSize, IWrapperProps, IYearProps, Icon, IconButton, IsEmptyValidator, IsEqualValidator, Link, List, ListItem, ListItemAction, ListItemAvatar, ListItemIcon, ListItemText, LoadingIndicator, LoadingIndicatorContainer, MODALBUTTONTYPE, MODALTYPE, MaxValidator, Menu, MenuBody, MenuDivider, MenuItem, MenuPosition, MenuToggle, MilliSecondSelect, MinValidator, MinuteSelect, Modal, ModalBody, ModalFooter, ModalHeader, MonthSelect, NumberSelect, POSITION, PlusSolidIcon, Portal, ProgressBar, Row, SIZE, STATUS, SecondSelect, Select, Sidebar, SkeletonAvatar, SkeletonFooter, SkeletonImage, SkeletonText, Snackbar, SpeedDial, SpeedDialAction, SpeedDialIcon, SpinnerSolidIcon, SquareRegularIcon, Step, Stepper, StepperActions, TIMEMODE, Tab, TabPanel, Table, TableBody, TableCell, TableHead, TableRow, Tabs, Textarea, TimeSelect, TimesCircleSolidIcon, TimesSolidIcon, Tooltip, TreeItem, TreeView, Typography, VARIANT, YearSelect, loadingIndicatorService, modalService, snackbarService, useButtonContext, useConstructor, useCssClasses, useDebounce, useHover, useMobileDetect, useOnDestroy, useWindowSize };
|