@touchtech/baselayer-ui 6.0.1 → 7.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.
|
@@ -3,9 +3,9 @@ import { Size } from "../../types";
|
|
|
3
3
|
declare type IconButtonProps = {
|
|
4
4
|
className?: string;
|
|
5
5
|
containerRef?: RefObject<HTMLButtonElement>;
|
|
6
|
+
children?: ReactNode;
|
|
6
7
|
src: string;
|
|
7
8
|
alt: string;
|
|
8
|
-
badgeContent?: ReactNode;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
inverted?: boolean;
|
|
11
11
|
noShadow?: boolean;
|
|
@@ -17,5 +17,5 @@ declare type IconButtonProps = {
|
|
|
17
17
|
type?: "submit" | "reset" | "button";
|
|
18
18
|
offsetSides?: Array<"top" | "right" | "bottom" | "left">;
|
|
19
19
|
};
|
|
20
|
-
declare function IconButton({ className, containerRef, src, alt,
|
|
20
|
+
declare function IconButton({ className, containerRef, children, src, alt, offsetSides, onClick, disabled, inverted, noShadow, noBorder, transparent, rounded, size, type, }: IconButtonProps): JSX.Element;
|
|
21
21
|
export default IconButton;
|
|
@@ -6,7 +6,7 @@ declare type IconButtonLinkProps = {
|
|
|
6
6
|
containerRef?: RefObject<HTMLElement>;
|
|
7
7
|
src: string;
|
|
8
8
|
alt: string;
|
|
9
|
-
|
|
9
|
+
children?: ReactNode;
|
|
10
10
|
className?: string;
|
|
11
11
|
inverted?: boolean;
|
|
12
12
|
rounded?: boolean;
|
|
@@ -17,5 +17,5 @@ declare type IconButtonLinkProps = {
|
|
|
17
17
|
offsetSides?: Array<OffsetSide>;
|
|
18
18
|
disabled?: boolean;
|
|
19
19
|
} | any;
|
|
20
|
-
declare function IconButtonLink({ as: Component, containerRef, className, src, alt,
|
|
20
|
+
declare function IconButtonLink({ as: Component, containerRef, children, className, src, alt, inverted, noShadow, noBorder, transparent, rounded, offsetSides, disabled, size, ...props }: IconButtonLinkProps): JSX.Element;
|
|
21
21
|
export default IconButtonLink;
|