@vention/machine-ui 5.0.38 → 5.3.2
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
|
@@ -8927,7 +8927,9 @@ const ventionPopoverArrowSize = 10;
|
|
|
8927
8927
|
const VentionPopover = props => {
|
|
8928
8928
|
const {
|
|
8929
8929
|
classes
|
|
8930
|
-
} = useStyles$h(
|
|
8930
|
+
} = useStyles$h({
|
|
8931
|
+
maxWidth: props.maxWidth
|
|
8932
|
+
});
|
|
8931
8933
|
const popoverRef = useRef(null);
|
|
8932
8934
|
const {
|
|
8933
8935
|
title,
|
|
@@ -9094,8 +9096,9 @@ const getArrowStyles = arrowPos => {
|
|
|
9094
9096
|
borderColor: getBorderColor()
|
|
9095
9097
|
});
|
|
9096
9098
|
};
|
|
9097
|
-
const useStyles$h = tss.create(({
|
|
9098
|
-
theme
|
|
9099
|
+
const useStyles$h = tss.withParams().create(({
|
|
9100
|
+
theme,
|
|
9101
|
+
maxWidth
|
|
9099
9102
|
}) => {
|
|
9100
9103
|
return {
|
|
9101
9104
|
box: {
|
|
@@ -9103,7 +9106,7 @@ const useStyles$h = tss.create(({
|
|
|
9103
9106
|
position: "absolute",
|
|
9104
9107
|
zIndex: 10,
|
|
9105
9108
|
minWidth: 280,
|
|
9106
|
-
maxWidth:
|
|
9109
|
+
maxWidth: maxWidth
|
|
9107
9110
|
},
|
|
9108
9111
|
card: {
|
|
9109
9112
|
padding: theme.spacing(4),
|
package/package.json
CHANGED
|
@@ -22,6 +22,8 @@ export interface VentionPopoverProps {
|
|
|
22
22
|
buttons?: [VentionButtonProps?, VentionButtonProps?, VentionButtonProps?];
|
|
23
23
|
/** Arrow position of the popover */
|
|
24
24
|
arrowPosition: "top" | "bottom" | "left" | "right";
|
|
25
|
+
/** Max width for the popover; omit to size to content */
|
|
26
|
+
maxWidth?: number | string;
|
|
25
27
|
}
|
|
26
28
|
export declare const ventionPopoverArrowSize = 10;
|
|
27
29
|
export declare const VentionPopover: (props: VentionPopoverProps) => import("react/jsx-runtime").JSX.Element;
|