-
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.
- Loading branch information
1 parent
265c704
commit c400d37
Showing
35 changed files
with
1,402 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#--- Project related ---# | ||
.stencil/ | ||
coverage/ | ||
dist/ | ||
docs-api/ | ||
screenshot/ | ||
www/ | ||
src/components.d.ts | ||
|
||
# Local Stencil command generates external ods component build at the root of the project | ||
# Excluding them is a temporary solution to avoid pushing generated files | ||
# But the issue may cause main build (ods-component package) to fails, as it detects multiples occurences | ||
# of the same component and thus you have to delete all those generated dir manually | ||
*/src/ | ||
|
||
#--- Misc ---# | ||
*~ | ||
*.sw[mnpcod] | ||
*.log | ||
*.lock | ||
*.tmp | ||
*.tmp.* | ||
log.txt | ||
*.sublime-project | ||
*.sublime-workspace | ||
.idea/ | ||
.vscode/ | ||
.sass-cache/ | ||
.versions/ | ||
node_modules/ | ||
$RECYCLE.BIN/ | ||
.DS_Store | ||
Thumbs.db | ||
UserInterfaceState.xcuserstate | ||
.env |
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 @@ | ||
# Change Log | ||
|
||
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
[Latest version](https://ovh.github.io/design-system/latest/?path=/docs/design-system-changelog--page) | ||
|
||
[Latest version](https://ovh.github.io/design-system/latest/?path=/docs/design-system-changelog--page) | ||
|
||
|
||
### Features | ||
|
||
* **table:** init component |
9 changes: 9 additions & 0 deletions
9
packages/components/src/table/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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
* [**Interfaces**](#interfaces) | ||
|
||
## Interfaces | ||
|
||
### OdsTableAttribute | ||
|Name | Type | Required | Default | Description| | ||
|---|---|:---:|---|---| | ||
|**`size`** | _string_ | | | Table size| | ||
|**`variant`** | _string_ | | | Table variant| |
4 changes: 4 additions & 0 deletions
4
...ages/components/src/table/documentation/specifications/specifications-table.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,4 @@ | ||
import {Description} from '@storybook/addon-docs'; | ||
import Specs from './spec.md'; | ||
|
||
<Description>{Specs}</Description> |
83 changes: 83 additions & 0 deletions
83
...s/components/src/table/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
import { Canvas } from '@storybook/addon-docs'; | ||
|
||
Available sizes are `sm, `md` and `lg`. | ||
|
||
<Canvas withSource="none"> | ||
<div style={{ height: '800px' }}> | ||
<osds-table size='sm'> | ||
<table> | ||
<caption> | ||
Front-end web developer course 2021 | ||
</caption> | ||
<thead> | ||
<tr> | ||
<th scope="col">Person</th> | ||
<th scope="col">Most interest in</th> | ||
<th scope="col">Age</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<th scope="row">Chris</th> | ||
<td>HTML tables</td> | ||
<td>22</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Dennis</th> | ||
<td>Web accessibility</td> | ||
<td>45</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Sarah</th> | ||
<td>JavaScript frameworks</td> | ||
<td>29</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Karen</th> | ||
<td>Web performance</td> | ||
<td>36</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</osds-table> | ||
</div> | ||
</Canvas > | ||
|
||
```html | ||
<osds-table size='sm'> | ||
<table> | ||
<caption> | ||
Front-end web developer course 2021 | ||
</caption> | ||
<thead> | ||
<tr> | ||
<th scope="col">Person</th> | ||
<th scope="col">Most interest in</th> | ||
<th scope="col">Age</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<th scope="row">Chris</th> | ||
<td>HTML tables</td> | ||
<td>22</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Dennis</th> | ||
<td>Web accessibility</td> | ||
<td>45</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Sarah</th> | ||
<td>JavaScript frameworks</td> | ||
<td>29</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Karen</th> | ||
<td>Web performance</td> | ||
<td>36</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</osds-table> | ||
``` |
80 changes: 80 additions & 0 deletions
80
...omponents/src/table/documentation/usage-guidelines/properties/usage.variant.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,80 @@ | ||
import { Canvas } from '@storybook/addon-docs'; | ||
|
||
<Canvas withSource="none"> | ||
<div style={{ height: '800px' }}> | ||
<osds-table variant='striped'> | ||
<table> | ||
<caption> | ||
Front-end web developer course 2021 | ||
</caption> | ||
<thead> | ||
<tr> | ||
<th scope="col">Person</th> | ||
<th scope="col">Most interest in</th> | ||
<th scope="col">Age</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<th scope="row">Chris</th> | ||
<td>HTML tables</td> | ||
<td>22</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Dennis</th> | ||
<td>Web accessibility</td> | ||
<td>45</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Sarah</th> | ||
<td>JavaScript frameworks</td> | ||
<td>29</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Karen</th> | ||
<td>Web performance</td> | ||
<td>36</td> | ||
</tr> | ||
</tbody> | ||
</table></osds-table> | ||
</div> | ||
</Canvas> | ||
|
||
```html | ||
<osds-table variant='striped'> | ||
<table> | ||
<caption> | ||
Front-end web developer course 2021 | ||
</caption> | ||
<thead> | ||
<tr> | ||
<th scope="col">Person</th> | ||
<th scope="col">Most interest in</th> | ||
<th scope="col">Age</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<th scope="row">Chris</th> | ||
<td>HTML tables</td> | ||
<td>22</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Dennis</th> | ||
<td>Web accessibility</td> | ||
<td>45</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Sarah</th> | ||
<td>JavaScript frameworks</td> | ||
<td>29</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Karen</th> | ||
<td>Web performance</td> | ||
<td>36</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</osds-table> | ||
``` |
Oops, something went wrong.