@gusarov-studio/rubik-ui 9.4.4 → 9.4.5

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.
@@ -2,9 +2,10 @@ import React from "react";
2
2
  import "./IconButton.scss";
3
3
  import { type IconGlyph } from "../Icon";
4
4
  import { type BrandIconGlyph } from "../BrandIcon";
5
+ type IconButtonSize = 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 56;
5
6
  interface IconButtonPropsBase extends React.ButtonHTMLAttributes<HTMLButtonElement> {
6
7
  variant?: "accent" | "primary" | "secondary" | "branded";
7
- size?: "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "56";
8
+ size?: IconButtonSize | `${IconButtonSize}`;
8
9
  disabled?: boolean;
9
10
  }
10
11
  interface StrokeIcons {
@@ -17,4 +18,4 @@ interface BrandIcons {
17
18
  }
18
19
  type IconButtonProps = IconButtonPropsBase & (StrokeIcons | BrandIcons);
19
20
  declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
20
- export { IconButton, type IconButtonProps };
21
+ export { IconButton, type IconButtonProps, type IconButtonPropsBase };