plot-plan-designer
Version:
Design Editor Tools with React.js + ant.design + fabric.js
58 lines (57 loc) • 1.66 kB
TypeScript
export default IconChooser;
declare class IconChooser extends React.Component<any, any, any> {
static propTypes: {
onChange: PropTypes.Requireable<(...args: any[]) => any>;
icon: PropTypes.Requireable<any>;
};
static defaultProps: {
icon: {
'map-marker-alt': {
changes: string[];
ligatures: any[];
search: {
terms: string[];
};
styles: string[];
unicode: string;
label: string;
svg: {
solid: {
last_modified: number;
raw: string;
viewBox: string[];
width: number;
height: number;
path: string;
};
};
};
};
};
constructor(props: any);
constructor(props: any, context: any);
handlers: {
onOk: () => void;
onCancel: () => void;
onClick: () => void;
onClickIcon: (icon: any) => void;
onSearch: import("lodash").DebouncedFunc<(value: any) => void>;
};
modalHandlers: {
onShow: () => void;
onHide: () => void;
};
state: {
icon: any;
textSearch: string;
visible: boolean;
};
UNSAFE_componentWillReceiveProps(nextProps: any): void;
getPrefix: (style: any) => string;
getIcons: (textSearch: any) => {
[x: string]: any;
}[];
render(): JSX.Element;
}
import React from 'react';
import PropTypes from 'prop-types';