@undevy-org/tablewright 0.2.0 → 0.2.1

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.
@@ -14,6 +14,7 @@ export interface TableOrchestrationState<TViewKey extends string = string> {
14
14
  page: number;
15
15
  rowsPerPage: number;
16
16
  density: "normal" | "dense";
17
+ /** @deprecated Demo-only: it only spins for a fixed time (700 ms by default) and refetches nothing. Keep refresh state in your data layer (e.g. your query's `isFetching`). Will be removed in a future minor release. */
17
18
  isRefreshing: boolean;
18
19
  selectedIds: Set<string>;
19
20
  activeView: TViewKey;
@@ -43,6 +44,7 @@ export interface TableOrchestrationActions<TViewKey extends string = string> {
43
44
  setPage: (p: number) => void;
44
45
  setRowsPerPage: (n: number) => void;
45
46
  setDensity: (v: "normal" | "dense") => void;
47
+ /** @deprecated Demo-only: it only spins for a fixed time (700 ms by default) and refetches nothing. Keep refresh state in your data layer (e.g. your query's `isFetching`). Will be removed in a future minor release. */
46
48
  startRefresh: (durationMs?: number) => void;
47
49
  setSelectedIds: (next: Set<string> | ((prev: Set<string>) => Set<string>)) => void;
48
50
  toggleRowSelection: (id: string) => void;
@@ -53,6 +53,7 @@ export interface TableOrchestrationReturn<TRow extends object, TViewKey extends
53
53
  rowsPerPage: number;
54
54
  density: "normal" | "dense";
55
55
  setDensity: (v: "normal" | "dense") => void;
56
+ /** @deprecated Demo-only: it only spins for a fixed time (700 ms by default) and refetches nothing. Keep refresh state in your data layer (e.g. your query's `isFetching`). Will be removed in a future minor release. */
56
57
  isRefreshing: boolean;
57
58
  selectedIds: Set<string>;
58
59
  setSelectedIds: React.Dispatch<React.SetStateAction<Set<string>>>;
@@ -101,6 +102,7 @@ export interface TableOrchestrationReturn<TRow extends object, TViewKey extends
101
102
  handleRemoveSort: () => void;
102
103
  handleRemoveCustomFilter: () => void;
103
104
  handleClearAll: () => void;
105
+ /** @deprecated Demo-only: it only spins for a fixed time (700 ms by default) and refetches nothing. Keep refresh state in your data layer (e.g. your query's `isFetching`). Will be removed in a future minor release. */
104
106
  handleRefresh: () => void;
105
107
  handleToggleRowSelection: (id: string) => void;
106
108
  handleToggleHeaderCheck: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@undevy-org/tablewright",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "React data-table and application-shell components: filters, drawers, row controls, sortable and resizable columns, built on Radix UI and TanStack Table.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,8 +0,0 @@
1
- export type DemoTheme = "light" | "dark";
2
- /**
3
- * Theme state for story demos that render a live theme switch (e.g.
4
- * SidebarAccountMenu). Callers apply the returned theme to a `data-theme`
5
- * attribute on a wrapper element around their own content — this hook only
6
- * owns the state and its localStorage persistence, not the DOM write.
7
- */
8
- export declare function useDemoTheme(): [DemoTheme, (theme: DemoTheme) => void];