rockin 0.0.18 → 0.0.19

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.
@@ -38,6 +38,18 @@ declare function useDataTable<TData>(): DataTableContextValue<TData>;
38
38
  declare function DataTableRoot<TData>({ data, columns, children, isLoading, pageSize, getRowId, className, }: DataTableRootProps<TData>): React.JSX.Element;
39
39
 
40
40
  type CellState = "valid" | "invalid" | "pending";
41
+ type GridComboboxOption = {
42
+ label: string;
43
+ value: string;
44
+ };
45
+ type GridAsyncComboboxCellProps = {
46
+ value?: string;
47
+ onChange?: (value: string, option?: GridComboboxOption) => void;
48
+ loadOptions: (query: string) => Promise<GridComboboxOption[]>;
49
+ placeholder?: string;
50
+ minQueryLength?: number;
51
+ debounceMs?: number;
52
+ };
41
53
  type DataGridValue = string | number | boolean | null | undefined;
42
54
  type DataGridApi<TData extends Record<string, unknown>> = {
43
55
  rows: TData[];
@@ -96,13 +108,11 @@ declare function GridNumberCell({ value, onChange, }: {
96
108
  onChange?: (value: number) => void;
97
109
  }): React.JSX.Element;
98
110
  declare function GridComboboxCell({ options, value, onChange, }: {
99
- options: {
100
- label: string;
101
- value: string;
102
- }[];
111
+ options: GridComboboxOption[];
103
112
  value?: string;
104
113
  onChange?: (value: string) => void;
105
114
  }): React.JSX.Element;
115
+ declare function GridAsyncComboboxCell({ value, onChange, loadOptions, placeholder, minQueryLength, debounceMs, }: GridAsyncComboboxCellProps): React.JSX.Element;
106
116
  declare function DataTableColumnResize(): React.JSX.Element;
107
117
  declare function DataGridClipboard({ children, }: {
108
118
  children?: React.ReactNode;
@@ -114,4 +124,4 @@ declare function DataGridMove({ children }: {
114
124
  children?: React.ReactNode;
115
125
  }): React.JSX.Element;
116
126
 
117
- export { type CellState as C, type DataGridApi as D, GridComboboxCell as G, type UseDataGridOptions as U, useDataTable as a, DataGrid as b, DataGridCell as c, DataGridClipboard as d, DataGridColumn as e, DataGridFillHandle as f, DataGridMove as g, DataGridRow as h, type DataTableColumn as i, type DataTableColumnDef as j, DataTableColumnResize as k, DataTableRoot as l, type DataTableRootProps as m, GridNumberCell as n, GridTextCell as o, useDataGrid as u };
127
+ export { type CellState as C, type DataGridApi as D, GridAsyncComboboxCell as G, type UseDataGridOptions as U, useDataTable as a, DataGrid as b, DataGridCell as c, DataGridClipboard as d, DataGridColumn as e, DataGridFillHandle as f, DataGridMove as g, DataGridRow as h, type DataTableColumn as i, type DataTableColumnDef as j, DataTableColumnResize as k, DataTableRoot as l, type DataTableRootProps as m, type GridAsyncComboboxCellProps as n, GridComboboxCell as o, type GridComboboxOption as p, GridNumberCell as q, GridTextCell as r, useDataGrid as u };
@@ -1,5 +1,5 @@
1
- import { D as DataGridApi } from '../data-grid-C0CBtxDL.js';
2
- export { u as useDataGrid, a as useDataTable } from '../data-grid-C0CBtxDL.js';
1
+ import { D as DataGridApi } from '../data-grid-CUn4qqSF.js';
2
+ export { u as useDataGrid, a as useDataTable } from '../data-grid-CUn4qqSF.js';
3
3
  export { NuqsAdapter } from 'nuqs/adapters/next/app';
4
4
  import 'react';
5
5
 
@@ -17,7 +17,7 @@ import {
17
17
  useDataTableSearch,
18
18
  useMediaQuery,
19
19
  useMounted
20
- } from "../chunk-ULUHD3E2.js";
20
+ } from "../chunk-J2SGPPFU.js";
21
21
  import "../chunk-ATPUW3SQ.js";
22
22
 
23
23
  // src/hooks/useSearchParams.ts
@@ -21,7 +21,7 @@ import { Combobox as Combobox$1 } from '@base-ui/react';
21
21
  import { Command as Command$1 } from 'cmdk';
22
22
  export { useCommandState } from 'cmdk';
23
23
  import { Dialog as Dialog$1 } from '@base-ui/react/dialog';
24
- export { C as CellState, b as DataGrid, D as DataGridApi, c as DataGridCell, d as DataGridClipboard, e as DataGridColumn, e as DataGridColumnDef, f as DataGridFillHandle, g as DataGridMove, h as DataGridRow, i as DataTableColumn, j as DataTableColumnDef, k as DataTableColumnResize, l as DataTableRoot, m as DataTableRootProps, G as GridComboboxCell, n as GridNumberCell, o as GridTextCell, U as UseDataGridOptions } from '../data-grid-C0CBtxDL.js';
24
+ export { C as CellState, b as DataGrid, D as DataGridApi, c as DataGridCell, d as DataGridClipboard, e as DataGridColumn, e as DataGridColumnDef, f as DataGridFillHandle, g as DataGridMove, h as DataGridRow, i as DataTableColumn, j as DataTableColumnDef, k as DataTableColumnResize, l as DataTableRoot, m as DataTableRootProps, G as GridAsyncComboboxCell, n as GridAsyncComboboxCellProps, o as GridComboboxCell, p as GridComboboxOption, q as GridNumberCell, r as GridTextCell, U as UseDataGridOptions } from '../data-grid-CUn4qqSF.js';
25
25
  import { LucideIcon } from 'lucide-react';
26
26
  import { Drawer as Drawer$1 } from '@base-ui/react/drawer';
27
27
  import { Menu } from '@base-ui/react/menu';