@skbkontur/side-menu 1.11.2 → 1.11.4

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,25 @@
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.11.4](https://git.skbkontur.ru/ui/ui-parking/compare/@skbkontur/side-menu@1.11.3...@skbkontur/side-menu@1.11.4) (2024-03-01)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **SideMenu:** fix width on touchscreens ([5aa31cd](https://git.skbkontur.ru/ui/ui-parking/commits/5aa31cdc1f24ca87154e0914768fc94b9e553909))
12
+
13
+
14
+
15
+
16
+
17
+ ## [1.11.3](https://git.skbkontur.ru/ui/ui-parking/compare/@skbkontur/side-menu@1.11.2...@skbkontur/side-menu@1.11.3) (2024-02-29)
18
+
19
+ **Note:** Version bump only for package @skbkontur/side-menu
20
+
21
+
22
+
23
+
24
+
6
25
  ## [1.11.2](https://git.skbkontur.ru/ui/ui-parking/compare/@skbkontur/side-menu@1.11.1...@skbkontur/side-menu@1.11.2) (2024-02-28)
7
26
 
8
27
  **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.11.2",
3
+ "version": "1.11.4",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@skbkontur/icons": "^1.7.3",
26
- "@skbkontur/react-ui-addons": "^4.10.1",
26
+ "@skbkontur/react-ui-addons": "^4.10.2",
27
27
  "tslib": "^1"
28
28
  }
29
29
  }
@@ -220,6 +220,7 @@ var SideMenuInner = forwardRef(function (_a, ref) {
220
220
  _b[jsStylesForSideMenu.separatedRootForNarrowDesktops(theme)] = isSeparatedMenuShown && isNarrowDesktop,
221
221
  _b[jsStylesForSideMenu.separatedRootForTouchScreens(theme)] = isSeparatedMenuShown && isTouchScreen && isNarrowDesktop,
222
222
  _b[jsStylesForSideMenu.separatedRootForDesktops(theme)] = isSeparatedMenuShown && isDesktopQuery,
223
+ _b[jsStylesForSideMenu.separatedRootForTouchScreensForDesktops(theme)] = isDesktopQuery && isSeparatedMenuShown && isTouchScreen,
223
224
  _b)) },
224
225
  React.createElement(React.Fragment, null,
225
226
  shouldShowBackdrop && React.createElement(Backdrop, { style: backdropStyle }),
@@ -9,6 +9,7 @@ export declare const jsStylesForSideMenu: {
9
9
  rootForNarrowDesktops(t: SideMenuTheme): string;
10
10
  separatedRootForNarrowDesktops(t: SideMenuTheme): string;
11
11
  separatedRootForTouchScreens(t: SideMenuTheme): string;
12
+ separatedRootForTouchScreensForDesktops(t: SideMenuTheme): string;
12
13
  separatedRootForDesktops(t: SideMenuTheme): string;
13
14
  container(t: SideMenuTheme): string;
14
15
  minimizedContainer(t: SideMenuTheme): string;
@@ -21,51 +21,54 @@ var styles = {
21
21
  separatedRootForTouchScreens: function (t) {
22
22
  return css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n width: calc(", " + ", ");\n background: ", ";\n "], ["\n width: calc(", " + ", ");\n background: ", ";\n "])), t.sideMenuMinimizedWidth, t.sideMenuWidthForTouchScreens, t.sideMenuSeparatedSubMenuBgColor);
23
23
  },
24
+ separatedRootForTouchScreensForDesktops: function (t) {
25
+ return css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n width: calc(", " + ", ");\n background: ", ";\n "], ["\n width: calc(", " + ", ");\n background: ", ";\n "])), t.sideMenuWidthForTouchScreens, t.sideMenuWidthForTouchScreens, t.sideMenuSeparatedSubMenuBgColor);
26
+ },
24
27
  separatedRootForDesktops: function (t) {
25
- return css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n width: calc(", " + ", ");\n background: ", ";\n "], ["\n width: calc(", " + ", ");\n background: ", ";\n "])), t.sideMenuWidth, t.sideMenuWidth, t.sideMenuSeparatedSubMenuBgColor);
28
+ return css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n width: calc(", " + ", ");\n background: ", ";\n "], ["\n width: calc(", " + ", ");\n background: ", ";\n "])), t.sideMenuWidth, t.sideMenuWidth, t.sideMenuSeparatedSubMenuBgColor);
26
29
  },
27
30
  container: function (t) {
28
- return css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n width: ", ";\n height: 100%;\n background: ", ";\n position: relative;\n box-sizing: border-box;\n transition: width ", "ms ease-out;\n "], ["\n width: ", ";\n height: 100%;\n background: ", ";\n position: relative;\n box-sizing: border-box;\n transition: width ", "ms ease-out;\n "])), t.sideMenuWidth, t.sideMenuBgColor, transitionDuration);
31
+ return css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n width: ", ";\n height: 100%;\n background: ", ";\n position: relative;\n box-sizing: border-box;\n transition: width ", "ms ease-out;\n "], ["\n width: ", ";\n height: 100%;\n background: ", ";\n position: relative;\n box-sizing: border-box;\n transition: width ", "ms ease-out;\n "])), t.sideMenuWidth, t.sideMenuBgColor, transitionDuration);
29
32
  },
30
33
  minimizedContainer: function (t) {
31
- return css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n width: ", " !important;\n "], ["\n width: ", " !important;\n "])), t.sideMenuMinimizedWidth);
34
+ return css(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n width: ", " !important;\n "], ["\n width: ", " !important;\n "])), t.sideMenuMinimizedWidth);
32
35
  },
33
36
  containerForTouchScreens: function (t) {
34
- return css(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n width: ", ";\n "], ["\n width: ", ";\n "])), t.sideMenuWidthForTouchScreens);
37
+ return css(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n width: ", ";\n "], ["\n width: ", ";\n "])), t.sideMenuWidthForTouchScreens);
35
38
  },
36
39
  separatedContainerForMobiles: function (t) {
37
- return css(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n background: ", ";\n "], ["\n background: ", ";\n "])), t.sideMenuSeparatedSubMenuBgColor);
40
+ return css(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n background: ", ";\n "], ["\n background: ", ";\n "])), t.sideMenuSeparatedSubMenuBgColor);
38
41
  },
39
42
  contentWrapper: function (t) {
40
- return css(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n min-height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n width: ", ";\n "], ["\n min-height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n width: ", ";\n "])), t.sideMenuWidth);
43
+ return css(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n min-height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n width: ", ";\n "], ["\n min-height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n width: ", ";\n "])), t.sideMenuWidth);
41
44
  },
42
45
  contentWrapperForTouchScreens: function (t) {
43
- return css(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n width: ", ";\n "], ["\n width: ", ";\n "])), t.sideMenuWidthForTouchScreens);
46
+ return css(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n width: ", ";\n "], ["\n width: ", ";\n "])), t.sideMenuWidthForTouchScreens);
44
47
  },
45
48
  minimizedContentWrapper: function () {
46
- return css(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n width: 100%;\n "], ["\n width: 100%;\n "])));
49
+ return css(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n width: 100%;\n "], ["\n width: 100%;\n "])));
47
50
  },
48
51
  wrapper: function () {
49
- return css(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n height: 100%;\n display: inline-flex;\n position: relative;\n "], ["\n height: 100%;\n display: inline-flex;\n position: relative;\n "])));
52
+ return css(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n height: 100%;\n display: inline-flex;\n position: relative;\n "], ["\n height: 100%;\n display: inline-flex;\n position: relative;\n "])));
50
53
  },
51
54
  wrapperIE: function () {
52
55
  var ieRootWrapperCorrection = 15;
53
- return css(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n position: relative;\n top: -", ";\n height: calc(100% + ", ");\n "], ["\n position: relative;\n top: -", ";\n height: calc(100% + ", ");\n "])), ieRootWrapperCorrection, ieRootWrapperCorrection);
56
+ return css(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n position: relative;\n top: -", ";\n height: calc(100% + ", ");\n "], ["\n position: relative;\n top: -", ";\n height: calc(100% + ", ");\n "])), ieRootWrapperCorrection, ieRootWrapperCorrection);
54
57
  },
55
58
  wrapperWithShadow: function (t) {
56
- return css(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n box-shadow: ", ";\n "], ["\n box-shadow: ", ";\n "])), t.sideMenuBoxShadow);
59
+ return css(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n box-shadow: ", ";\n "], ["\n box-shadow: ", ";\n "])), t.sideMenuBoxShadow);
57
60
  },
58
61
  collapsedContainerForTabletsOrMobiles: function () {
59
- return css(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n background-color: transparent;\n "], ["\n background-color: transparent;\n "])));
62
+ return css(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n background-color: transparent;\n "], ["\n background-color: transparent;\n "])));
60
63
  },
61
64
  list: function () {
62
- return css(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n list-style: none;\n padding: 0;\n margin: 0;\n "], ["\n list-style: none;\n padding: 0;\n margin: 0;\n "])));
65
+ return css(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n list-style: none;\n padding: 0;\n margin: 0;\n "], ["\n list-style: none;\n padding: 0;\n margin: 0;\n "])));
63
66
  },
64
67
  };
65
68
  export var customStyles = {
66
69
  rootForTabletsOrMobiles: function (headerHeight) {
67
- return css(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n height: ", "px;\n top: 0;\n transition: height ", "ms ease-out;\n "], ["\n height: ", "px;\n top: 0;\n transition: height ", "ms ease-out;\n "])), headerHeight, burgerTransitionDuration);
70
+ return css(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n height: ", "px;\n top: 0;\n transition: height ", "ms ease-out;\n "], ["\n height: ", "px;\n top: 0;\n transition: height ", "ms ease-out;\n "])), headerHeight, burgerTransitionDuration);
68
71
  },
69
72
  };
70
73
  export var jsStylesForSideMenu = memoizeStyle(styles);
71
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20;
74
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21;
@@ -55,7 +55,7 @@ var SeparatedSubMenu = forwardRef(function (_a, ref) {
55
55
  _b[jsStylesForSideMenu.containerForTouchScreens(theme)] = context.isTouchScreen,
56
56
  _b[jsStyles.root(theme)] = true,
57
57
  _b[customStyles.rootForMobiles(context.headerHeight)] = context.isMobile,
58
- _b[jsStyles.rootForDesktop(theme)] = context.isDesktop,
58
+ _b[jsStyles.rootForDesktop()] = context.isDesktop,
59
59
  _b[jsStyles.rootForTouchScreens(theme)] = context.isTouchScreen && context.isOpened && context.isNarrowDesktop,
60
60
  _b[jsStyles.rootForNarrowDesktop(theme)] = context.isNarrowDesktop,
61
61
  _b[jsStyles.rootWithShadow(theme)] = context.isTablet && !isIE11,
@@ -6,7 +6,7 @@ export declare const jsStyles: {
6
6
  root(t: SideMenuTheme): string;
7
7
  rootForTouchScreens(t: SideMenuTheme): string;
8
8
  rootForNarrowDesktop(t: SideMenuTheme): string;
9
- rootForDesktop(t: SideMenuTheme): string;
9
+ rootForDesktop(): string;
10
10
  rootWithShadow(t: SideMenuTheme): string;
11
11
  contentWrapper(t: SideMenuTheme): string;
12
12
  contentWrapperForMobiles(): string;
@@ -11,8 +11,8 @@ var styles = {
11
11
  rootForNarrowDesktop: function (t) {
12
12
  return css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n left: ", ";\n z-index: -1;\n "], ["\n left: ", ";\n z-index: -1;\n "])), t.sideMenuMinimizedWidth);
13
13
  },
14
- rootForDesktop: function (t) {
15
- return css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n left: ", ";\n z-index: -1;\n "], ["\n left: ", ";\n z-index: -1;\n "])), t.sideMenuWidth);
14
+ rootForDesktop: function () {
15
+ return css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n z-index: -1;\n "], ["\n z-index: -1;\n "])));
16
16
  },
17
17
  rootWithShadow: function (t) {
18
18
  return css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n box-shadow: ", ";\n clip-path: inset(0 -", " 0 0);\n border-right: none;\n "], ["\n box-shadow: ", ";\n clip-path: inset(0 -", " 0 0);\n border-right: none;\n "])), t.sideMenuBoxShadow, t.sideMenuBoxShadowBlurRadius);