profinansy-ui-lib 3.6.53 → 3.6.55
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/components/uikit/Dropdown/Dropdown.d.ts +2 -2
- package/dist/components/uikit/FilterButton/Drop/Drop.d.ts +2 -2
- package/dist/components/uikit/Hint/Hint.d.ts +2 -2
- package/dist/components/uikit/Popup/Popup.d.ts +2 -2
- package/dist/components/uikit/Table/components/THead/THead.styled.d.ts +4 -3
- package/dist/components/uikit/Table/components/THead/components/ThDraggable/ThDraggable.d.ts +24 -0
- package/dist/components/uikit/Table/components/THead/components/ThDraggable/index.d.ts +1 -0
- package/dist/components/uikit/Table/components/THead/components/ThStatic/ThStatic.d.ts +20 -0
- package/dist/components/uikit/Table/components/THead/components/ThStatic/index.d.ts +1 -0
- package/dist/components/uikit/Table/hooks/useDragNDrop.d.ts +2 -0
- package/dist/components/uikit/Table/utils.d.ts +1 -1
- package/dist/components/uikit/Tooltip/Tooltip.d.ts +2 -2
- package/dist/hooks/useDragging.d.ts +1 -1
- package/dist/index.js +25 -24
- package/package.json +1 -1
|
@@ -24,10 +24,10 @@ export declare function useDrop({ placement, onOpenList }: {
|
|
|
24
24
|
floating: HTMLElement;
|
|
25
25
|
} & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
26
26
|
context: {
|
|
27
|
-
placement: Placement;
|
|
28
|
-
strategy: import("@floating-ui/utils").Strategy;
|
|
29
27
|
x: number;
|
|
30
28
|
y: number;
|
|
29
|
+
placement: Placement;
|
|
30
|
+
strategy: import("@floating-ui/utils").Strategy;
|
|
31
31
|
middlewareData: import("@floating-ui/react").MiddlewareData;
|
|
32
32
|
isPositioned: boolean;
|
|
33
33
|
update: () => void;
|
|
@@ -23,10 +23,10 @@ export declare function useDrop({ placement }: {
|
|
|
23
23
|
floating: HTMLElement;
|
|
24
24
|
} & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
25
25
|
context: {
|
|
26
|
-
placement: Placement;
|
|
27
|
-
strategy: import("@floating-ui/utils").Strategy;
|
|
28
26
|
x: number;
|
|
29
27
|
y: number;
|
|
28
|
+
placement: Placement;
|
|
29
|
+
strategy: import("@floating-ui/utils").Strategy;
|
|
30
30
|
middlewareData: import("@floating-ui/react").MiddlewareData;
|
|
31
31
|
isPositioned: boolean;
|
|
32
32
|
update: () => void;
|
|
@@ -25,10 +25,10 @@ export declare function useHint({ placement, isClickMobile }?: HintOptions): {
|
|
|
25
25
|
floating: HTMLElement;
|
|
26
26
|
} & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
27
27
|
context: {
|
|
28
|
-
placement: Placement;
|
|
29
|
-
strategy: import("@floating-ui/utils").Strategy;
|
|
30
28
|
x: number;
|
|
31
29
|
y: number;
|
|
30
|
+
placement: Placement;
|
|
31
|
+
strategy: import("@floating-ui/utils").Strategy;
|
|
32
32
|
middlewareData: import("@floating-ui/react").MiddlewareData;
|
|
33
33
|
isPositioned: boolean;
|
|
34
34
|
update: () => void;
|
|
@@ -28,10 +28,10 @@ export declare function usePopup({ placement, isHover }: {
|
|
|
28
28
|
floating: HTMLElement;
|
|
29
29
|
} & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
30
30
|
context: {
|
|
31
|
-
placement: Placement;
|
|
32
|
-
strategy: import("@floating-ui/utils").Strategy;
|
|
33
31
|
x: number;
|
|
34
32
|
y: number;
|
|
33
|
+
placement: Placement;
|
|
34
|
+
strategy: import("@floating-ui/utils").Strategy;
|
|
35
35
|
middlewareData: import("@floating-ui/react").MiddlewareData;
|
|
36
36
|
isPositioned: boolean;
|
|
37
37
|
update: () => void;
|
|
@@ -13,9 +13,10 @@ export declare const TH: import("styled-components").StyledComponent<"th", impor
|
|
|
13
13
|
isScrolled: boolean;
|
|
14
14
|
isScrolledEnd: boolean;
|
|
15
15
|
isSort: boolean;
|
|
16
|
-
isDragEntered
|
|
17
|
-
isDragging
|
|
18
|
-
columnStickPosition
|
|
16
|
+
isDragEntered?: boolean;
|
|
17
|
+
isDragging?: boolean;
|
|
18
|
+
columnStickPosition?: TColumnStickPosition;
|
|
19
|
+
isHovered?: boolean;
|
|
19
20
|
}, never>;
|
|
20
21
|
export declare const THItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
21
22
|
alignment: IColumnTable['alignment'];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IColumnTable, TSort } from '../../../../Table.typed';
|
|
2
|
+
import { useDragNDrop } from '../../../../hooks/useDragNDrop';
|
|
3
|
+
type TProps = {
|
|
4
|
+
isScrolled: boolean;
|
|
5
|
+
isScrolledEnd: boolean;
|
|
6
|
+
stickyFirstColumn: boolean;
|
|
7
|
+
stickyLastColumn: boolean;
|
|
8
|
+
activeSortField: string;
|
|
9
|
+
activeSortOrder: TSort;
|
|
10
|
+
hints: Record<string, string[]>;
|
|
11
|
+
column: IColumnTable;
|
|
12
|
+
columnRenderer?: (columnData: IColumnTable & {
|
|
13
|
+
title: string;
|
|
14
|
+
key: string;
|
|
15
|
+
columnIdx: number;
|
|
16
|
+
}) => JSX.Element;
|
|
17
|
+
handleSort: (field: string) => void;
|
|
18
|
+
index: number;
|
|
19
|
+
columns: IColumnTable[];
|
|
20
|
+
isDraggingDisabled: boolean;
|
|
21
|
+
draggableProps: ReturnType<typeof useDragNDrop>;
|
|
22
|
+
};
|
|
23
|
+
export declare function ThDraggable({ hints, stickyFirstColumn, stickyLastColumn, isScrolled, isScrolledEnd, activeSortField, activeSortOrder, columnRenderer, column, handleSort, index, columns, isDraggingDisabled, draggableProps }: TProps): JSX.Element;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ThDraggable';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IColumnTable, TSort } from '../../../../Table.typed';
|
|
2
|
+
type TProps = {
|
|
3
|
+
isScrolled: boolean;
|
|
4
|
+
isScrolledEnd: boolean;
|
|
5
|
+
stickyFirstColumn: boolean;
|
|
6
|
+
stickyLastColumn: boolean;
|
|
7
|
+
activeSortField: string;
|
|
8
|
+
activeSortOrder: TSort;
|
|
9
|
+
hints: Record<string, string[]>;
|
|
10
|
+
column: IColumnTable;
|
|
11
|
+
columnRenderer?: (columnData: IColumnTable & {
|
|
12
|
+
title: string;
|
|
13
|
+
key: string;
|
|
14
|
+
columnIdx: number;
|
|
15
|
+
}) => JSX.Element;
|
|
16
|
+
handleSort: (field: string) => void;
|
|
17
|
+
index: number;
|
|
18
|
+
};
|
|
19
|
+
export declare function ThStatic({ hints, stickyFirstColumn, stickyLastColumn, isScrolled, isScrolledEnd, activeSortField, activeSortOrder, columnRenderer, column, handleSort, index }: TProps): JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ThStatic';
|
|
@@ -13,5 +13,7 @@ export declare const useDragNDrop: ({ columns, onColumnsReorder }: Args) => {
|
|
|
13
13
|
dragEnteredColumn: number;
|
|
14
14
|
draggingColumnIdx: number;
|
|
15
15
|
setDragEnteredColumn: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
16
|
+
setHoveredColumnIdx: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
17
|
+
hoveredColumnIdx: number;
|
|
16
18
|
};
|
|
17
19
|
export {};
|
|
@@ -25,10 +25,10 @@ export declare function useTooltip({ placement, isHover, showArrow }: {
|
|
|
25
25
|
floating: HTMLElement;
|
|
26
26
|
} & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
27
27
|
context: {
|
|
28
|
-
placement: Placement;
|
|
29
|
-
strategy: import("@floating-ui/utils").Strategy;
|
|
30
28
|
x: number;
|
|
31
29
|
y: number;
|
|
30
|
+
placement: Placement;
|
|
31
|
+
strategy: import("@floating-ui/utils").Strategy;
|
|
32
32
|
middlewareData: import("@floating-ui/react").MiddlewareData;
|
|
33
33
|
isPositioned: boolean;
|
|
34
34
|
update: () => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { MutableRefObject } from 'react';
|
|
2
|
-
export declare const useDragging: (containerRef: MutableRefObject<HTMLElement>, isDraggable: boolean) => void;
|
|
2
|
+
export declare const useDragging: (containerRef: MutableRefObject<HTMLElement>, isDraggable: boolean, isDragNDropTable?: boolean) => void;
|