@yuntijs/ui
Version:
☁️ Yunti UI - an open-source UI component library for building Cloud Native web apps
24 lines • 2.76 kB
JavaScript
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
import { createStyles } from 'antd-style';
export var useStyles = createStyles(function (_ref, _ref2) {
var css = _ref.css,
token = _ref.token,
prefixCls = _ref.prefixCls;
var borderedBottom = _ref2.borderedBottom,
borderedBottomDashed = _ref2.borderedBottomDashed,
borderedTop = _ref2.borderedTop,
borderedTopDashed = _ref2.borderedTopDashed,
size = _ref2.size;
var descriptionsContentPadding = {
small: "".concat(token.paddingXS, "px ").concat(token.padding, "px"),
middle: "".concat(token.padding, "px ").concat(token.paddingLG, "px"),
default: "".concat(token.paddingSM, "px ").concat(token.paddingLG, "px")
};
var hasCustomSizeStyle = borderedBottom || borderedBottomDashed;
return {
custom: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", "-descriptions-item-content {\n align-items: center !important;\n }\n .", "-descriptions-row > td {\n padding-top: 8px !important;\n padding-bottom: 8px !important;\n }\n ", "\n ", "\n ", "\n ", "\n ", "\n "])), prefixCls, prefixCls, hasCustomSizeStyle && size && css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .", "-descriptions-item-label, .", "-descriptions-item-content {\n padding: ", ";\n }\n .", "-descriptions-item {\n padding-bottom: 0 !important;\n }\n table {\n border-spacing: 0 !important;\n }\n "])), prefixCls, prefixCls, descriptionsContentPadding[size], prefixCls), borderedBottom && css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n .", "-descriptions-item {\n border-bottom: 1px solid ", ";\n }\n "])), prefixCls, token.colorSplit), borderedBottomDashed && css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n .", "-descriptions-item {\n border-bottom: 1px dashed ", ";\n }\n "])), prefixCls, token.colorSplit), borderedTop && css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n .", "-descriptions-item {\n border-top: 1px solid ", ";\n }\n "])), prefixCls, token.colorSplit), borderedTopDashed && css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n .", "-descriptions-item {\n border-top: 1px dashed ", ";\n }\n "])), prefixCls, token.colorSplit))
};
}, {
hashPriority: 'low'
});