@martinsura/ui 0.1.12 → 0.1.13
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/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1902,7 +1902,7 @@ var Grid = (props) => {
|
|
|
1902
1902
|
}
|
|
1903
1903
|
) }) : items.map((item, rowIdx) => {
|
|
1904
1904
|
const key = getKey2(item, items, props.rowKey);
|
|
1905
|
-
const isSelected = selectedKeys.has(key);
|
|
1905
|
+
const isSelected = selectedKeys.has(key) || !!props.isRowSelected?.(item);
|
|
1906
1906
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1907
1907
|
"tr",
|
|
1908
1908
|
{
|
|
@@ -1912,6 +1912,7 @@ var Grid = (props) => {
|
|
|
1912
1912
|
rowIdx % 2 === 1 && !isSelected && neutralSurfaceClasses.subtle,
|
|
1913
1913
|
isSelected && "bg-blue-50",
|
|
1914
1914
|
props.onRowClick && "cursor-pointer hover:bg-blue-50",
|
|
1915
|
+
props.rowClassName?.(item),
|
|
1915
1916
|
props.classNames?.bodyRow
|
|
1916
1917
|
),
|
|
1917
1918
|
children: [
|