UNPKG

@handie/squirtle

Version:

Widgets for Handie-React

11 lines (10 loc) 562 B
import { jsx as _jsx } from "react/jsx-runtime"; import { getControl } from 'handie-react'; import { StringFieldStructuralWidget } from 'handie-react/dist/widgets/class'; import { getStringInputtableControlProps } from '../../../../utils'; export default class PasswordEditStringFieldWidget extends StringFieldStructuralWidget { render() { const Password = getControl('Password'); return Password ? (_jsx(Password, Object.assign({}, getStringInputtableControlProps(this), { onInput: value => this.onChange(value) }), void 0)) : null; } }