import { Box, InputBase, FormControl as MuiFormControl } from '@mui/material'; import { inputBaseClasses } from '@mui/material/InputBase'; import { styled } from '@mui/material/styles'; export const maxInputFontSize = 24; export const minInputFontSize = 14; export const FormContainer = styled(Box)(({ theme }) => ({ display: 'flex', alignItems: 'center', padding: theme.spacing(2), })); export const FormControl = styled(MuiFormControl)(({ theme }) => ({ height: 40, })); export const Input = styled(InputBase)(({ theme }) => ({ fontSize: 24, fontWeight: 700, boxShadow: 'none', lineHeight: 1.5, [`.${inputBaseClasses.input}`]: { height: 24, padding: theme.spacing(0, 0, 0, 2), }, '& input[type="number"]::-webkit-outer-spin-button, & input[type="number"]::-webkit-inner-spin-button': { WebkitAppearance: 'none', margin: 0, }, '& input[type="number"]': { MozAppearance: 'textfield', }, [`&.${inputBaseClasses.disabled}`]: { color: 'inherit', }, [`.${inputBaseClasses.input}.${inputBaseClasses.disabled}`]: { WebkitTextFillColor: 'unset', }, }));