@trackunit/react-widgets 2.1.8 → 2.1.15
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/index.cjs.js +4 -4
- package/index.esm.js +4 -4
- package/package.json +10 -10
- package/src/HorizontalWidgetLayout/HorizontalWidgetLayout.d.ts +1 -1
- package/src/VerticalSplitWidgetLayout/VerticalSplitWidgetLayout.d.ts +1 -1
- package/src/WidgetList/WidgetList.d.ts +1 -1
- package/src/WidgetListItem/WidgetListItem.d.ts +1 -1
package/index.cjs.js
CHANGED
|
@@ -112,7 +112,7 @@ const cvaHorizontalChildFragment = cssClassVarianceUtilities.cvaMerge(["h-px", "
|
|
|
112
112
|
* Widget layout with a horizontal orientation with a border in the top when scrolling.
|
|
113
113
|
*
|
|
114
114
|
* @param { HorizontalWidgetLayoutProps} props - The props for the component
|
|
115
|
-
* @returns {
|
|
115
|
+
* @returns {Element} HorizontalWidgetLayout component
|
|
116
116
|
*/
|
|
117
117
|
const HorizontalWidgetLayout = ({ className, dataTestId, children, ref }) => {
|
|
118
118
|
const childrenArray = React.Children.toArray(children);
|
|
@@ -138,7 +138,7 @@ cssClassVarianceUtilities.cvaMerge(["h-full", "w-px", "min-h-px", "bg-slate-200"
|
|
|
138
138
|
* Widget layout with a vertical split
|
|
139
139
|
*
|
|
140
140
|
* @param { VerticalSplitWidgetLayoutProps} props - The props for the component
|
|
141
|
-
* @returns {
|
|
141
|
+
* @returns {Element} VerticalSplitWidgetLayout component
|
|
142
142
|
*/
|
|
143
143
|
const VerticalSplitWidgetLayout = ({ className, dataTestId, children }) => {
|
|
144
144
|
const childrenArray = React.Children.toArray(children);
|
|
@@ -312,7 +312,7 @@ const cvaWidgetListVirtualizedList = cssClassVarianceUtilities.cvaMerge(["w-full
|
|
|
312
312
|
* WidgetList used for rendering a list of in a widget
|
|
313
313
|
*
|
|
314
314
|
* @param { WidgetListProps} props - The props for the WidgetList component
|
|
315
|
-
* @returns {
|
|
315
|
+
* @returns {Element} WidgetList component
|
|
316
316
|
*/
|
|
317
317
|
const WidgetList = ({ dataTestId, pagination, count, children, className, rowHeight = 56, scrollRef, }) => {
|
|
318
318
|
return (jsxRuntime.jsx("div", { className: cvaWidgetList({ className }), children: jsxRuntime.jsx(reactComponents.VirtualizedList, { className: cvaWidgetListVirtualizedList(), count: count, dataTestId: dataTestId, loadingIndicator: "skeletonLines", pagination: pagination, rowHeight: rowHeight, scrollRef: scrollRef, separator: "line", skeletonLinesHeight: `${rowHeight / 3}px`, children: index => {
|
|
@@ -326,7 +326,7 @@ const cvaWidgetListItem = cssClassVarianceUtilities.cvaMerge(["py-2", "px-4", "h
|
|
|
326
326
|
* Widget ListItem component for the WidgetList component this is 1 row in the list
|
|
327
327
|
*
|
|
328
328
|
* @param { WidgetListItemProps} props - The props for the WidgetListItem component
|
|
329
|
-
* @returns {
|
|
329
|
+
* @returns {Element} WidgetListItem component
|
|
330
330
|
*/
|
|
331
331
|
const WidgetListItem = ({ className, dataTestId, onClick, details, tableCellComponent, }) => {
|
|
332
332
|
const interactableItemClass = onClick
|
package/index.esm.js
CHANGED
|
@@ -110,7 +110,7 @@ const cvaHorizontalChildFragment = cvaMerge(["h-px", "w-full", "min-w-px", "bg-s
|
|
|
110
110
|
* Widget layout with a horizontal orientation with a border in the top when scrolling.
|
|
111
111
|
*
|
|
112
112
|
* @param { HorizontalWidgetLayoutProps} props - The props for the component
|
|
113
|
-
* @returns {
|
|
113
|
+
* @returns {Element} HorizontalWidgetLayout component
|
|
114
114
|
*/
|
|
115
115
|
const HorizontalWidgetLayout = ({ className, dataTestId, children, ref }) => {
|
|
116
116
|
const childrenArray = Children.toArray(children);
|
|
@@ -136,7 +136,7 @@ cvaMerge(["h-full", "w-px", "min-h-px", "bg-slate-200"]);
|
|
|
136
136
|
* Widget layout with a vertical split
|
|
137
137
|
*
|
|
138
138
|
* @param { VerticalSplitWidgetLayoutProps} props - The props for the component
|
|
139
|
-
* @returns {
|
|
139
|
+
* @returns {Element} VerticalSplitWidgetLayout component
|
|
140
140
|
*/
|
|
141
141
|
const VerticalSplitWidgetLayout = ({ className, dataTestId, children }) => {
|
|
142
142
|
const childrenArray = Children.toArray(children);
|
|
@@ -310,7 +310,7 @@ const cvaWidgetListVirtualizedList = cvaMerge(["w-full"]);
|
|
|
310
310
|
* WidgetList used for rendering a list of in a widget
|
|
311
311
|
*
|
|
312
312
|
* @param { WidgetListProps} props - The props for the WidgetList component
|
|
313
|
-
* @returns {
|
|
313
|
+
* @returns {Element} WidgetList component
|
|
314
314
|
*/
|
|
315
315
|
const WidgetList = ({ dataTestId, pagination, count, children, className, rowHeight = 56, scrollRef, }) => {
|
|
316
316
|
return (jsx("div", { className: cvaWidgetList({ className }), children: jsx(VirtualizedList, { className: cvaWidgetListVirtualizedList(), count: count, dataTestId: dataTestId, loadingIndicator: "skeletonLines", pagination: pagination, rowHeight: rowHeight, scrollRef: scrollRef, separator: "line", skeletonLinesHeight: `${rowHeight / 3}px`, children: index => {
|
|
@@ -324,7 +324,7 @@ const cvaWidgetListItem = cvaMerge(["py-2", "px-4", "h-14", "w-full"]);
|
|
|
324
324
|
* Widget ListItem component for the WidgetList component this is 1 row in the list
|
|
325
325
|
*
|
|
326
326
|
* @param { WidgetListItemProps} props - The props for the WidgetListItem component
|
|
327
|
-
* @returns {
|
|
327
|
+
* @returns {Element} WidgetListItem component
|
|
328
328
|
*/
|
|
329
329
|
const WidgetListItem = ({ className, dataTestId, onClick, details, tableCellComponent, }) => {
|
|
330
330
|
const interactableItemClass = onClick
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-widgets",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.15",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"react": "19.0.0",
|
|
11
|
-
"@trackunit/react-components": "1.7.
|
|
12
|
-
"@trackunit/iris-app-runtime-core": "1.7.
|
|
13
|
-
"@trackunit/css-class-variance-utilities": "1.6.
|
|
14
|
-
"@trackunit/ui-design-tokens": "1.6.
|
|
15
|
-
"@trackunit/ui-icons": "1.6.
|
|
16
|
-
"@trackunit/react-table-pagination": "1.6.
|
|
17
|
-
"@trackunit/shared-utils": "1.8.
|
|
18
|
-
"@trackunit/i18n-library-translation": "1.6.
|
|
19
|
-
"@trackunit/react-test-setup": "1.3.
|
|
11
|
+
"@trackunit/react-components": "1.7.12",
|
|
12
|
+
"@trackunit/iris-app-runtime-core": "1.7.10",
|
|
13
|
+
"@trackunit/css-class-variance-utilities": "1.6.10",
|
|
14
|
+
"@trackunit/ui-design-tokens": "1.6.10",
|
|
15
|
+
"@trackunit/ui-icons": "1.6.9",
|
|
16
|
+
"@trackunit/react-table-pagination": "1.6.9",
|
|
17
|
+
"@trackunit/shared-utils": "1.8.10",
|
|
18
|
+
"@trackunit/i18n-library-translation": "1.6.10",
|
|
19
|
+
"@trackunit/react-test-setup": "1.3.10"
|
|
20
20
|
},
|
|
21
21
|
"module": "./index.esm.js",
|
|
22
22
|
"main": "./index.cjs.js",
|
|
@@ -8,6 +8,6 @@ export interface HorizontalWidgetLayoutProps extends CommonProps {
|
|
|
8
8
|
* Widget layout with a horizontal orientation with a border in the top when scrolling.
|
|
9
9
|
*
|
|
10
10
|
* @param { HorizontalWidgetLayoutProps} props - The props for the component
|
|
11
|
-
* @returns {
|
|
11
|
+
* @returns {Element} HorizontalWidgetLayout component
|
|
12
12
|
*/
|
|
13
13
|
export declare const HorizontalWidgetLayout: ({ className, dataTestId, children, ref }: HorizontalWidgetLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,6 +7,6 @@ export interface VerticalSplitWidgetLayoutProps extends CommonProps {
|
|
|
7
7
|
* Widget layout with a vertical split
|
|
8
8
|
*
|
|
9
9
|
* @param { VerticalSplitWidgetLayoutProps} props - The props for the component
|
|
10
|
-
* @returns {
|
|
10
|
+
* @returns {Element} VerticalSplitWidgetLayout component
|
|
11
11
|
*/
|
|
12
12
|
export declare const VerticalSplitWidgetLayout: ({ className, dataTestId, children }: VerticalSplitWidgetLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -30,6 +30,6 @@ export interface WidgetListProps extends CommonProps, MappedOmit<VariantProps<ty
|
|
|
30
30
|
* WidgetList used for rendering a list of in a widget
|
|
31
31
|
*
|
|
32
32
|
* @param { WidgetListProps} props - The props for the WidgetList component
|
|
33
|
-
* @returns {
|
|
33
|
+
* @returns {Element} WidgetList component
|
|
34
34
|
*/
|
|
35
35
|
export declare const WidgetList: ({ dataTestId, pagination, count, children, className, rowHeight, scrollRef, }: WidgetListProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,6 +11,6 @@ export interface WidgetListItemProps extends CommonProps, MappedOmit<VariantProp
|
|
|
11
11
|
* Widget ListItem component for the WidgetList component this is 1 row in the list
|
|
12
12
|
*
|
|
13
13
|
* @param { WidgetListItemProps} props - The props for the WidgetListItem component
|
|
14
|
-
* @returns {
|
|
14
|
+
* @returns {Element} WidgetListItem component
|
|
15
15
|
*/
|
|
16
16
|
export declare const WidgetListItem: ({ className, dataTestId, onClick, details, tableCellComponent, }: WidgetListItemProps) => import("react/jsx-runtime").JSX.Element;
|