profinansy-ui-lib 4.0.88 → 4.0.89
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/uikit/Tooltip/Tooltip.d.ts +2 -1
- package/dist/components/uikit/Tooltip/Tooltip.typed.d.ts +2 -0
- package/dist/profinansy-ui-lib.cjs +83 -83
- package/dist/profinansy-ui-lib.cjs.map +1 -1
- package/dist/profinansy-ui-lib.es.js +372 -366
- package/dist/profinansy-ui-lib.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { Placement } from '@floating-ui/react';
|
|
3
3
|
import { ITooltipProps, ITooltipRef } from './Tooltip.typed';
|
|
4
|
-
export declare function useTooltip({ placement, isHover, showArrow, onOpenTooltip }: {
|
|
4
|
+
export declare function useTooltip({ placement, isHover, showArrow, onOpenTooltip, disableScrollUpdate }: {
|
|
5
5
|
placement?: Placement;
|
|
6
6
|
isHover?: boolean;
|
|
7
7
|
showArrow?: boolean;
|
|
8
8
|
onOpenTooltip?: ITooltipProps['onOpenTooltip'];
|
|
9
|
+
disableScrollUpdate?: boolean;
|
|
9
10
|
}): {
|
|
10
11
|
placement: Placement;
|
|
11
12
|
strategy: import("@floating-ui/utils").Strategy;
|
|
@@ -26,6 +26,8 @@ export interface ITooltipProps {
|
|
|
26
26
|
onOpenTooltip?: (val: boolean) => void;
|
|
27
27
|
/** Стили для контейнера.*/
|
|
28
28
|
styleContainer?: CSS.Properties;
|
|
29
|
+
/** Отключить пересчёт позиции при скролле (для фиксированных элементов вроде хедера) */
|
|
30
|
+
disableScrollUpdate?: boolean;
|
|
29
31
|
}
|
|
30
32
|
export interface ITooltipRef {
|
|
31
33
|
handleClose: () => void;
|