@ctlyst.id/internal-ui 4.1.9 → 4.1.10

Sign up to get free protection for your applications and to get access to all the features.
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,8 @@ var DataTable = React5.forwardRef((props, ref) => {
1223
1223
  }
1224
1224
  }
1225
1225
  `,
1226
+ pointerEvents: isRowDisabled && isRowDisabled(row.original) ? "none" : "auto",
1227
+ cursor: isRowDisabled && isRowDisabled(row.original) ? "default" : "pointer",
1226
1228
  onMouseDown: (e) => {
1227
1229
  var _a2;
1228
1230
  (_a2 = e.currentTarget) == null ? void 0 : _a2.setAttribute("data-active", "true");