import { SystemStyleObject } from '@styled-system/css'; import React from 'react'; import { Base, SxProp } from './Base'; import { ForwardRefComponent } from './polymorphic'; import { common, CommonSystemProps, forwardSystemProps } from './system-props'; const defaultElement = 'span'; type Variant = 'default' | 'warning' | 'success'; type Size = 'small' | 'large'; export type LabelProps = SxProp & CommonSystemProps & { variant?: Variant; size?: Size; }; type LabelComponent = ForwardRefComponent; const variants: Record = { default: { color: 'text.primary', borderColor: 'label.border', }, warning: { color: 'label.warning.text', borderColor: 'label.warning.border', }, success: { color: 'label.success.text', borderColor: 'label.success.border', }, }; const sizes: Record = { small: { paddingX: '6px', lineHeight: '18px', }, large: { paddingX: '10px', lineHeight: '22px', }, }; export const Label = React.forwardRef( ( { as = defaultElement, variant = 'default', size = 'small', ...props }, ref ) => { return ( ); } ) as LabelComponent;