@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/cjs/index.js
CHANGED
|
@@ -128937,7 +128937,7 @@ DataTable.Body = function Body(_a) {
|
|
|
128937
128937
|
};
|
|
128938
128938
|
DataTable.Row = function Row(_a) {
|
|
128939
128939
|
var children = _a.children, className = _a.className, onClick = _a.onClick, onMoreClick = _a.onMoreClick, props = __rest(_a, ["children", "className", "onClick", "onMoreClick"]);
|
|
128940
|
-
return (React.createElement("tr", __assign({ className: classNames("s-border-b s-border-structure-200 s-text-sm",
|
|
128940
|
+
return (React.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),
|
|
128941
128941
|
children,
|
|
128942
128942
|
onMoreClick && (React.createElement("td", { className: "s-w-1 s-cursor-pointer s-pl-1 s-text-element-600", onClick: function (e) {
|
|
128943
128943
|
e.stopPropagation(); // Prevent row click event
|