@luscii-healthtech/web-ui 2.28.0 → 2.28.1

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.
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { ListProps, ListItemProps, OnAssetLoadErrorPayload } from "./List.types";
2
+ import { ListItemProps, ListProps, OnAssetLoadErrorPayload } from "./List.types";
3
3
  import "./List.scss";
4
4
  export { ListProps, ListItemProps, OnAssetLoadErrorPayload };
5
- export declare const List: ({ title, headerButton, headerTransparent, items, onAssetLoadError, onDragEnd, emptyStateMessage, isLoading, }: ListProps) => JSX.Element;
5
+ export declare const List: ({ title, headerButton, headerTransparent, items, onAssetLoadError, onDragEnd, emptyStateMessage, isLoading, dataTestId, }: ListProps) => JSX.Element;
6
6
  export default List;
@@ -31,4 +31,5 @@ export declare type ListProps = {
31
31
  onDragEnd?: (itemId: string | number, newIndex: number) => void;
32
32
  emptyStateMessage?: string;
33
33
  isLoading?: boolean;
34
+ dataTestId?: string;
34
35
  };
@@ -1237,7 +1237,8 @@ var List = function List(_ref) {
1237
1237
  onAssetLoadError = _ref.onAssetLoadError,
1238
1238
  onDragEnd = _ref.onDragEnd,
1239
1239
  emptyStateMessage = _ref.emptyStateMessage,
1240
- isLoading = _ref.isLoading;
1240
+ isLoading = _ref.isLoading,
1241
+ dataTestId = _ref.dataTestId;
1241
1242
  var listRef = React.useRef(null);
1242
1243
  var dragulaRef = React.useRef(null);
1243
1244
  var hasHeader = !!(title || headerButton);
@@ -1299,7 +1300,7 @@ var List = function List(_ref) {
1299
1300
  }
1300
1301
 
1301
1302
  return /*#__PURE__*/React__default.createElement("div", {
1302
- "data-test-id": "list-component"
1303
+ "data-test-id": dataTestId != null ? dataTestId : "list-component"
1303
1304
  }, (title || headerButton) && /*#__PURE__*/React__default.createElement("div", {
1304
1305
  "data-test-id": "list-header",
1305
1306
  className: classNames("flex rounded-t flex-row items-center space-x-4", {