2020-02-14 20:33:54 +00:00
|
|
|
import mustache from 'mustache';
|
2020-02-28 20:06:33 +00:00
|
|
|
import '../resources/skins.vector.styles/Sidebar.less';
|
2020-04-14 22:44:33 +00:00
|
|
|
import '../resources/skins.vector.styles/SidebarLogo.less';
|
2020-04-07 23:21:20 +00:00
|
|
|
import '../resources/skins.vector.styles/MenuPortal.less';
|
2021-05-13 22:29:14 +00:00
|
|
|
|
2020-06-22 18:01:10 +00:00
|
|
|
import { sidebarTemplate,
|
|
|
|
sidebarLegacyTemplate, SIDEBAR_DATA, SIDEBAR_TEMPLATE_PARTIALS } from './Sidebar.stories.data';
|
2020-02-14 20:33:54 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'Sidebar'
|
|
|
|
};
|
|
|
|
|
2020-06-22 18:01:10 +00:00
|
|
|
export const sidebarLegacyWithNoPortals = () => mustache.render(
|
|
|
|
sidebarLegacyTemplate, SIDEBAR_DATA.withNoPortals, SIDEBAR_TEMPLATE_PARTIALS
|
2020-02-14 20:33:54 +00:00
|
|
|
);
|
|
|
|
|
2020-06-22 18:01:10 +00:00
|
|
|
export const sidebarLegacyWithPortals = () => mustache.render(
|
|
|
|
sidebarLegacyTemplate, SIDEBAR_DATA.withPortals, SIDEBAR_TEMPLATE_PARTIALS
|
|
|
|
);
|
|
|
|
|
|
|
|
export const sidebarModernWithoutLogo = () => mustache.render(
|
2020-04-14 22:44:33 +00:00
|
|
|
sidebarTemplate, SIDEBAR_DATA.withoutLogo, SIDEBAR_TEMPLATE_PARTIALS
|
|
|
|
);
|
|
|
|
|
2020-06-22 18:01:10 +00:00
|
|
|
export const sidebarModernWithPortals = () => mustache.render(
|
2020-02-17 19:49:43 +00:00
|
|
|
sidebarTemplate, SIDEBAR_DATA.withPortals, SIDEBAR_TEMPLATE_PARTIALS
|
2020-02-14 20:33:54 +00:00
|
|
|
);
|
|
|
|
|
2020-06-22 18:01:10 +00:00
|
|
|
export const sidebarModernThirdParty = () => mustache.render(
|
2020-02-17 19:49:43 +00:00
|
|
|
sidebarTemplate, SIDEBAR_DATA.thirdParty, SIDEBAR_TEMPLATE_PARTIALS
|
2020-02-14 20:33:54 +00:00
|
|
|
);
|