-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(table): add
striped
property update loading state and remove h…
…over style (#2222) * feat(table): add property * fix(table): update loading state and remove hover style * ci: add missing unit test * fix: feedback dodo on loading
- Loading branch information
1 parent
f7a064c
commit 2768808
Showing
7 changed files
with
534 additions
and
190 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
50 changes: 50 additions & 0 deletions
50
packages/ui/src/components/Table/__stories__/Striped.stories.tsx
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,50 @@ | ||
import { Table } from '..' | ||
import { Template } from './Template.stories' | ||
|
||
export const Striped = Template.bind({}) | ||
|
||
Striped.args = { | ||
children: [ | ||
<Table.Head> | ||
<Table.Row> | ||
<Table.HeadCell>ID</Table.HeadCell> | ||
<Table.HeadCell>Date</Table.HeadCell> | ||
</Table.Row> | ||
</Table.Head>, | ||
<Table.Body striped> | ||
<Table.Row> | ||
<Table.BodyCell>001</Table.BodyCell> | ||
<Table.BodyCell>Just now</Table.BodyCell> | ||
</Table.Row> | ||
<Table.Row> | ||
<Table.BodyCell>002</Table.BodyCell> | ||
<Table.BodyCell>Yesterday</Table.BodyCell> | ||
</Table.Row> | ||
<Table.Row> | ||
<Table.BodyCell>003</Table.BodyCell> | ||
<Table.BodyCell>Yesterday</Table.BodyCell> | ||
</Table.Row> | ||
<Table.Row> | ||
<Table.BodyCell>004</Table.BodyCell> | ||
<Table.BodyCell>Yesterday</Table.BodyCell> | ||
</Table.Row> | ||
<Table.Row> | ||
<Table.BodyCell>005</Table.BodyCell> | ||
<Table.BodyCell>Yesterday</Table.BodyCell> | ||
</Table.Row> | ||
<Table.Row> | ||
<Table.BodyCell>006</Table.BodyCell> | ||
<Table.BodyCell>Tomorrow</Table.BodyCell> | ||
</Table.Row> | ||
</Table.Body>, | ||
], | ||
} | ||
|
||
Striped.parameters = { | ||
docs: { | ||
description: { | ||
story: | ||
'Striped prop will allow you to add background one row out of two to give more visibility in you table content.', | ||
}, | ||
}, | ||
} |
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.