@stackframe/stack-ui 2.5.20 → 2.5.22

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.22
4
+
5
+ ### Patch Changes
6
+
7
+ - Team metadata
8
+ - Updated dependencies
9
+ - @stackframe/stack-shared@2.5.22
10
+
11
+ ## 2.5.21
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+ - @stackframe/stack-shared@2.5.21
17
+
3
18
  ## 2.5.20
4
19
 
5
20
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  import { Table } from "@tanstack/react-table";
2
2
  export declare function SearchToolbarItem<TData>(props: {
3
3
  table: Table<TData>;
4
- keyName: string;
4
+ keyName?: string | null;
5
5
  placeholder: string;
6
6
  }): import("react/jsx-runtime").JSX.Element;
@@ -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() ?? ""}`, onChange: (event) => props.table.getColumn(props.keyName)?.setFilterValue(event.target.value), className: "h-8 w-[150px] lg:w-[250px]" }));
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.20",
3
+ "version": "2.5.22",
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.20"
71
+ "@stackframe/stack-shared": "2.5.22"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@types/react": "^18.2.66",