profinansy-ui-lib 3.0.50 → 3.0.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/dist/common.types.d.ts +10 -11
  2. package/dist/components/{footer → blocks/footer}/components/Navigation/Navigation.d.ts +1 -1
  3. package/dist/components/blocks/footer/constants.d.ts +92 -0
  4. package/dist/components/{footer → blocks/footer}/footer.d.ts +1 -1
  5. package/dist/components/{footer → blocks/footer}/mirrors/lms/constant.d.ts +1 -1
  6. package/dist/components/{header → blocks/header}/Header.stories.d.ts +1 -1
  7. package/dist/components/{header → blocks/header}/components/Favourite/Favlourite.d.ts +1 -1
  8. package/dist/components/{header → blocks/header}/components/HeaderCenter/HeaderCenter.d.ts +1 -1
  9. package/dist/components/{header → blocks/header}/components/HeaderRight/HeaderRight.d.ts +1 -1
  10. package/dist/components/{header → blocks/header}/components/Premium/Premium.d.ts +1 -1
  11. package/dist/components/{header → blocks/header}/components/header-link-item/header-link-item.d.ts +1 -1
  12. package/dist/components/{header → blocks/header}/components/header-link-item/header-sub-link.d.ts +2 -4
  13. package/dist/components/{header → blocks/header}/components/premium-dropdown-list/premium-dropdown-list.d.ts +1 -1
  14. package/dist/components/{header → blocks/header}/components/user-dropdown-menu/components/PersonalInformation/PersonalInformation.d.ts +1 -1
  15. package/dist/components/{header → blocks/header}/components/user-dropdown-menu/user-dropdown-menu.d.ts +1 -1
  16. package/dist/components/blocks/header/contstants/links.d.ts +2 -0
  17. package/dist/components/{header → blocks/header}/header.d.ts +1 -1
  18. package/dist/components/{header → blocks/header}/header.utils.d.ts +1 -1
  19. package/dist/components/{header → blocks/header}/useHeader.d.ts +1 -1
  20. package/dist/components/blocks/sideMenu/SideMenu.d.ts +7 -0
  21. package/dist/components/blocks/sideMenu/SideMenu.stories.d.ts +6 -0
  22. package/dist/components/blocks/sideMenu/SideMenu.styled.d.ts +16 -0
  23. package/dist/components/blocks/sideMenu/SideModal.const.d.ts +3 -0
  24. package/dist/components/blocks/sideMenu/SideModal.typed.d.ts +15 -0
  25. package/dist/components/blocks/sideMenu/components/Banner/Banner.d.ts +6 -0
  26. package/dist/components/blocks/sideMenu/components/Banner/Banner.styled.d.ts +3 -0
  27. package/dist/components/blocks/sideMenu/components/Item/Item.d.ts +9 -0
  28. package/dist/components/blocks/sideMenu/components/Item/Item.styled.d.ts +16 -0
  29. package/dist/components/blocks/sideMenu/components/SubPages/SubPages.d.ts +8 -0
  30. package/dist/components/blocks/sideMenu/components/SubPages/SubPages.styled.d.ts +12 -0
  31. package/dist/components/blocks/sideMenu/components/SubPages/SubPagesItem.d.ts +8 -0
  32. package/dist/components/blocks/sideMenu/components/SubPagesSide/SubPagesSide.d.ts +13 -0
  33. package/dist/components/blocks/sideMenu/components/SubPagesSide/SubPagesSide.styled.d.ts +10 -0
  34. package/dist/components/blocks/sideMenu/components/SubPagesSide/SubPagesSideItem.d.ts +8 -0
  35. package/dist/components/blocks/sideMenu/hooks/useCheckNeedScroll.d.ts +4 -0
  36. package/dist/components/blocks/sideMenu/hooks/useCloseSubPagesSide.d.ts +4 -0
  37. package/dist/components/blocks/sideMenu/hooks/useGetCoordinates.d.ts +8 -0
  38. package/dist/components/blocks/sideMenu/index.d.ts +1 -0
  39. package/dist/components/layouts/LayoutSideMenu/LayoutSideMenu.d.ts +8 -0
  40. package/dist/components/layouts/LayoutSideMenu/LayoutSideMenu.styled.d.ts +7 -0
  41. package/dist/components/layouts/LayoutSideMenu/index.d.ts +1 -0
  42. package/dist/constants.d.ts +1 -0
  43. package/dist/hooks/useActivePage.d.ts +6 -0
  44. package/dist/index.d.ts +5 -3
  45. package/dist/index.js +286 -28
  46. package/dist/theme/theme.const.d.ts +2 -0
  47. package/dist/urls/constant.d.ts +3 -0
  48. package/dist/urls/products/calculators/calculatorsLink.d.ts +10 -0
  49. package/dist/{components/header/contstants → urls/products/club}/clubLinks.d.ts +3 -3
  50. package/dist/urls/products/education/educationLinks.d.ts +21 -0
  51. package/dist/urls/products/feed/feed.d.ts +9 -0
  52. package/dist/urls/products/index.d.ts +7 -0
  53. package/dist/urls/products/investments/investments.d.ts +43 -0
  54. package/dist/{components/header/contstants → urls/products/moreLinks}/moreLinks.d.ts +1 -1
  55. package/dist/urls/products/myMoney/myMoney.d.ts +21 -0
  56. package/dist/urls/products/otherLinks/otherLinks.d.ts +6 -0
  57. package/dist/urls/products/profile/profileLinks.d.ts +9 -0
  58. package/dist/utils/getUserRules.d.ts +6 -0
  59. package/package.json +1 -1
  60. package/dist/components/footer/constants.d.ts +0 -14
  61. package/dist/components/header/contstants/authLinks.d.ts +0 -42
  62. package/dist/components/header/contstants/guestLinks.d.ts +0 -2
  63. package/dist/components/header/contstants/leaderBoardLinks.d.ts +0 -8
  64. package/dist/components/header/contstants/links.d.ts +0 -3
  65. package/dist/components/header/contstants/paidLinks.d.ts +0 -29
  66. /package/dist/components/{footer → blocks/footer}/Footer.stories.d.ts +0 -0
  67. /package/dist/components/{footer → blocks/footer}/components/About/About.d.ts +0 -0
  68. /package/dist/components/{footer → blocks/footer}/components/About/About.styled.d.ts +0 -0
  69. /package/dist/components/{footer → blocks/footer}/components/Applications/Applications.d.ts +0 -0
  70. /package/dist/components/{footer → blocks/footer}/components/Applications/Applications.styled.d.ts +0 -0
  71. /package/dist/components/{footer → blocks/footer}/components/Contacts/Contacts.d.ts +0 -0
  72. /package/dist/components/{footer → blocks/footer}/components/Contacts/Contacts.styled.d.ts +0 -0
  73. /package/dist/components/{footer → blocks/footer}/components/Documents/Documents.d.ts +0 -0
  74. /package/dist/components/{footer → blocks/footer}/components/Documents/Documents.styled.d.ts +0 -0
  75. /package/dist/components/{footer → blocks/footer}/components/Information/Information.d.ts +0 -0
  76. /package/dist/components/{footer → blocks/footer}/components/Information/Information.styled.d.ts +0 -0
  77. /package/dist/components/{footer → blocks/footer}/components/Navigation/Navigation.styled.d.ts +0 -0
  78. /package/dist/components/{footer → blocks/footer}/components/Networks/Networks.d.ts +0 -0
  79. /package/dist/components/{footer → blocks/footer}/components/Networks/Networks.styled.d.ts +0 -0
  80. /package/dist/components/{footer → blocks/footer}/footer.styled.d.ts +0 -0
  81. /package/dist/components/{footer → blocks/footer}/index.d.ts +0 -0
  82. /package/dist/components/{footer → blocks/footer}/mirrors/club/constant.d.ts +0 -0
  83. /package/dist/components/{footer → blocks/footer}/mirrors/lms/MirrorPointLms.d.ts +0 -0
  84. /package/dist/components/{header → blocks/header}/components/Burger/Burger.d.ts +0 -0
  85. /package/dist/components/{header → blocks/header}/components/Burger/Burger.styled.d.ts +0 -0
  86. /package/dist/components/{header → blocks/header}/components/Favourite/Favourite.styled.d.ts +0 -0
  87. /package/dist/components/{header → blocks/header}/components/Premium/Premium.styled.d.ts +0 -0
  88. /package/dist/components/{header → blocks/header}/components/UserAvatar/UserAvatar.d.ts +0 -0
  89. /package/dist/components/{header → blocks/header}/components/UserAvatar/UserAvatar.styled.d.ts +0 -0
  90. /package/dist/components/{header → blocks/header}/components/header-link-item/header-link-item.styled.d.ts +0 -0
  91. /package/dist/components/{header → blocks/header}/components/premium-dropdown-list/constants.d.ts +0 -0
  92. /package/dist/components/{header → blocks/header}/components/premium-dropdown-list/premium-dropdown-list.styled.d.ts +0 -0
  93. /package/dist/components/{header → blocks/header}/components/user-dropdown-menu/components/BannerCommon/BannerCommon.d.ts +0 -0
  94. /package/dist/components/{header → blocks/header}/components/user-dropdown-menu/components/BannerCommon/BannerCommon.styled.d.ts +0 -0
  95. /package/dist/components/{header → blocks/header}/components/user-dropdown-menu/components/CourseBanner/CourseBanner.d.ts +0 -0
  96. /package/dist/components/{header → blocks/header}/components/user-dropdown-menu/components/CourseBanner/CourseBanner.styled.d.ts +0 -0
  97. /package/dist/components/{header → blocks/header}/components/user-dropdown-menu/components/PersonalInformation/PersonalInformation.styled.d.ts +0 -0
  98. /package/dist/components/{header → blocks/header}/components/user-dropdown-menu/components/Theme/Theme.d.ts +0 -0
  99. /package/dist/components/{header → blocks/header}/components/user-dropdown-menu/constants.d.ts +0 -0
  100. /package/dist/components/{header → blocks/header}/components/user-dropdown-menu/user-dropdown-menu.styled.d.ts +0 -0
  101. /package/dist/components/{header → blocks/header}/header.styled.d.ts +0 -0
  102. /package/dist/components/{header → blocks/header}/index.d.ts +0 -0
  103. /package/dist/components/{header → blocks/header}/mirrors/club/constant.d.ts +0 -0
  104. /package/dist/components/{header → blocks/header}/mirrors/lms/constant.d.ts +0 -0
@@ -32,17 +32,16 @@ export type HeaderLinkType = {
32
32
  outsideLink?: boolean;
33
33
  Icon: React.FC<IconsInterface>;
34
34
  locked?: boolean;
35
- subPages: {
36
- name: string;
37
- href?: string;
38
- locked?: boolean;
39
- unavailable?: boolean;
40
- subLinks?: {
41
- name: string;
42
- href: string;
43
- locked?: boolean;
44
- }[];
45
- }[];
35
+ subPages: THeaderLinkSubPage[];
46
36
  /** Страницы, которые не видны в шапке, но которые находятся в разделе **/
47
37
  innerPages?: string[];
48
38
  };
39
+ export type THeaderLinkSubPage = {
40
+ name: string;
41
+ href?: string;
42
+ locked?: boolean;
43
+ unavailable?: boolean;
44
+ available?: boolean;
45
+ Icon?: React.FC<IconsInterface>;
46
+ subPages?: THeaderLinkSubPage[];
47
+ };
@@ -1,4 +1,4 @@
1
- import { UserRole } from '../../../../common.types';
1
+ import { UserRole } from '../../../../../common.types';
2
2
  interface IProps {
3
3
  userRole: UserRole;
4
4
  clubAccess: boolean;
@@ -0,0 +1,92 @@
1
+ import { UserRole } from '../../../common.types';
2
+ export declare const getFooterNavRows: (userRole: UserRole, clubAccess: boolean, isMirrorLMS: boolean, isMirrorClub: boolean, hostname: string, leaderboardPermission: boolean, isTest: boolean) => {
3
+ title: string;
4
+ href: string;
5
+ links: {
6
+ title: string;
7
+ href: string;
8
+ }[];
9
+ }[][] | (({
10
+ name: string;
11
+ Icon: any;
12
+ href: string;
13
+ subPages: {
14
+ name: string;
15
+ Icon: any;
16
+ href: string;
17
+ }[];
18
+ } | {
19
+ name: string;
20
+ Icon: any;
21
+ href: string;
22
+ subPages: ({
23
+ name: string;
24
+ Icon: any;
25
+ locked: boolean;
26
+ subPages: {
27
+ name: string;
28
+ href: string;
29
+ locked: boolean;
30
+ }[];
31
+ href?: undefined;
32
+ unavailable?: undefined;
33
+ available?: undefined;
34
+ } | {
35
+ name: string;
36
+ Icon: any;
37
+ href: string;
38
+ locked: boolean;
39
+ unavailable: boolean;
40
+ available: boolean;
41
+ subPages?: undefined;
42
+ } | {
43
+ name: string;
44
+ Icon: any;
45
+ href: string;
46
+ locked?: undefined;
47
+ subPages?: undefined;
48
+ unavailable?: undefined;
49
+ available?: undefined;
50
+ } | {
51
+ name: string;
52
+ Icon: any;
53
+ href: string;
54
+ locked: boolean;
55
+ subPages?: undefined;
56
+ unavailable?: undefined;
57
+ available?: undefined;
58
+ })[];
59
+ innerPages: string[];
60
+ })[] | {
61
+ name: string;
62
+ Icon: any;
63
+ href: string;
64
+ subPages: {
65
+ name: string;
66
+ href: string;
67
+ }[];
68
+ }[] | {
69
+ name: string;
70
+ Icon: any;
71
+ href: string;
72
+ subPages: ({
73
+ name: string;
74
+ href: string;
75
+ locked: boolean;
76
+ subPages?: undefined;
77
+ } | {
78
+ name: string;
79
+ locked: boolean;
80
+ subPages: {
81
+ name: string;
82
+ href: string;
83
+ locked: boolean;
84
+ }[];
85
+ href?: undefined;
86
+ })[];
87
+ }[])[];
88
+ export declare const getFooterDescription: (isLms?: boolean) => string;
89
+ export declare const getFooterLeaderBoardLinks: (permission: boolean, hostname: string, isGuest?: boolean) => {
90
+ title: string;
91
+ href: string;
92
+ }[];
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { UserRole } from '../../common.types';
2
+ import { UserRole } from '../../../common.types';
3
3
  export type FooterProps = {
4
4
  userRole: UserRole;
5
5
  clubAccess: boolean;
@@ -1,4 +1,4 @@
1
- import { UserRole } from '../../../../common.types';
1
+ import { UserRole } from '../../../../../common.types';
2
2
  export declare const getNavsMirrorLms: (userRole: UserRole, hostname: string, leaderboardPermission: boolean) => {
3
3
  title: string;
4
4
  href: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { IUser } from '../../common.types';
2
+ import { IUser } from '../../../common.types';
3
3
  declare const _default: {
4
4
  title: string;
5
5
  component: React.FC<{
@@ -1,4 +1,4 @@
1
- import { UserRole } from '../../../../common.types';
1
+ import { UserRole } from '../../../../../common.types';
2
2
  interface IProps {
3
3
  hostname: string;
4
4
  handleRouteChange: (val: string) => void;
@@ -1,4 +1,4 @@
1
- import { UserRole } from '../../../../common.types';
1
+ import { UserRole } from '../../../../../common.types';
2
2
  interface IProps {
3
3
  hostname: string;
4
4
  hostnameLenta: string;
@@ -1,4 +1,4 @@
1
- import { IUser, UserRole } from '../../../../common.types';
1
+ import { IUser, UserRole } from '../../../../../common.types';
2
2
  interface IProps {
3
3
  user: IUser;
4
4
  hostname: string;
@@ -1,4 +1,4 @@
1
- import { UserRole } from '../../../../common.types';
1
+ import { UserRole } from '../../../../../common.types';
2
2
  interface IProps {
3
3
  userRole: UserRole;
4
4
  hostname: string;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { HeaderLinkType } from '../../../../common.types';
2
+ import { HeaderLinkType } from '../../../../../common.types';
3
3
  type Props = HeaderLinkType & {
4
4
  onRouteChange: (path: string, target?: boolean) => void;
5
5
  target?: boolean;
@@ -1,4 +1,5 @@
1
1
  import { FC } from 'react';
2
+ import { THeaderLinkSubPage } from '../../../../../common.types';
2
3
  type TProps = {
3
4
  name: string;
4
5
  href?: string;
@@ -6,10 +7,7 @@ type TProps = {
6
7
  available?: boolean;
7
8
  unavailable?: boolean;
8
9
  onlyMobile?: boolean;
9
- subLinks?: {
10
- name: string;
11
- href: string;
12
- }[];
10
+ subPages?: THeaderLinkSubPage[];
13
11
  isLast?: boolean;
14
12
  onClick: (href?: string) => void;
15
13
  };
@@ -1,4 +1,4 @@
1
- import { UserRole } from '../../../../common.types';
1
+ import { UserRole } from '../../../../../common.types';
2
2
  interface IProps {
3
3
  userRole: UserRole;
4
4
  hostname: string;
@@ -1,4 +1,4 @@
1
- import { IUser } from '../../../../../../common.types';
1
+ import { IUser } from '../../../../../../../common.types';
2
2
  interface IProps {
3
3
  user: IUser;
4
4
  hostname: string;
@@ -1,4 +1,4 @@
1
- import { IUser, UserRole } from '../../../../common.types';
1
+ import { IUser, UserRole } from '../../../../../common.types';
2
2
  interface IProps {
3
3
  userRole: UserRole;
4
4
  hostname: string;
@@ -0,0 +1,2 @@
1
+ import { HeaderLinkType, UserRole } from '../../../../common.types';
2
+ export declare const getMainLinks: (hostname: string, hostnameLenta: string, isLmsMirror: boolean, isClubMirror: boolean, leaderBoardPermission: boolean, clubPermission: boolean, isConfirmPartner: boolean, userRole: UserRole, isSideBar?: boolean) => HeaderLinkType[];
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { IUser } from '../../common.types';
2
+ import { IUser } from '../../../common.types';
3
3
  type Props = {
4
4
  user: IUser | null;
5
5
  isTest: boolean;
@@ -1,4 +1,4 @@
1
- import { TTheme } from '../../theme/theme.typed';
1
+ import { TTheme } from '../../../theme/theme.typed';
2
2
  export declare const getTrial: (rights: Record<string, number | string>, purchased: Record<string, string>) => {
3
3
  trial: any;
4
4
  isPossibleTrial: any;
@@ -1,4 +1,4 @@
1
- import { UserRole } from '../../common.types';
1
+ import { UserRole } from '../../../common.types';
2
2
  interface IProps {
3
3
  userRole: UserRole;
4
4
  isPossibleTrial: boolean;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { ISideModal } from './SideModal.typed';
3
+ export declare const ScrollContext: React.Context<{
4
+ closeSubPagesSide: number;
5
+ }>;
6
+ declare const SideMenu: ({ banners, category, isTest, isProfinansy, isLeaderboardPermission, userRole, isClubAccess, onRouteChange }: ISideModal) => JSX.Element;
7
+ export { SideMenu };
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: ({ banners, category, isTest, isProfinansy, isLeaderboardPermission, userRole, isClubAccess, onRouteChange }: import("./SideModal.typed").ISideModal) => JSX.Element;
4
+ };
5
+ export default _default;
6
+ export declare const SideMenu: () => JSX.Element;
@@ -0,0 +1,16 @@
1
+ export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const Wrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
3
+ isOpen: boolean;
4
+ countBanners: number;
5
+ }, never>;
6
+ export declare const Header: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
+ export declare const Icon: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
8
+ isOpen: boolean;
9
+ }, never>;
10
+ export declare const Title: import("styled-components").StyledComponent<"h3", import("styled-components").DefaultTheme, {
11
+ isOpen: boolean;
12
+ }, never>;
13
+ export declare const Divider: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
14
+ export declare const Items: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
15
+ isScroll: boolean;
16
+ }, never>;
@@ -0,0 +1,3 @@
1
+ import { TSideMenuCategory } from './SideModal.typed';
2
+ import { UserRole } from '../../../common.types';
3
+ export declare const getSideMenuData: (category: TSideMenuCategory, hostname: string, hostnameLenta: string, userRole: UserRole, isLeaderboardPermission: boolean, isClubAccess: boolean) => any;
@@ -0,0 +1,15 @@
1
+ import { UserRole } from '../../../common.types';
2
+ export type TSideMenuCategory = 'all' | 'myMoney' | 'calculators' | 'club' | 'investment' | 'education' | 'profile';
3
+ export interface ISideModal {
4
+ banners?: {
5
+ href: string;
6
+ image: string;
7
+ }[];
8
+ userRole: UserRole;
9
+ isProfinansy: boolean;
10
+ isTest: boolean;
11
+ isClubAccess: boolean;
12
+ isLeaderboardPermission: boolean;
13
+ category: TSideMenuCategory;
14
+ onRouteChange?: (url: string) => void;
15
+ }
@@ -0,0 +1,6 @@
1
+ import { ISideModal } from '../../SideModal.typed';
2
+ interface IProps {
3
+ data: ISideModal['banners'];
4
+ }
5
+ declare const Banners: ({ data }: IProps) => JSX.Element;
6
+ export { Banners };
@@ -0,0 +1,3 @@
1
+ export declare const Banner: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
2
+ image: string;
3
+ }, never>;
@@ -0,0 +1,9 @@
1
+ import { THeaderLinkSubPage, HeaderLinkType } from '../../../../../common.types';
2
+ interface IProps {
3
+ isOpenMode: boolean;
4
+ innerPages?: HeaderLinkType['innerPages'];
5
+ data: THeaderLinkSubPage;
6
+ handleRouteChange: (url: string) => void;
7
+ }
8
+ declare const Item: ({ isOpenMode, data, innerPages, handleRouteChange }: IProps) => JSX.Element;
9
+ export { Item };
@@ -0,0 +1,16 @@
1
+ export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const Button: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
3
+ isOpen: boolean;
4
+ isActive: boolean;
5
+ isOpenMode: boolean;
6
+ }, never>;
7
+ export declare const TextContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
8
+ isActive: boolean;
9
+ }, never>;
10
+ export declare const Text: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {
11
+ isActive: boolean;
12
+ }, never>;
13
+ export declare const Chevron: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, object & {
14
+ isOpen: boolean;
15
+ isActive: boolean;
16
+ }, string | number | symbol>;
@@ -0,0 +1,8 @@
1
+ import { HeaderLinkType, THeaderLinkSubPage } from '../../../../../common.types';
2
+ interface IProps {
3
+ innerPages?: HeaderLinkType['innerPages'];
4
+ data: THeaderLinkSubPage['subPages'];
5
+ handleRouteChange: (url: string) => void;
6
+ }
7
+ declare const SubPages: ({ data, handleRouteChange, innerPages }: IProps) => JSX.Element;
8
+ export { SubPages };
@@ -0,0 +1,12 @@
1
+ export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const ButtonWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const Button: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
4
+ isActive: boolean;
5
+ }, never>;
6
+ export declare const Lock: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, object & {
7
+ isActive: boolean;
8
+ }, string | number | symbol>;
9
+ export declare const Chevron: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, object & {
10
+ isOpen: boolean;
11
+ isActive: boolean;
12
+ }, string | number | symbol>;
@@ -0,0 +1,8 @@
1
+ import { HeaderLinkType, THeaderLinkSubPage } from '../../../../../common.types';
2
+ interface IProps {
3
+ innerPages?: HeaderLinkType['innerPages'];
4
+ data: THeaderLinkSubPage;
5
+ handleRouteChange: (url: string) => void;
6
+ }
7
+ declare const SubPagesItem: ({ data, handleRouteChange, innerPages }: IProps) => JSX.Element;
8
+ export { SubPagesItem };
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { HeaderLinkType, THeaderLinkSubPage } from '../../../../../common.types';
3
+ interface IProps {
4
+ innerPages?: HeaderLinkType['innerPages'];
5
+ coordinates: {
6
+ x: number;
7
+ y: number;
8
+ };
9
+ data: THeaderLinkSubPage['subPages'];
10
+ handleRouteChange: (url: string) => void;
11
+ }
12
+ declare const SubPagesSide: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLDivElement>>;
13
+ export { SubPagesSide };
@@ -0,0 +1,10 @@
1
+ export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
2
+ x: number;
3
+ y: number;
4
+ }, never>;
5
+ export declare const Button: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
6
+ isActive: boolean;
7
+ }, never>;
8
+ export declare const Lock: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, object & {
9
+ isActive: boolean;
10
+ }, string | number | symbol>;
@@ -0,0 +1,8 @@
1
+ import { HeaderLinkType, THeaderLinkSubPage } from '../../../../../common.types';
2
+ interface IProps {
3
+ innerPages?: HeaderLinkType['innerPages'];
4
+ data: THeaderLinkSubPage;
5
+ handleRouteChange: (url: string) => void;
6
+ }
7
+ declare const SubPagesSideItem: ({ data, handleRouteChange, innerPages }: IProps) => JSX.Element;
8
+ export { SubPagesSideItem };
@@ -0,0 +1,4 @@
1
+ import { RefObject } from 'react';
2
+ export declare const useCheckNeedScroll: (itemsRef: RefObject<HTMLDivElement>) => {
3
+ isScroll: boolean;
4
+ };
@@ -0,0 +1,4 @@
1
+ import { RefObject } from 'react';
2
+ export declare const useCloseSubPagesSide: (refElement?: RefObject<HTMLDivElement>) => {
3
+ closeSubPagesSide: number;
4
+ };
@@ -0,0 +1,8 @@
1
+ export declare const useGetCoordinates: () => {
2
+ refButton: import("react").MutableRefObject<any>;
3
+ coordinates: {
4
+ x: number;
5
+ y: number;
6
+ };
7
+ getCoordinates: () => void;
8
+ };
@@ -0,0 +1 @@
1
+ export * from './SideMenu';
@@ -0,0 +1,8 @@
1
+ import React, { ReactElement } from 'react';
2
+ interface IProps {
3
+ maxWidthContent: number;
4
+ children: React.ReactNode;
5
+ asideContent: ReactElement;
6
+ }
7
+ declare const LayoutSideMenu: ({ maxWidthContent, children, asideContent }: IProps) => JSX.Element;
8
+ export { LayoutSideMenu };
@@ -0,0 +1,7 @@
1
+ export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
2
+ maxWidth: number;
3
+ }, never>;
4
+ export declare const Content: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
5
+ export declare const Aside: import("styled-components").StyledComponent<"aside", import("styled-components").DefaultTheme, {}, never>;
6
+ export declare const Sticky: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
+ export declare const Main: import("styled-components").StyledComponent<"main", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1 @@
1
+ export * from './LayoutSideMenu';
@@ -0,0 +1 @@
1
+ export declare const HEIGHT_HEADER = 64;
@@ -0,0 +1,6 @@
1
+ import { HeaderLinkType, THeaderLinkSubPage } from '../common.types';
2
+ export declare const useActivePage: (href: string, subPages?: THeaderLinkSubPage[], innerPages?: HeaderLinkType['innerPages']) => {
3
+ isActive: boolean;
4
+ currentPathname: any;
5
+ currentHref: any;
6
+ };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
- import { Header } from './components/header';
2
- import { Footer } from './components/footer';
1
+ import { Header } from './components/blocks/header';
2
+ import { Footer } from './components/blocks/footer';
3
+ import { SideMenu } from './components/blocks/sideMenu';
4
+ import { LayoutSideMenu } from './components/layouts/LayoutSideMenu';
3
5
  import { useHidingFromApp } from './hooks/useHiddingFromApp';
4
6
  import { useHidingChat } from './hooks/useHidingChat';
5
7
  import { Checkbox } from './components/uikit/Checkbox';
@@ -32,4 +34,4 @@ import { TabListCell } from './components/uikit/TabListCell';
32
34
  import { Textarea } from './components/uikit/Textarea';
33
35
  import { palette } from './theme/theme.const';
34
36
  import { ThemeProvider, useMode } from './theme/ThemeProvider';
35
- export { Footer, Header, Checkbox, Radio, Portal, Loader, Button, TextButton, RegexPattern, Input, Textarea, ErrorText, Avatar, Tooltip, DefaultTooltip, Modal, SideModal, CircleButton, ArrowButton, Sidebar, HiddenText, PasswordInput, Dropdown, ModalMobile, Popup, IPopup, FieldRow, Card, Switch, Spinner, Skeleton, TabListCell, palette, ThemeProvider, useMode, useHidingChat, useHidingFromApp };
37
+ export { Footer, Header, SideMenu, Checkbox, Radio, Portal, Loader, Button, TextButton, RegexPattern, Input, Textarea, ErrorText, Avatar, Tooltip, DefaultTooltip, Modal, SideModal, CircleButton, ArrowButton, Sidebar, HiddenText, PasswordInput, Dropdown, ModalMobile, Popup, IPopup, FieldRow, Card, Switch, Spinner, Skeleton, TabListCell, palette, ThemeProvider, useMode, useHidingChat, useHidingFromApp, LayoutSideMenu };