import { Field, FieldConfig, FieldError, IField, FieldInterface } from '../common'; export interface ColorFieldConfig extends FieldConfig, FieldInterface { type: 'color'; mode?: 'rgb' | 'hsl'; } export interface IColorField { value: string; onChange: (value: string) => Promise; readonly: boolean; disabled: boolean; } export default class ColorField extends Field implements IField { reset: () => Promise; validate: (value: string) => Promise; render: () => JSX.Element; }