Skip to content

Commit

Permalink
update types
Browse files Browse the repository at this point in the history
  • Loading branch information
mckervinc committed Dec 12, 2024
1 parent f27256d commit 5517878
Show file tree
Hide file tree
Showing 7 changed files with 759 additions and 1,905 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# react-fluid-table

> A React table inspired by react-window
(Note: This project is under construction)
> A React table inspired by @tanstack/react-virtual
[![NPM](https://img.shields.io/npm/v/react-fluid-table?style=flat-square)](https://www.npmjs.com/package/react-fluid-table) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square)](https://standardjs.com)

Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@
},
"volta": {
"node": "18.18.0",
"yarn": "1.22.19"
"yarn": "1.22.22"
}
}
2 changes: 1 addition & 1 deletion example/src/examples/09-scroll.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const Example = () => {
</Group>
</Form>
</Wrapper>
<Table boers tableHeight={400} ref={ref} data={data} columns={columns} />
<Table tableHeight={400} ref={ref} data={data} columns={columns} />
</>
);
};
Expand Down
686 changes: 335 additions & 351 deletions example/yarn.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,6 @@ export type TableProps<T> = {
};

/**
* A virtualized table build on top of `react-window`.
* A virtualized table build on top of `@tanstack/react-virtual`.
*/
export const Table: <T>(props: TableProps<T>) => JSX.Element;
export const Table: <T>(props: TableProps<T> & { ref?: React.RefObject<TableRef> }) => JSX.Element;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-fluid-table",
"version": "1.0.0",
"description": "A React table inspired by react-window",
"description": "A React table inspired by @tanstack/react-virtual",
"author": "Mckervin Ceme <mckervinc@live.com>",
"license": "MIT",
"repository": {
Expand Down
1,964 changes: 418 additions & 1,546 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 5517878

Please sign in to comment.