@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.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { n as defaultLabels, t as DataTableLabels } from "./labels-
|
|
2
|
+
import { n as defaultLabels, t as DataTableLabels } from "./labels-D6GC8goU.cjs";
|
|
3
3
|
import { BoxProps, ComboboxData, ElementProps, Factory, MantineBreakpoint, MantineColor, MantineRadius, MantineSize, MantineSpacing, PopoverProps, StylesApiProps, TableTdProps, TableThProps, TableTrProps, TextInputProps } from "@mantine/core";
|
|
4
4
|
import { Cell as Cell$1, CellData, Column as Column$1, ColumnDef as ColumnDef$1, ColumnFiltersState, ColumnFiltersState as ColumnFiltersState$1, ColumnOrderState, ColumnOrderState as ColumnOrderState$1, ColumnPinningState, ColumnPinningState as ColumnPinningState$1, ColumnSizingState, ColumnSizingState as ColumnSizingState$1, ColumnVisibilityState, ColumnVisibilityState as ColumnVisibilityState$1, ExpandedState, ExpandedState as ExpandedState$1, FilterFn, FilterFnOption, GroupingState, GroupingState as GroupingState$1, Header as Header$1, HeaderGroup as HeaderGroup$1, PaginationState, PaginationState as PaginationState$1, ReactTable, Row as Row$1, RowData, RowData as RowData$1, RowPinningState, RowPinningState as RowPinningState$1, RowSelectionState, RowSelectionState as RowSelectionState$1, SortingState, SortingState as SortingState$1, TableFeatures, TableOptions, aggregationFn_count, aggregationFn_extent, aggregationFn_first, aggregationFn_last, aggregationFn_max, aggregationFn_mean, aggregationFn_median, aggregationFn_min, aggregationFn_sum, aggregationFn_unique, aggregationFn_uniqueCount, flexRender } from "@tanstack/react-table";
|
|
5
5
|
import { CSSProperties, ComponentProps, ComponentType, JSX as JSX$1, KeyboardEvent, MouseEvent, ReactElement, ReactNode, Ref } from "react";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { n as defaultLabels, t as DataTableLabels } from "./labels-
|
|
2
|
+
import { n as defaultLabels, t as DataTableLabels } from "./labels-D6GC8goU.js";
|
|
3
3
|
import { BoxProps, ComboboxData, ElementProps, Factory, MantineBreakpoint, MantineColor, MantineRadius, MantineSize, MantineSpacing, PopoverProps, StylesApiProps, TableTdProps, TableThProps, TableTrProps, TextInputProps } from "@mantine/core";
|
|
4
4
|
import { CSSProperties, ComponentProps, ComponentType, JSX as JSX$1, KeyboardEvent, MouseEvent, ReactElement, ReactNode, Ref } from "react";
|
|
5
5
|
import { Cell as Cell$1, CellData, Column as Column$1, ColumnDef as ColumnDef$1, ColumnFiltersState, ColumnFiltersState as ColumnFiltersState$1, ColumnOrderState, ColumnOrderState as ColumnOrderState$1, ColumnPinningState, ColumnPinningState as ColumnPinningState$1, ColumnSizingState, ColumnSizingState as ColumnSizingState$1, ColumnVisibilityState, ColumnVisibilityState as ColumnVisibilityState$1, ExpandedState, ExpandedState as ExpandedState$1, FilterFn, FilterFnOption, GroupingState, GroupingState as GroupingState$1, Header as Header$1, HeaderGroup as HeaderGroup$1, PaginationState, PaginationState as PaginationState$1, ReactTable, Row as Row$1, RowData, RowData as RowData$1, RowPinningState, RowPinningState as RowPinningState$1, RowSelectionState, RowSelectionState as RowSelectionState$1, SortingState, SortingState as SortingState$1, TableFeatures, TableOptions, aggregationFn_count, aggregationFn_extent, aggregationFn_first, aggregationFn_last, aggregationFn_max, aggregationFn_mean, aggregationFn_median, aggregationFn_min, aggregationFn_sum, aggregationFn_unique, aggregationFn_uniqueCount, flexRender } from "@tanstack/react-table";
|
package/dist/index.js
CHANGED
|
@@ -1073,7 +1073,8 @@ const defaultLabels = {
|
|
|
1073
1073
|
selectRow: "Select row",
|
|
1074
1074
|
selectedCount: (count) => `${count} selected`,
|
|
1075
1075
|
clearSelection: "Clear selection",
|
|
1076
|
-
|
|
1076
|
+
rows: "Rows",
|
|
1077
|
+
rowNavigation: "Use the arrow keys to move between rows",
|
|
1077
1078
|
currentRow: (row, index, count) => `${row}, row ${index} of ${count}`,
|
|
1078
1079
|
expandRow: "Expand row",
|
|
1079
1080
|
collapseRow: "Collapse row",
|
|
@@ -7118,6 +7119,7 @@ function DataTableCore({ presentation, stylesProps, table }) {
|
|
|
7118
7119
|
]);
|
|
7119
7120
|
const activeRowAnnouncer = useRef(null);
|
|
7120
7121
|
const rowNavigationHintId = `${instanceId}-row-navigation`;
|
|
7122
|
+
const viewportFocusStop = activeRowEnabled || viewportOverflows;
|
|
7121
7123
|
const viewportDescribedBy = activeRowEnabled ? [viewportProps?.["aria-describedby"], rowNavigationHintId].filter(Boolean).join(" ") : viewportProps?.["aria-describedby"];
|
|
7122
7124
|
const announceActiveRow = useEventCallback(() => {
|
|
7123
7125
|
const target = activeRowAnnouncer.current;
|
|
@@ -7361,8 +7363,9 @@ function DataTableCore({ presentation, stylesProps, table }) {
|
|
|
7361
7363
|
viewportProps: mergeElementProps(viewportProps, {
|
|
7362
7364
|
style: { overscrollBehavior: "none" },
|
|
7363
7365
|
role: "rowgroup",
|
|
7366
|
+
"aria-label": viewportProps?.["aria-label"] ?? (viewportFocusStop ? labels.rows : void 0),
|
|
7364
7367
|
"aria-describedby": viewportDescribedBy,
|
|
7365
|
-
tabIndex:
|
|
7368
|
+
tabIndex: viewportFocusStop ? 0 : void 0,
|
|
7366
7369
|
...activeRowEnabled && { onKeyDown: handleActiveRowKeyDown }
|
|
7367
7370
|
}),
|
|
7368
7371
|
onScrollPositionChange: handleScrollPositionChange,
|