Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
clearable={false}
value={[{id: valueKey || '', option: valueKey}]}
labelKey="option"
valueKey="id"
onChange={({value}) => {
globalSet(`${enumName || name.toUpperCase()}.${value[0].id}`);
}}
/>
)}
);
case PropTypes.ReactNode:
case PropTypes.Function:
case PropTypes.Array:
case PropTypes.Object:
return (
<label>{name}</label>
{
globalSet(code);
}}
code={val ? String(val) : ''}
placeholder={placeholder}
small
/>
);
case PropTypes.Custom:
return null;
ignoreBoundary: {
value: undefined,
type: PropTypes.Boolean,
description:
'If true, popover element will not avoid element boundaries.',
hidden: true,
},
mountNode: {
value: undefined,
type: PropTypes.String,
description: 'Defines where to mount the popover.',
hidden: true,
},
popperOptions: {
value: undefined,
type: PropTypes.Object,
description:
'Popper options override https://popper.js.org/popper-documentation.html#Popper.Defaults.',
hidden: true,
},
...pick(changeHandlers, [
'onBlur',
'onFocus',
'onEsc',
'onMouseEnter',
'onMouseLeave',
]),
overrides: {
value: undefined,
type: PropTypes.Custom,
description: 'Lets you customize all aspects of the component.',
custom: {
value: undefined,
type: PropTypes.Array,
description: 'A list Array of selectable dates.',
hidden: true,
},
range: {
value: undefined,
type: PropTypes.Boolean,
description: 'Defines if a range of dates can be selected.',
},
positive: inputConfig.props.positive,
error: inputConfig.props.error,
size: inputConfig.props.size,
locale: {
value: undefined,
type: PropTypes.Object,
description:
'A locale object. See date-fns for more details https://github.com/date-fns/date-fns/tree/master/src/locale.',
hidden: true,
},
maxDate: {
value: undefined,
type: PropTypes.Date,
description: 'A max date that is selectable.',
placeholder: '2020-10-17T07:00:00.000Z',
},
minDate: {
value: undefined,
type: PropTypes.Date,
description: 'A min date that is selectable.',
placeholder: '2018-10-17T07:00:00.000Z',
},