{"version":3,"file":"InputText.cjs","sources":["../../../../lib/atoms/InputText/InputText.tsx"],"sourcesContent":["import { getParentSelectors } from '@/utils/helpers';\nimport React from 'react';\n\n/**\n * Props for text input\n */\nexport interface IInputTextProps extends React.ComponentPropsWithoutRef<'input'> {\n  /**\n   * Class name overrides for input.\n   */\n  className?: string;\n}\n\nconst InputText: React.FC<IInputTextProps> = ({ className, ...rest }) => {\n  const sharedInputStyle = `input py-2 px-3 ${getParentSelectors(className)}`;\n\n  const getClassName = () => {\n    return `${sharedInputStyle}`;\n  };\n\n  return <input type='text' className={getClassName()} {...(rest as IInputTextProps)} />;\n};\n\nexport default InputText;\n"],"names":["InputText","className","rest","sharedInputStyle","getParentSelectors","getClassName","_jsx"],"mappings":"4LAaMA,EAAuC,CAAC,CAAE,UAAAC,EAAW,GAAGC,KAAU,CACtE,MAAMC,EAAmB,mBAAmBC,EAAmB,mBAAAH,CAAS,CAAC,GAEnEI,EAAe,IACZ,GAAGF,CAAgB,GAGrB,OAAAG,EAAA,IAAO,QAAA,CAAA,KAAK,OAAO,UAAWD,EAAc,EAAA,GAAOH,CAAA,CAAwB,CACpF"}