@tracktor/design-system 4.16.0 → 4.17.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/CHANGELOG.md +5 -5
- package/dist/main.cjs +11 -11
- package/dist/main.js +1370 -1336
- package/dist/src/components/DataDisplay/Kanban/Kanban.d.ts +1 -1
- package/dist/src/components/DataDisplay/Kanban/utils.d.ts +10 -0
- package/package.json +1 -1
|
@@ -43,6 +43,7 @@ export interface KanbanDataItemProps {
|
|
|
43
43
|
Footer?: ReactElement;
|
|
44
44
|
Alert?: ReactElement;
|
|
45
45
|
RightFooter?: ReactElement;
|
|
46
|
+
headerTitle?: string;
|
|
46
47
|
}
|
|
47
48
|
/**
|
|
48
49
|
* Props for each column in the Kanban board.
|
|
@@ -125,6 +126,5 @@ export interface KanbanProps {
|
|
|
125
126
|
*/
|
|
126
127
|
emptyState?: ReactElement | EmptyStateProps;
|
|
127
128
|
}
|
|
128
|
-
export declare const computeKanbanCardHeight: (item: KanbanDataItemProps) => number;
|
|
129
129
|
declare const Kanban: ({ data, onClickItem, disableCount, onColumnInView, emptyState, chipColumVariant, chipStatus, headerColumnChip, previewBookingId, chipColumDot, height, itemPerPage, listWidth, itemCount, loadMoreItems, }: KanbanProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
130
130
|
export default Kanban;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MouseEvent, RefObject } from 'react';
|
|
2
|
+
import { KanbanDataItemProps } from './Kanban';
|
|
3
|
+
export declare const IMG_SIZE = 40;
|
|
4
|
+
export declare const computeKanbanCardHeight: (item: KanbanDataItemProps) => number;
|
|
5
|
+
export declare const useDragScroll: (ref: RefObject<HTMLDivElement | null>) => {
|
|
6
|
+
isDragging: boolean;
|
|
7
|
+
onMouseDown: (e: MouseEvent<HTMLElement>) => void;
|
|
8
|
+
onMouseMove: (e: MouseEvent<HTMLElement>) => void;
|
|
9
|
+
onMouseUp: () => void;
|
|
10
|
+
};
|