@cloud-ru/uikit-product-mobile-layout 0.20.14 → 0.20.16

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,33 @@
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.20.16 (2025-11-28)
7
+
8
+ ### Only dependencies have been changed
9
+ * [@cloud-ru/uikit-product-card-predefined@0.8.18](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/card-predefined/CHANGELOG.md)
10
+ * [@cloud-ru/uikit-product-icons@16.0.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
11
+ * [@cloud-ru/uikit-product-layout@0.19.69](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/layout/CHANGELOG.md)
12
+ * [@cloud-ru/uikit-product-mobile-dropdown@0.9.28](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/mobile-dropdown/CHANGELOG.md)
13
+ * [@cloud-ru/uikit-product-mobile-modal@0.9.25](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/mobile-modal/CHANGELOG.md)
14
+ * [@cloud-ru/uikit-product-mobile-tooltip@0.5.1](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/mobile-tooltip/CHANGELOG.md)
15
+ * [@cloud-ru/uikit-product-page-layout@0.22.3](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/page-layout/CHANGELOG.md)
16
+ * [@cloud-ru/uikit-product-quota@0.6.12](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/quota/CHANGELOG.md)
17
+
18
+
19
+
20
+
21
+
22
+ ## 0.20.15 (2025-11-28)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * **PDS-3214:** MobilePageServices links in hidden items kebab ([8a8334e](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/8a8334e6a69ab3752b5681b6ca960383a84d3afa))
28
+
29
+
30
+
31
+
32
+
6
33
  ## 0.20.14 (2025-11-24)
7
34
 
8
35
  ### Only dependencies have been changed
@@ -41,12 +41,7 @@ function MobileActions({ items, maxVisibleItems }) {
41
41
  var _a;
42
42
  setIsOpen(false);
43
43
  (_a = action.onClick) === null || _a === void 0 ? void 0 : _a.call(action, event);
44
- }, beforeContent: action === null || action === void 0 ? void 0 : action.icon, itemWrapRender: action.tooltip
45
- ? item => {
46
- var _a, _b;
47
- return ((0, jsx_runtime_1.jsx)(uikit_product_mobile_tooltip_1.MobileTooltip, Object.assign({ tip: (_b = (_a = action.tooltip) === null || _a === void 0 ? void 0 : _a.tip) !== null && _b !== void 0 ? _b : '' }, action.tooltip, { children: item })));
48
- }
49
- : undefined }));
44
+ }, beforeContent: action === null || action === void 0 ? void 0 : action.icon, itemWrapRender: item => ((0, jsx_runtime_1.jsx)(uikit_product_mobile_tooltip_1.WithMobileTooltip, Object.assign({}, action.tooltip, { children: action.href && !action.disabled ? ((0, jsx_runtime_1.jsx)("a", { href: action.href, target: '_blank', rel: 'noreferrer', children: item })) : (item) }))) }));
50
45
  break;
51
46
  }
52
47
  case constants_1.BUTTON_TYPE.Quota: {
@@ -4,7 +4,7 @@ import { Children, isValidElement, useRef, useState } from 'react';
4
4
  import { ChevronDownSVG, KebabSVG } from '@cloud-ru/uikit-product-icons';
5
5
  import { useLocale } from '@cloud-ru/uikit-product-locale';
6
6
  import { AdaptiveDropdown, MobileDroplist } from '@cloud-ru/uikit-product-mobile-dropdown';
7
- import { MobileTooltip } from '@cloud-ru/uikit-product-mobile-tooltip';
7
+ import { MobileTooltip, WithMobileTooltip } from '@cloud-ru/uikit-product-mobile-tooltip';
8
8
  import { checkExceeded, QuotaDropdownContent } from '@cloud-ru/uikit-product-quota';
9
9
  import { ButtonOutline } from '@snack-uikit/button';
10
10
  import { Counter } from '@snack-uikit/counter';
@@ -35,12 +35,7 @@ export function MobileActions({ items, maxVisibleItems }) {
35
35
  var _a;
36
36
  setIsOpen(false);
37
37
  (_a = action.onClick) === null || _a === void 0 ? void 0 : _a.call(action, event);
38
- }, beforeContent: action === null || action === void 0 ? void 0 : action.icon, itemWrapRender: action.tooltip
39
- ? item => {
40
- var _a, _b;
41
- return (_jsx(MobileTooltip, Object.assign({ tip: (_b = (_a = action.tooltip) === null || _a === void 0 ? void 0 : _a.tip) !== null && _b !== void 0 ? _b : '' }, action.tooltip, { children: item })));
42
- }
43
- : undefined }));
38
+ }, beforeContent: action === null || action === void 0 ? void 0 : action.icon, itemWrapRender: item => (_jsx(WithMobileTooltip, Object.assign({}, action.tooltip, { children: action.href && !action.disabled ? (_jsx("a", { href: action.href, target: '_blank', rel: 'noreferrer', children: item })) : (item) }))) }));
44
39
  break;
45
40
  }
46
41
  case BUTTON_TYPE.Quota: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloud-ru/uikit-product-mobile-layout",
3
3
  "title": "Mobile Layout",
4
- "version": "0.20.14",
4
+ "version": "0.20.16",
5
5
  "sideEffects": [
6
6
  "*.css",
7
7
  "*.woff",
@@ -36,14 +36,14 @@
36
36
  },
37
37
  "scripts": {},
38
38
  "dependencies": {
39
- "@cloud-ru/uikit-product-card-predefined": "0.8.17",
40
- "@cloud-ru/uikit-product-icons": "15.1.6",
41
- "@cloud-ru/uikit-product-layout": "0.19.68",
42
- "@cloud-ru/uikit-product-mobile-dropdown": "0.9.26",
43
- "@cloud-ru/uikit-product-mobile-modal": "0.9.23",
44
- "@cloud-ru/uikit-product-mobile-tooltip": "0.4.70",
45
- "@cloud-ru/uikit-product-page-layout": "0.22.2",
46
- "@cloud-ru/uikit-product-quota": "0.6.10",
39
+ "@cloud-ru/uikit-product-card-predefined": "0.8.18",
40
+ "@cloud-ru/uikit-product-icons": "16.0.0",
41
+ "@cloud-ru/uikit-product-layout": "0.19.69",
42
+ "@cloud-ru/uikit-product-mobile-dropdown": "0.9.28",
43
+ "@cloud-ru/uikit-product-mobile-modal": "0.9.25",
44
+ "@cloud-ru/uikit-product-mobile-tooltip": "0.5.1",
45
+ "@cloud-ru/uikit-product-page-layout": "0.22.3",
46
+ "@cloud-ru/uikit-product-quota": "0.6.12",
47
47
  "@cloud-ru/uikit-product-utils": "8.0.1",
48
48
  "@snack-uikit/button": "0.19.7",
49
49
  "@snack-uikit/card": "0.16.19",
@@ -57,5 +57,5 @@
57
57
  "peerDependencies": {
58
58
  "@cloud-ru/uikit-product-locale": "*"
59
59
  },
60
- "gitHead": "8968606769e5da46db696dfa70d7ad999564388d"
60
+ "gitHead": "f67d8d3987dc49157789aebe9e083c42d0abf5c3"
61
61
  }
@@ -3,7 +3,7 @@ import { Children, isValidElement, useRef, useState } from 'react';
3
3
  import { ChevronDownSVG, KebabSVG } from '@cloud-ru/uikit-product-icons';
4
4
  import { useLocale } from '@cloud-ru/uikit-product-locale';
5
5
  import { AdaptiveDropdown, MobileDroplist, MobileDroplistProps } from '@cloud-ru/uikit-product-mobile-dropdown';
6
- import { MobileTooltip } from '@cloud-ru/uikit-product-mobile-tooltip';
6
+ import { MobileTooltip, WithMobileTooltip } from '@cloud-ru/uikit-product-mobile-tooltip';
7
7
  import { checkExceeded, QuotaCardProps, QuotaDropdownContent } from '@cloud-ru/uikit-product-quota';
8
8
  import { ButtonOutline } from '@snack-uikit/button';
9
9
  import { Counter } from '@snack-uikit/counter';
@@ -52,13 +52,17 @@ export function MobileActions({ items, maxVisibleItems }: ActionsProps) {
52
52
  action.onClick?.(event);
53
53
  },
54
54
  beforeContent: action?.icon,
55
- itemWrapRender: action.tooltip
56
- ? item => (
57
- <MobileTooltip tip={action.tooltip?.tip ?? ''} {...action.tooltip}>
55
+ itemWrapRender: item => (
56
+ <WithMobileTooltip {...action.tooltip}>
57
+ {action.href && !action.disabled ? (
58
+ <a href={action.href} target='_blank' rel='noreferrer'>
58
59
  {item}
59
- </MobileTooltip>
60
- )
61
- : undefined,
60
+ </a>
61
+ ) : (
62
+ item
63
+ )}
64
+ </WithMobileTooltip>
65
+ ),
62
66
  });
63
67
  break;
64
68
  }