var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");var _react=_interopRequireDefault(require("react"));var _components=require("@bluebase/components");var _TableBody=require("../../TableBody");var _TableCell=require("../../TableCell");var _TableRow=require("../../TableRow");var _storybookAddon=_interopRequireDefault(require("@bluebase/storybook-addon"));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:23,columnNumber:2}},_react.default.createElement(_components.Table.Head,{__source:{fileName:_jsxFileName,lineNumber:24,columnNumber:3}},_react.default.createElement(_components.Table.Cell,{__source:{fileName:_jsxFileName,lineNumber:25,columnNumber:4}},"Dessert (100g serving)"),_react.default.createElement(_TableCell.TableCell,{__source:{fileName:_jsxFileName,lineNumber:26,columnNumber:4}},"Calories"),_react.default.createElement(_TableCell.TableCell,{__source:{fileName:_jsxFileName,lineNumber:27,columnNumber:4}},"Fat (g)"),_react.default.createElement(_TableCell.TableCell,{__source:{fileName:_jsxFileName,lineNumber:28,columnNumber:4}},"Carbs (g)"),_react.default.createElement(_TableCell.TableCell,{__source:{fileName:_jsxFileName,lineNumber:29,columnNumber:4}},"Protein (g)")),_react.default.createElement(_TableBody.TableBody,{__source:{fileName:_jsxFileName,lineNumber:31,columnNumber:3}},rows.map(function(row){return _react.default.createElement(_TableRow.TableRow,{key:row.id,__source:{fileName:_jsxFileName,lineNumber:33,columnNumber:5}},_react.default.createElement(_TableCell.TableCell,{__source:{fileName:_jsxFileName,lineNumber:34,columnNumber:6}},row.name),_react.default.createElement(_TableCell.TableCell,{__source:{fileName:_jsxFileName,lineNumber:35,columnNumber:6}},row.calories),_react.default.createElement(_TableCell.TableCell,{__source:{fileName:_jsxFileName,lineNumber:36,columnNumber:6}},row.fat),_react.default.createElement(_TableCell.TableCell,{__source:{fileName:_jsxFileName,lineNumber:37,columnNumber:6}},row.carbs),_react.default.createElement(_TableCell.TableCell,{__source:{fileName:_jsxFileName,lineNumber:38,columnNumber:6}},row.protein));})));});