var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");var _react=_interopRequireDefault(require("react"));var _components=require("@bluebase/components");var _storybookAddon=_interopRequireDefault(require("@bluebase/storybook-addon"));var _TableCell=require("../../TableCell");var _TableRow=require("../../TableRow");var _TableHead=require("../../TableHead");var _TableBody=require("../../TableBody");var _jsxFileName="/home/travis/build/BlueBaseJS/plugin-material-ui/src/components/Table/_stories_/Table.stories.tsx";var stories=(0,_storybookAddon.default)('Table',module);var id=0;function createData(name,calories,fat,carbs,protein){id+=1;return{id:id,name:name,calories:calories,fat:fat,carbs:carbs,protein:protein};}var 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)];stories.add('Table',function(){return _react.default.createElement(_components.Table,{__source:{fileName:_jsxFileName,lineNumber:24}},_react.default.createElement(_TableHead.TableHead,{__source:{fileName:_jsxFileName,lineNumber:25}},_react.default.createElement(_TableRow.TableRow,{__source:{fileName:_jsxFileName,lineNumber:26}},_react.default.createElement(_TableCell.TableCell,{__source:{fileName:_jsxFileName,lineNumber:27}},"Dessert (100g serving)"),_react.default.createElement(_TableCell.TableCell,{__source:{fileName:_jsxFileName,lineNumber:28}},"Calories"),_react.default.createElement(_TableCell.TableCell,{__source:{fileName:_jsxFileName,lineNumber:29}},"Fat (g)"),_react.default.createElement(_TableCell.TableCell,{__source:{fileName:_jsxFileName,lineNumber:30}},"Carbs (g)"),_react.default.createElement(_TableCell.TableCell,{__source:{fileName:_jsxFileName,lineNumber:31}},"Protein (g)"))),_react.default.createElement(_TableBody.TableBody,{__source:{fileName:_jsxFileName,lineNumber:34}},rows.map(function(row){return _react.default.createElement(_TableRow.TableRow,{key:row.id,__source:{fileName:_jsxFileName,lineNumber:36}},_react.default.createElement(_TableCell.TableCell,{__source:{fileName:_jsxFileName,lineNumber:37}},row.name),_react.default.createElement(_TableCell.TableCell,{__source:{fileName:_jsxFileName,lineNumber:38}},row.calories),_react.default.createElement(_TableCell.TableCell,{__source:{fileName:_jsxFileName,lineNumber:39}},row.fat),_react.default.createElement(_TableCell.TableCell,{__source:{fileName:_jsxFileName,lineNumber:40}},row.carbs),_react.default.createElement(_TableCell.TableCell,{__source:{fileName:_jsxFileName,lineNumber:41}},row.protein));})));});