{"version":3,"file":"TextInput.cjs","sources":["../../../src/components/TextInput/TextInput.tsx"],"sourcesContent":["import { BoxProps, ElementProps, factory, Factory, StylesApiProps, useProps } from '../../core';\nimport { __BaseInputProps, __InputStylesNames } from '../Input';\nimport { InputBase } from '../InputBase';\n\nexport interface TextInputProps\n  extends BoxProps,\n    __BaseInputProps,\n    StylesApiProps<TextInputFactory>,\n    ElementProps<'input', 'size'> {}\n\nexport type TextInputFactory = Factory<{\n  props: TextInputProps;\n  ref: HTMLInputElement;\n  stylesNames: __InputStylesNames;\n}>;\n\nconst defaultProps: Partial<TextInputProps> = {};\n\nexport const TextInput = factory<TextInputFactory>((props, ref) => {\n  const _props = useProps('TextInput', defaultProps, props);\n\n  return <InputBase component=\"input\" ref={ref} {..._props} __staticSelector=\"TextInput\" />;\n});\n\nTextInput.classes = InputBase.classes;\nTextInput.displayName = '@raikou/core/TextInput';\n"],"names":["factory","useProps","jsx","InputBase"],"mappings":";;;;;;;;;;;;;AAgBA,MAAM,eAAwC,EAAC;AAExC,MAAM,SAAY,GAAAA,eAAA,CAA0B,CAAC,KAAA,EAAO,GAAQ,KAAA;AACjE,EAAA,MAAM,MAAS,GAAAC,iBAAA,CAAS,WAAa,EAAA,YAAA,EAAc,KAAK,CAAA;AAExD,EAAO,uBAAAC,cAAA,CAACC,uBAAU,SAAU,EAAA,OAAA,EAAQ,KAAW,GAAG,MAAA,EAAQ,kBAAiB,WAAY,EAAA,CAAA;AACzF,CAAC;AAED,SAAA,CAAU,UAAUA,mBAAU,CAAA,OAAA;AAC9B,SAAA,CAAU,WAAc,GAAA,wBAAA;;;;"}