@lumx/react 4.21.0 → 4.21.1-alpha.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.
- package/index.d.ts +2 -2
- package/index.js +3 -2
- package/index.js.map +1 -1
- package/package.json +5 -4
package/index.d.ts
CHANGED
|
@@ -3614,7 +3614,7 @@ interface MenuButtonProps$1 {
|
|
|
3614
3614
|
}
|
|
3615
3615
|
|
|
3616
3616
|
/** MenuPopover props. */
|
|
3617
|
-
interface MenuPopoverProps$1 extends HasClassName, Pick<PopoverProps$1, 'placement' | 'anchorRef' | 'isOpen' | 'handleClose'> {
|
|
3617
|
+
interface MenuPopoverProps$1 extends HasClassName, Pick<PopoverProps$1, 'placement' | 'anchorRef' | 'isOpen' | 'handleClose' | 'fitToAnchorWidth'> {
|
|
3618
3618
|
/** Popover content (a `Menu`). */
|
|
3619
3619
|
children?: JSXElement;
|
|
3620
3620
|
}
|
|
@@ -3629,7 +3629,7 @@ interface MenuPopoverProps extends ReactToJSX<MenuPopoverProps$1, 'isOpen' | 'an
|
|
|
3629
3629
|
/** Props that MenuButton explicitly declares. */
|
|
3630
3630
|
type MenuButtonBase = ReactToJSX<MenuButtonProps$1, 'triggerProps' | 'variant'> & {
|
|
3631
3631
|
children?: React__default.ReactNode;
|
|
3632
|
-
popoverProps?: MenuPopoverProps
|
|
3632
|
+
popoverProps?: Omit<MenuPopoverProps, 'children'>;
|
|
3633
3633
|
onOpen?: (isOpen: boolean) => void;
|
|
3634
3634
|
label: string;
|
|
3635
3635
|
};
|
package/index.js
CHANGED
|
@@ -15910,6 +15910,7 @@ const MenuPopover$1 = (props, {
|
|
|
15910
15910
|
className,
|
|
15911
15911
|
isOpen,
|
|
15912
15912
|
placement = 'bottom-start',
|
|
15913
|
+
fitToAnchorWidth = FitAnchorWidth.MIN_WIDTH,
|
|
15913
15914
|
anchorRef,
|
|
15914
15915
|
handleClose,
|
|
15915
15916
|
...forwardedProps
|
|
@@ -15926,7 +15927,7 @@ const MenuPopover$1 = (props, {
|
|
|
15926
15927
|
focusAnchorOnClose: true,
|
|
15927
15928
|
withFocusTrap: false,
|
|
15928
15929
|
closeMode: "hide",
|
|
15929
|
-
fitToAnchorWidth:
|
|
15930
|
+
fitToAnchorWidth: fitToAnchorWidth,
|
|
15930
15931
|
className: block$z([className]),
|
|
15931
15932
|
children: /*#__PURE__*/jsx(FlexBox, {
|
|
15932
15933
|
orientation: "vertical",
|
|
@@ -23026,7 +23027,7 @@ const UserBlock$1 = props => {
|
|
|
23026
23027
|
linkProps
|
|
23027
23028
|
});
|
|
23028
23029
|
const shouldDisplayFields = componentSize !== Size.s && componentSize !== Size.xs;
|
|
23029
|
-
const fieldsBlock = fields && shouldDisplayFields && /*#__PURE__*/jsx("
|
|
23030
|
+
const fieldsBlock = fields && shouldDisplayFields && /*#__PURE__*/jsx("p", {
|
|
23030
23031
|
className: element('fields'),
|
|
23031
23032
|
children: fields.map((field, idx) => /*#__PURE__*/jsx(Text, {
|
|
23032
23033
|
as: "span",
|