@gusarov-studio/rubik-ui 13.0.0 → 14.0.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,10 +1,11 @@
1
1
  import React from "react";
2
- import type { BrandIconGlyphProps } from "./types";
2
+ import type { Color } from "../types/Color";
3
+ import type { BrandIconGlyphProps, NamedColor } from "./types";
3
4
  import { type BrandIconGlyph } from "./glyphs";
4
5
  import "./BrandIcon.scss";
5
6
  export interface BrandIconProps extends BrandIconGlyphProps {
6
7
  glyph: BrandIconGlyph;
7
- variant?: "primary" | "secondary" | "accent" | "inherit";
8
+ color?: NamedColor | Color;
8
9
  }
9
10
  declare const BrandIcon: React.ForwardRefExoticComponent<BrandIconProps & React.RefAttributes<SVGSVGElement>>;
10
11
  export { BrandIcon, type BrandIconGlyph };
@@ -0,0 +1,2 @@
1
+ import { namedColors } from "./namedColors";
2
+ export { namedColors };
@@ -0,0 +1,2 @@
1
+ declare const namedColors: readonly ["primary", "secondary", "accent", "inherit"];
2
+ export { namedColors };
@@ -1,6 +1,9 @@
1
1
  import type React from "react";
2
- export interface BrandIconGlyphProps extends React.SVGAttributes<SVGElement> {
2
+ import type { namedColors } from "./constants";
3
+ interface BrandIconGlyphProps extends React.SVGAttributes<SVGElement> {
3
4
  children?: never;
4
5
  appearance?: "branded" | "solid";
5
6
  size?: string | number;
6
7
  }
8
+ type NamedColor = (typeof namedColors)[number];
9
+ export type { BrandIconGlyphProps, NamedColor };