schummar-table 0.30.0 → 0.31.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/cjs/index.js +27 -21
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/index.js +27 -21
- package/dist/es/index.js.map +1 -1
- package/dist/types/types.d.ts +2 -0
- package/package.json +2 -2
package/dist/types/types.d.ts
CHANGED
|
@@ -155,6 +155,8 @@ export interface TableProps<T> extends PartialTableTheme<T> {
|
|
|
155
155
|
columns: Column<T, any>[] | ((col: <V>(value: (item: T) => V, column: Omit<Column<T, V>, 'value'>) => Column<T, V>) => Column<T, any>[]);
|
|
156
156
|
/** Default props for all column. Will take effect if not overriden in column definition. */
|
|
157
157
|
defaultColumnProps?: Omit<Column<T, unknown>, 'id' | 'value'>;
|
|
158
|
+
/** Set props for multiple columns at once. Will take effect if not overriden in column definition. */
|
|
159
|
+
columnProps?: FunctionWithDeps<(id: Id) => Omit<Column<T, unknown>, 'id'>>;
|
|
158
160
|
/** Wrap each cell */
|
|
159
161
|
wrapCell?: FunctionWithDeps<(content: ReactNode, value: unknown, item: T, index: number) => ReactNode>;
|
|
160
162
|
/** Display a cell at the start of each row. Useful for "go to details" button for example. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "schummar-table",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "schummar/schummar-table",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"dependencies": {
|
|
82
82
|
"@emotion/react": ">=11.11.1",
|
|
83
83
|
"dayzed": ">=3.2.3",
|
|
84
|
-
"immer": ">=
|
|
84
|
+
"immer": ">=9.0.21",
|
|
85
85
|
"nanoid": ">=4.0.2",
|
|
86
86
|
"schummar-state": "0.2.1-experimental-13"
|
|
87
87
|
},
|