@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.
- package/dist/cjs/components/Nav/Sub/index.js +8 -1
- package/dist/cjs/styles/mixins.scss +2 -0
- package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/esm/components/Nav/Sub/index.js +8 -1
- package/dist/esm/styles/mixins.scss +2 -0
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +8 -8
|
@@ -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 },
|
|
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) {
|