|
|
|
@ -55,8 +55,8 @@ export const InputNumber: FC<InputNumberProps> = (props) => {
|
|
|
|
return <div className={classNames('flex', wrapClassName)}>
|
|
|
|
return <div className={classNames('flex', wrapClassName)}>
|
|
|
|
<Input {...rest}
|
|
|
|
<Input {...rest}
|
|
|
|
// disable default controller
|
|
|
|
// disable default controller
|
|
|
|
type='text'
|
|
|
|
type='number'
|
|
|
|
className={classNames('rounded-r-none', className)}
|
|
|
|
className={classNames('no-spinner rounded-r-none', className)}
|
|
|
|
value={value}
|
|
|
|
value={value}
|
|
|
|
max={max}
|
|
|
|
max={max}
|
|
|
|
min={min}
|
|
|
|
min={min}
|
|
|
|
@ -77,8 +77,8 @@ export const InputNumber: FC<InputNumberProps> = (props) => {
|
|
|
|
size={size}
|
|
|
|
size={size}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<div className={classNames(
|
|
|
|
<div className={classNames(
|
|
|
|
'flex flex-col bg-components-input-bg-normal rounded-r-md border-l border-divider-subtle text-text-tertiary focus:shadow-xs',
|
|
|
|
'flex flex-col rounded-r-md border-l border-divider-subtle bg-components-input-bg-normal text-text-tertiary focus:shadow-xs',
|
|
|
|
disabled && 'opacity-50 cursor-not-allowed',
|
|
|
|
disabled && 'cursor-not-allowed opacity-50',
|
|
|
|
controlWrapClassName)}
|
|
|
|
controlWrapClassName)}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<button
|
|
|
|
<button
|
|
|
|
|