import { __extends } from "tslib";
import * as React from 'react';
import { Calendar, DayOfWeek, DateRangeType, defaultDayPickerStrings } from '@uifabric/date-time';
import * as styles from './Calendar.Example.scss';
var CalendarInlineOverlayedMonthExample = /** @class */ (function (_super) {
    __extends(CalendarInlineOverlayedMonthExample, _super);
    function CalendarInlineOverlayedMonthExample(props) {
        var _this = _super.call(this, props) || this;
        _this._onSelectDate = function (date) {
            _this.setState(function (prevState) {
                return {
                    selectedDate: date,
                };
            });
        };
        _this.state = {
            selectedDate: new Date(),
        };
        return _this;
    }
    CalendarInlineOverlayedMonthExample.prototype.render = function () {
        return (React.createElement("div", { className: styles.wrapper },
            React.createElement("div", null,
                "Selected date(s):",
                ' ',
                React.createElement("span", null, !this.state.selectedDate ? 'Not set' : this.state.selectedDate.toLocaleString())),
            React.createElement(Calendar, { showMonthPickerAsOverlay: true, highlightCurrentMonth: false, highlightSelectedMonth: true, dateRangeType: DateRangeType.Day, showGoToToday: false, onSelectDate: this._onSelectDate, value: this.state.selectedDate, firstDayOfWeek: DayOfWeek.Sunday, strings: defaultDayPickerStrings })));
    };
    return CalendarInlineOverlayedMonthExample;
}(React.Component));
export { CalendarInlineOverlayedMonthExample };
//# sourceMappingURL=Calendar.Inline.OverlayedMonthPicker.Example.js.map