import type { ColorMode } from '@chakra-ui/react'; import type { Size, ChakraStylesConfig } from 'chakra-react-select'; import type { Option } from './types'; import theme from 'theme'; import getFormStyles from 'theme/utils/getFormStyles'; function getValueContainerStyles(size?: Size) { switch (size) { case 'sm': case 'md': { return { paddingLeft: 4, }; } case 'lg': { return { paddingLeft: 6, }; } default: { return {}; } } } function getSingleValueStyles(size?: Size) { switch (size) { case 'sm': case 'md': { return { top: '26px', }; } case 'lg': { return { top: '38px', }; } default: { return {}; } } } const getChakraStyles: (colorMode: ColorMode) => ChakraStylesConfig