@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
1 lines • 1.12 kB
Source Map (JSON)
{"version":3,"file":"InputOPT.mjs","names":["AntInput"],"sources":["../../src/Input/InputOPT.tsx"],"sourcesContent":["'use client';\n\nimport { Input as AntInput } from 'antd';\nimport { cx, useThemeMode } from 'antd-style';\nimport { memo } from 'react';\n\nimport { variantsOPT } from './style';\nimport type { InputOPTProps } from './type';\n\nconst InputOPT = memo<InputOPTProps>(({ ref, variant, shadow, className, ...rest }) => {\n const { isDarkMode } = useThemeMode();\n\n return (\n <AntInput.OTP\n className={cx(\n variantsOPT({ shadow, variant: variant || (isDarkMode ? 'filled' : 'outlined') }),\n className,\n )}\n ref={ref}\n variant={variant || (isDarkMode ? 'filled' : 'outlined')}\n {...rest}\n />\n );\n});\n\nInputOPT.displayName = 'InputOPT';\n\nexport default InputOPT;\n"],"mappings":";;;;;;;;;AASA,MAAM,WAAW,MAAqB,EAAE,KAAK,SAAS,QAAQ,WAAW,GAAG,WAAW;CACrF,MAAM,EAAE,eAAe,cAAc;AAErC,QACE,oBAACA,MAAS;EACR,WAAW,GACT,YAAY;GAAE;GAAQ,SAAS,YAAY,aAAa,WAAW;GAAa,CAAC,EACjF,UACD;EACI;EACL,SAAS,YAAY,aAAa,WAAW;EAC7C,GAAI;GACJ;EAEJ;AAEF,SAAS,cAAc;AAEvB,uBAAe"}