@itcase/ui 1.1.15 → 1.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Accordion-DyOfdiGd.js → Accordion-DF2lqrVA.js} +15 -9
- package/dist/{Cell-DftU408q.js → Cell-D9Wa7coO.js} +4 -1
- package/dist/{Checkbox-C-H_Z4S_.js → Checkbox-i0qZk0sb.js} +8 -7
- package/dist/{Chips-BR_EPV82.js → Chips-BdK4kVmq.js} +9 -3
- package/dist/{DadataHintField-QzDwYdF1.js → DadataHintField-CHJLsVjJ.js} +1 -1
- package/dist/{DatePicker-CUmrPZZ-.js → DatePicker-CAgJ_CIz.js} +1 -1
- package/dist/{Input-CYMKQ0qF.js → Input-CYDtAlO-.js} +14 -12
- package/dist/{Logo-D6UNcO5P.js → Logo-D4NFjeqd.js} +2 -2
- package/dist/{ModalLoader-8l8YtIvz.js → ModalLoader-D17lZhS7.js} +8 -1
- package/dist/{Response-DzfL5Sy8.js → Response-m-8zeYeD.js} +2 -2
- package/dist/cjs/{Accordion-UbOVpiO4.js → Accordion-rCFDAon3.js} +15 -9
- package/dist/cjs/{Cell-BhsGTfV-.js → Cell-DEBk3Rbp.js} +4 -1
- package/dist/cjs/{Checkbox-B-1dwjii.js → Checkbox-BIvndDsy.js} +8 -7
- package/dist/cjs/{Chips-BcJttN22.js → Chips-i7zrI9aU.js} +9 -3
- package/dist/cjs/{DadataHintField-DQHPRLs0.js → DadataHintField-z7Mw-xDn.js} +1 -1
- package/dist/cjs/{DatePicker-DOmOhaU3.js → DatePicker-e4-8mC1N.js} +1 -1
- package/dist/cjs/{Input-BqKlyvEt.js → Input-vwyG3XF0.js} +13 -11
- package/dist/cjs/{Logo-De74wmbt.js → Logo-CcEF4P2z.js} +2 -2
- package/dist/cjs/{ModalLoader-A2KkSC3x.js → ModalLoader-Cddzca-W.js} +8 -1
- package/dist/cjs/{Response-DOQQr9jP.js → Response-CwdUpO-8.js} +2 -2
- package/dist/cjs/components/Accordion/Accordion.d.ts +2 -2
- package/dist/cjs/components/Accordion/Accordion.interface.d.ts +52 -52
- package/dist/cjs/components/Accordion/AccordionItem.d.ts +2 -2
- package/dist/cjs/components/Accordion.js +1 -1
- package/dist/cjs/components/Avatar/Avatar.interface.d.ts +12 -12
- package/dist/cjs/components/Badge/Badge.interface.d.ts +13 -13
- package/dist/cjs/components/Breadcrumbs/Breadcrumbs.interface.d.ts +35 -35
- package/dist/cjs/components/Button/Button.interface.d.ts +26 -26
- package/dist/cjs/components/Caption/Caption.interface.d.ts +7 -7
- package/dist/cjs/components/Card/Card.interface.d.ts +13 -13
- package/dist/cjs/components/Cell/Cell.interface.d.ts +27 -27
- package/dist/cjs/components/Cell.js +1 -1
- package/dist/cjs/components/Checkbox/Checkbox.d.ts +3 -3
- package/dist/cjs/components/Checkbox/Checkbox.interface.d.ts +43 -44
- package/dist/cjs/components/Checkbox.js +1 -1
- package/dist/cjs/components/Chips/Chips.interface.d.ts +19 -16
- package/dist/cjs/components/Chips.js +1 -1
- package/dist/cjs/components/Choice/Choice.interface.d.ts +25 -25
- package/dist/cjs/components/Code/Code.interface.d.ts +16 -16
- package/dist/cjs/components/ContextMenu/ContextMenu.interface.d.ts +18 -18
- package/dist/cjs/components/CookiesWarning/CookiesWarning.interface.d.ts +9 -9
- package/dist/cjs/components/DadataHintField/DadataHintField.interface.d.ts +3 -3
- package/dist/cjs/components/DadataHintField.js +2 -2
- package/dist/cjs/components/DatePicker/DatePicker.interface.d.ts +46 -46
- package/dist/cjs/components/DatePicker.js +2 -2
- package/dist/cjs/components/Divider/Divider.interface.d.ts +23 -23
- package/dist/cjs/components/Dot/Dot.interface.d.ts +16 -16
- package/dist/cjs/components/Drawer/Drawer.interface.d.ts +2 -2
- package/dist/cjs/components/Dropdown/Dropdown.interface.d.ts +26 -26
- package/dist/cjs/components/Flex/Flex.interface.d.ts +30 -30
- package/dist/cjs/components/FormField/FormFiled.interface.d.ts +45 -45
- package/dist/cjs/components/Grid/Grid.interface.d.ts +31 -31
- package/dist/cjs/components/Group/Group.interface.d.ts +14 -14
- package/dist/cjs/components/Icon/Icon.interface.d.ts +29 -29
- package/dist/cjs/components/Image/Image.interface.d.ts +8 -8
- package/dist/cjs/components/Input/Input.d.ts +3 -3
- package/dist/cjs/components/Input/Input.interface.d.ts +36 -38
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/InputMask/Input.d.ts +3 -3
- package/dist/cjs/components/InputMask/Input.interface.d.ts +32 -32
- package/dist/cjs/components/InputPassword/InputPassword.interface.d.ts +30 -30
- package/dist/cjs/components/Label/Label.interface.d.ts +15 -15
- package/dist/cjs/components/Link/Link.interface.d.ts +21 -21
- package/dist/cjs/components/List/List.interface.d.ts +11 -11
- package/dist/cjs/components/Loader/Loader.interface.d.ts +11 -11
- package/dist/cjs/components/Logo/Logo.interface.d.ts +5 -5
- package/dist/cjs/components/Logo.js +1 -1
- package/dist/cjs/components/Menu/Menu.interface.d.ts +5 -5
- package/dist/cjs/components/MenuItem/MenuItem.interface.d.ts +21 -21
- package/dist/cjs/components/Modal/Modal.interface.d.ts +4 -4
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/Notification/Notification.interface.d.ts +16 -16
- package/dist/cjs/components/Overlay/Overlay.interface.d.ts +4 -4
- package/dist/cjs/components/Pagination/Pagination.interface.d.ts +20 -20
- package/dist/cjs/components/Panel/Panel.interface.d.ts +19 -19
- package/dist/cjs/components/Radio/Radio.interface.d.ts +25 -25
- package/dist/cjs/components/RangeSlider/RangeSlider.interface.d.ts +12 -12
- package/dist/cjs/components/Response/Response.interface.d.ts +30 -28
- package/dist/cjs/components/Response.js +1 -1
- package/dist/cjs/components/ScrollOnDrag/ScrollOnDrag.interface.d.ts +9 -9
- package/dist/cjs/components/Scrollbar/Scrollbar.interface.d.ts +2 -2
- package/dist/cjs/components/Search/Search.interface.d.ts +23 -23
- package/dist/cjs/components/Segmented/Segmented.interface.d.ts +14 -14
- package/dist/cjs/components/SiteMenu/SiteMenu.interface.d.ts +9 -9
- package/dist/cjs/components/Swiper/Swiper.interface.d.ts +7 -7
- package/dist/cjs/components/Switch/Switch.interface.d.ts +2 -2
- package/dist/cjs/components/Tab/Tab.interface.d.ts +29 -29
- package/dist/cjs/components/Text/Text.interface.d.ts +20 -20
- package/dist/cjs/components/Textarea/Textarea.interface.d.ts +17 -17
- package/dist/cjs/components/Tile/Tile.interface.d.ts +15 -15
- package/dist/cjs/components/Title/Title.interface.d.ts +9 -9
- package/dist/cjs/components/Tooltip/Tooltip.interface.d.ts +13 -13
- package/dist/cjs/components/Video/Video.interface.d.ts +2 -2
- package/dist/cjs/components/Wrapper/Wrapper.interface.d.ts +4 -4
- package/dist/cjs/components.js +10 -10
- package/dist/cjs/constants/componentProps/textColor.js +1 -1
- package/dist/cjs/constants/componentProps/textColorActive.js +1 -1
- package/dist/cjs/constants/componentProps/textColorHover.js +1 -1
- package/dist/cjs/hooks/styleAttributes.interface.d.ts +4 -4
- package/dist/cjs/types/componentProps/appearanceKeys.d.ts +1 -1
- package/dist/cjs/types/componentProps/borderColor.d.ts +1 -1
- package/dist/cjs/types/componentProps/borderWidth.d.ts +1 -1
- package/dist/cjs/types/componentProps/direction.d.ts +1 -1
- package/dist/cjs/types/componentProps/fill.d.ts +1 -1
- package/dist/cjs/types/componentProps/fillHover.d.ts +1 -1
- package/dist/cjs/types/componentProps/height.d.ts +1 -1
- package/dist/cjs/types/componentProps/itemColor.d.ts +1 -1
- package/dist/cjs/types/componentProps/shape.d.ts +1 -1
- package/dist/cjs/types/componentProps/size.d.ts +1 -1
- package/dist/cjs/types/componentProps/stateKeys.d.ts +1 -1
- package/dist/cjs/types/componentProps/textColor.d.ts +1 -1
- package/dist/cjs/types/componentProps/textSize.d.ts +1 -1
- package/dist/cjs/types/componentProps/textWeight.d.ts +1 -1
- package/dist/cjs/types/componentProps/width.d.ts +1 -1
- package/dist/cjs/types/index.d.ts +13 -13
- package/dist/components/Accordion/Accordion.d.ts +2 -2
- package/dist/components/Accordion/Accordion.interface.d.ts +52 -52
- package/dist/components/Accordion/AccordionItem.d.ts +2 -2
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Avatar/Avatar.interface.d.ts +12 -12
- package/dist/components/Badge/Badge.interface.d.ts +13 -13
- package/dist/components/Breadcrumbs/Breadcrumbs.interface.d.ts +35 -35
- package/dist/components/Button/Button.interface.d.ts +26 -26
- package/dist/components/Caption/Caption.interface.d.ts +7 -7
- package/dist/components/Card/Card.interface.d.ts +13 -13
- package/dist/components/Cell/Cell.interface.d.ts +27 -27
- package/dist/components/Cell.js +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +3 -3
- package/dist/components/Checkbox/Checkbox.interface.d.ts +43 -44
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/Chips/Chips.interface.d.ts +19 -16
- package/dist/components/Chips.js +1 -1
- package/dist/components/Choice/Choice.interface.d.ts +25 -25
- package/dist/components/Code/Code.interface.d.ts +16 -16
- package/dist/components/ContextMenu/ContextMenu.interface.d.ts +18 -18
- package/dist/components/CookiesWarning/CookiesWarning.interface.d.ts +9 -9
- package/dist/components/DadataHintField/DadataHintField.interface.d.ts +3 -3
- package/dist/components/DadataHintField.js +2 -2
- package/dist/components/DatePicker/DatePicker.interface.d.ts +46 -46
- package/dist/components/DatePicker.js +2 -2
- package/dist/components/Divider/Divider.interface.d.ts +23 -23
- package/dist/components/Dot/Dot.interface.d.ts +16 -16
- package/dist/components/Drawer/Drawer.interface.d.ts +2 -2
- package/dist/components/Dropdown/Dropdown.interface.d.ts +26 -26
- package/dist/components/Flex/Flex.interface.d.ts +30 -30
- package/dist/components/FormField/FormFiled.interface.d.ts +45 -45
- package/dist/components/Grid/Grid.interface.d.ts +31 -31
- package/dist/components/Group/Group.interface.d.ts +14 -14
- package/dist/components/Icon/Icon.interface.d.ts +29 -29
- package/dist/components/Image/Image.interface.d.ts +8 -8
- package/dist/components/Input/Input.d.ts +3 -3
- package/dist/components/Input/Input.interface.d.ts +36 -38
- package/dist/components/Input.js +1 -1
- package/dist/components/InputMask/Input.d.ts +3 -3
- package/dist/components/InputMask/Input.interface.d.ts +32 -32
- package/dist/components/InputPassword/InputPassword.interface.d.ts +30 -30
- package/dist/components/Label/Label.interface.d.ts +15 -15
- package/dist/components/Link/Link.interface.d.ts +21 -21
- package/dist/components/List/List.interface.d.ts +11 -11
- package/dist/components/Loader/Loader.interface.d.ts +11 -11
- package/dist/components/Logo/Logo.interface.d.ts +5 -5
- package/dist/components/Logo.js +1 -1
- package/dist/components/Menu/Menu.interface.d.ts +5 -5
- package/dist/components/MenuItem/MenuItem.interface.d.ts +21 -21
- package/dist/components/Modal/Modal.interface.d.ts +4 -4
- package/dist/components/Modal.js +1 -1
- package/dist/components/Notification/Notification.interface.d.ts +16 -16
- package/dist/components/Overlay/Overlay.interface.d.ts +4 -4
- package/dist/components/Pagination/Pagination.interface.d.ts +20 -20
- package/dist/components/Panel/Panel.interface.d.ts +19 -19
- package/dist/components/Radio/Radio.interface.d.ts +25 -25
- package/dist/components/RangeSlider/RangeSlider.interface.d.ts +12 -12
- package/dist/components/Response/Response.interface.d.ts +30 -28
- package/dist/components/Response.js +1 -1
- package/dist/components/ScrollOnDrag/ScrollOnDrag.interface.d.ts +9 -9
- package/dist/components/Scrollbar/Scrollbar.interface.d.ts +2 -2
- package/dist/components/Search/Search.interface.d.ts +23 -23
- package/dist/components/Segmented/Segmented.interface.d.ts +14 -14
- package/dist/components/SiteMenu/SiteMenu.interface.d.ts +9 -9
- package/dist/components/Swiper/Swiper.interface.d.ts +7 -7
- package/dist/components/Switch/Switch.interface.d.ts +2 -2
- package/dist/components/Tab/Tab.interface.d.ts +29 -29
- package/dist/components/Text/Text.interface.d.ts +20 -20
- package/dist/components/Textarea/Textarea.interface.d.ts +17 -17
- package/dist/components/Tile/Tile.interface.d.ts +15 -15
- package/dist/components/Title/Title.interface.d.ts +9 -9
- package/dist/components/Tooltip/Tooltip.interface.d.ts +13 -13
- package/dist/components/Video/Video.interface.d.ts +2 -2
- package/dist/components/Wrapper/Wrapper.interface.d.ts +4 -4
- package/dist/components.js +10 -10
- package/dist/constants/componentProps/textColor.js +1 -1
- package/dist/constants/componentProps/textColorActive.js +1 -1
- package/dist/constants/componentProps/textColorHover.js +1 -1
- package/dist/css/components/RangeSlider/RangeSlider.css +4 -1
- package/dist/hooks/styleAttributes.interface.d.ts +4 -4
- package/dist/types/componentProps/appearanceKeys.d.ts +1 -1
- package/dist/types/componentProps/borderColor.d.ts +1 -1
- package/dist/types/componentProps/borderWidth.d.ts +1 -1
- package/dist/types/componentProps/direction.d.ts +1 -1
- package/dist/types/componentProps/fill.d.ts +1 -1
- package/dist/types/componentProps/fillHover.d.ts +1 -1
- package/dist/types/componentProps/height.d.ts +1 -1
- package/dist/types/componentProps/itemColor.d.ts +1 -1
- package/dist/types/componentProps/shape.d.ts +1 -1
- package/dist/types/componentProps/size.d.ts +1 -1
- package/dist/types/componentProps/stateKeys.d.ts +1 -1
- package/dist/types/componentProps/textColor.d.ts +1 -1
- package/dist/types/componentProps/textSize.d.ts +1 -1
- package/dist/types/componentProps/textWeight.d.ts +1 -1
- package/dist/types/componentProps/width.d.ts +1 -1
- package/dist/types/index.d.ts +13 -13
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties, ElementType, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { alignDirectionPropsType,
|
|
4
|
-
export interface IFlexProps extends
|
|
2
|
+
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
|
+
import { alignDirectionPropsType, tBorderColorProps, borderTypePropsType, tDirectionProps, tFillHoverProps, tFillProps, flexAlignPropsType, flexJustifyContentPropsType, flexWrapPropsType, horizontalResizeModePropsType, positionPropsType, tShapeProps, tWidthProps } from '../../types';
|
|
4
|
+
export interface IFlexProps extends iStyleAttributes {
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
className?: string;
|
|
7
7
|
id?: number | string;
|
|
@@ -11,15 +11,15 @@ export interface IFlexProps extends TypeStyleAttributes {
|
|
|
11
11
|
onClick?: () => void;
|
|
12
12
|
alignContent?: flexJustifyContentPropsType;
|
|
13
13
|
alignItems?: flexAlignPropsType;
|
|
14
|
-
border?:
|
|
14
|
+
border?: tBorderColorProps;
|
|
15
15
|
borderType?: borderTypePropsType;
|
|
16
16
|
direction?: alignDirectionPropsType;
|
|
17
|
-
fill?:
|
|
17
|
+
fill?: tFillProps;
|
|
18
18
|
flow?: string;
|
|
19
19
|
justifyContent?: flexJustifyContentPropsType;
|
|
20
20
|
position?: positionPropsType;
|
|
21
|
-
shape?:
|
|
22
|
-
width?:
|
|
21
|
+
shape?: tShapeProps;
|
|
22
|
+
width?: tWidthProps;
|
|
23
23
|
wrap?: flexWrapPropsType;
|
|
24
24
|
gapWrapper?: string;
|
|
25
25
|
maxWidthWrapper?: string;
|
|
@@ -32,9 +32,9 @@ export interface IFlexProps extends TypeStyleAttributes {
|
|
|
32
32
|
directionDesktop?: alignDirectionPropsType;
|
|
33
33
|
directionMobile?: alignDirectionPropsType;
|
|
34
34
|
directionTablet?: alignDirectionPropsType;
|
|
35
|
-
fillDesktop?:
|
|
36
|
-
fillMobile?:
|
|
37
|
-
fillTablet?:
|
|
35
|
+
fillDesktop?: tFillProps;
|
|
36
|
+
fillMobile?: tFillProps;
|
|
37
|
+
fillTablet?: tFillProps;
|
|
38
38
|
flowDesktop?: string;
|
|
39
39
|
flowMobile?: string;
|
|
40
40
|
flowTablet?: string;
|
|
@@ -48,17 +48,17 @@ export interface IFlexProps extends TypeStyleAttributes {
|
|
|
48
48
|
positionDesktop?: positionPropsType;
|
|
49
49
|
positionMobile?: positionPropsType;
|
|
50
50
|
positionTablet?: positionPropsType;
|
|
51
|
-
shapeDesktop?:
|
|
52
|
-
shapeMobile?:
|
|
53
|
-
shapeTablet?:
|
|
54
|
-
widthDesktop?:
|
|
55
|
-
widthMobile?:
|
|
56
|
-
widthTablet?:
|
|
51
|
+
shapeDesktop?: tShapeProps;
|
|
52
|
+
shapeMobile?: tShapeProps;
|
|
53
|
+
shapeTablet?: tShapeProps;
|
|
54
|
+
widthDesktop?: tWidthProps;
|
|
55
|
+
widthMobile?: tWidthProps;
|
|
56
|
+
widthTablet?: tWidthProps;
|
|
57
57
|
wrapDesktop?: flexWrapPropsType;
|
|
58
58
|
wrapMobile?: flexWrapPropsType;
|
|
59
59
|
wrapTablet?: flexWrapPropsType;
|
|
60
60
|
}
|
|
61
|
-
export interface IFlexItemProps extends
|
|
61
|
+
export interface IFlexItemProps extends iStyleAttributes {
|
|
62
62
|
children?: ReactNode;
|
|
63
63
|
className?: string;
|
|
64
64
|
htmlFor?: string;
|
|
@@ -66,13 +66,13 @@ export interface IFlexItemProps extends TypeStyleAttributes {
|
|
|
66
66
|
tag?: ElementType;
|
|
67
67
|
alignItems?: flexAlignPropsType;
|
|
68
68
|
alignSelf?: flexAlignPropsType;
|
|
69
|
-
direction?:
|
|
70
|
-
fill?:
|
|
71
|
-
fillHover?:
|
|
69
|
+
direction?: tDirectionProps;
|
|
70
|
+
fill?: tFillProps;
|
|
71
|
+
fillHover?: tFillHoverProps;
|
|
72
72
|
grow?: number;
|
|
73
73
|
justifyContent?: flexJustifyContentPropsType;
|
|
74
74
|
position?: positionPropsType;
|
|
75
|
-
shape?:
|
|
75
|
+
shape?: tShapeProps;
|
|
76
76
|
width?: horizontalResizeModePropsType;
|
|
77
77
|
wrap?: flexWrapPropsType;
|
|
78
78
|
alignItemsDesktop?: flexAlignPropsType;
|
|
@@ -93,12 +93,12 @@ export interface IFlexItemProps extends TypeStyleAttributes {
|
|
|
93
93
|
columnStartDesktop?: number;
|
|
94
94
|
columnStartMobile?: number;
|
|
95
95
|
columnStartTablet?: number;
|
|
96
|
-
directionDesktop?:
|
|
97
|
-
directionMobile?:
|
|
98
|
-
directionTablet?:
|
|
99
|
-
fillDesktop?:
|
|
100
|
-
fillMobile?:
|
|
101
|
-
fillTablet?:
|
|
96
|
+
directionDesktop?: tDirectionProps;
|
|
97
|
+
directionMobile?: tDirectionProps;
|
|
98
|
+
directionTablet?: tDirectionProps;
|
|
99
|
+
fillDesktop?: tFillProps;
|
|
100
|
+
fillMobile?: tFillProps;
|
|
101
|
+
fillTablet?: tFillProps;
|
|
102
102
|
growDesktop?: number;
|
|
103
103
|
growMobile?: number;
|
|
104
104
|
growTablet?: number;
|
|
@@ -108,9 +108,9 @@ export interface IFlexItemProps extends TypeStyleAttributes {
|
|
|
108
108
|
positionDesktop?: positionPropsType;
|
|
109
109
|
positionMobile?: positionPropsType;
|
|
110
110
|
positionTablet?: positionPropsType;
|
|
111
|
-
shapeDesktop?:
|
|
112
|
-
shapeMobile?:
|
|
113
|
-
shapeTablet?:
|
|
111
|
+
shapeDesktop?: tShapeProps;
|
|
112
|
+
shapeMobile?: tShapeProps;
|
|
113
|
+
shapeTablet?: tShapeProps;
|
|
114
114
|
widthDesktop?: horizontalResizeModePropsType;
|
|
115
115
|
widthMobile?: horizontalResizeModePropsType;
|
|
116
116
|
widthTablet?: horizontalResizeModePropsType;
|
|
@@ -1,77 +1,77 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export interface IFormFieldProps extends
|
|
2
|
+
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
|
+
import { tBorderColorProps, tFillProps, iconSizePropsType, tTextSizeProps, tTextColorProps, tTextWeightProps, tDirectionProps, tSizeProps, tShapeProps, tItemColorProps } from '../../types';
|
|
4
|
+
export interface IFormFieldProps extends iStyleAttributes {
|
|
5
5
|
afterItem?: ReactNode;
|
|
6
6
|
beforeItem?: ReactNode;
|
|
7
7
|
children?: ReactNode;
|
|
8
8
|
className?: string;
|
|
9
9
|
clearIcon?: string;
|
|
10
|
-
clearIconFill?:
|
|
10
|
+
clearIconFill?: tFillProps;
|
|
11
11
|
clearIconSize?: iconSizePropsType;
|
|
12
12
|
dataTestId?: string;
|
|
13
13
|
desc?: string;
|
|
14
|
-
descSize?:
|
|
15
|
-
descTextColor?:
|
|
16
|
-
descTextWeight?:
|
|
17
|
-
direction?:
|
|
18
|
-
dividerDirection?:
|
|
19
|
-
dividerFill?:
|
|
20
|
-
dividerSize?:
|
|
14
|
+
descSize?: tTextSizeProps;
|
|
15
|
+
descTextColor?: tTextColorProps;
|
|
16
|
+
descTextWeight?: tTextWeightProps;
|
|
17
|
+
direction?: tDirectionProps;
|
|
18
|
+
dividerDirection?: tDirectionProps;
|
|
19
|
+
dividerFill?: tFillProps;
|
|
20
|
+
dividerSize?: tSizeProps;
|
|
21
21
|
dividerWidth?: string;
|
|
22
|
-
fill?:
|
|
22
|
+
fill?: tFillProps;
|
|
23
23
|
id?: string;
|
|
24
|
-
inputFill?:
|
|
25
|
-
inputShape?:
|
|
24
|
+
inputFill?: tFillProps;
|
|
25
|
+
inputShape?: tShapeProps;
|
|
26
26
|
label?: string;
|
|
27
|
-
labelSize?:
|
|
28
|
-
labelTextColor?:
|
|
29
|
-
labelTextWeight?:
|
|
27
|
+
labelSize?: tTextSizeProps;
|
|
28
|
+
labelTextColor?: tTextColorProps;
|
|
29
|
+
labelTextWeight?: tTextWeightProps;
|
|
30
30
|
message?: string;
|
|
31
|
-
messageSize?:
|
|
32
|
-
messageTextColor?:
|
|
33
|
-
messageTextWeight?:
|
|
31
|
+
messageSize?: tTextSizeProps;
|
|
32
|
+
messageTextColor?: tTextColorProps;
|
|
33
|
+
messageTextWeight?: tTextWeightProps;
|
|
34
34
|
set?: string;
|
|
35
|
-
shape?:
|
|
36
|
-
size?:
|
|
35
|
+
shape?: tShapeProps;
|
|
36
|
+
size?: tSizeProps;
|
|
37
37
|
style?: CSSProperties;
|
|
38
38
|
}
|
|
39
|
-
export interface IChoiceFieldProps extends
|
|
39
|
+
export interface IChoiceFieldProps extends iStyleAttributes {
|
|
40
40
|
radioId?: string;
|
|
41
41
|
radioClassName?: string;
|
|
42
|
-
radioFillCheckmark?:
|
|
43
|
-
radioFillChecked?:
|
|
44
|
-
radioFill?:
|
|
45
|
-
radioFillDisabled?:
|
|
46
|
-
radioShape?:
|
|
47
|
-
radioBorder?:
|
|
42
|
+
radioFillCheckmark?: tItemColorProps;
|
|
43
|
+
radioFillChecked?: tFillProps;
|
|
44
|
+
radioFill?: tFillProps;
|
|
45
|
+
radioFillDisabled?: tFillProps;
|
|
46
|
+
radioShape?: tShapeProps;
|
|
47
|
+
radioBorder?: tBorderColorProps;
|
|
48
48
|
}
|
|
49
|
-
export interface IPasswordFieldProps extends
|
|
49
|
+
export interface IPasswordFieldProps extends iStyleAttributes {
|
|
50
50
|
placeholder?: string;
|
|
51
51
|
passwordClassName?: string;
|
|
52
52
|
value?: string;
|
|
53
|
-
placeholderColor?:
|
|
54
|
-
valueTextColor?:
|
|
55
|
-
valueTextSize?:
|
|
53
|
+
placeholderColor?: tTextColorProps;
|
|
54
|
+
valueTextColor?: tTextColorProps;
|
|
55
|
+
valueTextSize?: tTextSizeProps;
|
|
56
56
|
}
|
|
57
|
-
export interface ISelectFieldProps extends
|
|
57
|
+
export interface ISelectFieldProps extends iStyleAttributes {
|
|
58
58
|
className?: string;
|
|
59
59
|
selectInputClass?: string;
|
|
60
|
-
selectFill?:
|
|
61
|
-
selectShape?:
|
|
62
|
-
selectBorder?:
|
|
63
|
-
selectSize?:
|
|
64
|
-
selectOptionFill?:
|
|
65
|
-
selectOptionTextSize?:
|
|
66
|
-
selectOptionTextColor?:
|
|
60
|
+
selectFill?: tFillProps;
|
|
61
|
+
selectShape?: tShapeProps;
|
|
62
|
+
selectBorder?: tBorderColorProps;
|
|
63
|
+
selectSize?: tSizeProps;
|
|
64
|
+
selectOptionFill?: tFillProps;
|
|
65
|
+
selectOptionTextSize?: tTextSizeProps;
|
|
66
|
+
selectOptionTextColor?: tTextColorProps;
|
|
67
67
|
selectOptionBefore?: ReactNode;
|
|
68
68
|
selectOptionAfter?: ReactNode;
|
|
69
69
|
selectInputBefore?: ReactNode;
|
|
70
70
|
selectInputAfter?: ReactNode;
|
|
71
|
-
selectInputFill?:
|
|
72
|
-
selectInputTextSize?:
|
|
73
|
-
selectInputTextColor?:
|
|
71
|
+
selectInputFill?: tFillProps;
|
|
72
|
+
selectInputTextSize?: tTextSizeProps;
|
|
73
|
+
selectInputTextColor?: tTextColorProps;
|
|
74
74
|
}
|
|
75
|
-
export interface ISwitchFieldProps extends
|
|
75
|
+
export interface ISwitchFieldProps extends iStyleAttributes {
|
|
76
76
|
className?: string;
|
|
77
77
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties, ElementType, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export interface IGridBaseThemeColor extends
|
|
2
|
+
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
|
+
import { tBorderColorProps, tDirectionProps, tFillHoverProps, tFillProps, gridAlignPropsType, gridAlignSelfPropsType, gridJustifyItemsPropsType, gridJustifySelfPropsType, horizontalResizeModePropsType, tShapeProps, verticalResizeModePropsType } from '../../types';
|
|
4
|
+
export interface IGridBaseThemeColor extends iStyleAttributes {
|
|
5
5
|
alignSelf?: gridAlignSelfPropsType;
|
|
6
6
|
alignSelfDesktop?: gridAlignSelfPropsType;
|
|
7
7
|
alignSelfMobile?: gridAlignSelfPropsType;
|
|
@@ -19,12 +19,12 @@ export interface IGridBaseThemeColor extends TypeStyleAttributes {
|
|
|
19
19
|
columnStartDesktop?: string;
|
|
20
20
|
columnStartMobile?: string;
|
|
21
21
|
columnStartTablet?: string;
|
|
22
|
-
direction?:
|
|
23
|
-
fill?:
|
|
24
|
-
fillDesktop?:
|
|
25
|
-
fillHover?:
|
|
26
|
-
fillMobile?:
|
|
27
|
-
fillTablet?:
|
|
22
|
+
direction?: tDirectionProps;
|
|
23
|
+
fill?: tFillProps;
|
|
24
|
+
fillDesktop?: tFillProps;
|
|
25
|
+
fillHover?: tFillHoverProps;
|
|
26
|
+
fillMobile?: tFillProps;
|
|
27
|
+
fillTablet?: tFillProps;
|
|
28
28
|
gap?: string;
|
|
29
29
|
gridTemplateColumns?: string;
|
|
30
30
|
justifySelf?: gridJustifySelfPropsType;
|
|
@@ -71,7 +71,7 @@ export interface IGridRowProps extends IGridBaseThemeColor {
|
|
|
71
71
|
tag: ElementType;
|
|
72
72
|
onClick?: () => void;
|
|
73
73
|
}
|
|
74
|
-
export interface IGridProps extends
|
|
74
|
+
export interface IGridProps extends iStyleAttributes {
|
|
75
75
|
after?: ReactNode;
|
|
76
76
|
before?: ReactNode;
|
|
77
77
|
children?: ReactNode;
|
|
@@ -93,15 +93,15 @@ export interface IGridProps extends TypeStyleAttributes {
|
|
|
93
93
|
columnsDesktop?: string;
|
|
94
94
|
columnsMobile?: string;
|
|
95
95
|
columnsTablet?: string;
|
|
96
|
-
fillDesktop?:
|
|
97
|
-
fillMobile?:
|
|
98
|
-
fillTablet?:
|
|
99
|
-
fillWrapperDesktop?:
|
|
100
|
-
fillWrapperInnerDesktop?:
|
|
101
|
-
fillWrapperInnerMobile?:
|
|
102
|
-
fillWrapperInnerTablet?:
|
|
103
|
-
fillWrapperMobile?:
|
|
104
|
-
fillWrapperTablet?:
|
|
96
|
+
fillDesktop?: tFillProps;
|
|
97
|
+
fillMobile?: tFillProps;
|
|
98
|
+
fillTablet?: tFillProps;
|
|
99
|
+
fillWrapperDesktop?: tFillProps;
|
|
100
|
+
fillWrapperInnerDesktop?: tFillProps;
|
|
101
|
+
fillWrapperInnerMobile?: tFillProps;
|
|
102
|
+
fillWrapperInnerTablet?: tFillProps;
|
|
103
|
+
fillWrapperMobile?: tFillProps;
|
|
104
|
+
fillWrapperTablet?: tFillProps;
|
|
105
105
|
gridBackground?: string;
|
|
106
106
|
gridBackgroundDesktop?: string;
|
|
107
107
|
gridBackgroundMobile?: string;
|
|
@@ -124,27 +124,27 @@ export interface IGridProps extends TypeStyleAttributes {
|
|
|
124
124
|
rowsDesktop?: string;
|
|
125
125
|
rowsMobile?: string;
|
|
126
126
|
rowsTablet?: string;
|
|
127
|
-
shapeWrapperDesktop?:
|
|
128
|
-
shapeWrapperInnerDesktop?:
|
|
129
|
-
shapeWrapperInnerMobile?:
|
|
130
|
-
shapeWrapperInnerTablet?:
|
|
131
|
-
shapeWrapperMobile?:
|
|
132
|
-
shapeWrapperTablet?:
|
|
127
|
+
shapeWrapperDesktop?: tShapeProps;
|
|
128
|
+
shapeWrapperInnerDesktop?: tShapeProps;
|
|
129
|
+
shapeWrapperInnerMobile?: tShapeProps;
|
|
130
|
+
shapeWrapperInnerTablet?: tShapeProps;
|
|
131
|
+
shapeWrapperMobile?: tShapeProps;
|
|
132
|
+
shapeWrapperTablet?: tShapeProps;
|
|
133
133
|
type?: string;
|
|
134
134
|
useGridSystem?: boolean;
|
|
135
135
|
verticalResizing?: verticalResizeModePropsType;
|
|
136
136
|
alignContent?: gridAlignPropsType;
|
|
137
137
|
alignItems?: gridAlignPropsType;
|
|
138
|
-
borderColor?:
|
|
138
|
+
borderColor?: tBorderColorProps;
|
|
139
139
|
columnGap?: string;
|
|
140
140
|
columns?: string;
|
|
141
|
-
fill?:
|
|
142
|
-
fillWrapper?:
|
|
143
|
-
fillWrapperInner?:
|
|
141
|
+
fill?: tFillProps;
|
|
142
|
+
fillWrapper?: tFillProps;
|
|
143
|
+
fillWrapperInner?: tFillProps;
|
|
144
144
|
justifyContent?: string;
|
|
145
145
|
justifyItems?: gridJustifyItemsPropsType;
|
|
146
146
|
rowGap?: string;
|
|
147
147
|
rows?: string;
|
|
148
|
-
shapeWrapper?:
|
|
149
|
-
shapeWrapperInner?:
|
|
148
|
+
shapeWrapper?: tShapeProps;
|
|
149
|
+
shapeWrapperInner?: tShapeProps;
|
|
150
150
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { CSSProperties, ElementType, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { alignDirectionPropsType, alignPropsType,
|
|
4
|
-
import {
|
|
2
|
+
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
|
+
import { alignDirectionPropsType, alignPropsType, tBorderColorProps, borderTypePropsType, tDirectionProps, elevationPropsType, tFillHoverProps, tFillProps, flexGrowPropsType, tHeightProps, justifyContentPropsType, tShapeProps, stackingPropsType, tTextColorProps, tWidthProps, wrapPropsType } from '../../types';
|
|
4
|
+
import { tAppearanceKeysDefault } from '../../types/componentProps/appearanceKeys';
|
|
5
5
|
interface ThemeColor {
|
|
6
6
|
border?: string;
|
|
7
7
|
borderColor?: string;
|
|
8
8
|
borderWidth?: string;
|
|
9
|
-
direction?:
|
|
9
|
+
direction?: tDirectionProps;
|
|
10
10
|
fill?: string;
|
|
11
11
|
fillHover?: string;
|
|
12
|
-
labelTextColor?:
|
|
12
|
+
labelTextColor?: tTextColorProps;
|
|
13
13
|
}
|
|
14
|
-
type appearanceKeysType =
|
|
14
|
+
type appearanceKeysType = tAppearanceKeysDefault & {};
|
|
15
15
|
type appearanceType = {
|
|
16
16
|
[key in appearanceKeysType]: ThemeColor;
|
|
17
17
|
};
|
|
@@ -19,7 +19,7 @@ export interface IGroupConfig {
|
|
|
19
19
|
appearance: appearanceType | undefined;
|
|
20
20
|
setAppearance: (newComponent: appearanceType) => void;
|
|
21
21
|
}
|
|
22
|
-
export interface IGroupProps extends
|
|
22
|
+
export interface IGroupProps extends iStyleAttributes {
|
|
23
23
|
appearance?: appearanceKeysType;
|
|
24
24
|
children?: ReactNode;
|
|
25
25
|
className?: string;
|
|
@@ -33,19 +33,19 @@ export interface IGroupProps extends TypeStyleAttributes {
|
|
|
33
33
|
onClick?: () => void;
|
|
34
34
|
align?: alignPropsType;
|
|
35
35
|
alignDirection?: alignDirectionPropsType;
|
|
36
|
-
borderColor?:
|
|
36
|
+
borderColor?: tBorderColorProps;
|
|
37
37
|
borderType?: borderTypePropsType;
|
|
38
38
|
columns?: number;
|
|
39
|
-
direction?:
|
|
39
|
+
direction?: tDirectionProps;
|
|
40
40
|
elevation?: elevationPropsType;
|
|
41
|
-
fill?:
|
|
42
|
-
fillHover?:
|
|
41
|
+
fill?: tFillProps;
|
|
42
|
+
fillHover?: tFillHoverProps;
|
|
43
43
|
flexGrow?: flexGrowPropsType;
|
|
44
|
-
height?:
|
|
44
|
+
height?: tHeightProps;
|
|
45
45
|
justifyContent?: justifyContentPropsType;
|
|
46
|
-
shape?:
|
|
46
|
+
shape?: tShapeProps;
|
|
47
47
|
stacking?: stackingPropsType;
|
|
48
|
-
width?:
|
|
48
|
+
width?: tWidthProps;
|
|
49
49
|
wrap?: wrapPropsType;
|
|
50
50
|
}
|
|
51
51
|
export {};
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { CSSProperties, MouseEventHandler, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { alignmentPropsType, borderColorHoverPropsType,
|
|
4
|
-
import {
|
|
2
|
+
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
|
+
import { alignmentPropsType, borderColorHoverPropsType, tBorderColorProps, borderTypePropsType, tBorderWidthProps, tFillHoverProps, tFillProps, iconFillSizePropsType, iconSizePropsType, tItemColorProps, tShapeProps, textColorHoverPropsType, tTextColorProps, tTextSizeProps, titleSizePropsType } from '../../types';
|
|
4
|
+
import { tAppearanceKeysDefault } from '../../types/componentProps/appearanceKeys';
|
|
5
5
|
export interface IIconThemeColor {
|
|
6
6
|
alignment?: alignmentPropsType;
|
|
7
|
-
bgFill?:
|
|
8
|
-
borderColor?:
|
|
7
|
+
bgFill?: tFillProps;
|
|
8
|
+
borderColor?: tBorderColorProps;
|
|
9
9
|
borderColorHover?: borderColorHoverPropsType;
|
|
10
10
|
borderType?: borderTypePropsType;
|
|
11
|
-
borderWidth?:
|
|
11
|
+
borderWidth?: tBorderWidthProps;
|
|
12
12
|
cursor?: string;
|
|
13
|
-
fill?:
|
|
14
|
-
fillDisabled?:
|
|
15
|
-
fillHover?:
|
|
13
|
+
fill?: tFillProps;
|
|
14
|
+
fillDisabled?: tFillProps;
|
|
15
|
+
fillHover?: tFillHoverProps;
|
|
16
16
|
fillSize?: iconFillSizePropsType;
|
|
17
|
-
iconAfterFill?:
|
|
17
|
+
iconAfterFill?: tFillProps;
|
|
18
18
|
iconAfterFillSize?: iconFillSizePropsType;
|
|
19
|
-
iconAfterShape?:
|
|
20
|
-
iconBeforeFill?:
|
|
19
|
+
iconAfterShape?: tShapeProps;
|
|
20
|
+
iconBeforeFill?: tFillProps;
|
|
21
21
|
iconBeforeFillSize?: iconFillSizePropsType;
|
|
22
|
-
iconBeforeShape?:
|
|
23
|
-
iconFill?:
|
|
24
|
-
iconFillDisabled?:
|
|
25
|
-
iconFillHover?:
|
|
22
|
+
iconBeforeShape?: tShapeProps;
|
|
23
|
+
iconFill?: tItemColorProps;
|
|
24
|
+
iconFillDisabled?: tItemColorProps;
|
|
25
|
+
iconFillHover?: tItemColorProps;
|
|
26
26
|
iconFillSize?: iconFillSizePropsType;
|
|
27
|
-
iconShape?:
|
|
27
|
+
iconShape?: tShapeProps;
|
|
28
28
|
iconSize?: iconSizePropsType;
|
|
29
29
|
label?: string;
|
|
30
|
-
labelTextColor?:
|
|
30
|
+
labelTextColor?: tTextColorProps;
|
|
31
31
|
labelTextColorHover?: textColorHoverPropsType;
|
|
32
|
-
labelTextSize?:
|
|
32
|
+
labelTextSize?: tTextSizeProps;
|
|
33
33
|
loaderFill?: string;
|
|
34
34
|
loaderItemFill?: string;
|
|
35
|
-
shape?:
|
|
35
|
+
shape?: tShapeProps;
|
|
36
36
|
size?: iconSizePropsType;
|
|
37
37
|
}
|
|
38
|
-
type appearanceKeysType =
|
|
38
|
+
type appearanceKeysType = tAppearanceKeysDefault & {};
|
|
39
39
|
export type iconAppearanceType = {
|
|
40
40
|
[key in appearanceKeysType]?: IIconThemeColor;
|
|
41
41
|
};
|
|
@@ -43,7 +43,7 @@ export interface IIconConfig {
|
|
|
43
43
|
appearance: iconAppearanceType | undefined;
|
|
44
44
|
setAppearance: (newComponent: iconAppearanceType) => void;
|
|
45
45
|
}
|
|
46
|
-
export interface IIconProps extends IIconThemeColor,
|
|
46
|
+
export interface IIconProps extends IIconThemeColor, iStyleAttributes {
|
|
47
47
|
Badge?: ReactNode;
|
|
48
48
|
SvgImage?: any;
|
|
49
49
|
after?: ReactNode;
|
|
@@ -61,18 +61,18 @@ export interface IIconProps extends IIconThemeColor, TypeStyleAttributes {
|
|
|
61
61
|
style?: CSSProperties;
|
|
62
62
|
tooltipAppearance?: appearanceKeysType;
|
|
63
63
|
tooltipText?: string;
|
|
64
|
-
tooltipTextSize?:
|
|
64
|
+
tooltipTextSize?: tTextSizeProps;
|
|
65
65
|
tooltipTitle?: string;
|
|
66
66
|
tooltipTitleSize?: titleSizePropsType;
|
|
67
67
|
width?: string;
|
|
68
68
|
onClick?: MouseEventHandler<HTMLDivElement>;
|
|
69
69
|
LinkComponent?: ReactNode;
|
|
70
|
-
fillDesktop?:
|
|
71
|
-
fillMobile?:
|
|
70
|
+
fillDesktop?: tFillProps;
|
|
71
|
+
fillMobile?: tFillProps;
|
|
72
72
|
fillSizeDesktop?: string;
|
|
73
73
|
fillSizeMobile?: string;
|
|
74
74
|
fillSizeTablet?: string;
|
|
75
|
-
fillTablet?:
|
|
75
|
+
fillTablet?: tFillProps;
|
|
76
76
|
htmlType?: string;
|
|
77
77
|
icon?: string;
|
|
78
78
|
iconAfterSrc?: string;
|
|
@@ -80,9 +80,9 @@ export interface IIconProps extends IIconThemeColor, TypeStyleAttributes {
|
|
|
80
80
|
iconSrc?: string;
|
|
81
81
|
loading?: boolean;
|
|
82
82
|
rel?: string;
|
|
83
|
-
shapeDesktop?:
|
|
84
|
-
shapeMobile?:
|
|
85
|
-
shapeTablet?:
|
|
83
|
+
shapeDesktop?: tShapeProps;
|
|
84
|
+
shapeMobile?: tShapeProps;
|
|
85
|
+
shapeTablet?: tShapeProps;
|
|
86
86
|
sizeDesktop?: iconSizePropsType;
|
|
87
87
|
sizeMobile?: iconSizePropsType;
|
|
88
88
|
sizeTablet?: iconSizePropsType;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export interface IImageProps extends
|
|
2
|
+
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
|
+
import { tBorderColorProps, tFillHoverProps, tFillProps, horizontalContentAlignPropsType, tShapeProps, verticalContentAlignPropsType, tWidthProps } from '../../types';
|
|
4
|
+
export interface IImageProps extends iStyleAttributes {
|
|
5
5
|
after?: ReactNode;
|
|
6
6
|
alt?: string;
|
|
7
7
|
before?: ReactNode;
|
|
8
|
-
borderColor?:
|
|
8
|
+
borderColor?: tBorderColorProps;
|
|
9
9
|
borderColorImage?: string;
|
|
10
10
|
caption?: string;
|
|
11
11
|
children?: ReactNode;
|
|
12
12
|
className?: string;
|
|
13
13
|
cursor?: string;
|
|
14
|
-
fill?:
|
|
15
|
-
fillHover?:
|
|
14
|
+
fill?: tFillProps;
|
|
15
|
+
fillHover?: tFillHoverProps;
|
|
16
16
|
height?: string;
|
|
17
17
|
horizontalAlign?: horizontalContentAlignPropsType;
|
|
18
18
|
imageClassName?: string;
|
|
@@ -22,13 +22,13 @@ export interface IImageProps extends TypeStyleAttributes {
|
|
|
22
22
|
mode?: string;
|
|
23
23
|
overlay?: any;
|
|
24
24
|
resizeMode?: string;
|
|
25
|
-
shape?:
|
|
25
|
+
shape?: tShapeProps;
|
|
26
26
|
src?: string;
|
|
27
27
|
style?: CSSProperties;
|
|
28
28
|
title?: string;
|
|
29
29
|
type?: string;
|
|
30
30
|
verticalContentAlign?: verticalContentAlignPropsType;
|
|
31
|
-
width?:
|
|
31
|
+
width?: tWidthProps;
|
|
32
32
|
onClick?: () => void;
|
|
33
33
|
onError?: () => void;
|
|
34
34
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
declare const inputConfig:
|
|
4
|
-
declare const Input: React.ForwardRefExoticComponent<
|
|
2
|
+
import type { iInputConfig, iInputProps } from './Input.interface';
|
|
3
|
+
declare const inputConfig: iInputConfig;
|
|
4
|
+
declare const Input: React.ForwardRefExoticComponent<iInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
5
5
|
export { Input, inputConfig };
|
|
@@ -1,53 +1,51 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
borderColor?:
|
|
7
|
-
borderColorDisabled?:
|
|
8
|
-
borderWidth?:
|
|
9
|
-
borderWidthDisabled?:
|
|
10
|
-
caret?:
|
|
11
|
-
fill?:
|
|
12
|
-
fillDisabled?:
|
|
13
|
-
placeholderTextColor?:
|
|
14
|
-
placeholderTextColorDisabled?:
|
|
15
|
-
shape?:
|
|
16
|
-
size?:
|
|
17
|
-
textColor?:
|
|
18
|
-
textSize?:
|
|
19
|
-
textWeight?:
|
|
20
|
-
width?:
|
|
1
|
+
import type { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
2
|
+
import type { tBorderColorProps, tBorderWidthProps, tFillProps, tItemColorProps, tShapeProps, tSizeProps, tTextColorProps, tTextSizeProps, tTextWeightProps, tWidthProps } from '../../types';
|
|
3
|
+
import type { tAppearanceKeysDefault } from '../../types/componentProps/appearanceKeys';
|
|
4
|
+
import type { tStateKeysDefault } from '../../types/componentProps/stateKeys';
|
|
5
|
+
interface iInputThemeColor {
|
|
6
|
+
borderColor?: tBorderColorProps;
|
|
7
|
+
borderColorDisabled?: tBorderColorProps;
|
|
8
|
+
borderWidth?: tBorderWidthProps;
|
|
9
|
+
borderWidthDisabled?: tBorderWidthProps;
|
|
10
|
+
caret?: tItemColorProps;
|
|
11
|
+
fill?: tFillProps;
|
|
12
|
+
fillDisabled?: tFillProps;
|
|
13
|
+
placeholderTextColor?: tTextColorProps;
|
|
14
|
+
placeholderTextColorDisabled?: tTextColorProps;
|
|
15
|
+
shape?: tShapeProps;
|
|
16
|
+
size?: tSizeProps;
|
|
17
|
+
textColor?: tTextColorProps;
|
|
18
|
+
textSize?: tTextSizeProps;
|
|
19
|
+
textWeight?: tTextWeightProps;
|
|
20
|
+
width?: tWidthProps;
|
|
21
21
|
}
|
|
22
|
-
type
|
|
23
|
-
|
|
24
|
-
export type inputStateType = {
|
|
25
|
-
[key in stateKeysType]?: IInputThemeColor;
|
|
22
|
+
type tInputState = {
|
|
23
|
+
[key in tStateKeysDefault]?: iInputThemeColor;
|
|
26
24
|
};
|
|
27
|
-
|
|
28
|
-
[key in
|
|
25
|
+
type tInputAppearance = {
|
|
26
|
+
[key in tAppearanceKeysDefault]?: iInputThemeColor;
|
|
29
27
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
interface iInputConfig {
|
|
29
|
+
appearance: tInputAppearance | undefined;
|
|
30
|
+
state: tInputState | undefined;
|
|
31
|
+
setAppearance: (newComponent: tInputAppearance) => void;
|
|
32
|
+
setState: (newComponent: tInputState) => void;
|
|
35
33
|
}
|
|
36
|
-
|
|
37
|
-
appearance?: appearanceKeysType;
|
|
38
|
-
className?: string;
|
|
34
|
+
interface iInputProps extends iInputThemeColor, iStyleAttributes {
|
|
39
35
|
dataTestId?: number | string;
|
|
40
36
|
id?: number | string;
|
|
37
|
+
appearance?: tAppearanceKeysDefault;
|
|
38
|
+
className?: string;
|
|
41
39
|
index?: number | string;
|
|
42
|
-
isDisabled?: boolean;
|
|
43
40
|
name?: string;
|
|
44
41
|
placeholder?: string;
|
|
45
|
-
state?:
|
|
42
|
+
state?: tStateKeysDefault;
|
|
46
43
|
type?: string;
|
|
47
|
-
value?: string;
|
|
44
|
+
value?: number | string;
|
|
45
|
+
isDisabled?: boolean;
|
|
48
46
|
onBlur?: () => void;
|
|
49
47
|
onChange?: () => void;
|
|
50
48
|
onFocus?: () => void;
|
|
51
49
|
onKeyDown?: () => void;
|
|
52
50
|
}
|
|
53
|
-
export {};
|
|
51
|
+
export type { iInputThemeColor, tInputState, tInputAppearance, iInputConfig, iInputProps };
|