@skbkontur/side-menu 1.0.1 → 1.0.2
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
|
+
## [1.0.2](https://git.skbkontur.ru/ui/ui-parking/compare/@skbkontur/side-menu@1.0.1...@skbkontur/side-menu@1.0.2) (2023-08-04)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **SideMenu:** import fix, overflow-wrap ([136fadb](https://git.skbkontur.ru/ui/ui-parking/commits/136fadbb60d0723adb76bb64432722d59edca761))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [1.0.1](https://git.skbkontur.ru/ui/ui-parking/compare/@skbkontur/side-menu@1.0.0...@skbkontur/side-menu@1.0.1) (2023-08-03)
|
|
7
18
|
|
|
8
19
|
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { UserAvatarProps } from '
|
|
2
|
+
import { UserAvatarProps } from '@skbkontur/react-ui-addons/';
|
|
3
3
|
import { SideMenuDropdownProps } from '../SideMenuDropdown/SideMenuDropdown';
|
|
4
4
|
export interface SideMenuAvatarProps extends Omit<UserAvatarProps, 'style'>, Omit<SideMenuDropdownProps, 'icon' | 'caption'>, Partial<Pick<SideMenuDropdownProps, 'icon' | 'onOpen' | 'onClose'>> {
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
2
|
import React, { forwardRef, useContext } from 'react';
|
|
3
|
-
import { UserAvatar } from '
|
|
3
|
+
import { UserAvatar } from '@skbkontur/react-ui-addons/';
|
|
4
4
|
import { SideMenuDropdown } from '../SideMenuDropdown/SideMenuDropdown';
|
|
5
5
|
import { getSideMenuTheme } from '../../lib/theming/ThemeHelpers';
|
|
6
6
|
import { ThemeContext } from '@skbkontur/react-ui';
|
|
@@ -14,7 +14,7 @@ var styles = {
|
|
|
14
14
|
return css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding-top: ", ";\n align-self: flex-start;\n "], ["\n padding-top: ", ";\n align-self: flex-start;\n "])), sideMenuMultilineCaptionPaddingTop);
|
|
15
15
|
},
|
|
16
16
|
caption: function (t) {
|
|
17
|
-
return css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n margin: 0 ", " 0 0;\n "], ["\n font-size: ", ";\n line-height: ", ";\n margin: 0 ", " 0 0;\n "])), t.sideMenuCaptionFontSize, t.sideMenuCaptionLineHeight, sideMenuCaptionMarginRight);
|
|
17
|
+
return css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n margin: 0 ", " 0 0;\n overflow-wrap: anywhere;\n "], ["\n font-size: ", ";\n line-height: ", ";\n margin: 0 ", " 0 0;\n overflow-wrap: anywhere;\n "])), t.sideMenuCaptionFontSize, t.sideMenuCaptionLineHeight, sideMenuCaptionMarginRight);
|
|
18
18
|
},
|
|
19
19
|
captionForTouchScreens: function (t) {
|
|
20
20
|
return css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n "], ["\n font-size: ", ";\n line-height: ", ";\n "])), t.sideMenuCaptionFontSizeForTouchScreens, t.sideMenuCaptionLineHeightForTouchScreens);
|