@gusarov-studio/rubik-ui 31.5.2 → 31.6.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.
@@ -7,10 +7,12 @@ type TextSize = 8 | 10 | 12 | 13 | 14 | 16 | 18 | 20 | 22 | 24 | 26 | 28 | 30 |
7
7
  type TextElement = HTMLSpanElement | HTMLHeadingElement | HTMLLabelElement;
8
8
  type TextWeight = "inherit" | "thin" | "extra-light" | "light" | "regular" | "medium" | "semibold" | "bold" | "extra-bold" | "black" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
9
9
  type TextAlign = "inherit" | "start" | "center" | "end" | "justify";
10
+ type MaxWidth = string | number;
10
11
  interface TextProps extends React.HTMLAttributes<TextElement> {
11
12
  size?: ResponsiveValue<TextSize | `${TextSize}`>;
12
13
  weight?: ResponsiveValue<TextWeight>;
13
14
  align?: ResponsiveValue<TextAlign>;
15
+ maxWidth?: ResponsiveValue<MaxWidth>;
14
16
  color?: NamedColor | Color;
15
17
  block?: boolean;
16
18
  truncate?: boolean;