Skip to content

Commit

Permalink
feat(template): new template sidebar and content
Browse files Browse the repository at this point in the history
  • Loading branch information
WillianLomeu committed Dec 3, 2024
1 parent 34fb439 commit 7d102e1
Show file tree
Hide file tree
Showing 2 changed files with 117 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/grid/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
| `justifyContent` | `justify-content` | | `"center" \| "flex-end" \| "flex-start" \| "space-around" \| "space-between" \| "space-evenly" \| "stretch"` | `undefined` |
| `lg` | `lg` | | `"1" \| "10" \| "11" \| "12" \| "2" \| "3" \| "4" \| "5" \| "6" \| "7" \| "8" \| "9" \| "auto"` | `undefined` |
| `lgOffset` | `lg-offset` | | `"1" \| "10" \| "11" \| "12" \| "2" \| "3" \| "4" \| "5" \| "6" \| "7" \| "8" \| "9" \| "auto"` | `undefined` |
| `margin` | `margin` | | `"1" \| "2" \| "3" \| "4" \| "5" \| "6" \| "7" \| "8" \| "9" \| "10" \| "11" \| "12" \| "none" \| "half" \| "l-none" \| "l-half" \| "l-1" \| "l-2" \| "l-3" \| "l-4" \| "l-5" \| "l-6" \| "l-7" \| "l-8" \| "l-9" \| "l-10" \| "l-11" \| "l-12" \| "b-none" \| "b-half" \| "b-1" \| "b-2" \| "b-3" \| "b-4" \| "b-5" \| "b-6" \| "b-7" \| "b-8" \| "b-9" \| "b-10" \| "b-11" \| "r-none" \| "r-half" \| "r-1" \| "r-2" \| "r-3" \| "r-4" \| "r-5" \| "r-6" \| "r-7" \| "r-8" \| "r-9" \| "r-10" \| "r-11" \| "r-12" \| "t-none" \| "t-half" \| "t-1" \| "t-2" \| "t-3" \| "t-4" \| "t-5" \| "t-6" \| "t-7" \| "t-8" \| "t-9" \| "t-10" \| "t-11" \| "t-12" \| "y-none" \| "y-half" \| "y-1" \| "y-2" \| "y-3" \| "y-4" \| "y-5" \| "y-6" \| "y-7" \| "y-8" \| "y-9" \| "y-10" \| "y-11" \| "y-12" \| "x-none" \| "x-half" \| "x-1" \| "x-2" \| "x-3" \| "x-4" \| "x-5" \| "x-6" \| "x-7" \| "x-8" \| "x-9" \| "x-10" \| "x-11" \| "x-12"` | `undefined` |
| `margin` | `margin` | | `"none" \| "half" \| "1" \| "2" \| "3" \| "4" \| "5" \| "6" \| "7" \| "8" \| "9" \| "10" \| "11" \| "12" \| "l-none" \| "l-half" \| "l-1" \| "l-2" \| "l-3" \| "l-4" \| "l-5" \| "l-6" \| "l-7" \| "l-8" \| "l-9" \| "l-10" \| "l-11" \| "l-12" \| "b-none" \| "b-half" \| "b-1" \| "b-2" \| "b-3" \| "b-4" \| "b-5" \| "b-6" \| "b-7" \| "b-8" \| "b-9" \| "b-10" \| "b-11" \| "r-none" \| "r-half" \| "r-1" \| "r-2" \| "r-3" \| "r-4" \| "r-5" \| "r-6" \| "r-7" \| "r-8" \| "r-9" \| "r-10" \| "r-11" \| "r-12" \| "t-none" \| "t-half" \| "t-1" \| "t-2" \| "t-3" \| "t-4" \| "t-5" \| "t-6" \| "t-7" \| "t-8" \| "t-9" \| "t-10" \| "t-11" \| "t-12" \| "y-none" \| "y-half" \| "y-1" \| "y-2" \| "y-3" \| "y-4" \| "y-5" \| "y-6" \| "y-7" \| "y-8" \| "y-9" \| "y-10" \| "y-11" \| "y-12" \| "x-none" \| "x-half" \| "x-1" \| "x-2" \| "x-3" \| "x-4" \| "x-5" \| "x-6" \| "x-7" \| "x-8" \| "x-9" \| "x-10" \| "x-11" \| "x-12"` | `undefined` |
| `md` | `md` | | `"1" \| "10" \| "11" \| "12" \| "2" \| "3" \| "4" \| "5" \| "6" \| "7" \| "8" \| "9" \| "auto"` | `undefined` |
| `mdOffset` | `md-offset` | | `"1" \| "10" \| "11" \| "12" \| "2" \| "3" \| "4" \| "5" \| "6" \| "7" \| "8" \| "9" \| "auto"` | `undefined` |
| `padding` | `padding` | | `"1" \| "2" \| "3" \| "4" \| "5" \| "6" \| "7" \| "8" \| "9" \| "10" \| "11" \| "12" \| "none" \| "half" \| "l-none" \| "l-half" \| "l-1" \| "l-2" \| "l-3" \| "l-4" \| "l-5" \| "l-6" \| "l-7" \| "l-8" \| "l-9" \| "l-10" \| "l-11" \| "l-12" \| "b-none" \| "b-half" \| "b-1" \| "b-2" \| "b-3" \| "b-4" \| "b-5" \| "b-6" \| "b-7" \| "b-8" \| "b-9" \| "b-10" \| "b-11" \| "b-12" \| "r-none" \| "r-half" \| "r-1" \| "r-2" \| "r-3" \| "r-4" \| "r-5" \| "r-6" \| "r-7" \| "r-8" \| "r-9" \| "r-10" \| "r-11" \| "r-12" \| "t-none" \| "t-half" \| "t-1" \| "t-2" \| "t-3" \| "t-4" \| "t-5" \| "t-6" \| "t-7" \| "t-8" \| "t-9" \| "t-10" \| "t-11" \| "t-12" \| "y-none" \| "y-half" \| "y-1" \| "y-2" \| "y-3" \| "y-4" \| "y-5" \| "y-6" \| "y-7" \| "y-8" \| "y-9" \| "y-10" \| "y-11" \| "y-12" \| "x-none" \| "x-half" \| "x-1" \| "x-2" \| "x-3" \| "x-4" \| "x-5" \| "x-6" \| "x-7" \| "x-8" \| "x-9" \| "x-10" \| "x-11" \| "x-12"` | `undefined` |
| `padding` | `padding` | | `"none" \| "half" \| "1" \| "2" \| "3" \| "4" \| "5" \| "6" \| "7" \| "8" \| "9" \| "10" \| "11" \| "12" \| "l-none" \| "l-half" \| "l-1" \| "l-2" \| "l-3" \| "l-4" \| "l-5" \| "l-6" \| "l-7" \| "l-8" \| "l-9" \| "l-10" \| "l-11" \| "l-12" \| "b-none" \| "b-half" \| "b-1" \| "b-2" \| "b-3" \| "b-4" \| "b-5" \| "b-6" \| "b-7" \| "b-8" \| "b-9" \| "b-10" \| "b-11" \| "b-12" \| "r-none" \| "r-half" \| "r-1" \| "r-2" \| "r-3" \| "r-4" \| "r-5" \| "r-6" \| "r-7" \| "r-8" \| "r-9" \| "r-10" \| "r-11" \| "r-12" \| "t-none" \| "t-half" \| "t-1" \| "t-2" \| "t-3" \| "t-4" \| "t-5" \| "t-6" \| "t-7" \| "t-8" \| "t-9" \| "t-10" \| "t-11" \| "t-12" \| "y-none" \| "y-half" \| "y-1" \| "y-2" \| "y-3" \| "y-4" \| "y-5" \| "y-6" \| "y-7" \| "y-8" \| "y-9" \| "y-10" \| "y-11" \| "y-12" \| "x-none" \| "x-half" \| "x-1" \| "x-2" \| "x-3" \| "x-4" \| "x-5" \| "x-6" \| "x-7" \| "x-8" \| "x-9" \| "x-10" \| "x-11" \| "x-12"` | `undefined` |
| `sm` | `sm` | | `"1" \| "10" \| "11" \| "12" \| "2" \| "3" \| "4" \| "5" \| "6" \| "7" \| "8" \| "9" \| "auto"` | `undefined` |
| `smOffset` | `sm-offset` | | `"1" \| "10" \| "11" \| "12" \| "2" \| "3" \| "4" \| "5" \| "6" \| "7" \| "8" \| "9" \| "auto"` | `undefined` |
| `xg` | `xg` | | `"1" \| "10" \| "11" \| "12" \| "2" \| "3" \| "4" \| "5" \| "6" \| "7" \| "8" \| "9" \| "auto"` | `undefined` |
Expand Down
115 changes: 115 additions & 0 deletions src/templates/portal/sidebar+content.stories.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
import React, { useState } from 'react';
import {
BdsTable,
BdsTableHeader,
BdsTableRow,
BdsTableTh,
BdsTableBody,
BdsTableCell,
BdsTypo,
BdsPagination,
BdsChipTag,
BdsCard,
BdsCardHeader,
BdsCardTitle,
BdsGrid,
BdsCardSubtitle,
BdsCardBody,
BdsList,
BdsListItem,
BdsSidebar,
BdsNavTree,
BdsNavTreeGroup,
BdsNavTreeItem,
BdsIcon,
BdsButton,
BdsInput,
BdsPaper,
BdsTooltip
} from '../../../blip-ds-react/dist/components';

export default {
title: 'Template/Portal/Sidebar + Content',
};

export const SidebarContent = (args) => (
<BdsGrid direction='row' xxs='12' height='100%'>
{/* Sidebar */}
<BdsGrid>
<BdsSidebar width="310px" type='fixed' background='surface-1'>
<BdsGrid slot='body'>
<BdsNavTreeGroup collapse="single">
<BdsNavTree text="Titulo" secondaryText="Breve descrição"></BdsNavTree>
<BdsNavTree text="Titulo" secondaryText="Breve descrição"></BdsNavTree>
<BdsNavTree text="Titulo" secondaryText="Breve descrição" icon='heart'>
<BdsNavTreeItem text="Titulo"></BdsNavTreeItem>
<BdsNavTreeItem text="Titulo"></BdsNavTreeItem>
<BdsNavTreeItem text="Titulo">
<BdsNavTreeItem text="Titulo">
<BdsNavTreeItem text="Titulo"></BdsNavTreeItem>
</BdsNavTreeItem>
</BdsNavTreeItem>
</BdsNavTree>
<BdsNavTree text="Titulo" secondaryText="Breve descrição">
<BdsNavTreeItem text="Titulo"></BdsNavTreeItem>
</BdsNavTree>
</BdsNavTreeGroup>
</BdsGrid>
</BdsSidebar>
</BdsGrid>
<BdsGrid bgColor='color-surface-2' xxs='auto'>
<BdsGrid container xxs='12' direction='column'>
<BdsGrid margin='x-auto' padding='y-4' justifyContent='space-between' xxs='12'>
<BdsGrid direction='row' alignItems='center' gap="1">
<BdsButton iconLeft='arrow-left' color='content' variant='text'></BdsButton>
<BdsTypo variant='fs-24' bold='bold' margin="false">Título da página 24px-h3, Bold</BdsTypo>

</BdsGrid>
<BdsGrid gap='2'>
<BdsButton iconLeft='info' variant='outline' color='content'></BdsButton>
<BdsButton variant='outline' color='content'>Verbo + complemento</BdsButton>
<BdsButton>Verbo + complemento</BdsButton>
</BdsGrid>
</BdsGrid>
<BdsGrid xxs='6' margin='y-4'>
<BdsInput placeholder='Digite o nome do produto que está procurando' icon='search'></BdsInput>
</BdsGrid>
<BdsGrid margin='y-4' flexWrap='wrap'>
<BdsGrid xxs='6' height='260px'>
<BdsPaper width='100%'>
<BdsGrid padding='2' direction='column'>
<BdsGrid alignItems='center' gap='1'>
<BdsTypo variant='fs-20' bold='bold' margin='false'>Título do card 1, $fs-20-h4/Bold</BdsTypo>
<BdsTooltip tooltipText='Top Center'><BdsIcon name='info' size='x-small'></BdsIcon></BdsTooltip>
</BdsGrid>
<BdsGrid>
<BdsTypo>Subtítulo do card 1, explicando conteúdo</BdsTypo>
</BdsGrid>
</BdsGrid>
</BdsPaper>
</BdsGrid>
<BdsGrid xxs='6' height='260px'>
<BdsPaper width='100%'>
<BdsGrid padding='2' direction='column'>
<BdsGrid alignItems='center' gap='1'>
<BdsTypo variant='fs-20' bold='bold' margin='false'>Título do card 2, $fs-20-h4/Bold</BdsTypo>
</BdsGrid>
</BdsGrid>
</BdsPaper>
</BdsGrid>
<BdsGrid xxs='12' padding='t-2' height='260px'>
<BdsPaper width='100%'>
<BdsGrid padding='2' direction='column'>
<BdsGrid alignItems='center' gap='1'>
<BdsTypo variant='fs-20' bold='bold' margin='false'>Título do card 3, $fs-20-h4/Bold</BdsTypo>
</BdsGrid>
</BdsGrid>
</BdsPaper>
</BdsGrid>
</BdsGrid>

</BdsGrid>

</BdsGrid>
</BdsGrid>
);

0 comments on commit 7d102e1

Please sign in to comment.