@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 +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/{labels-D-6FCakH.d.ts → labels-D6GC8goU.d.cts} +10 -4
- package/dist/{labels-D-6FCakH.d.cts → labels-D6GC8goU.d.ts} +10 -4
- package/dist/locales.cjs +2 -1
- package/dist/locales.cjs.map +1 -1
- package/dist/locales.d.cts +1 -1
- package/dist/locales.d.ts +1 -1
- package/dist/locales.js +2 -1
- package/dist/locales.js.map +1 -1
- package/dist/styles.css +19 -6
- package/package.json +1 -1
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
|
-
|
|
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:
|
|
7392
|
+
tabIndex: viewportFocusStop ? 0 : void 0,
|
|
7390
7393
|
...activeRowEnabled && { onKeyDown: handleActiveRowKeyDown }
|
|
7391
7394
|
}),
|
|
7392
7395
|
onScrollPositionChange: handleScrollPositionChange,
|