UNPKG

chowa

Version:

UI component library based on React

34 lines (33 loc) 990 B
/** * @license chowa v1.1.3 * * Copyright (c) Chowa Techonlogies Co.,Ltd.(http://www.chowa.cn). * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import * as React from 'react'; import { HSB } from './tool'; export interface ColorAdjustmentProps { value: string; mode: 'rgb' | 'hex' | 'hsl'; alpha: boolean; onChange: (color: string) => void; recommend: string[]; determinable: boolean; onConfirm: () => void; clearable: boolean; } export interface ColorAdjustmentState { result: HSB; } declare class ColorAdjustment extends React.PureComponent<ColorAdjustmentProps, ColorAdjustmentState> { constructor(props: ColorAdjustmentProps); private onConfrimHandler; private onClearHandler; componentDidUpdate(preProps: ColorAdjustmentProps): void; private onChangHandler; private hsbToStr; render(): JSX.Element; } export default ColorAdjustment;