"use strict";

var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

var _core = require("@emotion/core");

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

var React = _interopRequireWildcard(require("react"));

var _addonKnobs = require("@storybook/addon-knobs");

var _react2 = require("@storybook/react");

var _Text = require("./Text");

var _Root = require("../Root");

(0, _react2.storiesOf)('Text', module).addDecorator(_addonKnobs.withKnobs).add('Text', function () {
  var knobs = {
    type: (0, _addonKnobs.select)('type', ['regular', 'strong', 'perforator'], 'regular'),
    size: (0, _addonKnobs.select)('size', ['s', 'm'], 's')
  };
  var children = "\u041F\u0430\u0440\u0430\u0433\u0440\u0430\u0444 \u0442\u0438\u043F\u0430 \u2014 ".concat(knobs.type, ", \u0440\u0430\u0437\u043C\u0435\u0440\u0430 \u2014 ").concat(knobs.size);
  var cssKnob = (0, _addonKnobs.text)('CSS', 'display: block;');
  return (0, _core.jsx)(_Root.Root, null, (0, _core.jsx)(_Text.Text, (0, _extends2["default"])({}, knobs, {
    css:
    /*#__PURE__*/
    (0, _core.css)(cssKnob, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1RleHQvVGV4dC5zdG9yaWVzLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF1QmtCIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1RleHQvVGV4dC5zdG9yaWVzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIFJlYWN0IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vY29yZSdcblxuaW1wb3J0IHsgd2l0aEtub2JzLCB0ZXh0LCBzZWxlY3QgfSBmcm9tICdAc3Rvcnl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