-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(storybook): upgrade to storybook v8
Signed-off-by: aurore.stagnol <[email protected]>
- Loading branch information
1 parent
a5e07f3
commit 1239967
Showing
80 changed files
with
2,519 additions
and
3,178 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
16 changes: 16 additions & 0 deletions
16
packages/ods/src/components/icon/documentation/overview-icon.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Canvas } from '@storybook/blocks'; | ||
|
||
Icon is a visual context used to represent a command, navigation, status or common action: | ||
|
||
<Canvas> | ||
<div style={{ height: '300px', display: 'inline-flex'}}> | ||
<ods-icon></ods-icon> | ||
</div> | ||
</Canvas> | ||
|
||
<div> | ||
<a href="#" | ||
target="_blank"> | ||
ZEROHEIGHT - ICON DESIGN GUIDELINES | ||
</a> | ||
</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
6 changes: 0 additions & 6 deletions
6
...es/ods/src/components/icon/documentation/specifications/specifications-icon.mdx
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
packages/ods/src/components/skeleton/documentation/overview-skeleton.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Canvas } from '@storybook/blocks' | ||
|
||
Skeleton component indicates that data is loading. It improves the perceived loading time for the user. | ||
|
||
<Canvas> | ||
<div style={{ height: '300px', display: 'inline-flex'}}> | ||
<ods-skeleton></ods-skeleton> | ||
</div> | ||
</Canvas> | ||
|
||
<div> | ||
<a href="#" | ||
target="_blank"> | ||
ZEROHEIGHT - SKELETON DESIGN GUIDELINES | ||
</a> | ||
</div> |
5 changes: 0 additions & 5 deletions
5
packages/ods/src/components/skeleton/documentation/specifications/spec.md
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,8 +1,3 @@ | ||
## Table of Contents | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
4 changes: 0 additions & 4 deletions
4
...rc/components/skeleton/documentation/specifications/specifications-skeleton.mdx
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
...ages/ods/src/components/skeleton/documentation/style-customization-skeleton.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
You can add your own style on the text element using the part `skeleton`. | ||
|
||
```html | ||
<ods-skeleton class="my-skeleton"> | ||
</ods-skeleton> | ||
<style> | ||
.my-skeleton::part(skeleton) { | ||
height: 2rem; | ||
width: 10rem; | ||
} | ||
</style> | ||
``` |
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
17 changes: 17 additions & 0 deletions
17
packages/ods/src/components/spinner/documentation/overview-spinner.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Canvas } from '@storybook/blocks'; | ||
|
||
A visual indicator that a process is happening in the background but the interface is not yet ready for interaction: | ||
|
||
<Canvas> | ||
<div style={{ height: '300px', display: 'inline-flex'}}> | ||
<ods-spinner></ods-spinner> | ||
</div> | ||
</Canvas> | ||
|
||
<div> | ||
<osds-button color="primary" variant="ghost" href="https://zeroheight.com/6fc8a63f7/p/9017bb-spinner/b/40a887" target="_blank"> | ||
ZEROHEIGHT - SPINNER DESIGN GUIDELINES | ||
|
||
<osds-icon name="external-link" color="primary" size="xs" /> | ||
</osds-button> | ||
</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
10 changes: 1 addition & 9 deletions
10
...specifications/specifications-spinner.mdx → ...mentation/style-customization-spinner.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,11 @@ | ||
import { Markdown } from '@storybook/addon-docs'; | ||
import Specs from './spec.md'; | ||
|
||
<Markdown>{ Specs }</Markdown> | ||
|
||
## Style customization | ||
|
||
You can add your own style on the spinner element using the part `spinner`. | ||
|
||
Example: | ||
```html | ||
<ods-spinner class="my-spinner"></ods-spinner> | ||
<style> | ||
.my-spinner::part(spinner) { | ||
height: 100px; | ||
} | ||
</style> | ||
|
||
<ods-spinner class="my-spinner"></ods-spinner> | ||
``` |
2 changes: 1 addition & 1 deletion
2
...rc/components/spinner/documentation/usage-guidelines/properties/usage.color.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
2 changes: 1 addition & 1 deletion
2
...src/components/spinner/documentation/usage-guidelines/properties/usage.size.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
4 changes: 1 addition & 3 deletions
4
packages/ods/src/components/spinner/documentation/usage-guidelines/usage.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
4 changes: 4 additions & 0 deletions
4
packages/ods/src/components/text/documentation/migration.from.17.x.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
16 changes: 16 additions & 0 deletions
16
packages/ods/src/components/text/documentation/overview-text.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Canvas } from '@storybook/blocks' | ||
|
||
The text component is used to display text with a specific font & style. | ||
|
||
<Canvas> | ||
<div style={{ height: '300px', display: 'inline-flex'}}> | ||
<ods-text>lorem ipsum</ods-text> | ||
</div> | ||
</Canvas> | ||
|
||
<div> | ||
<osds-button color="primary" variant="ghost" href="https://zeroheight.com/6fc8a63f7/p/5546ea-text/b/40a887" target="_blank"> | ||
ZEROHEIGHT - TEXT DESIGN GUIDELINES | ||
<osds-text name="external-link" color="primary" size="xs"></osds-text> | ||
</osds-button> | ||
</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
8 changes: 0 additions & 8 deletions
8
...es/ods/src/components/text/documentation/specifications/specifications-text.mdx
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
packages/ods/src/components/text/documentation/style-customization-text.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
You can add your own style on the text element using the part `text`. | ||
|
||
```html | ||
<ods-text class="my-text"> | ||
test | ||
</ods-text> | ||
|
||
<style> | ||
.my-text::part(text) { | ||
color: #008000; | ||
} | ||
</style> | ||
``` |
24 changes: 3 additions & 21 deletions
24
packages/ods/src/components/text/documentation/usage-guidelines/usage.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,15 @@ | ||
import { Canvas } from '@storybook/addon-docs'; | ||
import PresetProperty from './properties/usage.preset.mdx'; | ||
|
||
## Usage | ||
|
||
### Default | ||
## Default | ||
|
||
<Canvas sourceState="none"> | ||
<ods-text>lorem ipsum</ods-text> | ||
</Canvas> | ||
|
||
```html | ||
<ods-text></ods-text> | ||
<ods-text>lorem ipsum</ods-text> | ||
``` | ||
|
||
### Preset | ||
## Preset | ||
<PresetProperty /> | ||
|
||
### CSS Customisation | ||
|
||
You can add your own style on the text element using the part `text`. | ||
|
||
```html | ||
<ods-text class="my-text"> | ||
test | ||
</ods-text> | ||
|
||
<style> | ||
.my-text::part(text) { | ||
color: green; | ||
} | ||
</style> | ||
``` |
Oops, something went wrong.