react-asc 19.0.6 → 20.2.0
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/apple-touch-icon.png +0 -0
- package/assets/index.1f5e1902.js +10 -0
- package/assets/index.a1009f35.css +1 -0
- package/assets/vendor.d012860f.js +57 -0
- package/changelog.md +919 -0
- package/favicon-16x16.png +0 -0
- package/favicon-32x32.png +0 -0
- package/favicon.ico +0 -0
- package/favicon.svg +23 -0
- package/index.html +27 -0
- package/manifest.webmanifest +1 -0
- package/package.json +3 -2
- package/pwa-192x192.png +0 -0
- package/pwa-512x512.png +0 -0
- package/react-asc.scss +93 -5
- package/registerSW.js +1 -0
- package/robots.txt +3 -0
- package/showcase/alert.md +3 -0
- package/showcase/appbar.md +8 -0
- package/showcase/autocomplete.md +53 -0
- package/showcase/backdrop.md +11 -0
- package/showcase/badge.md +8 -0
- package/showcase/breadcrumb.md +5 -0
- package/showcase/button.md +11 -0
- package/showcase/buttongroup.md +5 -0
- package/showcase/card.md +9 -0
- package/showcase/checkbox.md +7 -0
- package/showcase/chip.md +7 -0
- package/showcase/dateselect.md +8 -0
- package/showcase/drawer.md +13 -0
- package/showcase/expansionpanel.md +40 -0
- package/showcase/fileinput.md +6 -0
- package/showcase/floatingactionbutton.md +8 -0
- package/showcase/form.md +7 -0
- package/showcase/grid.md +5 -0
- package/showcase/hookuseconstructor.md +3 -0
- package/showcase/hookusedebounce.md +5 -0
- package/showcase/hookusehover.md +8 -0
- package/showcase/hookusewindowsize.md +5 -0
- package/showcase/icon.md +3 -0
- package/showcase/iconbutton.md +5 -0
- package/showcase/link.md +1 -0
- package/showcase/list.md +7 -0
- package/showcase/loadingindicator.md +18 -0
- package/showcase/menu.md +18 -0
- package/showcase/modal.md +17 -0
- package/showcase/numberselect.md +20 -0
- package/showcase/select.md +27 -0
- package/showcase/snackbar.md +22 -0
- package/showcase/speeddial.md +43 -0
- package/showcase/stepper.md +1 -0
- package/showcase/table.md +34 -0
- package/showcase/tabs.md +35 -0
- package/showcase/timeselect.md +1 -0
- package/showcase/tooltip.md +6 -0
- package/showcase/treeview.md +12 -0
- package/showcase/typography.md +6 -0
- package/sw.js +1 -0
- package/workbox-6cd28afd.js +1 -0
- package/components/Alert/Alert.d.ts +0 -11
- package/components/Alert/index.d.ts +0 -1
- package/components/AppBar/AppBar.d.ts +0 -9
- package/components/AppBar/AppBarTitle.d.ts +0 -5
- package/components/AppBar/index.d.ts +0 -2
- package/components/AutoComplete/AutoComplete.d.ts +0 -19
- package/components/AutoComplete/index.d.ts +0 -1
- package/components/Backdrop/Backdrop.d.ts +0 -7
- package/components/Backdrop/index.d.ts +0 -1
- package/components/Badge/Badge.d.ts +0 -7
- package/components/Badge/index.d.ts +0 -1
- package/components/Breadcrumb/Breadcrumb.d.ts +0 -5
- package/components/Breadcrumb/BreadcrumbItem.d.ts +0 -6
- package/components/Breadcrumb/index.d.ts +0 -2
- package/components/Button/Button.d.ts +0 -12
- package/components/Button/index.d.ts +0 -1
- package/components/ButtonGroup/ButtonGroup.d.ts +0 -2
- package/components/ButtonGroup/index.d.ts +0 -1
- package/components/Card/Card.d.ts +0 -6
- package/components/Card/CardBody.d.ts +0 -2
- package/components/Card/CardFooter.d.ts +0 -2
- package/components/Card/CardImage.d.ts +0 -2
- package/components/Card/CardSubtitle.d.ts +0 -2
- package/components/Card/CardText.d.ts +0 -2
- package/components/Card/CardTitle.d.ts +0 -6
- package/components/Card/index.d.ts +0 -7
- package/components/Checkbox/Checkbox.d.ts +0 -7
- package/components/Checkbox/index.d.ts +0 -1
- package/components/Chip/Chip.d.ts +0 -11
- package/components/Chip/index.d.ts +0 -1
- package/components/ConditionalWrapper/ConditionalWrapper.d.ts +0 -8
- package/components/ConditionalWrapper/index.d.ts +0 -1
- package/components/DateSelect/DateSelect.d.ts +0 -17
- package/components/DateSelect/DaySelect.d.ts +0 -12
- package/components/DateSelect/MonthSelect.d.ts +0 -10
- package/components/DateSelect/YearSelect.d.ts +0 -12
- package/components/DateSelect/index.d.ts +0 -4
- package/components/Drawer/Drawer.d.ts +0 -9
- package/components/Drawer/index.d.ts +0 -1
- package/components/ExpansionPanel/ExpansionPanel.d.ts +0 -8
- package/components/ExpansionPanel/ExpansionPanelContent.d.ts +0 -5
- package/components/ExpansionPanel/ExpansionPanelHeader.d.ts +0 -7
- package/components/ExpansionPanel/index.d.ts +0 -3
- package/components/FileInput/FileInput.d.ts +0 -5
- package/components/FileInput/index.d.ts +0 -1
- package/components/FloatingActionButton/FloatingActionButton.d.ts +0 -12
- package/components/FloatingActionButton/index.d.ts +0 -1
- package/components/Form/Form.d.ts +0 -38
- package/components/Form/FormError.d.ts +0 -8
- package/components/Form/FormGroup.d.ts +0 -7
- package/components/Form/FormHint/FormHint.d.ts +0 -2
- package/components/Form/FormHint/index.d.ts +0 -1
- package/components/Form/FormInput/FormInput.d.ts +0 -29
- package/components/Form/FormInput/index.d.ts +0 -1
- package/components/Form/FormLabel/FormLabel.d.ts +0 -2
- package/components/Form/FormLabel/index.d.ts +0 -1
- package/components/Form/form.interfaces.d.ts +0 -42
- package/components/Form/form.models.d.ts +0 -12
- package/components/Form/form.types.d.ts +0 -2
- package/components/Form/index.d.ts +0 -10
- package/components/Form/validators/EmailValidtor.d.ts +0 -1
- package/components/Form/validators/IsEmptyValidator.d.ts +0 -1
- package/components/Form/validators/IsEqualValidator.d.ts +0 -1
- package/components/Form/validators/index.d.ts +0 -3
- package/components/Grid/Column/Column.d.ts +0 -10
- package/components/Grid/Column/index.d.ts +0 -1
- package/components/Grid/Row/Row.d.ts +0 -2
- package/components/Grid/Row/index.d.ts +0 -1
- package/components/Grid/index.d.ts +0 -2
- package/components/Icon/Icon.d.ts +0 -6
- package/components/Icon/index.d.ts +0 -1
- package/components/IconButton/IconButton.d.ts +0 -11
- package/components/IconButton/index.d.ts +0 -1
- package/components/Link/Link.d.ts +0 -2
- package/components/Link/Link.test.d.ts +0 -1
- package/components/Link/index.d.ts +0 -1
- package/components/List/List.d.ts +0 -5
- package/components/List/ListItem.d.ts +0 -9
- package/components/List/ListItemAction.d.ts +0 -2
- package/components/List/ListItemAvatar.d.ts +0 -6
- package/components/List/ListItemIcon.d.ts +0 -6
- package/components/List/ListItemText.d.ts +0 -7
- package/components/List/index.d.ts +0 -6
- package/components/List/list.models.d.ts +0 -8
- package/components/LoadingIndicator/LoadingIndicator.d.ts +0 -2
- package/components/LoadingIndicator/LoadingIndicatorContainer.d.ts +0 -5
- package/components/LoadingIndicator/index.d.ts +0 -3
- package/components/LoadingIndicator/loading-indicator.service.d.ts +0 -11
- package/components/Menu/Menu.d.ts +0 -11
- package/components/Menu/MenuBackdrop.d.ts +0 -6
- package/components/Menu/MenuBody.d.ts +0 -12
- package/components/Menu/MenuContext.d.ts +0 -6
- package/components/Menu/MenuDivider.d.ts +0 -2
- package/components/Menu/MenuItem.d.ts +0 -8
- package/components/Menu/MenuToggle.d.ts +0 -6
- package/components/Menu/index.d.ts +0 -6
- package/components/Menu/menu.types.d.ts +0 -1
- package/components/Modal/GlobalModal.d.ts +0 -19
- package/components/Modal/Modal.d.ts +0 -14
- package/components/Modal/ModalBody.d.ts +0 -6
- package/components/Modal/ModalFooter.d.ts +0 -6
- package/components/Modal/ModalHeader.d.ts +0 -7
- package/components/Modal/index.d.ts +0 -8
- package/components/Modal/modal.enum.d.ts +0 -10
- package/components/Modal/modal.interfaces.d.ts +0 -11
- package/components/Modal/modal.service.d.ts +0 -21
- package/components/NumberSelect/NumberSelect.d.ts +0 -12
- package/components/NumberSelect/index.d.ts +0 -1
- package/components/Select/Select.d.ts +0 -15
- package/components/Select/index.d.ts +0 -1
- package/components/Sidebar/Sidebar.d.ts +0 -9
- package/components/Sidebar/index.d.ts +0 -2
- package/components/Sidebar/sidebar.interfaces.d.ts +0 -9
- package/components/Sidebar/sidebar.models.d.ts +0 -11
- package/components/Snackbar/Snackbar.d.ts +0 -8
- package/components/Snackbar/index.d.ts +0 -2
- package/components/Snackbar/snackbar.service.d.ts +0 -19
- package/components/SpeedDial/SpeedDial.d.ts +0 -7
- package/components/SpeedDial/SpeedDialAction.d.ts +0 -9
- package/components/SpeedDial/SpeedDialActions.d.ts +0 -2
- package/components/SpeedDial/SpeedDialIcon.d.ts +0 -5
- package/components/SpeedDial/index.d.ts +0 -3
- package/components/Stepper/Step/Step.d.ts +0 -19
- package/components/Stepper/Step/index.d.ts +0 -1
- package/components/Stepper/StepConnector/StepConnector.d.ts +0 -6
- package/components/Stepper/StepPanel/StepPanel.d.ts +0 -5
- package/components/Stepper/Stepper.d.ts +0 -16
- package/components/Stepper/StepperActions/StepperActions.d.ts +0 -12
- package/components/Stepper/StepperActions/index.d.ts +0 -1
- package/components/Stepper/index.d.ts +0 -3
- package/components/Table/Table.d.ts +0 -10
- package/components/Table/index.d.ts +0 -1
- package/components/Tabs/Tab.d.ts +0 -14
- package/components/Tabs/TabIndicator.d.ts +0 -10
- package/components/Tabs/TabPanel.d.ts +0 -6
- package/components/Tabs/Tabs.d.ts +0 -17
- package/components/Tabs/index.d.ts +0 -3
- package/components/Textarea/Textarea.d.ts +0 -2
- package/components/Textarea/index.d.ts +0 -1
- package/components/TimeSelect/HourSelect.d.ts +0 -10
- package/components/TimeSelect/MilliSecondSelect.d.ts +0 -11
- package/components/TimeSelect/MinuteSelect.d.ts +0 -10
- package/components/TimeSelect/SecondSelect.d.ts +0 -10
- package/components/TimeSelect/TimeSelect.d.ts +0 -20
- package/components/TimeSelect/index.d.ts +0 -5
- package/components/Tooltip/Tooltip.d.ts +0 -6
- package/components/Tooltip/index.d.ts +0 -1
- package/components/TreeView/TreeItem.d.ts +0 -14
- package/components/TreeView/TreeView.d.ts +0 -2
- package/components/TreeView/index.d.ts +0 -2
- package/components/Typography/Typography.d.ts +0 -10
- package/components/Typography/index.d.ts +0 -1
- package/components/component.enums.d.ts +0 -25
- package/components/component.interfaces.d.ts +0 -18
- package/components/index.d.ts +0 -41
- package/hooks/index.d.ts +0 -4
- package/hooks/useConstructor.d.ts +0 -1
- package/hooks/useDebounce.d.ts +0 -2
- package/hooks/useHover.d.ts +0 -2
- package/hooks/useWindowSize.d.ts +0 -4
- package/icons/CaretDownSolidIcon.d.ts +0 -2
- package/icons/CheckSolidIcon.d.ts +0 -2
- package/icons/CheckSquareRegularIcon.d.ts +0 -2
- package/icons/ChevronDownSolidIcon.d.ts +0 -2
- package/icons/ChevronLeftSolidIcon.d.ts +0 -2
- package/icons/ChevronRightSolidIcon.d.ts +0 -2
- package/icons/ChevronUpSolidIcon.d.ts +0 -2
- package/icons/CircleSolidIcon.d.ts +0 -2
- package/icons/HomeSolidIcon.d.ts +0 -2
- package/icons/PlusSolidIcon.d.ts +0 -2
- package/icons/SpinnerSolidIcon.d.ts +0 -2
- package/icons/SquareRegularIcon.d.ts +0 -2
- package/icons/TimesCircleSolidIcon.d.ts +0 -2
- package/icons/TimesSolidIcon.d.ts +0 -2
- package/icons/index.d.ts +0 -14
- package/index.d.ts +0 -3
- package/index.es.js +0 -2601
- package/index.js +0 -2717
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IFormInputOptions, IFormTextAreaOptions, IFormSelectOptions, IFormAutoCompleteOptions } from '../form.interfaces';
|
|
3
|
-
import { IFormControlType } from '../form.types';
|
|
4
|
-
export interface IFormInputEvent {
|
|
5
|
-
value: any;
|
|
6
|
-
type?: string;
|
|
7
|
-
name?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface IFormInputProps {
|
|
10
|
-
value: any;
|
|
11
|
-
name: string;
|
|
12
|
-
type: IFormControlType;
|
|
13
|
-
placeholder?: string;
|
|
14
|
-
className?: string;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
readonly?: boolean;
|
|
17
|
-
isValid?: boolean;
|
|
18
|
-
autoFocus?: boolean;
|
|
19
|
-
options?: Array<IFormInputOptions>;
|
|
20
|
-
textareaOptions?: IFormTextAreaOptions;
|
|
21
|
-
selectOptions?: IFormSelectOptions;
|
|
22
|
-
autoCompleteOptions?: IFormAutoCompleteOptions;
|
|
23
|
-
label?: string;
|
|
24
|
-
onInput?: (e: IFormInputEvent) => void;
|
|
25
|
-
onChange?: (e: IFormInputEvent) => void;
|
|
26
|
-
onBlur?: React.FocusEventHandler<HTMLInputElement> | undefined;
|
|
27
|
-
onKeyDown?: React.KeyboardEventHandler<HTMLInputElement | undefined>;
|
|
28
|
-
}
|
|
29
|
-
export declare const FormInput: (props: IFormInputProps) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './FormInput';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './FormLabel';
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { FormControl } from './form.models';
|
|
2
|
-
export interface IControls {
|
|
3
|
-
[key: string]: FormControl;
|
|
4
|
-
}
|
|
5
|
-
export interface IFormValues {
|
|
6
|
-
[key: string]: unknown;
|
|
7
|
-
}
|
|
8
|
-
export interface IFormTextAreaOptions {
|
|
9
|
-
rows: number;
|
|
10
|
-
resize: boolean;
|
|
11
|
-
}
|
|
12
|
-
export interface IFormSelectOptions {
|
|
13
|
-
multiple?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface IFormAutoCompleteOptions {
|
|
16
|
-
openOnFocus?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export interface IFormInputError {
|
|
19
|
-
validator: string;
|
|
20
|
-
message: string;
|
|
21
|
-
}
|
|
22
|
-
export interface IFormInputOptions {
|
|
23
|
-
id?: string;
|
|
24
|
-
value: string;
|
|
25
|
-
label?: string;
|
|
26
|
-
}
|
|
27
|
-
export interface IFormControlConfig {
|
|
28
|
-
label: string;
|
|
29
|
-
placeholder?: string;
|
|
30
|
-
formControlClassName?: string;
|
|
31
|
-
formGroupClassName?: string;
|
|
32
|
-
labelClassName?: string;
|
|
33
|
-
labelPosition?: string;
|
|
34
|
-
autoFocus?: boolean;
|
|
35
|
-
hint?: string;
|
|
36
|
-
disabled?: boolean;
|
|
37
|
-
readonly?: boolean;
|
|
38
|
-
options?: Array<IFormInputOptions>;
|
|
39
|
-
textareaOptions?: IFormTextAreaOptions;
|
|
40
|
-
selectOptions?: IFormSelectOptions;
|
|
41
|
-
autoCompleteOptions?: IFormAutoCompleteOptions;
|
|
42
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IFormControlConfig, IFormInputError } from './form.interfaces';
|
|
2
|
-
import { IFormControlType } from './form.types';
|
|
3
|
-
export declare class FormControl {
|
|
4
|
-
value: any;
|
|
5
|
-
validators: Array<string>;
|
|
6
|
-
type: IFormControlType;
|
|
7
|
-
config: IFormControlConfig;
|
|
8
|
-
constructor(value: any, validators: Array<string>, type: IFormControlType, config: IFormControlConfig);
|
|
9
|
-
errors: Array<IFormInputError>;
|
|
10
|
-
isValid: boolean;
|
|
11
|
-
isDirty: boolean;
|
|
12
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export declare type IFormControlType = 'text' | 'textarea' | 'email' | 'number' | 'checkbox' | 'checkboxgroup' | 'radio' | 'select' | 'password' | 'color' | 'time' | 'file' | 'date' | 'datetime-local' | 'autocomplete';
|
|
2
|
-
export declare type IFormValidatorType = 'required' | 'email' | 'match';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from './Form';
|
|
2
|
-
export * from './FormError';
|
|
3
|
-
export * from './FormGroup';
|
|
4
|
-
export * from './FormHint';
|
|
5
|
-
export * from './FormInput';
|
|
6
|
-
export * from './FormLabel';
|
|
7
|
-
export * from './form.models';
|
|
8
|
-
export * from './form.interfaces';
|
|
9
|
-
export * from './form.types';
|
|
10
|
-
export * from './validators';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const EmailValidator: (value: string) => boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const IsEmptyValidator: (value: unknown) => boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const IsEqualValidator: (valueA: unknown, valueB: unknown) => boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Column';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Row';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Icon';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { COLOR, SIZE, VARIANT } from '../component.enums';
|
|
3
|
-
export interface IIconButtonProps extends React.ComponentProps<"button"> {
|
|
4
|
-
icon?: React.SVGProps<SVGSVGElement>;
|
|
5
|
-
color?: COLOR;
|
|
6
|
-
size?: SIZE;
|
|
7
|
-
isActive?: boolean;
|
|
8
|
-
variant?: VARIANT;
|
|
9
|
-
shadow?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare const IconButton: (props: IIconButtonProps) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './IconButton';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Link';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { COLOR } from '../component.enums';
|
|
3
|
-
export interface IListItemProps extends React.ComponentProps<"li"> {
|
|
4
|
-
color?: COLOR;
|
|
5
|
-
active?: boolean;
|
|
6
|
-
isHoverable?: boolean;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare const ListItem: (props: IListItemProps) => JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface IListItemAvatarProps extends React.ComponentProps<"div"> {
|
|
3
|
-
avatar: React.SVGProps<SVGSVGElement> | React.ImgHTMLAttributes<HTMLImageElement>;
|
|
4
|
-
}
|
|
5
|
-
export declare const ListItemAvatar: ({ avatar, ...rest }: IListItemAvatarProps) => JSX.Element;
|
|
6
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
interface IListItemTextProps extends React.ComponentProps<"div"> {
|
|
3
|
-
primary: ReactNode;
|
|
4
|
-
secondary?: ReactNode;
|
|
5
|
-
}
|
|
6
|
-
export declare const ListItemText: ({ primary, secondary, ...rest }: IListItemTextProps) => JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface ILoadingIndicatorService {
|
|
2
|
-
show(message: string): void;
|
|
3
|
-
}
|
|
4
|
-
declare class LoadingIndicatorService implements ILoadingIndicatorService {
|
|
5
|
-
private container;
|
|
6
|
-
private handler;
|
|
7
|
-
show(): void;
|
|
8
|
-
hide(): void;
|
|
9
|
-
}
|
|
10
|
-
export declare const loadingIndicatorService: LoadingIndicatorService;
|
|
11
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement } from 'react';
|
|
2
|
-
import { MenuPosition } from './menu.types';
|
|
3
|
-
import { IMenuItemProps } from './MenuItem';
|
|
4
|
-
export interface IMenuProps extends React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
5
|
-
toggle?: ReactElement;
|
|
6
|
-
open?: boolean;
|
|
7
|
-
children?: ReactElement<IMenuItemProps> | Array<ReactElement<IMenuItemProps>>;
|
|
8
|
-
menuPosition?: MenuPosition;
|
|
9
|
-
onClickBackdrop?: () => void;
|
|
10
|
-
}
|
|
11
|
-
export declare const Menu: (props: IMenuProps) => JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement } from 'react';
|
|
2
|
-
import { MenuPosition } from './menu.types';
|
|
3
|
-
import { IMenuItemProps } from './MenuItem';
|
|
4
|
-
export interface IMenuBodyProps {
|
|
5
|
-
children?: ReactElement<IMenuItemProps> | Array<ReactElement<IMenuItemProps>>;
|
|
6
|
-
className?: string;
|
|
7
|
-
menuPosition?: MenuPosition;
|
|
8
|
-
parentRef: React.RefObject<HTMLDivElement>;
|
|
9
|
-
shadow?: boolean;
|
|
10
|
-
onClickBackdrop?: () => void;
|
|
11
|
-
}
|
|
12
|
-
export declare const MenuBody: (props: IMenuBodyProps) => React.ReactPortal;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare type MenuPosition = 'right' | 'left';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { SIZE } from '../component.enums';
|
|
3
|
-
import { IControls, IFormValues } from '../Form';
|
|
4
|
-
import { MODALTYPE } from './modal.enum';
|
|
5
|
-
import { IModalButton } from './modal.interfaces';
|
|
6
|
-
interface IModalProps {
|
|
7
|
-
title?: string;
|
|
8
|
-
description?: string | ReactElement;
|
|
9
|
-
formControls?: IControls;
|
|
10
|
-
modalType?: MODALTYPE;
|
|
11
|
-
onOk?: (values?: IFormValues) => void;
|
|
12
|
-
onCancel?: () => void;
|
|
13
|
-
isDismissable?: boolean;
|
|
14
|
-
buttons?: Array<IModalButton>;
|
|
15
|
-
fullScreen?: boolean;
|
|
16
|
-
size?: SIZE;
|
|
17
|
-
}
|
|
18
|
-
export declare const GlobalModal: ({ title, description, formControls, onOk, onCancel, isDismissable, buttons, size, fullScreen }: IModalProps) => JSX.Element;
|
|
19
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { SIZE } from '../component.enums';
|
|
3
|
-
export interface IModalProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
children?: ReactNode;
|
|
6
|
-
header?: string;
|
|
7
|
-
footer?: string | ReactElement;
|
|
8
|
-
onHeaderCloseClick?: () => void;
|
|
9
|
-
onBackdropClick?: () => void;
|
|
10
|
-
isDismissable?: boolean;
|
|
11
|
-
fullScreen?: boolean;
|
|
12
|
-
size?: SIZE;
|
|
13
|
-
}
|
|
14
|
-
export declare const Modal: (props: IModalProps) => JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { COLOR, VARIANT } from '../component.enums';
|
|
2
|
-
import { MODALBUTTONTYPE } from './modal.enum';
|
|
3
|
-
export interface IModalButton {
|
|
4
|
-
label: string;
|
|
5
|
-
variant?: VARIANT;
|
|
6
|
-
color?: COLOR;
|
|
7
|
-
handler?: () => void;
|
|
8
|
-
autoFocus?: boolean;
|
|
9
|
-
type?: MODALBUTTONTYPE;
|
|
10
|
-
focus?: boolean;
|
|
11
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { IControls, IFormValues } from '../Form';
|
|
2
|
-
import { ReactElement } from 'react';
|
|
3
|
-
import { IModalButton } from './modal.interfaces';
|
|
4
|
-
import { SIZE } from '../component.enums';
|
|
5
|
-
export interface IModalService {
|
|
6
|
-
show(title: string, description: string | ReactElement, options?: IModalOptions): Promise<void | IFormValues>;
|
|
7
|
-
}
|
|
8
|
-
export interface IModalOptions {
|
|
9
|
-
formControls?: IControls;
|
|
10
|
-
isDismissable?: boolean;
|
|
11
|
-
buttons?: Array<IModalButton>;
|
|
12
|
-
fullScreen?: boolean;
|
|
13
|
-
size?: SIZE;
|
|
14
|
-
}
|
|
15
|
-
declare class ModalService implements IModalService {
|
|
16
|
-
private container;
|
|
17
|
-
show(title: string, description: string | ReactElement, options?: IModalOptions): Promise<void | IFormValues>;
|
|
18
|
-
private hide;
|
|
19
|
-
}
|
|
20
|
-
export declare const modalService: ModalService;
|
|
21
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface INumberSelectProps {
|
|
3
|
-
value?: number;
|
|
4
|
-
from?: number;
|
|
5
|
-
to?: number;
|
|
6
|
-
className?: string;
|
|
7
|
-
id?: string;
|
|
8
|
-
name?: string;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
onChange?: (val: number) => void;
|
|
11
|
-
}
|
|
12
|
-
export declare const NumberSelect: (props: INumberSelectProps) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './NumberSelect';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ISelectOption } from '../component.interfaces';
|
|
3
|
-
export interface ISelectProps {
|
|
4
|
-
id?: string;
|
|
5
|
-
name?: string;
|
|
6
|
-
className?: string;
|
|
7
|
-
options?: Array<ISelectOption>;
|
|
8
|
-
value?: string | Array<string>;
|
|
9
|
-
multiple?: boolean;
|
|
10
|
-
multipleMaxCountItems?: number;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
onChange?: (val: string | Array<string>) => void;
|
|
13
|
-
onKeyDown?: (event: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
14
|
-
}
|
|
15
|
-
export declare const Select: (props: ISelectProps) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Select';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ISidebarItem } from './sidebar.interfaces';
|
|
3
|
-
interface ISidebarProps extends React.ComponentProps<"nav"> {
|
|
4
|
-
items: Array<ISidebarItem>;
|
|
5
|
-
currentUrl: string;
|
|
6
|
-
onItemClicked: (path: string) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const Sidebar: (props: ISidebarProps) => JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare class SidebarItemModel {
|
|
2
|
-
id: string;
|
|
3
|
-
label: string;
|
|
4
|
-
path: string;
|
|
5
|
-
icon?: string | undefined;
|
|
6
|
-
isActive?: boolean | undefined;
|
|
7
|
-
items?: SidebarItemModel[] | undefined;
|
|
8
|
-
isCollapsible: boolean;
|
|
9
|
-
isCollapsed: boolean;
|
|
10
|
-
constructor(id: string, label: string, path: string, icon?: string | undefined, isActive?: boolean | undefined, items?: SidebarItemModel[] | undefined, isCollapsible?: boolean, isCollapsed?: boolean);
|
|
11
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React, { ComponentProps } from 'react';
|
|
2
|
-
import { COLOR } from '../component.enums';
|
|
3
|
-
export interface ISnackbarProps extends ComponentProps<"div"> {
|
|
4
|
-
color?: COLOR;
|
|
5
|
-
actionText?: string;
|
|
6
|
-
onOk?: (e: React.MouseEvent) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const Snackbar: (props: ISnackbarProps) => JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { COLOR } from '../component.enums';
|
|
3
|
-
export interface ISnackbarService {
|
|
4
|
-
show(message: React.ReactChildren | string, options?: ISnackbarOptions): Promise<void>;
|
|
5
|
-
}
|
|
6
|
-
export interface ISnackbarOptions {
|
|
7
|
-
actionText?: string;
|
|
8
|
-
timeout?: number;
|
|
9
|
-
color?: COLOR;
|
|
10
|
-
target?: HTMLElement;
|
|
11
|
-
}
|
|
12
|
-
declare class SnackbarService implements ISnackbarService {
|
|
13
|
-
private container;
|
|
14
|
-
private handler;
|
|
15
|
-
show(message: React.ReactChildren | string, options?: ISnackbarOptions): Promise<void>;
|
|
16
|
-
private hide;
|
|
17
|
-
}
|
|
18
|
-
export declare const snackbarService: SnackbarService;
|
|
19
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface ISpeedDialProps extends React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
3
|
-
onClose?: (e: React.MouseEvent) => void;
|
|
4
|
-
onOpen?: (e: React.MouseEvent) => void;
|
|
5
|
-
open?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const SpeedDial: (props: ISpeedDialProps) => JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { COLOR } from '../component.enums';
|
|
3
|
-
export interface ISpeedDialActionProps extends React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
4
|
-
icon: React.SVGProps<SVGSVGElement>;
|
|
5
|
-
tooltipTitle?: string;
|
|
6
|
-
color?: COLOR;
|
|
7
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const SpeedDialAction: (props: ISpeedDialActionProps) => JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement } from 'react';
|
|
2
|
-
export interface ISpeedDialIconProps extends React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
3
|
-
openIcon?: ReactElement;
|
|
4
|
-
}
|
|
5
|
-
export declare const SpeedDialIcon: (props: ISpeedDialIconProps) => JSX.Element;
|