indicator-ui 0.0.328 → 0.0.329
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/index.js +33 -24
- package/dist/index.js.map +1 -1
- package/dist/types/src/hooks/useSmartPosition.d.ts +8 -2
- package/package.json +1 -1
|
@@ -26,6 +26,12 @@ type PropsType = [
|
|
|
26
26
|
weights?: WeightTableType;
|
|
27
27
|
}
|
|
28
28
|
];
|
|
29
|
+
type FunReturnType = {
|
|
30
|
+
/**
|
|
31
|
+
* Вызывайте для пересчета позиции, пригодиться если поменяли рефки.
|
|
32
|
+
* */
|
|
33
|
+
recalc: () => void;
|
|
34
|
+
};
|
|
29
35
|
/**
|
|
30
36
|
* Хук для умного позиционирования элемента.
|
|
31
37
|
*
|
|
@@ -37,10 +43,10 @@ type PropsType = [
|
|
|
37
43
|
* @param [options.position='fixed']
|
|
38
44
|
* @param [options.offset=4]
|
|
39
45
|
*
|
|
40
|
-
* @returns
|
|
46
|
+
* @returns FunReturnType
|
|
41
47
|
*
|
|
42
48
|
* @example
|
|
43
49
|
* @param args
|
|
44
50
|
*/
|
|
45
|
-
export declare function useSmartPosition(...args: PropsType):
|
|
51
|
+
export declare function useSmartPosition(...args: PropsType): FunReturnType;
|
|
46
52
|
export {};
|