@vinorcola/dynamic-table 1.0.1 → 1.0.2
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/lib/index.d.ts +6 -6
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -9,12 +9,12 @@ export type BaseItem = Record<string, any> & {
|
|
|
9
9
|
readonly id: ReactKey;
|
|
10
10
|
};
|
|
11
11
|
export type ItemKey<Item extends BaseItem> = Extract<keyof Item, string>;
|
|
12
|
-
export type { ColumnDefinition, ValueResolver } from "./ColumnDefinition";
|
|
13
|
-
export { default as Dictionary } from "./Dictionary";
|
|
14
|
-
export type { FilterState } from "./useFilterState";
|
|
15
|
-
export type { SortDirection, SortState } from "./useSortState";
|
|
16
|
-
export type { ColumnsMaskState } from "./useMaskableColumns";
|
|
17
|
-
export type { PaginationState } from "./usePagination";
|
|
12
|
+
export type { ColumnDefinition, ValueResolver } from "./ColumnDefinition.js";
|
|
13
|
+
export { default as Dictionary } from "./Dictionary.js";
|
|
14
|
+
export type { FilterState } from "./useFilterState.js";
|
|
15
|
+
export type { SortDirection, SortState } from "./useSortState.js";
|
|
16
|
+
export type { ColumnsMaskState } from "./useMaskableColumns.js";
|
|
17
|
+
export type { PaginationState } from "./usePagination.js";
|
|
18
18
|
interface Props<Item extends BaseItem> {
|
|
19
19
|
items: Item[];
|
|
20
20
|
columns: ColumnDefinition<Item, Primitive>[];
|
package/lib/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import useItems from "./useItems.js";
|
|
|
7
7
|
import useMaskableColumns from "./useMaskableColumns.js";
|
|
8
8
|
import usePagination from "./usePagination.js";
|
|
9
9
|
import useSortState from "./useSortState.js";
|
|
10
|
-
export { default as Dictionary } from "./Dictionary";
|
|
10
|
+
export { default as Dictionary } from "./Dictionary.js";
|
|
11
11
|
export default function DynamicTable(props) {
|
|
12
12
|
const columns = useColumns(props.columns);
|
|
13
13
|
const items = useItems(props.items, props.itemTarget, columns);
|