@vention/machine-ui 5.30.13 → 5.30.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.esm.js CHANGED
@@ -11896,23 +11896,26 @@ const VentionTreeItem = /*#__PURE__*/forwardRef((inputProps, ref) => {
11896
11896
  }), captionsRight && captionsRight.length > 0 && jsx("div", {
11897
11897
  className: classes.captionRightContainer,
11898
11898
  "data-testid": `${testId}-captionRightContainer`,
11899
- children: captionsRight.map((caption, index) => jsx("div", {
11900
- className: cx(classes.captionRight, !!caption.onClick && classes.clickableCaptionRight),
11901
- onClick: caption.onClick ? event => {
11902
- event.stopPropagation();
11903
- caption.onClick(event);
11904
- } : undefined,
11905
- style: {
11906
- color: caption.color
11907
- },
11908
- "data-testid": `${testId}-captionRight-${index}`,
11909
- children: jsx(Typography, {
11910
- className: cx(classes.label, classes.captionRightLabel),
11911
- variant: "uiTableNumbers12Reg",
11912
- title: caption.text,
11913
- children: caption.text
11914
- })
11915
- }, index))
11899
+ children: captionsRight.map((caption, index) => {
11900
+ var _a;
11901
+ return jsx("div", {
11902
+ className: cx(classes.captionRight, !!caption.onClick && classes.clickableCaptionRight),
11903
+ onClick: caption.onClick ? event => {
11904
+ event.stopPropagation();
11905
+ caption.onClick(event);
11906
+ } : undefined,
11907
+ style: {
11908
+ color: caption.color
11909
+ },
11910
+ "data-testid": `${testId}-${(_a = caption.testId) !== null && _a !== void 0 ? _a : `captionRight-${index}`}`,
11911
+ children: jsx(Typography, {
11912
+ className: cx(classes.label, classes.captionRightLabel),
11913
+ variant: "uiTableNumbers12Reg",
11914
+ title: caption.text,
11915
+ children: caption.text
11916
+ })
11917
+ }, index);
11918
+ })
11916
11919
  }), hasWarning && jsx(IconAlertTriangleFilled, {
11917
11920
  className: classes.alertIcon,
11918
11921
  size: 16,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vention/machine-ui",
3
- "version": "5.30.13",
3
+ "version": "5.30.15",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/VentionCo/machine-cloud.git"
@@ -16,6 +16,7 @@ interface VentionTreeItemProps {
16
16
  text: string;
17
17
  color?: string;
18
18
  onClick?: (e: MouseEvent) => void;
19
+ testId?: string;
19
20
  }[] | undefined;
20
21
  actionButtons?: {
21
22
  component: ReactElement;