import { __extends } from "tslib";
import * as React from 'react';
import { DatePicker, DayOfWeek, defaultDayPickerStrings } from '@uifabric/date-time';
import './DatePicker.Examples.scss';
var DatePickerRequiredExample = /** @class */ (function (_super) {
    __extends(DatePickerRequiredExample, _super);
    function DatePickerRequiredExample(props) {
        var _this = _super.call(this, props) || this;
        _this.state = {
            firstDayOfWeek: DayOfWeek.Sunday,
        };
        return _this;
    }
    DatePickerRequiredExample.prototype.render = function () {
        var firstDayOfWeek = this.state.firstDayOfWeek;
        return (React.createElement("div", { className: "docs-DatePickerExample" },
            React.createElement("p", null, "Validation will happen when Date Picker loses focus."),
            React.createElement(DatePicker, { label: "Date required (with label)", isRequired: true, firstDayOfWeek: firstDayOfWeek, strings: defaultDayPickerStrings, placeholder: "Select a date...", ariaLabel: "Select a date" }),
            React.createElement(DatePicker, { isRequired: true, firstDayOfWeek: firstDayOfWeek, strings: defaultDayPickerStrings, placeholder: "Date required with no label...", ariaLabel: "Select a date" })));
    };
    return DatePickerRequiredExample;
}(React.Component));
export { DatePickerRequiredExample };
//# sourceMappingURL=DatePicker.Required.Example.js.map