react-glide-table 2.2.1 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -30
- package/dist/compound.cjs +561 -139
- package/dist/compound.d.cts +2 -2
- package/dist/compound.d.ts +2 -2
- package/dist/compound.js +465 -43
- package/dist/core.cjs +491 -137
- package/dist/core.d.cts +46 -7
- package/dist/core.d.ts +46 -7
- package/dist/core.js +378 -25
- package/dist/index.cjs +590 -166
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +466 -43
- package/dist/{types-CnsQ8GZb.d.cts → types-DdeVn-9s.d.cts} +23 -6
- package/dist/{types-CnsQ8GZb.d.ts → types-DdeVn-9s.d.ts} +23 -6
- package/package.json +1 -1
|
@@ -220,9 +220,23 @@ declare module "@tanstack/react-table" {
|
|
|
220
220
|
* Defaults to true.
|
|
221
221
|
*/
|
|
222
222
|
reorderable?: boolean;
|
|
223
|
-
/**
|
|
223
|
+
/**
|
|
224
|
+
* Explicit `Column.width` when provided. Used to distinguish fixed columns
|
|
225
|
+
* from flexible / min-max bounded columns during layout.
|
|
226
|
+
*/
|
|
227
|
+
width?: number;
|
|
228
|
+
/**
|
|
229
|
+
* Minimum column width in px. Independent of column resize.
|
|
230
|
+
* With `maxWidth` and no `width`, layout picks a size in this range
|
|
231
|
+
* (preferring `maxWidth` when space allows) and leaves leftover space
|
|
232
|
+
* to unconstrained columns.
|
|
233
|
+
*/
|
|
224
234
|
minWidth?: number;
|
|
225
|
-
/**
|
|
235
|
+
/**
|
|
236
|
+
* Maximum column width in px. Independent of column resize.
|
|
237
|
+
* With `minWidth` and no `width`, layout prefers this size when space
|
|
238
|
+
* allows, then shrinks toward `minWidth` if the viewport is tight.
|
|
239
|
+
*/
|
|
226
240
|
maxWidth?: number;
|
|
227
241
|
}
|
|
228
242
|
interface CellContext<TData, TValue> {
|
|
@@ -550,13 +564,16 @@ type TableColumnProps<T extends Record<string, unknown>, K extends string = keyo
|
|
|
550
564
|
/** Initial / default column width in px (TanStack `size`) */
|
|
551
565
|
width?: number;
|
|
552
566
|
/**
|
|
553
|
-
*
|
|
554
|
-
*
|
|
567
|
+
* Minimum column width in px. Independent of `enableColumnResize` / `minResizeWidth`.
|
|
568
|
+
* With `maxWidth` and no `width`, layout resolves a size in `[minWidth, maxWidth]`,
|
|
569
|
+
* preferring `maxWidth` when space allows, and leaves leftover space to columns
|
|
570
|
+
* without `width`.
|
|
555
571
|
*/
|
|
556
572
|
minWidth?: number;
|
|
557
573
|
/**
|
|
558
|
-
*
|
|
559
|
-
*
|
|
574
|
+
* Maximum column width in px. Independent of `enableColumnResize` / `maxResizeWidth`.
|
|
575
|
+
* With `minWidth` and no `width`, layout prefers this size when space allows,
|
|
576
|
+
* then shrinks toward `minWidth` if the viewport is tight.
|
|
560
577
|
*/
|
|
561
578
|
maxWidth?: number;
|
|
562
579
|
/** Minimum drag-resize width in px. Defaults to the table min when omitted */
|
|
@@ -220,9 +220,23 @@ declare module "@tanstack/react-table" {
|
|
|
220
220
|
* Defaults to true.
|
|
221
221
|
*/
|
|
222
222
|
reorderable?: boolean;
|
|
223
|
-
/**
|
|
223
|
+
/**
|
|
224
|
+
* Explicit `Column.width` when provided. Used to distinguish fixed columns
|
|
225
|
+
* from flexible / min-max bounded columns during layout.
|
|
226
|
+
*/
|
|
227
|
+
width?: number;
|
|
228
|
+
/**
|
|
229
|
+
* Minimum column width in px. Independent of column resize.
|
|
230
|
+
* With `maxWidth` and no `width`, layout picks a size in this range
|
|
231
|
+
* (preferring `maxWidth` when space allows) and leaves leftover space
|
|
232
|
+
* to unconstrained columns.
|
|
233
|
+
*/
|
|
224
234
|
minWidth?: number;
|
|
225
|
-
/**
|
|
235
|
+
/**
|
|
236
|
+
* Maximum column width in px. Independent of column resize.
|
|
237
|
+
* With `minWidth` and no `width`, layout prefers this size when space
|
|
238
|
+
* allows, then shrinks toward `minWidth` if the viewport is tight.
|
|
239
|
+
*/
|
|
226
240
|
maxWidth?: number;
|
|
227
241
|
}
|
|
228
242
|
interface CellContext<TData, TValue> {
|
|
@@ -550,13 +564,16 @@ type TableColumnProps<T extends Record<string, unknown>, K extends string = keyo
|
|
|
550
564
|
/** Initial / default column width in px (TanStack `size`) */
|
|
551
565
|
width?: number;
|
|
552
566
|
/**
|
|
553
|
-
*
|
|
554
|
-
*
|
|
567
|
+
* Minimum column width in px. Independent of `enableColumnResize` / `minResizeWidth`.
|
|
568
|
+
* With `maxWidth` and no `width`, layout resolves a size in `[minWidth, maxWidth]`,
|
|
569
|
+
* preferring `maxWidth` when space allows, and leaves leftover space to columns
|
|
570
|
+
* without `width`.
|
|
555
571
|
*/
|
|
556
572
|
minWidth?: number;
|
|
557
573
|
/**
|
|
558
|
-
*
|
|
559
|
-
*
|
|
574
|
+
* Maximum column width in px. Independent of `enableColumnResize` / `maxResizeWidth`.
|
|
575
|
+
* With `minWidth` and no `width`, layout prefers this size when space allows,
|
|
576
|
+
* then shrinks toward `minWidth` if the viewport is tight.
|
|
560
577
|
*/
|
|
561
578
|
maxWidth?: number;
|
|
562
579
|
/** Minimum drag-resize width in px. Defaults to the table min when omitted */
|