@rafal.lemieszewski/tide-ui 0.39.0 → 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 +9 -10
- package/dist/index.cjs.js +18 -18
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +607 -607
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -127,28 +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>;
|
|
139
138
|
/**
|
|
140
|
-
* When both this and hideChildrenForSingleItemGroups are enabled,
|
|
139
|
+
* When both this and hideChildrenForSingleItemGroups are enabled for a column,
|
|
141
140
|
* removes the expander button spacer for groups without expandable children.
|
|
142
141
|
* This eliminates the left padding for single-item groups, improving visual alignment.
|
|
143
142
|
*
|
|
144
|
-
*
|
|
143
|
+
* Per-column configuration using column ID as key.
|
|
144
|
+
* Only takes effect when hideChildrenForSingleItemGroups is also enabled for that column.
|
|
145
145
|
*
|
|
146
|
-
* @default false
|
|
147
146
|
* @example
|
|
148
|
-
* hideChildrenForSingleItemGroups={true}
|
|
149
|
-
* hideExpanderForSingleItemGroups={true}
|
|
147
|
+
* hideChildrenForSingleItemGroups={{ category: true, status: true }}
|
|
148
|
+
* hideExpanderForSingleItemGroups={{ category: true, status: true }}
|
|
150
149
|
*/
|
|
151
|
-
hideExpanderForSingleItemGroups?: boolean
|
|
150
|
+
hideExpanderForSingleItemGroups?: Record<string, boolean>;
|
|
152
151
|
enableRowPinning?: boolean;
|
|
153
152
|
keepPinnedRows?: boolean;
|
|
154
153
|
enableVirtualization?: boolean;
|