office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
43 lines • 4.5 kB
JavaScript
import * as tslib_1 from "tslib";
import * as React from 'react';
import { ExampleCard, ComponentPage, PropertiesTableSet, PageMarkdown, } from '@uifabric/example-app-base';
import { DatePickerBasicExample } from './examples/DatePicker.Basic.Example';
import { DatePickerWeekNumbersExample } from './examples/DatePicker.WeekNumbers.Example';
import { DatePickerRequiredExample } from './examples/DatePicker.Required.Example';
import { DatePickerInputExample } from './examples/DatePicker.Input.Example';
import { DatePickerFormatExample } from './examples/DatePicker.Format.Example';
import { DatePickerBoundedExample } from './examples/DatePicker.Bounded.Example';
import { ComponentStatus } from '../../demo/ComponentStatus/ComponentStatus';
import { DatePickerStatus } from './DatePicker.checklist';
var DatePickerBasicExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/DatePicker/examples/DatePicker.Basic.Example.tsx');
var DatePickerWeekNumbersExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/DatePicker/examples/DatePicker.WeekNumbers.Example.tsx');
var DatePickerRequiredExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/DatePicker/examples/DatePicker.Required.Example.tsx');
var DatePickerInputExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/DatePicker/examples/DatePicker.Input.Example.tsx');
var DatePickerFormatExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/DatePicker/examples/DatePicker.Format.Example.tsx');
var DatePickerBoundedExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/DatePicker/examples/DatePicker.Bounded.Example.tsx');
var DatePickerPage = /** @class */ (function (_super) {
tslib_1.__extends(DatePickerPage, _super);
function DatePickerPage() {
return _super !== null && _super.apply(this, arguments) || this;
}
DatePickerPage.prototype.render = function () {
return (React.createElement(ComponentPage, { title: 'DatePicker', componentName: 'DatePickerExample', componentUrl: 'https://github.com/OfficeDev/office-ui-fabric-react/tree/master/packages/office-ui-fabric-react/src/components/DatePicker', exampleCards: React.createElement("div", null,
React.createElement(ExampleCard, { title: 'Default DatePicker', code: DatePickerBasicExampleCode },
React.createElement(DatePickerBasicExample, null)),
React.createElement(ExampleCard, { title: 'DatePicker with week numbers', code: DatePickerWeekNumbersExampleCode },
React.createElement(DatePickerWeekNumbersExample, null)),
React.createElement(ExampleCard, { title: 'DatePicker with required field', code: DatePickerRequiredExampleCode },
React.createElement(DatePickerRequiredExample, null)),
React.createElement(ExampleCard, { title: 'DatePicker allows input date string', code: DatePickerInputExampleCode },
React.createElement(DatePickerInputExample, null)),
React.createElement(ExampleCard, { title: 'DatePicker allows dates to be formatted', code: DatePickerFormatExampleCode },
React.createElement(DatePickerFormatExample, null)),
React.createElement(ExampleCard, { title: 'DatePicker with date boundary (minDate, maxDate)', code: DatePickerBoundedExampleCode },
React.createElement(DatePickerBoundedExample, null))), propertiesTables: React.createElement(PropertiesTableSet, { sources: [
require('!raw-loader!office-ui-fabric-react/src/components/DatePicker/DatePicker.types.ts')
] }), overview: React.createElement(PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/DatePicker/docs/DatePickerOverview.md')), bestPractices: React.createElement("div", null), dos: React.createElement(PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/DatePicker/docs/DatePickerDos.md')), donts: React.createElement(PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/DatePicker/docs/DatePickerDonts.md')), isHeaderVisible: this.props.isHeaderVisible, componentStatus: React.createElement(ComponentStatus, tslib_1.__assign({}, DatePickerStatus)) }));
};
return DatePickerPage;
}(React.Component));
export { DatePickerPage };
//# sourceMappingURL=DatePickerPage.js.map