@assemble-inc/core
Advanced tools
Comparing version
# @asm/core | ||
## 0.4.51 | ||
### Patch Changes | ||
- built repo | ||
## 0.4.50 | ||
@@ -4,0 +10,0 @@ |
import React from 'react'; | ||
import { IconProps } from "./Icon"; | ||
type DataAttributeKey = `data-${string}`; | ||
interface HTMLAttributes extends React.HTMLAttributes<any> { | ||
[dataAttribute: DataAttributeKey]: any; | ||
} | ||
export type ButtonAsButtonProps = { | ||
@@ -37,3 +41,5 @@ type?: 'button' | 'submit'; | ||
primary?: boolean; | ||
dataAttribute?: HTMLAttributes; | ||
}; | ||
export declare const Button: ({ type, element, className, childClassName, clickArea, tabIndex, ariaLabel, download, id, href, rel, onClick, disabled, target, children, style, basic, primary, icon, iconSize, iconColor }: ButtonTypes & (ButtonAsButtonProps | ButtonAsAnchorProps)) => JSX.Element; | ||
export declare const Button: ({ type, element, className, childClassName, clickArea, tabIndex, ariaLabel, download, id, href, rel, onClick, disabled, target, children, style, basic, primary, icon, iconSize, iconColor, dataAttribute }: ButtonTypes & (ButtonAsButtonProps | ButtonAsAnchorProps)) => JSX.Element; | ||
export {}; |
@@ -18,9 +18,10 @@ import React, { ReactNode } from 'react'; | ||
step?: number; | ||
icon?: string | ReactNode; | ||
iconLeft?: string | ReactNode; | ||
iconRight?: string | ReactNode; | ||
iconColor?: string; | ||
loading?: boolean; | ||
iconPosition?: 'left' | 'right'; | ||
onKeyDown?: any; | ||
style?: React.CSSProperties; | ||
onClick?: (event: React.MouseEvent) => void; | ||
onIconClick?: (event: React.MouseEvent) => void; | ||
disabled?: boolean; | ||
@@ -30,2 +31,2 @@ required?: boolean; | ||
}; | ||
export declare const Input: ({ type, className, disabled, required, labelHidden, placeholder, id, onChange, onClick, loading, value, label, labelClassName, error, errorClassName, style, icon, iconPosition, iconColor, min, max, step, ...rest }: InputProps) => JSX.Element; | ||
export declare const Input: ({ type, className, disabled, required, labelHidden, placeholder, id, onChange, onClick, onIconClick, loading, value, label, labelClassName, error, errorClassName, style, iconLeft, iconRight, iconColor, min, max, step, ...rest }: InputProps) => JSX.Element; |
@@ -10,2 +10,3 @@ import React from 'react'; | ||
style?: React.CSSProperties; | ||
onClick?: (event: React.MouseEvent) => void; | ||
}; | ||
@@ -22,3 +23,3 @@ export type SvgProps = { | ||
}; | ||
export declare const Icon: ({ as, className, color, name, rotate, size, ariaLabel, ariaHidden, children, style, ...rest }: IconProps & (SvgProps | IProps)) => JSX.Element; | ||
export declare const Icon: ({ as, className, color, name, rotate, size, ariaLabel, ariaHidden, children, style, onClick, ...rest }: IconProps & (SvgProps | IProps)) => JSX.Element; | ||
export default Icon; |
{ | ||
"name": "@assemble-inc/core", | ||
"version": "0.4.50", | ||
"version": "0.4.51", | ||
"description": "Assemble Component Library", | ||
@@ -5,0 +5,0 @@ "author": "Assemble Frontend Team", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
696843
0.1%12114
0.09%