UNPKG

@welcome-ui/utils

Version:

Customizable design system with react • styled-components • styled-system and ariakit.

22 lines (21 loc) 670 B
import { css } from '@xstyled/styled-components'; type FieldIconSizes = { lg: 'sm'; md: 'sm'; sm: 'sm'; xs: 'xs'; }; export declare const FIELD_ICON_SIZE: FieldIconSizes; export type Size = 'xs' | 'sm' | 'md' | 'lg'; export type FieldIconSize = 'xs' | 'sm'; export type DefaultFieldStylesProps = Partial<{ hasIcon?: boolean; iconPlacement?: 'right' | 'left' | 'both'; isClearable?: boolean; size: Size; transparent?: boolean; variant: 'danger' | 'success' | 'warning'; }>; type DefaultFieldStyles = (args: DefaultFieldStylesProps) => ReturnType<typeof css>; export declare const defaultFieldStyles: DefaultFieldStyles; export {};