@gusarov-studio/rubik-ui 31.10.2 → 31.12.0
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/Clickable/Clickable.d.ts +1 -1
- package/dist/Icon/stroke/ChevronSquareDown.d.ts +4 -0
- package/dist/Icon/stroke/ChevronSquareUp.d.ts +4 -0
- package/dist/Icon/stroke/index.d.ts +2 -0
- package/dist/ThemesProvider/ThemesProvider.d.ts +7 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.declarations.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./Clickable.scss";
|
|
3
3
|
interface ClickableProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
4
|
-
onClick?: (e
|
|
4
|
+
onClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
5
5
|
displayType?: "block" | "inline";
|
|
6
6
|
}
|
|
7
7
|
declare const Clickable: React.ForwardRefExoticComponent<ClickableProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -240,6 +240,8 @@ declare const strokeGlyphs: {
|
|
|
240
240
|
"chevron-selector-vertical": import("react").ForwardRefExoticComponent<import("../types").GlyphProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
241
241
|
"chevron-up-double": import("react").ForwardRefExoticComponent<import("../types").GlyphProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
242
242
|
"chevron-up": import("react").ForwardRefExoticComponent<import("../types").GlyphProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
243
|
+
"chevron-square-down": import("react").ForwardRefExoticComponent<import("../types").GlyphProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
244
|
+
"chevron-square-up": import("react").ForwardRefExoticComponent<import("../types").GlyphProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
243
245
|
"chrome-cast": import("react").ForwardRefExoticComponent<import("../types").GlyphProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
244
246
|
"circle-cut": import("react").ForwardRefExoticComponent<import("../types").GlyphProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
245
247
|
circle: import("react").ForwardRefExoticComponent<import("../types").GlyphProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
@@ -15,5 +15,11 @@ type ThemesProviderProps = React.PropsWithChildren<{
|
|
|
15
15
|
}>;
|
|
16
16
|
declare const ThemesContext: React.Context<ThemesContextState | null>;
|
|
17
17
|
declare function useThemesContext(): ThemesContextState;
|
|
18
|
+
declare function useCurrentTheme(): string;
|
|
18
19
|
declare function ThemesProvider(props: ThemesProviderProps): React.JSX.Element;
|
|
19
|
-
|
|
20
|
+
interface ThemeProps extends React.ComponentPropsWithoutRef<"div"> {
|
|
21
|
+
value: string;
|
|
22
|
+
asChild?: boolean;
|
|
23
|
+
}
|
|
24
|
+
declare const Theme: React.FC<ThemeProps>;
|
|
25
|
+
export { ThemesContext, ThemesProvider, useThemesContext, useCurrentTheme, Theme, type ThemesProviderProps, type ThemeProps, };
|