import { forwardRef } from 'react'; import { Box, BoxProps } from '../Box'; import { FieldVariantName } from '../theme'; import { AutoCompleteOptions } from './types'; export type HTMLInputProps = Omit, 'ref' | 'autoComplete' | 'as' | '__themeKey'>; export interface InputPrimitiveProps extends HTMLInputProps { /** * Autocomplete helps to fill an input with device-remembered values. See MDN's documentation on the [attribute and * its values](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#Values). */ autoComplete?: AutoCompleteOptions; 'data-testid'?: string; variant?: FieldVariantName | FieldVariantName[]; } export const InputPrimitive = forwardRef( ( { autoComplete = 'off', 'data-testid': testId, disabled = false, id, name, placeholder, readOnly = false, required, tx, type = 'text', variant = 'field-input-smol', ...restOfProps }: InputPrimitiveProps, forwardedRef, ) => { return ( ); }, ); InputPrimitive.displayName = 'InputPrimitive';