@broxus/react-uikit 0.6.7 → 0.7.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.
@@ -116,7 +116,14 @@ function InternalSubNav(props) {
116
116
  // =============================== Render ===============================
117
117
  const popupId = domDataId ? `${domDataId}-dropdown` : undefined;
118
118
  // Title
119
- let titleNode = (React.createElement("a", { role: disabled ? undefined : 'menuitem', tabIndex: disabled ? undefined : -1, ref: elementRef, title: typeof title === 'string' ? title : undefined, "aria-controls": popupId, "aria-disabled": disabled, "aria-expanded": open, "aria-haspopup": true, "data-nav-id": overflowDisabled && domDataId ? null : domDataId, style: { ...directionStyle }, onClick: onInternalTitleClick, onFocus: onInternalFocus, ...activeProps }, title));
119
+ let titleNode = (React.createElement("a", { role: disabled ? undefined : 'menuitem', tabIndex: disabled ? undefined : -1, ref: elementRef, title: typeof title === 'string' ? title : undefined, "aria-controls": popupId, "aria-disabled": disabled, "aria-expanded": open, "aria-haspopup": true, "data-nav-id": overflowDisabled && domDataId ? null : domDataId, style: { ...directionStyle }, onClick: onInternalTitleClick, onFocus: onInternalFocus, ...activeProps },
120
+ React.createElement(React.Fragment, { key: "children" },
121
+ title,
122
+ typeof mergedExpandIcon === 'function' ? mergedExpandIcon({
123
+ disabled,
124
+ isOpen: open,
125
+ isSubNav: true,
126
+ }) : mergedExpandIcon)));
120
127
  // Cache mode if it changes to `inline` which do not have popup motion
121
128
  const triggerModeRef = React.useRef(mode);
122
129
  if (mode !== 'inline' && connectedPath.length > 1) {
@@ -923,6 +923,8 @@
923
923
  @mixin hook-drawer-content() {}
924
924
  @mixin hook-drawer-mask() {}
925
925
  @mixin hook-drawer-mask-open() {}
926
+ @mixin hook-drawer-close() {}
927
+ @mixin hook-drawer-close-hover() {}
926
928
 
927
929
  @mixin hook-drop-misc() {}
928
930