profinansy-ui-lib 3.1.82 → 3.1.83

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.
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { IFilterButton } from '../FilterButton.typed';
3
+ interface IProps {
4
+ activeElements: IFilterButton['activeElements'];
5
+ text?: IFilterButton['text'];
6
+ isStroke?: IFilterButton['isStroke'];
7
+ size: IFilterButton['size'];
8
+ onClick?: () => void;
9
+ }
10
+ declare const Button: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLButtonElement>>;
11
+ export { Button };
@@ -1,4 +1,4 @@
1
- import { IFilterButton } from './FilterButton.typed';
1
+ import { IFilterButton } from '../FilterButton.typed';
2
2
  export declare const Button: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
3
3
  activeElements: number;
4
4
  isStroke: boolean;
@@ -1,3 +1,3 @@
1
1
  import { IFilterButton } from './FilterButton.typed';
2
- declare const FilterButton: ({ text, activeElements, isStroke, children, resetFilter, handleConfirm, size, isConfirmWithoutClose, isCancelWithoutClose }: IFilterButton) => JSX.Element;
2
+ declare const FilterButton: ({ text, activeElements, isStroke, children, resetFilter, handleConfirm, size, isConfirmWithoutClose, isCancelWithoutClose, handleCustomOpen }: IFilterButton) => JSX.Element;
3
3
  export { FilterButton };
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- component: ({ text, activeElements, isStroke, children, resetFilter, handleConfirm, size, isConfirmWithoutClose, isCancelWithoutClose }: import("./FilterButton.typed").IFilterButton) => JSX.Element;
3
+ component: ({ text, activeElements, isStroke, children, resetFilter, handleConfirm, size, isConfirmWithoutClose, isCancelWithoutClose, handleCustomOpen }: import("./FilterButton.typed").IFilterButton) => JSX.Element;
4
4
  tags: string[];
5
5
  parameters: {
6
6
  design: {
@@ -17,6 +17,8 @@ export interface IFilterButton {
17
17
  isConfirmWithoutClose?: boolean;
18
18
  /** Нужно ли закрывать контент после клика на Сбросить */
19
19
  isCancelWithoutClose?: boolean;
20
+ /** Кастомное действие при клике на кнопку. Нужно, когда требуется открывать фильтры не под кнопкой, а иным способом. */
21
+ handleCustomOpen?: () => void;
20
22
  /** Контент*/
21
23
  children: ReactNode;
22
24
  }