UNPKG

@chayns-components/date

Version:

A set of beautiful React components for developing your own applications with chayns.

65 lines (64 loc) 2.01 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _MonthYearPickers = _interopRequireDefault(require("../../month-year-pickers/MonthYearPickers")); var _DayWrapper = _interopRequireDefault(require("./day-wrapper/DayWrapper")); var _Month = require("./Month.styles"); var _WeekdayWrapper = _interopRequireDefault(require("./weekday-wrapper/WeekdayWrapper")); function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } const Month = ({ month, year, locale, highlightedDates, selectedDate, onSelect, categories, height, minDate, maxDate, customThumbColors, shouldShowHighlightsInMonthOverlay, type, hoveringDay, setHoveringDay, disabledDates, setCurrentDate, displayIndex, showMonthYearPickers }) => /*#__PURE__*/_react.default.createElement(_Month.StyledMonth, { $height: height }, /*#__PURE__*/_react.default.createElement(_Month.StyledMonthHead, null, /*#__PURE__*/_react.default.createElement(_MonthYearPickers.default, { month: month, year: year, locale: locale, minDate: minDate, maxDate: maxDate, setCurrentDate: setCurrentDate, displayIndex: displayIndex, showMonthYearPickers: showMonthYearPickers })), /*#__PURE__*/_react.default.createElement(_WeekdayWrapper.default, { locale: locale }), /*#__PURE__*/_react.default.createElement(_DayWrapper.default, { key: `day-wrapper-${month}`, categories: categories, selectedDate: selectedDate, customThumbColors: customThumbColors, month: month, year: year, onSelect: onSelect, shouldShowHighlightsInMonthOverlay: shouldShowHighlightsInMonthOverlay, highlightedDates: highlightedDates, minDate: minDate, maxDate: maxDate, type: type, hoveringDay: hoveringDay, setHoveringDay: setHoveringDay, disabledDates: disabledDates })); Month.displayName = 'Month'; var _default = exports.default = Month; //# sourceMappingURL=Month.js.map