43 lines
1.5 KiB
JavaScript
Raw Normal View History

2024-01-29 09:26:07 +08:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
2024-08-02 18:19:39 +08:00
exports.self = self;
2024-01-29 09:26:07 +08:00
const common_1 = require("../../_styles/common");
const styles_1 = require("../../_internal/scrollbar/styles");
const _mixins_1 = require("../../_mixins");
2024-08-02 18:19:39 +08:00
function self(vars) {
2024-01-29 09:26:07 +08:00
const { modalColor, textColor1, textColor2, boxShadow3, lineHeight, fontWeightStrong, dividerColor, closeColorHover, closeColorPressed, closeIconColor, closeIconColorHover, closeIconColorPressed, borderRadius, primaryColorHover } = vars;
return {
bodyPadding: '16px 24px',
2024-08-02 18:19:39 +08:00
borderRadius,
2024-01-29 09:26:07 +08:00
headerPadding: '16px 24px',
footerPadding: '16px 24px',
color: modalColor,
textColor: textColor2,
titleTextColor: textColor1,
titleFontSize: '18px',
titleFontWeight: fontWeightStrong,
boxShadow: boxShadow3,
lineHeight,
headerBorderBottom: `1px solid ${dividerColor}`,
footerBorderTop: `1px solid ${dividerColor}`,
closeIconColor,
closeIconColorHover,
closeIconColorPressed,
closeSize: '22px',
closeIconSize: '18px',
closeColorHover,
closeColorPressed,
closeBorderRadius: borderRadius,
resizableTriggerColorHover: primaryColorHover
};
2024-08-02 18:19:39 +08:00
}
2024-01-29 09:26:07 +08:00
const drawerLight = (0, _mixins_1.createTheme)({
name: 'Drawer',
common: common_1.commonLight,
peers: {
Scrollbar: styles_1.scrollbarLight
},
2024-08-02 18:19:39 +08:00
self
2024-01-29 09:26:07 +08:00
});
exports.default = drawerLight;