"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var React = require("react");
var path = require("path");
var example_app_base_1 = require("@uifabric/example-app-base");
var react_theme_provider_1 = require("@fluentui/react-theme-provider");
require("@fluentui/ie11-polyfills");
var req = require.context('../components', true, /\.stories\.tsx$/, 'sync');
var exampleWithTheme = function (example) { return function () { return React.createElement(react_theme_provider_1.ThemeProvider, null, example()); }; };
example_app_base_1.createApp(
// List of examples
req.keys().map(function (key) {
    var storiesModule = req(key);
    var exampleGroup = example_app_base_1.examplesOf(path.basename(key, '.stories.tsx'));
    for (var _i = 0, _a = Object.keys(storiesModule); _i < _a.length; _i++) {
        var exampleName = _a[_i];
        exampleGroup.add(exampleName, exampleWithTheme(storiesModule[exampleName]));
    }
    return exampleGroup;
}), 
// Intro page
function () { return (React.createElement("div", { style: { marginTop: -20, padding: 40 } },
    React.createElement(example_app_base_1.Markdown, null, require('!raw-loader!@fluentui/react-button/README.md')))); }, 'React Button Examples');
//# sourceMappingURL=index.js.map