@ctlyst.id/internal-ui 4.1.9 → 4.1.10

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,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");