profinansy-ui-lib 3.3.29 → 3.3.31
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/blocks/Notification/Notification.d.ts +4 -0
- package/dist/components/blocks/Notification/Notification.stories.d.ts +7 -0
- package/dist/components/blocks/Notification/Notification.styled.d.ts +11 -0
- package/dist/components/blocks/Notification/Notification.typed.d.ts +14 -0
- package/dist/components/blocks/Notification/index.d.ts +1 -0
- package/dist/components/blocks/Notification/notifications.const.d.ts +4 -0
- package/dist/components/uikit/Alert/Alert.d.ts +1 -1
- package/dist/components/uikit/Alert/Alert.stories.d.ts +1 -1
- package/dist/components/uikit/Alert/Alert.typed.d.ts +2 -0
- package/dist/components/uikit/Modal/Modal.styled.d.ts +3 -0
- package/dist/components/uikit/Modal/Modal.typed.d.ts +4 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +709 -635
- package/dist/utils/formatDistanceDate.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { INotification, INotificationShort } from './Notification.typed';
|
|
2
|
+
declare const Notification: ({ title, description, date, type, link, onClose }: INotification) => JSX.Element;
|
|
3
|
+
declare const NotificationShort: ({ type, onClose, title }: INotificationShort) => JSX.Element;
|
|
4
|
+
export { Notification, NotificationShort };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: ({ title, description, date, type, link, onClose }: import("./Notification.typed").INotification) => JSX.Element;
|
|
4
|
+
tags: string[];
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Notification: () => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TTypeNotification } from './Notification.typed';
|
|
2
|
+
export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
|
+
type: TTypeNotification;
|
|
4
|
+
link: string;
|
|
5
|
+
}, never>;
|
|
6
|
+
export declare const Header: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
+
export declare const Left: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
8
|
+
export declare const IconContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
9
|
+
type: TTypeNotification;
|
|
10
|
+
}, never>;
|
|
11
|
+
export declare const Close: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type TTypeNotification = 'success' | 'warning' | 'error' | 'information' | 'myMoney';
|
|
2
|
+
export interface INotification {
|
|
3
|
+
title: string;
|
|
4
|
+
type: TTypeNotification;
|
|
5
|
+
description?: string;
|
|
6
|
+
date?: string;
|
|
7
|
+
link?: string;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
}
|
|
10
|
+
export interface INotificationShort {
|
|
11
|
+
title: string;
|
|
12
|
+
type: TTypeNotification;
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Notification, NotificationShort } from './Notification';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
title: string;
|
|
3
|
-
component: ({ modal, cancelButton, confirmButton }: import("./Alert.typed").IAlert) => JSX.Element;
|
|
3
|
+
component: ({ modal, cancelButton, confirmButton, text }: import("./Alert.typed").IAlert) => JSX.Element;
|
|
4
4
|
tags: string[];
|
|
5
5
|
parameters: {
|
|
6
6
|
design: {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { IButton } from '../Button/Button.typed';
|
|
2
2
|
import { IModal } from '../Modal/Modal.typed';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
3
4
|
export interface IAlert {
|
|
4
5
|
/** Пропсы для модалки. Принимает такие же свойства, как и компонент Modal. */
|
|
5
6
|
modal: Omit<IModal, 'children'>;
|
|
7
|
+
text?: ReactNode;
|
|
6
8
|
/** Пропсы для кнопки отмены. Принимает такие же свойства, как и компонент Button. */
|
|
7
9
|
cancelButton?: IButton;
|
|
8
10
|
/** Пропсы для кнопки подтверждения. Принимает такие же свойства, как и компонент Button. */
|
|
@@ -14,6 +14,9 @@ export declare const ContentInside: import("styled-components").StyledComponent<
|
|
|
14
14
|
isOverflowAuto: boolean;
|
|
15
15
|
}, never>;
|
|
16
16
|
export declare const Header: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
17
|
+
export declare const FirstLineHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
18
|
+
adaptiveRightContent: number;
|
|
19
|
+
}, never>;
|
|
17
20
|
export declare const Title: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../Typography/Typography.typed").ITypographyProps & import("react").CSSProperties & import("react").RefAttributes<HTMLElement>>, import("styled-components").DefaultTheme, {
|
|
18
21
|
titlePosition: 'left' | 'center';
|
|
19
22
|
}, never>;
|
|
@@ -12,6 +12,10 @@ export interface IModal {
|
|
|
12
12
|
disableClosing?: boolean;
|
|
13
13
|
/** Заголовок модалки */
|
|
14
14
|
title?: string;
|
|
15
|
+
/**Контент справа от заголовка*/
|
|
16
|
+
rightContent?: React.ReactElement;
|
|
17
|
+
/**Разрешение, на котором переносить контент справа от заголовка на вторую строку*/
|
|
18
|
+
adaptiveRightContent?: number;
|
|
15
19
|
/** Подзаголовок модалки */
|
|
16
20
|
subtitle?: string;
|
|
17
21
|
/** инлайновые стили для контента попапа */
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { Footer } from './components/blocks/footer';
|
|
|
3
3
|
import { SideMenu } from './components/blocks/sideMenu';
|
|
4
4
|
import { PremiumBanner } from './components/blocks/PremiumBanner';
|
|
5
5
|
import { CompanyInfo } from './components/blocks/CompanyInfo';
|
|
6
|
+
import { Notification, NotificationShort } from './components/blocks/Notification';
|
|
6
7
|
import { LayoutSideMenu } from './components/layouts/LayoutSideMenu';
|
|
7
8
|
import { useHidingFromApp } from './hooks/useHiddingFromApp';
|
|
8
9
|
import { useHidingChat } from './hooks/useHidingChat';
|
|
@@ -58,4 +59,4 @@ import { setCookie, getCookie, deleteCookie } from './utils/cookie';
|
|
|
58
59
|
import { INSTRUMENTS_TYPES } from './hooks/useSearchInstruments';
|
|
59
60
|
import { HEIGHT_HEADER } from './constants/common';
|
|
60
61
|
import { AnimationFunctions } from './constants/animation/animation';
|
|
61
|
-
export { AnimationFunctions, INSTRUMENTS_TYPES, eventBus, BusEvent, SuccessModal, Footer, Header, SideMenu, PremiumBanner, CompanyInfo, Alert, AvatarCompany, Table, TCellText, Hint, SegmentControl, SwiperButton, FilterButton, ControlButton, SortingButton, Counter, Checkbox, Radio, Portal, Loader, ButtonPaging, Button, Tabs, TextButton, TextButtonLink, RegexPattern, Input, Textarea, ErrorText, Avatar, Tooltip, Typography, Modal, SideModal, ArrowButton, Bubbles, HiddenText, PasswordInput, Dropdown, ModalMobile, Popup, IPopup, FieldRow, Card, PageTitle, Switch, Spinner, Skeleton, palette, ThemeProvider, useMode, useHidingChat, useHidingFromApp, useOpenSideMenu, useLoadingNextPage, LayoutSideMenu, HEIGHT_HEADER, setCookie, getCookie, deleteCookie, IColumnTable };
|
|
62
|
+
export { AnimationFunctions, INSTRUMENTS_TYPES, eventBus, BusEvent, SuccessModal, Footer, Header, SideMenu, Notification, NotificationShort, PremiumBanner, CompanyInfo, Alert, AvatarCompany, Table, TCellText, Hint, SegmentControl, SwiperButton, FilterButton, ControlButton, SortingButton, Counter, Checkbox, Radio, Portal, Loader, ButtonPaging, Button, Tabs, TextButton, TextButtonLink, RegexPattern, Input, Textarea, ErrorText, Avatar, Tooltip, Typography, Modal, SideModal, ArrowButton, Bubbles, HiddenText, PasswordInput, Dropdown, ModalMobile, Popup, IPopup, FieldRow, Card, PageTitle, Switch, Spinner, Skeleton, palette, ThemeProvider, useMode, useHidingChat, useHidingFromApp, useOpenSideMenu, useLoadingNextPage, LayoutSideMenu, HEIGHT_HEADER, setCookie, getCookie, deleteCookie, IColumnTable };
|