profinansy-ui-lib 3.5.55 → 3.5.56

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,8 @@
1
1
  /// <reference types="react" />
2
+ export declare enum Locales {
3
+ en = "en",
4
+ ru = "ru"
5
+ }
2
6
  export interface IconsInterface {
3
7
  color?: string;
4
8
  size?: number;
@@ -2,5 +2,6 @@ interface IProps {
2
2
  isMAFK: boolean;
3
3
  isIdv: boolean;
4
4
  }
5
+ export declare const ENContacts: () => JSX.Element;
5
6
  declare const Contacts: ({ isMAFK, isIdv }: IProps) => JSX.Element;
6
7
  export { Contacts };
@@ -7,5 +7,13 @@ export declare const getFooterNavRows: (userRole: UserRole, hostname: string, le
7
7
  name: string;
8
8
  href: string;
9
9
  }[];
10
+ }[][] | {
11
+ subPages: import("../../../common.types").THeaderLinkSubPage[];
12
+ name: string;
13
+ href: string;
14
+ Icon?: import("react").FC<import("../../../common.types").IconsInterface>;
15
+ locked?: boolean;
16
+ innerPages?: string[];
17
+ isWithoutSubpage?: boolean;
10
18
  }[][];
11
19
  export declare const getFooterDescription: (isMAFK?: boolean) => string;
@@ -3,6 +3,5 @@ import { IHeaderProps } from './Header.typed';
3
3
  export declare const HeaderContext: React.Context<{
4
4
  LinkWrapper: any;
5
5
  apiSettings: any;
6
- isForeignSite: boolean;
7
6
  }>;
8
7
  export declare const Header: FC<IHeaderProps>;
@@ -4,7 +4,6 @@ export declare const SideMenuContext: React.Context<{
4
4
  apiSettings: any;
5
5
  setShowQuiz: any;
6
6
  LinkWrapper: any;
7
- isForeignSite: boolean;
8
7
  }>;
9
- declare const SideMenu: ({ banners, category, isTest, locale, isProfinansy, isLeaderboardPermission, userRole, apiSettings, footerSlot, LinkWrapper, isHoverMode }: ISideModal) => JSX.Element;
8
+ declare const SideMenu: ({ banners, category, isTest, isProfinansy, isLeaderboardPermission, userRole, apiSettings, footerSlot, LinkWrapper, isHoverMode }: ISideModal) => JSX.Element;
10
9
  export { SideMenu };
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- component: ({ banners, category, isTest, locale, isProfinansy, isLeaderboardPermission, userRole, apiSettings, footerSlot, LinkWrapper, isHoverMode }: import("./SideModal.typed").ISideModal) => JSX.Element;
3
+ component: ({ banners, category, isTest, isProfinansy, isLeaderboardPermission, userRole, apiSettings, footerSlot, LinkWrapper, isHoverMode }: import("./SideModal.typed").ISideModal) => JSX.Element;
4
4
  };
5
5
  export default _default;
6
6
  export declare const SideMenu: () => JSX.Element;
@@ -1,7 +1,6 @@
1
- import { UserRole } from '../../../common.types';
1
+ import { Locales, UserRole } from '../../../common.types';
2
2
  import { IApiSettings } from '../../../api/api';
3
3
  import { ReactNode, ElementType } from 'react';
4
- import { TLocale } from '../../../hooks/useIsForeignSite';
5
4
  export type TSideMenuCategory = 'all' | 'myMoney' | 'calculators' | 'club' | 'investment' | 'education' | 'profile' | 'idv' | 'method';
6
5
  export interface ISideModal {
7
6
  banners?: {
@@ -9,7 +8,7 @@ export interface ISideModal {
9
8
  image: string;
10
9
  onClick?: () => void;
11
10
  }[];
12
- locale?: TLocale;
11
+ locale?: Locales;
13
12
  userRole: UserRole;
14
13
  isProfinansy: boolean;
15
14
  isTest: boolean;
@@ -1 +1,6 @@
1
- export declare const SearchInput: () => JSX.Element;
1
+ import { Locales } from '../../../../../../../common.types';
2
+ interface IProps {
3
+ locale: Locales;
4
+ }
5
+ export declare const SearchInput: ({ locale }: IProps) => JSX.Element;
6
+ export {};
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ import { Locales } from './common.types';
3
+ interface IConfig {
4
+ locale: Locales;
5
+ isForeignSite: boolean;
6
+ }
7
+ interface IConfigProps {
8
+ locale: Locales;
9
+ }
10
+ export declare const ConfigProvider: ({ config, children }: {
11
+ config: IConfigProps;
12
+ children: ReactNode;
13
+ }) => JSX.Element;
14
+ export declare const useConfig: () => IConfig;
15
+ export {};
@@ -0,0 +1,2 @@
1
+ import { Locales } from '../common.types';
2
+ export declare const useLocale: (defaultLocale: Locales) => boolean;
package/dist/index.d.ts CHANGED
@@ -74,4 +74,5 @@ import { HEIGHT_HEADER } from './constants/common';
74
74
  import { AnimationFunctions } from './constants/animation/animation';
75
75
  import { ListItemStyle } from './styles/List';
76
76
  import { Scroll, NotVisibleScroll } from './styles/Scroll';
77
- export { AnimationFunctions, INSTRUMENTS_TYPES, eventBus, BusEvent, SuccessModal, Footer, Header, HeaderWelcome, SideMenu, Notification, NotificationShort, Like, Views, Support, Comment, ShareList, PremiumBanner, CommonBanner, CompanyInfo, Alert, AvatarCompany, Table, TCellText, Hint, SegmentControl, SwiperButton, FilterButton, ControlButton, SortingButton, Counter, Checkbox, Radio, Portal, Loader, ButtonPaging, Button, Tabs, TextButton, TextButtonLink, RegexPattern, Input, Textarea, TextareaAutoSize, ErrorText, Avatar, Tooltip, Typography, Modal, SideModal, ArrowButton, Bubbles, HiddenText, PasswordInput, Dropdown, ModalMobile, Popup, IPopup, FieldRow, Card, PageTitle, Switch, Spinner, Skeleton, Select, SelectInput, ISelectOption, palette, ThemeProvider, useMode, useHidingChat, useHidingFromApp, useOpenSideMenu, useLoadingNextPage, useLastElement, useClickOutside, useDragging, LayoutSideMenu, HEIGHT_HEADER, setCookie, getCookie, deleteCookie, IColumnTable, ListItemStyle, Scroll, NotVisibleScroll, useMediaQuery, breakpoint, TTheme };
77
+ import { Locales } from './common.types';
78
+ export { AnimationFunctions, INSTRUMENTS_TYPES, eventBus, BusEvent, SuccessModal, Footer, Header, HeaderWelcome, SideMenu, Notification, NotificationShort, Like, Views, Support, Comment, ShareList, PremiumBanner, CommonBanner, CompanyInfo, Alert, AvatarCompany, Table, TCellText, Hint, SegmentControl, SwiperButton, FilterButton, ControlButton, SortingButton, Counter, Checkbox, Radio, Portal, Loader, ButtonPaging, Button, Tabs, TextButton, TextButtonLink, RegexPattern, Input, Textarea, TextareaAutoSize, ErrorText, Avatar, Tooltip, Typography, Modal, SideModal, ArrowButton, Bubbles, HiddenText, PasswordInput, Dropdown, ModalMobile, Popup, IPopup, FieldRow, Card, PageTitle, Switch, Spinner, Skeleton, Select, SelectInput, ISelectOption, palette, ThemeProvider, useMode, useHidingChat, useHidingFromApp, useOpenSideMenu, useLoadingNextPage, useLastElement, useClickOutside, useDragging, LayoutSideMenu, HEIGHT_HEADER, setCookie, getCookie, deleteCookie, IColumnTable, ListItemStyle, Scroll, NotVisibleScroll, useMediaQuery, breakpoint, TTheme, Locales };