@equinor/echo-components 0.7.18 → 0.7.20
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/echoTooltip/Tooltip/useTooltip.d.ts +8 -8
- package/dist/index.js +2521 -2672
- package/dist/index.js.map +1 -1
- package/package.json +50 -50
|
@@ -9,8 +9,8 @@ export interface TooltipOptions {
|
|
|
9
9
|
export type ContextType = ReturnType<typeof useTooltip> | null;
|
|
10
10
|
declare function useTooltip({ initialOpen, placement, open: controlledOpen, onOpenChange: setControlledOpen }?: TooltipOptions): {
|
|
11
11
|
placement: Placement;
|
|
12
|
-
strategy: import("@floating-ui/
|
|
13
|
-
middlewareData: import("@floating-ui/
|
|
12
|
+
strategy: import("@floating-ui/utils").Strategy;
|
|
13
|
+
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
14
14
|
x: number;
|
|
15
15
|
y: number;
|
|
16
16
|
isPositioned: boolean;
|
|
@@ -31,8 +31,8 @@ declare function useTooltip({ initialOpen, placement, open: controlledOpen, onOp
|
|
|
31
31
|
y: number;
|
|
32
32
|
update: () => void;
|
|
33
33
|
placement: Placement;
|
|
34
|
-
strategy: import("@floating-ui/
|
|
35
|
-
middlewareData: import("@floating-ui/
|
|
34
|
+
strategy: import("@floating-ui/utils").Strategy;
|
|
35
|
+
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
36
36
|
isPositioned: boolean;
|
|
37
37
|
floatingStyles: import("react").CSSProperties;
|
|
38
38
|
open: boolean;
|
|
@@ -53,8 +53,8 @@ declare function useTooltip({ initialOpen, placement, open: controlledOpen, onOp
|
|
|
53
53
|
declare const TooltipContext: import("react").Context<ContextType>;
|
|
54
54
|
declare const useTooltipContext: () => {
|
|
55
55
|
placement: Placement;
|
|
56
|
-
strategy: import("@floating-ui/
|
|
57
|
-
middlewareData: import("@floating-ui/
|
|
56
|
+
strategy: import("@floating-ui/utils").Strategy;
|
|
57
|
+
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
58
58
|
x: number;
|
|
59
59
|
y: number;
|
|
60
60
|
isPositioned: boolean;
|
|
@@ -75,8 +75,8 @@ declare const useTooltipContext: () => {
|
|
|
75
75
|
y: number;
|
|
76
76
|
update: () => void;
|
|
77
77
|
placement: Placement;
|
|
78
|
-
strategy: import("@floating-ui/
|
|
79
|
-
middlewareData: import("@floating-ui/
|
|
78
|
+
strategy: import("@floating-ui/utils").Strategy;
|
|
79
|
+
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
80
80
|
isPositioned: boolean;
|
|
81
81
|
floatingStyles: import("react").CSSProperties;
|
|
82
82
|
open: boolean;
|