UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

1 lines 1.41 kB
{"version":3,"file":"TextInput.cjs","names":["factory","InputBase","useProps"],"sources":["../../../src/components/TextInput/TextInput.tsx"],"sourcesContent":["import { BoxProps, ElementProps, factory, Factory, StylesApiProps, useProps } from '../../core';\nimport { __BaseInputProps, __InputStylesNames, InputVariant } from '../Input';\nimport { InputBase } from '../InputBase';\n\nexport interface TextInputProps\n extends\n BoxProps,\n __BaseInputProps,\n StylesApiProps<TextInputFactory>,\n ElementProps<'input', 'size'> {}\n\nexport type TextInputFactory = Factory<{\n props: TextInputProps;\n variant: InputVariant;\n ref: HTMLInputElement;\n stylesNames: __InputStylesNames;\n}>;\n\nexport const TextInput = factory<TextInputFactory>((props) => {\n const _props = useProps(['Input', 'InputWrapper', 'TextInput'], null, props);\n return <InputBase component=\"input\" {..._props} __staticSelector=\"TextInput\" />;\n});\n\nTextInput.classes = InputBase.classes;\nTextInput.displayName = '@mantine/core/TextInput';\n\nexport namespace TextInput {\n export type Props = TextInputProps;\n export type Factory = TextInputFactory;\n}\n"],"mappings":";;;;;;;AAkBA,MAAa,YAAYA,gBAAAA,SAA2B,UAAU;CAE5D,OAAO,iBAAA,GAAA,kBAAA,KAACC,kBAAAA,WAAD;EAAW,WAAU;EAAQ,GADrBC,kBAAAA,SAAS;GAAC;GAAS;GAAgB;EAAW,GAAG,MAAM,KACzB;EAAG,kBAAiB;CAAa,CAAA;AAChF,CAAC;AAED,UAAU,UAAUD,kBAAAA,UAAU;AAC9B,UAAU,cAAc"}