@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
1 lines • 1.17 kB
Source Map (JSON)
{"version":3,"file":"FormDivider.mjs","names":["FormDivider: FC<FormDividerProps>","AntDivider"],"sources":["../../../src/Form/components/FormDivider.tsx"],"sourcesContent":["'use client';\n\nimport { Divider as AntDivider } from 'antd';\nimport { createStaticStyles, cx } from 'antd-style';\nimport { type FC } from 'react';\n\nimport type { FormDividerProps } from '../type';\n\nconst styles = createStaticStyles(({ css }) => {\n return {\n root: css`\n margin: 0;\n opacity: 0.66;\n `,\n };\n});\n\nconst FormDivider: FC<FormDividerProps> = ({ visible = true, style, className, ...rest }) => {\n return (\n <AntDivider\n className={cx(styles.root, className)}\n style={{\n opacity: visible ? 1 : 0,\n ...style,\n }}\n {...rest}\n />\n );\n};\n\nFormDivider.displayName = 'FormDivider';\n\nexport default FormDivider;\n"],"mappings":";;;;;;;AAQA,MAAM,SAAS,oBAAoB,EAAE,iBAAU;AAC7C,QAAO,EACL,MAAM,KAAG;;;OAIV;EACD;AAEF,MAAMA,eAAqC,EAAE,UAAU,MAAM,OAAO,WAAW,GAAG,WAAW;AAC3F,QACE,oBAACC;EACC,WAAW,GAAG,OAAO,MAAM,UAAU;EACrC,OAAO;GACL,SAAS,UAAU,IAAI;GACvB,GAAG;GACJ;EACD,GAAI;GACJ;;AAIN,YAAY,cAAc;AAE1B,0BAAe"}