@skbkontur/side-menu 3.4.5 → 3.4.6
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.4.6](https://git.skbkontur.ru/ui/ui-parking-2/compare/@skbkontur/side-menu@3.4.5...@skbkontur/side-menu@3.4.6) (2025-12-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **SideMenu:** add aria-label to SideMenu.Dropdown ([7cc99b5](https://git.skbkontur.ru/ui/ui-parking-2/commits/7cc99b5bb1a7e9a74422160f3cb105723f64e86e))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [3.4.5](https://git.skbkontur.ru/ui/ui-parking-2/compare/@skbkontur/side-menu@3.4.4...@skbkontur/side-menu@3.4.5) (2025-12-10)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @skbkontur/side-menu
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ import { getSideMenuTheme } from '../../lib/theming/ThemeHelpers';
|
|
|
9
9
|
import { jsStyles } from './SideMenuDropdown.styles';
|
|
10
10
|
var SideMenuDropdownInner = forwardRef(function (_a, ref) {
|
|
11
11
|
var _b, _c;
|
|
12
|
-
var icon = _a.icon, id = _a.id, children = _a.children, caption = _a.caption, marker = _a.marker, subCaption = _a.subCaption, className = _a.className, menuWidth = _a.menuWidth, _isAvatar = _a._isAvatar, onClose = _a.onClose, onOpen = _a.onOpen, rest = __rest(_a, ["icon", "id", "children", "caption", "marker", "subCaption", "className", "menuWidth", "_isAvatar", "onClose", "onOpen"]);
|
|
12
|
+
var icon = _a.icon, id = _a.id, children = _a.children, caption = _a.caption, marker = _a.marker, subCaption = _a.subCaption, className = _a.className, menuWidth = _a.menuWidth, _isAvatar = _a._isAvatar, onClose = _a.onClose, onOpen = _a.onOpen, ariaLabel = _a["aria-label"], rest = __rest(_a, ["icon", "id", "children", "caption", "marker", "subCaption", "className", "menuWidth", "_isAvatar", "onClose", "onOpen", 'aria-label']);
|
|
13
13
|
var context = useContext(SideMenuContext);
|
|
14
14
|
var theme = getSideMenuTheme(useContext(ThemeContext));
|
|
15
15
|
var handleOpen = function () {
|
|
@@ -28,7 +28,7 @@ var SideMenuDropdownInner = forwardRef(function (_a, ref) {
|
|
|
28
28
|
_c[jsStyles.labelForTouchScreens(theme)] = context.isTouchScreen,
|
|
29
29
|
_c[jsStyles.minimizedLabel()] = !context.isOpened,
|
|
30
30
|
_c)) },
|
|
31
|
-
React.createElement(SideMenuItem, { icon: icon, caption: caption, subCaption: subCaption, marker: marker, id: id, _isDropdown: true, _isAvatar: _isAvatar })), positions: ['top left'], disableAnimations: true, menuWidth: menuWidth, onOpen: handleOpen, onClose: handleClose }, rest), React.Children.map(children, function (child) {
|
|
31
|
+
React.createElement(SideMenuItem, { "aria-label": ariaLabel, icon: icon, caption: caption, subCaption: subCaption, marker: marker, id: id, _isDropdown: true, _isAvatar: _isAvatar })), positions: ['top left'], disableAnimations: true, menuWidth: menuWidth, onOpen: handleOpen, onClose: handleClose }, rest), React.Children.map(children, function (child) {
|
|
32
32
|
// @ts-expect-error: accessing private property
|
|
33
33
|
if (React.isValidElement(child) && (child === null || child === void 0 ? void 0 : child.type.__KONTUR_REACT_UI__) === 'MenuItem') {
|
|
34
34
|
return React.cloneElement(child, {
|