@gusarov-studio/rubik-ui 29.5.2 → 30.0.1
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/CustomTooltip/CustomTooltipArrow.d.ts +5 -0
- package/dist/CustomTooltip/CustomTooltipContent.d.ts +8 -0
- package/dist/CustomTooltip/CustomTooltipContext.d.ts +6 -0
- package/dist/CustomTooltip/CustomTooltipProvider.d.ts +0 -0
- package/dist/CustomTooltip/CustomTooltipRoot.d.ts +7 -0
- package/dist/CustomTooltip/index.d.ts +12 -0
- package/dist/Tooltip/index.d.ts +1 -9
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.declarations.tsbuildinfo +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Arrow } from "@radix-ui/react-tooltip";
|
|
3
|
+
type TooltipArrowProps = React.ComponentPropsWithoutRef<typeof Arrow>;
|
|
4
|
+
declare const TooltipArrow: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-tooltip").TooltipArrowProps & React.RefAttributes<SVGSVGElement>, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
5
|
+
export { TooltipArrow, type TooltipArrowProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Content } from "@radix-ui/react-tooltip";
|
|
3
|
+
import "./CustomTooltip.scss";
|
|
4
|
+
interface TooltipContentProps extends React.ComponentPropsWithoutRef<typeof Content> {
|
|
5
|
+
width?: React.CSSProperties["width"];
|
|
6
|
+
}
|
|
7
|
+
declare const TooltipContent: React.ForwardRefExoticComponent<TooltipContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export { TooltipContent, type TooltipContentProps };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface TooltipContextValue {
|
|
2
|
+
zIndex?: number | `${number}`;
|
|
3
|
+
}
|
|
4
|
+
declare const TooltipContext: import("react").Context<TooltipContextValue | null>;
|
|
5
|
+
declare const useTooltipContext: () => TooltipContextValue;
|
|
6
|
+
export { TooltipContext, type TooltipContextValue, useTooltipContext };
|
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Root } from "@radix-ui/react-tooltip";
|
|
3
|
+
interface TooltipRootProps extends React.ComponentProps<typeof Root> {
|
|
4
|
+
zIndex?: number | `${number}`;
|
|
5
|
+
}
|
|
6
|
+
declare const TooltipRoot: React.FC<TooltipRootProps>;
|
|
7
|
+
export { TooltipRoot, type TooltipRootProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type TooltipTriggerProps, type TooltipProviderProps } from "@radix-ui/react-tooltip";
|
|
2
|
+
import { type TooltipRootProps } from "./CustomTooltipRoot";
|
|
3
|
+
import { type TooltipContentProps } from "./CustomTooltipContent";
|
|
4
|
+
import { type TooltipArrowProps } from "./CustomTooltipArrow";
|
|
5
|
+
declare const CustomTooltip: {
|
|
6
|
+
Provider: import("react").FC<TooltipProviderProps>;
|
|
7
|
+
Root: import("react").FC<TooltipRootProps>;
|
|
8
|
+
Trigger: import("react").ForwardRefExoticComponent<TooltipTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
Content: import("react").ForwardRefExoticComponent<TooltipContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
+
Arrow: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-tooltip").TooltipArrowProps & import("react").RefAttributes<SVGSVGElement>, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
11
|
+
};
|
|
12
|
+
export { CustomTooltip, type TooltipRootProps as CustomTooltipRootProps, type TooltipTriggerProps as CustomTooltipTriggerProps, type TooltipContentProps as CustomTooltipContentProps, type TooltipArrowProps as CustomTooltipArrowProps, type TooltipProviderProps as CustomTooltipProviderProps, };
|
package/dist/Tooltip/index.d.ts
CHANGED
|
@@ -1,10 +1,2 @@
|
|
|
1
1
|
import { Tooltip, type TooltipProps } from "./Tooltip";
|
|
2
|
-
|
|
3
|
-
import { type TooltipTriggerProps } from "./TooltipTrigger";
|
|
4
|
-
import { type TooltipContentProps } from "./TooltipContent";
|
|
5
|
-
declare const CustomTooltip: {
|
|
6
|
-
Root: import("react").FC<TooltipRootProps>;
|
|
7
|
-
Trigger: import("react").ForwardRefExoticComponent<Omit<TooltipTriggerProps, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
8
|
-
Content: import("react").ForwardRefExoticComponent<Omit<TooltipContentProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
-
};
|
|
10
|
-
export { Tooltip, CustomTooltip, type TooltipProps, type TooltipRootProps, type TooltipTriggerProps, type TooltipContentProps, };
|
|
2
|
+
export { Tooltip, type TooltipProps };
|