@launchpad-ui/button
Advanced tools
Comparing version 0.7.3 to 0.7.4
@@ -0,1 +1,2 @@ | ||
import type { IconProps } from '@launchpad-ui/icons'; | ||
import type { ButtonHTMLAttributes, ReactElement } from 'react'; | ||
@@ -10,7 +11,3 @@ import './styles/Button.css'; | ||
disabled?: boolean; | ||
icon?: ReactElement<{ | ||
size?: string; | ||
key: string; | ||
'aria-hidden': boolean; | ||
}>; | ||
icon?: ReactElement<IconProps>; | ||
renderIconFirst?: boolean; | ||
@@ -27,7 +24,3 @@ asChild?: boolean; | ||
disabled?: boolean | undefined; | ||
icon?: ReactElement<{ | ||
size?: string | undefined; | ||
key: string; | ||
'aria-hidden': boolean; | ||
}, string | import("react").JSXElementConstructor<any>> | undefined; | ||
icon?: ReactElement<IconProps, string | import("react").JSXElementConstructor<any>> | undefined; | ||
renderIconFirst?: boolean | undefined; | ||
@@ -34,0 +27,0 @@ asChild?: boolean | undefined; |
@@ -1,11 +0,7 @@ | ||
import type { ButtonProps } from './Button'; | ||
import type { IconProps } from '@launchpad-ui/icons'; | ||
import type { ButtonHTMLAttributes, ReactElement } from 'react'; | ||
import './styles/Button.css'; | ||
declare type IconButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & { | ||
kind?: ButtonProps['kind']; | ||
icon: ReactElement<{ | ||
size?: string; | ||
key: string; | ||
'aria-hidden': boolean; | ||
}>; | ||
kind?: 'default' | 'primary' | 'destructive' | 'minimal' | 'close'; | ||
icon: ReactElement<IconProps>; | ||
size?: 'small' | 'normal'; | ||
@@ -17,8 +13,4 @@ 'aria-label': string; | ||
declare const IconButton: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & { | ||
kind?: ButtonProps['kind']; | ||
icon: ReactElement<{ | ||
size?: string; | ||
key: string; | ||
'aria-hidden': boolean; | ||
}>; | ||
kind?: "default" | "close" | "primary" | "destructive" | "minimal" | undefined; | ||
icon: ReactElement<IconProps>; | ||
size?: "small" | "normal" | undefined; | ||
@@ -25,0 +17,0 @@ 'aria-label': string; |
@@ -31,3 +31,4 @@ import './style.css'; | ||
size: icon.props.size || "small", | ||
"aria-hidden": true | ||
"aria-hidden": true, | ||
className: cx(icon.props.className, "Button-icon") | ||
}); | ||
@@ -184,3 +185,4 @@ const getFinalChildren = (c) => [renderIconFirst && renderIcon, isLoading && /* @__PURE__ */ jsx("span", { | ||
size: icon.props.size || "medium", | ||
"aria-hidden": true | ||
"aria-hidden": true, | ||
className: cx(icon.props.className, "Button-icon") | ||
}); | ||
@@ -187,0 +189,0 @@ const renderChildren = () => { |
@@ -33,3 +33,4 @@ require('./style.css'); | ||
size: icon.props.size || "small", | ||
"aria-hidden": true | ||
"aria-hidden": true, | ||
className: classix.cx(icon.props.className, "Button-icon") | ||
}); | ||
@@ -186,3 +187,4 @@ const getFinalChildren = (c) => [renderIconFirst && renderIcon, isLoading && /* @__PURE__ */ jsxRuntime.jsx("span", { | ||
size: icon.props.size || "medium", | ||
"aria-hidden": true | ||
"aria-hidden": true, | ||
className: classix.cx(icon.props.className, "Button-icon") | ||
}); | ||
@@ -189,0 +191,0 @@ const renderChildren = () => { |
{ | ||
"name": "@launchpad-ui/button", | ||
"version": "0.7.3", | ||
"version": "0.7.4", | ||
"status": "beta", | ||
@@ -29,2 +29,3 @@ "publishConfig": { | ||
"dependencies": { | ||
"@launchpad-ui/icons": "~0.5.8", | ||
"@launchpad-ui/tokens": "~0.1.5", | ||
@@ -31,0 +32,0 @@ "@radix-ui/react-slot": "^1.0.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
72288
6
1138
+ Added@launchpad-ui/icons@~0.5.8
+ Added@launchpad-ui/icons@0.5.9(transitive)
+ Added@launchpad-ui/tokens@0.2.0(transitive)