@dust-tt/sparkle 0.2.198 → 0.2.199
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/esm/index.js
CHANGED
|
@@ -128917,7 +128917,7 @@ DataTable.Body = function Body(_a) {
|
|
|
128917
128917
|
};
|
|
128918
128918
|
DataTable.Row = function Row(_a) {
|
|
128919
128919
|
var children = _a.children, className = _a.className, onClick = _a.onClick, onMoreClick = _a.onMoreClick, props = __rest(_a, ["children", "className", "onClick", "onMoreClick"]);
|
|
128920
|
-
return (React__default.createElement("tr", __assign({ className: classNames("s-border-b s-border-structure-200 s-text-sm",
|
|
128920
|
+
return (React__default.createElement("tr", __assign({ className: classNames("s-border-b s-border-structure-200 s-text-sm", onClick ? "s-cursor-pointer" : "", className || ""), onClick: onClick ? onClick : undefined }, props),
|
|
128921
128921
|
children,
|
|
128922
128922
|
onMoreClick && (React__default.createElement("td", { className: "s-w-1 s-cursor-pointer s-pl-1 s-text-element-600", onClick: function (e) {
|
|
128923
128923
|
e.stopPropagation(); // Prevent row click event
|