@react-hive/honey-layout 17.11.0 → 17.12.0
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/dist/components/HoneyContextMenu/HoneyContextMenu.d.ts +2 -4
- package/dist/components/HoneyContextMenu/HoneyContextMenuContentOptionStyled.d.ts +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.dev.cjs +5 -3
- package/dist/index.dev.cjs.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.dev.cjs
CHANGED
|
@@ -3966,11 +3966,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3966
3966
|
|
|
3967
3967
|
|
|
3968
3968
|
|
|
3969
|
-
const HoneyContextMenu = ({
|
|
3969
|
+
const HoneyContextMenu = ({ options, renderOption, optionProps, roleOptions, optionsProps, context, ...props }) => {
|
|
3970
3970
|
return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_HoneyPopup__WEBPACK_IMPORTED_MODULE_1__.HoneyPopup, { context: context, content: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_HoneyContextMenuContent__WEBPACK_IMPORTED_MODULE_2__.HoneyContextMenuContent, { options: options, renderOption: renderOption, optionProps: optionProps, popupProps: props, ...optionsProps }), roleOptions: {
|
|
3971
3971
|
role: 'menu',
|
|
3972
3972
|
...roleOptions,
|
|
3973
|
-
}, useArrow: true, "data-testid": "honey-context-menu", ...props
|
|
3973
|
+
}, useArrow: true, "data-testid": "honey-context-menu", ...props }));
|
|
3974
3974
|
};
|
|
3975
3975
|
|
|
3976
3976
|
|
|
@@ -5034,7 +5034,9 @@ const HoneyPopupContent = ({ children, referenceProps, content, contentProps, fo
|
|
|
5034
5034
|
context,
|
|
5035
5035
|
floatingContext: floating.context,
|
|
5036
5036
|
}), [context, floating.context]);
|
|
5037
|
-
return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_HoneyPopupStyled__WEBPACK_IMPORTED_MODULE_5__.HoneyPopupStyled, { ref: floating.refs.setReference, ...interactions.getReferenceProps(
|
|
5037
|
+
return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_HoneyPopupStyled__WEBPACK_IMPORTED_MODULE_5__.HoneyPopupStyled, { ref: floating.refs.setReference, ...interactions.getReferenceProps({
|
|
5038
|
+
onClick: e => e.stopPropagation(),
|
|
5039
|
+
}), ...referenceProps, "data-testid": "honey-popup", children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components__WEBPACK_IMPORTED_MODULE_4__.HoneyPopupContext, { value: popupContext, children: [(0,_react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_3__.invokeIfFunction)(children, popupContext), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_floating_ui_react__WEBPACK_IMPORTED_MODULE_2__.FloatingNode, { id: nodeId, children: transition.isMounted && ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_HoneyPopupPortal__WEBPACK_IMPORTED_MODULE_6__.HoneyPopupPortal, { ...portalProps, children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_floating_ui_react__WEBPACK_IMPORTED_MODULE_2__.FloatingFocusManager, { context: floating.context, disabled: !isOpen, ...focusManagerProps, children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components__WEBPACK_IMPORTED_MODULE_4__.HoneyOverlay, { ref: floating.refs.setFloating, active: isOpen, style: adjustStyles?.({
|
|
5038
5040
|
...floating.floatingStyles,
|
|
5039
5041
|
...transition.styles,
|
|
5040
5042
|
}, {
|