@cloud-ru/uikit-product-mobile-layout 0.20.13 → 0.20.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,34 @@
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.15 (2025-11-28)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **PDS-3214:** MobilePageServices links in hidden items kebab ([8a8334e](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/8a8334e6a69ab3752b5681b6ca960383a84d3afa))
12
+
13
+
14
+
15
+
16
+
17
+ ## 0.20.14 (2025-11-24)
18
+
19
+ ### Only dependencies have been changed
20
+ * [@cloud-ru/uikit-product-card-predefined@0.8.17](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/card-predefined/CHANGELOG.md)
21
+ * [@cloud-ru/uikit-product-icons@15.1.6](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
22
+ * [@cloud-ru/uikit-product-layout@0.19.68](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/layout/CHANGELOG.md)
23
+ * [@cloud-ru/uikit-product-mobile-dropdown@0.9.26](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/mobile-dropdown/CHANGELOG.md)
24
+ * [@cloud-ru/uikit-product-mobile-modal@0.9.23](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/mobile-modal/CHANGELOG.md)
25
+ * [@cloud-ru/uikit-product-mobile-tooltip@0.4.70](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/mobile-tooltip/CHANGELOG.md)
26
+ * [@cloud-ru/uikit-product-page-layout@0.22.2](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/page-layout/CHANGELOG.md)
27
+ * [@cloud-ru/uikit-product-quota@0.6.10](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/quota/CHANGELOG.md)
28
+ * [@cloud-ru/uikit-product-utils@8.0.1](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/utils/CHANGELOG.md)
29
+
30
+
31
+
32
+
33
+
6
34
  ## 0.20.13 (2025-11-24)
7
35
 
8
36
  ### 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.13",
4
+ "version": "0.20.15",
5
5
  "sideEffects": [
6
6
  "*.css",
7
7
  "*.woff",
@@ -36,15 +36,15 @@
36
36
  },
37
37
  "scripts": {},
38
38
  "dependencies": {
39
- "@cloud-ru/uikit-product-card-predefined": "0.8.16",
40
- "@cloud-ru/uikit-product-icons": "15.1.5",
41
- "@cloud-ru/uikit-product-layout": "0.19.67",
42
- "@cloud-ru/uikit-product-mobile-dropdown": "0.9.25",
43
- "@cloud-ru/uikit-product-mobile-modal": "0.9.22",
44
- "@cloud-ru/uikit-product-mobile-tooltip": "0.4.69",
45
- "@cloud-ru/uikit-product-page-layout": "0.22.1",
46
- "@cloud-ru/uikit-product-quota": "0.6.9",
47
- "@cloud-ru/uikit-product-utils": "8.0.0",
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.27",
43
+ "@cloud-ru/uikit-product-mobile-modal": "0.9.24",
44
+ "@cloud-ru/uikit-product-mobile-tooltip": "0.5.0",
45
+ "@cloud-ru/uikit-product-page-layout": "0.22.2",
46
+ "@cloud-ru/uikit-product-quota": "0.6.11",
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",
50
50
  "@snack-uikit/counter": "0.8.9",
@@ -57,5 +57,5 @@
57
57
  "peerDependencies": {
58
58
  "@cloud-ru/uikit-product-locale": "*"
59
59
  },
60
- "gitHead": "46b285728ff0dfe51d89b375469a6c05d6f2dba9"
60
+ "gitHead": "e4143cae723e66aeb12cae059dd3f7310b791ef5"
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
  }