profinansy-ui-lib 2.0.25 → 2.0.27
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/assets/closeSidebar-icon.d.ts +3 -0
- package/dist/assets/helpSmall-icon.d.ts +1 -0
- package/dist/assets/hint-icon.d.ts +1 -0
- package/dist/components/header/components/user-dropdown-menu/constants.d.ts +2 -2
- package/dist/components/header/contstants/authLinks.d.ts +8 -8
- package/dist/components/header/contstants/clubLinks.d.ts +1 -1
- package/dist/components/header/contstants/paidLinks.d.ts +8 -11
- 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/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/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/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 +214 -17
- package/package.json +2 -1
- package/dist/assets/about-icon.d.ts +0 -1
- 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/club-icon.d.ts +0 -1
- package/dist/assets/education-icon.d.ts +0 -1
- package/dist/assets/favorites-icon.d.ts +0 -1
- 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/profile-icon.d.ts +0 -1
- package/dist/assets/tariffs-icon.d.ts +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const HelpSmallIcon: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const HintIcon: () => JSX.Element;
|
|
@@ -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,6 @@
|
|
|
1
1
|
export declare const authorizedLinks: (hostname: string, leaderBoardPermission: boolean) => ({
|
|
2
2
|
name: string;
|
|
3
|
-
Icon:
|
|
4
|
-
href: string;
|
|
5
|
-
subPages: any[];
|
|
6
|
-
innerPages?: undefined;
|
|
7
|
-
} | {
|
|
8
|
-
name: string;
|
|
9
|
-
Icon: () => JSX.Element;
|
|
3
|
+
Icon: any;
|
|
10
4
|
subPages: ({
|
|
11
5
|
name: string;
|
|
12
6
|
href: string;
|
|
@@ -30,7 +24,7 @@ export declare const authorizedLinks: (hostname: string, leaderBoardPermission:
|
|
|
30
24
|
href?: undefined;
|
|
31
25
|
} | {
|
|
32
26
|
name: string;
|
|
33
|
-
Icon:
|
|
27
|
+
Icon: any;
|
|
34
28
|
subPages: ({
|
|
35
29
|
name: string;
|
|
36
30
|
href: string;
|
|
@@ -39,6 +33,12 @@ export declare const authorizedLinks: (hostname: string, leaderBoardPermission:
|
|
|
39
33
|
name: string;
|
|
40
34
|
href: string;
|
|
41
35
|
})[];
|
|
36
|
+
innerPages?: undefined;
|
|
42
37
|
href?: undefined;
|
|
38
|
+
} | {
|
|
39
|
+
name: string;
|
|
40
|
+
href: string;
|
|
41
|
+
subPages: any[];
|
|
42
|
+
Icon: any;
|
|
43
43
|
innerPages?: undefined;
|
|
44
44
|
})[];
|
|
@@ -1,15 +1,21 @@
|
|
|
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;
|
|
7
7
|
}[];
|
|
8
|
-
innerPages?: undefined;
|
|
9
8
|
href?: undefined;
|
|
9
|
+
innerPages?: undefined;
|
|
10
10
|
} | {
|
|
11
11
|
name: string;
|
|
12
12
|
Icon: () => JSX.Element;
|
|
13
|
+
href: string;
|
|
14
|
+
subPages: any[];
|
|
15
|
+
innerPages?: undefined;
|
|
16
|
+
} | {
|
|
17
|
+
name: string;
|
|
18
|
+
Icon: any;
|
|
13
19
|
subPages: ({
|
|
14
20
|
name: string;
|
|
15
21
|
href: string;
|
|
@@ -31,13 +37,4 @@ export declare const paidLinks: (hostname: string, leaderBoardPermission: boolea
|
|
|
31
37
|
})[];
|
|
32
38
|
innerPages: string[];
|
|
33
39
|
href?: undefined;
|
|
34
|
-
} | {
|
|
35
|
-
name: string;
|
|
36
|
-
Icon: () => JSX.Element;
|
|
37
|
-
href: string;
|
|
38
|
-
subPages: {
|
|
39
|
-
name: string;
|
|
40
|
-
href: string;
|
|
41
|
-
}[];
|
|
42
|
-
innerPages?: undefined;
|
|
43
40
|
})[];
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -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 };
|