profinansy-ui-lib 3.1.17 → 3.1.19

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.
@@ -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;
@@ -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,8 +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;
29
+ /** Действие при клике на кнопку назад. */
30
+ onBack?: () => void;
31
+ /** Пропсы для встроенного попапа. */
32
+ modal?: IModal;
26
33
  /** Пропсы для попапа Alert. */
27
34
  alert?: IAlert;
35
+ /** Использовать ли внутренний механизм закрытия. */
36
+ isCloseInside?: boolean;
28
37
  }
@@ -0,0 +1,6 @@
1
+ import { IModal } from '../../../Modal/Modal.typed';
2
+ interface IProps {
3
+ data: IModal;
4
+ }
5
+ declare const ModalInside: ({ data }: IProps) => JSX.Element;
6
+ export { ModalInside };
@@ -1,2 +1,3 @@
1
- export declare const useBlockScroll: (open: boolean) => void;
1
+ export declare const useBlockScroll: () => void;
2
+ export declare const useBlockScrollOpen: (open: boolean) => void;
2
3
  export default useBlockScroll;
@@ -1,7 +1,16 @@
1
1
  import { ReactNode } from 'react';
2
- declare function useTransitionModal(isOpen: boolean, children: ReactNode, onClose: () => void): {
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 };