1 | "use strict";
|
2 |
|
3 | require("core-js/modules/es.object.assign");
|
4 |
|
5 | Object.defineProperty(exports, "__esModule", {
|
6 | value: true
|
7 | });
|
8 | exports["default"] = void 0;
|
9 |
|
10 | var _mithril = _interopRequireDefault(require("mithril"));
|
11 |
|
12 | var _addons = require("@storybook/addons");
|
13 |
|
14 | var _parameters = _interopRequireDefault(require("./parameters"));
|
15 |
|
16 | var _styles = _interopRequireDefault(require("./styles"));
|
17 |
|
18 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | function centered(storyFn) {
|
24 | return {
|
25 | view: function view() {
|
26 | return (0, _mithril["default"])("div", {
|
27 | style: _styles["default"].style
|
28 | }, (0, _mithril["default"])("div", {
|
29 | style: _styles["default"].innerStyle
|
30 | }, (0, _mithril["default"])(storyFn())));
|
31 | }
|
32 | };
|
33 | }
|
34 |
|
35 | var _default = (0, _addons.makeDecorator)(Object.assign({}, _parameters["default"], {
|
36 | wrapper: function wrapper(getStory) {
|
37 | return centered(getStory);
|
38 | }
|
39 | }));
|
40 |
|
41 | exports["default"] = _default;
|
42 |
|
43 | if (module && module.hot && module.hot.decline) {
|
44 | module.hot.decline();
|
45 | } |
\ | No newline at end of file |