@veracity/vui 2.8.0-rc.3 → 2.8.0-rc.4
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.
|
@@ -25,7 +25,7 @@ const context_1 = require("./context");
|
|
|
25
25
|
exports.MenuList = (0, core_1.vui)((props, ref) => {
|
|
26
26
|
const { className, contentProps, contentRef } = props, rest = __rest(props, ["className", "contentProps", "contentRef"]);
|
|
27
27
|
const styles = (0, core_1.useStyleConfig)('Menu', (0, context_1.useMenuContext)());
|
|
28
|
-
return (react_1.default.createElement(popover_1.PopoverContent, Object.assign({ borderRadius:
|
|
28
|
+
return (react_1.default.createElement(popover_1.PopoverContent, Object.assign({ borderRadius: 0, ref: contentRef }, contentProps),
|
|
29
29
|
react_1.default.createElement(list_1.default, Object.assign({ className: (0, utils_1.cs)('vui-menuList', className), py: 1, ref: ref, w: "100%" }, styles.list, rest))));
|
|
30
30
|
});
|
|
31
31
|
exports.MenuList.Divider = list_1.default.Divider;
|
|
@@ -8,7 +8,7 @@ import { useMenuContext } from './context';
|
|
|
8
8
|
export const MenuList = vui((props, ref) => {
|
|
9
9
|
const { className, contentProps, contentRef, ...rest } = props;
|
|
10
10
|
const styles = useStyleConfig('Menu', useMenuContext());
|
|
11
|
-
return (React.createElement(PopoverContent, { borderRadius:
|
|
11
|
+
return (React.createElement(PopoverContent, { borderRadius: 0, ref: contentRef, ...contentProps },
|
|
12
12
|
React.createElement(List, { className: cs('vui-menuList', className), py: 1, ref: ref, w: "100%", ...styles.list, ...rest })));
|
|
13
13
|
});
|
|
14
14
|
MenuList.Divider = List.Divider;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veracity/vui",
|
|
3
|
-
"version": "2.8.0-rc.
|
|
3
|
+
"version": "2.8.0-rc.4",
|
|
4
4
|
"description": "Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.",
|
|
5
5
|
"module": "./dist/esm/index.js",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
package/src/core/vui.ts
CHANGED
|
@@ -13,7 +13,7 @@ export function vui<C extends React.ElementType, Props = {}>(
|
|
|
13
13
|
const { memoCompare, isMemo = true } = config ?? {}
|
|
14
14
|
|
|
15
15
|
if (isMemo) {
|
|
16
|
-
return React.memo(React.forwardRef(component), memoCompare) as unknown as VuiComponent<C, Props>
|
|
16
|
+
return React.memo(React.forwardRef(component), memoCompare as unknown as any) as unknown as VuiComponent<C, Props>
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
return React.forwardRef(component) as unknown as VuiComponent<C, Props>
|
package/src/menu/menuList.tsx
CHANGED
|
@@ -13,7 +13,7 @@ export const MenuList = vui<'ul', MenuListProps>((props, ref) => {
|
|
|
13
13
|
const styles = useStyleConfig('Menu', useMenuContext())
|
|
14
14
|
|
|
15
15
|
return (
|
|
16
|
-
<PopoverContent borderRadius=
|
|
16
|
+
<PopoverContent borderRadius={0} ref={contentRef} {...contentProps}>
|
|
17
17
|
<List className={cs('vui-menuList', className)} py={1} ref={ref} w="100%" {...styles.list} {...rest} />
|
|
18
18
|
</PopoverContent>
|
|
19
19
|
)
|