UNPKG

@handie/squirtle

Version:

Widgets for Handie-React

12 lines (11 loc) 699 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 UrlEditStringFieldWidget extends StringFieldStructuralWidget { render() { const props = Object.assign(Object.assign({}, getStringInputtableControlProps(this)), { scheme: this.config.scheme || 'http', noAuthority: this.config.noAuthority }); const UrlInput = getControl('UrlInput'); return UrlInput ? _jsx(UrlInput, Object.assign({}, props, { onChange: value => this.onChange(value) }), void 0) : null; } }