@reportportal/ui-kit 0.0.1-alpha.151 → 0.0.1-alpha.152
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/dropdown/dropdown.d.ts +0 -4
- package/dist/components/table/constants.d.ts +1 -0
- package/dist/components/table/gradientOverlay/gradientOverlay.d.ts +19 -0
- package/dist/components/table/gradientOverlay/index.d.ts +2 -0
- package/dist/components/table/hooks/index.d.ts +2 -0
- package/dist/components/table/hooks/useGradientPosition.d.ts +24 -0
- package/dist/components/table/types.d.ts +5 -1
- package/dist/{datePicker-d85ff750.js → datePicker-3881a2d6.js} +1 -1
- package/dist/datePicker.js +4 -7
- package/dist/{dropdown-86a51ac5.js → dropdown-b63f2137.js} +200 -213
- package/dist/dropdown.js +3 -6
- package/dist/index.js +3 -3
- package/dist/modal.js +1 -1
- package/dist/style.css +1 -1
- package/dist/table-2c659767.js +936 -0
- package/dist/table.js +1 -1
- package/package.json +1 -1
- package/dist/table-82d5455c.js +0 -597
|
@@ -40,10 +40,6 @@ export interface DropdownProps {
|
|
|
40
40
|
onClear?: () => void;
|
|
41
41
|
/** ARIA label for the clear button */
|
|
42
42
|
clearButtonAriaLabel?: string;
|
|
43
|
-
/** Portal root element for tooltip rendering (e.g., document.body to prevent clipping) */
|
|
44
|
-
tooltipPortalRoot?: Element;
|
|
45
|
-
/** Z-index for tooltip when rendered in portal (default: 9) */
|
|
46
|
-
tooltipZIndex?: number;
|
|
47
43
|
/**
|
|
48
44
|
* Portal root element for dropdown menu rendering.
|
|
49
45
|
* When provided, the menu will be rendered in this element using React Portal.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface GradientOverlayProps {
|
|
4
|
+
portalContainer?: HTMLElement | null;
|
|
5
|
+
visible: boolean;
|
|
6
|
+
position: {
|
|
7
|
+
top: number;
|
|
8
|
+
left?: number;
|
|
9
|
+
right?: number;
|
|
10
|
+
};
|
|
11
|
+
size: {
|
|
12
|
+
width: number;
|
|
13
|
+
height: number;
|
|
14
|
+
};
|
|
15
|
+
direction: 'left' | 'right';
|
|
16
|
+
className?: string;
|
|
17
|
+
dataTestId?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const GradientOverlay: ({ portalContainer, visible, position, size, direction, className, dataTestId, }: GradientOverlayProps) => ReactElement | null;
|
|
@@ -3,3 +3,5 @@ export { useTableHover } from './useTableHover';
|
|
|
3
3
|
export { useTableExpansion } from './useTableExpansion';
|
|
4
4
|
export { useColumnWidths } from './useColumnWidths';
|
|
5
5
|
export { useColumnResize } from './useColumnResize';
|
|
6
|
+
export { useRightGradientPosition, usePinnedGradientPosition } from './useGradientPosition';
|
|
7
|
+
export type { RightGradientPosition, PinnedGradientPosition } from './useGradientPosition';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface RightGradientPosition {
|
|
2
|
+
visible: boolean;
|
|
3
|
+
position: {
|
|
4
|
+
top: number;
|
|
5
|
+
left: number;
|
|
6
|
+
};
|
|
7
|
+
size: {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export interface PinnedGradientPosition {
|
|
13
|
+
visible: boolean;
|
|
14
|
+
position: {
|
|
15
|
+
top: number;
|
|
16
|
+
left: number;
|
|
17
|
+
};
|
|
18
|
+
size: {
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export declare const useRightGradientPosition: (table: HTMLElement | null, header: HTMLElement | null, scrollContainer: HTMLElement | null, isHeaderPinned: boolean, scrollLeft: number, scrollTop: number, tableScrollWidth: number, windowResizeCounter: number) => RightGradientPosition;
|
|
24
|
+
export declare const usePinnedGradientPosition: (table: HTMLElement | null, scrollLeft: number, header: HTMLElement | null, scrollContainer: HTMLElement | null, isHeaderPinned: boolean, scrollTop: number, tableScrollWidth: number, windowResizeCounter: number) => PinnedGradientPosition;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dispatch, ReactNode, SetStateAction } from 'react';
|
|
1
|
+
import { Dispatch, ReactNode, RefObject, SetStateAction } from 'react';
|
|
2
2
|
import { ASC, DESC } from './constants';
|
|
3
3
|
|
|
4
4
|
export interface Column {
|
|
@@ -70,4 +70,8 @@ export interface TableComponentProps {
|
|
|
70
70
|
onToggleRowExpansion?: (id: string | number) => void;
|
|
71
71
|
onToggleAllRowsExpansion?: () => void;
|
|
72
72
|
onColumnResize?: (columnKey: string, width: number) => void;
|
|
73
|
+
externalScrollContainerRef?: RefObject<HTMLElement> | RefObject<Element> | null | undefined;
|
|
74
|
+
portalContainer?: HTMLElement | null;
|
|
75
|
+
rightGradientClassName?: string;
|
|
76
|
+
pinnedGradientClassName?: string;
|
|
73
77
|
}
|
|
@@ -3,7 +3,7 @@ import B from "react-datepicker/dist/es/index.js";
|
|
|
3
3
|
import { c as R } from "./bind-06a7ff84.js";
|
|
4
4
|
import { useMemo as P, useRef as D } from "react";
|
|
5
5
|
import { F as I } from "./fieldText-1749da7a.js";
|
|
6
|
-
import { D as E } from "./dropdown-
|
|
6
|
+
import { D as E } from "./dropdown-b63f2137.js";
|
|
7
7
|
import { S as T } from "./calendarArrow-44c7e60e.js";
|
|
8
8
|
import { registerLocale as j } from "react-datepicker";
|
|
9
9
|
const ie = (n, s) => {
|
package/dist/datePicker.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as t } from "./datePicker-
|
|
2
|
-
import { r as
|
|
1
|
+
import { D as t } from "./datePicker-3881a2d6.js";
|
|
2
|
+
import { r as A } from "./datePicker-3881a2d6.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react-datepicker/dist/es/index.js";
|
|
5
5
|
import "./bind-06a7ff84.js";
|
|
@@ -11,16 +11,13 @@ import "./baseIconButton-251479f7.js";
|
|
|
11
11
|
import "./spinLoader-c4a53718.js";
|
|
12
12
|
import "./maxValueDisplay-9be01a75.js";
|
|
13
13
|
import "./fieldLabel.js";
|
|
14
|
-
import "./dropdown-
|
|
14
|
+
import "./dropdown-b63f2137.js";
|
|
15
15
|
import "react-dom";
|
|
16
16
|
import "@floating-ui/react-dom";
|
|
17
17
|
import "downshift";
|
|
18
18
|
import "rc-scrollbars";
|
|
19
19
|
import "./keyCodes-f63c0e11.js";
|
|
20
20
|
import "./dropdown-0260bb66.js";
|
|
21
|
-
import "./tooltip.js";
|
|
22
|
-
import "@floating-ui/react";
|
|
23
|
-
import "./floatingUi-41f8c7b5.js";
|
|
24
21
|
import "./adaptiveTagList.js";
|
|
25
22
|
import "./button-97d9e587.js";
|
|
26
23
|
import "./close-4d480ef7.js";
|
|
@@ -31,5 +28,5 @@ import "react-datepicker";
|
|
|
31
28
|
export {
|
|
32
29
|
t as DatePicker,
|
|
33
30
|
t as default,
|
|
34
|
-
|
|
31
|
+
A as registerDatePickerLocale
|
|
35
32
|
};
|