@gravity-ui/navigation 0.6.1 → 0.7.0
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 +13 -0
- package/build/cjs/components/CompositeBar/Item/Item.d.ts +1 -0
- package/build/cjs/components/HotkeysPanel/HotkeysPanel.d.ts +18 -0
- package/build/cjs/components/HotkeysPanel/__stories__/HotkeysPanel.stories.d.ts +4 -0
- package/build/cjs/components/HotkeysPanel/__stories__/HotkeysPanelShowcase.d.ts +3 -0
- package/build/cjs/components/HotkeysPanel/__stories__/moc.d.ts +2 -0
- package/build/cjs/components/HotkeysPanel/index.d.ts +2 -0
- package/build/cjs/components/HotkeysPanel/types.d.ts +13 -0
- package/build/cjs/components/HotkeysPanel/utils/filterHotkeys.d.ts +2 -0
- package/build/cjs/components/HotkeysPanel/utils/flattenHotkeyGroups.d.ts +2 -0
- package/build/cjs/components/MobileHeader/BurgerMenu/BurgerMenu.d.ts +1 -1
- package/build/cjs/components/index.d.ts +1 -0
- package/build/cjs/index.js +140 -113
- package/build/cjs/index.js.map +1 -1
- package/build/esm/components/CompositeBar/Item/Item.d.ts +1 -0
- package/build/esm/components/HotkeysPanel/HotkeysPanel.d.ts +18 -0
- package/build/esm/components/HotkeysPanel/__stories__/HotkeysPanel.stories.d.ts +4 -0
- package/build/esm/components/HotkeysPanel/__stories__/HotkeysPanelShowcase.d.ts +3 -0
- package/build/esm/components/HotkeysPanel/__stories__/moc.d.ts +2 -0
- package/build/esm/components/HotkeysPanel/index.d.ts +2 -0
- package/build/esm/components/HotkeysPanel/types.d.ts +13 -0
- package/build/esm/components/HotkeysPanel/utils/filterHotkeys.d.ts +2 -0
- package/build/esm/components/HotkeysPanel/utils/flattenHotkeyGroups.d.ts +2 -0
- package/build/esm/components/MobileHeader/BurgerMenu/BurgerMenu.d.ts +1 -1
- package/build/esm/components/index.d.ts +1 -0
- package/build/esm/index.js +142 -116
- package/build/esm/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.7.0](https://github.com/gravity-ui/navigation/compare/v0.6.1...v0.7.0) (2023-06-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **CompositeBar/Item:** add popupKeepMounted prop ([#55](https://github.com/gravity-ui/navigation/issues/55)) ([88140e8](https://github.com/gravity-ui/navigation/commit/88140e8bcfa9c86aeb0c6d45770eb545fb23a589))
|
|
9
|
+
* **HotkeysPanel:** add component ([#53](https://github.com/gravity-ui/navigation/issues/53)) ([86c59bd](https://github.com/gravity-ui/navigation/commit/86c59bdb09bde48ba3588abfdb14e8219c9a902c))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **Logo:** disable hover animation on button ([#54](https://github.com/gravity-ui/navigation/issues/54)) ([99f2787](https://github.com/gravity-ui/navigation/commit/99f2787dfa39b04e160a0517e5555408f584971d))
|
|
15
|
+
|
|
3
16
|
## [0.6.1](https://github.com/gravity-ui/navigation/compare/v0.6.0...v0.6.1) (2023-06-07)
|
|
4
17
|
|
|
5
18
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ListProps } from '@gravity-ui/uikit';
|
|
3
|
+
import type { DrawerProps } from '../Drawer/Drawer';
|
|
4
|
+
import type { HotkeysListItem, HotkeysGroup } from './types';
|
|
5
|
+
import './HotkeysPanel.scss';
|
|
6
|
+
export declare type HotkeysPanelProps<T> = {
|
|
7
|
+
hotkeys: HotkeysGroup<T>[];
|
|
8
|
+
title?: ReactNode;
|
|
9
|
+
filterPlaceholder?: string;
|
|
10
|
+
emptyState?: ReactNode;
|
|
11
|
+
visible: boolean;
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
className?: string;
|
|
14
|
+
leftOffset?: number | string;
|
|
15
|
+
topOffset?: number | string;
|
|
16
|
+
preventScrollBody?: DrawerProps['preventScrollBody'];
|
|
17
|
+
} & Omit<ListProps<HotkeysListItem>, 'items' | 'emptyPlaceholder'>;
|
|
18
|
+
export declare function HotkeysPanel<T = {}>({ visible, onClose, leftOffset, topOffset, className, preventScrollBody, hotkeys, itemClassName, filterPlaceholder, title, emptyState, ...listProps }: HotkeysPanelProps<T>): JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare type HotkeysItem = {
|
|
2
|
+
title: string;
|
|
3
|
+
value: string;
|
|
4
|
+
};
|
|
5
|
+
export declare type HotkeysGroup<T = {}> = {
|
|
6
|
+
title: string;
|
|
7
|
+
items: HotkeysItem[];
|
|
8
|
+
} & T;
|
|
9
|
+
export declare type HotkeysListItem = {
|
|
10
|
+
title: string;
|
|
11
|
+
group?: boolean;
|
|
12
|
+
value?: string;
|
|
13
|
+
};
|
|
@@ -8,4 +8,4 @@ export interface BurgerMenuInnerProps {
|
|
|
8
8
|
onItemClick?: (item: MobileMenuItem) => void;
|
|
9
9
|
className?: string;
|
|
10
10
|
}
|
|
11
|
-
export declare const BurgerMenu: React.MemoExoticComponent<({ items, renderFooter, modalItem, className }: BurgerMenuInnerProps) => JSX.Element>;
|
|
11
|
+
export declare const BurgerMenu: React.MemoExoticComponent<({ items, renderFooter, modalItem, className, onItemClick }: BurgerMenuInnerProps) => JSX.Element>;
|
|
@@ -2,5 +2,6 @@ export { ActionBar } from './ActionBar';
|
|
|
2
2
|
export { AsideHeader, AsideHeaderProps } from './AsideHeader/AsideHeader';
|
|
3
3
|
export { Drawer, DrawerProps, DrawerItemProps, DrawerItem } from './Drawer/Drawer';
|
|
4
4
|
export { FooterItem, FooterItemProps } from './FooterItem/FooterItem';
|
|
5
|
+
export * from './HotkeysPanel';
|
|
5
6
|
export * from './Settings';
|
|
6
7
|
export * from './types';
|