@trackunit/react-widgets 2.1.74 → 2.1.78

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 CHANGED
@@ -316,7 +316,7 @@ const TrendIndicator = ({ trend, unit, isSmallVariant }) => {
316
316
  };
317
317
 
318
318
  const cvaWidgetList = cssClassVarianceUtilities.cvaMerge(["min-h-0"]);
319
- const cvaWidgetListVirtualizedList = cssClassVarianceUtilities.cvaMerge(["w-full"]);
319
+ const cvaWidgetListList = cssClassVarianceUtilities.cvaMerge(["w-full"]);
320
320
 
321
321
  /**
322
322
  * WidgetList used for rendering a list of in a widget. It is a wrapper component for the ListItem components.
@@ -325,7 +325,7 @@ const cvaWidgetListVirtualizedList = cssClassVarianceUtilities.cvaMerge(["w-full
325
325
  * @returns {Element} WidgetList component
326
326
  */
327
327
  const WidgetList = ({ dataTestId, pagination, count, children, className, rowHeight = 56, scrollRef, }) => {
328
- 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 => {
328
+ return (jsxRuntime.jsx("div", { className: cvaWidgetList({ className }), children: jsxRuntime.jsx(reactComponents.List, { className: cvaWidgetListList(), count: count, dataTestId: dataTestId, loadingIndicator: "skeletonLines", pagination: pagination, rowHeight: rowHeight, scrollRef: scrollRef, separator: "line", skeletonLinesHeight: `${rowHeight / 3}px`, children: index => {
329
329
  return children(index);
330
330
  } }) }));
331
331
  };
package/index.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import { registerTranslations, useNamespaceTranslation } from '@trackunit/i18n-library-translation';
3
- import { EmptyState, useScrollDetection, Card, CardHeader, CardBody, CardFooter, Button, SkeletonLines, Icon, Tooltip, Text, VirtualizedList } from '@trackunit/react-components';
3
+ import { EmptyState, useScrollDetection, Card, CardHeader, CardBody, CardFooter, Button, SkeletonLines, Icon, Tooltip, Text, List } from '@trackunit/react-components';
4
4
  import { Children, Fragment, useState } from 'react';
5
5
  import { WidgetConfigRuntime } from '@trackunit/iris-app-runtime-core';
6
6
  import { cvaMerge } from '@trackunit/css-class-variance-utilities';
@@ -314,7 +314,7 @@ const TrendIndicator = ({ trend, unit, isSmallVariant }) => {
314
314
  };
315
315
 
316
316
  const cvaWidgetList = cvaMerge(["min-h-0"]);
317
- const cvaWidgetListVirtualizedList = cvaMerge(["w-full"]);
317
+ const cvaWidgetListList = cvaMerge(["w-full"]);
318
318
 
319
319
  /**
320
320
  * WidgetList used for rendering a list of in a widget. It is a wrapper component for the ListItem components.
@@ -323,7 +323,7 @@ const cvaWidgetListVirtualizedList = cvaMerge(["w-full"]);
323
323
  * @returns {Element} WidgetList component
324
324
  */
325
325
  const WidgetList = ({ dataTestId, pagination, count, children, className, rowHeight = 56, scrollRef, }) => {
326
- 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 => {
326
+ return (jsx("div", { className: cvaWidgetList({ className }), children: jsx(List, { className: cvaWidgetListList(), count: count, dataTestId: dataTestId, loadingIndicator: "skeletonLines", pagination: pagination, rowHeight: rowHeight, scrollRef: scrollRef, separator: "line", skeletonLinesHeight: `${rowHeight / 3}px`, children: index => {
327
327
  return children(index);
328
328
  } }) }));
329
329
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-widgets",
3
- "version": "2.1.74",
3
+ "version": "2.1.78",
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.8.23",
12
- "@trackunit/iris-app-runtime-core": "1.7.52",
13
- "@trackunit/css-class-variance-utilities": "1.6.50",
14
- "@trackunit/ui-design-tokens": "1.6.52",
15
- "@trackunit/ui-icons": "1.6.49",
16
- "@trackunit/react-table-pagination": "1.6.49",
17
- "@trackunit/shared-utils": "1.8.50",
18
- "@trackunit/i18n-library-translation": "1.6.54",
19
- "@trackunit/react-test-setup": "1.3.50"
11
+ "@trackunit/react-components": "1.8.27",
12
+ "@trackunit/iris-app-runtime-core": "1.7.55",
13
+ "@trackunit/css-class-variance-utilities": "1.6.52",
14
+ "@trackunit/ui-design-tokens": "1.6.54",
15
+ "@trackunit/ui-icons": "1.6.51",
16
+ "@trackunit/react-table-pagination": "1.6.51",
17
+ "@trackunit/shared-utils": "1.8.53",
18
+ "@trackunit/i18n-library-translation": "1.6.57",
19
+ "@trackunit/react-test-setup": "1.3.52"
20
20
  },
21
21
  "module": "./index.esm.js",
22
22
  "main": "./index.cjs.js",
@@ -1,2 +1,2 @@
1
1
  export declare const cvaWidgetList: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
2
- export declare const cvaWidgetListVirtualizedList: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
2
+ export declare const cvaWidgetListList: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;