Skip to content

Commit 6f132e3

Browse files
authored
Merge branch 'main' into main
2 parents 3e2414d + 3604df3 commit 6f132e3

File tree

7 files changed

+17
-9
lines changed

7 files changed

+17
-9
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [3.7.0](https://github.com/gravity-ui/navigation/compare/v3.6.4...v3.7.0) (2025-09-11)
4+
5+
6+
### Features
7+
8+
* **AsideHeader:** add possibility to provide className to the AsideHeaderItem ([#464](https://github.com/gravity-ui/navigation/issues/464)) ([d52b43d](https://github.com/gravity-ui/navigation/commit/d52b43d453ec147e7c1f1e156cfa6ea51125454d))
9+
310
## [3.6.4](https://github.com/gravity-ui/navigation/compare/v3.6.3...v3.6.4) (2025-08-11)
411

512

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gravity-ui/navigation",
3-
"version": "3.6.4",
3+
"version": "3.7.0",
44
"description": "Gravity UI Navigation components",
55
"license": "MIT",
66
"repository": {

src/components/AsideHeader/README-ru.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export const Aside: FC = () => {
154154
| afterMoreButton | Элемент будет всегда отображаться в конце списка, даже если не помещается. | `boolean` | |
155155
| category | Категория, к которой относится элемент меню. Используется для группировки в режиме отображения или редактирования всех страниц. | `string` | `"Остальное"` `"All other"` |
156156
| current | Текущий (выбранный) элемент. | `boolean` | `false` |
157-
| hidden | Видимость элемента в меню. | `boolean` | `false` |
157+
| hidden | Скрытие элемента в меню, работает с включенным режимом `AllPages`. | `boolean` | `false` |
158158
| icon | Иконка меню на основе компонента `Icon` из фреймворка UIKit. | [`IconProps['data']`](https://github.com/gravity-ui/uikit/tree/main/src/components/Icon#properties) | |
159159
| iconSize | Размер иконки меню. | `number` `string` | `18` |
160160
| iconQa | Значение, которое будет передано в атрибут `data-qa` контейнера `Icon`. | `string` | |
@@ -164,7 +164,7 @@ export const Aside: FC = () => {
164164
| onItemClick | Обратный вызов, срабатывающий при клике по элементу. | `(item: MenuItem, collapsed: boolean, event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void` | |
165165
| onItemClickCapture | Обратный вызов, срабатывающий при клике по элементу. | ` (event: React.SyntheticEvent) => void` | |
166166
| order | Определяет порядок отображения в элементе навигации. | `number` | |
167-
| pinned | Запрещает скрытие элемента меню в `AllPagesPanel`. | `boolean` | `false` |
167+
| pinned | Запрещает скрытие элемента меню. | `boolean` | `false` |
168168
| rightAdornment | Настраивает правую часть элемента меню. | `React.ReactNode` | |
169169
| title | Заголовок элемента меню. | `React.ReactNode` | |
170170
| tooltipText | Содержимое тултипа. | `React.ReactNode` | |

src/components/AsideHeader/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The elements will collapse into three dots if there is no vertical space by defa
5050

5151
Navigation elements can be in one of two states: collapsed (isCollapsed), where only the icon is visible, and expanded. There is some space for customization of the entire item through a wrapper.
5252

53-
With additional configuration via `AllPages` users can further customize menu to their preference by hiding unnecessary items. This brings in a new state for items - pinned/hidden. If item is pinned, it will always be displayed in the section.
53+
With additional configuration via `AllPages` users can further customize menu to their preference by hiding unnecessary items. This brings in a new state for items - `hidden`. If item is pinned, it will always be displayed in the section.
5454

5555
The `onMenuItemsChanged` callback is required for adding extra component `All Pages` which displays panel for editing the list of visible menu items.
5656

@@ -155,7 +155,7 @@ export const Aside: FC = () => {
155155
| afterMoreButton | The menu item will be placed in the end, even item don't fit | `boolean` | |
156156
| category | The category to which the menu item belongs. Need for grouping in the display/editing mode of all pages | `string` | `"Остальное"` `"All other"` |
157157
| current | The current/selected item | `boolean` | `false` |
158-
| hidden | Visibility item in the menu | `boolean` | `false` |
158+
| hidden | Visibility item in the menu, only for AllPages | `boolean` | `false` |
159159
| icon | Menu icon based on the uikit `Icon` component | [`IconProps['data']`](https://github.com/gravity-ui/uikit/tree/main/src/components/Icon#properties) | |
160160
| iconSize | Menu icon size | `number` `string` | `18` |
161161
| iconQa | The value to be passed to `data-qa` attribute of the `Icon` container | `string` | |
@@ -165,7 +165,7 @@ export const Aside: FC = () => {
165165
| onItemClick | Callback will be called when clicking on the item | `(item: MenuItem, collapsed: boolean, event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void` | |
166166
| onItemClickCapture | Callback will be called when clicking on the item | ` (event: React.SyntheticEvent) => void` | |
167167
| order | Determine the display order in the navigation | `number` | |
168-
| pinned | The parameter restricts hiding menu item in the `AllPagesPanel` | `boolean` | `false` |
168+
| pinned | The parameter restricts hiding menu item | `boolean` | `false` |
169169
| rightAdornment | Customize right side of the menu item | `React.ReactNode` | |
170170
| title | The menu item title | `React.ReactNode` | |
171171
| tooltipText | Tooltip content | `React.ReactNode` | |

src/components/CompositeBar/Item/Item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export const Item: React.FC<ItemInnerProps> = (props) => {
183183
<React.Fragment>
184184
<Tag
185185
{...tagProps}
186-
className={b({type, current, compact}, className)}
186+
className={b({type, current, compact}, [className, item.className])}
187187
ref={ref}
188188
data-qa={item.qa}
189189
onClick={(event: React.MouseEvent<HTMLElement, MouseEvent>) => {

src/components/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export interface MenuItem extends QAProps {
5656
* The category to which the menu item belongs. Need for grouping in the display/editing mode of all pages
5757
*/
5858
category?: string;
59+
className?: string;
5960
}
6061

6162
export type SubheaderMenuItem = Omit<ItemProps, 'onItemClick' | 'onItemClickCapture'>;

0 commit comments

Comments
 (0)