UNPKG

digitinary-ui

Version:

Digitinary UI Library

34 lines (33 loc) 1.94 kB
export type RadioOption = { value: string; label: string; disabled?: boolean; }; export type ButtonType = 'button' | 'submit' | 'reset'; export type InputType = 'text' | 'email' | 'number' | 'password' | 'search'; export type BaseColorType = 'default' | 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning' | 'action' | 'natural'; export type SwitchColorType = Exclude<BaseColorType, 'default' | 'inherit' | 'info' | 'action' | 'natural'>; export type ButtonColorType = Exclude<BaseColorType, 'default' | 'natural'>; export type ChipColorType = Exclude<BaseColorType, 'inherit' | 'action' | 'natural'>; export type RadioColorType = Exclude<BaseColorType, 'inherit' | 'action' | 'info' | 'natural'>; export type AlertColorType = Exclude<BaseColorType, 'default' | 'inherit' | 'primary' | 'secondary' | 'action' | 'natural'>; export type HelperTextColorType = Exclude<BaseColorType, 'inherit' | 'primary' | 'secondary' | 'success' | 'warning' | 'action' | 'natural'>; export type BaseVariantType = 'default' | 'filled' | 'outlined' | 'contained' | 'text' | 'link'; export type AlertVariantType = Exclude<BaseVariantType, 'contained' | 'text' | 'link'>; export type ButtonVariantType = Exclude<BaseVariantType, 'default' | 'filled'>; export type ChipVariantType = Exclude<BaseVariantType, 'default' | 'contained' | 'text' | 'link'>; export type SizeType = 'small' | 'medium' | 'large'; export type PlacementType = 'left' | 'right' | 'top' | 'bottom'; export type HtmlElementsWithDisabledProp = HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement; export type DurationType = 'days' | 'weeks' | 'months' | 'hours'; export type PositionType = 'end' | 'start' | 'top' | 'bottom'; export type periodType = { years?: number; months?: number; days?: number; }; export interface IconProps { height?: string | number; width?: string | number; [key: string]: any; }