"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 _Box = _interopRequireDefault(require("../../Box"));
var _LinearProgressBar = _interopRequireDefault(require("../../LinearProgressBar"));
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/SidebarHeader/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 titleExamples = [{
  label: 'Short',
  value: 'Site Name'
}, {
  label: 'Long',
  value: 'This is a very long title which exceeds the maximum width of its container'
}];
var subtitleExamples = [{
  label: 'Short',
  value: 'Role: Owner'
}, {
  label: 'Long',
  value: 'This is a very long subtitle which exceeds the maximum width of its container'
}];
var childrenExamples = [{
  label: 'Progress bar',
  value: /*#__PURE__*/_react["default"].createElement(_Box["default"], {
    marginTop: 3,
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 47,
      columnNumber: 7
    }
  }, /*#__PURE__*/_react["default"].createElement(_LinearProgressBar["default"], {
    showProgressIndication: true,
    value: 50,
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 48,
      columnNumber: 9
    }
  }))
}];
var _default = exports["default"] = {
  category: "".concat(_storySettings.storySettings.category, "/Sidebar"),
  storyName: 'SidebarHeader',
  component: _["default"],
  componentPath: '..',
  componentProps: {
    title: titleExamples[0].value,
    subtitle: subtitleExamples[0].value
  },
  exampleProps: {
    title: titleExamples,
    subtitle: subtitleExamples,
    children: childrenExamples
  },
  sections: [(0, _Sections.header)(), (0, _Sections.tabs)([(0, _Sections.tab)({
    title: 'Description',
    sections: [(0, _Sections.columns)([(0, _Sections.description)({
      title: 'Description',
      text: 'A header within the sidebar with title, subtitle and custom content at the bottom.'
    })]), (0, _Sections.importExample)("import { SidebarHeader } from '@wix/design-system';"), (0, _Sections.divider)(), (0, _Sections.title)('Examples'), (0, _Sections.example)({
      title: 'Plain Example',
      text: 'A simple example for a header with title and subtitle',
      source: examples.plain
    }), (0, _Sections.example)({
      title: 'Header with Title, Subtitle and Children',
      text: 'An example that demonstrates a header with a title, subtitle and custom node child',
      source: examples.titlesWithChildren
    }), (0, _Sections.example)({
      title: 'Header with Children',
      text: 'An example that demonstrates a header with just a custom node child',
      source: examples.onlyChildren
    }), (0, _Sections.example)({
      title: 'Header with Ellipsis',
      text: 'An example that demonstrates a header with a very long title which exceeds the maximum width of its container',
      source: examples.ellipsis
    }), (0, _Sections.example)({
      title: 'Light Skin',
      text: 'This example uses the `<Sidebar/>` to demonstrate the "light" skin design. Notice that when `<SidebarHeader/>` is contained inside `<Sidebar/>`, it affected by the `skin` prop accordingly',
      source: examples.lightSkin
    })]
  })].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))))]
};