react-asc 20.2.0 → 21.0.3

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 +13 -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 +2636 -0
  178. package/index.js +2752 -0
  179. package/package.json +1 -3
  180. package/react-asc.scss +160 -116
  181. package/readme.md +56 -60
  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,11 @@
1
+ import React, { ReactNode } from 'react';
2
+ import { VARIANT } from '../component.enums';
3
+ import { COLOR, SIZE } from '../component.enums';
4
+ export interface IAlertProps extends React.ComponentProps<"div"> {
5
+ children?: ReactNode;
6
+ className?: string;
7
+ variant?: VARIANT;
8
+ color?: COLOR;
9
+ shadow?: boolean | SIZE.sm | SIZE.md | SIZE.lg;
10
+ }
11
+ export declare const Alert: (props: IAlertProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Alert';
@@ -0,0 +1,9 @@
1
+ import React, { ReactNode } from 'react';
2
+ import { COLOR, SIZE } from '../component.enums';
3
+ export interface IAppBarProps extends React.ComponentProps<"nav"> {
4
+ children?: ReactNode;
5
+ className?: string;
6
+ color?: COLOR.primary | COLOR.light;
7
+ shadow?: boolean | SIZE.sm | SIZE.md | SIZE.lg;
8
+ }
9
+ export declare const AppBar: (props: IAppBarProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React, { ReactNode } from 'react';
2
+ export interface IAppBarTitleProps extends React.ComponentProps<"div"> {
3
+ children?: ReactNode;
4
+ }
5
+ export declare const AppBarTitle: (props: IAppBarTitleProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './AppBar';
2
+ export * from './AppBarTitle';
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import { ISelectOption } from '../component.interfaces';
3
+ export interface IAutoCompleteProps {
4
+ id?: string;
5
+ name?: string;
6
+ className?: string;
7
+ options?: Array<ISelectOption>;
8
+ value?: string;
9
+ openOnFocus?: boolean;
10
+ disabled?: boolean;
11
+ placeholder?: string;
12
+ readOnly?: boolean;
13
+ debounce?: number;
14
+ showNoEntry?: boolean;
15
+ showClearButton?: boolean;
16
+ onSelect?: (val: ISelectOption) => void;
17
+ onChange?: (val: string | undefined) => void;
18
+ }
19
+ export declare const AutoComplete: (props: IAutoCompleteProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './AutoComplete';
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface IBackdropProps extends React.ComponentProps<"div"> {
3
+ target?: HTMLElement;
4
+ isTransparent?: boolean;
5
+ }
6
+ export declare const Backdrop: (props: IBackdropProps) => React.ReactPortal;
7
+ export {};
@@ -0,0 +1 @@
1
+ export * from './Backdrop';
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { COLOR } from "../component.enums";
3
+ export interface IBadgeProps extends React.ComponentProps<"div"> {
4
+ color?: COLOR;
5
+ content?: React.ReactNode;
6
+ }
7
+ export declare const Badge: (props: IBadgeProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Badge';
@@ -0,0 +1,5 @@
1
+ import React, { ReactNode } from 'react';
2
+ export interface IBreadcrumbProps extends React.ComponentProps<"nav"> {
3
+ children?: ReactNode;
4
+ }
5
+ export declare const Breadcrumb: (props: IBreadcrumbProps) => JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface IBreadcrumbItemProps extends React.ComponentProps<'li'> {
3
+ isActive?: boolean;
4
+ path?: string;
5
+ }
6
+ export declare const BreadcrumbItem: (props: IBreadcrumbItemProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './Breadcrumb';
2
+ export * from './BreadcrumbItem';
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { COLOR, VARIANT } from '../component.enums';
3
+ export interface IButtonProps extends React.ComponentProps<"button"> {
4
+ color?: COLOR;
5
+ isActive?: boolean;
6
+ isRounded?: boolean;
7
+ variant?: VARIANT;
8
+ startIcon?: React.SVGProps<SVGSVGElement>;
9
+ endIcon?: React.SVGProps<SVGSVGElement>;
10
+ shadow?: boolean;
11
+ block?: boolean;
12
+ }
13
+ export declare const Button: React.FunctionComponent<IButtonProps>;
@@ -0,0 +1 @@
1
+ export * from './Button';
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ButtonGroup: (props: React.ComponentProps<"div">) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './ButtonGroup';
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface ICardProps extends React.ComponentProps<"div"> {
3
+ shadow?: boolean;
4
+ }
5
+ export declare const Card: (props: ICardProps) => JSX.Element;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const CardBody: (props: React.ComponentProps<"div">) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const CardFooter: (props: React.ComponentProps<"div">) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const CardImage: (props: React.ComponentProps<"img">) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const CardSubtitle: (props: React.ComponentProps<"div">) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const CardText: (props: React.ComponentProps<"p">) => JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface ICardTitleProps extends React.ComponentProps<"div"> {
3
+ as?: any;
4
+ }
5
+ export declare const CardTitle: (props: ICardTitleProps) => JSX.Element;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ export * from './Card';
2
+ export * from './CardBody';
3
+ export * from './CardFooter';
4
+ export * from './CardSubtitle';
5
+ export * from './CardText';
6
+ export * from './CardTitle';
7
+ export * from './CardImage';
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export interface ICheckboxProps extends React.ComponentProps<"input"> {
3
+ label?: string;
4
+ value?: string;
5
+ onKeyDown?: (event: React.KeyboardEvent) => void;
6
+ }
7
+ export declare const Checkbox: (props: ICheckboxProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Checkbox';
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { COLOR } from '../component.enums';
3
+ export interface IChipProps extends React.ComponentProps<"div"> {
4
+ color?: COLOR;
5
+ shadow?: boolean;
6
+ onClick?: (e: React.MouseEvent<Element>) => void;
7
+ isDeletable?: boolean;
8
+ onDelete?: (e: React.MouseEvent<Element>) => void;
9
+ deleteIcon?: JSX.Element;
10
+ }
11
+ export declare const Chip: (props: IChipProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Chip';
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ interface IConditionalWrapperProps {
3
+ condition: boolean;
4
+ wrapper: (children: React.ReactNode) => JSX.Element;
5
+ children: any;
6
+ }
7
+ export declare const ConditionalWrapper: ({ condition, wrapper, children }: IConditionalWrapperProps) => any;
8
+ export {};
@@ -0,0 +1 @@
1
+ export * from './ConditionalWrapper';
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ export declare enum DATEMODE {
3
+ YEAR = 0,
4
+ MONTH = 1,
5
+ DAY = 2
6
+ }
7
+ export interface IDateSelectProps {
8
+ value?: Date;
9
+ className?: string;
10
+ disabled?: boolean;
11
+ yearConfig?: {
12
+ from?: number;
13
+ to?: number;
14
+ };
15
+ onChange?: (val: Date) => void;
16
+ }
17
+ export declare const DateSelect: (props: IDateSelectProps) => JSX.Element;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ export interface IDaySelectProps {
3
+ day?: number;
4
+ month?: number;
5
+ year?: number;
6
+ className?: string;
7
+ id?: string;
8
+ name?: string;
9
+ disabled?: boolean;
10
+ onChange?: (val: number) => void;
11
+ }
12
+ export declare const DaySelect: (props: IDaySelectProps) => JSX.Element;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ export interface IMonthProps {
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 MonthSelect: (props: IMonthProps) => JSX.Element;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ export interface IYearProps {
3
+ from?: number;
4
+ to?: number;
5
+ value?: number;
6
+ className?: string;
7
+ id?: string;
8
+ name?: string;
9
+ disabled?: boolean;
10
+ onChange?: (val: number) => void;
11
+ }
12
+ export declare const YearSelect: (props: IYearProps) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ export * from './DateSelect';
2
+ export * from './YearSelect';
3
+ export * from './DaySelect';
4
+ export * from './MonthSelect';
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export interface IDrawerProps extends React.ComponentProps<"div"> {
3
+ position?: 'left' | 'right';
4
+ shadow?: boolean;
5
+ onClickBackdrop?: () => void;
6
+ permanent?: boolean;
7
+ target?: HTMLElement;
8
+ }
9
+ export declare const Drawer: (props: IDrawerProps) => React.ReactPortal;
@@ -0,0 +1 @@
1
+ export * from './Drawer';
@@ -0,0 +1,8 @@
1
+ import React, { ReactNode } from 'react';
2
+ export interface IExpansionPanelProps {
3
+ header: ReactNode;
4
+ children: ReactNode;
5
+ isExpanded?: boolean;
6
+ onChange?: (event: React.MouseEvent, isExpanded: boolean) => void;
7
+ }
8
+ export declare const ExpansionPanel: (props: IExpansionPanelProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from 'react';
2
+ export interface IExpansionPanelContentProps {
3
+ children?: ReactNode;
4
+ }
5
+ export declare const ExpansionPanelContent: ({ children }: IExpansionPanelContentProps) => JSX.Element;
@@ -0,0 +1,7 @@
1
+ import React, { ReactNode } from 'react';
2
+ export interface IExpansionPanelHeaderProps {
3
+ onClick?: (event: React.MouseEvent) => void;
4
+ children?: ReactNode;
5
+ isExpanded: boolean;
6
+ }
7
+ export declare const ExpansionPanelHeader: (props: IExpansionPanelHeaderProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ export * from './ExpansionPanel';
2
+ export * from './ExpansionPanelHeader';
3
+ export * from './ExpansionPanelContent';
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export interface IFileInputProps extends React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> {
3
+ deletable?: boolean;
4
+ }
5
+ export declare const FileInput: (props: IFileInputProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './FileInput';
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { COLOR, SIZE } from '../component.enums';
3
+ export interface IFloatingActionButtonProps extends React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
4
+ icon?: React.SVGProps<SVGSVGElement>;
5
+ color?: COLOR;
6
+ size?: SIZE;
7
+ fixed?: boolean;
8
+ isActive?: boolean;
9
+ disabled?: boolean;
10
+ onClick?: (e: React.MouseEvent) => void;
11
+ }
12
+ export declare const FloatingActionButton: (props: IFloatingActionButtonProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './FloatingActionButton';
@@ -0,0 +1,38 @@
1
+ import React, { Component } from 'react';
2
+ import { IControls, IFormValues } from './form.interfaces';
3
+ import { FormControl } from './form.models';
4
+ export interface IFormProps {
5
+ controls: IControls;
6
+ validateOnBlur?: boolean;
7
+ onSubmit?: (values: IFormValues) => void;
8
+ onChange?: (values: IFormValues) => void;
9
+ submitOnEnter?: boolean;
10
+ }
11
+ export interface IFormState {
12
+ controls: IControls | undefined;
13
+ isValid: boolean;
14
+ isSubmitted: boolean;
15
+ isChanged: boolean;
16
+ submitOnEnter?: boolean;
17
+ }
18
+ export declare class Form extends Component<IFormProps, IFormState> {
19
+ constructor(props: IFormProps);
20
+ static getDerivedStateFromProps(nextProps: IFormProps, state: IFormState): {
21
+ controls: IControls;
22
+ } | null;
23
+ myForm: React.RefObject<HTMLFormElement>;
24
+ handleChange(): void;
25
+ private validateField;
26
+ private handleInputChange;
27
+ private handleOnBlur;
28
+ private isRequired;
29
+ private isInvalid;
30
+ getControl(name: string): FormControl;
31
+ private renderLabel;
32
+ handleFormSubmit(): void;
33
+ handleFormReset(): void;
34
+ handleOnKeyDown(e: React.KeyboardEvent<HTMLInputElement | undefined>): void;
35
+ destroy(): void;
36
+ getFormGroupCssClass(fieldKey: string): string | undefined;
37
+ render(): JSX.Element;
38
+ }
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { IFormInputError } from './form.interfaces';
3
+ interface IFormErrorProps {
4
+ className?: string;
5
+ errors?: Array<IFormInputError>;
6
+ }
7
+ export declare const FormError: (props: IFormErrorProps) => JSX.Element;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ interface IFormGroupProps {
3
+ children?: ReactNode;
4
+ className?: string;
5
+ }
6
+ export declare const FormGroup: (props: IFormGroupProps) => JSX.Element;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const FormHint: (props: React.ComponentProps<"small">) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './FormHint';
@@ -0,0 +1,29 @@
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;
@@ -0,0 +1 @@
1
+ export * from './FormInput';
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const FormLabel: ({ children, className, htmlFor, ...rest }: React.ComponentProps<"label">) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './FormLabel';
@@ -0,0 +1,42 @@
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
+ }
@@ -0,0 +1,12 @@
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
+ }
@@ -0,0 +1,2 @@
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';
@@ -0,0 +1,10 @@
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';
@@ -0,0 +1 @@
1
+ export declare const EmailValidator: (value: string) => boolean;
@@ -0,0 +1 @@
1
+ export declare const IsEmptyValidator: (value: unknown) => boolean;
@@ -0,0 +1 @@
1
+ export declare const IsEqualValidator: (valueA: unknown, valueB: unknown) => boolean;
@@ -0,0 +1,3 @@
1
+ export * from './EmailValidtor';
2
+ export * from './IsEmptyValidator';
3
+ export * from './IsEqualValidator';
@@ -0,0 +1,10 @@
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 {};
@@ -0,0 +1 @@
1
+ export * from './Column';
@@ -0,0 +1,5 @@
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;
@@ -0,0 +1 @@
1
+ export * from './Row';
@@ -0,0 +1,2 @@
1
+ export * from './Column';
2
+ export * from './Row';
@@ -0,0 +1,6 @@
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;
@@ -0,0 +1 @@
1
+ export * from './Icon';
@@ -0,0 +1,11 @@
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;
@@ -0,0 +1 @@
1
+ export * from './IconButton';
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const Link: (props: React.ComponentProps<"a">) => JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from './Link';
@@ -0,0 +1,5 @@
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;