UNPKG

@intuitionrobotics/thunderstorm

Version:
28 lines 899 B
import * as React from 'react'; import { StorageKey } from '../modules/StorageModule.js'; import { BaseComponent } from '../core/BaseComponent.js'; type State = { isEditing: boolean; storageKey: StorageKey<string>; }; type Props = { inputStyle?: React.CSSProperties; labelStyle?: React.CSSProperties; placeholder?: string; id: string; onAccept: (value: string) => void; value?: string; }; export declare class FieldEditorWithButtons extends BaseComponent<Props, State> { private createStorageKey; constructor(props: Props); componentDidUpdate(prevProps: Readonly<Props>, _prevState: Readonly<State>): void; handleEdit: () => void; handleSave: () => void; handleCancel: () => void; render(): React.JSX.Element; private renderEditButton; private renderControlButtons; } export {}; //# sourceMappingURL=FieldEditorWithButtons.d.ts.map