jbetancur / react-data-table-component

A responsive table library with built-in sorting, pagination, selection, expandable rows, and customizable styling.
https://react-data-table-component.netlify.app
Apache License 2.0
2.03k stars 409 forks source link

export type ExpandableRowsComponent from root instead of "react-data-table-component/dist/src/DataTable/types" #1210

Open khuramshahzadk opened 6 months ago

khuramshahzadk commented 6 months ago

Issue Check list

Describe the bug

prop type for expandableRowsComponent?: ExpandableRowsComponent<T>; is currently not exporting from root like import DataTable, { TableColumn, TableStyles } from "react-data-table-component";

To Reproduce

If we import it from react-data-table-component/dist/src/DataTable/types netlify build gets failed.

Expected behavior

prop type should be imported like import { ExpandableRowsComponent, } from "react-data-table-component"; instead of import { ExpandableRowsComponent, } from "react-data-table-component/dist/src/DataTable/types";