@assemble-inc/core
Advanced tools
Comparing version
@@ -21,2 +21,3 @@ import React from 'react'; | ||
iconSize?: IconProps['size']; | ||
iconColor?: string; | ||
style?: React.CSSProperties; | ||
@@ -26,2 +27,2 @@ basic?: boolean; | ||
}; | ||
export declare const Button: ({ type, element, className, childClassName, tabIndex, hidden, ariaLabel, download, id, href, onClick, disabled, target, children, style, basic, primary, icon, iconSize }: ButtonTypes) => JSX.Element; | ||
export declare const Button: ({ type, element, className, childClassName, tabIndex, hidden, ariaLabel, download, id, href, onClick, disabled, target, children, style, basic, primary, icon, iconSize, iconColor }: ButtonTypes) => JSX.Element; |
@@ -19,2 +19,4 @@ import React, { ReactNode } from 'react'; | ||
icon?: string | ReactNode; | ||
iconColor?: string; | ||
applyColor?: 'fill' | 'stroke'; | ||
loading?: boolean; | ||
@@ -30,2 +32,2 @@ iconPosition?: 'left' | 'right'; | ||
}; | ||
export declare const Input: ({ type, className, disabled, required, labelHidden, placeholder, id, name, onChange, onClick, loading, value, label, labelClassName, error, errorClassName, style, icon, iconPosition, min, max, step, ...rest }: InputProps) => JSX.Element; | ||
export declare const Input: ({ type, className, disabled, required, labelHidden, placeholder, id, name, onChange, onClick, loading, value, label, labelClassName, error, errorClassName, style, icon, iconPosition, iconColor, applyColor, min, max, step, ...rest }: InputProps) => JSX.Element; |
import React from 'react'; | ||
export type IconProps = { | ||
as?: string; | ||
className?: string; | ||
color?: string; | ||
name: string; | ||
color: string; | ||
rotate?: number; | ||
size?: 'mini' | 'tiny' | 'small' | 'large' | 'big' | 'huge' | 'massive'; | ||
['aria-label']?: string; | ||
['aria-hidden']?: string; | ||
ariaLabel?: string; | ||
ariaHidden?: boolean; | ||
style?: React.CSSProperties; | ||
}; | ||
export declare const Icon: ({ as, className, color, name, rotate, size, "aria-label": ariaLabel, "aria-hidden": ariaHidden, ...rest }: IconProps) => React.DOMElement<any, Element>; | ||
export type SvgProps = { | ||
name?: never; | ||
as?: never; | ||
applyColor?: 'fill' | 'stroke'; | ||
children: React.ReactNode; | ||
}; | ||
export type IProps = { | ||
name: string; | ||
as?: string; | ||
applyColor?: never; | ||
children?: never; | ||
}; | ||
export declare const Icon: ({ as, className, color, applyColor, name, rotate, size, ariaLabel, ariaHidden, children, style, ...rest }: IconProps & (SvgProps | IProps)) => JSX.Element; | ||
export default Icon; |
{ | ||
"name": "@assemble-inc/core", | ||
"version": "0.4.31", | ||
"version": "0.4.32", | ||
"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
731045
0.15%12919
0.24%