react-asc 25.5.6 → 25.6.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 (210) hide show
  1. package/index.d.ts +772 -770
  2. package/index.es.js +4070 -4176
  3. package/index.js +4069 -4175
  4. package/lib/components/Alert/Alert.d.ts +12 -12
  5. package/lib/components/Alert/index.d.ts +1 -1
  6. package/lib/components/AppBar/AppBar.d.ts +11 -11
  7. package/lib/components/AppBar/AppBarTitle.d.ts +6 -6
  8. package/lib/components/AppBar/index.d.ts +2 -2
  9. package/lib/components/AutoComplete/AutoComplete.d.ts +18 -18
  10. package/lib/components/AutoComplete/index.d.ts +1 -1
  11. package/lib/components/Backdrop/Backdrop.d.ts +6 -6
  12. package/lib/components/Backdrop/index.d.ts +1 -1
  13. package/lib/components/Badge/Badge.d.ts +9 -7
  14. package/lib/components/Badge/index.d.ts +1 -1
  15. package/lib/components/Breadcrumb/Breadcrumb.d.ts +6 -6
  16. package/lib/components/Breadcrumb/BreadcrumbItem.d.ts +6 -6
  17. package/lib/components/Breadcrumb/index.d.ts +2 -2
  18. package/lib/components/Button/Button.d.ts +13 -13
  19. package/lib/components/Button/ButtonContext.d.ts +7 -7
  20. package/lib/components/Button/index.d.ts +2 -2
  21. package/lib/components/ButtonGroup/ButtonGroup.d.ts +6 -6
  22. package/lib/components/ButtonGroup/index.d.ts +1 -1
  23. package/lib/components/Card/Card.d.ts +6 -6
  24. package/lib/components/Card/CardBody.d.ts +2 -2
  25. package/lib/components/Card/CardFooter.d.ts +2 -2
  26. package/lib/components/Card/CardImage.d.ts +2 -2
  27. package/lib/components/Card/CardSubtitle.d.ts +2 -2
  28. package/lib/components/Card/CardText.d.ts +2 -2
  29. package/lib/components/Card/CardTitle.d.ts +6 -6
  30. package/lib/components/Card/index.d.ts +7 -7
  31. package/lib/components/Checkbox/Checkbox.d.ts +7 -7
  32. package/lib/components/Checkbox/index.d.ts +1 -1
  33. package/lib/components/Chip/Chip.d.ts +11 -11
  34. package/lib/components/Chip/index.d.ts +1 -1
  35. package/lib/components/ConditionalWrapper/ConditionalWrapper.d.ts +8 -8
  36. package/lib/components/ConditionalWrapper/index.d.ts +1 -1
  37. package/lib/components/CssTransition/CssTransition.d.ts +8 -8
  38. package/lib/components/CssTransition/index.d.ts +1 -1
  39. package/lib/components/DatePicker/DatePicker.d.ts +10 -10
  40. package/lib/components/DatePicker/index.d.ts +1 -1
  41. package/lib/components/DateSelect/DateSelect.d.ts +17 -17
  42. package/lib/components/DateSelect/DaySelect.d.ts +12 -12
  43. package/lib/components/DateSelect/MonthSelect.d.ts +10 -10
  44. package/lib/components/DateSelect/YearSelect.d.ts +12 -12
  45. package/lib/components/DateSelect/index.d.ts +4 -4
  46. package/lib/components/Drawer/Drawer.d.ts +9 -9
  47. package/lib/components/Drawer/index.d.ts +1 -1
  48. package/lib/components/ExpansionPanel/ExpansionPanel.d.ts +10 -10
  49. package/lib/components/ExpansionPanel/ExpansionPanelContent.d.ts +5 -5
  50. package/lib/components/ExpansionPanel/ExpansionPanelHeader.d.ts +8 -8
  51. package/lib/components/ExpansionPanel/index.d.ts +3 -3
  52. package/lib/components/FileInput/FileInput.d.ts +5 -5
  53. package/lib/components/FileInput/index.d.ts +1 -1
  54. package/lib/components/FloatingActionButton/FloatingActionButton.d.ts +13 -13
  55. package/lib/components/FloatingActionButton/index.d.ts +1 -1
  56. package/lib/components/Form/Form.d.ts +40 -40
  57. package/lib/components/Form/FormError.d.ts +8 -8
  58. package/lib/components/Form/FormGroup.d.ts +7 -7
  59. package/lib/components/Form/FormHint/FormHint.d.ts +2 -2
  60. package/lib/components/Form/FormHint/index.d.ts +1 -1
  61. package/lib/components/Form/FormInput/FormInput.d.ts +29 -29
  62. package/lib/components/Form/FormInput/index.d.ts +1 -1
  63. package/lib/components/Form/FormLabel/FormLabel.d.ts +2 -2
  64. package/lib/components/Form/FormLabel/index.d.ts +1 -1
  65. package/lib/components/Form/form.interfaces.d.ts +40 -40
  66. package/lib/components/Form/form.models.d.ts +12 -12
  67. package/lib/components/Form/form.types.d.ts +2 -2
  68. package/lib/components/Form/index.d.ts +10 -10
  69. package/lib/components/Form/validators/EmailValidtor.d.ts +1 -1
  70. package/lib/components/Form/validators/IsEmptyValidator.d.ts +1 -1
  71. package/lib/components/Form/validators/IsEqualValidator.d.ts +1 -1
  72. package/lib/components/Form/validators/MaxValidator.d.ts +1 -1
  73. package/lib/components/Form/validators/MinValidator.d.ts +1 -1
  74. package/lib/components/Form/validators/index.d.ts +5 -5
  75. package/lib/components/Grid/Column/Column.d.ts +10 -10
  76. package/lib/components/Grid/Column/index.d.ts +1 -1
  77. package/lib/components/Grid/Row/Row.d.ts +5 -5
  78. package/lib/components/Grid/Row/index.d.ts +1 -1
  79. package/lib/components/Grid/index.d.ts +2 -2
  80. package/lib/components/Icon/Icon.d.ts +8 -8
  81. package/lib/components/Icon/index.d.ts +1 -1
  82. package/lib/components/IconButton/IconButton.d.ts +11 -11
  83. package/lib/components/IconButton/index.d.ts +1 -1
  84. package/lib/components/Link/Link.d.ts +2 -2
  85. package/lib/components/Link/Link.test.d.ts +1 -1
  86. package/lib/components/Link/index.d.ts +1 -1
  87. package/lib/components/List/List.d.ts +5 -5
  88. package/lib/components/List/ListItem.d.ts +9 -9
  89. package/lib/components/List/ListItemAction.d.ts +2 -2
  90. package/lib/components/List/ListItemAvatar.d.ts +6 -6
  91. package/lib/components/List/ListItemIcon.d.ts +6 -6
  92. package/lib/components/List/ListItemText.d.ts +8 -8
  93. package/lib/components/List/index.d.ts +6 -6
  94. package/lib/components/List/list.models.d.ts +8 -8
  95. package/lib/components/LoadingIndicator/LoadingIndicator.d.ts +2 -2
  96. package/lib/components/LoadingIndicator/LoadingIndicatorContainer.d.ts +6 -6
  97. package/lib/components/LoadingIndicator/index.d.ts +3 -3
  98. package/lib/components/LoadingIndicator/loading-indicator.service.d.ts +12 -12
  99. package/lib/components/Menu/Menu.d.ts +12 -12
  100. package/lib/components/Menu/MenuBody.d.ts +13 -13
  101. package/lib/components/Menu/MenuContext.d.ts +6 -6
  102. package/lib/components/Menu/MenuDivider.d.ts +2 -2
  103. package/lib/components/Menu/MenuItem.d.ts +3 -3
  104. package/lib/components/Menu/MenuToggle.d.ts +6 -6
  105. package/lib/components/Menu/index.d.ts +6 -6
  106. package/lib/components/Menu/menu.types.d.ts +1 -1
  107. package/lib/components/Modal/GlobalModal.d.ts +21 -21
  108. package/lib/components/Modal/Modal.d.ts +15 -15
  109. package/lib/components/Modal/ModalBody.d.ts +6 -6
  110. package/lib/components/Modal/ModalFooter.d.ts +6 -6
  111. package/lib/components/Modal/ModalHeader.d.ts +8 -8
  112. package/lib/components/Modal/index.d.ts +8 -8
  113. package/lib/components/Modal/modal.enum.d.ts +10 -10
  114. package/lib/components/Modal/modal.interfaces.d.ts +12 -12
  115. package/lib/components/Modal/modal.service.d.ts +22 -22
  116. package/lib/components/NumberSelect/NumberSelect.d.ts +12 -12
  117. package/lib/components/NumberSelect/index.d.ts +1 -1
  118. package/lib/components/Portal/Portal.d.ts +7 -7
  119. package/lib/components/Portal/index.d.ts +1 -1
  120. package/lib/components/ProgressBar/ProgressBar.d.ts +9 -9
  121. package/lib/components/ProgressBar/index.d.ts +1 -1
  122. package/lib/components/Select/Select.d.ts +16 -16
  123. package/lib/components/Select/index.d.ts +1 -1
  124. package/lib/components/Sidebar/Sidebar.d.ts +9 -9
  125. package/lib/components/Sidebar/index.d.ts +2 -2
  126. package/lib/components/Sidebar/sidebar.interfaces.d.ts +9 -9
  127. package/lib/components/Sidebar/sidebar.models.d.ts +11 -11
  128. package/lib/components/Skeleton/SkeletonAvatar.d.ts +5 -5
  129. package/lib/components/Skeleton/SkeletonFooter.d.ts +5 -5
  130. package/lib/components/Skeleton/SkeletonImage.d.ts +5 -5
  131. package/lib/components/Skeleton/SkeletonText.d.ts +5 -5
  132. package/lib/components/Skeleton/index.d.ts +4 -4
  133. package/lib/components/Snackbar/Snackbar.d.ts +9 -9
  134. package/lib/components/Snackbar/index.d.ts +2 -2
  135. package/lib/components/Snackbar/snackbar.service.d.ts +20 -20
  136. package/lib/components/SpeedDial/SpeedDial.d.ts +7 -7
  137. package/lib/components/SpeedDial/SpeedDialAction.d.ts +9 -9
  138. package/lib/components/SpeedDial/SpeedDialActions.d.ts +2 -2
  139. package/lib/components/SpeedDial/SpeedDialIcon.d.ts +6 -6
  140. package/lib/components/SpeedDial/index.d.ts +3 -3
  141. package/lib/components/Stepper/Dot/Dot.d.ts +7 -7
  142. package/lib/components/Stepper/Dot/index.d.ts +1 -1
  143. package/lib/components/Stepper/Step/Step.d.ts +20 -20
  144. package/lib/components/Stepper/Step/index.d.ts +1 -1
  145. package/lib/components/Stepper/StepConnector/StepConnector.d.ts +6 -6
  146. package/lib/components/Stepper/StepPanel/StepPanel.d.ts +5 -5
  147. package/lib/components/Stepper/Stepper.d.ts +20 -20
  148. package/lib/components/Stepper/StepperActions/StepperActions.d.ts +14 -14
  149. package/lib/components/Stepper/StepperActions/index.d.ts +1 -1
  150. package/lib/components/Stepper/index.d.ts +4 -4
  151. package/lib/components/Table/Table.d.ts +8 -8
  152. package/lib/components/Table/TableBody.d.ts +2 -2
  153. package/lib/components/Table/TableCell.d.ts +5 -5
  154. package/lib/components/Table/TableContext.d.ts +6 -6
  155. package/lib/components/Table/TableHead.d.ts +2 -2
  156. package/lib/components/Table/TableRow.d.ts +2 -2
  157. package/lib/components/Table/index.d.ts +5 -5
  158. package/lib/components/Tabs/Tab.d.ts +13 -13
  159. package/lib/components/Tabs/TabContext.d.ts +8 -8
  160. package/lib/components/Tabs/TabIndicator.d.ts +10 -10
  161. package/lib/components/Tabs/TabPanel.d.ts +6 -6
  162. package/lib/components/Tabs/Tabs.d.ts +13 -13
  163. package/lib/components/Tabs/index.d.ts +3 -3
  164. package/lib/components/Textarea/Textarea.d.ts +5 -5
  165. package/lib/components/Textarea/index.d.ts +1 -1
  166. package/lib/components/TimeSelect/HourSelect.d.ts +10 -10
  167. package/lib/components/TimeSelect/MilliSecondSelect.d.ts +11 -11
  168. package/lib/components/TimeSelect/MinuteSelect.d.ts +10 -10
  169. package/lib/components/TimeSelect/SecondSelect.d.ts +10 -10
  170. package/lib/components/TimeSelect/TimeSelect.d.ts +20 -20
  171. package/lib/components/TimeSelect/index.d.ts +5 -5
  172. package/lib/components/Tooltip/Tooltip.d.ts +10 -10
  173. package/lib/components/Tooltip/index.d.ts +2 -1
  174. package/lib/components/Tooltip/tooltip.enums.d.ts +6 -6
  175. package/lib/components/TreeView/TreeItem.d.ts +14 -14
  176. package/lib/components/TreeView/TreeView.d.ts +2 -2
  177. package/lib/components/TreeView/index.d.ts +2 -2
  178. package/lib/components/Typography/Typography.d.ts +12 -12
  179. package/lib/components/Typography/index.d.ts +1 -1
  180. package/lib/components/component.enums.d.ts +26 -26
  181. package/lib/components/component.interfaces.d.ts +18 -18
  182. package/lib/components/index.d.ts +46 -46
  183. package/lib/hooks/index.d.ts +7 -7
  184. package/lib/hooks/useConstructor.d.ts +1 -1
  185. package/lib/hooks/useCssClasses.d.ts +1 -1
  186. package/lib/hooks/useDebounce.d.ts +2 -2
  187. package/lib/hooks/useHover.d.ts +2 -2
  188. package/lib/hooks/useMobileDetect.d.ts +3 -3
  189. package/lib/hooks/useOnDestroy.d.ts +1 -1
  190. package/lib/hooks/useWindowSize.d.ts +5 -5
  191. package/lib/icons/CaretDownSolidIcon.d.ts +2 -2
  192. package/lib/icons/CheckSolidIcon.d.ts +2 -2
  193. package/lib/icons/CheckSquareRegularIcon.d.ts +2 -2
  194. package/lib/icons/ChevronDownSolidIcon.d.ts +2 -2
  195. package/lib/icons/ChevronLeftSolidIcon.d.ts +2 -2
  196. package/lib/icons/ChevronRightSolidIcon.d.ts +2 -2
  197. package/lib/icons/ChevronUpSolidIcon.d.ts +2 -2
  198. package/lib/icons/CircleSolidIcon.d.ts +2 -2
  199. package/lib/icons/HomeSolidIcon.d.ts +2 -2
  200. package/lib/icons/PlusSolidIcon.d.ts +2 -2
  201. package/lib/icons/SpinnerSolidIcon.d.ts +2 -2
  202. package/lib/icons/SquareRegularIcon.d.ts +2 -2
  203. package/lib/icons/TimesCircleSolidIcon.d.ts +2 -2
  204. package/lib/icons/TimesSolidIcon.d.ts +2 -2
  205. package/lib/icons/index.d.ts +14 -14
  206. package/lib/index.d.ts +4 -4
  207. package/lib/interfaces/index.d.ts +1 -1
  208. package/lib/interfaces/interfaces.d.ts +3 -3
  209. package/package.json +9 -2
  210. package/vite.config.d.ts +2 -2
@@ -1,8 +1,8 @@
1
- import type { ReactNode } from 'react';
2
- import React from 'react';
3
- export interface IExpansionPanelHeaderProps {
4
- onClick?: (event: React.MouseEvent) => void;
5
- children?: ReactNode;
6
- isExpanded: boolean;
7
- }
8
- export declare const ExpansionPanelHeader: (props: IExpansionPanelHeaderProps) => JSX.Element;
1
+ import type { ReactNode } from 'react';
2
+ import React from 'react';
3
+ export interface IExpansionPanelHeaderProps {
4
+ onClick?: (event: React.MouseEvent) => void;
5
+ children?: ReactNode;
6
+ isExpanded: boolean;
7
+ }
8
+ export declare const ExpansionPanelHeader: (props: IExpansionPanelHeaderProps) => JSX.Element;
@@ -1,3 +1,3 @@
1
- export * from './ExpansionPanel';
2
- export * from './ExpansionPanelHeader';
3
- export * from './ExpansionPanelContent';
1
+ export * from './ExpansionPanel';
2
+ export * from './ExpansionPanelHeader';
3
+ export * from './ExpansionPanelContent';
@@ -1,5 +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;
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;
@@ -1 +1 @@
1
- export * from './FileInput';
1
+ export * from './FileInput';
@@ -1,13 +1,13 @@
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.ReactNode;
5
- color?: COLOR;
6
- size?: SIZE;
7
- fixed?: boolean;
8
- isActive?: boolean;
9
- disabled?: boolean;
10
- position?: 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
11
- onClick?: (e: React.MouseEvent) => void;
12
- }
13
- export declare const FloatingActionButton: (props: IFloatingActionButtonProps) => JSX.Element;
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.ReactNode;
5
+ color?: COLOR;
6
+ size?: SIZE;
7
+ fixed?: boolean;
8
+ isActive?: boolean;
9
+ disabled?: boolean;
10
+ position?: 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
11
+ onClick?: (e: React.MouseEvent) => void;
12
+ }
13
+ export declare const FloatingActionButton: (props: IFloatingActionButtonProps) => JSX.Element;
@@ -1 +1 @@
1
- export * from './FloatingActionButton';
1
+ export * from './FloatingActionButton';
@@ -1,40 +1,40 @@
1
- import React, { Component } from 'react';
2
- import type { IControls } from './form.interfaces';
3
- import type { FormControl } from './form.models';
4
- export interface IFormProps {
5
- className?: string;
6
- controls: IControls;
7
- validateOnBlur?: boolean;
8
- onSubmit?: (values: any) => void;
9
- onChange?: (values: any) => void;
10
- submitOnEnter?: boolean;
11
- }
12
- export interface IFormState {
13
- controls: IControls | undefined;
14
- isValid: boolean;
15
- isSubmitted: boolean;
16
- isChanged: boolean;
17
- submitOnEnter?: boolean;
18
- }
19
- export declare class Form extends Component<IFormProps, IFormState> {
20
- constructor(props: IFormProps);
21
- getCssClasses(): string;
22
- static getDerivedStateFromProps(nextProps: IFormProps, state: IFormState): {
23
- controls: IControls;
24
- } | null;
25
- myForm: React.RefObject<HTMLFormElement>;
26
- handleChange(): void;
27
- private validateField;
28
- private handleInputChange;
29
- private handleOnBlur;
30
- private isRequired;
31
- private isInvalid;
32
- getControl(name: string): FormControl;
33
- private renderLabel;
34
- handleFormSubmit(): void;
35
- handleFormReset(): void;
36
- handleOnKeyDown(e: React.KeyboardEvent<HTMLInputElement | undefined>): void;
37
- destroy(): void;
38
- getFormGroupCssClass(fieldKey: string): string | undefined;
39
- render(): JSX.Element;
40
- }
1
+ import React, { Component } from 'react';
2
+ import type { IControls } from './form.interfaces';
3
+ import type { FormControl } from './form.models';
4
+ export interface IFormProps {
5
+ className?: string;
6
+ controls: IControls;
7
+ validateOnBlur?: boolean;
8
+ onSubmit?: (values: any) => void;
9
+ onChange?: (values: any) => void;
10
+ submitOnEnter?: boolean;
11
+ }
12
+ export interface IFormState {
13
+ controls: IControls | undefined;
14
+ isValid: boolean;
15
+ isSubmitted: boolean;
16
+ isChanged: boolean;
17
+ submitOnEnter?: boolean;
18
+ }
19
+ export declare class Form extends Component<IFormProps, IFormState> {
20
+ constructor(props: IFormProps);
21
+ getCssClasses(): string;
22
+ static getDerivedStateFromProps(nextProps: IFormProps, state: IFormState): {
23
+ controls: IControls;
24
+ } | null;
25
+ myForm: React.RefObject<HTMLFormElement>;
26
+ handleChange(): void;
27
+ private validateField;
28
+ private handleInputChange;
29
+ private handleOnBlur;
30
+ private isRequired;
31
+ private isInvalid;
32
+ getControl(name: string): FormControl;
33
+ private renderLabel;
34
+ handleFormSubmit(): void;
35
+ handleFormReset(): void;
36
+ handleOnKeyDown(e: React.KeyboardEvent<HTMLInputElement | undefined>): void;
37
+ destroy(): void;
38
+ getFormGroupCssClass(fieldKey: string): string | undefined;
39
+ render(): JSX.Element;
40
+ }
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
2
- import type { IFormInputError } from './form.interfaces';
3
- interface IFormErrorProps {
4
- className?: string;
5
- errors?: IFormInputError[];
6
- }
7
- export declare const FormError: (props: IFormErrorProps) => JSX.Element;
8
- export {};
1
+ /// <reference types="react" />
2
+ import type { IFormInputError } from './form.interfaces';
3
+ interface IFormErrorProps {
4
+ className?: string;
5
+ errors?: IFormInputError[];
6
+ }
7
+ export declare const FormError: (props: IFormErrorProps) => JSX.Element;
8
+ export {};
@@ -1,7 +1,7 @@
1
- import React from 'react';
2
- interface IFormGroupProps {
3
- children?: React.ReactNode;
4
- className?: string;
5
- }
6
- export declare const FormGroup: (props: IFormGroupProps) => JSX.Element;
7
- export {};
1
+ import React from 'react';
2
+ interface IFormGroupProps {
3
+ children?: React.ReactNode;
4
+ className?: string;
5
+ }
6
+ export declare const FormGroup: (props: IFormGroupProps) => JSX.Element;
7
+ export {};
@@ -1,2 +1,2 @@
1
- import React from 'react';
2
- export declare const FormHint: (props: React.ComponentProps<'small'>) => JSX.Element;
1
+ import React from 'react';
2
+ export declare const FormHint: (props: React.ComponentProps<'small'>) => JSX.Element;
@@ -1 +1 @@
1
- export * from './FormHint';
1
+ export * from './FormHint';
@@ -1,29 +1,29 @@
1
- import React from 'react';
2
- import type { IFormInputOptions, IFormTextAreaOptions, IFormSelectOptions, IFormAutoCompleteOptions } from '../form.interfaces';
3
- import type { 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?: IFormInputOptions[];
20
- textareaOptions?: IFormTextAreaOptions;
21
- selectOptions?: IFormSelectOptions;
22
- autoCompleteOptions?: IFormAutoCompleteOptions;
23
- label?: string;
24
- onInput?: (e: IFormInputEvent) => void;
25
- onChange?: (e: IFormInputEvent) => void;
26
- onBlur?: React.FocusEventHandler<HTMLInputElement> | undefined;
27
- onKeyDown?: React.KeyboardEventHandler<HTMLInputElement | undefined>;
28
- }
29
- export declare const FormInput: (props: IFormInputProps) => JSX.Element;
1
+ import React from 'react';
2
+ import type { IFormInputOptions, IFormTextAreaOptions, IFormSelectOptions, IFormAutoCompleteOptions } from '../form.interfaces';
3
+ import type { 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?: IFormInputOptions[];
20
+ textareaOptions?: IFormTextAreaOptions;
21
+ selectOptions?: IFormSelectOptions;
22
+ autoCompleteOptions?: IFormAutoCompleteOptions;
23
+ label?: string;
24
+ onInput?: (e: IFormInputEvent) => void;
25
+ onChange?: (e: IFormInputEvent) => void;
26
+ onBlur?: React.FocusEventHandler<HTMLInputElement> | undefined;
27
+ onKeyDown?: React.KeyboardEventHandler<HTMLInputElement | undefined>;
28
+ }
29
+ export declare const FormInput: (props: IFormInputProps) => JSX.Element;
@@ -1 +1 @@
1
- export * from './FormInput';
1
+ export * from './FormInput';
@@ -1,2 +1,2 @@
1
- import React from 'react';
2
- export declare const FormLabel: ({ children, className, htmlFor, ...rest }: React.ComponentProps<'label'>) => JSX.Element;
1
+ import React from 'react';
2
+ export declare const FormLabel: ({ children, className, htmlFor, ...rest }: React.ComponentProps<'label'>) => JSX.Element;
@@ -1 +1 @@
1
- export * from './FormLabel';
1
+ export * from './FormLabel';
@@ -1,40 +1,40 @@
1
- /// <reference types="react" />
2
- import type { FormControl } from './form.models';
3
- export interface IControls {
4
- [key: string]: FormControl;
5
- }
6
- export interface IFormTextAreaOptions {
7
- rows?: number;
8
- resize?: boolean;
9
- }
10
- export interface IFormSelectOptions {
11
- multiple?: boolean;
12
- }
13
- export interface IFormAutoCompleteOptions {
14
- openOnFocus?: boolean;
15
- }
16
- export interface IFormInputError {
17
- validator: string;
18
- message: string;
19
- }
20
- export interface IFormInputOptions {
21
- id?: string;
22
- value: string;
23
- label?: React.ReactNode;
24
- }
25
- export interface IFormControlConfig {
26
- label: string;
27
- placeholder?: string;
28
- formControlClassName?: string;
29
- formGroupClassName?: string;
30
- labelClassName?: string;
31
- labelPosition?: string;
32
- autoFocus?: boolean;
33
- hint?: string;
34
- disabled?: boolean;
35
- readonly?: boolean;
36
- options?: IFormInputOptions[];
37
- textareaOptions?: IFormTextAreaOptions;
38
- selectOptions?: IFormSelectOptions;
39
- autoCompleteOptions?: IFormAutoCompleteOptions;
40
- }
1
+ /// <reference types="react" />
2
+ import type { FormControl } from './form.models';
3
+ export interface IControls {
4
+ [key: string]: FormControl;
5
+ }
6
+ export interface IFormTextAreaOptions {
7
+ rows?: number;
8
+ resize?: boolean;
9
+ }
10
+ export interface IFormSelectOptions {
11
+ multiple?: boolean;
12
+ }
13
+ export interface IFormAutoCompleteOptions {
14
+ openOnFocus?: boolean;
15
+ }
16
+ export interface IFormInputError {
17
+ validator: string;
18
+ message: string;
19
+ }
20
+ export interface IFormInputOptions {
21
+ id?: string;
22
+ value: string;
23
+ label?: React.ReactNode;
24
+ }
25
+ export interface IFormControlConfig {
26
+ label: string;
27
+ placeholder?: string;
28
+ formControlClassName?: string;
29
+ formGroupClassName?: string;
30
+ labelClassName?: string;
31
+ labelPosition?: string;
32
+ autoFocus?: boolean;
33
+ hint?: string;
34
+ disabled?: boolean;
35
+ readonly?: boolean;
36
+ options?: IFormInputOptions[];
37
+ textareaOptions?: IFormTextAreaOptions;
38
+ selectOptions?: IFormSelectOptions;
39
+ autoCompleteOptions?: IFormAutoCompleteOptions;
40
+ }
@@ -1,12 +1,12 @@
1
- import type { IFormControlConfig, IFormInputError } from './form.interfaces';
2
- import type { IFormControlType } from './form.types';
3
- export declare class FormControl {
4
- value: any;
5
- validators: string[];
6
- type: IFormControlType;
7
- config: IFormControlConfig;
8
- constructor(value: any, validators: string[], type: IFormControlType, config: IFormControlConfig);
9
- errors: IFormInputError[];
10
- isValid: boolean;
11
- isDirty: boolean;
12
- }
1
+ import type { IFormControlConfig, IFormInputError } from './form.interfaces';
2
+ import type { IFormControlType } from './form.types';
3
+ export declare class FormControl {
4
+ value: any;
5
+ validators: string[];
6
+ type: IFormControlType;
7
+ config: IFormControlConfig;
8
+ constructor(value: any, validators: string[], type: IFormControlType, config: IFormControlConfig);
9
+ errors: IFormInputError[];
10
+ isValid: boolean;
11
+ isDirty: boolean;
12
+ }
@@ -1,2 +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';
1
+ export type IFormControlType = 'text' | 'textarea' | 'email' | 'number' | 'checkbox' | 'checkboxgroup' | 'radio' | 'select' | 'password' | 'color' | 'time' | 'file' | 'date' | 'datetime-local' | 'autocomplete';
2
+ export type IFormValidatorType = 'required' | 'email' | 'match';
@@ -1,10 +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';
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 +1 @@
1
- export declare const EmailValidator: (value: string) => boolean;
1
+ export declare const EmailValidator: (value: string) => boolean;
@@ -1 +1 @@
1
- export declare const IsEmptyValidator: (value: string) => boolean;
1
+ export declare const IsEmptyValidator: (value: string) => boolean;
@@ -1 +1 @@
1
- export declare const IsEqualValidator: (valueA: unknown, valueB: unknown) => boolean;
1
+ export declare const IsEqualValidator: (valueA: unknown, valueB: unknown) => boolean;
@@ -1 +1 @@
1
- export declare const MaxValidator: (val: string, valueB: number) => boolean;
1
+ export declare const MaxValidator: (val: string, valueB: number) => boolean;
@@ -1 +1 @@
1
- export declare const MinValidator: (val: string, minLength: number) => boolean;
1
+ export declare const MinValidator: (val: string, minLength: number) => boolean;
@@ -1,5 +1,5 @@
1
- export * from './EmailValidtor';
2
- export * from './IsEmptyValidator';
3
- export * from './IsEqualValidator';
4
- export * from './MaxValidator';
5
- export * from './MinValidator';
1
+ export * from './EmailValidtor';
2
+ export * from './IsEmptyValidator';
3
+ export * from './IsEqualValidator';
4
+ export * from './MaxValidator';
5
+ export * from './MinValidator';
@@ -1,10 +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 {};
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 +1 @@
1
- export * from './Column';
1
+ export * from './Column';
@@ -1,5 +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;
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 +1 @@
1
- export * from './Row';
1
+ export * from './Row';
@@ -1,2 +1,2 @@
1
- export * from './Column';
2
- export * from './Row';
1
+ export * from './Column';
2
+ export * from './Row';
@@ -1,8 +1,8 @@
1
- import type { ComponentProps } from 'react';
2
- import React from 'react';
3
- import type { COLOR } from '../component.enums';
4
- export interface IIconProps extends ComponentProps<'div'> {
5
- iconColor?: COLOR;
6
- children?: React.ReactNode;
7
- }
8
- export declare const Icon: (props: IIconProps) => JSX.Element;
1
+ import type { ComponentProps } from 'react';
2
+ import React from 'react';
3
+ import type { COLOR } from '../component.enums';
4
+ export interface IIconProps extends ComponentProps<'div'> {
5
+ iconColor?: COLOR;
6
+ children?: React.ReactNode;
7
+ }
8
+ export declare const Icon: (props: IIconProps) => JSX.Element;
@@ -1 +1 @@
1
- export * from './Icon';
1
+ export * from './Icon';
@@ -1,11 +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.ReactNode;
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
+ import React from 'react';
2
+ import { COLOR, SIZE, VARIANT } from '../component.enums';
3
+ export interface IIconButtonProps extends React.ComponentProps<'button'> {
4
+ icon?: React.ReactNode;
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 +1 @@
1
- export * from './IconButton';
1
+ export * from './IconButton';
@@ -1,2 +1,2 @@
1
- import React from 'react';
2
- export declare const Link: (props: React.ComponentProps<'a'>) => JSX.Element;
1
+ import React from 'react';
2
+ export declare const Link: (props: React.ComponentProps<'a'>) => JSX.Element;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export * from './Link';
1
+ export * from './Link';
@@ -1,5 +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;
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 +1,9 @@
1
- import React from 'react';
2
- import type { 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
+ import React from 'react';
2
+ import type { 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 +1,2 @@
1
- import React from 'react';
2
- export declare const ListItemAction: ({ children, onClick, ...rest }: React.ComponentProps<'div'>) => JSX.Element;
1
+ import React from 'react';
2
+ export declare const ListItemAction: ({ children, onClick, ...rest }: React.ComponentProps<'div'>) => JSX.Element;
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- interface IListItemAvatarProps extends React.ComponentProps<'div'> {
3
- avatar: React.ReactNode;
4
- }
5
- export declare const ListItemAvatar: ({ avatar, ...rest }: IListItemAvatarProps) => JSX.Element;
6
- export {};
1
+ import React from 'react';
2
+ interface IListItemAvatarProps extends React.ComponentProps<'div'> {
3
+ avatar: React.ReactNode;
4
+ }
5
+ export declare const ListItemAvatar: ({ avatar, ...rest }: IListItemAvatarProps) => JSX.Element;
6
+ export {};
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- interface IListItemIconProps extends React.ComponentProps<'div'> {
3
- icon: React.ReactNode;
4
- }
5
- export declare const ListItemIcon: ({ icon, ...rest }: IListItemIconProps) => JSX.Element;
6
- export {};
1
+ import React from 'react';
2
+ interface IListItemIconProps extends React.ComponentProps<'div'> {
3
+ icon: React.ReactNode;
4
+ }
5
+ export declare const ListItemIcon: ({ icon, ...rest }: IListItemIconProps) => JSX.Element;
6
+ export {};