diff --git a/packages/react-ui/src/stories/common/Pagination.stories.js b/packages/react-ui/src/stories/common/Pagination.stories.js new file mode 100644 index 00000000..4456f414 --- /dev/null +++ b/packages/react-ui/src/stories/common/Pagination.stories.js @@ -0,0 +1,49 @@ +import React from 'react'; +import { Pagination } from '@material-ui/lab'; + +export default { + title: 'Common/Pagination', + component: Pagination, + argTypes: { + variant: { + control: { + type: 'select', + options: ['default', 'outlined'] + } + }, + shape: { + control: { + type: 'select', + options: ['default', 'rounded'] + } + }, + color: { + control: { + type: 'select', + options: ['default', 'primary', 'secondary'] + } + }, + size: { + control: { + type: 'select', + options: ['small', 'medium', 'large'] + } + }, + disabled: { + control: { + type: 'boolean' + } + }, + } +} +const Template = ({ ...args }) => { + return ( +
+ +
+ ) +}; + +export const Playground = Template.bind({}); + + diff --git a/packages/react-ui/src/stories/common/Table.stories.js b/packages/react-ui/src/stories/common/Table.stories.js new file mode 100644 index 00000000..dbdfb901 --- /dev/null +++ b/packages/react-ui/src/stories/common/Table.stories.js @@ -0,0 +1,61 @@ +import React from 'react'; +import { + Paper, + Table, + TableBody, + TableCell, + TableContainer, + TableHead, + TableRow } from '@material-ui/core'; + +export default { + title: 'Common/Table', + component: Table +} + +function createData(name, calories, fat, carbs, protein) { + return { name, calories, fat, carbs, protein }; +} + +const rows = [ + createData('Frozen yoghurt', 159, 6.0, 24, 4.0), + createData('Ice cream sandwich', 237, 9.0, 37, 4.3), + createData('Eclair', 262, 16.0, 24, 6.0), + createData('Cupcake', 305, 3.7, 67, 4.3), + createData('Gingerbread', 356, 16.0, 49, 3.9), +]; + +const Template = ({ ...args }) => { + return ( + + + + + Dessert (100g serving) + Calories + Fat (g) + Carbs (g) + Protein (g) + + + + {rows.map((row) => ( + + + {row.name} + + {row.calories} + {row.fat} + {row.carbs} + {row.protein} + + ))} + +
+
+ ) +}; + +export const Playground = Template.bind({}); + +