UNPKG

829 BTypeScriptView Raw
1import { C as Component } from './Component-022555dd';
2
3interface ColorPickerOptions {
4 theme?: string;
5 numberOfColors?: number;
6 colors?: Array<string>;
7 defaultColor?: string;
8 isColorValueHidden?: boolean;
9 onSelect?: (colorHex: string) => void;
10 onClick?: (event: any) => void;
11}
12declare class ColorPicker extends Component {
13 private colorPickerElem;
14 private selectedColor;
15 private isColorGridVisible;
16 private componentId;
17 constructor(renderTarget: Element, componentId?: string);
18 render(options?: ColorPickerOptions): void;
19 getSelectedColorValue: () => string;
20 private showColorGrid;
21 hideColorGrid: (withFocusBackToPickerButton?: boolean) => void;
22 private setSelectedColor;
23 getColorPickerElem: () => any;
24}
25
26export { ColorPicker as C };