@stackframe/stack-ui 2.5.21 → 2.5.23
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @stackframe/stack-ui
|
|
2
2
|
|
|
3
|
+
## 2.5.23
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Various bugfixes and performance improvements
|
|
8
|
+
- @stackframe/stack-shared@2.5.23
|
|
9
|
+
|
|
10
|
+
## 2.5.22
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Team metadata
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
- @stackframe/stack-shared@2.5.22
|
|
17
|
+
|
|
3
18
|
## 2.5.21
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from "@stackframe/stack-ui";
|
|
4
|
-
import { flexRender, getCoreRowModel, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getPaginationRowModel, getSortedRowModel, useReactTable, } from "@tanstack/react-table";
|
|
4
|
+
import { GlobalFiltering, flexRender, getCoreRowModel, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getPaginationRowModel, getSortedRowModel, useReactTable, } from "@tanstack/react-table";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { DataTablePagination } from "./pagination";
|
|
7
7
|
import { DataTableToolbar } from "./toolbar";
|
|
@@ -24,12 +24,14 @@ export function DataTable({ columns, data, toolbarRender, defaultVisibility, })
|
|
|
24
24
|
onSortingChange: setSorting,
|
|
25
25
|
onColumnFiltersChange: setColumnFilters,
|
|
26
26
|
onColumnVisibilityChange: setColumnVisibility,
|
|
27
|
+
getColumnCanGlobalFilter: (c) => c.columnDef.enableGlobalFilter ?? GlobalFiltering.getDefaultOptions(table).getColumnCanGlobalFilter(c),
|
|
27
28
|
getCoreRowModel: getCoreRowModel(),
|
|
28
29
|
getFilteredRowModel: getFilteredRowModel(),
|
|
29
30
|
getPaginationRowModel: getPaginationRowModel(),
|
|
30
31
|
getSortedRowModel: getSortedRowModel(),
|
|
31
32
|
getFacetedRowModel: getFacetedRowModel(),
|
|
32
33
|
getFacetedUniqueValues: getFacetedUniqueValues(),
|
|
34
|
+
autoResetAll: false,
|
|
33
35
|
});
|
|
34
36
|
return (_jsxs("div", { className: "space-y-4", children: [_jsx(DataTableToolbar, { table: table, toolbarRender: toolbarRender }), _jsx("div", { className: "rounded-md border", children: _jsxs(Table, { children: [_jsx(TableHeader, { children: table.getHeaderGroups().map((headerGroup) => (_jsx(TableRow, { children: headerGroup.headers.map((header) => {
|
|
35
37
|
return (_jsx(TableHead, { colSpan: header.colSpan, children: header.isPlaceholder
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Input } from "../..";
|
|
3
3
|
export function SearchToolbarItem(props) {
|
|
4
|
-
return (_jsx(Input, { placeholder: props.placeholder, value: `${props.table.getColumn(props.keyName)?.getFilterValue() ?? ""}
|
|
4
|
+
return (_jsx(Input, { placeholder: props.placeholder, value: props.keyName ? `${props.table.getColumn(props.keyName)?.getFilterValue() ?? ""}` : props.table.getState().globalFilter ?? "", onChange: (event) => props.keyName ? props.table.getColumn(props.keyName)?.setFilterValue(event.target.value) : props.table.setGlobalFilter(event.target.value), className: "h-8 w-[150px] lg:w-[250px]" }));
|
|
5
5
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackframe/stack-ui",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.23",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"react-hook-form": "^7.51.4",
|
|
69
69
|
"react-resizable-panels": "^2.0.19",
|
|
70
70
|
"tailwind-merge": "^2.3.0",
|
|
71
|
-
"@stackframe/stack-shared": "2.5.
|
|
71
|
+
"@stackframe/stack-shared": "2.5.23"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@types/react": "^18.2.66",
|