'use client'; import { InputLike, type InputLikeProps } from '../InputLike/InputLike'; /* eslint-disable jsdoc/require-jsdoc */ export interface NumberInputLikeProps extends Omit { value?: number | string; maxValue?: number; minValue?: number; } const stringifyValue = ( value: NumberInputLikeProps['value'], length: number, ): string | undefined => { if (value === undefined) { return undefined; } if (typeof value === 'string') { return value; } return String(value).padStart(length, '0'); }; export const NumberInputLike: React.FC = ({ value, length, minValue, maxValue, readOnly, disabled, label, onKeyDown, 'aria-label': ariaLabel, ...restProps }) => { const stringValue = stringifyValue(value, length); return ( ); };