{"version":3,"file":"TableFooter.cjs","sources":["../../../../src/components/table/TableFooter.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport React, { forwardRef } from \"react\";\nimport { TableSectionContextProvider } from \"./tableSectionContext.js\";\nimport type { TableFooterProps } from \"./types.js\";\n\nconst TableFooter = forwardRef<HTMLTableSectionElement, TableFooterProps>(\n    ({ className, ...rest }, ref) => {\n        return (\n            <TableSectionContextProvider\n                state={{\n                    isTableHead: false,\n                    isTableBody: false,\n                    isTableFooter: true,\n                }}\n            >\n                <tfoot\n                    className={clsx(\"jkl-table-foot\", className)}\n                    {...rest}\n                    ref={ref}\n                />\n            </TableSectionContextProvider>\n        );\n    },\n);\n\nTableFooter.displayName = \"TableFooter\";\n\nexport { TableFooter };\n"],"names":["TableFooter","forwardRef","className","rest","ref","jsx","TableSectionContextProvider","state","isTableHead","isTableBody","isTableFooter","children","clsx","displayName"],"mappings":"uNAKMA,EAAcC,EAAAA,WAChB,EAAGC,UAAAA,KAAcC,GAAQC,IAEjBC,EAAAA,IAACC,EAAAA,4BAAA,CACGC,MAAO,CACHC,aAAa,EACbC,aAAa,EACbC,eAAe,GAGnBC,SAAAN,EAAAA,IAAC,QAAA,CACGH,UAAWU,EAAAA,KAAK,iBAAkBV,MAC9BC,EACJC,IAAAA,OAOpBJ,EAAYa,YAAc"}