import React from 'react'; import { Layout as Layout2 } from '../src/lib/components/layout/v2'; import { TwoPanelLayout } from '../src/lib/components/layout/v2/panels'; import { AppContainer } from '../src/lib/components/layout/v2/AppContainer'; import styled from 'styled-components'; import { Stack } from '../src/lib/spacing'; import { Icon } from '../src/lib/components/icon/Icon.component'; import { Link, Text } from '../src/lib/components/text/Text.component'; import { TextBadge } from '../src/lib/components/textbadge/TextBadge.component'; import { Breadcrumb } from '../src/lib/components/breadcrumb/Breadcrumb.component'; import { ScrollbarWrapper } from '../src/lib/components/scrollbarwrapper/ScrollbarWrapper.component'; import { Meta } from '@storybook/react-webpack5'; const meta: Meta = { title: 'Templates/Layout', component: Layout2, args: {}, }; export default meta; const HeaderComponent = styled.div` background: #ff9c54; flex: 1; color: black; `; export const Layout2Simplest = { render: () => { return (

Header navigation

} > <>Context bar Title subtitle Status 1 Status 2 Status 3 Alerts No alerts Main content
); }, }; export const Layout2SimplestWithMainContentPadding = { render: ({}) => (

Header navigation

} > <>Context bar Overall summary (optional) Main content
), }; export const Layout2MainContentOnly = { render: ({}) => (

Header navigation

} > Main content
), }; export const Layout2TransparentBackground = { render: () => (

Header navigation

} > Main content
), }; export const Layout2OverallSummaryAndMainContent = { render: () => (

Header navigation

} > home, cluster_1, cluster_1, cluster_1, cluster_1, cluster_1, cluster_1, cluster_1, cluster_1, cluster_1, cluster_1, cluster_1, cluster_1, cluster_1, cluster_1, node_longlonglonglonglonglonglonglonglonglonglong , cluster_1, cluster_1, cluster_1, cluster_1, cluster_1, cluster_1, cluster_1, cluster_1, cluster_1, cluster_1, cluster_1, cluster_1, volumes, ]} /> Overall summary (optional) Main content
), }; export const Layout2SimplestSidebar = { render: ({}) => (

Header navigation

} > Sidebar navigation } > <>Context bar Overall summary (optional) Main content
), }; export const Layout2TwoEqualPanelsWithPadding = { render: () => (

Header navigation

} > Navigation } > <>Context bar Overall summary (optional) Left Panel content, background: 'backgroundLevel3', }} rightPanel={{ children:
Right Panel content
, background: 'backgroundLevel4', }} />
), }; export const Layout2TwoPanelsThirtySeventy = { render: () => (

Header navigation

} > Navigation } > <>Context bar Overall summary (optional) Left Panel content, background: 'backgroundLevel3', }} rightPanel={{ children:
Right Panel content
, background: 'backgroundLevel4', }} />
), }; export const Layout2TwoPanelsSeventyThirty = { render: () => (

Header navigation

} > Navigation } > <>Context bar
Overall summary (optional)
Left Panel content, background: 'backgroundLevel3', }} rightPanel={{ children:
Right Panel content
, background: 'backgroundLevel4', }} />
), };