@flatbiz/antd
Version:
37 lines (33 loc) • 1.29 kB
JavaScript
/*! @flatjs/forge MIT @flatbiz/antd */
import { b as _objectSpread2 } from './_rollupPluginBabelHelpers-BspM60Sw.js';
import { classNames } from '@dimjs/utils/class-names/class-names';
import _QuestionCircleOutlined from '@ant-design/icons/es/icons/QuestionCircleOutlined.js';
import { Flex } from 'antd';
import { jsx, jsxs } from 'react/jsx-runtime';
var TipsTitle = function TipsTitle(props) {
if (props.hidden) return null;
var helpElement = props.helpIcon ? props.helpIcon : props.onHelp ? /*#__PURE__*/jsx(_QuestionCircleOutlined, {
onClick: props.onHelp
}) : null;
return /*#__PURE__*/jsxs("div", {
className: classNames('tips-title', {
'tips-title-small': props.size === 'small'
}, props.className),
style: _objectSpread2(_objectSpread2({}, props.style), {}, {
'--v-border-color': props.borderColor
}),
children: [/*#__PURE__*/jsxs(Flex, {
className: "tips-title-title",
children: [/*#__PURE__*/jsx("span", {
style: props.titleStyle,
children: props.title
}), helpElement]
}), /*#__PURE__*/jsx("div", {
className: "tips-title-content",
style: props.contentStyle,
children: props.children
})]
});
};
export { TipsTitle as T };
//# sourceMappingURL=tips-title-B6qZn_zc.js.map