@gusarov-studio/rubik-ui 3.7.0 → 3.8.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.
@@ -1,7 +1,7 @@
1
- import type React from "react";
1
+ import { type ReactNode } from "react";
2
2
  interface AvatarContextValue {
3
- indicator?: React.ReactNode;
3
+ indicator?: ReactNode;
4
4
  }
5
- declare const AvatarContext: React.Context<AvatarContextValue | undefined>;
5
+ declare const AvatarContext: import("react").Context<AvatarContextValue | undefined>;
6
6
  declare const useAvatarContext: () => AvatarContextValue;
7
7
  export { AvatarContext, type AvatarContextValue, useAvatarContext };
package/dist/Box/Box.d.ts CHANGED
@@ -31,5 +31,5 @@ interface BoxProps extends React.HTMLAttributes<HTMLDivElement>, StyleProps {
31
31
  variant?: "transparent" | "primary" | "secondary";
32
32
  className?: string;
33
33
  }
34
- declare const Box: React.MemoExoticComponent<React.ForwardRefExoticComponent<BoxProps & React.RefAttributes<HTMLDivElement>>>;
34
+ declare const Box: React.NamedExoticComponent<BoxProps & React.RefAttributes<HTMLDivElement>>;
35
35
  export { Box, type BoxProps, type StyleProps };
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import type { BrandIconGlyphProps } from "./types";
3
- import type { BrandIconGlyph } from "./glyphs";
3
+ import { type BrandIconGlyph } from "./glyphs";
4
4
  import "./BrandIcon.scss";
5
5
  export interface BrandIconProps extends BrandIconGlyphProps {
6
6
  glyph: BrandIconGlyph;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import type { GlyphProps } from "./types";
3
- import type { IconGlyph } from "./glyphs";
3
+ import { type IconGlyph } from "./glyphs";
4
4
  import "./Icon.scss";
5
5
  export interface IconProps extends GlyphProps {
6
6
  glyph: IconGlyph;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import "./IconButton.scss";
3
- import type { IconGlyph } from "../Icon";
4
- import type { BrandIconGlyph } from "../BrandIcon";
3
+ import { type IconGlyph } from "../Icon";
4
+ import { type BrandIconGlyph } from "../BrandIcon";
5
5
  interface IconButtonPropsBase extends React.ButtonHTMLAttributes<HTMLButtonElement> {
6
6
  variant?: "accent" | "primary" | "secondary" | "branded";
7
7
  size?: "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "56";
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
- import * as SliderPrimitive from "@radix-ui/react-slider";
2
+ import type { SliderProps } from "@radix-ui/react-slider";
3
3
  import "./InputSlider.scss";
4
- interface InputSliderProps extends SliderPrimitive.SliderProps {
4
+ interface InputSliderProps extends SliderProps {
5
5
  defaultValue: number[];
6
6
  indeterminate?: boolean;
7
7
  }
@@ -14,5 +14,6 @@ type ThemesProviderProps = React.PropsWithChildren<{
14
14
  defaultTheme?: string;
15
15
  }>;
16
16
  declare const ThemesContext: React.Context<ThemesContext>;
17
+ declare function useThemesContext(): ThemesContext;
17
18
  declare function ThemesProvider(props: ThemesProviderProps): React.JSX.Element;
18
- export { ThemesContext, ThemesProvider };
19
+ export { ThemesContext, ThemesProvider, useThemesContext };