@react-hive/honey-layout 17.2.0 → 17.3.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/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @deprecated Please, use import from `@react-hive/honey-style`
3
3
  */
4
- declare const resolveSpacing: <Value extends import("@react-hive/honey-style").HoneyCssSpacingValue, Unit extends import("@react-hive/honey-style").Nullable<import("@react-hive/honey-style").HoneyCssDimensionUnit> = "px">(value: Value, unit?: Unit, type?: keyof import("@react-hive/honey-style").HoneySpacings) => ((context: import("@react-hive/honey-style").HoneyStyledContext<object>) => import("@react-hive/honey-style").HoneyResolveSpacingResult<Value, Unit>);
4
+ declare const resolveSpacing: <Value extends import("@react-hive/honey-style").HoneyCssSpacingValue, Unit extends import("@react-hive/honey-style").Nullable<import("@react-hive/honey-css").HoneyCssDimensionUnit> = "px">(value: Value, unit?: Unit, type?: keyof import("@react-hive/honey-style").HoneySpacings) => ((context: import("@react-hive/honey-style").HoneyStyledContext<object>) => import("@react-hive/honey-style").HoneyResolveSpacingResult<Value, Unit>);
5
5
  export { resolveSpacing };
6
6
  export * from './constants';
7
7
  export * from './types';
@@ -4959,7 +4959,7 @@ const HoneyPopupContent = ({ children, referenceProps, content, contentProps, fo
4959
4959
  context,
4960
4960
  floatingContext: floating.context,
4961
4961
  }), [context, floating.context]);
4962
- return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_HoneyPopupStyled__WEBPACK_IMPORTED_MODULE_5__.HoneyPopupStyled, { ref: floating.refs.setReference, ...interactions.getReferenceProps(), ...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?.({
4962
+ return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_HoneyPopupStyled__WEBPACK_IMPORTED_MODULE_5__.HoneyPopupStyled, { ref: floating.refs.setReference, ...interactions.getReferenceProps(), ...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__.jsx)(_components__WEBPACK_IMPORTED_MODULE_4__.HoneyOverlay, { ref: floating.refs.setFloating, active: isOpen, style: adjustStyles?.({
4963
4963
  ...floating.floatingStyles,
4964
4964
  ...transition.styles,
4965
4965
  }, {
@@ -4967,7 +4967,7 @@ const HoneyPopupContent = ({ children, referenceProps, content, contentProps, fo
4967
4967
  }) ?? {
4968
4968
  ...floating.floatingStyles,
4969
4969
  ...transition.styles,
4970
- }, onDeactivate: handleDeactivateOverlay, ...interactions.getFloatingProps(), ...contentProps, "data-testid": "honey-popup-floating-content", children: [useArrow && ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_floating_ui_react__WEBPACK_IMPORTED_MODULE_2__.FloatingArrow, { ref: arrowRef, context: floating.context, fill: "white", ...arrowProps })), (0,_react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_3__.invokeIfFunction)(content, popupContext)] }) }) })) })] }) }));
4970
+ }, onDeactivate: handleDeactivateOverlay, ...interactions.getFloatingProps(), ...contentProps, "data-testid": "honey-popup-floating-content", children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: [useArrow && ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_floating_ui_react__WEBPACK_IMPORTED_MODULE_2__.FloatingArrow, { ref: arrowRef, context: floating.context, fill: "white", ...arrowProps })), (0,_react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_3__.invokeIfFunction)(content, popupContext)] }) }) }) })) })] }) }));
4971
4971
  };
4972
4972
 
4973
4973