@synerise/ds-app-menu 0.7.7 → 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 +19 -0
- package/dist/AppMenu.d.ts +9 -8
- package/dist/Item/Item.d.ts +6 -3
- package/dist/Item/Item.js +2 -2
- package/dist/SubMenu/Item/Item.d.ts +5 -2
- package/dist/SubMenu/Item/Item.types.d.ts +2 -0
- package/dist/SubMenu/SubMenu.types.d.ts +3 -2
- package/dist/modules.d.js +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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.8.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-app-menu@0.7.8...@synerise/ds-app-menu@0.8.0) (2025-01-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* antd@4.24 react@18 ([d97a667](https://github.com/Synerise/synerise-design/commit/d97a667b1f33aed3177e1851de3b6f60be2d46a6))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.7.8](https://github.com/Synerise/synerise-design/compare/@synerise/ds-app-menu@0.7.7...@synerise/ds-app-menu@0.7.8) (2025-01-21)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @synerise/ds-app-menu
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [0.7.7](https://github.com/Synerise/synerise-design/compare/@synerise/ds-app-menu@0.7.6...@synerise/ds-app-menu@0.7.7) (2025-01-15)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @synerise/ds-app-menu
|
package/dist/AppMenu.d.ts
CHANGED
|
@@ -3,14 +3,15 @@ import { AppMenuProps } from './AppMenu.types';
|
|
|
3
3
|
declare const AppMenu: {
|
|
4
4
|
({ className, children, footer, activeItem: activeId, top }: AppMenuProps): React.JSX.Element;
|
|
5
5
|
SubMenu: React.FC<import("./SubMenu/SubMenu.types").SubMenuProps> & import("./SubMenu/SubMenu.types").SubComponents;
|
|
6
|
-
Item:
|
|
7
|
-
subMenu
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
Item: {
|
|
7
|
+
({ children, subMenu, id, name, className }: {
|
|
8
|
+
subMenu?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
className?: string | undefined;
|
|
12
|
+
} & {
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}): React.JSX.Element;
|
|
14
15
|
Icon: React.FC<{
|
|
15
16
|
active: React.ReactNode;
|
|
16
17
|
inActive: React.ReactNode;
|
package/dist/Item/Item.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import React, { PropsWithChildren, ReactElement } from 'react';
|
|
2
|
-
import Icon from './Icon/Icon';
|
|
3
2
|
type ItemProps = PropsWithChildren<{
|
|
4
3
|
subMenu?: ReactElement;
|
|
5
4
|
id: string;
|
|
6
5
|
name: string;
|
|
7
6
|
className?: string;
|
|
8
7
|
}>;
|
|
9
|
-
declare const Item:
|
|
10
|
-
|
|
8
|
+
declare const Item: {
|
|
9
|
+
({ children, subMenu, id, name, className }: ItemProps): React.JSX.Element;
|
|
10
|
+
Icon: React.FC<{
|
|
11
|
+
active: React.ReactNode;
|
|
12
|
+
inActive: React.ReactNode;
|
|
13
|
+
}>;
|
|
11
14
|
};
|
|
12
15
|
export default Item;
|
package/dist/Item/Item.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useContext } from 'react';
|
|
2
2
|
import Tooltip from '@synerise/ds-tooltip';
|
|
3
3
|
import SubMenuContext from '../SubMenu/SubMenuContext/SubMenuContext';
|
|
4
4
|
import MenuContext from '../MenuContext/MenuContext';
|
|
@@ -10,7 +10,7 @@ var Item = function Item(_ref) {
|
|
|
10
10
|
id = _ref.id,
|
|
11
11
|
name = _ref.name,
|
|
12
12
|
className = _ref.className;
|
|
13
|
-
var menuContext =
|
|
13
|
+
var menuContext = useContext(MenuContext);
|
|
14
14
|
if (!menuContext) {
|
|
15
15
|
throw Error('Cannot use item outside MenuContext');
|
|
16
16
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ItemProps
|
|
3
|
-
declare const Item:
|
|
2
|
+
import { ItemProps } from './Item.types';
|
|
3
|
+
declare const Item: {
|
|
4
|
+
({ children, active }: ItemProps): React.JSX.Element;
|
|
5
|
+
Action: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
6
|
+
};
|
|
4
7
|
export default Item;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import * as S from './SubMenu.styles';
|
|
3
3
|
import Item from './Item/Item';
|
|
4
4
|
export type SubMenuProps = {
|
|
5
5
|
className?: string;
|
|
6
|
-
style?:
|
|
6
|
+
style?: CSSProperties;
|
|
7
|
+
children?: ReactNode;
|
|
7
8
|
};
|
|
8
9
|
export type SubComponents = {
|
|
9
10
|
Title: typeof S.MenuGroupTitle;
|
package/dist/modules.d.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import '@testing-library/jest-dom
|
|
1
|
+
import '@testing-library/jest-dom';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-app-menu",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "AppMenu UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
],
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@synerise/ds-icon": "^0.
|
|
38
|
-
"@synerise/ds-tooltip": "^0.
|
|
39
|
-
"@synerise/ds-typography": "^0.
|
|
40
|
-
"@synerise/ds-utils": "^0.
|
|
37
|
+
"@synerise/ds-icon": "^0.71.0",
|
|
38
|
+
"@synerise/ds-tooltip": "^0.15.0",
|
|
39
|
+
"@synerise/ds-typography": "^0.17.0",
|
|
40
|
+
"@synerise/ds-utils": "^0.32.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@synerise/ds-core": "*",
|
|
44
|
-
"react": ">=16.9.0 <=
|
|
45
|
-
"styled-components": "5.
|
|
44
|
+
"react": ">=16.9.0 <= 18.3.1",
|
|
45
|
+
"styled-components": "^5.3.3"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "fbde34e126b492edaf148e469ab96247a891d6df"
|
|
48
48
|
}
|