profinansy-ui-lib 3.6.54 → 3.6.56
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 +3 -3
- package/dist/components/uikit/FilterButton/Drop/Drop.d.ts +3 -3
- package/dist/components/uikit/Hint/Hint.d.ts +3 -3
- package/dist/components/uikit/Popup/Popup.d.ts +3 -3
- 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/Tooltip/Tooltip.d.ts +3 -3
- 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
|
-
x: number;
|
|
28
|
-
y: number;
|
|
29
27
|
placement: Placement;
|
|
30
28
|
strategy: import("@floating-ui/utils").Strategy;
|
|
29
|
+
x: number;
|
|
30
|
+
y: number;
|
|
31
31
|
middlewareData: import("@floating-ui/react").MiddlewareData;
|
|
32
32
|
isPositioned: boolean;
|
|
33
33
|
update: () => void;
|
|
@@ -43,7 +43,7 @@ export declare function useDrop({ placement, onOpenList }: {
|
|
|
43
43
|
};
|
|
44
44
|
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
45
45
|
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
46
|
-
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "
|
|
46
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "selected" | "active"> & {
|
|
47
47
|
active?: boolean;
|
|
48
48
|
selected?: boolean;
|
|
49
49
|
}) => Record<string, unknown>;
|
|
@@ -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
|
-
x: number;
|
|
27
|
-
y: number;
|
|
28
26
|
placement: Placement;
|
|
29
27
|
strategy: import("@floating-ui/utils").Strategy;
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
30
|
middlewareData: import("@floating-ui/react").MiddlewareData;
|
|
31
31
|
isPositioned: boolean;
|
|
32
32
|
update: () => void;
|
|
@@ -42,7 +42,7 @@ export declare function useDrop({ placement }: {
|
|
|
42
42
|
};
|
|
43
43
|
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
44
44
|
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
45
|
-
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "
|
|
45
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "selected" | "active"> & {
|
|
46
46
|
active?: boolean;
|
|
47
47
|
selected?: boolean;
|
|
48
48
|
}) => Record<string, unknown>;
|
|
@@ -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
|
-
x: number;
|
|
29
|
-
y: number;
|
|
30
28
|
placement: Placement;
|
|
31
29
|
strategy: import("@floating-ui/utils").Strategy;
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
32
32
|
middlewareData: import("@floating-ui/react").MiddlewareData;
|
|
33
33
|
isPositioned: boolean;
|
|
34
34
|
update: () => void;
|
|
@@ -44,7 +44,7 @@ export declare function useHint({ placement, isClickMobile }?: HintOptions): {
|
|
|
44
44
|
};
|
|
45
45
|
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
46
46
|
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
47
|
-
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "
|
|
47
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "selected" | "active"> & {
|
|
48
48
|
active?: boolean;
|
|
49
49
|
selected?: boolean;
|
|
50
50
|
}) => Record<string, unknown>;
|
|
@@ -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
|
-
x: number;
|
|
32
|
-
y: number;
|
|
33
31
|
placement: Placement;
|
|
34
32
|
strategy: import("@floating-ui/utils").Strategy;
|
|
33
|
+
x: number;
|
|
34
|
+
y: number;
|
|
35
35
|
middlewareData: import("@floating-ui/react").MiddlewareData;
|
|
36
36
|
isPositioned: boolean;
|
|
37
37
|
update: () => void;
|
|
@@ -47,7 +47,7 @@ export declare function usePopup({ placement, isHover }: {
|
|
|
47
47
|
};
|
|
48
48
|
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
49
49
|
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
50
|
-
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "
|
|
50
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "selected" | "active"> & {
|
|
51
51
|
active?: boolean;
|
|
52
52
|
selected?: boolean;
|
|
53
53
|
}) => Record<string, unknown>;
|
|
@@ -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
|
-
x: number;
|
|
29
|
-
y: number;
|
|
30
28
|
placement: Placement;
|
|
31
29
|
strategy: import("@floating-ui/utils").Strategy;
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
32
32
|
middlewareData: import("@floating-ui/react").MiddlewareData;
|
|
33
33
|
isPositioned: boolean;
|
|
34
34
|
update: () => void;
|
|
@@ -44,7 +44,7 @@ export declare function useTooltip({ placement, isHover, showArrow }: {
|
|
|
44
44
|
};
|
|
45
45
|
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
46
46
|
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
47
|
-
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "
|
|
47
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "selected" | "active"> & {
|
|
48
48
|
active?: boolean;
|
|
49
49
|
selected?: boolean;
|
|
50
50
|
}) => Record<string, unknown>;
|