-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* divider and popover links and list stories fixes * last fixes in list * text with high lights * add nick to contributors, and fix colors page * fix controls * fix
- Loading branch information
Hadas Farhi
committed
Dec 27, 2021
1 parent
7d8124a
commit 08592e3
Showing
50 changed files
with
702 additions
and
251 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
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
9 changes: 7 additions & 2 deletions
9
src/components/ColorPicker/__stories__/ColorPicker.stories.mdx
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
13 changes: 11 additions & 2 deletions
13
...omponents/DialogContentContainer/__stories__/DialogContentContainer.stories.mdx
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import Divider from "../Divider"; | ||
import { ArgsTable, Story, Canvas, Meta } from "@storybook/addon-docs"; | ||
import { createComponentTemplate, createStoryMetaSettings } from "../../../storybook/functions/create-component-story"; | ||
import { CHIP, ICONS, LABEL } from "../../../storybook/components/related-components/component-description-map"; | ||
import classes from "./Divider.stories.module.scss"; | ||
|
||
export const argTypes = createStoryMetaSettings({ | ||
component: Divider, | ||
enumPropNamesArray: ["direction"] | ||
}); | ||
|
||
<Meta | ||
title="Data display/Divider" | ||
component={ Divider } | ||
argTypes={argTypes} | ||
/> | ||
|
||
<!--- Component template --> | ||
|
||
export const dividerTemplate = createComponentTemplate(Divider); | ||
|
||
<!--- Component documentation --> | ||
|
||
# Divider | ||
- [Overview](#overview) | ||
- [Props](#props) | ||
- [Variants](#variants) | ||
- [Feedback](#feedback) | ||
|
||
## Overview | ||
Divider create separation between two UI elements | ||
<Canvas> | ||
<Story name="Overview"> | ||
{ dividerTemplate.bind({}) } | ||
</Story> | ||
</Canvas> | ||
|
||
## Props | ||
<ArgsTable of={ Divider } /> | ||
|
||
## Variants | ||
### Directions | ||
<Canvas> | ||
<Story name="Directions"> | ||
<div style={{display: "flex", flexDirection: "column"}}> | ||
<div className={classes["divider-description-container"]}> | ||
<span className={classes["divider-description-text"]}>Horizontal</span> | ||
<Divider direction={Divider.directions.HORIZONTAL}/> | ||
</div> | ||
<div className={classes["divider-description-container"]}> | ||
<span className={classes["divider-description-text"]}>Vertical</span> | ||
<Divider direction={Divider.directions.VERTICAL}/> | ||
</div> | ||
</div> | ||
</Story> | ||
</Canvas> | ||
|
||
## Related components | ||
<RelatedComponents componentsNames={[LABEL, ICONS, CHIP]} /> |
14 changes: 14 additions & 0 deletions
14
src/components/Divider/__stories__/Divider.stories.module.scss
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@import "../../../styles/themes.scss"; | ||
|
||
.divider-description { | ||
&-container { | ||
display: flex; | ||
width: 200px; | ||
height: 200px; | ||
} | ||
|
||
&-text { | ||
margin-right: var(--spacing-large); | ||
align-self: center; | ||
} | ||
} |
Oops, something went wrong.