@cloud-ru/uikit-product-site-header 1.3.1 → 1.4.1

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,28 @@
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.4.1 (2026-02-27)
7
+
8
+ ### Only dependencies have been changed
9
+ * [@cloud-ru/uikit-product-button-predefined@1.1.7]($PUBLIC_PROJECT_URL/blob/master/packages/button-predefined/CHANGELOG.md)
10
+ * [@cloud-ru/uikit-product-icons@17.0.5]($PUBLIC_PROJECT_URL/blob/master/packages/icons/CHANGELOG.md)
11
+ * [@cloud-ru/uikit-product-mobile-modal@2.0.6]($PUBLIC_PROJECT_URL/blob/master/packages/mobile-modal/CHANGELOG.md)
12
+
13
+
14
+
15
+
16
+
17
+ # 1.4.0 (2026-02-19)
18
+
19
+
20
+ ### Features
21
+
22
+ * **SITE-10751:** target prop for header nav ([f6ac123](https://github.com/cloud-ru-tech/uikit-product/commit/f6ac123a0473f254f6293b67fc01b073024b0a37))
23
+
24
+
25
+
26
+
27
+
6
28
  ## 1.3.1 (2026-02-18)
7
29
 
8
30
  ### Only dependencies have been changed
@@ -70,5 +70,5 @@ function HeaderItems({ linkItems, isMobileTabletView, activeLinkItemId }) {
70
70
  const isVisibleEmpty = visibleItems.length === 0;
71
71
  return ((0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.wrapper, children: [(0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)(styles_module_scss_1.default.linkItemsContainer, styles_module_scss_1.default.hiddenRow), ref: hiddenRowElementRef, children: linkItems.map((linkItem, index) => ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: (0, classnames_1.default)(styles_module_scss_1.default.lastItemContainer, linkItem.className), ref: setItemElement(linkItem, index) }, linkItem.dataAttributes, { children: (0, jsx_runtime_1.jsx)(helperComponents_1.LinkItemHeader, { label: linkItem.label, target: linkItem.target, href: linkItem.href, onClick: linkItem.onClick, icon: linkItem.icon }) }), linkItem.id))) }), (0, jsx_runtime_1.jsxs)("div", { className: (0, classnames_1.default)(styles_module_scss_1.default.linkItemsContainer, {
72
72
  [styles_module_scss_1.default.linkItemsFirstViewContainer]: isVisibleEmpty,
73
- }), children: [(isVisibleEmpty ? linkItems : visibleItems).map(linkItem => ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: (0, classnames_1.default)(styles_module_scss_1.default.lastItemContainer, linkItem.className) }, linkItem.dataAttributes, { children: (0, jsx_runtime_1.jsx)(helperComponents_1.LinkItemHeader, { label: linkItem.label, href: linkItem.href, onClick: linkItem.onClick, active: activeLinkItemId === linkItem.id, icon: linkItem.icon }) }), linkItem.id))), hiddenItems.length > 0 && (0, jsx_runtime_1.jsx)(helperComponents_1.MoreButton, { linkItemsArray: hiddenItems, activeItemId: activeLinkItemId })] })] }));
73
+ }), children: [(isVisibleEmpty ? linkItems : visibleItems).map(linkItem => ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: (0, classnames_1.default)(styles_module_scss_1.default.lastItemContainer, linkItem.className) }, linkItem.dataAttributes, { children: (0, jsx_runtime_1.jsx)(helperComponents_1.LinkItemHeader, { label: linkItem.label, target: linkItem.target, href: linkItem.href, onClick: linkItem.onClick, active: activeLinkItemId === linkItem.id, icon: linkItem.icon }) }), linkItem.id))), hiddenItems.length > 0 && (0, jsx_runtime_1.jsx)(helperComponents_1.MoreButton, { linkItemsArray: hiddenItems, activeItemId: activeLinkItemId })] })] }));
74
74
  }
@@ -64,5 +64,5 @@ export function HeaderItems({ linkItems, isMobileTabletView, activeLinkItemId })
64
64
  const isVisibleEmpty = visibleItems.length === 0;
65
65
  return (_jsxs("div", { className: styles.wrapper, children: [_jsx("div", { className: cn(styles.linkItemsContainer, styles.hiddenRow), ref: hiddenRowElementRef, children: linkItems.map((linkItem, index) => (_jsx("div", Object.assign({ className: cn(styles.lastItemContainer, linkItem.className), ref: setItemElement(linkItem, index) }, linkItem.dataAttributes, { children: _jsx(LinkItemHeader, { label: linkItem.label, target: linkItem.target, href: linkItem.href, onClick: linkItem.onClick, icon: linkItem.icon }) }), linkItem.id))) }), _jsxs("div", { className: cn(styles.linkItemsContainer, {
66
66
  [styles.linkItemsFirstViewContainer]: isVisibleEmpty,
67
- }), children: [(isVisibleEmpty ? linkItems : visibleItems).map(linkItem => (_jsx("div", Object.assign({ className: cn(styles.lastItemContainer, linkItem.className) }, linkItem.dataAttributes, { children: _jsx(LinkItemHeader, { label: linkItem.label, href: linkItem.href, onClick: linkItem.onClick, active: activeLinkItemId === linkItem.id, icon: linkItem.icon }) }), linkItem.id))), hiddenItems.length > 0 && _jsx(MoreButton, { linkItemsArray: hiddenItems, activeItemId: activeLinkItemId })] })] }));
67
+ }), children: [(isVisibleEmpty ? linkItems : visibleItems).map(linkItem => (_jsx("div", Object.assign({ className: cn(styles.lastItemContainer, linkItem.className) }, linkItem.dataAttributes, { children: _jsx(LinkItemHeader, { label: linkItem.label, target: linkItem.target, href: linkItem.href, onClick: linkItem.onClick, active: activeLinkItemId === linkItem.id, icon: linkItem.icon }) }), linkItem.id))), hiddenItems.length > 0 && _jsx(MoreButton, { linkItemsArray: hiddenItems, activeItemId: activeLinkItemId })] })] }));
68
68
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloud-ru/uikit-product-site-header",
3
3
  "title": "Siteheader",
4
- "version": "1.3.1",
4
+ "version": "1.4.1",
5
5
  "sideEffects": [
6
6
  "*.css",
7
7
  "*.woff",
@@ -36,9 +36,9 @@
36
36
  },
37
37
  "scripts": {},
38
38
  "dependencies": {
39
- "@cloud-ru/uikit-product-button-predefined": "1.1.6",
40
- "@cloud-ru/uikit-product-icons": "17.0.4",
41
- "@cloud-ru/uikit-product-mobile-modal": "2.0.5",
39
+ "@cloud-ru/uikit-product-button-predefined": "1.1.7",
40
+ "@cloud-ru/uikit-product-icons": "17.0.5",
41
+ "@cloud-ru/uikit-product-mobile-modal": "2.0.6",
42
42
  "@cloud-ru/uikit-product-site-layout": "1.1.2",
43
43
  "@cloud-ru/uikit-product-utils": "9.0.2",
44
44
  "@snack-uikit/alert": "0.16.17",
@@ -52,5 +52,5 @@
52
52
  "peerDependencies": {
53
53
  "@cloud-ru/figma-tokens-web": "*"
54
54
  },
55
- "gitHead": "009354890e4be8948b4b89fcaaeaa23542217b65"
55
+ "gitHead": "3d03b330711ddcddc006d66e9481ad2b1407eafb"
56
56
  }
@@ -120,6 +120,7 @@ export function HeaderItems({ linkItems, isMobileTabletView, activeLinkItemId }:
120
120
  >
121
121
  <LinkItemHeader
122
122
  label={linkItem.label}
123
+ target={linkItem.target}
123
124
  href={linkItem.href}
124
125
  onClick={linkItem.onClick}
125
126
  active={activeLinkItemId === linkItem.id}