2024-01-29 09:26:07 +08:00
|
|
|
"use strict";
|
|
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
|
|
};
|
|
|
|
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 seemly_1 = require("seemly");
|
|
|
|
const styles_1 = require("../../input/styles");
|
|
|
|
const common_1 = require("../../_styles/common");
|
|
|
|
const styles_2 = require("../../button/styles");
|
|
|
|
const styles_3 = require("../../time-picker/styles");
|
|
|
|
const styles_4 = require("../../_internal/scrollbar/styles");
|
|
|
|
const _mixins_1 = require("../../_mixins");
|
2024-08-02 18:19:39 +08:00
|
|
|
const _common_1 = __importDefault(require("./_common"));
|
|
|
|
function self(vars) {
|
2024-01-29 09:26:07 +08:00
|
|
|
const { hoverColor, fontSize, textColor2, textColorDisabled, popoverColor, primaryColor, borderRadiusSmall, iconColor, iconColorDisabled, textColor1, dividerColor, boxShadow2, borderRadius, fontWeightStrong } = vars;
|
|
|
|
return Object.assign(Object.assign({}, _common_1.default), { itemFontSize: fontSize, calendarDaysFontSize: fontSize, calendarTitleFontSize: fontSize, itemTextColor: textColor2, itemTextColorDisabled: textColorDisabled, itemTextColorActive: popoverColor, itemTextColorCurrent: primaryColor, itemColorIncluded: (0, seemly_1.changeColor)(primaryColor, { alpha: 0.1 }), itemColorHover: hoverColor, itemColorDisabled: hoverColor, itemColorActive: primaryColor, itemBorderRadius: borderRadiusSmall, panelColor: popoverColor, panelTextColor: textColor2, arrowColor: iconColor, calendarTitleTextColor: textColor1, calendarTitleColorHover: hoverColor, calendarDaysTextColor: textColor2, panelHeaderDividerColor: dividerColor, calendarDaysDividerColor: dividerColor, calendarDividerColor: dividerColor, panelActionDividerColor: dividerColor, panelBoxShadow: boxShadow2, panelBorderRadius: borderRadius, calendarTitleFontWeight: fontWeightStrong, scrollItemBorderRadius: borderRadius, iconColor,
|
|
|
|
iconColorDisabled });
|
2024-08-02 18:19:39 +08:00
|
|
|
}
|
2024-01-29 09:26:07 +08:00
|
|
|
const datePickerLight = (0, _mixins_1.createTheme)({
|
|
|
|
name: 'DatePicker',
|
|
|
|
common: common_1.commonLight,
|
|
|
|
peers: {
|
|
|
|
Input: styles_1.inputLight,
|
|
|
|
Button: styles_2.buttonLight,
|
|
|
|
TimePicker: styles_3.timePickerLight,
|
|
|
|
Scrollbar: styles_4.scrollbarLight
|
|
|
|
},
|
2024-08-02 18:19:39 +08:00
|
|
|
self
|
2024-01-29 09:26:07 +08:00
|
|
|
});
|
|
|
|
exports.default = datePickerLight;
|