-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: TET-169 Badge docs component * Merge branch 'development' into feat/TET-132/storybook-docs * feat: TET-170 add Button helper functions * feat: TET-170 add all configuration of buttons to docs * feat: TET-170 finish styling Button docs * feat: TET-171 add ChcekboxDocs and create Section * fix: TET-170 fix styling in ButtonDocs * fix: TET-169 fix BadgeDocs styling bug * fix: TET-168 fix AvatarDocs styling bug * feat: TET-170 CheckboxDocs ready * feat: TET-171 add States to CheckboxDocs * feat: TET-303 add header to each component, create files for each component Docs * feat: TET-319 create CheckboxGroupDocs * feat: TET-320 add HelperTextDocs * feat: TET-321 add StatusDotDocs * fix: NO-JIRA remove emphases object from BadgeProps * fix: NO-JIRA add key to a maping * fix: NO-JIRA add key to States component * feat: TET-303: add empty SocialButtonDocs * fix: NO-JIRA: remove docs link from SocialButton * fix: NO-JIRA fix lint error * feat: TET-322 add AlertBanner to Docs * feat: TET-323 * fix: NO-JIRA delete DividerDocs and LabelDocs * chore: NO-JIRA refactor ButtonDocs component * feat: TET-325 create IconButtonDocs * feat: TET-326 create InlineBannerDocs * feat: TET-327 add inline message docs * feat: TET-328 add InlineSearchInputDocs * feat: TET-331 add Popover Docs * feat: TET-330 Add LoaderDocs, update Hero Section * feat: TET-332 add RadioButtonDocs * feat: TET-333 add RadioButtonDocs * feat: TET-334 SearchInputDocs added * feat: TET-304 visual corrections * fix: TET-304 correct BadgeDocs * fix(badge): storybook docs jsx TET-304 * style(storybook): mobile view docs paddings and sidebar category margin TET-304 --------- Co-authored-by: Adrian Potępa <[email protected]>
- Loading branch information
1 parent
4582c7d
commit d33d8b6
Showing
30 changed files
with
751 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/components/IconButton/types/PartialDefaultIconButtonProps.type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,10 +13,33 @@ const meta = { | |
title: 'Popover', | ||
component: Popover, | ||
tags: ['autodocs'], | ||
|
||
args: { | ||
content: | ||
'Everything in Tetrisly contains Auto Layout. Moreover, we’ve redefined all variants and we have created brand-new components.', | ||
width: '320px', | ||
content: ( | ||
<tet.div display="flex" gap="12px" alignItems="center"> | ||
<Avatar | ||
appearance="image" | ||
img={{ | ||
src: 'https://thispersondoesnotexist.com/', | ||
alt: 'Random person', | ||
}} | ||
/> | ||
<tet.div display="flex" flexDirection="column"> | ||
<tet.span color="content-primary" text="body-strong-large"> | ||
John Doe | ||
</tet.span> | ||
<tet.span color="content-tertiary" text="body-medium"> | ||
[email protected] | ||
</tet.span> | ||
</tet.div> | ||
<Button | ||
appearance="secondary" | ||
size="small" | ||
beforeIcon="20-check-large" | ||
label="Following" | ||
/> | ||
</tet.div> | ||
), | ||
}, | ||
parameters: { | ||
docs: { | ||
|
@@ -40,7 +63,7 @@ const meta = { | |
alignItems="center" | ||
> | ||
<Popover {...props}> | ||
<Button label="Click me" /> | ||
<Button label="John Doe" /> | ||
</Popover> | ||
</tet.div> | ||
), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,47 @@ | ||
import { action } from '@storybook/addon-actions'; | ||
import { capitalize } from 'lodash'; | ||
|
||
import { SectionHeader } from './common/SectionHeader'; | ||
|
||
import { AlertBanner } from '@/components/AlertBanner'; | ||
import { tet } from '@/tetrisly'; | ||
|
||
export const AlertBannerDocs = () => <tet.div />; | ||
const intents = ['none', 'positive', 'warning', 'negative'] as const; | ||
|
||
export const AlertBannerDocs = () => ( | ||
<> | ||
{intents.map((intent) => ( | ||
<tet.section key={intent}> | ||
<SectionHeader px={{ md: '1000', _: '500' }} py="500" variant="H1"> | ||
Intent: {capitalize(intent)} | ||
</SectionHeader> | ||
<tet.div px={{ md: '1000', _: '500' }}> | ||
<SectionHeader py="500" variant="H2"> | ||
Action: No | ||
</SectionHeader> | ||
<AlertBanner text="Alert text" intent={intent} /> | ||
</tet.div> | ||
<tet.div px={{ md: '1000', _: '500' }}> | ||
<SectionHeader py="500" variant="H2"> | ||
Action: Yes | ||
</SectionHeader> | ||
<AlertBanner | ||
text="Alert text" | ||
intent={intent} | ||
my="500" | ||
action={[ | ||
{ | ||
label: 'Click me', | ||
onClick: action('onClick'), | ||
}, | ||
{ | ||
label: 'Or click me', | ||
onClick: action('onClick'), | ||
}, | ||
]} | ||
/> | ||
</tet.div> | ||
</tet.section> | ||
))} | ||
</> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.