@ctlyst.id/internal-ui 4.1.9 → 4.1.11

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.mjs CHANGED
@@ -1085,7 +1085,7 @@ var useDataTable = ({
1085
1085
  };
1086
1086
  var DataTable = React5.forwardRef((props, ref) => {
1087
1087
  var _a, _b, _c, _d, _e, _f, _g;
1088
- const { isLoading, styles, headerSticky, onRowClick, container, columnPinning } = props;
1088
+ const { isLoading, styles, headerSticky, onRowClick, container, columnPinning, isRowDisabled } = props;
1089
1089
  const { table, toggleAllRowsSelected, generateColumn } = useDataTable(props);
1090
1090
  const refTable = React5.useRef(null);
1091
1091
  React5.useImperativeHandle(ref, () => ({
@@ -1223,6 +1223,7 @@ var DataTable = React5.forwardRef((props, ref) => {
1223
1223
  }
1224
1224
  }
1225
1225
  `,
1226
+ cursor: isRowDisabled && isRowDisabled(row.original) ? "default" : "pointer",
1226
1227
  onMouseDown: (e) => {
1227
1228
  var _a2;
1228
1229
  (_a2 = e.currentTarget) == null ? void 0 : _a2.setAttribute("data-active", "true");
@@ -1232,7 +1233,7 @@ var DataTable = React5.forwardRef((props, ref) => {
1232
1233
  (_a2 = e.currentTarget) == null ? void 0 : _a2.removeAttribute("data-active");
1233
1234
  },
1234
1235
  onClick: () => {
1235
- if (onRowClick) {
1236
+ if (onRowClick && isRowDisabled && !isRowDisabled(row.original)) {
1236
1237
  onRowClick(row.original);
1237
1238
  }
1238
1239
  },