UNPKG

@wix/design-system

Version:

@wix/design-system

46 lines (45 loc) 2.78 kB
"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 _Sections = require("@wix/wix-storybook-utils/Sections"); var _storySettings = require("../test/storySettings"); var examples = _interopRequireWildcard(require("./examples")); var _ = _interopRequireDefault(require("..")); 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: "".concat(_storySettings.storySettings.category, "/Sidebar"), storyName: 'SidebarDivider', component: _["default"], componentPath: '..', sections: [(0, _Sections.header)(), (0, _Sections.tabs)([(0, _Sections.tab)({ title: 'Description', sections: [(0, _Sections.columns)([(0, _Sections.description)({ title: 'Description', text: 'A divider within the sidebar that supports inner and full mode.' })]), (0, _Sections.importExample)("import { SidebarDivider } from '@wix/design-system';"), (0, _Sections.divider)(), (0, _Sections.title)('Examples'), (0, _Sections.example)({ title: 'Plain Example', text: 'A simple example for an inner sidebar divider', source: examples.plain }), (0, _Sections.example)({ title: 'Full-Width Divider', text: 'An example that demonstrates a divider with full width. Notice that in this mode, the divider has no margins', source: examples.fullWidth }), (0, _Sections.example)({ title: 'Light Skin', text: 'This example uses the `<Sidebar/>` to demonstrate the "light" skin design. Notice that when `<SidebarDivider/>` 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))))] };