define(["require", "exports", "react", "path", "@uifabric/example-app-base", "@fluentui/react-theme-provider", "@fluentui/ie11-polyfills"], function (require, exports, React, path, example_app_base_1, react_theme_provider_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    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