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.
Files changed (238) hide show
  1. package/components/Alert/Alert.d.ts +11 -0
  2. package/components/Alert/index.d.ts +1 -0
  3. package/components/AppBar/AppBar.d.ts +9 -0
  4. package/components/AppBar/AppBarTitle.d.ts +5 -0
  5. package/components/AppBar/index.d.ts +2 -0
  6. package/components/AutoComplete/AutoComplete.d.ts +19 -0
  7. package/components/AutoComplete/index.d.ts +1 -0
  8. package/components/Backdrop/Backdrop.d.ts +7 -0
  9. package/components/Backdrop/index.d.ts +1 -0
  10. package/components/Badge/Badge.d.ts +7 -0
  11. package/components/Badge/index.d.ts +1 -0
  12. package/components/Breadcrumb/Breadcrumb.d.ts +5 -0
  13. package/components/Breadcrumb/BreadcrumbItem.d.ts +6 -0
  14. package/components/Breadcrumb/index.d.ts +2 -0
  15. package/components/Button/Button.d.ts +12 -0
  16. package/components/Button/index.d.ts +1 -0
  17. package/components/ButtonGroup/ButtonGroup.d.ts +2 -0
  18. package/components/ButtonGroup/index.d.ts +1 -0
  19. package/components/Card/Card.d.ts +6 -0
  20. package/components/Card/CardBody.d.ts +2 -0
  21. package/components/Card/CardFooter.d.ts +2 -0
  22. package/components/Card/CardImage.d.ts +2 -0
  23. package/components/Card/CardSubtitle.d.ts +2 -0
  24. package/components/Card/CardText.d.ts +2 -0
  25. package/components/Card/CardTitle.d.ts +6 -0
  26. package/components/Card/index.d.ts +7 -0
  27. package/components/Checkbox/Checkbox.d.ts +7 -0
  28. package/components/Checkbox/index.d.ts +1 -0
  29. package/components/Chip/Chip.d.ts +11 -0
  30. package/components/Chip/index.d.ts +1 -0
  31. package/components/ConditionalWrapper/ConditionalWrapper.d.ts +8 -0
  32. package/components/ConditionalWrapper/index.d.ts +1 -0
  33. package/components/DateSelect/DateSelect.d.ts +17 -0
  34. package/components/DateSelect/DaySelect.d.ts +12 -0
  35. package/components/DateSelect/MonthSelect.d.ts +10 -0
  36. package/components/DateSelect/YearSelect.d.ts +12 -0
  37. package/components/DateSelect/index.d.ts +4 -0
  38. package/components/Drawer/Drawer.d.ts +9 -0
  39. package/components/Drawer/index.d.ts +1 -0
  40. package/components/ExpansionPanel/ExpansionPanel.d.ts +8 -0
  41. package/components/ExpansionPanel/ExpansionPanelContent.d.ts +5 -0
  42. package/components/ExpansionPanel/ExpansionPanelHeader.d.ts +7 -0
  43. package/components/ExpansionPanel/index.d.ts +3 -0
  44. package/components/FileInput/FileInput.d.ts +5 -0
  45. package/components/FileInput/index.d.ts +1 -0
  46. package/components/FloatingActionButton/FloatingActionButton.d.ts +12 -0
  47. package/components/FloatingActionButton/index.d.ts +1 -0
  48. package/components/Form/Form.d.ts +38 -0
  49. package/components/Form/FormError.d.ts +8 -0
  50. package/components/Form/FormGroup.d.ts +7 -0
  51. package/components/Form/FormHint/FormHint.d.ts +2 -0
  52. package/components/Form/FormHint/index.d.ts +1 -0
  53. package/components/Form/FormInput/FormInput.d.ts +29 -0
  54. package/components/Form/FormInput/index.d.ts +1 -0
  55. package/components/Form/FormLabel/FormLabel.d.ts +2 -0
  56. package/components/Form/FormLabel/index.d.ts +1 -0
  57. package/components/Form/form.interfaces.d.ts +42 -0
  58. package/components/Form/form.models.d.ts +12 -0
  59. package/components/Form/form.types.d.ts +2 -0
  60. package/components/Form/index.d.ts +10 -0
  61. package/components/Form/validators/EmailValidtor.d.ts +1 -0
  62. package/components/Form/validators/IsEmptyValidator.d.ts +1 -0
  63. package/components/Form/validators/IsEqualValidator.d.ts +1 -0
  64. package/components/Form/validators/index.d.ts +3 -0
  65. package/components/Grid/Column/Column.d.ts +10 -0
  66. package/components/Grid/Column/index.d.ts +1 -0
  67. package/components/Grid/Row/Row.d.ts +5 -0
  68. package/components/Grid/Row/index.d.ts +1 -0
  69. package/components/Grid/index.d.ts +2 -0
  70. package/components/Icon/Icon.d.ts +6 -0
  71. package/components/Icon/index.d.ts +1 -0
  72. package/components/IconButton/IconButton.d.ts +11 -0
  73. package/components/IconButton/index.d.ts +1 -0
  74. package/components/Link/Link.d.ts +2 -0
  75. package/components/Link/Link.test.d.ts +1 -0
  76. package/components/Link/index.d.ts +1 -0
  77. package/components/List/List.d.ts +5 -0
  78. package/components/List/ListItem.d.ts +9 -0
  79. package/components/List/ListItemAction.d.ts +2 -0
  80. package/components/List/ListItemAvatar.d.ts +6 -0
  81. package/components/List/ListItemIcon.d.ts +6 -0
  82. package/components/List/ListItemText.d.ts +7 -0
  83. package/components/List/index.d.ts +6 -0
  84. package/components/List/list.models.d.ts +8 -0
  85. package/components/LoadingIndicator/LoadingIndicator.d.ts +2 -0
  86. package/components/LoadingIndicator/LoadingIndicatorContainer.d.ts +5 -0
  87. package/components/LoadingIndicator/index.d.ts +3 -0
  88. package/components/LoadingIndicator/loading-indicator.service.d.ts +11 -0
  89. package/components/Menu/Menu.d.ts +11 -0
  90. package/components/Menu/MenuBackdrop.d.ts +6 -0
  91. package/components/Menu/MenuBody.d.ts +12 -0
  92. package/components/Menu/MenuContext.d.ts +6 -0
  93. package/components/Menu/MenuDivider.d.ts +2 -0
  94. package/components/Menu/MenuItem.d.ts +8 -0
  95. package/components/Menu/MenuToggle.d.ts +6 -0
  96. package/components/Menu/index.d.ts +6 -0
  97. package/components/Menu/menu.types.d.ts +1 -0
  98. package/components/Modal/GlobalModal.d.ts +19 -0
  99. package/components/Modal/Modal.d.ts +14 -0
  100. package/components/Modal/ModalBody.d.ts +6 -0
  101. package/components/Modal/ModalFooter.d.ts +2 -0
  102. package/components/Modal/ModalHeader.d.ts +7 -0
  103. package/components/Modal/index.d.ts +8 -0
  104. package/components/Modal/modal.enum.d.ts +10 -0
  105. package/components/Modal/modal.interfaces.d.ts +12 -0
  106. package/components/Modal/modal.service.d.ts +21 -0
  107. package/components/NumberSelect/NumberSelect.d.ts +12 -0
  108. package/components/NumberSelect/index.d.ts +1 -0
  109. package/components/Select/Select.d.ts +16 -0
  110. package/components/Select/index.d.ts +1 -0
  111. package/components/Sidebar/Sidebar.d.ts +9 -0
  112. package/components/Sidebar/index.d.ts +2 -0
  113. package/components/Sidebar/sidebar.interfaces.d.ts +9 -0
  114. package/components/Sidebar/sidebar.models.d.ts +11 -0
  115. package/components/Snackbar/Snackbar.d.ts +8 -0
  116. package/components/Snackbar/index.d.ts +2 -0
  117. package/components/Snackbar/snackbar.service.d.ts +19 -0
  118. package/components/SpeedDial/SpeedDial.d.ts +7 -0
  119. package/components/SpeedDial/SpeedDialAction.d.ts +9 -0
  120. package/components/SpeedDial/SpeedDialActions.d.ts +2 -0
  121. package/components/SpeedDial/SpeedDialIcon.d.ts +5 -0
  122. package/components/SpeedDial/index.d.ts +3 -0
  123. package/components/Stepper/Step/Step.d.ts +19 -0
  124. package/components/Stepper/Step/index.d.ts +1 -0
  125. package/components/Stepper/StepConnector/StepConnector.d.ts +6 -0
  126. package/components/Stepper/StepPanel/StepPanel.d.ts +5 -0
  127. package/components/Stepper/Stepper.d.ts +16 -0
  128. package/components/Stepper/StepperActions/StepperActions.d.ts +12 -0
  129. package/components/Stepper/StepperActions/index.d.ts +1 -0
  130. package/components/Stepper/index.d.ts +3 -0
  131. package/components/Table/Table.d.ts +10 -0
  132. package/components/Table/index.d.ts +1 -0
  133. package/components/Tabs/Tab.d.ts +14 -0
  134. package/components/Tabs/TabIndicator.d.ts +10 -0
  135. package/components/Tabs/TabPanel.d.ts +6 -0
  136. package/components/Tabs/Tabs.d.ts +17 -0
  137. package/components/Tabs/index.d.ts +3 -0
  138. package/components/Textarea/Textarea.d.ts +5 -0
  139. package/components/Textarea/index.d.ts +1 -0
  140. package/components/TimeSelect/HourSelect.d.ts +10 -0
  141. package/components/TimeSelect/MilliSecondSelect.d.ts +11 -0
  142. package/components/TimeSelect/MinuteSelect.d.ts +10 -0
  143. package/components/TimeSelect/SecondSelect.d.ts +10 -0
  144. package/components/TimeSelect/TimeSelect.d.ts +20 -0
  145. package/components/TimeSelect/index.d.ts +5 -0
  146. package/components/Tooltip/Tooltip.d.ts +6 -0
  147. package/components/Tooltip/index.d.ts +1 -0
  148. package/components/TreeView/TreeItem.d.ts +14 -0
  149. package/components/TreeView/TreeView.d.ts +2 -0
  150. package/components/TreeView/index.d.ts +2 -0
  151. package/components/Typography/Typography.d.ts +10 -0
  152. package/components/Typography/index.d.ts +1 -0
  153. package/components/component.enums.d.ts +25 -0
  154. package/components/component.interfaces.d.ts +18 -0
  155. package/components/index.d.ts +41 -0
  156. package/hooks/index.d.ts +4 -0
  157. package/hooks/useConstructor.d.ts +1 -0
  158. package/hooks/useDebounce.d.ts +2 -0
  159. package/hooks/useHover.d.ts +2 -0
  160. package/hooks/useWindowSize.d.ts +4 -0
  161. package/icons/CaretDownSolidIcon.d.ts +2 -0
  162. package/icons/CheckSolidIcon.d.ts +2 -0
  163. package/icons/CheckSquareRegularIcon.d.ts +2 -0
  164. package/icons/ChevronDownSolidIcon.d.ts +2 -0
  165. package/icons/ChevronLeftSolidIcon.d.ts +2 -0
  166. package/icons/ChevronRightSolidIcon.d.ts +2 -0
  167. package/icons/ChevronUpSolidIcon.d.ts +2 -0
  168. package/icons/CircleSolidIcon.d.ts +2 -0
  169. package/icons/HomeSolidIcon.d.ts +2 -0
  170. package/icons/PlusSolidIcon.d.ts +2 -0
  171. package/icons/SpinnerSolidIcon.d.ts +2 -0
  172. package/icons/SquareRegularIcon.d.ts +2 -0
  173. package/icons/TimesCircleSolidIcon.d.ts +2 -0
  174. package/icons/TimesSolidIcon.d.ts +2 -0
  175. package/icons/index.d.ts +14 -0
  176. package/index.d.ts +3 -0
  177. package/index.es.js +2635 -0
  178. package/index.js +2751 -0
  179. package/package.json +1 -3
  180. package/react-asc.scss +4 -0
  181. package/readme.md +3 -5
  182. package/apple-touch-icon.png +0 -0
  183. package/assets/index.1f5e1902.js +0 -10
  184. package/assets/index.a1009f35.css +0 -1
  185. package/assets/vendor.d012860f.js +0 -57
  186. package/changelog.md +0 -919
  187. package/favicon-16x16.png +0 -0
  188. package/favicon-32x32.png +0 -0
  189. package/favicon.ico +0 -0
  190. package/favicon.svg +0 -23
  191. package/index.html +0 -27
  192. package/manifest.webmanifest +0 -1
  193. package/pwa-192x192.png +0 -0
  194. package/pwa-512x512.png +0 -0
  195. package/registerSW.js +0 -1
  196. package/robots.txt +0 -3
  197. package/showcase/alert.md +0 -3
  198. package/showcase/appbar.md +0 -8
  199. package/showcase/autocomplete.md +0 -53
  200. package/showcase/backdrop.md +0 -11
  201. package/showcase/badge.md +0 -8
  202. package/showcase/breadcrumb.md +0 -5
  203. package/showcase/button.md +0 -11
  204. package/showcase/buttongroup.md +0 -5
  205. package/showcase/card.md +0 -9
  206. package/showcase/checkbox.md +0 -7
  207. package/showcase/chip.md +0 -7
  208. package/showcase/dateselect.md +0 -8
  209. package/showcase/drawer.md +0 -13
  210. package/showcase/expansionpanel.md +0 -40
  211. package/showcase/fileinput.md +0 -6
  212. package/showcase/floatingactionbutton.md +0 -8
  213. package/showcase/form.md +0 -7
  214. package/showcase/grid.md +0 -5
  215. package/showcase/hookuseconstructor.md +0 -3
  216. package/showcase/hookusedebounce.md +0 -5
  217. package/showcase/hookusehover.md +0 -8
  218. package/showcase/hookusewindowsize.md +0 -5
  219. package/showcase/icon.md +0 -3
  220. package/showcase/iconbutton.md +0 -5
  221. package/showcase/link.md +0 -1
  222. package/showcase/list.md +0 -7
  223. package/showcase/loadingindicator.md +0 -18
  224. package/showcase/menu.md +0 -18
  225. package/showcase/modal.md +0 -17
  226. package/showcase/numberselect.md +0 -20
  227. package/showcase/select.md +0 -27
  228. package/showcase/snackbar.md +0 -22
  229. package/showcase/speeddial.md +0 -43
  230. package/showcase/stepper.md +0 -1
  231. package/showcase/table.md +0 -34
  232. package/showcase/tabs.md +0 -35
  233. package/showcase/timeselect.md +0 -1
  234. package/showcase/tooltip.md +0 -6
  235. package/showcase/treeview.md +0 -12
  236. package/showcase/typography.md +0 -6
  237. package/sw.js +0 -1
  238. 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,2 @@
1
+ import React from 'react';
2
+ export declare const ListItemAction: ({ children, onClick, ...rest }: React.ComponentProps<"div">) => 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,6 @@
1
+ import React from 'react';
2
+ interface IListItemIconProps extends React.ComponentProps<"div"> {
3
+ icon: React.SVGProps<SVGSVGElement>;
4
+ }
5
+ export declare const ListItemIcon: ({ icon, ...rest }: IListItemIconProps) => 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,6 @@
1
+ export * from './List';
2
+ export * from './ListItem';
3
+ export * from './ListItemAvatar';
4
+ export * from './ListItemIcon';
5
+ export * from './ListItemAction';
6
+ export * from './ListItemText';
@@ -0,0 +1,8 @@
1
+ import { ReactElement } from 'react';
2
+ import { IListItemProps } from './ListItem';
3
+ export declare class ListItemModel {
4
+ constructor(dto: ReactElement<IListItemProps>);
5
+ key: unknown;
6
+ props: IListItemProps | undefined;
7
+ type: unknown;
8
+ }
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const LoadingIndicator: ({ ...rest }: React.ComponentProps<"div">) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export interface ILoadingIndicatorContainerProps {
3
+ children: React.ReactNode;
4
+ }
5
+ export declare const LoadingIndicatorContainer: ({ children }: ILoadingIndicatorContainerProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ export * from './LoadingIndicator';
2
+ export * from './LoadingIndicatorContainer';
3
+ export * from './loading-indicator.service';
@@ -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,6 @@
1
+ import React from 'react';
2
+ interface IMenuBackdropProps {
3
+ onClick?: () => void;
4
+ }
5
+ export declare const MenuBackdrop: ({ onClick }: IMenuBackdropProps) => React.ReactPortal;
6
+ export {};
@@ -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,6 @@
1
+ import { Dispatch } from 'react';
2
+ export interface IMenuContext {
3
+ isShow: boolean;
4
+ setIsShow: Dispatch<boolean>;
5
+ }
6
+ export declare const MenuContext: import("react").Context<IMenuContext>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const MenuDivider: () => JSX.Element;
@@ -0,0 +1,8 @@
1
+ import React, { ReactNode } from 'react';
2
+ export interface IMenuItemProps {
3
+ key?: string;
4
+ children?: ReactNode;
5
+ onClick?: (e: React.MouseEvent) => void;
6
+ type?: 'item' | 'header';
7
+ }
8
+ export declare const MenuItem: (props: IMenuItemProps) => JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ interface IMenuToggleProps {
3
+ children?: ReactNode;
4
+ }
5
+ export declare const MenuToggle: ({ children }: IMenuToggleProps) => JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ export * from './Menu';
2
+ export * from './MenuBody';
3
+ export * from './MenuItem';
4
+ export * from './MenuToggle';
5
+ export * from './MenuDivider';
6
+ export * from './menu.types';
@@ -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,6 @@
1
+ import { ReactNode } from 'react';
2
+ interface IModalBodyProps {
3
+ children?: ReactNode;
4
+ }
5
+ export declare const ModalBody: ({ children }: IModalBodyProps) => JSX.Element;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ModalFooter: ({ children }: React.ComponentProps<'div'>) => JSX.Element;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface IModalHeaderProps extends React.ComponentProps<'div'> {
3
+ onClose?: () => void;
4
+ isDismissable?: boolean;
5
+ }
6
+ export declare const ModalHeader: (props: IModalHeaderProps) => JSX.Element;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ export * from './Modal';
2
+ export * from './ModalBody';
3
+ export * from './ModalFooter';
4
+ export * from './ModalHeader';
5
+ export * from './modal.service';
6
+ export * from './GlobalModal';
7
+ export * from './modal.enum';
8
+ export * from './modal.interfaces';
@@ -0,0 +1,10 @@
1
+ export declare enum MODALTYPE {
2
+ BASIC = "BASIC",
3
+ FORM = "FORM"
4
+ }
5
+ export declare enum MODALBUTTONTYPE {
6
+ OK = "OK",
7
+ CANCEL = "CANCEL",
8
+ RESET = "RESET",
9
+ DEFAULT = "DEFAULT"
10
+ }
@@ -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,2 @@
1
+ export * from './Sidebar';
2
+ export * from './sidebar.interfaces';
@@ -0,0 +1,9 @@
1
+ export interface ISidebarItem {
2
+ id: string;
3
+ path: string;
4
+ label: string;
5
+ icon?: string;
6
+ items?: Array<ISidebarItem>;
7
+ isCollapsible?: boolean;
8
+ isCollapsed?: boolean;
9
+ }
@@ -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,2 @@
1
+ export * from './Snackbar';
2
+ export * from './snackbar.service';
@@ -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,2 @@
1
+ import React from 'react';
2
+ export declare const SpeedDialActions: (props: React.ComponentProps<'div'>) => 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,3 @@
1
+ export * from './SpeedDial';
2
+ export * from './SpeedDialAction';
3
+ export * from './SpeedDialIcon';
@@ -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,6 @@
1
+ /// <reference types="react" />
2
+ export interface IStepConnectorProps {
3
+ isActive?: boolean;
4
+ isHorizontal?: boolean;
5
+ }
6
+ export declare const StepConnector: (props: IStepConnectorProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from 'react';
2
+ export interface IStepPanelProps {
3
+ children?: ReactNode;
4
+ }
5
+ export declare const StepPanel: (props: IStepPanelProps) => JSX.Element;
@@ -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,3 @@
1
+ export * from './Stepper';
2
+ export * from './StepperActions';
3
+ export * from './Step';
@@ -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,6 @@
1
+ import React from 'react';
2
+ export interface ITabPanelProps extends React.DetailedHTMLProps<React.HTMLProps<HTMLDivElement>, HTMLDivElement> {
3
+ value: string;
4
+ index: string;
5
+ }
6
+ export declare const TabPanel: (props: ITabPanelProps) => 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,3 @@
1
+ export * from './Tabs';
2
+ export * from './Tab';
3
+ export * from './TabPanel';
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export interface ITextareaProps extends React.ComponentProps<"textarea"> {
3
+ error?: boolean;
4
+ }
5
+ export declare const Textarea: (props: ITextareaProps) => 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;