{"version":3,"file":"tree.cjs","names":["extendFeature","slotRender","TREE_CELL","TREE_TOGGLE","tree","core","TreeCell","TreeToggle","options","props"],"sources":["../src/tree.tsx"],"sourcesContent":["import {\n  extendFeature,\n  slotRender,\n  type TableFeature,\n  TREE_CELL,\n  TREE_TOGGLE,\n} from \"@adapttable/react/adapter\";\nimport { tree as core } from \"@adapttable/react/features\";\n\nimport { TreeCell, TreeToggle } from \"./components/kitControls\";\n\n/**\n * Render rows as an expandable tree, with MUI's own chevron.\n *\n * @public\n */\nexport function tree<TRow>(\n  options: Parameters<typeof core<TRow>>[0]\n): TableFeature<TRow> {\n  return extendFeature(core(options), [\n    slotRender(TREE_CELL, (props) => <TreeCell {...props} />),\n    slotRender(TREE_TOGGLE, (props) => <TreeToggle {...props} />),\n  ]);\n}\n"],"mappings":";;;;;;;;;;;;AAgBA,SAAgBI,KACdI,SACoB;CACpB,QAAA,GAAOR,0BAAAA,cAAAA,EAAAA,GAAcK,2BAAAA,KAAAA,CAAKG,OAAO,GAAG,EAAA,GAClCP,0BAAAA,WAAAA,CAAWC,0BAAAA,YAAYO,UAAU,iBAAA,GAAA,kBAAA,IAAA,CAAC,oBAAA,UAAD,EAAU,GAAIA,MAAM,CAAA,CAAG,IAAA,GACxDR,0BAAAA,WAAAA,CAAWE,0BAAAA,cAAcM,UAAU,iBAAA,GAAA,kBAAA,IAAA,CAAC,oBAAA,YAAD,EAAY,GAAIA,MAAM,CAAA,CAAG,CAAC,CAC9D;AACH"}