@flatbiz/antd
Version:
38 lines (34 loc) • 1.31 kB
JavaScript
/*! @flatjs/forge MIT @flatbiz/antd */
import { b as _objectSpread2 } from './_rollupPluginBabelHelpers-BYm17lo8.js';
import { classNames } from '@dimjs/utils/class-names/class-names';
import _QuestionCircleOutlined from '@ant-design/icons/es/icons/QuestionCircleOutlined.js';
import { Space } 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(Space, {
className: "tips-title-title",
size: 5,
direction: "horizontal",
children: [/*#__PURE__*/jsx("span", {
style: props.titleStyle,
children: props.title
}), helpElement]
}), /*#__PURE__*/jsx("div", {
className: "tips-title-content",
children: props.children
})]
});
};
export { TipsTitle as T };
//# sourceMappingURL=tips-title-DWwc8kJv.js.map