"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _typeof = require("@babel/runtime/helpers/typeof");
exports.__esModule = true;
exports["default"] = void 0;
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
var _react = _interopRequireDefault(require("react"));
var _Sections = require("@wix/wix-storybook-utils/Sections");
var _storySettings = require("./storySettings");
var _ = _interopRequireDefault(require(".."));
var examples = _interopRequireWildcard(require("./examples"));
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/Proportion/docs/index.story.jsx";
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
var IMG_URL = 'https://upload.wikimedia.org/wikipedia/commons/b/b2/Vincent_van_Gogh_-_Self-Portrait_-_Google_Art_Project.jpg';
var CUSTOM_RATIO = 3142 / 3820; // taken from image ^

var exampleAspectRatio = [{
  value: CUSTOM_RATIO,
  label: "custom (3142 / 3820 = image original ratio)"
}, {
  value: _["default"].PREDEFINED_RATIOS.square,
  label: 'square'
}, {
  value: _["default"].PREDEFINED_RATIOS.portrait,
  label: 'portrait'
}, {
  value: _["default"].PREDEFINED_RATIOS.cinema,
  label: 'cinema'
}, {
  value: _["default"].PREDEFINED_RATIOS.landscape,
  label: 'landscape'
}, {
  value: _["default"].PREDEFINED_RATIOS.none,
  label: 'none'
}];
var _default = exports["default"] = {
  category: _storySettings.storySettings.category,
  storyName: 'Proportion',
  component: _["default"],
  componentPath: '..',
  componentProps: {
    children: /*#__PURE__*/_react["default"].createElement("img", {
      src: IMG_URL,
      style: {
        verticalAlign: 'middle'
      },
      width: "100%",
      height: "100%",
      __self: void 0,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 45,
        columnNumber: 7
      }
    })
  },
  exampleProps: {
    aspectRatio: exampleAspectRatio
  },
  sections: [(0, _Sections.header)(), (0, _Sections.tabs)([(0, _Sections.tab)({
    title: 'Description',
    sections: [(0, _Sections.description)('HOC that enforces proportions on child components'), (0, _Sections.divider)(), (0, _Sections.title)('Examples'), (0, _Sections.example)({
      title: 'Simple Usage',
      source: examples.simple
    })]
  })].concat((0, _toConsumableArray2["default"])([{
    title: 'API',
    sections: [(0, _Sections.api)()]
  }, {
    title: 'Testkit',
    sections: [(0, _Sections.testkit)()]
  }, {
    title: 'Playground',
    sections: [(0, _Sections.playground)()]
  }].map(_Sections.tab))))]
};