import e from"../../../../@babel/runtime/helpers/esm/objectWithoutProperties.js";import t from"../../../../@babel/runtime/helpers/esm/extends.js";import*as o from"react";import r from"../../../../prop-types/index.js";import s from"../../../../clsx/dist/clsx.m.js";import a from"../styles/withStyles.js";import i from"./TableContext.js";var l=function(e){return{root:{display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":t({},e.typography.body2,{padding:e.spacing(2),color:e.palette.text.secondary,textAlign:"left",captionSide:"bottom"})},stickyHeader:{borderCollapse:"separate"}}},n=o.forwardRef((function(r,a){var l=r.classes,n=r.className,d=r.component,p=void 0===d?"table":d,c=r.padding,m=void 0===c?"default":c,u=r.size,b=void 0===u?"medium":u,f=r.stickyHeader,y=void 0!==f&&f,g=e(r,["classes","className","component","padding","size","stickyHeader"]),v=o.useMemo((function(){return{padding:m,size:b,stickyHeader:y}}),[m,b,y]);return o.createElement(i.Provider,{value:v},o.createElement(p,t({role:"table"===p?null:"table",ref:a,className:s(l.root,n,y&&l.stickyHeader)},g)))}));"production"!==process.env.NODE_ENV&&(n.propTypes={children:r.node.isRequired,classes:r.object.isRequired,className:r.string,component:r.elementType,padding:r.oneOf(["default","checkbox","none"]),size:r.oneOf(["small","medium"]),stickyHeader:r.bool});var d=a(l,{name:"MuiTable"})(n);export default d;export{l as styles};
//# sourceMappingURL=Table.js.map
