import * as Cx from '../../core'; import { FieldProps } from './Field'; interface ColorPickerProps extends FieldProps { /** Either `rgba`, `hsla` or `hex` value of the selected color. */ value?: Cx.StringProp, /** Base CSS class to be applied to the element. Defaults to `colorpicker`. */ baseClass?: string, /** * A string containing the list of all events that cause that selected value is written to the store. * Default value is `blur change` which means that changes are propagated immediately. */ reportOn?: string, /** Format of the color representation. Either `rgba`, `hsla` or `hex`. */ format?: "rgba" | "hsla" | "hex" } export class ColorPicker extends Cx.Widget {}