Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
type,
value,
...props
}) => (
disabled || onChange(event.target.value)}
placeholder={placeholder}
ref={inputRef}
type={type}
value={value}
{...filterDOMProps(props)}
/>
);
Text.defaultProps = {
errorMessage,
fullWidth,
margin,
variant,
...props
}) =>
!error ? (
nothing
) : (
{children || errorMessage}
);
Error.defaultProps = {
const LongText = props =>
wrapField(
props,
<textarea name="{props.name}" id="{props.id}" disabled="{props.disabled}"> props.onChange(event.target.value)}
placeholder={props.placeholder}
ref={props.inputRef}
value={props.value}
{...textAreaProps}
{...filterDOMProps(props)}
/>
);
</textarea>
const Bool = ({
disabled,
id,
inputRef,
label,
name,
onChange,
value,
...props
}) => (
<div>
<input name="{name}" id="{id}" disabled="{disabled}" checked="{value}"> disabled || onChange(!value)}
ref={inputRef}
type="checkbox"
/>
{label && <label>{label}</label>}
</div>
);
export default connectField(Bool);
const fieldIndex = +name.slice(1 + name.lastIndexOf('.'));
const limitNotReached =
!disabled && !(parent.minCount >= parent.value.length);
return (
<span>
limitNotReached &&
parent.onChange(
[]
.concat(parent.value.slice(0, fieldIndex))
.concat(parent.value.slice(1 + fieldIndex))
)
}
{...filterDOMProps(props)}
>
{removeIcon}
</span>
);
};
const ListDel = ({ className, disabled, name, parent, ...props }) => {
const fieldIndex = +name.slice(1 + name.lastIndexOf('.'));
const limitNotReached =
!disabled && !(parent.minCount >= parent.value.length);
return (
<i close="">
limitNotReached &&
parent.onChange(
[]
.concat(parent.value.slice(0, fieldIndex))
.concat(parent.value.slice(1 + fieldIndex))
)
}
/>
);</i>
inputRef,
label,
max,
min,
name,
onChange,
placeholder,
required,
showInlineError,
value,
wrapClassName,
...props
}) => (
<div required="">
{label && <label>{label}</label>}
<div>
</div></div>
const Num_ = ({
decimal,
disabled,
id,
inputRef,
label,
max,
min,
name,
onChange,
placeholder,
step,
value,
...props
}) => (
<div>
{label && <label>{label}</label>}
<input value="{value}" type="number" step="{step" placeholder="{placeholder}" name="{name}" min="{min}" max="{max}" id="{id}" disabled="{disabled}">
</div>
error,
errorMessage,
id,
inputRef,
label,
name,
onChange,
placeholder,
required,
showInlineError,
value,
...props
}) => (
<div required="">
{label && <label>{label}</label>}
<textarea name="{name}" id="{id}" disabled="{disabled}"> onChange(event.target.value)}
placeholder={placeholder}
ref={inputRef}
value={value}
/>
{!!(error && showInlineError) && (
<div className="ui red basic pointing label">{errorMessage}</div>
)}</textarea></div>
render() {
const props = this.getFieldProps();
return props.noDOM ? (
nothing
) : (
<input value="{props.value}" type="hidden" name="{props.name}" id="{props.id}" disabled="{props.disabled}">
);
}
}