@coldsmirk/ledger-mantine 0.6.0 → 0.8.0

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.cjs CHANGED
@@ -1097,7 +1097,8 @@ const defaultLabels = {
1097
1097
  selectRow: "Select row",
1098
1098
  selectedCount: (count) => `${count} selected`,
1099
1099
  clearSelection: "Clear selection",
1100
- rowNavigation: "Table rows — use the arrow keys to move between rows",
1100
+ rows: "Rows",
1101
+ rowNavigation: "Use the arrow keys to move between rows",
1101
1102
  currentRow: (row, index, count) => `${row}, row ${index} of ${count}`,
1102
1103
  expandRow: "Expand row",
1103
1104
  collapseRow: "Collapse row",
@@ -7142,6 +7143,7 @@ function DataTableCore({ presentation, stylesProps, table }) {
7142
7143
  ]);
7143
7144
  const activeRowAnnouncer = (0, react.useRef)(null);
7144
7145
  const rowNavigationHintId = `${instanceId}-row-navigation`;
7146
+ const viewportFocusStop = activeRowEnabled || viewportOverflows;
7145
7147
  const viewportDescribedBy = activeRowEnabled ? [viewportProps?.["aria-describedby"], rowNavigationHintId].filter(Boolean).join(" ") : viewportProps?.["aria-describedby"];
7146
7148
  const announceActiveRow = useEventCallback(() => {
7147
7149
  const target = activeRowAnnouncer.current;
@@ -7385,8 +7387,9 @@ function DataTableCore({ presentation, stylesProps, table }) {
7385
7387
  viewportProps: mergeElementProps(viewportProps, {
7386
7388
  style: { overscrollBehavior: "none" },
7387
7389
  role: "rowgroup",
7390
+ "aria-label": viewportProps?.["aria-label"] ?? (viewportFocusStop ? labels.rows : void 0),
7388
7391
  "aria-describedby": viewportDescribedBy,
7389
- tabIndex: activeRowEnabled || viewportOverflows ? 0 : void 0,
7392
+ tabIndex: viewportFocusStop ? 0 : void 0,
7390
7393
  ...activeRowEnabled && { onKeyDown: handleActiveRowKeyDown }
7391
7394
  }),
7392
7395
  onScrollPositionChange: handleScrollPositionChange,