1 | import React, { Component } from 'react';
|
2 | import { KnobControlConfig, KnobControlProps } from './types';
|
3 | declare type CheckboxesTypeKnobValue = string[];
|
4 | export interface CheckboxesTypeKnob extends KnobControlConfig<CheckboxesTypeKnobValue> {
|
5 | options: Record<string, string>;
|
6 | }
|
7 | interface CheckboxesTypeProps extends KnobControlProps<CheckboxesTypeKnobValue>, CheckboxesWrapperProps {
|
8 | knob: CheckboxesTypeKnob;
|
9 | }
|
10 | interface CheckboxesTypeState {
|
11 | values: CheckboxesTypeKnobValue;
|
12 | }
|
13 | interface CheckboxesWrapperProps {
|
14 | isInline: boolean;
|
15 | }
|
16 | export default class CheckboxesType extends Component<CheckboxesTypeProps, CheckboxesTypeState> {
|
17 | static defaultProps: CheckboxesTypeProps;
|
18 | static propTypes: {
|
19 | knob: React.Validator<CheckboxesTypeKnob>;
|
20 | onChange: React.Validator<(value: CheckboxesTypeKnobValue) => CheckboxesTypeKnobValue>;
|
21 | isInline: React.Validator<boolean>;
|
22 | };
|
23 | static serialize: (value: CheckboxesTypeKnobValue) => CheckboxesTypeKnobValue;
|
24 | static deserialize: (value: CheckboxesTypeKnobValue) => CheckboxesTypeKnobValue;
|
25 | constructor(props: CheckboxesTypeProps);
|
26 | private handleChange;
|
27 | private renderCheckboxList;
|
28 | private renderCheckbox;
|
29 | render(): JSX.Element;
|
30 | }
|
31 | export {};
|