@skbkontur/side-menu 1.8.13 → 1.8.15

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,28 @@
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
+ ## [1.8.15](https://git.skbkontur.ru/ui/ui-parking/compare/@skbkontur/side-menu@1.8.14...@skbkontur/side-menu@1.8.15) (2024-02-06)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **SideMenu:** add href prop forwarding ([7442a4e](https://git.skbkontur.ru/ui/ui-parking/commits/7442a4e089ce211f93626f54b490a36010c9d1dc))
12
+
13
+
14
+
15
+
16
+
17
+ ## [1.8.14](https://git.skbkontur.ru/ui/ui-parking/compare/@skbkontur/side-menu@1.8.13...@skbkontur/side-menu@1.8.14) (2024-01-30)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **SideMenu:** fix separated submenu on mobiles ([6b79437](https://git.skbkontur.ru/ui/ui-parking/commits/6b794375503562aa3e64da70ba93c57a274311b8))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [1.8.13](https://git.skbkontur.ru/ui/ui-parking/compare/@skbkontur/side-menu@1.8.12...@skbkontur/side-menu@1.8.13) (2024-01-26)
7
29
 
8
30
  **Note:** Version bump only for package @skbkontur/side-menu
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skbkontur/side-menu",
3
- "version": "1.8.13",
3
+ "version": "1.8.15",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"
@@ -98,7 +98,7 @@ var ClickableElement = forwardRef(function (_a, ref) {
98
98
  shouldHighlightTopLevelItemWhenSubItemSelectedInSeparatedMenu ||
99
99
  shouldHighlightTopLevelItemWhenMenuIsMinimized,
100
100
  _b[jsStyles.activeRootSubItemInSeparatedSubMenu(theme)] = isActive && context.isSeparatedMenu && _isSubMenu,
101
- _b), className), onClick: handleClick, onFocus: handleFocus, onBlur: handleBlur, children: (React.createElement(ItemContent, { _isSubMenu: _isSubMenu, icon: icon, _isNestedSubMenu: _isNestedSubMenu, caption: caption, subCaption: subCaption, marker: marker, _isBackButton: _isBackButton, _isDropdown: _isDropdown, _isAvatar: _isAvatar })), ref: ref }, rest);
101
+ _b), className), onClick: handleClick, onFocus: handleFocus, onBlur: handleBlur, children: (React.createElement(ItemContent, { _isSubMenu: _isSubMenu, icon: icon, _isNestedSubMenu: _isNestedSubMenu, caption: caption, subCaption: subCaption, marker: marker, _isBackButton: _isBackButton, _isDropdown: _isDropdown, _isAvatar: _isAvatar })), ref: ref, href: href }, rest);
102
102
  return (React.createElement(Component, null,
103
103
  React.cloneElement(React.createElement(Tag, { state: isActive ? 'active' : undefined }), children
104
104
  ? __assign(__assign({}, newProps), { 'aria-expanded': isOpened, 'aria-controls': "" + (id || _generatedId) }) : __assign({}, newProps)),
@@ -40,7 +40,7 @@ var SeparatedSubMenu = forwardRef(function (_a, ref) {
40
40
  _b[jsStyles.root(theme)] = true,
41
41
  _b[customStyles.rootForMobiles(context.headerHeight)] = context.isMobile,
42
42
  _b[jsStyles.rootForDesktop(theme)] = context.isDesktop,
43
- _b[jsStyles.rootForTouchScreens(theme)] = context.isTouchScreen && context.isOpened,
43
+ _b[jsStyles.rootForTouchScreens(theme)] = context.isTouchScreen && context.isOpened && context.isNarrowDesktop,
44
44
  _b[jsStyles.rootForNarrowDesktop(theme)] = context.isNarrowDesktop,
45
45
  _b[jsStyles.rootWithShadow(theme)] = context.isTablet && !isIE11,
46
46
  _b)), ref: ref, "data-tid": SideMenuDataTids.separatedSubMenu },