@datacrest/dcuikit 1.0.51 → 1.0.53
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/build/components/Molecule/Table/Table.types.d.ts +5 -2
- package/build/components/Molecule/Table/TableActionsMenu.d.ts +1 -1
- package/build/index.esm.js +4 -4
- package/build/index.esm.js.map +1 -1
- package/build/index.js +4 -4
- package/build/index.js.map +1 -1
- package/build/tsconfig.prod.tsbuildinfo +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FilterFn } from '@tanstack/react-table';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { ElementType, ReactNode } from 'react';
|
|
3
3
|
export declare enum TableColumnAlign {
|
|
4
4
|
Left = "left",
|
|
5
5
|
Center = "center",
|
|
@@ -40,9 +40,11 @@ export interface TableColumn<T extends Record<string, unknown>> {
|
|
|
40
40
|
}
|
|
41
41
|
export interface TableActionItem {
|
|
42
42
|
label: string;
|
|
43
|
-
onClick
|
|
43
|
+
onClick?: () => void;
|
|
44
44
|
variant?: 'default' | 'danger';
|
|
45
45
|
disabled?: boolean;
|
|
46
|
+
href?: string;
|
|
47
|
+
linkComponent?: ElementType;
|
|
46
48
|
}
|
|
47
49
|
export declare enum TableActionsMenuAlign {
|
|
48
50
|
Start = "start",
|
|
@@ -53,6 +55,7 @@ export interface TableActionsMenuProps {
|
|
|
53
55
|
items: TableActionItem[];
|
|
54
56
|
align?: TableActionsMenuAlign;
|
|
55
57
|
ariaLabel?: string;
|
|
58
|
+
linkComponent?: ElementType;
|
|
56
59
|
}
|
|
57
60
|
export interface ColumnInfo<T> {
|
|
58
61
|
toggleSorting: (desc?: boolean) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TableActionsMenuProps } from './Table.types';
|
|
3
|
-
declare const TableActionsMenu: ({ items, align, ariaLabel, }: TableActionsMenuProps) => React.JSX.Element | null;
|
|
3
|
+
declare const TableActionsMenu: ({ items, align, ariaLabel, linkComponent, }: TableActionsMenuProps) => React.JSX.Element | null;
|
|
4
4
|
export default TableActionsMenu;
|