profinansy-ui-lib 3.5.55 → 3.5.57
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/common.types.d.ts +4 -0
- package/dist/components/blocks/footer/components/Contacts/Contacts.d.ts +1 -0
- package/dist/components/blocks/footer/constants.d.ts +8 -0
- package/dist/components/blocks/header/header.d.ts +0 -1
- package/dist/components/blocks/sideMenu/SideMenu.d.ts +1 -2
- package/dist/components/blocks/sideMenu/SideMenu.stories.d.ts +1 -1
- package/dist/components/blocks/sideMenu/SideModal.typed.d.ts +2 -3
- package/dist/components/blocks/sideMenu/components/Search/compoenents/SearchInput/SearchInput.d.ts +6 -1
- package/dist/components/uikit/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/uikit/FilterButton/Drop/Drop.d.ts +1 -1
- package/dist/components/uikit/Hint/Hint.d.ts +1 -1
- package/dist/components/uikit/Popup/Popup.d.ts +1 -1
- package/dist/components/uikit/Tooltip/Tooltip.d.ts +1 -1
- package/dist/config.d.ts +15 -0
- package/dist/hooks/useLocale.d.ts +2 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +160 -160
- package/dist/translations/avatarDropdown.d.ts +16 -0
- package/dist/translations/common.d.ts +24 -0
- package/dist/translations/typeInstruments.d.ts +20 -0
- package/dist/translations/urls.d.ts +314 -0
- package/package.json +1 -1
- package/readme.md +12 -2
- package/dist/constants/instrumentsTypes.d.ts +0 -9
- package/dist/hooks/useIsForeignSite.d.ts +0 -2
package/dist/common.types.d.ts
CHANGED
|
@@ -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;
|
|
@@ -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,
|
|
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,
|
|
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?:
|
|
11
|
+
locale?: Locales;
|
|
13
12
|
userRole: UserRole;
|
|
14
13
|
isProfinansy: boolean;
|
|
15
14
|
isTest: boolean;
|
|
@@ -43,7 +43,7 @@ export declare function useDrop({ placement, onOpenList }: {
|
|
|
43
43
|
};
|
|
44
44
|
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
45
45
|
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
46
|
-
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "
|
|
46
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "active" | "selected"> & {
|
|
47
47
|
active?: boolean;
|
|
48
48
|
selected?: boolean;
|
|
49
49
|
}) => Record<string, unknown>;
|
|
@@ -42,7 +42,7 @@ export declare function useDrop({ placement }: {
|
|
|
42
42
|
};
|
|
43
43
|
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
44
44
|
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
45
|
-
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "
|
|
45
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "active" | "selected"> & {
|
|
46
46
|
active?: boolean;
|
|
47
47
|
selected?: boolean;
|
|
48
48
|
}) => Record<string, unknown>;
|
|
@@ -44,7 +44,7 @@ export declare function useHint({ placement, isClickMobile }?: HintOptions): {
|
|
|
44
44
|
};
|
|
45
45
|
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
46
46
|
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
47
|
-
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "
|
|
47
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "active" | "selected"> & {
|
|
48
48
|
active?: boolean;
|
|
49
49
|
selected?: boolean;
|
|
50
50
|
}) => Record<string, unknown>;
|
|
@@ -47,7 +47,7 @@ export declare function usePopup({ placement, isHover }: {
|
|
|
47
47
|
};
|
|
48
48
|
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
49
49
|
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
50
|
-
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "
|
|
50
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "active" | "selected"> & {
|
|
51
51
|
active?: boolean;
|
|
52
52
|
selected?: boolean;
|
|
53
53
|
}) => Record<string, unknown>;
|
|
@@ -44,7 +44,7 @@ export declare function useTooltip({ placement, isHover, showArrow }: {
|
|
|
44
44
|
};
|
|
45
45
|
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
46
46
|
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
47
|
-
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "
|
|
47
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "active" | "selected"> & {
|
|
48
48
|
active?: boolean;
|
|
49
49
|
selected?: boolean;
|
|
50
50
|
}) => Record<string, unknown>;
|
package/dist/config.d.ts
ADDED
|
@@ -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 {};
|
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
|
-
|
|
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 };
|