UNPKG

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