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