@gusarov-studio/rubik-ui 3.13.0 → 3.15.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.
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { type IconGlyph } from "../Icon";
3
+ import "./FeatureIcon.scss";
4
+ interface FeatureIconProps extends React.HTMLAttributes<HTMLSpanElement> {
5
+ glyph: IconGlyph;
6
+ size?: "32" | "40" | "48" | "56";
7
+ appearance?: "soft" | "solid" | "outline";
8
+ variant?: "accent" | "primary" | "gray" | "danger" | "warning" | "success";
9
+ }
10
+ declare const FeatureIcon: React.ForwardRefExoticComponent<FeatureIconProps & React.RefAttributes<HTMLSpanElement>>;
11
+ export { FeatureIcon, type FeatureIconProps };
@@ -0,0 +1,3 @@
1
+ import { sizeMapper } from "./sizeMapper";
2
+ import { strokeWidthMapper } from "./strokeWidthMapper";
3
+ export { sizeMapper, strokeWidthMapper };
@@ -0,0 +1,7 @@
1
+ declare const sizeMapper: {
2
+ "32": string;
3
+ "40": string;
4
+ "48": string;
5
+ "56": string;
6
+ };
7
+ export { sizeMapper };
@@ -0,0 +1,7 @@
1
+ declare const strokeWidthMapper: {
2
+ "32": string;
3
+ "40": string;
4
+ "48": string;
5
+ "56": string;
6
+ };
7
+ export { strokeWidthMapper };
@@ -0,0 +1 @@
1
+ export * from "./FeatureIcon";
@@ -0,0 +1 @@
1
+ export { Resizable, type ResizableProps, type ResizeDirection, type Enable, type HandleStyles, type HandleClassName, type Size, type NumberSize, type HandleComponent, type ResizeCallback, type ResizeStartCallback, } from "re-resizable";
@@ -3,7 +3,7 @@ export declare const defaultThemes: {
3
3
  light: string;
4
4
  dark: string;
5
5
  };
6
- interface ThemesContext {
6
+ interface ThemesContextState {
7
7
  currentTheme: string;
8
8
  invertedTheme: string;
9
9
  toggleTheme: () => void;
@@ -13,7 +13,7 @@ interface ThemesContext {
13
13
  type ThemesProviderProps = React.PropsWithChildren<{
14
14
  defaultTheme?: string;
15
15
  }>;
16
- declare const ThemesContext: React.Context<ThemesContext>;
17
- declare function useThemesContext(): ThemesContext;
16
+ declare const ThemesContext: React.Context<ThemesContextState | null>;
17
+ declare function useThemesContext(): ThemesContextState;
18
18
  declare function ThemesProvider(props: ThemesProviderProps): React.JSX.Element;
19
19
  export { ThemesContext, ThemesProvider, useThemesContext };
package/dist/index.d.ts CHANGED
@@ -9,6 +9,7 @@ export * from "./BrandIcon";
9
9
  export * from "./Button";
10
10
  export * from "./Clickable";
11
11
  export * from "./CloseButton";
12
+ export * from "./FeatureIcon";
12
13
  export * from "./Icon";
13
14
  export * from "./IconButton";
14
15
  export * from "./InputSlider";
@@ -19,4 +20,5 @@ export * from "./Textarea";
19
20
  export * from "./ThemesProvider";
20
21
  export * from "./Tooltip";
21
22
  export * from "./ModalsManager";
23
+ export * from "./Resizable";
22
24
  export * from "./utils";