@gusarov-studio/rubik-ui 1.3.0 → 1.5.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.
Files changed (40) hide show
  1. package/dist/Badge/Badge.d.ts +11 -0
  2. package/dist/Badge/index.d.ts +1 -0
  3. package/dist/BrandIcon/BrandIcon.d.ts +7 -5
  4. package/dist/BrandIcon/glyphs/AngelList.d.ts +4 -0
  5. package/dist/BrandIcon/glyphs/Apple.d.ts +4 -0
  6. package/dist/BrandIcon/glyphs/ChatGPT3.d.ts +4 -0
  7. package/dist/BrandIcon/glyphs/ChatGPT4.d.ts +4 -0
  8. package/dist/BrandIcon/glyphs/Claude.d.ts +4 -0
  9. package/dist/BrandIcon/glyphs/Clubhouse.d.ts +4 -0
  10. package/dist/BrandIcon/glyphs/Discord.d.ts +4 -0
  11. package/dist/BrandIcon/glyphs/Dribbble.d.ts +4 -0
  12. package/dist/BrandIcon/glyphs/Facebook.d.ts +4 -0
  13. package/dist/BrandIcon/glyphs/Figma.d.ts +4 -0
  14. package/dist/BrandIcon/glyphs/Gemini.d.ts +4 -0
  15. package/dist/BrandIcon/glyphs/GitHub.d.ts +4 -0
  16. package/dist/BrandIcon/glyphs/Google.d.ts +4 -0
  17. package/dist/BrandIcon/glyphs/Instagram.d.ts +4 -0
  18. package/dist/BrandIcon/glyphs/LinkedIn.d.ts +4 -0
  19. package/dist/BrandIcon/glyphs/Pinterest.d.ts +4 -0
  20. package/dist/BrandIcon/glyphs/Reddit.d.ts +4 -0
  21. package/dist/BrandIcon/glyphs/Signal.d.ts +4 -0
  22. package/dist/BrandIcon/glyphs/Snapchat.d.ts +4 -0
  23. package/dist/BrandIcon/glyphs/Telegram.d.ts +4 -0
  24. package/dist/BrandIcon/glyphs/TikTok.d.ts +4 -0
  25. package/dist/BrandIcon/glyphs/Tumblr.d.ts +4 -0
  26. package/dist/BrandIcon/glyphs/Twitter.d.ts +4 -0
  27. package/dist/BrandIcon/glyphs/XTwitter.d.ts +4 -0
  28. package/dist/BrandIcon/glyphs/YouTube.d.ts +4 -0
  29. package/dist/BrandIcon/glyphs/index.d.ts +30 -0
  30. package/dist/BrandIcon/types.d.ts +4 -2
  31. package/dist/Text/Text.d.ts +1 -1
  32. package/dist/index.d.ts +1 -0
  33. package/dist/index.js +1 -1
  34. package/dist/index.js.map +1 -1
  35. package/dist/tsconfig.declarations.tsbuildinfo +1 -1
  36. package/package.json +1 -1
  37. package/dist/BrandIcon/brands/Gemini.d.ts +0 -4
  38. package/dist/BrandIcon/brands/Google.d.ts +0 -4
  39. package/dist/BrandIcon/brands/OpenAI.d.ts +0 -4
  40. package/dist/BrandIcon/brands/index.d.ts +0 -2
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import "./Badge.scss";
3
+ interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
4
+ variant?: "subtle" | "outline" | "solid" | "soft";
5
+ size?: "20" | "24" | "32";
6
+ appearance?: "gray" | "brand" | "error" | "warning" | "success" | "gray-blue" | "blue-light" | "blue" | "indigo" | "purple" | "pink" | "orange" | "white" | "black" | "inverted";
7
+ onDelete?: (e?: React.MouseEvent<HTMLButtonElement>) => void;
8
+ children?: React.ReactNode;
9
+ }
10
+ declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
11
+ export { Badge };
@@ -0,0 +1 @@
1
+ export * from "./Badge";
@@ -1,8 +1,10 @@
1
1
  import React from "react";
2
- import type { BrandGlyph } from "./types";
3
- interface BrandIconProps extends Omit<BrandGlyph, "size"> {
4
- glyph: string;
5
- size?: number | string;
2
+ import type { BrandIconGlyphProps } from "./types";
3
+ import type { BrandIconGlyph } from "./glyphs";
4
+ import "./BrandIcon.scss";
5
+ export interface BrandIconProps extends BrandIconGlyphProps {
6
+ glyph: BrandIconGlyph;
7
+ appearance?: "primary" | "secondary" | "accent" | "inherit";
6
8
  }
7
9
  declare const BrandIcon: React.ForwardRefExoticComponent<BrandIconProps & React.RefAttributes<SVGSVGElement>>;
8
- export { BrandIcon };
10
+ export { BrandIcon, type BrandIconGlyph };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BrandIconGlyphProps } from "../types";
3
+ declare const AngelList: React.ForwardRefExoticComponent<BrandIconGlyphProps & React.RefAttributes<SVGSVGElement>>;
4
+ export { AngelList };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BrandIconGlyphProps } from "../types";
3
+ declare const Apple: React.ForwardRefExoticComponent<BrandIconGlyphProps & React.RefAttributes<SVGSVGElement>>;
4
+ export { Apple };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BrandIconGlyphProps } from "../types";
3
+ declare const ChatGPT3: React.ForwardRefExoticComponent<BrandIconGlyphProps & React.RefAttributes<SVGSVGElement>>;
4
+ export { ChatGPT3 };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BrandIconGlyphProps } from "../types";
3
+ declare const ChatGPT4: React.ForwardRefExoticComponent<BrandIconGlyphProps & React.RefAttributes<SVGSVGElement>>;
4
+ export { ChatGPT4 };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BrandIconGlyphProps } from "../types";
3
+ declare const Claude: React.ForwardRefExoticComponent<BrandIconGlyphProps & React.RefAttributes<SVGSVGElement>>;
4
+ export { Claude };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BrandIconGlyphProps } from "../types";
3
+ declare const Clubhouse: React.ForwardRefExoticComponent<BrandIconGlyphProps & React.RefAttributes<SVGSVGElement>>;
4
+ export { Clubhouse };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BrandIconGlyphProps } from "../types";
3
+ declare const Discord: React.ForwardRefExoticComponent<BrandIconGlyphProps & React.RefAttributes<SVGSVGElement>>;
4
+ export { Discord };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BrandIconGlyphProps } from "../types";
3
+ declare const Dribbble: React.ForwardRefExoticComponent<BrandIconGlyphProps & React.RefAttributes<SVGSVGElement>>;
4
+ export { Dribbble };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BrandIconGlyphProps } from "../types";
3
+ declare const Facebook: React.ForwardRefExoticComponent<BrandIconGlyphProps & React.RefAttributes<SVGSVGElement>>;
4
+ export { Facebook };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BrandIconGlyphProps } from "../types";
3
+ declare const Figma: React.ForwardRefExoticComponent<BrandIconGlyphProps & React.RefAttributes<SVGSVGElement>>;
4
+ export { Figma };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BrandIconGlyphProps } from "../types";
3
+ declare const Gemini: React.ForwardRefExoticComponent<BrandIconGlyphProps & React.RefAttributes<SVGSVGElement>>;
4
+ export { Gemini };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BrandIconGlyphProps } from "../types";
3
+ declare const GitHub: React.ForwardRefExoticComponent<BrandIconGlyphProps & React.RefAttributes<SVGSVGElement>>;
4
+ export { GitHub };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BrandIconGlyphProps } from "../types";
3
+ declare const Google: React.ForwardRefExoticComponent<BrandIconGlyphProps & React.RefAttributes<SVGSVGElement>>;
4
+ export { Google };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BrandIconGlyphProps } from "../types";
3
+ declare const Instagram: React.ForwardRefExoticComponent<BrandIconGlyphProps & React.RefAttributes<SVGSVGElement>>;
4
+ export { Instagram };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BrandIconGlyphProps } from "../types";
3
+ declare const LinkedIn: React.ForwardRefExoticComponent<BrandIconGlyphProps & React.RefAttributes<SVGSVGElement>>;
4
+ export { LinkedIn };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BrandIconGlyphProps } from "../types";
3
+ declare const Pinterest: React.ForwardRefExoticComponent<BrandIconGlyphProps & React.RefAttributes<SVGSVGElement>>;
4
+ export { Pinterest };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BrandIconGlyphProps } from "../types";
3
+ declare const Reddit: React.ForwardRefExoticComponent<BrandIconGlyphProps & React.RefAttributes<SVGSVGElement>>;
4
+ export { Reddit };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BrandIconGlyphProps } from "../types";
3
+ declare const Signal: React.ForwardRefExoticComponent<BrandIconGlyphProps & React.RefAttributes<SVGSVGElement>>;
4
+ export { Signal };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BrandIconGlyphProps } from "../types";
3
+ declare const Snapchat: React.ForwardRefExoticComponent<BrandIconGlyphProps & React.RefAttributes<SVGSVGElement>>;
4
+ export { Snapchat };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BrandIconGlyphProps } from "../types";
3
+ declare const Telegram: React.ForwardRefExoticComponent<BrandIconGlyphProps & React.RefAttributes<SVGSVGElement>>;
4
+ export { Telegram };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BrandIconGlyphProps } from "../types";
3
+ declare const TikTok: React.ForwardRefExoticComponent<BrandIconGlyphProps & React.RefAttributes<SVGSVGElement>>;
4
+ export { TikTok };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BrandIconGlyphProps } from "../types";
3
+ declare const Tumblr: React.ForwardRefExoticComponent<BrandIconGlyphProps & React.RefAttributes<SVGSVGElement>>;
4
+ export { Tumblr };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BrandIconGlyphProps } from "../types";
3
+ declare const Twitter: React.ForwardRefExoticComponent<BrandIconGlyphProps & React.RefAttributes<SVGSVGElement>>;
4
+ export { Twitter };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BrandIconGlyphProps } from "../types";
3
+ declare const XTwitter: React.ForwardRefExoticComponent<BrandIconGlyphProps & React.RefAttributes<SVGSVGElement>>;
4
+ export { XTwitter };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BrandIconGlyphProps } from "../types";
3
+ declare const YouTube: React.ForwardRefExoticComponent<BrandIconGlyphProps & React.RefAttributes<SVGSVGElement>>;
4
+ export { YouTube };
@@ -0,0 +1,30 @@
1
+ export declare const glyphs: {
2
+ facebook: import("react").ForwardRefExoticComponent<import("../types").BrandIconGlyphProps & import("react").RefAttributes<SVGSVGElement>>;
3
+ x: import("react").ForwardRefExoticComponent<import("../types").BrandIconGlyphProps & import("react").RefAttributes<SVGSVGElement>>;
4
+ twitter: import("react").ForwardRefExoticComponent<import("../types").BrandIconGlyphProps & import("react").RefAttributes<SVGSVGElement>>;
5
+ instagram: import("react").ForwardRefExoticComponent<import("../types").BrandIconGlyphProps & import("react").RefAttributes<SVGSVGElement>>;
6
+ linkedin: import("react").ForwardRefExoticComponent<import("../types").BrandIconGlyphProps & import("react").RefAttributes<SVGSVGElement>>;
7
+ google: import("react").ForwardRefExoticComponent<import("../types").BrandIconGlyphProps & import("react").RefAttributes<SVGSVGElement>>;
8
+ youtube: import("react").ForwardRefExoticComponent<import("../types").BrandIconGlyphProps & import("react").RefAttributes<SVGSVGElement>>;
9
+ apple: import("react").ForwardRefExoticComponent<import("../types").BrandIconGlyphProps & import("react").RefAttributes<SVGSVGElement>>;
10
+ snapchat: import("react").ForwardRefExoticComponent<import("../types").BrandIconGlyphProps & import("react").RefAttributes<SVGSVGElement>>;
11
+ pinterest: import("react").ForwardRefExoticComponent<import("../types").BrandIconGlyphProps & import("react").RefAttributes<SVGSVGElement>>;
12
+ github: import("react").ForwardRefExoticComponent<import("../types").BrandIconGlyphProps & import("react").RefAttributes<SVGSVGElement>>;
13
+ figma: import("react").ForwardRefExoticComponent<import("../types").BrandIconGlyphProps & import("react").RefAttributes<SVGSVGElement>>;
14
+ dribbble: import("react").ForwardRefExoticComponent<import("../types").BrandIconGlyphProps & import("react").RefAttributes<SVGSVGElement>>;
15
+ reddit: import("react").ForwardRefExoticComponent<import("../types").BrandIconGlyphProps & import("react").RefAttributes<SVGSVGElement>>;
16
+ discord: import("react").ForwardRefExoticComponent<import("../types").BrandIconGlyphProps & import("react").RefAttributes<SVGSVGElement>>;
17
+ "tik-tok": import("react").ForwardRefExoticComponent<import("../types").BrandIconGlyphProps & import("react").RefAttributes<SVGSVGElement>>;
18
+ tumblr: import("react").ForwardRefExoticComponent<import("../types").BrandIconGlyphProps & import("react").RefAttributes<SVGSVGElement>>;
19
+ telegram: import("react").ForwardRefExoticComponent<import("../types").BrandIconGlyphProps & import("react").RefAttributes<SVGSVGElement>>;
20
+ clubhouse: import("react").ForwardRefExoticComponent<import("../types").BrandIconGlyphProps & import("react").RefAttributes<SVGSVGElement>>;
21
+ signal: import("react").ForwardRefExoticComponent<import("../types").BrandIconGlyphProps & import("react").RefAttributes<SVGSVGElement>>;
22
+ "angel-list": import("react").ForwardRefExoticComponent<import("../types").BrandIconGlyphProps & import("react").RefAttributes<SVGSVGElement>>;
23
+ "chat-gpt-3": import("react").ForwardRefExoticComponent<import("../types").BrandIconGlyphProps & import("react").RefAttributes<SVGSVGElement>>;
24
+ "chat-gpt-4": import("react").ForwardRefExoticComponent<import("../types").BrandIconGlyphProps & import("react").RefAttributes<SVGSVGElement>>;
25
+ gemini: import("react").ForwardRefExoticComponent<import("../types").BrandIconGlyphProps & import("react").RefAttributes<SVGSVGElement>>;
26
+ claude: import("react").ForwardRefExoticComponent<import("../types").BrandIconGlyphProps & import("react").RefAttributes<SVGSVGElement>>;
27
+ };
28
+ export type BrandIconGlyph = keyof typeof glyphs;
29
+ declare function getGlyph(glyph: BrandIconGlyph): import("react").ForwardRefExoticComponent<import("../types").BrandIconGlyphProps & import("react").RefAttributes<SVGSVGElement>>;
30
+ export { getGlyph };
@@ -1,4 +1,6 @@
1
1
  import type React from "react";
2
- export interface BrandGlyph extends React.SVGAttributes<SVGElement> {
3
- size: number | string;
2
+ export interface BrandIconGlyphProps extends React.SVGAttributes<SVGElement> {
3
+ children?: never;
4
+ variant?: "branded" | "solid";
5
+ size?: number;
4
6
  }
@@ -7,7 +7,7 @@ interface TextProps extends React.HTMLAttributes<TextElement> {
7
7
  htmlFor?: string;
8
8
  block?: boolean;
9
9
  truncate?: boolean;
10
- size?: "regular-xxs" | "regular-xs" | "regular-sm" | "regular-md" | "regular-lg" | "regular-xl";
10
+ size?: "regular-xxs" | "regular-xs" | "regular-sm" | "regular-md" | "regular-lg" | "regular-xl" | "display-xs" | "display-sm" | "display-md" | "display-lg" | "display-xl" | "display-xxl";
11
11
  weight?: "regular" | "medium" | "semibold" | "bold";
12
12
  appearance?: "default" | "error" | "inherit" | "white";
13
13
  }
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import "./styles.scss";
2
2
  export * as Accordion from "./Accordion";
3
3
  export * from "./Alert";
4
+ export * from "./Badge";
4
5
  export * from "./Box";
5
6
  export * from "./BrandIcon";
6
7
  export * from "./Button";