profinansy-ui-lib 3.6.60 → 3.6.62
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/Favourite/Favourite.d.ts +3 -0
- package/dist/components/blocks/Favourite/Favourite.stories.d.ts +7 -0
- package/dist/components/blocks/Favourite/Favourite.styled.d.ts +5 -0
- package/dist/components/blocks/Favourite/Favourite.typed.d.ts +11 -0
- package/dist/components/blocks/Favourite/index.d.ts +1 -0
- package/dist/components/uikit/Tooltip/Tooltip.d.ts +3 -2
- package/dist/components/uikit/Tooltip/Tooltip.stories.d.ts +1 -1
- package/dist/components/uikit/Tooltip/Tooltip.styled.d.ts +6 -5
- package/dist/components/uikit/Tooltip/Tooltip.typed.d.ts +2 -0
- package/dist/components/uikit/WidgetTitle/WidgetTitle.typed.d.ts +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +58 -16
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: ({ className, isActive, handleFav, type }: import("./Favourite.typed").IFavouriteProps) => JSX.Element;
|
|
4
|
+
tags: string[];
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const FavouriteButton: () => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type TTypeFavourite = 'primary' | 'content';
|
|
2
|
+
export interface IFavouriteProps {
|
|
3
|
+
/**Тип кнопки */
|
|
4
|
+
type?: TTypeFavourite;
|
|
5
|
+
/**Класс для кнопки */
|
|
6
|
+
className?: string;
|
|
7
|
+
/**Добавлен ли объект в избранное */
|
|
8
|
+
isActive: boolean;
|
|
9
|
+
/**Коллбэк по нажатию на кнопку */
|
|
10
|
+
handleFav: (val: boolean) => void;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FavouriteButton } from './Favourite';
|
|
@@ -52,16 +52,17 @@ export declare function useTooltip({ placement, isHover, showArrow }: {
|
|
|
52
52
|
open: boolean;
|
|
53
53
|
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
54
54
|
};
|
|
55
|
-
declare const Tooltip: ({ children, width, height, zIndex, padding, styleContainer, ...props }: ITooltipProps) => JSX.Element;
|
|
55
|
+
declare const Tooltip: ({ children, width, height, zIndex, padding, borderRadius, styleContainer, ...props }: ITooltipProps) => JSX.Element;
|
|
56
56
|
export declare const TooltipTrigger: ({ targetElement }: {
|
|
57
57
|
targetElement: React.ReactNode;
|
|
58
58
|
}) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
59
|
-
export declare const TooltipContent: ({ children, width, height, zIndex, padding, showArrow }: {
|
|
59
|
+
export declare const TooltipContent: ({ children, width, height, zIndex, padding, borderRadius, showArrow }: {
|
|
60
60
|
children: ReactNode;
|
|
61
61
|
width: string;
|
|
62
62
|
height: string;
|
|
63
63
|
zIndex: number;
|
|
64
64
|
padding: string;
|
|
65
|
+
borderRadius: string;
|
|
65
66
|
showArrow: boolean;
|
|
66
67
|
}) => JSX.Element;
|
|
67
68
|
export { Tooltip };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
title: string;
|
|
3
|
-
component: ({ children, width, height, zIndex, padding, styleContainer, ...props }: import("./Tooltip.typed").ITooltipProps) => JSX.Element;
|
|
3
|
+
component: ({ children, width, height, zIndex, padding, borderRadius, styleContainer, ...props }: import("./Tooltip.typed").ITooltipProps) => JSX.Element;
|
|
4
4
|
tags: string[];
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
2
|
export declare const Tooltip: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
|
-
width?: string;
|
|
4
|
-
height?: string;
|
|
5
|
-
|
|
3
|
+
$width?: string;
|
|
4
|
+
$height?: string;
|
|
5
|
+
$borderRadius?: string;
|
|
6
|
+
$mode: string;
|
|
6
7
|
}, never>;
|
|
7
8
|
export declare const Content: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
8
|
-
height?: string;
|
|
9
|
-
padding?: string;
|
|
9
|
+
$height?: string;
|
|
10
|
+
$padding?: string;
|
|
10
11
|
}, never>;
|
|
@@ -14,6 +14,8 @@ export interface ITooltipProps {
|
|
|
14
14
|
height?: string;
|
|
15
15
|
/** Паддинги для выпадашки*/
|
|
16
16
|
padding?: string;
|
|
17
|
+
/** Закругления для выпадашки*/
|
|
18
|
+
borderRadius?: string;
|
|
17
19
|
/** Можно передать кастомный z-index для выпадашки*/
|
|
18
20
|
zIndex?: number;
|
|
19
21
|
/**Показывать по наведению на триггер*/
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export { Notification } from './components/blocks/Notification';
|
|
|
12
12
|
export { NotificationShort } from './components/blocks/Notification';
|
|
13
13
|
export { SearchSideMenu } from './components/blocks/SearchSideMenu';
|
|
14
14
|
export { SearchCategories } from './components/blocks/search/Search.const';
|
|
15
|
+
export { FavouriteButton } from './components/blocks/Favourite';
|
|
15
16
|
export { LayoutSideMenu } from './components/layouts/LayoutSideMenu';
|
|
16
17
|
export { useHidingFromApp } from './hooks/useHiddingFromApp';
|
|
17
18
|
export { useHidingChat } from './hooks/useHidingChat';
|