profinansy-ui-lib 1.2.4 → 2.0.2
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/assets/about-icon.d.ts +3 -3
- package/dist/assets/apple-icon.d.ts +3 -3
- package/dist/assets/avatar-icon.d.ts +3 -0
- package/dist/assets/burger-icon-dark.d.ts +3 -3
- package/dist/assets/burger-icon.d.ts +3 -3
- package/dist/assets/capital-icon.d.ts +3 -3
- package/dist/assets/channels-icon.d.ts +3 -3
- package/dist/assets/chats-icon.d.ts +3 -3
- package/dist/assets/checkmark-icon.d.ts +3 -0
- package/dist/assets/chevron-icon-small.d.ts +3 -3
- package/dist/assets/chevron-icon.d.ts +3 -3
- package/dist/assets/close-gray.d.ts +3 -0
- package/dist/assets/close-icon.d.ts +3 -3
- package/dist/assets/club-icon.d.ts +3 -3
- package/dist/assets/edit-icon.d.ts +3 -0
- package/dist/assets/education-icon.d.ts +3 -3
- package/dist/assets/expenses-icon.d.ts +3 -3
- package/dist/assets/favorites-icon.d.ts +3 -3
- package/dist/assets/feed-icon.d.ts +3 -3
- package/dist/assets/google-store-icon.d.ts +3 -3
- package/dist/assets/huawei-store-icon.d.ts +3 -3
- package/dist/assets/investments-icon.d.ts +3 -3
- package/dist/assets/lock-icon-dark.d.ts +3 -3
- package/dist/assets/lock-icon.d.ts +3 -3
- package/dist/assets/logout-icon-new.d.ts +3 -3
- package/dist/assets/logout-icon.d.ts +3 -3
- package/dist/assets/notifications-icon.d.ts +3 -3
- package/dist/assets/plus-icon.d.ts +3 -0
- package/dist/assets/profile-icon.d.ts +3 -3
- package/dist/assets/purchases-icon.d.ts +3 -3
- package/dist/assets/purrple-logo-dark.d.ts +3 -3
- package/dist/assets/purrple-logo.d.ts +3 -3
- package/dist/assets/remove-icon.d.ts +3 -0
- package/dist/assets/tariffs-icon.d.ts +3 -3
- package/dist/assets/telegram-icon.d.ts +3 -3
- package/dist/assets/vk-icon.d.ts +3 -3
- package/dist/assets/youtube-icon copy.d.ts +3 -3
- package/dist/common.types.d.ts +37 -37
- package/dist/components/footer/Footer.stories.d.ts +11 -0
- package/dist/components/footer/constants.d.ts +16 -16
- package/dist/components/footer/footer.d.ts +11 -11
- package/dist/components/footer/footer.styled.d.ts +31 -29
- package/dist/components/footer/index.d.ts +1 -1
- package/dist/components/header/Header.stories.d.ts +21 -0
- package/dist/components/header/constants.d.ts +148 -148
- package/dist/components/header/header-link-item/header-link-item.d.ts +12 -12
- package/dist/components/header/header-link-item/header-link-item.styled.d.ts +43 -8
- package/dist/components/header/header-link-item/header-sub-link.d.ts +17 -17
- package/dist/components/header/header.d.ts +16 -16
- package/dist/components/header/header.styled.d.ts +17 -10
- package/dist/components/header/index.d.ts +1 -1
- package/dist/components/header/user-dropdown-menu/constants.d.ts +5 -5
- package/dist/components/header/user-dropdown-menu/user-dropdown-menu.d.ts +13 -13
- package/dist/components/header/user-dropdown-menu/user-dropdown-menu.styled.d.ts +15 -7
- package/dist/components/icon-wrapper/icon-wrapper.d.ts +7 -7
- package/dist/components/uikit/Avatar/Avatar.d.ts +3 -0
- package/dist/components/uikit/Avatar/Avatar.stories.d.ts +6 -0
- package/dist/components/uikit/Avatar/Avatar.styled.d.ts +6 -0
- package/dist/components/uikit/Avatar/Avatar.typed.d.ts +4 -0
- package/dist/components/uikit/Avatar/index.d.ts +1 -0
- package/dist/components/uikit/Button/Button.const.d.ts +135 -0
- package/dist/components/uikit/Button/Button.d.ts +4 -0
- package/dist/components/uikit/Button/Button.stories.d.ts +7 -0
- package/dist/components/uikit/Button/Button.styled.d.ts +22 -0
- package/dist/components/uikit/Button/Button.typed.d.ts +31 -0
- package/dist/components/uikit/Button/index.d.ts +2 -0
- package/dist/components/uikit/Checkbox/Checkbox.d.ts +3 -0
- package/dist/components/uikit/Checkbox/Checkbox.stories.d.ts +6 -0
- package/dist/components/uikit/Checkbox/Checkbox.styled.d.ts +18 -0
- package/dist/components/uikit/Checkbox/Checkbox.typed.d.ts +24 -0
- package/dist/components/uikit/Checkbox/index.d.ts +2 -0
- package/dist/components/uikit/ErrorText/ErrorText.d.ts +3 -0
- package/dist/components/uikit/ErrorText/ErrorText.stories.d.ts +6 -0
- package/dist/components/uikit/ErrorText/ErrorText.styled.d.ts +1 -0
- package/dist/components/uikit/ErrorText/ErrorText.typed.d.ts +5 -0
- package/dist/components/uikit/ErrorText/index.d.ts +1 -0
- package/dist/components/uikit/Input/Input.const.d.ts +4 -0
- package/dist/components/uikit/Input/Input.d.ts +4 -0
- package/dist/components/uikit/Input/Input.stories.d.ts +7 -0
- package/dist/components/uikit/Input/Input.styled.d.ts +17 -0
- package/dist/components/uikit/Input/Input.typed.d.ts +26 -0
- package/dist/components/uikit/Input/Input.utils.d.ts +1 -0
- package/dist/components/uikit/Input/index.d.ts +2 -0
- package/dist/components/uikit/Loader/Loader.d.ts +3 -0
- package/dist/components/uikit/Loader/Loader.stories.d.ts +6 -0
- package/dist/components/uikit/Loader/Loader.styled.d.ts +9 -0
- package/dist/components/uikit/Loader/Loader.typed.d.ts +10 -0
- package/dist/components/uikit/Loader/index.d.ts +2 -0
- package/dist/components/uikit/Modal/Modal.d.ts +3 -0
- package/dist/components/uikit/Modal/Modal.stories.d.ts +6 -0
- package/dist/components/uikit/Modal/Modal.styled.d.ts +21 -0
- package/dist/components/uikit/Modal/Modal.typed.d.ts +32 -0
- package/dist/components/uikit/Modal/index.d.ts +1 -0
- package/dist/components/uikit/Portal/Portal.d.ts +3 -0
- package/dist/components/uikit/Portal/Portal.stories.d.ts +6 -0
- package/dist/components/uikit/Portal/Portal.typed.d.ts +5 -0
- package/dist/components/uikit/Portal/index.d.ts +1 -0
- package/dist/components/uikit/Portal/usePortal.d.ts +2 -0
- package/dist/components/uikit/Radio/Radio.d.ts +3 -0
- package/dist/components/uikit/Radio/Radio.stories.d.ts +6 -0
- package/dist/components/uikit/Radio/Radio.styled.d.ts +16 -0
- package/dist/components/uikit/Radio/Radio.typed.d.ts +16 -0
- package/dist/components/uikit/Radio/index.d.ts +2 -0
- package/dist/components/uikit/Scroll/Scroll.d.ts +1 -0
- package/dist/components/uikit/Skeleton/Skeleton.d.ts +3 -0
- package/dist/components/uikit/Skeleton/Skeleton.stories.d.ts +6 -0
- package/dist/components/uikit/Skeleton/Skeleton.styled.d.ts +3 -0
- package/dist/components/uikit/Skeleton/Skeleton.typed.d.ts +15 -0
- package/dist/components/uikit/Skeleton/index.d.ts +1 -0
- package/dist/components/uikit/TextButton/TextButton.const.d.ts +30 -0
- package/dist/components/uikit/TextButton/TextButton.d.ts +3 -0
- package/dist/components/uikit/TextButton/TextButton.stories.d.ts +6 -0
- package/dist/components/uikit/TextButton/TextButton.styled.d.ts +5 -0
- package/dist/components/uikit/TextButton/TextButton.typed.d.ts +16 -0
- package/dist/components/uikit/TextButton/index.d.ts +2 -0
- package/dist/components/uikit/Textarea/Textarea.d.ts +4 -0
- package/dist/components/uikit/Textarea/Textarea.stories.d.ts +7 -0
- package/dist/components/uikit/Textarea/Textarea.styled.d.ts +11 -0
- package/dist/components/uikit/Textarea/Textarea.typed.d.ts +14 -0
- package/dist/components/uikit/Textarea/index.d.ts +1 -0
- package/dist/components/uikit/Tooltip/Tooltip.d.ts +4 -0
- package/dist/components/uikit/Tooltip/Tooltip.stories.d.ts +7 -0
- package/dist/components/uikit/Tooltip/Tooltip.styled.d.ts +5 -0
- package/dist/components/uikit/Tooltip/Tooltip.typed.d.ts +15 -0
- package/dist/components/uikit/Tooltip/components/DefaultTooltip/DefaultTooltip.d.ts +6 -0
- package/dist/components/uikit/Tooltip/components/DefaultTooltip/DefaultTooltip.styled.d.ts +1 -0
- package/dist/components/uikit/Tooltip/index.d.ts +2 -0
- package/dist/components/uikit/storybook/StoryDescription/StoryDescription.d.ts +5 -0
- package/dist/components/uikit/storybook/StoryDescription/StoryDescription.styled.d.ts +1 -0
- package/dist/components/uikit/storybook/StoryExample/StoryExample.d.ts +6 -0
- package/dist/components/uikit/storybook/StoryExample/StoryExample.styled.d.ts +1 -0
- package/dist/components/uikit/storybook/StoryTitle/StoryTitle.d.ts +6 -0
- package/dist/components/uikit/storybook/StoryTitle/StoryTitle.styled.d.ts +1 -0
- package/dist/hooks/useBlockScroll.d.ts +2 -0
- package/dist/hooks/useBreakpoints.d.ts +6 -6
- package/dist/hooks/useClickOutside.d.ts +3 -0
- package/dist/hooks/useCurrentPath.d.ts +4 -4
- package/dist/hooks/useEscKeydownHandler.d.ts +1 -0
- package/dist/hooks/useHidingChat.d.ts +2 -0
- package/dist/hooks/useListenOutsideClick.d.ts +3 -3
- package/dist/hooks/useTransitionModal.d.ts +7 -0
- package/dist/index.d.ts +14 -3
- package/dist/index.js +638 -131
- package/dist/index.js.LICENSE.txt +26 -0
- package/dist/utils.d.ts +6 -6
- package/package.json +59 -30
- package/readme.md +10 -10
- package/dist/context/theme-context.d.ts +0 -5
- package/dist/hooks/useDisableScroll.d.ts +0 -3
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
export declare const Size: {
|
|
2
|
+
large: {
|
|
3
|
+
fontWeight: number;
|
|
4
|
+
fontSize: string;
|
|
5
|
+
lineHeight: string;
|
|
6
|
+
height: string;
|
|
7
|
+
maxHeight: string;
|
|
8
|
+
};
|
|
9
|
+
medium: {
|
|
10
|
+
fontWeight: number;
|
|
11
|
+
fontSize: string;
|
|
12
|
+
lineHeight: string;
|
|
13
|
+
height: string;
|
|
14
|
+
maxHeight: string;
|
|
15
|
+
};
|
|
16
|
+
small: {
|
|
17
|
+
fontWeight: number;
|
|
18
|
+
fontSize: string;
|
|
19
|
+
lineHeight: string;
|
|
20
|
+
height: string;
|
|
21
|
+
maxHeight: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare const Theme: {
|
|
25
|
+
Primary: {
|
|
26
|
+
default: {
|
|
27
|
+
color: string;
|
|
28
|
+
border: string;
|
|
29
|
+
background: string;
|
|
30
|
+
};
|
|
31
|
+
hover: {
|
|
32
|
+
background: string;
|
|
33
|
+
borderColor: string;
|
|
34
|
+
color: string;
|
|
35
|
+
};
|
|
36
|
+
active: {
|
|
37
|
+
background: string;
|
|
38
|
+
borderColor: string;
|
|
39
|
+
color: string;
|
|
40
|
+
};
|
|
41
|
+
disabled: {
|
|
42
|
+
background: string;
|
|
43
|
+
borderColor: string;
|
|
44
|
+
color: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
Secondary: {
|
|
48
|
+
default: {
|
|
49
|
+
color: string;
|
|
50
|
+
border: string;
|
|
51
|
+
background: string;
|
|
52
|
+
};
|
|
53
|
+
hover: {
|
|
54
|
+
background: string;
|
|
55
|
+
borderColor: string;
|
|
56
|
+
color: string;
|
|
57
|
+
};
|
|
58
|
+
active: {
|
|
59
|
+
background: string;
|
|
60
|
+
borderColor: string;
|
|
61
|
+
color: string;
|
|
62
|
+
};
|
|
63
|
+
disabled: {
|
|
64
|
+
background: string;
|
|
65
|
+
borderColor: string;
|
|
66
|
+
color: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
Tertiary: {
|
|
70
|
+
default: {
|
|
71
|
+
color: string;
|
|
72
|
+
border: string;
|
|
73
|
+
background: string;
|
|
74
|
+
};
|
|
75
|
+
hover: {
|
|
76
|
+
background: string;
|
|
77
|
+
borderColor: string;
|
|
78
|
+
color: string;
|
|
79
|
+
};
|
|
80
|
+
active: {
|
|
81
|
+
background: string;
|
|
82
|
+
borderColor: string;
|
|
83
|
+
color: string;
|
|
84
|
+
};
|
|
85
|
+
disabled: {
|
|
86
|
+
background: string;
|
|
87
|
+
borderColor: string;
|
|
88
|
+
color: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
Negative: {
|
|
92
|
+
default: {
|
|
93
|
+
color: string;
|
|
94
|
+
border: string;
|
|
95
|
+
background: string;
|
|
96
|
+
};
|
|
97
|
+
hover: {
|
|
98
|
+
background: string;
|
|
99
|
+
borderColor: string;
|
|
100
|
+
color: string;
|
|
101
|
+
};
|
|
102
|
+
active: {
|
|
103
|
+
background: string;
|
|
104
|
+
borderColor: string;
|
|
105
|
+
color: string;
|
|
106
|
+
};
|
|
107
|
+
disabled: {
|
|
108
|
+
background: string;
|
|
109
|
+
borderColor: string;
|
|
110
|
+
color: string;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
Neutral: {
|
|
114
|
+
default: {
|
|
115
|
+
color: string;
|
|
116
|
+
border: string;
|
|
117
|
+
background: string;
|
|
118
|
+
};
|
|
119
|
+
hover: {
|
|
120
|
+
background: string;
|
|
121
|
+
borderColor: string;
|
|
122
|
+
color: string;
|
|
123
|
+
};
|
|
124
|
+
active: {
|
|
125
|
+
background: string;
|
|
126
|
+
borderColor: string;
|
|
127
|
+
color: string;
|
|
128
|
+
};
|
|
129
|
+
disabled: {
|
|
130
|
+
background: string;
|
|
131
|
+
borderColor: string;
|
|
132
|
+
color: string;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: React.ForwardRefExoticComponent<import("./Button.typed").IButton & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Button: () => JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ButtonTheme, ButtonSize } from './Button.typed';
|
|
2
|
+
declare const Button: import("styled-components").StyledComponent<"button", any, {
|
|
3
|
+
size: ButtonSize;
|
|
4
|
+
width: string;
|
|
5
|
+
theme: ButtonTheme;
|
|
6
|
+
isText: boolean;
|
|
7
|
+
isIconLeft: boolean;
|
|
8
|
+
isIconRight: boolean;
|
|
9
|
+
isFill: boolean;
|
|
10
|
+
}, never>;
|
|
11
|
+
declare const IconLeft: import("styled-components").StyledComponent<"span", any, {
|
|
12
|
+
size: ButtonSize;
|
|
13
|
+
isText: boolean;
|
|
14
|
+
}, never>;
|
|
15
|
+
declare const IconRight: import("styled-components").StyledComponent<"span", any, {
|
|
16
|
+
size: ButtonSize;
|
|
17
|
+
isText: boolean;
|
|
18
|
+
}, never>;
|
|
19
|
+
declare const Loading: import("styled-components").StyledComponent<"div", any, {
|
|
20
|
+
theme: ButtonTheme;
|
|
21
|
+
}, never>;
|
|
22
|
+
export { Loading, IconRight, IconLeft, Button };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import CSS from 'csstype';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { SizeLoader } from '../Loader';
|
|
4
|
+
export declare enum ButtonTheme {
|
|
5
|
+
Primary = "Primary",
|
|
6
|
+
Secondary = "Secondary",
|
|
7
|
+
Tertiary = "Tertiary",
|
|
8
|
+
Negative = "Negative",
|
|
9
|
+
Neutral = "Neutral"
|
|
10
|
+
}
|
|
11
|
+
export declare enum ButtonSize {
|
|
12
|
+
L = "large",
|
|
13
|
+
M = "medium",
|
|
14
|
+
S = "small"
|
|
15
|
+
}
|
|
16
|
+
export interface IButton {
|
|
17
|
+
type?: 'submit' | 'button';
|
|
18
|
+
text?: string;
|
|
19
|
+
loading?: boolean;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
iconLeft?: ReactNode;
|
|
22
|
+
iconRight?: ReactNode;
|
|
23
|
+
theme?: ButtonTheme;
|
|
24
|
+
size?: ButtonSize;
|
|
25
|
+
style?: CSS.Properties;
|
|
26
|
+
width?: string;
|
|
27
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
28
|
+
className?: string;
|
|
29
|
+
loaderSize?: SizeLoader;
|
|
30
|
+
isFill?: boolean;
|
|
31
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CheckboxForm, CheckboxSize } from './Checkbox.typed';
|
|
2
|
+
declare const Element: import("styled-components").StyledComponent<"span", any, {
|
|
3
|
+
size: CheckboxSize;
|
|
4
|
+
form: CheckboxForm;
|
|
5
|
+
}, never>;
|
|
6
|
+
declare const Container: import("styled-components").StyledComponent<"label", any, {
|
|
7
|
+
align: string;
|
|
8
|
+
readonly: boolean;
|
|
9
|
+
}, never>;
|
|
10
|
+
declare const NativeInput: import("styled-components").StyledComponent<"input", any, {
|
|
11
|
+
type: "checkbox";
|
|
12
|
+
}, "type">;
|
|
13
|
+
declare const Text: import("styled-components").StyledComponent<"span", any, {
|
|
14
|
+
size: CheckboxSize;
|
|
15
|
+
isTextLeft: boolean;
|
|
16
|
+
color: string;
|
|
17
|
+
}, never>;
|
|
18
|
+
export { NativeInput, Container, Element, Text };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare enum CheckboxSize {
|
|
3
|
+
regular = "regular",
|
|
4
|
+
compact = "compact"
|
|
5
|
+
}
|
|
6
|
+
export declare enum CheckboxForm {
|
|
7
|
+
square = "square",
|
|
8
|
+
circle = "circle"
|
|
9
|
+
}
|
|
10
|
+
export interface ICheckbox {
|
|
11
|
+
checked?: boolean;
|
|
12
|
+
text?: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
align?: 'center' | 'flex-start';
|
|
15
|
+
size?: CheckboxSize;
|
|
16
|
+
form?: CheckboxForm;
|
|
17
|
+
isTextLeft?: boolean;
|
|
18
|
+
color?: string;
|
|
19
|
+
value?: string | number;
|
|
20
|
+
readonly?: boolean;
|
|
21
|
+
classNameText?: string;
|
|
22
|
+
classNameContainer?: string;
|
|
23
|
+
onChange?: (value: boolean, e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Text: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ErrorText } from './ErrorText';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: React.ForwardRefExoticComponent<import("./Input.typed").IInput & React.RefAttributes<HTMLInputElement>>;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Input: () => JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const Content: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const Icon: import("styled-components").StyledComponent<"span", any, {
|
|
4
|
+
iconBorder: boolean;
|
|
5
|
+
} & {
|
|
6
|
+
iconBorder: boolean;
|
|
7
|
+
}, never>;
|
|
8
|
+
export declare const RightText: import("styled-components").StyledComponent<"span", any, {
|
|
9
|
+
iconBorder: boolean;
|
|
10
|
+
} & {
|
|
11
|
+
iconBorder: boolean;
|
|
12
|
+
rightTextColor: string;
|
|
13
|
+
}, never>;
|
|
14
|
+
export declare const Input: import("styled-components").StyledComponent<"input", any, {
|
|
15
|
+
icon: boolean;
|
|
16
|
+
error: boolean;
|
|
17
|
+
}, never>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export interface IInput {
|
|
3
|
+
/**Значение инпута*/
|
|
4
|
+
value: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
name: string;
|
|
7
|
+
type?: 'text' | 'password' | 'number';
|
|
8
|
+
readonly?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
autoFocus?: boolean;
|
|
11
|
+
maxLength?: number;
|
|
12
|
+
numAfterDot?: number;
|
|
13
|
+
icon?: ReactNode;
|
|
14
|
+
rightText?: string;
|
|
15
|
+
rightTextColor?: string;
|
|
16
|
+
autoComplete?: 'on' | 'off';
|
|
17
|
+
inputClassName?: string;
|
|
18
|
+
iconBorder?: boolean;
|
|
19
|
+
pattern?: RegExp;
|
|
20
|
+
error?: boolean | string | React.ReactNode;
|
|
21
|
+
onChange?: (val: string, evt: React.ChangeEvent<HTMLInputElement>) => void;
|
|
22
|
+
onFocus?: () => void;
|
|
23
|
+
onBlur?: () => void;
|
|
24
|
+
onKeyDown?: (evt: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
25
|
+
onClick?: () => void;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const numberWithSpaces: (val: string) => string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SizeLoader } from './Loader.typed';
|
|
2
|
+
declare const Container: import("styled-components").StyledComponent<"div", any, {
|
|
3
|
+
size: SizeLoader;
|
|
4
|
+
}, never>;
|
|
5
|
+
declare const Dot: import("styled-components").StyledComponent<"div", any, {
|
|
6
|
+
color: string;
|
|
7
|
+
size: SizeLoader;
|
|
8
|
+
}, never>;
|
|
9
|
+
export { Container, Dot };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {
|
|
2
|
+
open: boolean;
|
|
3
|
+
}, never>;
|
|
4
|
+
export declare const Layout: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const Content: import("styled-components").StyledComponent<"div", any, {
|
|
6
|
+
theme: 'light' | 'dark';
|
|
7
|
+
}, never>;
|
|
8
|
+
export declare const Header: import("styled-components").StyledComponent<"div", any, {
|
|
9
|
+
borderHeader: boolean;
|
|
10
|
+
}, never>;
|
|
11
|
+
export declare const HeaderFirstLine: import("styled-components").StyledComponent<"div", any, {
|
|
12
|
+
onlyCloseIcon: boolean;
|
|
13
|
+
}, never>;
|
|
14
|
+
export declare const Title: import("styled-components").StyledComponent<"h2", any, {
|
|
15
|
+
theme: 'light' | 'dark';
|
|
16
|
+
titlePosition: 'left' | 'center';
|
|
17
|
+
}, never>;
|
|
18
|
+
export declare const Subtitle: import("styled-components").StyledComponent<"span", any, {
|
|
19
|
+
theme: 'light' | 'dark';
|
|
20
|
+
}, never>;
|
|
21
|
+
export declare const CloseButton: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
export interface IModal {
|
|
3
|
+
/** Состояние попапа. */
|
|
4
|
+
open: boolean;
|
|
5
|
+
/** Действие при закрытии попапа. */
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
/** Контент попапа. */
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
/** Показывать ли кнопку закрытия. */
|
|
10
|
+
showCloseButton?: boolean;
|
|
11
|
+
/** Показывать ли бордер у title. */
|
|
12
|
+
borderHeader?: boolean;
|
|
13
|
+
/** Заголовок модалки */
|
|
14
|
+
title?: string;
|
|
15
|
+
/** Подзаголовок модалки */
|
|
16
|
+
subtitle?: string;
|
|
17
|
+
/** Тема */
|
|
18
|
+
theme?: 'light' | 'dark';
|
|
19
|
+
/** инлайновые стили для контента попапа */
|
|
20
|
+
styleContent?: CSSProperties;
|
|
21
|
+
/** инлайновые стили для фона попапа */
|
|
22
|
+
styleBackground?: CSSProperties;
|
|
23
|
+
/** класс для фона попапа */
|
|
24
|
+
classNameBackground?: string;
|
|
25
|
+
/** класс для контента попапа */
|
|
26
|
+
classNameContent?: string;
|
|
27
|
+
/** класс для хедера попапа */
|
|
28
|
+
classNameHeader?: string;
|
|
29
|
+
classNameWrapper?: string;
|
|
30
|
+
/** центрирование заголовка */
|
|
31
|
+
titlePosition?: 'left' | 'center';
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Modal } from './Modal';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Portal } from './Portal';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RadioSize } from './Radio.typed';
|
|
2
|
+
declare const Element: import("styled-components").StyledComponent<"span", any, {
|
|
3
|
+
size: RadioSize;
|
|
4
|
+
}, never>;
|
|
5
|
+
declare const Container: import("styled-components").StyledComponent<"label", any, {
|
|
6
|
+
align: 'center' | 'flex-start';
|
|
7
|
+
}, never>;
|
|
8
|
+
declare const NativeInput: import("styled-components").StyledComponent<"input", any, {
|
|
9
|
+
type: "radio";
|
|
10
|
+
}, "type">;
|
|
11
|
+
declare const Text: import("styled-components").StyledComponent<"span", any, {
|
|
12
|
+
size: RadioSize;
|
|
13
|
+
isTextLeft: boolean;
|
|
14
|
+
color: string;
|
|
15
|
+
}, never>;
|
|
16
|
+
export { Text, NativeInput, Container, Element };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare enum RadioSize {
|
|
3
|
+
regular = "regular",
|
|
4
|
+
compact = "compact"
|
|
5
|
+
}
|
|
6
|
+
export interface IRadio {
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
text?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
size?: RadioSize;
|
|
11
|
+
align?: 'center' | 'flex-start';
|
|
12
|
+
isTextLeft?: boolean;
|
|
13
|
+
onChange?: (value: string, e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
14
|
+
value?: string | number;
|
|
15
|
+
color?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Scroll = "\n scrollbar-color: #a398f9 rgba(224, 224, 224, 0.2);\n scrollbar-width: thin;\n &::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n };\n &::-webkit-scrollbar-track {\n background: #ffffff;\n border-radius: 12px;\n };\n &::-webkit-scrollbar-thumb {\n background: #a398f9;\n border-radius: 12px;\n };\n &::-webkit-scrollbar-thumb:hover {\n background: #6553f5;\n };\n";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface ISkeleton {
|
|
2
|
+
/**Высота блока*/
|
|
3
|
+
height: number;
|
|
4
|
+
/**Отступ снизу*/
|
|
5
|
+
bottom?: number;
|
|
6
|
+
/**Отступ справа*/
|
|
7
|
+
right?: number;
|
|
8
|
+
/**Максимальная ширина*/
|
|
9
|
+
maxWidth?: number;
|
|
10
|
+
/**Радиус закругления*/
|
|
11
|
+
radius?: number;
|
|
12
|
+
/**Тема*/
|
|
13
|
+
type?: 'light' | 'dark';
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Skeleton } from './Skeleton';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const TextButtonConst: {
|
|
2
|
+
Blue: {
|
|
3
|
+
default: {
|
|
4
|
+
color: string;
|
|
5
|
+
};
|
|
6
|
+
hover: {
|
|
7
|
+
color: string;
|
|
8
|
+
};
|
|
9
|
+
active: {
|
|
10
|
+
color: string;
|
|
11
|
+
};
|
|
12
|
+
disabled: {
|
|
13
|
+
color: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
Gray: {
|
|
17
|
+
default: {
|
|
18
|
+
color: string;
|
|
19
|
+
};
|
|
20
|
+
hover: {
|
|
21
|
+
color: string;
|
|
22
|
+
};
|
|
23
|
+
active: {
|
|
24
|
+
color: string;
|
|
25
|
+
};
|
|
26
|
+
disabled: {
|
|
27
|
+
color: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: ({ type, theme, text, style, onClick, className, iconLeft, disabled }: import("./TextButton.typed").ITextButton) => JSX.Element;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const TextButton: () => JSX.Element;
|