@ctlyst.id/internal-ui 4.1.14 → 4.1.16

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -1210,12 +1210,14 @@ var DataTable = React5.forwardRef((props, ref) => {
1210
1210
  }
1211
1211
  ),
1212
1212
  /* @__PURE__ */ jsx24(Tbody, { ...styles == null ? void 0 : styles.tableBody, children: table.getRowModel().rows.map((row) => {
1213
+ const disabledRow = isRowDisabled && isRowDisabled(row.original);
1213
1214
  return /* @__PURE__ */ jsx24(
1214
1215
  Tr,
1215
1216
  {
1216
1217
  "data-test-id": "-RU0hNYGRzeVM3HQ4cXHl",
1217
1218
  tabindex: "0",
1218
1219
  ...styles == null ? void 0 : styles.tableRow,
1220
+ "aria-disabled": disabledRow,
1219
1221
  css: css`
1220
1222
  &:last-child {
1221
1223
  td {
@@ -1223,10 +1225,12 @@ var DataTable = React5.forwardRef((props, ref) => {
1223
1225
  }
1224
1226
  }
1225
1227
  `,
1226
- cursor: isRowDisabled && isRowDisabled(row.original) ? "default" : "pointer",
1228
+ cursor: disabledRow ? "default" : "pointer",
1227
1229
  onMouseDown: (e) => {
1228
1230
  var _a2;
1229
- (_a2 = e.currentTarget) == null ? void 0 : _a2.setAttribute("data-active", "true");
1231
+ if (!disabledRow) {
1232
+ (_a2 = e.currentTarget) == null ? void 0 : _a2.setAttribute("data-active", "true");
1233
+ }
1230
1234
  },
1231
1235
  onMouseUp: (e) => {
1232
1236
  var _a2;
@@ -1234,7 +1238,7 @@ var DataTable = React5.forwardRef((props, ref) => {
1234
1238
  },
1235
1239
  onClick: () => {
1236
1240
  if (onRowClick) {
1237
- if (isRowDisabled && isRowDisabled(row.original)) return;
1241
+ if (disabledRow) return;
1238
1242
  onRowClick(row.original);
1239
1243
  }
1240
1244
  },
@@ -4965,7 +4969,7 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
4965
4969
  isActive,
4966
4970
  bg: activeParent,
4967
4971
  "data-test-id": `CTA_nav-item-${item.title}`,
4968
- onClick: () => setActive(item.children.length > 0 ? item.children[0].navLink : item.navLink),
4972
+ onClick: () => setActive(item.children.length > 0 ? item.children[0].navLink : item.navLink, true),
4969
4973
  position: "relative",
4970
4974
  ...itemStyles,
4971
4975
  children: [