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
|
@@ -1,148 +1,148 @@
|
|
|
1
|
-
import { HeaderLinkType, UserRole } from '
|
|
2
|
-
export declare const getMainLinks: (profinansyHostname: string, isTest: boolean, leaderBoardPermission: boolean) => Record<UserRole, HeaderLinkType[]>;
|
|
3
|
-
export declare const LeaderBoardLinks: (permission: boolean, profinansyHostname: string, isGuest?: boolean) => ({
|
|
4
|
-
name: string;
|
|
5
|
-
href: string;
|
|
6
|
-
locked: boolean;
|
|
7
|
-
onlyMobile: boolean;
|
|
8
|
-
} | {
|
|
9
|
-
name: string;
|
|
10
|
-
href: string;
|
|
11
|
-
locked: boolean;
|
|
12
|
-
onlyMobile?: undefined;
|
|
13
|
-
})[] | {
|
|
14
|
-
name: string;
|
|
15
|
-
href: string;
|
|
16
|
-
}[];
|
|
17
|
-
export declare const getClubLinks: (access: boolean, profinansyHostname: string) => {
|
|
18
|
-
name: string;
|
|
19
|
-
href: string;
|
|
20
|
-
Icon: import("react").FC<import("
|
|
21
|
-
iconSize: {
|
|
22
|
-
width: number;
|
|
23
|
-
height: number;
|
|
24
|
-
};
|
|
25
|
-
subPages: {
|
|
26
|
-
name: string;
|
|
27
|
-
href: string;
|
|
28
|
-
locked: boolean;
|
|
29
|
-
}[];
|
|
30
|
-
};
|
|
31
|
-
export declare const guestLinks: (profinansyHostname: string) => HeaderLinkType[];
|
|
32
|
-
export declare const authorizedLinks: (profinansyHostname: string, isTest: boolean, leaderBoardPermission: boolean) => ({
|
|
33
|
-
name: string;
|
|
34
|
-
Icon: import("react").FC<import("
|
|
35
|
-
href: string;
|
|
36
|
-
subPages: any[];
|
|
37
|
-
iconSize?: undefined;
|
|
38
|
-
innerPages?: undefined;
|
|
39
|
-
} | {
|
|
40
|
-
name: string;
|
|
41
|
-
Icon: import("react").FC<import("
|
|
42
|
-
iconSize: {
|
|
43
|
-
width: number;
|
|
44
|
-
height: number;
|
|
45
|
-
};
|
|
46
|
-
href: string;
|
|
47
|
-
subPages: ({
|
|
48
|
-
name: string;
|
|
49
|
-
href: string;
|
|
50
|
-
locked: boolean;
|
|
51
|
-
subLinks?: undefined;
|
|
52
|
-
} | {
|
|
53
|
-
name: string;
|
|
54
|
-
href: string;
|
|
55
|
-
locked?: undefined;
|
|
56
|
-
subLinks?: undefined;
|
|
57
|
-
} | {
|
|
58
|
-
name: string;
|
|
59
|
-
href: string;
|
|
60
|
-
subLinks: {
|
|
61
|
-
name: string;
|
|
62
|
-
href: string;
|
|
63
|
-
}[];
|
|
64
|
-
locked?: undefined;
|
|
65
|
-
})[];
|
|
66
|
-
innerPages: string[];
|
|
67
|
-
} | {
|
|
68
|
-
name: string;
|
|
69
|
-
Icon: import("react").FC<import("
|
|
70
|
-
iconSize: {
|
|
71
|
-
width: number;
|
|
72
|
-
height: number;
|
|
73
|
-
};
|
|
74
|
-
href: string;
|
|
75
|
-
subPages: ({
|
|
76
|
-
name: string;
|
|
77
|
-
href: string;
|
|
78
|
-
locked: boolean;
|
|
79
|
-
onlyMobile: boolean;
|
|
80
|
-
} | {
|
|
81
|
-
name: string;
|
|
82
|
-
href: string;
|
|
83
|
-
locked: boolean;
|
|
84
|
-
onlyMobile?: undefined;
|
|
85
|
-
} | {
|
|
86
|
-
name: string;
|
|
87
|
-
href: string;
|
|
88
|
-
onlyMobile: boolean;
|
|
89
|
-
} | {
|
|
90
|
-
name: string;
|
|
91
|
-
href: string;
|
|
92
|
-
onlyMobile?: undefined;
|
|
93
|
-
})[];
|
|
94
|
-
innerPages?: undefined;
|
|
95
|
-
})[];
|
|
96
|
-
export declare const paidLinks: (profinansyHostname: string, isTest: boolean, leaderBoardPermission: boolean) => ({
|
|
97
|
-
name: string;
|
|
98
|
-
Icon: import("react").FC<import("
|
|
99
|
-
href: string;
|
|
100
|
-
subPages: any[];
|
|
101
|
-
iconSize?: undefined;
|
|
102
|
-
innerPages?: undefined;
|
|
103
|
-
} | {
|
|
104
|
-
name: string;
|
|
105
|
-
Icon: import("react").FC<import("
|
|
106
|
-
iconSize: {
|
|
107
|
-
width: number;
|
|
108
|
-
height: number;
|
|
109
|
-
};
|
|
110
|
-
href: string;
|
|
111
|
-
subPages: ({
|
|
112
|
-
name: string;
|
|
113
|
-
href: string;
|
|
114
|
-
onlyMobile: boolean;
|
|
115
|
-
subLinks?: undefined;
|
|
116
|
-
} | {
|
|
117
|
-
name: string;
|
|
118
|
-
href: string;
|
|
119
|
-
onlyMobile?: undefined;
|
|
120
|
-
subLinks?: undefined;
|
|
121
|
-
} | {
|
|
122
|
-
name: string;
|
|
123
|
-
href: string;
|
|
124
|
-
subLinks: {
|
|
125
|
-
name: string;
|
|
126
|
-
href: string;
|
|
127
|
-
}[];
|
|
128
|
-
onlyMobile?: undefined;
|
|
129
|
-
})[];
|
|
130
|
-
innerPages: string[];
|
|
131
|
-
} | {
|
|
132
|
-
name: string;
|
|
133
|
-
Icon: import("react").FC<import("
|
|
134
|
-
iconSize: {
|
|
135
|
-
width: number;
|
|
136
|
-
height: number;
|
|
137
|
-
};
|
|
138
|
-
href: string;
|
|
139
|
-
subPages: ({
|
|
140
|
-
name: string;
|
|
141
|
-
href: string;
|
|
142
|
-
} | {
|
|
143
|
-
name: string;
|
|
144
|
-
href: string;
|
|
145
|
-
onlyMobile: boolean;
|
|
146
|
-
})[];
|
|
147
|
-
innerPages?: undefined;
|
|
148
|
-
})[];
|
|
1
|
+
import { HeaderLinkType, UserRole } from '@src/common.types';
|
|
2
|
+
export declare const getMainLinks: (profinansyHostname: string, isTest: boolean, leaderBoardPermission: boolean) => Record<UserRole, HeaderLinkType[]>;
|
|
3
|
+
export declare const LeaderBoardLinks: (permission: boolean, profinansyHostname: string, isGuest?: boolean) => ({
|
|
4
|
+
name: string;
|
|
5
|
+
href: string;
|
|
6
|
+
locked: boolean;
|
|
7
|
+
onlyMobile: boolean;
|
|
8
|
+
} | {
|
|
9
|
+
name: string;
|
|
10
|
+
href: string;
|
|
11
|
+
locked: boolean;
|
|
12
|
+
onlyMobile?: undefined;
|
|
13
|
+
})[] | {
|
|
14
|
+
name: string;
|
|
15
|
+
href: string;
|
|
16
|
+
}[];
|
|
17
|
+
export declare const getClubLinks: (access: boolean, profinansyHostname: string) => {
|
|
18
|
+
name: string;
|
|
19
|
+
href: string;
|
|
20
|
+
Icon: import("react").FC<import("@src/common.types").IconsInterface>;
|
|
21
|
+
iconSize: {
|
|
22
|
+
width: number;
|
|
23
|
+
height: number;
|
|
24
|
+
};
|
|
25
|
+
subPages: {
|
|
26
|
+
name: string;
|
|
27
|
+
href: string;
|
|
28
|
+
locked: boolean;
|
|
29
|
+
}[];
|
|
30
|
+
};
|
|
31
|
+
export declare const guestLinks: (profinansyHostname: string) => HeaderLinkType[];
|
|
32
|
+
export declare const authorizedLinks: (profinansyHostname: string, isTest: boolean, leaderBoardPermission: boolean) => ({
|
|
33
|
+
name: string;
|
|
34
|
+
Icon: import("react").FC<import("@src/common.types").IconsInterface>;
|
|
35
|
+
href: string;
|
|
36
|
+
subPages: any[];
|
|
37
|
+
iconSize?: undefined;
|
|
38
|
+
innerPages?: undefined;
|
|
39
|
+
} | {
|
|
40
|
+
name: string;
|
|
41
|
+
Icon: import("react").FC<import("@src/common.types").IconsInterface>;
|
|
42
|
+
iconSize: {
|
|
43
|
+
width: number;
|
|
44
|
+
height: number;
|
|
45
|
+
};
|
|
46
|
+
href: string;
|
|
47
|
+
subPages: ({
|
|
48
|
+
name: string;
|
|
49
|
+
href: string;
|
|
50
|
+
locked: boolean;
|
|
51
|
+
subLinks?: undefined;
|
|
52
|
+
} | {
|
|
53
|
+
name: string;
|
|
54
|
+
href: string;
|
|
55
|
+
locked?: undefined;
|
|
56
|
+
subLinks?: undefined;
|
|
57
|
+
} | {
|
|
58
|
+
name: string;
|
|
59
|
+
href: string;
|
|
60
|
+
subLinks: {
|
|
61
|
+
name: string;
|
|
62
|
+
href: string;
|
|
63
|
+
}[];
|
|
64
|
+
locked?: undefined;
|
|
65
|
+
})[];
|
|
66
|
+
innerPages: string[];
|
|
67
|
+
} | {
|
|
68
|
+
name: string;
|
|
69
|
+
Icon: import("react").FC<import("@src/common.types").IconsInterface>;
|
|
70
|
+
iconSize: {
|
|
71
|
+
width: number;
|
|
72
|
+
height: number;
|
|
73
|
+
};
|
|
74
|
+
href: string;
|
|
75
|
+
subPages: ({
|
|
76
|
+
name: string;
|
|
77
|
+
href: string;
|
|
78
|
+
locked: boolean;
|
|
79
|
+
onlyMobile: boolean;
|
|
80
|
+
} | {
|
|
81
|
+
name: string;
|
|
82
|
+
href: string;
|
|
83
|
+
locked: boolean;
|
|
84
|
+
onlyMobile?: undefined;
|
|
85
|
+
} | {
|
|
86
|
+
name: string;
|
|
87
|
+
href: string;
|
|
88
|
+
onlyMobile: boolean;
|
|
89
|
+
} | {
|
|
90
|
+
name: string;
|
|
91
|
+
href: string;
|
|
92
|
+
onlyMobile?: undefined;
|
|
93
|
+
})[];
|
|
94
|
+
innerPages?: undefined;
|
|
95
|
+
})[];
|
|
96
|
+
export declare const paidLinks: (profinansyHostname: string, isTest: boolean, leaderBoardPermission: boolean) => ({
|
|
97
|
+
name: string;
|
|
98
|
+
Icon: import("react").FC<import("@src/common.types").IconsInterface>;
|
|
99
|
+
href: string;
|
|
100
|
+
subPages: any[];
|
|
101
|
+
iconSize?: undefined;
|
|
102
|
+
innerPages?: undefined;
|
|
103
|
+
} | {
|
|
104
|
+
name: string;
|
|
105
|
+
Icon: import("react").FC<import("@src/common.types").IconsInterface>;
|
|
106
|
+
iconSize: {
|
|
107
|
+
width: number;
|
|
108
|
+
height: number;
|
|
109
|
+
};
|
|
110
|
+
href: string;
|
|
111
|
+
subPages: ({
|
|
112
|
+
name: string;
|
|
113
|
+
href: string;
|
|
114
|
+
onlyMobile: boolean;
|
|
115
|
+
subLinks?: undefined;
|
|
116
|
+
} | {
|
|
117
|
+
name: string;
|
|
118
|
+
href: string;
|
|
119
|
+
onlyMobile?: undefined;
|
|
120
|
+
subLinks?: undefined;
|
|
121
|
+
} | {
|
|
122
|
+
name: string;
|
|
123
|
+
href: string;
|
|
124
|
+
subLinks: {
|
|
125
|
+
name: string;
|
|
126
|
+
href: string;
|
|
127
|
+
}[];
|
|
128
|
+
onlyMobile?: undefined;
|
|
129
|
+
})[];
|
|
130
|
+
innerPages: string[];
|
|
131
|
+
} | {
|
|
132
|
+
name: string;
|
|
133
|
+
Icon: import("react").FC<import("@src/common.types").IconsInterface>;
|
|
134
|
+
iconSize: {
|
|
135
|
+
width: number;
|
|
136
|
+
height: number;
|
|
137
|
+
};
|
|
138
|
+
href: string;
|
|
139
|
+
subPages: ({
|
|
140
|
+
name: string;
|
|
141
|
+
href: string;
|
|
142
|
+
} | {
|
|
143
|
+
name: string;
|
|
144
|
+
href: string;
|
|
145
|
+
onlyMobile: boolean;
|
|
146
|
+
})[];
|
|
147
|
+
innerPages?: undefined;
|
|
148
|
+
})[];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { HeaderLinkType } from '../../../common.types';
|
|
3
|
-
type Props = HeaderLinkType & {
|
|
4
|
-
onRouteChange: (path: string) => void;
|
|
5
|
-
closeBurger: () => void;
|
|
6
|
-
burgerOpened: boolean;
|
|
7
|
-
blackVersion?: boolean;
|
|
8
|
-
mainColor?: string;
|
|
9
|
-
activeColor?: string;
|
|
10
|
-
};
|
|
11
|
-
export declare const HeaderLinkItem: FC<Props>;
|
|
12
|
-
export {};
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { HeaderLinkType } from '../../../common.types';
|
|
3
|
+
type Props = HeaderLinkType & {
|
|
4
|
+
onRouteChange: (path: string) => void;
|
|
5
|
+
closeBurger: () => void;
|
|
6
|
+
burgerOpened: boolean;
|
|
7
|
+
blackVersion?: boolean;
|
|
8
|
+
mainColor?: string;
|
|
9
|
+
activeColor?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const HeaderLinkItem: FC<Props>;
|
|
12
|
+
export {};
|
|
@@ -1,8 +1,43 @@
|
|
|
1
|
-
export declare const HeaderItem: any
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
1
|
+
export declare const HeaderItem: import("styled-components").StyledComponent<"div", any, {
|
|
2
|
+
opened: boolean;
|
|
3
|
+
blackVersion?: boolean;
|
|
4
|
+
dropdownColor: string;
|
|
5
|
+
linkItemBg: string;
|
|
6
|
+
}, never>;
|
|
7
|
+
export declare const HeaderDropdown: import("styled-components").StyledComponent<"ul", any, {
|
|
8
|
+
blackVersion?: boolean;
|
|
9
|
+
}, never>;
|
|
10
|
+
export declare const HeaderDropdownItem: import("styled-components").StyledComponent<"li", any, {
|
|
11
|
+
blackVersion?: boolean;
|
|
12
|
+
open: boolean;
|
|
13
|
+
}, never>;
|
|
14
|
+
export declare const HeaderDropdownItemLink: import("styled-components").StyledComponent<"button", any, {
|
|
15
|
+
locked?: boolean;
|
|
16
|
+
active?: boolean;
|
|
17
|
+
mainColor?: string;
|
|
18
|
+
blackVersion?: boolean;
|
|
19
|
+
activeColor?: string;
|
|
20
|
+
open: boolean;
|
|
21
|
+
}, never>;
|
|
22
|
+
export declare const HeaderSubLink: import("styled-components").StyledComponent<"button", any, {
|
|
23
|
+
locked?: boolean;
|
|
24
|
+
active?: boolean;
|
|
25
|
+
mainColor?: string;
|
|
26
|
+
blackVersion?: boolean;
|
|
27
|
+
activeColor?: string;
|
|
28
|
+
}, never>;
|
|
29
|
+
export declare const HeaderLink: import("styled-components").StyledComponent<"button", any, {
|
|
30
|
+
active?: boolean;
|
|
31
|
+
sm?: boolean;
|
|
32
|
+
blackVersion?: boolean;
|
|
33
|
+
activeColor?: string;
|
|
34
|
+
mainColor?: string;
|
|
35
|
+
}, never>;
|
|
36
|
+
export declare const ChevronIconWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
37
|
+
opened?: boolean;
|
|
38
|
+
}, never>;
|
|
39
|
+
export declare const LinkIconSvgWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
40
|
+
active?: boolean;
|
|
41
|
+
mainColor?: string;
|
|
42
|
+
activeColor?: string;
|
|
43
|
+
}, never>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
type TProps = {
|
|
3
|
-
name: string;
|
|
4
|
-
href: string;
|
|
5
|
-
locked?: boolean;
|
|
6
|
-
onlyMobile?: boolean;
|
|
7
|
-
subLinks?: {
|
|
8
|
-
name: string;
|
|
9
|
-
href: string;
|
|
10
|
-
}[];
|
|
11
|
-
blackVersion: boolean;
|
|
12
|
-
mainColor: string;
|
|
13
|
-
activeColor: string;
|
|
14
|
-
onClick: (href?: string) => void;
|
|
15
|
-
};
|
|
16
|
-
export declare const HeaderSubLink: FC<TProps>;
|
|
17
|
-
export {};
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
type TProps = {
|
|
3
|
+
name: string;
|
|
4
|
+
href: string;
|
|
5
|
+
locked?: boolean;
|
|
6
|
+
onlyMobile?: boolean;
|
|
7
|
+
subLinks?: {
|
|
8
|
+
name: string;
|
|
9
|
+
href: string;
|
|
10
|
+
}[];
|
|
11
|
+
blackVersion: boolean;
|
|
12
|
+
mainColor: string;
|
|
13
|
+
activeColor: string;
|
|
14
|
+
onClick: (href?: string) => void;
|
|
15
|
+
};
|
|
16
|
+
export declare const HeaderSubLink: FC<TProps>;
|
|
17
|
+
export {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { UserRole } from '
|
|
3
|
-
type Props = {
|
|
4
|
-
userRole: UserRole;
|
|
5
|
-
avatarUrl?: string;
|
|
6
|
-
clubAccess: boolean;
|
|
7
|
-
isTest: boolean;
|
|
8
|
-
onLogout: () => void;
|
|
9
|
-
isProfinansy?: boolean;
|
|
10
|
-
onRouteChange?: (path: string) => void;
|
|
11
|
-
SearchBox?: () => JSX.Element;
|
|
12
|
-
blackVersion?: boolean;
|
|
13
|
-
leaderBoardPermission?: boolean;
|
|
14
|
-
};
|
|
15
|
-
export declare const Header: FC<Props>;
|
|
16
|
-
export {};
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { UserRole } from '@src/common.types';
|
|
3
|
+
type Props = {
|
|
4
|
+
userRole: UserRole;
|
|
5
|
+
avatarUrl?: string;
|
|
6
|
+
clubAccess: boolean;
|
|
7
|
+
isTest: boolean;
|
|
8
|
+
onLogout: () => void;
|
|
9
|
+
isProfinansy?: boolean;
|
|
10
|
+
onRouteChange?: (path: string) => void;
|
|
11
|
+
SearchBox?: () => JSX.Element;
|
|
12
|
+
blackVersion?: boolean;
|
|
13
|
+
leaderBoardPermission?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare const Header: FC<Props>;
|
|
16
|
+
export {};
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
export declare const HeaderRoot: any
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
1
|
+
export declare const HeaderRoot: import("styled-components").StyledComponent<"div", any, {
|
|
2
|
+
blackVersion?: boolean;
|
|
3
|
+
}, never>;
|
|
4
|
+
export declare const LinkList: import("styled-components").StyledComponent<"div", any, {
|
|
5
|
+
opened?: boolean;
|
|
6
|
+
blackVersion?: boolean;
|
|
7
|
+
}, never>;
|
|
8
|
+
export declare const HeaderRight: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const CreateBtn: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
+
export declare const MobileCreateBtn: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
|
+
export declare const FavoritesButton: import("styled-components").StyledComponent<"button", any, {}, never>;
|
|
12
|
+
export declare const SearchBoxWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
|
+
export declare const BurgerBtn: import("styled-components").StyledComponent<"button", any, {}, never>;
|
|
14
|
+
export declare const LogoBtn: import("styled-components").StyledComponent<"button", any, {}, never>;
|
|
15
|
+
export declare const LogoutBtn: import("styled-components").StyledComponent<"button", any, {
|
|
16
|
+
blackVersion?: boolean;
|
|
17
|
+
}, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './header';
|
|
1
|
+
export * from './header';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const getDropdownLinks: (profinansyHostname: string) => {
|
|
2
|
-
name: string;
|
|
3
|
-
href: string;
|
|
4
|
-
Icon: import("react").FC<import("../../../common.types").IconsInterface>;
|
|
5
|
-
}[];
|
|
1
|
+
export declare const getDropdownLinks: (profinansyHostname: string) => {
|
|
2
|
+
name: string;
|
|
3
|
+
href: string;
|
|
4
|
+
Icon: import("react").FC<import("../../../common.types").IconsInterface>;
|
|
5
|
+
}[];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
type UserDropdownMenuProps = {
|
|
3
|
-
avatarUrl?: string;
|
|
4
|
-
profinansyHostname: string;
|
|
5
|
-
onRouteChange: (path: string) => void;
|
|
6
|
-
onLogout: () => void;
|
|
7
|
-
closeBurger: () => void;
|
|
8
|
-
mainColor?: string;
|
|
9
|
-
activeColor?: string;
|
|
10
|
-
blackVersion?: boolean;
|
|
11
|
-
};
|
|
12
|
-
export declare const UserDropdownMenu: FC<UserDropdownMenuProps>;
|
|
13
|
-
export {};
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
type UserDropdownMenuProps = {
|
|
3
|
+
avatarUrl?: string;
|
|
4
|
+
profinansyHostname: string;
|
|
5
|
+
onRouteChange: (path: string) => void;
|
|
6
|
+
onLogout: () => void;
|
|
7
|
+
closeBurger: () => void;
|
|
8
|
+
mainColor?: string;
|
|
9
|
+
activeColor?: string;
|
|
10
|
+
blackVersion?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare const UserDropdownMenu: FC<UserDropdownMenuProps>;
|
|
13
|
+
export {};
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
export declare const UserDropdownRoot: any
|
|
2
|
-
export declare const UserAvatar: any
|
|
3
|
-
export declare const UserMenuWrapper: any
|
|
4
|
-
export declare const UserMenu: any
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
1
|
+
export declare const UserDropdownRoot: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const UserAvatar: import("styled-components").StyledComponent<"img", any, {}, never>;
|
|
3
|
+
export declare const UserMenuWrapper: import("styled-components").StyledComponent<"nav", any, {}, never>;
|
|
4
|
+
export declare const UserMenu: import("styled-components").StyledComponent<"nav", any, {
|
|
5
|
+
blackVersion?: boolean;
|
|
6
|
+
}, never>;
|
|
7
|
+
export declare const UserMenuItem: import("styled-components").StyledComponent<"li", any, {
|
|
8
|
+
active?: boolean;
|
|
9
|
+
mainColor?: string;
|
|
10
|
+
activeColor?: string;
|
|
11
|
+
}, never>;
|
|
12
|
+
export declare const UserMenuText: import("styled-components").StyledComponent<"p", any, {}, never>;
|
|
13
|
+
export declare const Line: import("styled-components").StyledComponent<"span", any, {
|
|
14
|
+
mainColor?: string;
|
|
15
|
+
}, never>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IconsInterface } from '../../common.types';
|
|
3
|
-
interface IconWrapperProps extends IconsInterface {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
}
|
|
6
|
-
declare const IconWrapper: React.FC<IconWrapperProps>;
|
|
7
|
-
export default IconWrapper;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconsInterface } from '../../common.types';
|
|
3
|
+
interface IconWrapperProps extends IconsInterface {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
declare const IconWrapper: React.FC<IconWrapperProps>;
|
|
7
|
+
export default IconWrapper;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Avatar } from './Avatar';
|