@vention/machine-ui 5.0.25 → 5.0.27
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
|
@@ -8931,7 +8931,7 @@ const VentionPopover = props => {
|
|
|
8931
8931
|
const popoverRef = useRef(null);
|
|
8932
8932
|
const {
|
|
8933
8933
|
title,
|
|
8934
|
-
|
|
8934
|
+
content,
|
|
8935
8935
|
anchorElement,
|
|
8936
8936
|
pos2D,
|
|
8937
8937
|
titleIcon,
|
|
@@ -9031,11 +9031,11 @@ const VentionPopover = props => {
|
|
|
9031
9031
|
component: "div",
|
|
9032
9032
|
children: title
|
|
9033
9033
|
})]
|
|
9034
|
-
}),
|
|
9034
|
+
}), content && (typeof content === "string" ? jsx(Typography, {
|
|
9035
9035
|
variant: "uiText14Regular",
|
|
9036
|
-
className: classes.
|
|
9037
|
-
children:
|
|
9038
|
-
}), props.buttons && jsx(Stack, {
|
|
9036
|
+
className: classes.content,
|
|
9037
|
+
children: content
|
|
9038
|
+
}) : content), props.buttons && jsx(Stack, {
|
|
9039
9039
|
direction: "row",
|
|
9040
9040
|
justifyContent: "flex-end",
|
|
9041
9041
|
spacing: 2,
|
|
@@ -9120,7 +9120,7 @@ const useStyles$h = tss.create(({
|
|
|
9120
9120
|
height: 140,
|
|
9121
9121
|
marginBottom: theme.spacing(4)
|
|
9122
9122
|
},
|
|
9123
|
-
|
|
9123
|
+
content: {
|
|
9124
9124
|
paddingTop: theme.spacing(2),
|
|
9125
9125
|
paddingBottom: 0
|
|
9126
9126
|
},
|
package/package.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
1
2
|
import { VentionButtonProps } from "../vention-button/button-utils";
|
|
2
3
|
export interface VentionPopoverProps {
|
|
3
4
|
/** Supporting image for the popover */
|
|
@@ -6,8 +7,8 @@ export interface VentionPopoverProps {
|
|
|
6
7
|
titleIcon?: string;
|
|
7
8
|
/** Header title text */
|
|
8
9
|
title?: string;
|
|
9
|
-
/**
|
|
10
|
-
|
|
10
|
+
/** Content of the popover */
|
|
11
|
+
content?: ReactNode;
|
|
11
12
|
/** The element to anchor the popover to */
|
|
12
13
|
anchorElement?: HTMLElement | null;
|
|
13
14
|
/** Absolute position of the popover from 'top' and 'left' */
|