@coldsmirk/ledger-mantine 0.12.2 → 0.12.4

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.js CHANGED
@@ -550,6 +550,8 @@ function RowDragCell({ row, table }) {
550
550
  });
551
551
  if (pinned) return null;
552
552
  const lifted = rowReorderKeyboard?.active(row.id) === true;
553
+ const activeRow = table.options.meta?.ledger?.activeRow;
554
+ const tabStop = activeRow?.enabled !== true || activeRow.id === row.id;
553
555
  const handleKeyDown = (event) => {
554
556
  const keyboard = rowReorderKeyboard;
555
557
  if (!keyboard || !orderable) return;
@@ -601,10 +603,14 @@ function RowDragCell({ row, table }) {
601
603
  color: "gray",
602
604
  size: SIZES[size].control,
603
605
  style: { cursor: orderable ? "grab" : "default" },
606
+ tabIndex: tabStop ? void 0 : -1,
604
607
  variant: "subtle",
605
608
  onBlur: () => {
606
609
  if (lifted) rowReorderKeyboard?.cancel();
607
610
  },
611
+ onFocus: () => {
612
+ if (activeRow?.enabled === true && activeRow.id !== row.id && activeRow.canActivate(row)) activeRow.set(row.id);
613
+ },
608
614
  onKeyDown: handleKeyDown,
609
615
  children: /* @__PURE__ */ jsx(icons.reorderRow, { size: SIZES[size].glyph })
610
616
  })
@@ -3085,7 +3091,7 @@ function LoadMoreRetryRow({ colSpan, ariaRowIndex, failure, held, retry, release
3085
3091
  variant: "subtle",
3086
3092
  leftSection: held ? /* @__PURE__ */ jsx(Loader, {
3087
3093
  "aria-hidden": true,
3088
- color: "var(--button-color)",
3094
+ color: "currentColor",
3089
3095
  size: 14
3090
3096
  }) : /* @__PURE__ */ jsx(icons.retry, { size: 14 }),
3091
3097
  onClick: retry,