profinansy-ui-lib 3.1.18 → 3.1.20
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/sideMenu/hooks/useSaveOpenMode.d.ts +2 -1
- package/dist/components/layouts/LayoutSideMenu/LayoutSideMenu.styled.d.ts +3 -1
- package/dist/components/uikit/Button/Button.const.d.ts +0 -9
- package/dist/components/uikit/Modal/Modal.styled.d.ts +2 -2
- package/dist/components/uikit/Modal/Modal.typed.d.ts +0 -2
- package/dist/components/uikit/ModalMobile/ModalMobile.typed.d.ts +0 -2
- package/dist/components/uikit/SideModal/SideModal.typed.d.ts +7 -2
- package/dist/components/uikit/SideModal/components/ModalInside/ModalInside.d.ts +6 -0
- package/dist/components/uikit/Typography/Typography.const.d.ts +3 -0
- package/dist/components/uikit/Typography/Typography.d.ts +4 -0
- package/dist/components/uikit/Typography/Typography.stories.d.ts +14 -0
- package/dist/components/uikit/Typography/Typography.styled.d.ts +5 -0
- package/dist/components/uikit/Typography/Typography.typed.d.ts +15 -0
- package/dist/components/uikit/Typography/index.d.ts +1 -0
- package/dist/hooks/useBlockScroll.d.ts +2 -1
- package/dist/hooks/useTransitionModal.d.ts +11 -2
- package/dist/index.js +32 -32
- package/dist/utils/eventBus/events.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TSideMenuCategory } from '../SideModal.typed';
|
|
2
|
+
export declare const SIDE_MENU_STATE = "side_menu_state";
|
|
2
3
|
export declare const useSaveOpenMode: (category: TSideMenuCategory) => {
|
|
3
4
|
isOpen: boolean;
|
|
4
|
-
|
|
5
|
+
setOpenSideMenu: (val: boolean) => void;
|
|
5
6
|
};
|
|
@@ -6,4 +6,6 @@ export declare const Aside: import("styled-components").StyledComponent<"aside",
|
|
|
6
6
|
export declare const Sticky: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
7
7
|
headerHeight: number;
|
|
8
8
|
}, never>;
|
|
9
|
-
export declare const Main: import("styled-components").StyledComponent<"main", import("styled-components").DefaultTheme, {
|
|
9
|
+
export declare const Main: import("styled-components").StyledComponent<"main", import("styled-components").DefaultTheme, {
|
|
10
|
+
openMode: boolean;
|
|
11
|
+
}, never>;
|
|
@@ -2,25 +2,16 @@ import { ButtonForm, TModesStyle } from './Button.typed';
|
|
|
2
2
|
import { TTheme } from '../../../theme/theme.typed';
|
|
3
3
|
export declare const getSize: (form: ButtonForm) => {
|
|
4
4
|
M: {
|
|
5
|
-
fontWeight: number;
|
|
6
|
-
fontSize: string;
|
|
7
|
-
lineHeight: string;
|
|
8
5
|
height: string;
|
|
9
6
|
maxHeight: string;
|
|
10
7
|
borderRadius: string;
|
|
11
8
|
};
|
|
12
9
|
S: {
|
|
13
|
-
fontWeight: number;
|
|
14
|
-
fontSize: string;
|
|
15
|
-
lineHeight: string;
|
|
16
10
|
height: string;
|
|
17
11
|
maxHeight: string;
|
|
18
12
|
borderRadius: string;
|
|
19
13
|
};
|
|
20
14
|
XS: {
|
|
21
|
-
fontWeight: number;
|
|
22
|
-
fontSize: string;
|
|
23
|
-
lineHeight: string;
|
|
24
15
|
height: string;
|
|
25
16
|
maxHeight: string;
|
|
26
17
|
borderRadius: string;
|
|
@@ -8,8 +8,8 @@ export declare const Content: import("styled-components").StyledComponent<"div",
|
|
|
8
8
|
}, never>;
|
|
9
9
|
export declare const ContentInside: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
10
10
|
export declare const Header: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
11
|
-
export declare const Title: import("styled-components").StyledComponent<"
|
|
11
|
+
export declare const Title: import("styled-components").StyledComponent<({ tag, className, children, variant, title, ...props }: import("../Typography/Typography.typed").ITypographyProps & import("react").CSSProperties) => JSX.Element, import("styled-components").DefaultTheme, {
|
|
12
12
|
titlePosition: 'left' | 'center';
|
|
13
13
|
}, never>;
|
|
14
|
-
export declare const Subtitle: import("styled-components").StyledComponent<"
|
|
14
|
+
export declare const Subtitle: import("styled-components").StyledComponent<({ tag, className, children, variant, title, ...props }: import("../Typography/Typography.typed").ITypographyProps & import("react").CSSProperties) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
15
15
|
export declare const CloseButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -30,6 +30,4 @@ export interface IModal {
|
|
|
30
30
|
titlePosition?: 'left' | 'center';
|
|
31
31
|
/** ID для контейнера, куда будет монтирроваться модалка */
|
|
32
32
|
containerId?: string;
|
|
33
|
-
/** Блокировать ли скролл на странице при открытии. По умолчанию скролл блокируется */
|
|
34
|
-
isBlockPageScroll?: boolean;
|
|
35
33
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { IAlert } from '../Alert/Alert.typed';
|
|
3
|
+
import { IModal } from '../Modal/Modal.typed';
|
|
3
4
|
export interface ISideModal {
|
|
4
5
|
/** Состояние попапа. */
|
|
5
6
|
isOpen: boolean;
|
|
@@ -21,12 +22,16 @@ export interface ISideModal {
|
|
|
21
22
|
rightContent?: ReactElement;
|
|
22
23
|
/**Контент, закрепленный снизу попапа*/
|
|
23
24
|
bottomContent?: ReactElement;
|
|
25
|
+
/** Действие вместо закрытия попапа. */
|
|
26
|
+
onBeforeClose?: () => void;
|
|
24
27
|
/** Действие при закрытии попапа. */
|
|
25
28
|
onClose?: () => void;
|
|
26
29
|
/** Действие при клике на кнопку назад. */
|
|
27
30
|
onBack?: () => void;
|
|
31
|
+
/** Пропсы для встроенного попапа. */
|
|
32
|
+
modal?: IModal;
|
|
28
33
|
/** Пропсы для попапа Alert. */
|
|
29
34
|
alert?: IAlert;
|
|
30
|
-
/**
|
|
31
|
-
|
|
35
|
+
/** Использовать ли внутренний механизм закрытия. */
|
|
36
|
+
isCloseInside?: boolean;
|
|
32
37
|
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { TTypographyVariant } from './Typography.typed';
|
|
2
|
+
export declare const typographyVariants: readonly ["header1-Bold", "header2-ExtraBold", "header2-Bold", "header3-Bold", "header3-SemiBold", "header4-Bold", "header4-SemiBold", "header5-Bold", "header5-SemiBold", "header6-Bold", "header6-SemiBold", "paragraph-Regular", "paragraph-Medium", "text-Regular", "text-Medium", "text-Bold", "description-Regular", "description-Medium", "description-SemiBold", "description-Bold", "caption-Medium", "caption-SemiBold", "caption-Bold", "caption2-Medium", "caption2-SemiBold", "caption2-Bold", "tag-Medium1", "tag-Medium2", "tag-Medium3"];
|
|
3
|
+
export declare const getTypographyParameters: (variant: TTypographyVariant) => number[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ tag, className, children, variant, title, ...props }: import("./Typography.typed").ITypographyProps & React.CSSProperties) => JSX.Element;
|
|
5
|
+
tags: string[];
|
|
6
|
+
parameters: {
|
|
7
|
+
design: {
|
|
8
|
+
type: string;
|
|
9
|
+
url: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
14
|
+
export declare const Typography: () => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { typographyVariants } from './Typography.const';
|
|
3
|
+
export type TTypographyVariant = (typeof typographyVariants)[number];
|
|
4
|
+
export interface ITypographyProps {
|
|
5
|
+
/**HTML тег */
|
|
6
|
+
tag?: keyof JSX.IntrinsicElements;
|
|
7
|
+
/**Тип тега */
|
|
8
|
+
variant: TTypographyVariant;
|
|
9
|
+
/**Класс элемента */
|
|
10
|
+
className?: string;
|
|
11
|
+
/**Контента внутри элемента */
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
/**Подсказка на элемент */
|
|
14
|
+
title?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Typography } from './Typography';
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
declare function
|
|
2
|
+
declare function useControlsForModal(isOpen: boolean, handleClose: () => void): void;
|
|
3
|
+
interface ITransition {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
isCloseInside?: boolean;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
onBeforeClose?: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare function useTransitionModal({ isOpen, isCloseInside, onClose, onBeforeClose, children }: ITransition): {
|
|
3
11
|
animation: boolean;
|
|
4
12
|
content: any;
|
|
5
13
|
showModal: boolean;
|
|
14
|
+
handleClose: () => void;
|
|
6
15
|
};
|
|
7
|
-
export { useTransitionModal };
|
|
16
|
+
export { useTransitionModal, useControlsForModal };
|