@rafal.lemieszewski/tide-ui 0.38.2 → 0.40.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/dist/components/ui/data-table.d.ts +17 -5
- package/dist/index.cjs.js +1666 -1666
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +11786 -11785
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -127,15 +127,27 @@ export interface DataTableProps<TData, TValue> {
|
|
|
127
127
|
* only a single item. This flattens single-item groups to show only
|
|
128
128
|
* the parent row, reducing visual redundancy.
|
|
129
129
|
*
|
|
130
|
-
*
|
|
130
|
+
* Per-column configuration using column ID as key:
|
|
131
131
|
* - Groups with 1 item: Only parent row shown (not expandable)
|
|
132
132
|
* - Groups with 2+ items: Parent + expandable children shown normally
|
|
133
133
|
*
|
|
134
|
-
* @default false
|
|
135
134
|
* @example
|
|
136
|
-
* hideChildrenForSingleItemGroups={true}
|
|
135
|
+
* hideChildrenForSingleItemGroups={{ category: true, status: false }}
|
|
137
136
|
*/
|
|
138
|
-
hideChildrenForSingleItemGroups?: boolean
|
|
137
|
+
hideChildrenForSingleItemGroups?: Record<string, boolean>;
|
|
138
|
+
/**
|
|
139
|
+
* When both this and hideChildrenForSingleItemGroups are enabled for a column,
|
|
140
|
+
* removes the expander button spacer for groups without expandable children.
|
|
141
|
+
* This eliminates the left padding for single-item groups, improving visual alignment.
|
|
142
|
+
*
|
|
143
|
+
* Per-column configuration using column ID as key.
|
|
144
|
+
* Only takes effect when hideChildrenForSingleItemGroups is also enabled for that column.
|
|
145
|
+
*
|
|
146
|
+
* @example
|
|
147
|
+
* hideChildrenForSingleItemGroups={{ category: true, status: true }}
|
|
148
|
+
* hideExpanderForSingleItemGroups={{ category: true, status: true }}
|
|
149
|
+
*/
|
|
150
|
+
hideExpanderForSingleItemGroups?: Record<string, boolean>;
|
|
139
151
|
enableRowPinning?: boolean;
|
|
140
152
|
keepPinnedRows?: boolean;
|
|
141
153
|
enableVirtualization?: boolean;
|
|
@@ -171,7 +183,7 @@ export interface DataTableProps<TData, TValue> {
|
|
|
171
183
|
renderSectionHeaderRow?: (row: any) => React.ReactNode | null;
|
|
172
184
|
autoExpandChildren?: boolean;
|
|
173
185
|
}
|
|
174
|
-
export declare function DataTable<TData, TValue>({ columns, data, searchKey, searchPlaceholder, title, className, stickyHeader, stickyFirstColumn, stickyLeftColumns, stickyRightColumns, enableResponsiveWrapper, showScrollIndicators, isLoading, loadingRowCount, borderStyle, enableGlobalSearch, globalSearchPlaceholder, enableGlobalFaceting, enableColumnResizing, columnResizeMode, enableColumnResizePersistence, storageKey, enableExpanding, getSubRows, enableGrouping, groupedColumnMode, enableManualGrouping, groupDisplayColumn, hideChildrenForSingleItemGroups, enableRowPinning, keepPinnedRows, enableVirtualization, nestedHeaders, enableNestedHeaders, enableColumnOrdering, enableRowSelection, showHeader, showPagination, onTableReady, initialState, sorting: controlledSorting, onSortingChange: onControlledSortingChange, columnVisibility: controlledColumnVisibility, onColumnVisibilityChange: onControlledColumnVisibilityChange, grouping: controlledGrouping, onGroupingChange: onControlledGroupingChange, columnOrder: controlledColumnOrder, onColumnOrderChange: onControlledColumnOrderChange, columnSizing: controlledColumnSizing, onColumnSizingChange: onControlledColumnSizingChange, renderSectionHeaderRow, autoExpandChildren, }: DataTableProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
|
|
186
|
+
export declare function DataTable<TData, TValue>({ columns, data, searchKey, searchPlaceholder, title, className, stickyHeader, stickyFirstColumn, stickyLeftColumns, stickyRightColumns, enableResponsiveWrapper, showScrollIndicators, isLoading, loadingRowCount, borderStyle, enableGlobalSearch, globalSearchPlaceholder, enableGlobalFaceting, enableColumnResizing, columnResizeMode, enableColumnResizePersistence, storageKey, enableExpanding, getSubRows, enableGrouping, groupedColumnMode, enableManualGrouping, groupDisplayColumn, hideChildrenForSingleItemGroups, hideExpanderForSingleItemGroups, enableRowPinning, keepPinnedRows, enableVirtualization, nestedHeaders, enableNestedHeaders, enableColumnOrdering, enableRowSelection, showHeader, showPagination, onTableReady, initialState, sorting: controlledSorting, onSortingChange: onControlledSortingChange, columnVisibility: controlledColumnVisibility, onColumnVisibilityChange: onControlledColumnVisibilityChange, grouping: controlledGrouping, onGroupingChange: onControlledGroupingChange, columnOrder: controlledColumnOrder, onColumnOrderChange: onControlledColumnOrderChange, columnSizing: controlledColumnSizing, onColumnSizingChange: onControlledColumnSizingChange, renderSectionHeaderRow, autoExpandChildren, }: DataTableProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
|
|
175
187
|
export { DataTableColumnHeader, DataTableFilter, DataTableToolbar, DataTablePagination, DataTableSkeleton, fuzzyFilter, multiSelectFilter };
|
|
176
188
|
export { useReactTable } from '@tanstack/react-table';
|
|
177
189
|
export type { SortingState, ColumnFiltersState, VisibilityState, ExpandedState, GroupingState, ColumnOrderState, FilterFn, ColumnResizeMode, } from '@tanstack/react-table';
|