@gusarov-studio/rubik-ui 31.12.1 → 31.13.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.
|
@@ -12,6 +12,7 @@ interface ThemesContextState {
|
|
|
12
12
|
}
|
|
13
13
|
type ThemesProviderProps = React.PropsWithChildren<{
|
|
14
14
|
defaultTheme?: string;
|
|
15
|
+
theme?: string;
|
|
15
16
|
}>;
|
|
16
17
|
declare const ThemesContext: React.Context<ThemesContextState | null>;
|
|
17
18
|
declare function useThemesContext(): ThemesContextState;
|
|
@@ -3,6 +3,7 @@ import type { Placement } from "@floating-ui/react";
|
|
|
3
3
|
import type { CSSUnit } from "../types/CSSUnit";
|
|
4
4
|
type TooltipSize = 24 | 32 | 36 | 44;
|
|
5
5
|
type WidthValue = CSSUnit | "0" | `calc(${string})` | number | "auto";
|
|
6
|
+
type TooltipVariant = "inherit" | "dark" | "light";
|
|
6
7
|
interface TooltipRootPropsBase {
|
|
7
8
|
size?: TooltipSize | `${TooltipSize}`;
|
|
8
9
|
position?: Placement;
|
|
@@ -12,9 +13,10 @@ interface TooltipRootPropsBase {
|
|
|
12
13
|
open?: boolean;
|
|
13
14
|
onOpenChange?: (open: boolean) => void;
|
|
14
15
|
zIndex?: number | `${number}`;
|
|
16
|
+
variant?: TooltipVariant;
|
|
15
17
|
}
|
|
16
18
|
interface TooltipRootProps extends TooltipRootPropsBase {
|
|
17
19
|
children: React.ReactNode;
|
|
18
20
|
}
|
|
19
21
|
declare const TooltipRoot: React.FC<TooltipRootProps>;
|
|
20
|
-
export { TooltipRoot, type TooltipRootPropsBase, type TooltipRootProps };
|
|
22
|
+
export { TooltipRoot, type TooltipRootPropsBase, type TooltipRootProps, type TooltipVariant };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TooltipRootPropsBase } from "../TooltipRoot";
|
|
2
|
-
declare const useTooltip: ({ size, position, withArrow, width, defaultOpen, open: controlledOpen, onOpenChange: setControlledOpen, zIndex, }?: TooltipRootPropsBase) => {
|
|
2
|
+
declare const useTooltip: ({ size, position, withArrow, width, defaultOpen, open: controlledOpen, onOpenChange: setControlledOpen, zIndex, variant, }?: TooltipRootPropsBase) => {
|
|
3
3
|
placement: import("@floating-ui/utils").Placement;
|
|
4
4
|
strategy: import("@floating-ui/utils").Strategy;
|
|
5
5
|
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
@@ -50,5 +50,6 @@ declare const useTooltip: ({ size, position, withArrow, width, defaultOpen, open
|
|
|
50
50
|
open: boolean;
|
|
51
51
|
setOpen: ((open: boolean) => void) | undefined;
|
|
52
52
|
zIndex: number | `${number}`;
|
|
53
|
+
variant: import("../TooltipRoot").TooltipVariant;
|
|
53
54
|
};
|
|
54
55
|
export { useTooltip };
|