naive-ui
Version:
A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast
36 lines (35 loc) • 1.23 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.self = self;
const styles_1 = require("../../_internal/selection/styles");
const use_theme_1 = require("../../_mixins/use-theme");
const common_1 = require("../../_styles/common");
const styles_2 = require("../../empty/styles");
const styles_3 = require("../../tree/styles");
function self(vars) {
const { popoverColor, boxShadow2, borderRadius, heightMedium, dividerColor, textColor2 } = vars;
return {
menuPadding: '4px',
menuColor: popoverColor,
menuBoxShadow: boxShadow2,
menuBorderRadius: borderRadius,
menuHeight: `calc(${heightMedium} * 7.6)`,
actionDividerColor: dividerColor,
actionTextColor: textColor2,
actionPadding: '8px 12px',
headerDividerColor: dividerColor,
headerTextColor: textColor2,
headerPadding: '8px 12px'
};
}
const treeSelectLight = (0, use_theme_1.createTheme)({
name: 'TreeSelect',
common: common_1.commonLight,
peers: {
Tree: styles_3.treeLight,
Empty: styles_2.emptyLight,
InternalSelection: styles_1.internalSelectionLight
},
self
});
exports.default = treeSelectLight;
;