profinansy-ui-lib 3.1.17 → 3.1.18

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.
@@ -30,4 +30,6 @@ export interface IModal {
30
30
  titlePosition?: 'left' | 'center';
31
31
  /** ID для контейнера, куда будет монтирроваться модалка */
32
32
  containerId?: string;
33
+ /** Блокировать ли скролл на странице при открытии. По умолчанию скролл блокируется */
34
+ isBlockPageScroll?: boolean;
33
35
  }
@@ -10,4 +10,6 @@ export interface IModalMobile {
10
10
  onLeftButton?: () => void;
11
11
  onRightButton?: () => void;
12
12
  closeIconVisible?: boolean;
13
+ /** Блокировать ли скролл на странице при открытии. По умолчанию скролл блокируется */
14
+ isBlockPageScroll?: boolean;
13
15
  }
@@ -10,6 +10,7 @@ export declare const Sidebar: import("styled-components").StyledComponent<"div",
10
10
  }, never>;
11
11
  export declare const Header: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
12
12
  export declare const LeftWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
13
+ export declare const BackButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
13
14
  export declare const Title: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
14
15
  export declare const Content: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
15
16
  bottomHeight: number;
@@ -23,6 +23,10 @@ export interface ISideModal {
23
23
  bottomContent?: ReactElement;
24
24
  /** Действие при закрытии попапа. */
25
25
  onClose?: () => void;
26
+ /** Действие при клике на кнопку назад. */
27
+ onBack?: () => void;
26
28
  /** Пропсы для попапа Alert. */
27
29
  alert?: IAlert;
30
+ /** Блокировать ли скролл на странице при открытии. По умолчанию скролл блокируется */
31
+ isBlockPageScroll?: boolean;
28
32
  }
@@ -1,2 +1,2 @@
1
- export declare const useBlockScroll: (open: boolean) => void;
1
+ export declare const useBlockScroll: (open: boolean, isBlockPageScroll?: boolean) => void;
2
2
  export default useBlockScroll;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- declare function useTransitionModal(isOpen: boolean, children: ReactNode, onClose: () => void): {
2
+ declare function useTransitionModal(isOpen: boolean, children: ReactNode, onClose: () => void, isBlockPageScroll: boolean): {
3
3
  animation: boolean;
4
4
  content: any;
5
5
  showModal: boolean;