profinansy-ui-lib 3.0.75 → 3.0.77

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.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { UserRole } from '../../../common.types';
3
2
  interface IProps {
4
3
  userRole: UserRole;
@@ -10,6 +10,7 @@ declare const _default: {
10
10
  onRouteChange?: (path: string) => void;
11
11
  SearchBox?: () => JSX.Element;
12
12
  leaderBoardPermission?: boolean;
13
+ currentPathName?: string;
13
14
  }>;
14
15
  };
15
16
  export default _default;
@@ -1,5 +1,7 @@
1
1
  export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
- export declare const Background: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const Background: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
3
+ headerHeight: number;
4
+ }, never>;
3
5
  export declare const Burger: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
4
6
  isOpen: boolean;
5
7
  }, never>;
@@ -1,6 +1,8 @@
1
+ import React from 'react';
1
2
  import { UserRole } from '../../../../../common.types';
2
3
  interface IProps {
3
4
  userRole: UserRole;
5
+ currentPathName?: string;
4
6
  }
5
- declare const PremiumLine: ({ userRole }: IProps) => JSX.Element;
7
+ declare const PremiumLine: React.MemoExoticComponent<({ userRole, currentPathName }: IProps) => JSX.Element>;
6
8
  export { PremiumLine };
@@ -8,6 +8,7 @@ type Props = {
8
8
  onRouteChange?: (path: string) => void;
9
9
  SearchBox?: () => JSX.Element;
10
10
  leaderBoardPermission?: boolean;
11
+ currentPathName?: string;
11
12
  };
12
- export declare const Header: FC<Props>;
13
+ export declare const NewHeader: FC<Props>;
13
14
  export {};
@@ -1,4 +1,4 @@
1
- export declare const useHeaderHeight: () => {
1
+ export declare const useHeaderHeight: (currenPath: string) => {
2
2
  ref: import("react").MutableRefObject<any>;
3
3
  height: number;
4
4
  };
@@ -1,4 +1,4 @@
1
1
  import { UserRole } from '../../../../common.types';
2
- export declare const useIsPremiumNotice: (userRole: UserRole) => {
2
+ export declare const useIsPremiumNotice: (userRole: UserRole, currentPathName: string) => {
3
3
  isOpen: boolean;
4
4
  };
@@ -2,6 +2,7 @@ export declare const Container: import("styled-components").StyledComponent<"div
2
2
  export declare const Wrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
3
3
  isOpen: boolean;
4
4
  countBanners: number;
5
+ headerHeight: number;
5
6
  }, never>;
6
7
  export declare const Header: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
8
  export declare const Icon: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
@@ -1,5 +1,5 @@
1
1
  import { UserRole } from '../../../common.types';
2
- export type TSideMenuCategory = 'all' | 'myMoney' | 'calculators' | 'club' | 'investment' | 'education' | 'profile';
2
+ export type TSideMenuCategory = 'all' | 'myMoney' | 'calculators' | 'club' | 'investment' | 'education' | 'profile' | 'idv';
3
3
  export interface ISideModal {
4
4
  banners?: {
5
5
  href: string;
@@ -3,5 +3,7 @@ export declare const Container: import("styled-components").StyledComponent<"div
3
3
  }, never>;
4
4
  export declare const Content: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
5
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>;
6
+ export declare const Sticky: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
7
+ headerHeight: number;
8
+ }, never>;
7
9
  export declare const Main: import("styled-components").StyledComponent<"main", import("styled-components").DefaultTheme, {}, never>;
@@ -1,12 +1,12 @@
1
1
  export declare const useGetHeaderHeight: () => {
2
- commonHeight: number;
3
2
  topHeight: number;
4
3
  centerHeight: number;
5
4
  bottomHeight: number;
5
+ commonHeight: number;
6
6
  };
7
7
  export declare const useHeaderHeightListener: () => {
8
- commonHeight: number;
9
8
  topHeight: number;
10
9
  centerHeight: number;
11
10
  bottomHeight: number;
11
+ commonHeight: number;
12
12
  };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,11 @@
1
- import { Header } from './components/blocks/newHeader';
1
+ import { Header } from './components/blocks/header';
2
+ import { NewHeader } from './components/blocks/newHeader';
2
3
  import { Footer } from './components/blocks/footer';
3
4
  import { SideMenu } from './components/blocks/sideMenu';
4
5
  import { LayoutSideMenu } from './components/layouts/LayoutSideMenu';
5
6
  import { useHidingFromApp } from './hooks/useHiddingFromApp';
6
7
  import { useHidingChat } from './hooks/useHidingChat';
8
+ import { useGetHeaderHeight, useHeaderHeightListener } from './hooks/useHeaderHeight';
7
9
  import { Checkbox } from './components/uikit/Checkbox';
8
10
  import { Radio } from './components/uikit/Radio';
9
11
  import { Portal } from './components/uikit/Portal';
@@ -34,4 +36,4 @@ import { TabListCell } from './components/uikit/TabListCell';
34
36
  import { Textarea } from './components/uikit/Textarea';
35
37
  import { palette } from './theme/theme.const';
36
38
  import { ThemeProvider, useMode } from './theme/ThemeProvider';
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 };
39
+ export { Footer, Header, NewHeader, 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, useGetHeaderHeight, useHeaderHeightListener, LayoutSideMenu };