react-asc 20.2.0 → 21.0.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/components/Alert/Alert.d.ts +11 -0
- package/components/Alert/index.d.ts +1 -0
- package/components/AppBar/AppBar.d.ts +9 -0
- package/components/AppBar/AppBarTitle.d.ts +5 -0
- package/components/AppBar/index.d.ts +2 -0
- package/components/AutoComplete/AutoComplete.d.ts +19 -0
- package/components/AutoComplete/index.d.ts +1 -0
- package/components/Backdrop/Backdrop.d.ts +7 -0
- package/components/Backdrop/index.d.ts +1 -0
- package/components/Badge/Badge.d.ts +7 -0
- package/components/Badge/index.d.ts +1 -0
- package/components/Breadcrumb/Breadcrumb.d.ts +5 -0
- package/components/Breadcrumb/BreadcrumbItem.d.ts +6 -0
- package/components/Breadcrumb/index.d.ts +2 -0
- package/components/Button/Button.d.ts +12 -0
- package/components/Button/index.d.ts +1 -0
- package/components/ButtonGroup/ButtonGroup.d.ts +2 -0
- package/components/ButtonGroup/index.d.ts +1 -0
- package/components/Card/Card.d.ts +6 -0
- package/components/Card/CardBody.d.ts +2 -0
- package/components/Card/CardFooter.d.ts +2 -0
- package/components/Card/CardImage.d.ts +2 -0
- package/components/Card/CardSubtitle.d.ts +2 -0
- package/components/Card/CardText.d.ts +2 -0
- package/components/Card/CardTitle.d.ts +6 -0
- package/components/Card/index.d.ts +7 -0
- package/components/Checkbox/Checkbox.d.ts +7 -0
- package/components/Checkbox/index.d.ts +1 -0
- package/components/Chip/Chip.d.ts +11 -0
- package/components/Chip/index.d.ts +1 -0
- package/components/ConditionalWrapper/ConditionalWrapper.d.ts +8 -0
- package/components/ConditionalWrapper/index.d.ts +1 -0
- package/components/DateSelect/DateSelect.d.ts +17 -0
- package/components/DateSelect/DaySelect.d.ts +12 -0
- package/components/DateSelect/MonthSelect.d.ts +10 -0
- package/components/DateSelect/YearSelect.d.ts +12 -0
- package/components/DateSelect/index.d.ts +4 -0
- package/components/Drawer/Drawer.d.ts +9 -0
- package/components/Drawer/index.d.ts +1 -0
- package/components/ExpansionPanel/ExpansionPanel.d.ts +8 -0
- package/components/ExpansionPanel/ExpansionPanelContent.d.ts +5 -0
- package/components/ExpansionPanel/ExpansionPanelHeader.d.ts +7 -0
- package/components/ExpansionPanel/index.d.ts +3 -0
- package/components/FileInput/FileInput.d.ts +5 -0
- package/components/FileInput/index.d.ts +1 -0
- package/components/FloatingActionButton/FloatingActionButton.d.ts +12 -0
- package/components/FloatingActionButton/index.d.ts +1 -0
- package/components/Form/Form.d.ts +38 -0
- package/components/Form/FormError.d.ts +8 -0
- package/components/Form/FormGroup.d.ts +7 -0
- package/components/Form/FormHint/FormHint.d.ts +2 -0
- package/components/Form/FormHint/index.d.ts +1 -0
- package/components/Form/FormInput/FormInput.d.ts +29 -0
- package/components/Form/FormInput/index.d.ts +1 -0
- package/components/Form/FormLabel/FormLabel.d.ts +2 -0
- package/components/Form/FormLabel/index.d.ts +1 -0
- package/components/Form/form.interfaces.d.ts +42 -0
- package/components/Form/form.models.d.ts +12 -0
- package/components/Form/form.types.d.ts +2 -0
- package/components/Form/index.d.ts +10 -0
- package/components/Form/validators/EmailValidtor.d.ts +1 -0
- package/components/Form/validators/IsEmptyValidator.d.ts +1 -0
- package/components/Form/validators/IsEqualValidator.d.ts +1 -0
- package/components/Form/validators/index.d.ts +3 -0
- package/components/Grid/Column/Column.d.ts +10 -0
- package/components/Grid/Column/index.d.ts +1 -0
- package/components/Grid/Row/Row.d.ts +5 -0
- package/components/Grid/Row/index.d.ts +1 -0
- package/components/Grid/index.d.ts +2 -0
- package/components/Icon/Icon.d.ts +6 -0
- package/components/Icon/index.d.ts +1 -0
- package/components/IconButton/IconButton.d.ts +11 -0
- package/components/IconButton/index.d.ts +1 -0
- package/components/Link/Link.d.ts +2 -0
- package/components/Link/Link.test.d.ts +1 -0
- package/components/Link/index.d.ts +1 -0
- package/components/List/List.d.ts +5 -0
- package/components/List/ListItem.d.ts +9 -0
- package/components/List/ListItemAction.d.ts +2 -0
- package/components/List/ListItemAvatar.d.ts +6 -0
- package/components/List/ListItemIcon.d.ts +6 -0
- package/components/List/ListItemText.d.ts +7 -0
- package/components/List/index.d.ts +6 -0
- package/components/List/list.models.d.ts +8 -0
- package/components/LoadingIndicator/LoadingIndicator.d.ts +2 -0
- package/components/LoadingIndicator/LoadingIndicatorContainer.d.ts +5 -0
- package/components/LoadingIndicator/index.d.ts +3 -0
- package/components/LoadingIndicator/loading-indicator.service.d.ts +11 -0
- package/components/Menu/Menu.d.ts +11 -0
- package/components/Menu/MenuBackdrop.d.ts +6 -0
- package/components/Menu/MenuBody.d.ts +12 -0
- package/components/Menu/MenuContext.d.ts +6 -0
- package/components/Menu/MenuDivider.d.ts +2 -0
- package/components/Menu/MenuItem.d.ts +8 -0
- package/components/Menu/MenuToggle.d.ts +6 -0
- package/components/Menu/index.d.ts +6 -0
- package/components/Menu/menu.types.d.ts +1 -0
- package/components/Modal/GlobalModal.d.ts +19 -0
- package/components/Modal/Modal.d.ts +14 -0
- package/components/Modal/ModalBody.d.ts +6 -0
- package/components/Modal/ModalFooter.d.ts +2 -0
- package/components/Modal/ModalHeader.d.ts +7 -0
- package/components/Modal/index.d.ts +8 -0
- package/components/Modal/modal.enum.d.ts +10 -0
- package/components/Modal/modal.interfaces.d.ts +12 -0
- package/components/Modal/modal.service.d.ts +21 -0
- package/components/NumberSelect/NumberSelect.d.ts +12 -0
- package/components/NumberSelect/index.d.ts +1 -0
- package/components/Select/Select.d.ts +16 -0
- package/components/Select/index.d.ts +1 -0
- package/components/Sidebar/Sidebar.d.ts +9 -0
- package/components/Sidebar/index.d.ts +2 -0
- package/components/Sidebar/sidebar.interfaces.d.ts +9 -0
- package/components/Sidebar/sidebar.models.d.ts +11 -0
- package/components/Snackbar/Snackbar.d.ts +8 -0
- package/components/Snackbar/index.d.ts +2 -0
- package/components/Snackbar/snackbar.service.d.ts +19 -0
- package/components/SpeedDial/SpeedDial.d.ts +7 -0
- package/components/SpeedDial/SpeedDialAction.d.ts +9 -0
- package/components/SpeedDial/SpeedDialActions.d.ts +2 -0
- package/components/SpeedDial/SpeedDialIcon.d.ts +5 -0
- package/components/SpeedDial/index.d.ts +3 -0
- package/components/Stepper/Step/Step.d.ts +19 -0
- package/components/Stepper/Step/index.d.ts +1 -0
- package/components/Stepper/StepConnector/StepConnector.d.ts +6 -0
- package/components/Stepper/StepPanel/StepPanel.d.ts +5 -0
- package/components/Stepper/Stepper.d.ts +16 -0
- package/components/Stepper/StepperActions/StepperActions.d.ts +12 -0
- package/components/Stepper/StepperActions/index.d.ts +1 -0
- package/components/Stepper/index.d.ts +3 -0
- package/components/Table/Table.d.ts +10 -0
- package/components/Table/index.d.ts +1 -0
- package/components/Tabs/Tab.d.ts +14 -0
- package/components/Tabs/TabIndicator.d.ts +10 -0
- package/components/Tabs/TabPanel.d.ts +6 -0
- package/components/Tabs/Tabs.d.ts +17 -0
- package/components/Tabs/index.d.ts +3 -0
- package/components/Textarea/Textarea.d.ts +5 -0
- package/components/Textarea/index.d.ts +1 -0
- package/components/TimeSelect/HourSelect.d.ts +10 -0
- package/components/TimeSelect/MilliSecondSelect.d.ts +11 -0
- package/components/TimeSelect/MinuteSelect.d.ts +10 -0
- package/components/TimeSelect/SecondSelect.d.ts +10 -0
- package/components/TimeSelect/TimeSelect.d.ts +20 -0
- package/components/TimeSelect/index.d.ts +5 -0
- package/components/Tooltip/Tooltip.d.ts +6 -0
- package/components/Tooltip/index.d.ts +1 -0
- package/components/TreeView/TreeItem.d.ts +14 -0
- package/components/TreeView/TreeView.d.ts +2 -0
- package/components/TreeView/index.d.ts +2 -0
- package/components/Typography/Typography.d.ts +10 -0
- package/components/Typography/index.d.ts +1 -0
- package/components/component.enums.d.ts +25 -0
- package/components/component.interfaces.d.ts +18 -0
- package/components/index.d.ts +41 -0
- package/hooks/index.d.ts +4 -0
- package/hooks/useConstructor.d.ts +1 -0
- package/hooks/useDebounce.d.ts +2 -0
- package/hooks/useHover.d.ts +2 -0
- package/hooks/useWindowSize.d.ts +4 -0
- package/icons/CaretDownSolidIcon.d.ts +2 -0
- package/icons/CheckSolidIcon.d.ts +2 -0
- package/icons/CheckSquareRegularIcon.d.ts +2 -0
- package/icons/ChevronDownSolidIcon.d.ts +2 -0
- package/icons/ChevronLeftSolidIcon.d.ts +2 -0
- package/icons/ChevronRightSolidIcon.d.ts +2 -0
- package/icons/ChevronUpSolidIcon.d.ts +2 -0
- package/icons/CircleSolidIcon.d.ts +2 -0
- package/icons/HomeSolidIcon.d.ts +2 -0
- package/icons/PlusSolidIcon.d.ts +2 -0
- package/icons/SpinnerSolidIcon.d.ts +2 -0
- package/icons/SquareRegularIcon.d.ts +2 -0
- package/icons/TimesCircleSolidIcon.d.ts +2 -0
- package/icons/TimesSolidIcon.d.ts +2 -0
- package/icons/index.d.ts +14 -0
- package/index.d.ts +3 -0
- package/index.es.js +2635 -0
- package/index.js +2751 -0
- package/package.json +1 -3
- package/react-asc.scss +4 -0
- package/readme.md +3 -5
- package/apple-touch-icon.png +0 -0
- package/assets/index.1f5e1902.js +0 -10
- package/assets/index.a1009f35.css +0 -1
- package/assets/vendor.d012860f.js +0 -57
- package/changelog.md +0 -919
- package/favicon-16x16.png +0 -0
- package/favicon-32x32.png +0 -0
- package/favicon.ico +0 -0
- package/favicon.svg +0 -23
- package/index.html +0 -27
- package/manifest.webmanifest +0 -1
- package/pwa-192x192.png +0 -0
- package/pwa-512x512.png +0 -0
- package/registerSW.js +0 -1
- package/robots.txt +0 -3
- package/showcase/alert.md +0 -3
- package/showcase/appbar.md +0 -8
- package/showcase/autocomplete.md +0 -53
- package/showcase/backdrop.md +0 -11
- package/showcase/badge.md +0 -8
- package/showcase/breadcrumb.md +0 -5
- package/showcase/button.md +0 -11
- package/showcase/buttongroup.md +0 -5
- package/showcase/card.md +0 -9
- package/showcase/checkbox.md +0 -7
- package/showcase/chip.md +0 -7
- package/showcase/dateselect.md +0 -8
- package/showcase/drawer.md +0 -13
- package/showcase/expansionpanel.md +0 -40
- package/showcase/fileinput.md +0 -6
- package/showcase/floatingactionbutton.md +0 -8
- package/showcase/form.md +0 -7
- package/showcase/grid.md +0 -5
- package/showcase/hookuseconstructor.md +0 -3
- package/showcase/hookusedebounce.md +0 -5
- package/showcase/hookusehover.md +0 -8
- package/showcase/hookusewindowsize.md +0 -5
- package/showcase/icon.md +0 -3
- package/showcase/iconbutton.md +0 -5
- package/showcase/link.md +0 -1
- package/showcase/list.md +0 -7
- package/showcase/loadingindicator.md +0 -18
- package/showcase/menu.md +0 -18
- package/showcase/modal.md +0 -17
- package/showcase/numberselect.md +0 -20
- package/showcase/select.md +0 -27
- package/showcase/snackbar.md +0 -22
- package/showcase/speeddial.md +0 -43
- package/showcase/stepper.md +0 -1
- package/showcase/table.md +0 -34
- package/showcase/tabs.md +0 -35
- package/showcase/timeselect.md +0 -1
- package/showcase/tooltip.md +0 -6
- package/showcase/treeview.md +0 -12
- package/showcase/typography.md +0 -6
- package/sw.js +0 -1
- package/workbox-6cd28afd.js +0 -1
|
@@ -0,0 +1,9 @@
|
|
|
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;
|
|
@@ -0,0 +1,6 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,7 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,11 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,11 @@
|
|
|
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;
|
|
@@ -0,0 +1,12 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type MenuPosition = 'right' | 'left';
|
|
@@ -0,0 +1,19 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,14 @@
|
|
|
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;
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
shadow?: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,12 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './NumberSelect';
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
readOnly?: boolean;
|
|
13
|
+
onChange?: (val: string | Array<string>) => void;
|
|
14
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const Select: (props: ISelectProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Select';
|
|
@@ -0,0 +1,9 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,9 @@
|
|
|
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;
|
|
@@ -0,0 +1,5 @@
|
|
|
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;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export interface IStepProps {
|
|
3
|
+
value: string;
|
|
4
|
+
index?: number;
|
|
5
|
+
label?: ReactNode;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
showLabel?: boolean;
|
|
8
|
+
isActive?: boolean;
|
|
9
|
+
isDone?: boolean;
|
|
10
|
+
isDisabled?: boolean;
|
|
11
|
+
isOptional?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
showProgressCheckIcon?: boolean;
|
|
14
|
+
onClick?: (e: {
|
|
15
|
+
event: React.MouseEvent;
|
|
16
|
+
value: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const Step: (props: IStepProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Step';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { IStepProps } from './Step';
|
|
3
|
+
export interface IStepperProps {
|
|
4
|
+
children?: ReactElement<IStepProps> | Array<ReactElement<IStepProps>>;
|
|
5
|
+
isLinear?: boolean;
|
|
6
|
+
isDisabled?: boolean;
|
|
7
|
+
showLabel?: boolean;
|
|
8
|
+
showProgressCheckIcon?: boolean;
|
|
9
|
+
isHorizontal?: boolean;
|
|
10
|
+
onChange?: (val: number) => void;
|
|
11
|
+
onFinish?: () => void;
|
|
12
|
+
alternativeLabel?: boolean;
|
|
13
|
+
value?: number;
|
|
14
|
+
isReadonly?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const Stepper: (props: IStepperProps) => JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface IStepperActionsProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
isCompleted?: boolean;
|
|
5
|
+
isFirstStep?: boolean;
|
|
6
|
+
isStepOptional?: boolean;
|
|
7
|
+
onBack?: () => void;
|
|
8
|
+
onSkip?: () => void;
|
|
9
|
+
onNext?: () => void;
|
|
10
|
+
onReset?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const StepperActions: (props: IStepperActionsProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './StepperActions';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
export interface ITableProps {
|
|
3
|
+
children?: ReactElement | Array<ReactElement>;
|
|
4
|
+
className?: string;
|
|
5
|
+
striped?: boolean;
|
|
6
|
+
bordered?: boolean;
|
|
7
|
+
hover?: boolean;
|
|
8
|
+
responsive?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const Table: (props: ITableProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Table';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export interface ITabProps {
|
|
3
|
+
label: ReactNode;
|
|
4
|
+
value: string;
|
|
5
|
+
isActive?: boolean;
|
|
6
|
+
fixed?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
onClick?: (e: {
|
|
10
|
+
event: React.MouseEvent;
|
|
11
|
+
value: string;
|
|
12
|
+
}) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const Tab: (props: ITabProps) => JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { COLOR } from '../component.enums';
|
|
3
|
+
export interface ITabIndicatorProps extends React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
4
|
+
amount?: number;
|
|
5
|
+
index?: number;
|
|
6
|
+
color?: COLOR;
|
|
7
|
+
width?: string;
|
|
8
|
+
left?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const TabIndicator: (props: ITabIndicatorProps) => JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
|
+
import { COLOR } from '../component.enums';
|
|
3
|
+
import { ITabProps } from './Tab';
|
|
4
|
+
export interface ITabOnChangeEvent {
|
|
5
|
+
event: React.MouseEvent;
|
|
6
|
+
newValue: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ITabsProps {
|
|
9
|
+
color?: COLOR;
|
|
10
|
+
indicatorColor?: COLOR;
|
|
11
|
+
children?: ReactElement<ITabProps> | Array<ReactElement<ITabProps>>;
|
|
12
|
+
className?: string;
|
|
13
|
+
fixed?: boolean;
|
|
14
|
+
onChange?: (e: ITabOnChangeEvent) => void;
|
|
15
|
+
value?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const Tabs: (props: ITabsProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Textarea';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface IHourProps {
|
|
3
|
+
value?: number;
|
|
4
|
+
className?: string;
|
|
5
|
+
id?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
onChange?: (val: number) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const HourSelect: (props: IHourProps) => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface IMilliSecondProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
value?: number;
|
|
5
|
+
steps?: number;
|
|
6
|
+
id?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
onChange?: (val: number) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const MilliSecondSelect: (props: IMilliSecondProps) => JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface IMinuteProps {
|
|
3
|
+
value?: number;
|
|
4
|
+
className?: string;
|
|
5
|
+
id?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
onChange?: (val: number) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const MinuteSelect: (props: IMinuteProps) => JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ISecondProps {
|
|
3
|
+
value?: number;
|
|
4
|
+
className?: string;
|
|
5
|
+
id?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
onChange?: (val: number) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const SecondSelect: (props: ISecondProps) => JSX.Element;
|