@datacrest/dcuikit 1.0.53 → 1.0.54
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/ProfileCard/types.d.ts +3 -1
- package/build/components/Molecule/Table/Table.d.ts +1 -1
- package/build/components/Molecule/Table/Table.types.d.ts +2 -0
- package/build/index.css +1 -1
- package/build/index.esm.css +1 -1
- package/build/index.esm.js +2 -2
- package/build/index.esm.js.map +1 -1
- package/build/index.js +1 -1
- 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,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ElementType, ReactNode } from 'react';
|
|
2
2
|
import { PROFILE_CARD_SIZES } from './const';
|
|
3
3
|
export interface DropdownItem {
|
|
4
4
|
name: string;
|
|
@@ -6,6 +6,7 @@ export interface DropdownItem {
|
|
|
6
6
|
link?: string;
|
|
7
7
|
isDisabled?: boolean;
|
|
8
8
|
onClick?: () => void;
|
|
9
|
+
linkComponent?: ElementType;
|
|
9
10
|
}
|
|
10
11
|
export interface ProfileCardProps {
|
|
11
12
|
avatarUrl: string;
|
|
@@ -17,4 +18,5 @@ export interface ProfileCardProps {
|
|
|
17
18
|
className?: string;
|
|
18
19
|
isDropdownOpen?: boolean;
|
|
19
20
|
onToggleDropdown?: () => void;
|
|
21
|
+
linkComponent?: ElementType;
|
|
20
22
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
2
|
import { TableProps } from './Table.types';
|
|
3
|
-
declare const Table: <T extends Record<string, unknown>>({ columns, data, sortable, pagination, searchable, currentPage, pageSize, totalPages: externalTotalPages, totalCount: externalTotalCount, manualPagination, onSort, onPageChange, onPageSizeChange, onSearch, actions, onRowClick, showCustomCells, useBuiltInStatus, swapPaginationLayout, selectable, onSelectionChange, }: TableProps<T>) => JSX.Element;
|
|
3
|
+
declare const Table: <T extends Record<string, unknown>>({ columns, data, sortable, pagination, searchable, currentPage, pageSize, totalPages: externalTotalPages, totalCount: externalTotalCount, manualPagination, onSort, onPageChange, onPageSizeChange, onSearch, actions, onRowClick, rowHref, linkComponent, showCustomCells, useBuiltInStatus, swapPaginationLayout, selectable, onSelectionChange, }: TableProps<T>) => JSX.Element;
|
|
4
4
|
export default Table;
|
|
@@ -79,6 +79,8 @@ export interface TableProps<T extends Record<string, unknown>> {
|
|
|
79
79
|
onPageSizeChange?: (pageSize: PageSizeOptions) => void;
|
|
80
80
|
actions?: (row: T) => ReactNode;
|
|
81
81
|
onRowClick?: (row: T) => void;
|
|
82
|
+
rowHref?: (row: T) => string | undefined;
|
|
83
|
+
linkComponent?: ElementType;
|
|
82
84
|
showCustomCells?: boolean;
|
|
83
85
|
useBuiltInStatus?: boolean;
|
|
84
86
|
swapPaginationLayout?: boolean;
|