diff --git a/src/core/primitives/textInput/textInput.tsx b/src/core/primitives/textInput/textInput.tsx index 9a8acd18a..a1f8e5b09 100644 --- a/src/core/primitives/textInput/textInput.tsx +++ b/src/core/primitives/textInput/textInput.tsx @@ -1,28 +1,28 @@ -import {CloseIcon} from '@sanity/icons' -import {ThemeFontWeightKey} from '@sanity/ui/theme' -import {forwardRef, isValidElement, useCallback, useImperativeHandle, useMemo, useRef} from 'react' -import {isValidElementType} from 'react-is' -import {styled} from 'styled-components' -import {EMPTY_RECORD} from '../../constants' -import {useArrayProp, useCustomValidity} from '../../hooks' +import { CloseIcon } from '@sanity/icons' +import { ThemeFontWeightKey } from '@sanity/ui/theme' +import { forwardRef, isValidElement, useCallback, useImperativeHandle, useMemo, useRef } from 'react' +import { isValidElementType } from 'react-is' +import { styled } from 'styled-components' +import { EMPTY_RECORD } from '../../constants' +import { useArrayProp, useCustomValidity } from '../../hooks' import { + responsiveInputPaddingStyle, responsiveRadiusStyle, ResponsiveRadiusStyleProps, - responsiveInputPaddingStyle, - TextInputInputStyleProps, - TextInputRepresentationStyleProps, - TextInputResponsivePaddingStyleProps, textInputBaseStyle, textInputFontSizeStyle, + TextInputInputStyleProps, textInputRepresentationStyle, + TextInputRepresentationStyleProps, + TextInputResponsivePaddingStyleProps, textInputRootStyle, } from '../../styles/internal' -import {useRootTheme} from '../../theme' -import {Radius} from '../../types' -import {Box} from '../box' -import {Button, ButtonProps} from '../button' -import {Card} from '../card' -import {Text} from '../text' +import { useRootTheme } from '../../theme' +import { Radius } from '../../types' +import { Box } from '../box' +import { Button, ButtonProps } from '../button' +import { Card } from '../card' +import { Text } from '../text' /** * @public @@ -34,6 +34,7 @@ export type TextInputClearButtonProps = Omit & * @public */ export type TextInputType = + | 'search' | 'date' | 'datetime-local' | 'email'