@skbkontur/side-menu 0.1.1 → 0.1.2

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,14 @@
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.1.2](https://git.skbkontur.ru/ui/ui-parking/compare/@skbkontur/side-menu@0.1.1...@skbkontur/side-menu@0.1.2) (2022-06-14)
7
+
8
+ **Note:** Version bump only for package @skbkontur/side-menu
9
+
10
+
11
+
12
+
13
+
6
14
  ## [0.1.1](https://git.skbkontur.ru/ui/ui-parking/compare/@skbkontur/side-menu@0.1.0...@skbkontur/side-menu@0.1.1) (2022-06-02)
7
15
 
8
16
  **Note:** Version bump only for package @skbkontur/side-menu
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skbkontur/side-menu",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"
package/src/SideMenu.d.ts CHANGED
@@ -34,8 +34,8 @@ export declare class SideMenu extends React.Component<SideMenuComponentProps, Si
34
34
  constructor(props: SideMenuComponentProps);
35
35
  componentDidMount(): void;
36
36
  componentWillUnmount(): void;
37
- static Body: React.FC<import("@skbkontur/react-ui/internal/CommonWrapper").CommonProps>;
38
- static Footer: React.FC<import("@skbkontur/react-ui/internal/CommonWrapper").CommonProps>;
37
+ static Body: React.FC<import("./SideMenuBody").SideMenuBodyProps>;
38
+ static Footer: React.FC<import("./SideMenuFooter").SideMenuFooterProps>;
39
39
  static Header: typeof SideMenuHeader;
40
40
  static Item: typeof SideMenuItem;
41
41
  static SubItem: typeof SideMenuSubItem;
@@ -5,5 +5,7 @@ import { CommonProps } from '@skbkontur/react-ui/internal/CommonWrapper';
5
5
  *
6
6
  * @visibleName SideMenu.Body
7
7
  */
8
- export declare type SideMenuBodyProps = CommonProps;
8
+ export declare type SideMenuBodyProps = CommonProps & {
9
+ children?: React.ReactNode;
10
+ };
9
11
  export declare const SideMenuBody: React.FC<SideMenuBodyProps>;
@@ -5,5 +5,7 @@ import { CommonProps } from '@skbkontur/react-ui/internal/CommonWrapper';
5
5
  *
6
6
  * @visibleName SideMenu.Footer
7
7
  */
8
- export declare type SideMenuFooterProps = CommonProps;
8
+ export declare type SideMenuFooterProps = CommonProps & {
9
+ children?: React.ReactNode;
10
+ };
9
11
  export declare const SideMenuFooter: React.FC<SideMenuFooterProps>;
@@ -5,7 +5,7 @@ declare type SideMenuHeaderState = {
5
5
  fixed: boolean;
6
6
  size: number;
7
7
  };
8
- export interface SideMenuHeaderProps extends LogotypeProps {
8
+ export interface SideMenuHeaderProps extends Partial<LogotypeProps> {
9
9
  iconUrl?: string;
10
10
  }
11
11
  /**
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  declare type SideMenuOrganisationsProps = {
3
3
  icon?: React.ReactElement;
4
+ children?: React.ReactNode;
4
5
  };
5
6
  /**
6
7
  * Список организаций
@@ -1,10 +1,14 @@
1
1
  import React from 'react';
2
+ import { CommonProps } from '@skbkontur/react-ui/internal/CommonWrapper';
3
+ export declare type SideMenuSubItemButtonsProps = CommonProps & {
4
+ children?: React.ReactNode;
5
+ };
2
6
  /**
3
7
  * Группа кнопок в отдельном подменю
4
8
  *
5
9
  * @visibleName SideMenu.SubItemButtons
6
10
  */
7
- export declare class SideMenuSubItemButtons extends React.Component {
11
+ export declare class SideMenuSubItemButtons extends React.Component<SideMenuSubItemButtonsProps> {
8
12
  static __KONTUR_REACT_UI__: string;
9
13
  render(): JSX.Element;
10
14
  renderMain(): JSX.Element;
@@ -1,10 +1,14 @@
1
1
  import React from 'react';
2
+ import { CommonProps } from '@skbkontur/react-ui/internal/CommonWrapper';
3
+ export declare type SideMenuSubItemHeaderProps = CommonProps & {
4
+ children?: React.ReactNode;
5
+ };
2
6
  /**
3
7
  * Заголовок списка второго уровня
4
8
  *
5
9
  * @visibleName SideMenu.SubItemHeader
6
10
  */
7
- export declare class SideMenuSubItemHeader extends React.Component {
11
+ export declare class SideMenuSubItemHeader extends React.Component<SideMenuSubItemHeaderProps> {
8
12
  static __KONTUR_REACT_UI__: string;
9
13
  static contextType: React.Context<import("./SideMenuContext").SideMenuContextType>;
10
14
  render(): JSX.Element;