Skip to content

Commit 8a3858f

Browse files
committed
add column sizing rtl support
1 parent a7e7aa0 commit 8a3858f

File tree

151 files changed

+267
-261
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+267
-261
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ body:
66
value: |
77
Thank you for reporting an issue :pray:.
88
9-
This issue tracker is for reporting reproducible bugs or regression's found in [react-table](https://github.com/tanstack/table)
9+
This issue tracker is for reporting reproducible bugs or regression's found in [react-table](https://github.com/armantc/table)
1010
If you have a question about how to achieve or implement something and are struggling, please post a question
11-
inside of react-table's [Discussions tab](https://github.com/tanstack/table/discussions) instead of filing an issue.
11+
inside of react-table's [Discussions tab](https://github.com/armantc/table/discussions) instead of filing an issue.
1212
1313
Before submitting a new bug/issue, please check the links below to see if there is a solution or question posted there already:
14-
- react-table's [Discussions tab](https://github.com/tanstack/table/discussions)
15-
- react-table's [Open Issues](https://github.com/tanstack/table/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc)
16-
- react-table's [Closed Issues](https://github.com/tanstack/table/issues?q=is%3Aissue+sort%3Aupdated-desc+is%3Aclosed)
14+
- react-table's [Discussions tab](https://github.com/armantc/table/discussions)
15+
- react-table's [Open Issues](https://github.com/armantc/table/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc)
16+
- react-table's [Closed Issues](https://github.com/armantc/table/issues?q=is%3Aissue+sort%3Aupdated-desc+is%3Aclosed)
1717
1818
The more information you fill in, the better the community can help you.
1919
@@ -34,7 +34,7 @@ body:
3434
- Your bug may get fixed much faster if we can run your code and it doesn't have dependencies other than React.
3535
- To create a shareable code example for web, you can use CodeSandbox (https://codesandbox.io/s/new) or Stackblitz (https://stackblitz.com/).
3636
- Please make sure the example is complete and runnable without prior dependencies and free of unnecessary abstractions
37-
- Feel free to fork any of the official CodeSandbox examples to reproduce your issue: https://github.com/tanstack/table/tree/main/examples/
37+
- Feel free to fork any of the official CodeSandbox examples to reproduce your issue: https://github.com/armantc/table/tree/main/examples/
3838
- For React Native, you can use: https://snack.expo.dev/
3939
- For TypeScript related issues only, a TypeScript Playground link might be sufficient: https://www.typescriptlang.org/play
4040
- Please read these tips for providing a minimal example: https://stackoverflow.com/help/mcve.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Feature Requests & Questions
4-
url: https://github.com/TanStack/table/discussions
4+
url: https://github.com/armantc/table/discussions
55
about: Please ask and answer questions here.
66
- name: Community Chat
77
url: https://discord.gg/mQd7egN

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ id: contributing
77

88
## Questions
99

10-
If you have questions about implementation details, help or support, then please use our dedicated community forum at [Github Discussions](https://github.com/tanstack/table/discussions) **PLEASE NOTE:** If you choose to instead open an issue for your question, your issue will be immediately closed and redirected to the forum.
10+
If you have questions about implementation details, help or support, then please use our dedicated community forum at [Github Discussions](https://github.com/armantc/table/discussions) **PLEASE NOTE:** If you choose to instead open an issue for your question, your issue will be immediately closed and redirected to the forum.
1111

1212
## Reporting Issues
1313

14-
If you have found what you think is a bug, please [file an issue](https://github.com/tanstack/table/issues/new). **PLEASE NOTE:** Issues that are identified as implementation questions or non-issues will be immediately closed and redirected to [Github Discussions](https://github.com/tanstack/table/discussions)
14+
If you have found what you think is a bug, please [file an issue](https://github.com/armantc/table/issues/new). **PLEASE NOTE:** Issues that are identified as implementation questions or non-issues will be immediately closed and redirected to [Github Discussions](https://github.com/armantc/table/discussions)
1515

1616
## Suggesting new features
1717

@@ -37,7 +37,7 @@ Before proceeding with development, ensure you match one of the following criter
3737
- Starting the dev server with `yarn start`
3838
- To test in your own projects:
3939
- Build/watch for changes with `yarn build`/`yarn dev`
40-
- Link the appropriate package eg. `yarn link @tanstack/react-table`
40+
- Link the appropriate package eg. `yarn link @tanstack-rtl/react-table`
4141
- Document your changes in the appropriate documentation website markdown pages
4242
- Commit your work and open a pull request
4343
- Submit PR for review

README.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
![TanStack Table Header](https://github.com/tanstack/table/raw/main/media/repo-header.png)
1+
![TanStack Table Header](https://github.com/armantc/table/raw/main/media/repo-header.png)
22

3-
# [TanStack](https://tanstack.com) Table v8
3+
# [TanStack](https://tanstack.com) Table v8 , RTL Fixed
44

55
Headless UI for building **powerful tables & datagrids** for **React, Solid, Vue, Svelte and TS/JS**.
66

77
<a href="https://twitter.com/intent/tweet?button_hashtag=TanStack" target="\_parent">
88
<img alt="#TanStack" src="https://img.shields.io/twitter/url?color=%2308a0e9&label=%23TanStack&style=social&url=https%3A%2F%2Ftwitter.com%2Fintent%2Ftweet%3Fbutton_hashtag%3DTanStack" />
9-
</a><a href="https://github.com/tanstack/table/actions?table=workflow%3A%22react-table+tests%22">
10-
<img src="https://github.com/tanstack/table/workflows/react-table%20tests/badge.svg" />
11-
</a><a href="https://npmjs.com/package/@tanstack/react-table" target="\_parent">
12-
<img alt="" src="https://img.shields.io/npm/dm/@tanstack/react-table.svg" />
13-
</a><a href="https://bundlephobia.com/result?p=@tanstack/react-table@latest" target="\_parent">
14-
<img alt="" src="https://badgen.net/bundlephobia/minzip/@tanstack/react-table@latest" />
9+
</a><a href="https://github.com/armantc/table/actions?table=workflow%3A%22react-table+tests%22">
10+
<img src="https://github.com/armantc/table/workflows/react-table%20tests/badge.svg" />
11+
</a><a href="https://npmjs.com/package/@tanstack-rtl/react-table" target="\_parent">
12+
<img alt="" src="https://img.shields.io/npm/dm/@tanstack-rtl/react-table.svg" />
13+
</a><a href="https://bundlephobia.com/result?p=@tanstack-rtl/react-table@latest" target="\_parent">
14+
<img alt="" src="https://badgen.net/bundlephobia/minzip/@tanstack-rtl/react-table@latest" />
1515
</a><a href="#badge">
1616
<img alt="semantic-release" src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg">
17-
</a><a href="https://github.com/tanstack/table/discussions">
17+
</a><a href="https://github.com/armantc/table/discussions">
1818
<img alt="Join the discussion on Github" src="https://img.shields.io/badge/Github%20Discussions%20%26%20Support-Chat%20now!-blue" />
19-
</a><a href="https://github.com/tanstack/table" target="\_parent">
19+
</a><a href="https://github.com/armantc/table" target="\_parent">
2020
<img alt="" src="https://img.shields.io/github/stars/tanstack/react-table.svg?style=social&label=Star" />
2121
</a><a href="https://twitter.com/tannerlinsley" target="\_parent">
2222
<img alt="" src="https://img.shields.io/twitter/follow/tannerlinsley.svg?style=social&label=Follow" />
2323
</a>
2424

25-
> [Looking for version 7 of `react-table`? Click here!](https://github.com/tanstack/table/tree/v7)
25+
> [Looking for version 7 of `react-table`? Click here!](https://github.com/armantc/table/tree/v7)
2626
2727
## Enjoy this library?
2828

29-
Try some other [TanStack](https://tanstack.com) like [React Query](https://github.com/TanStack/query), [React Form](https://github.com/tannerlinsley/react-form), [React Charts](https://github.com/TanStack/react-charts)
29+
Try some other [TanStack](https://tanstack.com) like [React Query](https://github.com/armantc/query), [React Form](https://github.com/tannerlinsley/react-form), [React Charts](https://github.com/armantc/react-charts)
3030

3131
## Visit [tanstack.com/table](https://tanstack.com/table) for docs, guides, API and more!
3232

@@ -109,7 +109,7 @@ There are a fair amount of breaking changes (they're worth it, trust us!):
109109
- [x] Column Sizing
110110
- [x] Pagination
111111
- [x] Row Selection
112-
- [ ] Migrate [Examples](https://github.com/tanstack/table/tree/main/examples)
112+
- [ ] Migrate [Examples](https://github.com/armantc/table/tree/main/examples)
113113
- [x] column-visibility
114114
- [x] column-ordering
115115
- [x] column-pinning
@@ -143,31 +143,31 @@ There are a fair amount of breaking changes (they're worth it, trust us!):
143143

144144
```bash
145145
# Npm
146-
npm install @tanstack/react-table
147-
npm install @tanstack/solid-table
148-
npm install @tanstack/vue-table
149-
npm install @tanstack/svelte-table
146+
npm install @tanstack-rtl/react-table
147+
npm install @tanstack-rtl/solid-table
148+
npm install @tanstack-rtl/vue-table
149+
npm install @tanstack-rtl/svelte-table
150150

151151
#pnpm
152-
pnpm install @tanstack/react-table
153-
pnpm install @tanstack/solid-table
154-
pnpm install @tanstack/vue-table
155-
pnpm install @tanstack/svelte-table
152+
pnpm install @tanstack-rtl/react-table
153+
pnpm install @tanstack-rtl/solid-table
154+
pnpm install @tanstack-rtl/vue-table
155+
pnpm install @tanstack-rtl/svelte-table
156156

157157
#Yarn
158-
yarn add @tanstack/react-table
159-
yarn add @tanstack/solid-table
160-
yarn add @tanstack/vue-table
161-
yarn add @tanstack/svelte-table
158+
yarn add @tanstack-rtl/react-table
159+
yarn add @tanstack-rtl/solid-table
160+
yarn add @tanstack-rtl/vue-table
161+
yarn add @tanstack-rtl/svelte-table
162162
```
163163

164164
## How to help?
165165

166166
- Try out the already-migrated examples
167167
- Try it out in your own projects.
168168
- Introspect the types! Even without the docs finished, the library ships with 100% typescript to help you explore its capabilities.
169-
- [Read the contribution guidelines](https://github.com/tanstack/table/tree/main/CONTRIBUTING.md)
170-
- Write some docs! Start with the [API docs](https://github.com/TanStack/react-table/tree/main/docs/api) and try adding some information about one or more of the features. The types do a decent job of showing what's supported and the capabilities of the library.
169+
- [Read the contribution guidelines](https://github.com/armantc/table/tree/main/CONTRIBUTING.md)
170+
- Write some docs! Start with the [API docs](https://github.com/armantc/react-table/tree/main/docs/api) and try adding some information about one or more of the features. The types do a decent job of showing what's supported and the capabilities of the library.
171171
- Try your hand at migrating an example to v8! The todo list for the examples is above!
172172
- **Using a plugin?** Try rewriting your plugin (v8 doesn't have a plugin system any more) as a functional wrapper that uses TanStack Table internally. The new API is much more powerful and easier to compose. If you find something you can't figure out, let us know and we'll add it to the API.
173173

docs/adapters/react-table.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
title: React Table
33
---
44

5-
The `@tanstack/react-table` adapter is a wrapper around the core table logic. Most of its job is related to managing state the "react" way, providing types and the rendering implementation of cell/header/footer templates.
5+
The `@tanstack-rtl/react-table` adapter is a wrapper around the core table logic. Most of its job is related to managing state the "react" way, providing types and the rendering implementation of cell/header/footer templates.
66

77
## `useReactTable`
88

99
Takes an `options` object and returns a table.
1010

1111
```tsx
12-
import { useReactTable } from '@tanstack/react-table'
12+
import { useReactTable } from '@tanstack-rtl/react-table'
1313

1414
function App() {
1515
const table = useReactTable(options)

docs/adapters/solid-table.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
title: Solid Table
33
---
44

5-
The `@tanstack/solid-table` adapter is a wrapper around the core table logic. Most of it's job is related to managing state the "solid" way, providing types and the rendering implementation of cell/header/footer templates.
5+
The `@tanstack-rtl/solid-table` adapter is a wrapper around the core table logic. Most of it's job is related to managing state the "solid" way, providing types and the rendering implementation of cell/header/footer templates.
66

77
## `createSolidTable`
88

99
Takes an `options` object and returns a table.
1010

1111
```tsx
12-
import { createSolidTable } from '@tanstack/solid-table'
12+
import { createSolidTable } from '@tanstack-rtl/solid-table'
1313

1414
function App() {
1515
const table = createSolidTable(options)

docs/adapters/svelte-table.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Svelte Table
33
---
44

5-
The `@tanstack/svelte-table` adapter is a wrapper around the core table logic. Most of it's job is related to managing state the "svelte" way, providing types and the rendering implementation of cell/header/footer templates.
5+
The `@tanstack-rtl/svelte-table` adapter is a wrapper around the core table logic. Most of it's job is related to managing state the "svelte" way, providing types and the rendering implementation of cell/header/footer templates.
66

77
## `createSvelteTable`
88

@@ -11,7 +11,7 @@ Takes an `options` object and returns a table.
1111
```svelte
1212
<script>
1313
14-
import { createSvelteTable } from '@tanstack/svelte-table'
14+
import { createSvelteTable } from '@tanstack-rtl/svelte-table'
1515
1616
const table = createSvelteTable(options)
1717

docs/adapters/vanilla.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
title: Vanilla TS/JS
33
---
44

5-
The `@tanstack/table-core` library contains the core logic for TanStack Table. If you are using a non-standard framework or don't have access to a framework, you can use the core library directly via TypeScript or JavaScript.
5+
The `@tanstack-rtl/table-core` library contains the core logic for TanStack Table. If you are using a non-standard framework or don't have access to a framework, you can use the core library directly via TypeScript or JavaScript.
66

77
## `createTable`
88

99
Takes an `options` object and returns a table.
1010

1111
```tsx
12-
import { createTable } from '@tanstack/table-core'
12+
import { createTable } from '@tanstack-rtl/table-core'
1313

1414
const table = createTable(options)
1515
```

docs/adapters/vue-table.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
title: Vue Table
33
---
44

5-
The `@tanstack/vue-table` adapter is a wrapper around the core table logic. Most of it's job is related to managing state the "vue" way, providing types and the rendering implementation of cell/header/footer templates.
5+
The `@tanstack-rtl/vue-table` adapter is a wrapper around the core table logic. Most of it's job is related to managing state the "vue" way, providing types and the rendering implementation of cell/header/footer templates.
66

77
## Exports
88

9-
`@tanstack/vue-table` re-exports all of `@tanstack/table-core`'s and the following:
9+
`@tanstack-rtl/vue-table` re-exports all of `@tanstack-rtl/table-core`'s and the following:
1010

1111
### `useVueTable`
1212

1313
Takes an `options` object and returns a table.
1414

1515
```tsx
16-
import { useVueTable } from '@tanstack/vue-table'
16+
import { useVueTable } from '@tanstack-rtl/vue-table'
1717

1818
function App() {
1919
const table = useVueTable(options)
@@ -29,7 +29,7 @@ A Vue component for rendering cell/header/footer templates with dynamic values.
2929
Example:
3030

3131
```vue
32-
import { FlexRender } from '@tanstack/vue-table'
32+
import { FlexRender } from '@tanstack-rtl/vue-table'
3333
3434
<template>
3535
<tbody>

docs/api/core/column-def.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ meta?: ColumnMeta // This interface is extensible via declaration merging. See b
9595
The meta data to associated with the column. We can access it anywhere when the column is available via `column.columnDef.meta`. This type is global to all tables and can be extended like so:
9696

9797
```tsx
98-
import '@tanstack/react-table'
98+
import '@tanstack-rtl/react-table'
9999

100-
declare module '@tanstack/table-core' {
100+
declare module '@tanstack-rtl/table-core' {
101101
interface ColumnMeta<TData extends RowData, TValue> {
102102
foo: string
103103
}

0 commit comments

Comments
 (0)