profinansy-ui-lib 1.0.80 → 1.0.82
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/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/chevron-icon.d.ts +3 -3
- package/dist/assets/close-icon.d.ts +3 -3
- package/dist/assets/club-icon.d.ts +3 -3
- 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/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/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 +31 -31
- 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 +29 -29
- package/dist/components/footer/index.d.ts +1 -1
- package/dist/components/header/constants.d.ts +89 -89
- 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 +7 -7
- package/dist/components/header/header.d.ts +16 -16
- package/dist/components/header/header.styled.d.ts +10 -9
- 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 +7 -7
- package/dist/components/icon-wrapper/icon-wrapper.d.ts +7 -7
- package/dist/context/theme-context.d.ts +5 -5
- package/dist/hooks/useBreakpoints.d.ts +6 -6
- package/dist/hooks/useCurrentPath.d.ts +4 -4
- package/dist/hooks/useDisableScroll.d.ts +3 -3
- package/dist/hooks/useListenOutsideClick.d.ts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +18 -22
- package/dist/utils.d.ts +6 -6
- package/package.json +30 -30
- package/readme.md +10 -10
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { UserRole } from '../../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
|
+
import { FC } from 'react';
|
|
2
|
+
import { UserRole } from '../../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,9 +1,10 @@
|
|
|
1
|
-
export declare const HeaderRoot: any;
|
|
2
|
-
export declare const LinkList: any;
|
|
3
|
-
export declare const HeaderRight: any;
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
1
|
+
export declare const HeaderRoot: any;
|
|
2
|
+
export declare const LinkList: any;
|
|
3
|
+
export declare const HeaderRight: any;
|
|
4
|
+
export declare const FavoritesButton: any;
|
|
5
|
+
export declare const SearchBoxWrapper: any;
|
|
6
|
+
export declare const AuthBtn: any;
|
|
7
|
+
export declare const BurgerBtn: any;
|
|
8
|
+
export declare const LogoBtn: any;
|
|
9
|
+
export declare const HeaderRightTopIcons: any;
|
|
10
|
+
export declare const LogoutBtn: any;
|
|
@@ -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,7 @@
|
|
|
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
|
-
export declare const UserMenuItem: any;
|
|
6
|
-
export declare const UserMenuText: any;
|
|
7
|
-
export declare const Line: any;
|
|
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
|
+
export declare const UserMenuItem: any;
|
|
6
|
+
export declare const UserMenuText: any;
|
|
7
|
+
export declare const Line: any;
|
|
@@ -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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const ThemeContext: import("react").Context<{
|
|
3
|
-
mainColor: string;
|
|
4
|
-
activeColor: string;
|
|
5
|
-
}>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ThemeContext: import("react").Context<{
|
|
3
|
+
mainColor: string;
|
|
4
|
+
activeColor: string;
|
|
5
|
+
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const useBreakpoints: () => {
|
|
2
|
-
xs: boolean;
|
|
3
|
-
sm: boolean;
|
|
4
|
-
md: boolean;
|
|
5
|
-
lg: boolean;
|
|
6
|
-
};
|
|
1
|
+
export declare const useBreakpoints: () => {
|
|
2
|
+
xs: boolean;
|
|
3
|
+
sm: boolean;
|
|
4
|
+
md: boolean;
|
|
5
|
+
lg: boolean;
|
|
6
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const useCurrentPath: () => {
|
|
2
|
-
currentPathname: any;
|
|
3
|
-
currentHref: any;
|
|
4
|
-
};
|
|
1
|
+
export declare const useCurrentPath: () => {
|
|
2
|
+
currentPathname: any;
|
|
3
|
+
currentHref: any;
|
|
4
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const useDisableScroll: ({ disable }: {
|
|
2
|
-
disable?: boolean;
|
|
3
|
-
}) => void;
|
|
1
|
+
export declare const useDisableScroll: ({ disable }: {
|
|
2
|
+
disable?: boolean;
|
|
3
|
+
}) => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const useListenOutsideClick: ({ onOutsideClick }: {
|
|
2
|
-
onOutsideClick: () => void;
|
|
3
|
-
}) => void;
|
|
1
|
+
export declare const useListenOutsideClick: ({ onOutsideClick }: {
|
|
2
|
+
onOutsideClick: () => void;
|
|
3
|
+
}) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Header } from './components/header/header';
|
|
2
|
-
import { Footer } from './components/footer';
|
|
3
|
-
export { Footer, Header };
|
|
1
|
+
import { Header } from './components/header/header';
|
|
2
|
+
import { Footer } from './components/footer';
|
|
3
|
+
export { Footer, Header };
|