UNPKG

@ant-design/x

Version:

Craft AI-driven interfaces effortlessly

57 lines (56 loc) 1.72 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; const genSenderHeaderStyle = token => { const { componentCls, calc } = token; const headerCls = `${componentCls}-header`; return { [componentCls]: { [headerCls]: { borderBottomWidth: token.lineWidth, borderBottomStyle: 'solid', borderBottomColor: token.colorBorder, // ======================== Header ======================== '&-header': { background: token.colorFillAlter, fontSize: token.fontSize, lineHeight: token.lineHeight, paddingBlock: calc(token.paddingSM).sub(token.lineWidthBold).equal(), paddingInlineStart: token.padding, paddingInlineEnd: token.paddingXS, display: 'flex', borderRadius: { _skip_check_: true, value: calc(token.borderRadius).mul(2).equal() }, borderEndStartRadius: 0, borderEndEndRadius: 0, [`${headerCls}-title`]: { flex: 'auto' } }, // ======================= Content ======================== '&-content': { padding: token.padding }, // ======================== Motion ======================== '&-motion': { transition: ['height', 'border'].map(prop => `${prop} ${token.motionDurationSlow}`).join(','), overflow: 'hidden', '&-enter-start, &-leave-active': { borderBottomColor: 'transparent' }, '&-hidden': { display: 'none' } } } } }; }; var _default = exports.default = genSenderHeaderStyle;