@skbkontur/side-menu 0.11.1 → 0.12.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/CHANGELOG.md +17 -0
- package/package.json +2 -2
- package/src/internal/Burger.js +2 -2
- package/src/internal/ItemContent/Icon.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
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
|
+
# [0.12.0](https://git.skbkontur.ru/ui/ui-parking/compare/@skbkontur/side-menu@0.11.1...@skbkontur/side-menu@0.12.0) (2023-06-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **icons:** new icons, renaming icons, new API ([8d55b8d](https://git.skbkontur.ru/ui/ui-parking/commits/8d55b8d0459ea3e6af329813cbfe7b85ee239b51))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* **icons:** prop `disableCompensation` replaced with prop `align`
|
|
17
|
+
* **icons:** icons now use numbers instead of letters for representing numbers
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
## [0.11.1](https://git.skbkontur.ru/ui/ui-parking/compare/@skbkontur/side-menu@0.11.0...@skbkontur/side-menu@0.11.1) (2023-06-02)
|
|
7
24
|
|
|
8
25
|
**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": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@skbkontur/react-ui": "4.13.0"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@skbkontur/icons": "^0.
|
|
25
|
+
"@skbkontur/icons": "^0.17.0",
|
|
26
26
|
"@skbkontur/react-ui-addons": "^4.7.0",
|
|
27
27
|
"tslib": "^1"
|
|
28
28
|
}
|
package/src/internal/Burger.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import { jsStyles } from './Burger.styles';
|
|
3
3
|
import { SideMenuContext } from '../SideMenuContext';
|
|
4
|
-
import {
|
|
4
|
+
import { UiMenuBars3HIcon24Regular } from '@skbkontur/icons';
|
|
5
5
|
import { SideMenuDataTids } from '../../SideMenuDataTids';
|
|
6
6
|
import { getSideMenuTheme } from '../../lib/theming/ThemeHelpers';
|
|
7
7
|
import { ThemeContext } from '@skbkontur/react-ui';
|
|
@@ -9,5 +9,5 @@ export var Burger = function () {
|
|
|
9
9
|
var context = useContext(SideMenuContext);
|
|
10
10
|
var theme = getSideMenuTheme(useContext(ThemeContext));
|
|
11
11
|
return (React.createElement("button", { className: jsStyles.rootForTabletsOrMobiles(theme), onClick: context.toggleIsShown, "data-tid": SideMenuDataTids.burger },
|
|
12
|
-
React.createElement(
|
|
12
|
+
React.createElement(UiMenuBars3HIcon24Regular, null)));
|
|
13
13
|
};
|
|
@@ -21,7 +21,7 @@ export var Icon = function (_a) {
|
|
|
21
21
|
return React.cloneElement(icon, {
|
|
22
22
|
size: getIconSize(theme, _isSubMenu, _isBackButton),
|
|
23
23
|
color: _isSubMenu ? theme.sideMenuIconSubItemColor : undefined,
|
|
24
|
-
|
|
24
|
+
align: _isBackButton ? 'baseline' : 'none',
|
|
25
25
|
className: cx((_b = {},
|
|
26
26
|
_b[jsStyles.root(theme)] = true,
|
|
27
27
|
_b[jsStyles.rootMultiline()] = isMultiline && (!context.isMinimized || _isSubMenu),
|