| 143256 | }; |
| 143257 | |
| 143258 | const Table = props => { |
| 143259 | return (0, _tsxCreateElement.createElement)("table", { |
| 143260 | className: props.className |
| 143261 | }, props.children, props.rows.map((row, i) => (0, _tsxCreateElement.createElement)("tr", { |
| 143262 | className: props.rowClassName || '', |
| 143263 | onClick: e => props.onRowClick && props.onRowClick(e, i), |
| 143264 | tabIndex: props.onRowClick ? 0 : -1, |
| 143265 | onKeyUp: e => { |
| 143266 | if (e.keyCode === KeyCodes.ENTER && props.onRowClick) { |
| 143267 | props.onRowClick(e, i); |
| 143268 | } |
| 143269 | } |
| 143270 | }, row.cells.map((cell, i) => (0, _tsxCreateElement.createElement)("td", { |
| 143271 | className: cell.className || '', |
| 143272 | title: cell.title || '' |
| 143273 | }, cell.content))))); |
| 143274 | }; |
| 143275 | |
| 143276 | exports.Table = Table; |
| 143277 | },{"tsx-create-element":"RooA"}],"EXu7":[function(require,module,exports) { |