nitro-web 0.0.173 → 0.0.174

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.
@@ -43,7 +43,7 @@ export type TableProps<T> = {
43
43
  rowClassName?: string
44
44
  rowClassNameFn?: (row: T, i: number) => string
45
45
  columnClassName?: string
46
- columnClassNameFn?: (row: T, i: number) => string
46
+ columnClassNameFn?: (col: TableColumn, row: T|undefined, i: number) => string
47
47
  columnSelectedClassName?: string
48
48
  columnHeaderClassName?: string
49
49
  checkboxClassName?: string
@@ -181,6 +181,7 @@ export function Table<T extends TableRow>({
181
181
  getAlignClass(col.align),
182
182
  columnClassName,
183
183
  columnHeaderClassName,
184
+ columnClassNameFn ? columnClassNameFn(col, undefined, j) : '',
184
185
  col.className
185
186
  )}
186
187
  >
@@ -260,7 +261,7 @@ export function Table<T extends TableRow>({
260
261
  _columnClassName,
261
262
  getAlignClass(col.align),
262
263
  columnClassName,
263
- columnClassNameFn ? columnClassNameFn(row, i) : '',
264
+ columnClassNameFn ? columnClassNameFn(col, row, i) : '',
264
265
  col.className,
265
266
  isSelected ? `bg-gray-50 ${columnSelectedClassName||''}` : ''
266
267
  )}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitro-web",
3
- "version": "0.0.173",
3
+ "version": "0.0.174",
4
4
  "repository": "github:boycce/nitro-web",
5
5
  "homepage": "https://boycce.github.io/nitro-web/",
6
6
  "description": "Nitro is a battle-tested, modular base project to turbocharge your projects, styled using Tailwind 🚀",