UNPKG

react-native-easy-calendar

Version:

Customizable, easy-to-use, performant calendar components for React Native

85 lines (78 loc) 2.1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _DefaultTheme = _interopRequireDefault(require("./DefaultTheme")); var _Colors = _interopRequireDefault(require("./Colors")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } const { dark } = _Colors.default; const CALENDAR_HEIGHT = 315; const DAY_WIDTH_PERCENTAGE = 60 / 7; // 60% of width distributed among 7 weekdays const HORIZONTAL_MARGIN_PERCENT = 40 / (7 * 2); // 40% of margin horizontal distributed among 7 weekdays const DAY_HEIGHT_PERCENTAGE = 95 / 6; const VERTICAL_MARGIN_PERCENT = 5 / 30; const DarkTheme = { ..._DefaultTheme.default, calendarContainer: { flex: 1, minHeight: CALENDAR_HEIGHT, backgroundColor: dark.base }, titleText: { color: dark.baseText, letterSpacing: 0.8, fontSize: 15, fontWeight: '600' }, normalDayText: { color: dark.baseText }, normalMonthText: { textTransform: 'uppercase', fontSize: 12, letterSpacing: 1, color: dark.baseText, alignItems: 'center', textAlign: 'center', fontWeight: '700' }, selectedMonthText: { color: dark.primary }, extraDayText: { color: dark.disabled, fontWeight: '300' }, normalArrowImage: { tintColor: dark.primary }, normalArrowContainer: { backgroundColor: dark.elevation, height: 30, width: 30, borderRadius: 15, justifyContent: 'center', alignItems: 'center' }, selectedDayText: { fontWeight: '700', color: dark.primaryText }, normalDayContainer: { width: "".concat(DAY_WIDTH_PERCENTAGE, "%"), marginHorizontal: "".concat(HORIZONTAL_MARGIN_PERCENT, "%"), height: "".concat(DAY_HEIGHT_PERCENTAGE, "%"), marginVertical: "".concat(VERTICAL_MARGIN_PERCENT, "%"), justifyContent: 'center', alignItems: 'center' }, selectedDayContainer: { backgroundColor: dark.primary, borderRadius: 50 } }; var _default = DarkTheme; exports.default = _default; //# sourceMappingURL=DarkTheme.js.map