@gusarov-studio/rubik-ui 6.0.0 → 8.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,9 +1,9 @@
1
1
  import React from "react";
2
2
  import "./Badge.scss";
3
3
  interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
4
- variant?: "subtle" | "outline" | "solid" | "soft";
4
+ appearance?: "subtle" | "outline" | "solid" | "soft";
5
+ variant?: "gray" | "brand" | "error" | "warning" | "success" | "gray-blue" | "blue-light" | "blue" | "indigo" | "purple" | "pink" | "orange" | "white" | "black" | "inverted";
5
6
  size?: "20" | "24" | "28" | "32";
6
- appearance?: "gray" | "brand" | "error" | "warning" | "success" | "gray-blue" | "blue-light" | "blue" | "indigo" | "purple" | "pink" | "orange" | "white" | "black" | "inverted";
7
7
  onDelete?: (e?: React.MouseEvent<HTMLButtonElement>) => void;
8
8
  children?: React.ReactNode;
9
9
  }
@@ -4,7 +4,7 @@ import { type BrandIconGlyph } from "./glyphs";
4
4
  import "./BrandIcon.scss";
5
5
  export interface BrandIconProps extends BrandIconGlyphProps {
6
6
  glyph: BrandIconGlyph;
7
- appearance?: "primary" | "secondary" | "accent" | "inherit";
7
+ variant?: "primary" | "secondary" | "accent" | "inherit";
8
8
  }
9
9
  declare const BrandIcon: React.ForwardRefExoticComponent<BrandIconProps & React.RefAttributes<SVGSVGElement>>;
10
10
  export { BrandIcon, type BrandIconGlyph };
@@ -1,6 +1,6 @@
1
1
  import type React from "react";
2
2
  export interface BrandIconGlyphProps extends React.SVGAttributes<SVGElement> {
3
3
  children?: never;
4
- variant?: "branded" | "solid";
4
+ appearance?: "branded" | "solid";
5
5
  size?: string | number;
6
6
  }
@@ -4,7 +4,7 @@ import { type IconGlyph } from "./glyphs";
4
4
  import "./Icon.scss";
5
5
  interface IconProps extends GlyphProps {
6
6
  glyph: IconGlyph;
7
- appearance?: "inherit" | "primary" | "secondary" | "accent" | "success" | "danger" | "info" | "warning" | "disabled" | "white" | "black" | "placeholder";
7
+ variant?: "inherit" | "primary" | "secondary" | "accent" | "success" | "danger" | "info" | "warning" | "disabled" | "white" | "black" | "placeholder";
8
8
  }
9
9
  declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
10
10
  export { Icon, type IconGlyph, type IconProps };
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import "./InputText.scss";
3
3
  interface InputTextProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "prefix" | "size"> {
4
4
  type?: "text" | "password" | "email" | "search" | "tel" | "url";
5
- variant?: "fill" | "outline";
5
+ appearance?: "fill" | "outline";
6
6
  quiet?: boolean;
7
7
  size?: "24" | "32" | "36" | "40" | "44" | "48";
8
8
  placeholder?: string;
@@ -3,8 +3,9 @@ import "./Text.scss";
3
3
  type TextElement = HTMLSpanElement | HTMLHeadingElement | HTMLLabelElement;
4
4
  interface TextProps extends React.HTMLAttributes<TextElement> {
5
5
  size?: "8" | "10" | "12" | "13" | "14" | "16" | "18" | "20" | "22" | "24" | "26" | "28" | "30" | "32" | "36" | "40" | "48" | "56" | "60" | "64" | "72";
6
- weight?: "regular" | "medium" | "semibold" | "bold";
7
- appearance?: "inherit" | "primary" | "accent" | "info" | "secondary" | "placeholder" | "danger" | "success" | "warning" | "white" | "black" | "disabled";
6
+ weight?: "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
7
+ align?: "start" | "center" | "end" | "justify";
8
+ variant?: "inherit" | "primary" | "accent" | "info" | "secondary" | "muted" | "danger" | "success" | "warning" | "white" | "black" | "disabled";
8
9
  block?: boolean;
9
10
  truncate?: boolean;
10
11
  htmlFor?: string;
@@ -4,7 +4,7 @@ import type { CSSUnit } from "../types/CSSUnit";
4
4
  type WidthValue = CSSUnit | `${number}` | `calc(${string})` | number;
5
5
  type HeightType = "autocalc" | CSSUnit | `${number}` | `calc(${string})` | number;
6
6
  interface TextareaPropsBase extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
7
- variant?: "fill" | "outline";
7
+ appearance?: "fill" | "outline";
8
8
  quiet?: boolean;
9
9
  size?: "24" | "32" | "36" | "40" | "44" | "48";
10
10
  placeholder?: string;