"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("../test/storySettings");
var examples = _interopRequireWildcard(require("./examples"));
var _ = _interopRequireDefault(require(".."));
var _SectionHelper = _interopRequireDefault(require("../../SectionHelper"));
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/StackedBarChart/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 _default = exports["default"] = {
  category: _storySettings.storySettings.category,
  storyName: 'StackedBarChart',
  component: _["default"],
  componentPath: '..',
  componentProps: {
    width: 800,
    height: 400,
    margin: {
      top: 40,
      bottom: 40,
      left: 80,
      right: 10
    },
    data: [{
      label: 'Jan 20',
      values: [500, 200]
    }, {
      label: 'Feb 20',
      values: [200, 700]
    }, {
      label: 'Mar 20',
      values: [0, 400]
    }, {
      label: 'Apr 20',
      values: [900, 100]
    }, {
      label: 'Mai 20',
      values: [300, 300]
    }, {
      label: 'Jun 20',
      values: [400, 300]
    }, {
      label: 'Jul 20',
      values: [100, 100]
    }, {
      label: 'Aug 20',
      values: [0, 0]
    }, {
      label: 'Sep 20',
      values: [800, 0]
    }, {
      label: 'Oct 20',
      values: [600, 300]
    }, {
      label: 'Nov 20',
      values: [200, 300]
    }, {
      label: 'Dec 20',
      values: [300, 200]
    }]
  },
  exampleProps: {
    // Put here presets of props, for more info:
    // https://github.com/wix/wix-ui/blob/master/packages/wix-storybook-utils/docs/usage.md
  },
  sections: [(0, _Sections.header)({
    sourceUrl: "https://github.com/wix-private/wix-design-systems/tree/master/packages/wix-design-system/src/".concat(_["default"].displayName, "/")
  }), (0, _Sections.tabs)([(0, _Sections.tab)({
    title: 'Description',
    sections: [(0, _Sections.description)({
      title: 'Description',
      text: 'This line here should briefly describe component in just a sentence or two. It should be short and easy to read.'
    }), (0, _Sections.divider)(), (0, _Sections.description)({
      text: /*#__PURE__*/_react["default"].createElement(_SectionHelper["default"], {
        title: "WARNING",
        __self: void 0,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 70,
          columnNumber: 15
        }
      }, "This component is a work in progress. Please, don't use this component unless you were instructed to by the WSR team.", /*#__PURE__*/_react["default"].createElement("br", {
        __self: void 0,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 73,
          columnNumber: 17
        }
      }), /*#__PURE__*/_react["default"].createElement("br", {
        __self: void 0,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 74,
          columnNumber: 17
        }
      }), "If decided to use this component, keep in mind that the API is not stable and can change anytime!")
    }), (0, _Sections.title)('Examples'), (0, _Sections.code)({
      compact: true,
      initiallyOpen: true,
      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))))]
};