@gravity-ui/navigation 0.7.0 → 0.8.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 +7 -0
- package/build/cjs/components/Settings/Settings.d.ts +1 -0
- package/build/cjs/components/Settings/__stories__/SettingsDemo.d.ts +2 -1
- package/build/cjs/components/Settings/__stories__/SettingsMobileDemo.d.ts +2 -2
- package/build/cjs/components/Settings/collect-settings.d.ts +1 -1
- package/build/cjs/components/Title/Title.d.ts +12 -0
- package/build/cjs/components/Title/index.d.ts +1 -0
- package/build/cjs/components/index.d.ts +1 -0
- package/build/cjs/index.js +126 -91
- package/build/cjs/index.js.map +1 -1
- package/build/esm/components/Settings/Settings.d.ts +1 -0
- package/build/esm/components/Settings/__stories__/SettingsDemo.d.ts +2 -1
- package/build/esm/components/Settings/__stories__/SettingsMobileDemo.d.ts +2 -2
- package/build/esm/components/Settings/collect-settings.d.ts +1 -1
- package/build/esm/components/Title/Title.d.ts +12 -0
- package/build/esm/components/Title/index.d.ts +1 -0
- package/build/esm/components/index.d.ts +1 -0
- package/build/esm/index.js +127 -93
- package/build/esm/index.js.map +1 -1
- package/package.json +3 -1
|
@@ -10,6 +10,7 @@ interface SettingsProps {
|
|
|
10
10
|
loading?: boolean;
|
|
11
11
|
dict?: SettingsDict;
|
|
12
12
|
view?: 'normal' | 'mobile';
|
|
13
|
+
onClose?: () => void;
|
|
13
14
|
}
|
|
14
15
|
declare type SettingsDict = Record<SettingsDictKeys, string>;
|
|
15
16
|
declare type SettingsDictKeys = 'heading_settings' | 'placeholder_search' | 'not_found';
|
|
@@ -6,8 +6,9 @@ export interface DemoProps {
|
|
|
6
6
|
export interface DemoRowProps {
|
|
7
7
|
title: string;
|
|
8
8
|
}
|
|
9
|
-
export declare const SettingsComponent: React.MemoExoticComponent<({ initialPage, withBadge }: {
|
|
9
|
+
export declare const SettingsComponent: React.MemoExoticComponent<({ initialPage, withBadge, onClose, }: {
|
|
10
10
|
initialPage?: string | undefined;
|
|
11
11
|
withBadge?: boolean | undefined;
|
|
12
|
+
onClose: () => void;
|
|
12
13
|
}) => JSX.Element>;
|
|
13
14
|
export declare function SettingsDemo(): JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './SettingsMobileDemo.scss';
|
|
3
|
-
export declare const SettingsMobileComponent: React.MemoExoticComponent<({ initialPage, withBadge,
|
|
3
|
+
export declare const SettingsMobileComponent: React.MemoExoticComponent<({ initialPage, withBadge, onClose, }: {
|
|
4
4
|
initialPage?: string | undefined;
|
|
5
5
|
withBadge?: boolean | undefined;
|
|
6
|
-
|
|
6
|
+
onClose?: (() => void) | undefined;
|
|
7
7
|
}) => JSX.Element>;
|
|
8
8
|
export declare function SettingsMobileDemo(): JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IconProps } from '@gravity-ui/uikit';
|
|
3
|
-
declare type SettingsMenu = (SettingsMenuGroup | SettingsMenuItem)[];
|
|
3
|
+
export declare type SettingsMenu = (SettingsMenuGroup | SettingsMenuItem)[];
|
|
4
4
|
interface SettingsMenuGroup {
|
|
5
5
|
groupTitle: string;
|
|
6
6
|
items: SettingsMenuItem[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './Title.scss';
|
|
3
|
+
declare type TitleDictKeys = 'close';
|
|
4
|
+
declare type TitleDict = Record<TitleDictKeys, string>;
|
|
5
|
+
interface TitleProps {
|
|
6
|
+
hasSeparator?: boolean;
|
|
7
|
+
dict?: TitleDict;
|
|
8
|
+
closeIconSize?: number;
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const Title: React.FC<React.PropsWithChildren<TitleProps>>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Title';
|
|
@@ -2,6 +2,7 @@ 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 './Title';
|
|
5
6
|
export * from './HotkeysPanel';
|
|
6
7
|
export * from './Settings';
|
|
7
8
|
export * from './types';
|