Comparing version 0.0.60 to 0.0.61
@@ -5,10 +5,5 @@ import * as React from 'react'; | ||
import * as styles from './styles.css'; | ||
declare type NativeButtonProps = React.AllHTMLAttributes<HTMLButtonElement>; | ||
declare type NativeAnchorProps = React.AllHTMLAttributes<HTMLAnchorElement>; | ||
declare type BaseProps = { | ||
/** Centers text and reserves space for icon and spinner */ | ||
center?: boolean; | ||
children: NativeButtonProps['children']; | ||
/** Marks as unusable */ | ||
disabled?: boolean; | ||
/** Adds ReactNode before children */ | ||
@@ -24,10 +19,5 @@ prefix?: ReactNodeNoStrings; | ||
suffix?: ReactNodeNoStrings; | ||
tabIndex?: NativeButtonProps['tabIndex']; | ||
type?: NativeButtonProps['type']; | ||
variant?: styles.Variant; | ||
width?: BoxProps['width']; | ||
onClick?: React.MouseEventHandler<HTMLElement> | undefined; | ||
onMouseEnter?: React.MouseEventHandler<HTMLElement> | undefined; | ||
onMouseLeave?: React.MouseEventHandler<HTMLElement> | undefined; | ||
}; | ||
} & Pick<JSX.IntrinsicElements['button'], 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'children' | 'disabled' | 'type' | 'tabIndex'>; | ||
declare type WithTone = { | ||
@@ -43,11 +33,5 @@ tone?: styles.Tone; | ||
as?: 'a'; | ||
href?: string; | ||
rel?: NativeAnchorProps['rel']; | ||
target?: NativeAnchorProps['target']; | ||
}; | ||
} & Pick<JSX.IntrinsicElements['a'], 'href' | 'rel' | 'target'>; | ||
declare type WithoutAnchor = { | ||
as?: 'button'; | ||
href?: never; | ||
rel?: never; | ||
target?: never; | ||
}; | ||
@@ -54,0 +38,0 @@ export declare type Props = BaseProps & (WithTone | WithoutTone) & (WithAnchor | WithoutAnchor); |
{ | ||
"name": "degen", | ||
"version": "0.0.60", | ||
"version": "0.0.61", | ||
"description": "Design system for Mirror.xyz", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.cjs.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
2643127
60549