profinansy-ui-lib 2.0.26 → 2.0.28
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/components/footer/footer.styled.d.ts +0 -1
- package/dist/components/header/components/user-dropdown-menu/constants.d.ts +2 -2
- package/dist/components/header/contstants/authLinks.d.ts +3 -3
- package/dist/components/header/contstants/clubLinks.d.ts +1 -1
- package/dist/components/header/contstants/paidLinks.d.ts +3 -3
- package/dist/components/header/header.utils.d.ts +3 -3
- package/dist/components/uikit/Card/Card.d.ts +4 -0
- package/dist/components/uikit/Card/Card.stories.d.ts +7 -0
- package/dist/components/uikit/Card/Card.styled.d.ts +12 -0
- package/dist/components/uikit/Card/Card.typed.d.ts +20 -0
- package/dist/components/uikit/Card/index.d.ts +1 -0
- package/dist/components/uikit/CircleButton/CircleBotton.styled.d.ts +3 -2
- package/dist/components/uikit/CircleButton/CircleButton.const.d.ts +0 -3
- package/dist/components/uikit/FieldRow/FieldRow.d.ts +3 -0
- package/dist/components/uikit/FieldRow/FieldRow.stories.d.ts +6 -0
- package/dist/components/uikit/FieldRow/FieldRow.styled.d.ts +8 -0
- package/dist/components/uikit/FieldRow/FieldRow.typed.d.ts +16 -0
- package/dist/components/uikit/FieldRow/index.d.ts +1 -0
- package/dist/components/uikit/PasswordInput/PasswordInput.styled.d.ts +2 -3
- package/dist/components/uikit/Popup/Popup.d.ts +3 -0
- package/dist/components/uikit/Popup/Popup.stories.d.ts +6 -0
- package/dist/components/uikit/Popup/Popup.styled.d.ts +21 -0
- package/dist/components/uikit/Popup/Popup.typed.d.ts +10 -0
- package/dist/components/uikit/Popup/index.d.ts +1 -0
- package/dist/components/uikit/Sidebar/Sidebar.styled.d.ts +1 -2
- package/dist/components/uikit/Switch/Switch.d.ts +3 -0
- package/dist/components/uikit/Switch/Switch.styled.d.ts +16 -0
- package/dist/components/uikit/Switch/Switched.stories.d.ts +6 -0
- package/dist/components/uikit/Switch/Switched.typed.d.ts +20 -0
- package/dist/components/uikit/Switch/index.d.ts +1 -0
- package/dist/hooks/useGetVideoLink.d.ts +9 -0
- package/dist/images/suggestion-video-preview.png +0 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +338 -147
- package/package.json +2 -1
- package/dist/assets/about-icon.d.ts +0 -1
- package/dist/assets/apple-icon.d.ts +0 -3
- package/dist/assets/arrowLeft-icon.d.ts +0 -3
- package/dist/assets/avatar-icon.d.ts +0 -3
- package/dist/assets/capital-icon.d.ts +0 -1
- package/dist/assets/channels-icon.d.ts +0 -1
- package/dist/assets/chats-icon.d.ts +0 -1
- package/dist/assets/checkmark-icon.d.ts +0 -3
- package/dist/assets/chevron-icon-small.d.ts +0 -3
- package/dist/assets/chevron-icon.d.ts +0 -1
- package/dist/assets/close-gray.d.ts +0 -3
- package/dist/assets/close-icon.d.ts +0 -3
- package/dist/assets/club-icon.d.ts +0 -1
- package/dist/assets/edit-icon.d.ts +0 -3
- package/dist/assets/education-icon.d.ts +0 -1
- package/dist/assets/expenses-icon.d.ts +0 -1
- package/dist/assets/eye-icon.d.ts +0 -3
- package/dist/assets/eyeClose-icon.d.ts +0 -3
- package/dist/assets/favorites-icon.d.ts +0 -1
- package/dist/assets/feed-icon.d.ts +0 -1
- package/dist/assets/google-store-icon.d.ts +0 -3
- package/dist/assets/huawei-store-icon.d.ts +0 -3
- package/dist/assets/index.d.ts +0 -0
- package/dist/assets/investments-icon.d.ts +0 -1
- package/dist/assets/king-icon.d.ts +0 -1
- package/dist/assets/login-icon.d.ts +0 -1
- package/dist/assets/logout-icon.d.ts +0 -1
- package/dist/assets/notifications-icon.d.ts +0 -1
- package/dist/assets/plus-icon.d.ts +0 -3
- package/dist/assets/profile-icon.d.ts +0 -1
- package/dist/assets/purrple-logo-dark.d.ts +0 -1
- package/dist/assets/purrple-logo.d.ts +0 -1
- package/dist/assets/remove-icon.d.ts +0 -3
- package/dist/assets/tariffs-icon.d.ts +0 -1
- package/dist/assets/telegram-icon.d.ts +0 -3
- package/dist/assets/vk-icon.d.ts +0 -3
- package/dist/assets/youtube-icon copy.d.ts +0 -3
- package/dist/components/icon-wrapper/icon-wrapper.d.ts +0 -7
|
@@ -3,7 +3,6 @@ export declare const FooterTop: import("styled-components").StyledComponent<"div
|
|
|
3
3
|
export declare const FooterTopLeft: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
4
|
export declare const FooterSecondBlock: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
5
|
export declare const IconsList: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
-
export declare const SocialIconWrapper: import("styled-components").StyledComponent<"a", any, {}, never>;
|
|
7
6
|
export declare const FooterBottomText: import("styled-components").StyledComponent<"p", any, {}, never>;
|
|
8
7
|
export declare const FooterLinks: import("styled-components").StyledComponent<"nav", any, {}, never>;
|
|
9
8
|
export declare const LinksRow: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const getDropdownMainLinks: (hostname: string) => {
|
|
2
2
|
name: string;
|
|
3
3
|
href: string;
|
|
4
|
-
Icon:
|
|
4
|
+
Icon: any;
|
|
5
5
|
}[];
|
|
6
6
|
export declare const getDropdownSecondaryLinks: (hostname: string) => {
|
|
7
7
|
name: string;
|
|
8
8
|
href: string;
|
|
9
|
-
Icon:
|
|
9
|
+
Icon: any;
|
|
10
10
|
}[];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export declare const authorizedLinks: (hostname: string, leaderBoardPermission: boolean) => ({
|
|
2
2
|
name: string;
|
|
3
|
-
Icon:
|
|
3
|
+
Icon: any;
|
|
4
4
|
href: string;
|
|
5
5
|
subPages: any[];
|
|
6
6
|
innerPages?: undefined;
|
|
7
7
|
} | {
|
|
8
8
|
name: string;
|
|
9
|
-
Icon:
|
|
9
|
+
Icon: any;
|
|
10
10
|
subPages: ({
|
|
11
11
|
name: string;
|
|
12
12
|
href: string;
|
|
@@ -30,7 +30,7 @@ export declare const authorizedLinks: (hostname: string, leaderBoardPermission:
|
|
|
30
30
|
href?: undefined;
|
|
31
31
|
} | {
|
|
32
32
|
name: string;
|
|
33
|
-
Icon:
|
|
33
|
+
Icon: any;
|
|
34
34
|
subPages: ({
|
|
35
35
|
name: string;
|
|
36
36
|
href: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const paidLinks: (hostname: string, leaderBoardPermission: boolean) => ({
|
|
2
2
|
name: string;
|
|
3
|
-
Icon:
|
|
3
|
+
Icon: any;
|
|
4
4
|
subPages: {
|
|
5
5
|
name: string;
|
|
6
6
|
href: string;
|
|
@@ -9,13 +9,13 @@ export declare const paidLinks: (hostname: string, leaderBoardPermission: boolea
|
|
|
9
9
|
innerPages?: undefined;
|
|
10
10
|
} | {
|
|
11
11
|
name: string;
|
|
12
|
-
Icon:
|
|
12
|
+
Icon: any;
|
|
13
13
|
href: string;
|
|
14
14
|
subPages: any[];
|
|
15
15
|
innerPages?: undefined;
|
|
16
16
|
} | {
|
|
17
17
|
name: string;
|
|
18
|
-
Icon:
|
|
18
|
+
Icon: any;
|
|
19
19
|
subPages: ({
|
|
20
20
|
name: string;
|
|
21
21
|
href: string;
|
|
@@ -2,7 +2,7 @@ export declare const getTrial: (rights: Record<string, number | string>, purchas
|
|
|
2
2
|
trial: any;
|
|
3
3
|
isPossibleTrial: any;
|
|
4
4
|
};
|
|
5
|
-
export declare const getMainLinksColor: (isBlack: boolean, isActive: boolean) => "#
|
|
6
|
-
export declare const getDropdownsLinksColor: (isBlack: boolean, isActive: boolean, isLocked: boolean) => "#FFFFFF" | "#
|
|
7
|
-
export declare const getDropdownsIconsColor: (isBlack: boolean, isActive: boolean) => "#
|
|
5
|
+
export declare const getMainLinksColor: (isBlack: boolean, isActive: boolean) => "#6553F5" | "#898989" | "#C0C0C0" | "#756CBB";
|
|
6
|
+
export declare const getDropdownsLinksColor: (isBlack: boolean, isActive: boolean, isLocked: boolean) => "#FFFFFF" | "#6553F5" | "#9B8EFF" | "#242424" | "#898989";
|
|
7
|
+
export declare const getDropdownsIconsColor: (isBlack: boolean, isActive: boolean) => "#6553F5" | "#9B8EFF" | "#A2A1A7";
|
|
8
8
|
export declare const getDropdownItemBackground: (isBlack: boolean, isOpen: boolean) => "#fff" | "transparent" | "#2B2B2B" | "#f8f8f8";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const Container: import("styled-components").StyledComponent<"div", any, {
|
|
2
|
+
width: string;
|
|
3
|
+
padding: string;
|
|
4
|
+
margin: string;
|
|
5
|
+
}, never>;
|
|
6
|
+
declare const Header: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
+
declare const TitleContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
declare const Title: import("styled-components").StyledComponent<"h2", any, {}, never>;
|
|
9
|
+
declare const TitleLink: import("styled-components").StyledComponent<"a", any, {}, never>;
|
|
10
|
+
declare const Hint: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
|
+
declare const Subtitle: import("styled-components").StyledComponent<"p", any, {}, never>;
|
|
12
|
+
export { Container, Header, TitleContainer, Title, TitleLink, Hint, Subtitle };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IPopup } from '../Popup/Popup.typed';
|
|
3
|
+
export interface ICard {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
title?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
classNameTitle?: string;
|
|
8
|
+
classNameHeader?: string;
|
|
9
|
+
padding?: string;
|
|
10
|
+
margin?: string;
|
|
11
|
+
width?: string;
|
|
12
|
+
/**Ссылка, если нужно сделать тайтл кликабельным*/
|
|
13
|
+
titleLink?: string;
|
|
14
|
+
/**Добавить подсказку к полю*/
|
|
15
|
+
hint?: IPopup;
|
|
16
|
+
/**Контент справа от заголовка*/
|
|
17
|
+
rightContent?: React.ReactElement;
|
|
18
|
+
/**Подзаголовок*/
|
|
19
|
+
subtitle?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Card } from './Card';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare const Button: import("styled-components").StyledComponent<"button", any, {
|
|
2
2
|
theme: string;
|
|
3
3
|
size: string;
|
|
4
|
+
direction: 'right' | 'left';
|
|
4
5
|
}, never>;
|
|
5
|
-
declare const
|
|
6
|
-
export { Button
|
|
6
|
+
export declare const IconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
+
export { Button };
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
export declare const CircleButtonSize: {
|
|
2
2
|
large: {
|
|
3
3
|
size: string;
|
|
4
|
-
sizeSvg: string;
|
|
5
4
|
};
|
|
6
5
|
medium: {
|
|
7
6
|
size: string;
|
|
8
|
-
sizeSvg: string;
|
|
9
7
|
};
|
|
10
8
|
small: {
|
|
11
9
|
size: string;
|
|
12
|
-
sizeSvg: string;
|
|
13
10
|
};
|
|
14
11
|
};
|
|
15
12
|
export declare const CircleButtonTheme: {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const Container: import("styled-components").StyledComponent<"div", any, {
|
|
2
|
+
marginBottom: number;
|
|
3
|
+
}, never>;
|
|
4
|
+
declare const Label: import("styled-components").StyledComponent<"label", any, {}, never>;
|
|
5
|
+
declare const Required: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
6
|
+
declare const Hint: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
+
declare const InputContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export { Container, Label, Required, Hint, InputContainer };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { IPopup } from '../Popup/Popup.typed';
|
|
3
|
+
export interface IFieldRow {
|
|
4
|
+
/**Вложенный элемент, к которому применяется FieldRow*/
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
/**Текст лейбла*/
|
|
7
|
+
label?: string;
|
|
8
|
+
/**Обязательность поля*/
|
|
9
|
+
required?: boolean;
|
|
10
|
+
/**Отступ от контейнера снизу*/
|
|
11
|
+
marginBottom?: number;
|
|
12
|
+
/**Добавить подсказку к полю*/
|
|
13
|
+
hint?: IPopup;
|
|
14
|
+
/** Класс для верхнего дива*/
|
|
15
|
+
rootClass?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FieldRow } from './FieldRow';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
-
declare const EyeIconStyle: import("styled-components").StyledComponent<
|
|
4
|
-
declare const EyeCloseIconStyle: import("styled-components").StyledComponent<
|
|
2
|
+
declare const EyeIconStyle: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
|
|
3
|
+
declare const EyeCloseIconStyle: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
|
|
5
4
|
declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
5
|
export { Container, EyeCloseIconStyle, EyeIconStyle, Wrapper };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IPopup } from './Popup.typed';
|
|
2
|
+
declare const Container: import("styled-components").StyledComponent<"div", any, {
|
|
3
|
+
theme: IPopup['theme'];
|
|
4
|
+
width: IPopup['width'];
|
|
5
|
+
}, never>;
|
|
6
|
+
declare const Content: import("styled-components").StyledComponent<"div", any, {
|
|
7
|
+
theme: IPopup['theme'];
|
|
8
|
+
}, never>;
|
|
9
|
+
declare const Title: import("styled-components").StyledComponent<"span", any, {
|
|
10
|
+
theme: IPopup['theme'];
|
|
11
|
+
}, never>;
|
|
12
|
+
declare const PlayBtn: import("styled-components").StyledComponent<"button", any, {}, never>;
|
|
13
|
+
declare const Link: import("styled-components").StyledComponent<"span", any, {
|
|
14
|
+
theme: IPopup['theme'];
|
|
15
|
+
}, never>;
|
|
16
|
+
declare const Description: import("styled-components").StyledComponent<"p", any, {
|
|
17
|
+
theme: IPopup['theme'];
|
|
18
|
+
}, never>;
|
|
19
|
+
declare const Ifram: import("styled-components").StyledComponent<"iframe", any, {}, never>;
|
|
20
|
+
declare const Target: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
21
|
+
export { Container, Title, Content, PlayBtn, Link, Description, Ifram, Target };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Popup } from './Popup';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const Wrapper: import("styled-components").StyledComponent<"div", any, {
|
|
3
2
|
isOpen: boolean;
|
|
4
3
|
}, never>;
|
|
@@ -9,5 +8,5 @@ declare const Sidebar: import("styled-components").StyledComponent<"div", any, {
|
|
|
9
8
|
declare const Header: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
9
|
declare const Title: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
11
10
|
declare const Content: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
|
-
declare const CloseIconStyle: import("styled-components").StyledComponent<
|
|
11
|
+
declare const CloseIconStyle: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
|
|
13
12
|
export { Wrapper, Layout, Sidebar, Header, Title, Content, CloseIconStyle };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SwitchSize } from './Switched.typed';
|
|
2
|
+
declare const Hint: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
declare const Element: import("styled-components").StyledComponent<"span", any, {
|
|
4
|
+
size: SwitchSize;
|
|
5
|
+
isTextLeft: boolean;
|
|
6
|
+
}, never>;
|
|
7
|
+
declare const Text: import("styled-components").StyledComponent<"span", any, {
|
|
8
|
+
size: SwitchSize;
|
|
9
|
+
isTextLeft: boolean;
|
|
10
|
+
color: string;
|
|
11
|
+
}, never>;
|
|
12
|
+
declare const NativeInput: import("styled-components").StyledComponent<"input", any, {
|
|
13
|
+
sizeInput: SwitchSize;
|
|
14
|
+
}, never>;
|
|
15
|
+
declare const Container: import("styled-components").StyledComponent<"label", any, {}, never>;
|
|
16
|
+
export { Hint, Element, Text, NativeInput, Container };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import CSS from 'csstype';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { IPopup } from '../Popup/Popup.typed';
|
|
4
|
+
export declare enum SwitchSize {
|
|
5
|
+
regular = "regular",
|
|
6
|
+
compact = "compact"
|
|
7
|
+
}
|
|
8
|
+
export interface ISwitch {
|
|
9
|
+
checked?: boolean;
|
|
10
|
+
text?: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
size?: SwitchSize;
|
|
13
|
+
isTextLeft?: boolean;
|
|
14
|
+
color?: string;
|
|
15
|
+
value?: string | number;
|
|
16
|
+
style?: CSS.Properties;
|
|
17
|
+
/**Добавить подсказку к полю*/
|
|
18
|
+
hint?: IPopup;
|
|
19
|
+
onChange: (value: boolean, e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Switch } from './Switch';
|
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -18,4 +18,8 @@ import { HiddenText } from './components/uikit/HiddenText';
|
|
|
18
18
|
import { PasswordInput } from './components/uikit/PasswordInput';
|
|
19
19
|
import { Dropdown } from './components/uikit/Dropdown';
|
|
20
20
|
import { ModalMobile } from './components/uikit/ModalMobile';
|
|
21
|
-
|
|
21
|
+
import { Popup } from './components/uikit/Popup/';
|
|
22
|
+
import { FieldRow } from './components/uikit/FieldRow';
|
|
23
|
+
import { Card } from './components/uikit/Card';
|
|
24
|
+
import { Switch } from './components/uikit/Switch';
|
|
25
|
+
export { Footer, Header, CheckboxForm, CheckboxSize, Checkbox, Radio, RadioSize, Portal, Loader, SizeLoader, Button, ButtonSize, ButtonTheme, TextButton, TextButtonTheme, RegexPattern, Input, ErrorText, Avatar, Tooltip, DefaultTooltip, Modal, SideModal, CircleButton, Sidebar, HiddenText, PasswordInput, Dropdown, ModalMobile, Popup, FieldRow, Card, Switch };
|